PR target/63947
[official-gcc.git] / gcc / ChangeLog
blobbf91a17f491847fe21a3857b42913479fbcb1a65
1 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
3         PR target/63947
4         * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
5         Output "b" and "nb" suffix for FP mode.
7 2014-11-19  Tom de Vries  <tom@codesourcery.com>
9         Backport from mainline
10         PR tree-optimization/62167
11         * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
12         conservatively.
13         (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
14         assigns.
16 2014-11-16  Eric Botcazou  <ebotcazou@adacore.com>
18         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
19         * doc/tm.texi: Regenerate.
21 2014-11-14  Felix Yang  <felix.yang@huawei.com>
23         Backport from mainline
24         2014-11-14  Felix Yang  <felix.yang@huawei.com>
25                     Jiji Jiang  <jiangjiji@huawei.com>
27         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
28         VALL mode iterator instead of VALLDI.
30 2014-11-13  Teresa Johnson  <tejohnson@google.com>
32         PR tree-optimization/63841
33         * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
35 2014-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
37         Backport from mainline
38         2014-11-02  Michael Collison  <michael.collison@linaro.org>
40         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
41         to support vector modes.
42         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
44 2014-11-13  Eric Botcazou  <ebotcazou@adacore.com>
46         * doc/tm.texi.in (SELECT_CC_MODE): Update example.
47         (REVERSIBLE_CC_MODE): Fix example.
48         (REVERSE_CONDITION): Fix typo.
49         * doc/tm.texi: Regenerate.
51 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
53         PR ipa/63838
54         * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
55         chain instead of node->indirect_calls.
57 2014-11-11  Eric Botcazou  <ebotcazou@adacore.com>
59         PR target/61535
60         * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
61         smaller than 8 bytes.
62         (sparc_function_arg_1): Tweak.
63         (sparc_function_value_1): Tweak.
65 2014-11-08  Eric Botcazou  <ebotcazou@adacore.com>
67         * config/arm/arm.c (arm_set_return_address): Mark the store as frame
68         related, if any.
69         (thumb_set_return_address): Likewise.
71 2014-11-07  Daniel Hellstrom  <daniel@gaisler.com>
73         * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
74         * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
76 2014-11-07  Marek Polacek  <polacek@redhat.com>
78         Backported from mainline
79         2014-10-23  Marek Polacek  <polacek@redhat.com>
81         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
82         in unsigned type.
84 2014-11-06  John David Anglin  <danglin@gcc.gnu.org>
86         * config/pa/pa.md (trap): New insn.  Add "trap" to attribute type.
87         Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
88         or in_call_delay.
89         
90 2014-11-06  Daniel Hellstrom  <daniel@gaisler.com>
92         * config.gcc (sparc*-*-*): Accept mcpu=leon3v7 processor.
93         * doc/invoke.texi (SPARC options): Add mcpu=leon3v7 comment.
94         * config/sparc/leon.md (leon3_load, leon_store, leon_fp_*): Handle
95         leon3v7 as leon3.
96         * config/sparc/sparc-opts.h (enum processor_type): Add LEON3V7.
97         * config/sparc/sparc.c (sparc_option_override): Add leon3v7 support.
98         * config/sparc/sparc.h (TARGET_CPU_leon3v7): New define.
99         * config/sparc/sparc.md (cpu): Add leon3v7.
100         * config/sparc/sparc.opt (enum processor_type): Add leon3v7.
102 2014-11-05  Uros Bizjak  <ubizjak@gmail.com>
104         PR target/63538
105         * config/i386/i386.c (in_large_data_p): Reject automatic variables.
106         (ix86_encode_section_info): Do not check for non-automatic varibles
107         when setting SYMBOL_FLAG_FAR_ADDR flag.
108         (x86_64_elf_select_section): Do not check ix86_cmodel here.
109         (x86_64_elf_unique_section): Ditto.
110         (x86_elf_aligned_common): Emit tab before .largecomm.
112 2014-11-05  Uros Bizjak  <ubizjak@gmail.com>
114         Backport from mainline:
115         2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
117         * varasm.c (const_alias_set): Remove.
118         (init_varasm_once): Remove initialization of const_alias_set.
119         (build_constant_desc): Do not set alias set to const_alias_set.
121         Backport from mainline:
122         2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
124         PR rtl-optimization/63475
125         * alias.c (true_dependence_1): Always use get_addr to extract
126         true address operands from x_addr and mem_addr.  Use extracted
127         address operands to check for references with alignment ANDs.
128         Use extracted address operands with find_base_term and
129         base_alias_check. For noncanonicalized operands call canon_rtx with
130         extracted address operand.
131         (write_dependence_1): Ditto.
132         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
134         Backport from mainline:
135         2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
137         PR rtl-optimization/63483
138         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
139         references when alignment ANDs are involved.
140         (write_dependence_p): Ditto.
141         (may_alias_p): Ditto.
143 2014-10-31  DJ Delorie  <dj@redhat.com>
145         * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
147 2014-10-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
149         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
150         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
151         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
152         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
154 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
156         PR sanitizer/63697
157         * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
158         MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
159         instead of vr0.min - vr1.min and vr0.max - vr1.max.
161 2014-10-30  Georg-Johann Lay  <avr@gjlay.de>
163         PR63633
164         * config/avr/avr-protos.h (regmask): New inline function.
165         (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
166         * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
167         (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
168         * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
169         (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
170         (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
171         * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
172         (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
173         (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
174         * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
175         (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
176         (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
177         (fmul, fmuls, fmulsu): Fix operands.  Turn insn into expander as
178         needed.
180 2014-10-30  Jakub Jelinek  <jakub@redhat.com>
182         * BASE-VER: Set to 4.9.3.
183         * DEV-PHASE: Set to prerelease.
185 2014-10-30  Release Manager
187         * GCC 4.9.2 released.
189 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
191         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
192         recog state after aarch64_prev_real_insn call.
194 2014-10-27  Guozhi Wei  <carrot@google.com>
196         PR tree-optimization/63530
197         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
198         pointer alignment according to DR_MISALIGNMENT.
200 2014-10-25  Yury Gribov  <y.gribov@samsung.com>
202         PR sanitizer/63638
203         * asan.c (enum asan_check_flags): Fixed ASAN_CHECK_LAST.
205 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
207         PR bootstrap/63632
208         * collect2.c (main): Filter out -fno-lto.
210 2014-10-22  Richard Biener  <rguenther@suse.de>
211             Tobias Burnus <burnus@net-b.de>
213         PR lto/63603
214         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
216 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
218         PR tree-optimization/63563
219         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
220         if either dra or drb stmts are not normal loads/stores.
222 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
224         * asan.c (instrument_derefs): Allow instrumentation of odd-sized
225         accesses even for -fsanitize=address.
226         (execute_sanopt): Only allow use_calls for -fsanitize=kernel-address.
228         PR tree-optimization/63302
229         * tree-ssa-reassoc.c (optimize_range_tests_xor,
230         optimize_range_tests_diff): Use !integer_pow2p () instead of
231         tree_log2 () < 0.
233 2014-10-16  Yury Gribov  <y.gribov@samsung.com>
235         * asan.c (instrument_derefs): Enable unaligned path for KASan.
237 2014-10-16  Yury Gribov  <y.gribov@samsung.com>
239         Backport from mainline
240         2014-10-03  Yury Gribov  <y.gribov@samsung.com>
242         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
243         don't emit empty ctors.
245 2014-10-16  Yury Gribov  <y.gribov@samsung.com>
247         Backport from mainline
248         2014-09-01  Yury Gribov  <y.gribov@samsung.com>
250         PR sanitizer/61897
251         PR sanitizer/62140
253         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
254         (build_check_stmt): Likewise.
255         (instrument_strlen_call): Likewise.
256         (asan_expand_check_ifn): Likewise and fix types.
257         (maybe_cast_to_ptrmode): New function.
259 2014-10-16  Yury Gribov  <y.gribov@samsung.com>
261         Backport from mainline
262         2014-08-18  Yury Gribov  <y.gribov@samsung.com>
264         PR sanitizer/62089
266         * asan.c (instrument_derefs): Fix bitfield check.
268 2014-10-16  Yury Gribov  <y.gribov@samsung.com>
270         Backport from mainline
271         2014-08-11  Yury Gribov  <y.gribov@samsung.com>
273         * asan.c (asan_check_flags): New enum.
274         (build_check_stmt_with_calls): Removed function.
275         (build_check_stmt): Split inlining logic to
276         asan_expand_check_ifn.
277         (instrument_derefs): Rename parameter.
278         (instrument_mem_region_access): Rename parameter.
279         (instrument_strlen_call): Likewise.
280         (asan_expand_check_ifn): New function.
281         (asan_instrument): Remove old code.
282         (pass_sanopt::execute): Change handling of
283         asan-instrumentation-with-call-threshold.
284         (asan_clear_shadow): Fix formatting.
285         (asan_function_start): Likewise.
286         (asan_emit_stack_protection): Likewise.
287         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
288         Update description.
289         * internal-fn.c (expand_ASAN_CHECK): New function.
290         * internal-fn.def (ASAN_CHECK): New internal function.
291         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
292         Update description.
293         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
294         * tree.c: Small comment fix.
296 2014-10-16  Yury Gribov  <y.gribov@samsung.com>
298         Backport from mainline
299         2014-08-11  Yury Gribov  <y.gribov@samsung.com>
301         * gimple.c (gimple_call_fnspec): Support internal functions.
302         (gimple_call_return_flags): Use const.
303         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
304         * internal-fn.def: Add fnspec information.
305         * internal-fn.h (internal_fn_fnspec): New function.
306         (init_internal_fns): Declare new function.
307         * internal-fn.c (internal_fn_fnspec_array): New global variable.
308         (init_internal_fns): New function.
309         * tree-core.h: Update macro call.
310         * tree.c (build_common_builtin_nodes): Initialize internal fns.
312         Backport from mainline
313         2014-08-12  Yury Gribov  <y.gribov@samsung.com>
315         * internal-fn.c (init_internal_fns): Fix off-by-one.
317 2014-10-16  Yury Gribov  <y.gribov@samsung.com>
319         Backport from mainline
320         2014-07-31  Yury Gribov  <y.gribov@samsung.com>
322         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
323         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
324         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
325         New enums.
326         * gcc.c (sanitize_spec_function): Support new option.
327         (SANITIZER_SPEC): Remove now redundant check.
328         * opts.c (common_handle_option): Support new option.
329         (finish_options): Check for incompatibilities.
330         * toplev.c (process_options): Split userspace-specific checks.
332 2014-10-16  Yury Gribov  <y.gribov@samsung.com>
334         Backport from mainline
335         2014-06-24  Max Ostapenko  <m.ostapenko@partner.samsung.com>
337         * asan.c (instrument_strlen_call): Do not instrument first byte in strlen
338         if already instrumented.
340 2014-10-16  Yury Gribov  <y.gribov@samsung.com>
342         Backport from mainline
343         2014-06-16  Yury Gribov  <y.gribov@samsung.com>
345         * asan.c (check_func): New function.
346         (maybe_create_ssa_name): Likewise.
347         (build_check_stmt_with_calls): Likewise.
348         (use_calls_p): Likewise.
349         (report_error_func): Change interface.
350         (build_check_stmt): Allow non-integer lengths; add support
351         for new parameter.
352         (asan_instrument): Likewise.
353         (instrument_mem_region_access): Moved code to
354         build_check_stmt.
355         (instrument_derefs): Likewise.
356         (instrument_strlen_call): Likewise.
357         * cfgcleanup.c (old_insns_match_p): Add support for new
358         functions.
359         * doc/invoke.texi: Describe new parameter.
360         * params.def: Define new parameter.
361         * params.h: Likewise.
362         * sanitizer.def: Describe new builtins.
364         Backport from mainline
365         2014-06-16  Yury Gribov  <y.gribov@samsung.com>
367         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
369         Backport from mainline
370         2014-06-18  Yury Gribov  <y.gribov@samsung.com>
372         PR sanitizer/61530
374         * asan.c (build_check_stmt): Add condition.
376         Backport from mainline
377         2014-06-18  Yury Gribov  <y.gribov@samsung.com>
379         PR sanitizer/61547
381         * asan.c (instrument_strlen_call): Fixed instrumentation of
382         trailing byte.
384 2014-10-16  Yury Gribov  <y.gribov@samsung.com>
386         Backport from mainline
387         2014-05-30  Jakub Jelinek  <jakub@redhat.com>
389         * asan.c (report_error_func): Add SLOW_P argument, use
390         BUILT_IN_ASAN_*_N if set.
391         (build_check_stmt): Likewise.
392         (instrument_derefs): If T has insufficient alignment,
393         force same handling as for odd sizes.
395 2014-10-16  Yury Gribov  <y.gribov@samsung.com>
397         Backport from mainline
398         2014-05-30  Jakub Jelinek  <jakub@redhat.com>
400         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
401         BUILT_IN_ASAN_REPORT_STORE_N): New.
402         * asan.c (struct asan_mem_ref): Change access_size type to
403         HOST_WIDE_INT.
404         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
405         update_mem_ref_hash_table): Likewise.
406         (asan_mem_ref_hasher::hash): Hash in a HWI.
407         (report_error_func): Change size_in_bytes argument to HWI.
408         Use *_N builtins if size_in_bytes is larger than 16 or not power of
409         two.
410         (build_shadow_mem_access): New function.
411         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
412         Handle size_in_bytes not power of two or larger than 16.
413         (instrument_derefs): Don't give up if size_in_bytes is not
414         power of two or is larger than 16.
416 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
418         PR rtl-optimization/63448
419         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
420         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
421         (LRA_MAX_INHERITANCE_PASSES): Use it.
422         (lra_constraint_iter_after_spill): Remove.
423         (lra_assignment_iter): New.
424         (lra_assignment_iter_after_spill): New.
425         * lra-assigns.c (lra_assignment_iter): New.
426         (lra_assignment_iter_after_spill): New.
427         (former_reload_pseudo_spill_p): New.
428         (spill_for): Set up former_reload_pseudo_spill_p.
429         (setup_live_pseudos_and_spill_after_risky): Ditto.
430         (assign_by_spills): Ditto.
431         (lra_assign): Increment lra_assignment_iter.  Print the iteration
432         number.  Reset former_reload_pseudo_spill_p.  Check
433         lra_assignment_iter_after_spill.
434         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
435         lra_assignment_iter and lra_assignment_iter_after_spill.
436         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
437         (lra_constraints): Remove code with
438         lra_assignment_iter_after_spill.
440 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
442         * stor-layout.c (self_referential_size): Do not promote arguments.
444 2014-10-15  Richard Biener  <rguenther@suse.de>
446         Backport from mainline
447         2014-08-15  Richard Biener  <rguenther@suse.de>
449         PR tree-optimization/62031
450         * tree-data-ref.c (dr_analyze_indices): Do not set
451         DR_UNCONSTRAINED_BASE.
452         (dr_may_alias_p): All indirect accesses have to go the
453         formerly DR_UNCONSTRAINED_BASE path.
454         * tree-data-ref.h (struct indices): Remove
455         unconstrained_base member.
456         (DR_UNCONSTRAINED_BASE): Remove.
458 2014-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
460         Backport from mainline r215880
461         2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
463         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
464         Issue a warning message when vec_lvsl or vec_lvsr is used with a
465         little endian target.
467         Backport from mainline r215882
468         2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
470         * altivec.md (altivec_lvsl): New define_expand.
471         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
472         (altivec_lvsr): New define_expand.
473         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
474         * rs6000.c (rs6000_expand_builtin): Change to use
475         altivec_lvs[lr]_direct; remove commented-out code.
477 2014-10-10  Richard Biener  <rguenther@suse.de>
479         PR tree-optimization/63379
480         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
481         a neutral operand for min/max when it is not a reduction chain.
483 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
485         Backport from mainline
486         2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
488         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
489         * configure: Regenerate.
490         * config/aarch64/aarch64.c (aarch64_override_options): Handle
491         TARGET_FIX_ERR_A53_835769_DEFAULT.
492         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
493         value to 2.
494         * doc/install.texi (aarch64*-*-*): Document new
495         --enable-fix-cortex-a53-835769 option.
497 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
499         Backport from mainline
500         2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
501                     Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
503         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
504         (ADJUST_INSN_LENGTH): Define.
505         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
506         * config/aarch64/aarch64.c (is_mem_p): New function.
507         (is_memory_op): Likewise.
508         (aarch64_prev_real_insn): Likewise.
509         (is_madd_op): Likewise.
510         (dep_between_memop_and_curr): Likewise.
511         (aarch64_madd_needs_nop): Likewise.
512         (aarch64_final_prescan_insn): Likewise.
513         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
514         and -mno-fix-cortex-a53-835769 options.
516 2014-10-10  Richard Biener  <rguenther@suse.de>
518         PR tree-optimization/63380
519         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
520         may trap.
522 2014-10-09  Richard Biener  <rguenther@suse.de>
524         PR tree-optimization/61969
525         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
526         variables.
528 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
530         Backport from mainline
531         2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
533         PR rtl-optimization/57003
534         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
535         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
536         killing regs_invalidated_by_call.
538 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
540         Backport from mainline
541         2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
543         PR target/52941
544         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
545         atomic_fetch_<fetchop_name>si_hard,
546         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
547         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
548         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
549         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
551 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
553         PR ipa/61144
554         * varpool.c (ctor_for_folding): Do not fold WEAK symbols.
556 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
558         PR ipa/62121
559         * ipa-devirt.c (restrict_to_inner_class): Do not ICE when type is
560         unknown.
562 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
564         PR lto/62026
565         * lto-streamer-out.c (lto_output): Handle thunks correctly.
566         * cgraphclones.c (duplicate_thunk_for_node): Get thunk's arguments.
568 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
570         PR libgomp/61200
571         * omp-low.c (taskreg_contexts): New variable.
572         (scan_omp_parallel): Push newly created context into taskreg_contexts
573         vector and move record layout code to finish_taskreg_scan.
574         (scan_omp_task): Likewise.
575         (finish_taskreg_scan): New function.
576         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
577         vector elements and release it.
579 2014-10-02  Martin Jambor  <mjambor@suse.cz>
581         PR tree-optimization/63375
582         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
583         references.
585 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
587         PR debug/63342
588         * dwarf2out.c (loc_list_from_tree): Handle TARGET_MEM_REF and
589         SSA_NAME.
591         PR target/63428
592         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
593         argument to avx2_permv2ti.
595         PR c++/63306
596         Backported from mainline
597         2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
599         PR regression/61510
600         * cgraphunit.c (analyze_functions): Use get_create rather than get
601         for decls which are clones of abstract functions.
603 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
605         Backported from mainline
606         2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
608         PR debug/63285
609         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
610         if advance != 0.
612         2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
614         PR tree-optimization/63186
615         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
616         (mark_nonssa_use): Likewise.
617         (verify_non_ssa_vars): Verify all header blocks for label
618         definitions.
620 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
622         Backport from mainline
623         2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
625         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
627 2014-10-01  Uros Bizjak  <ubizjak@gmail.com>
629         Backport from mainline
630         2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
632         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
633         (fmod<mode>3): Ditto.
634         (fpremxf4_i387): Ditto.
635         (reminderxf3): Ditto.
636         (reminder<mode>3): Ditto.
637         (fprem1xf4_i387): Ditto.
639 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
641         PR plugins/63410
642         * Makefile.in (PLUGIN_HEADERS): Add pass-instances.def.
644 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
646         PR inline-asm/63282
647         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
648         or invert_jump_1 if jump isn't any_condjump_p.
650 2014-09-29  James Clarke  <jrtc27@jrtc27.com>
651             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
653         PR target/61407
654         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
655         and above.
656         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
657         kernel version check to avoid incrementing it after every major OS X
658         release.
659         (darwin_default_min_version): Avoid static memory buffer.
661 2014-09-29  Charles Baylis  <charles.baylis@linaro.org>
663         Backport from mainline r212303
664         PR target/49423
665         * config/arm/arm-protos.h (arm_legitimate_address_p,
666         arm_is_constant_pool_ref): Add prototypes.
667         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
668         (arm_is_constant_pool_ref) New function.
669         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
670         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
671         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
672         operand and remove pool_range and neg_pool_range attributes.
673         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
674         pool_range and neg_pool_range attributes.
675         * config/arm/constraints.md (Uh): New constraint. (Uq): Don't allow
676         constant pool references.
678 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
680         PR middle-end/63247
681         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
682         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
683         use the alignment of avar rather than ovar.
685 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
687         * config/pa/pa.c (pa_output_function_epilogue): Only update
688         last_address when a nonnote insn is found.
690 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
692         Backport from mainline
693         2014-09-25  Nick Clifton  <nickc@redhat.com>
694         2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
696         PR target/62218
697         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask,
698         atomic_test_and_set_soft_imask): Fix typo in instruction sequence.
700 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
702         Backport from mainline r215559
703         2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
705         PR target/63335
706         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
707         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
709 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
711         PR tree-optimization/63341
712         * tree-vectorizer.h (vect_create_data_ref_ptr,
713         vect_create_addr_base_for_vector_ref): Add another tree argument
714         defaulting to NULL_TREE.
715         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
716         argument, pass it down to vect_create_addr_base_for_vector_ref.
717         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
718         add that to base_offset too if non-NULL.
719         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
720         for dr_explicit_realign_optimized set it to vector byte size
721         - 1 instead of setting offset, pass byte_offset down to
722         vect_create_data_ref_ptr.
724 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
726         Backport from mainline
727         2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
729         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
730         refine the constraints used on 32/64-bit floating point moves.
731         (f32_av): Likewise.
732         (f64_vsx): Likewise.
733         (f64_dm): Likewise.
734         (f64_av): Likewise.
735         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
736         (BOOL_REGS_OP1): Likewise.
737         (BOOL_REGS_OP2): Likewise.
738         (BOOL_REGS_UNARY): Likewise.
739         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
740         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
741         for moves involving VSX registers.  Do not use constraints that
742         target VSX registers for decimal types.
743         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
744         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
746 2014-09-22  Marek Polacek  <polacek@redhat.com>
748         Backport from mainline
749         2014-05-21  Marek Polacek  <polacek@redhat.com>
751         PR sanitizer/61272
752         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
754 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
756         PR debug/63328
757         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
758         insert a debug source bind stmt setting DEBUG_EXPR_DECL
759         instead of a normal gimple assignment stmt.
761 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
763         Back port from trunk:
764         2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
766         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
767         for base_reg_operand to be common between LO_SUM and PLUS.
768         (fusion_gpr_mem_combo): New predicate to match a fused address
769         that combines the addis and memory offset address.
771         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
772         calling signature.
773         (emit_fusion_gpr_load): Likewise.
775         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
776         signature to pass each argument separately, rather than
777         using an operands array.  Rewrite the insns found by peephole2 to
778         be a single insn, rather than hoping the insns will still be
779         together when the peephole pass is done.  Drop being called via a
780         normal peephole.
781         (emit_fusion_gpr_load): Change calling signature to be called from
782         the fusion_gpr_load_<mode> insns with a combined memory address
783         instead of the peephole pass passing the addis and offset
784         separately.
786         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
787         fusion.
788         (power8 fusion peephole): Drop support for doing power8 via a
789         normal peephole that was created by the peephole2 pass.
790         (power8 fusion peephole2): Create a new insn with the fused
791         address, so that the fused operation is kept together after
792         register allocation is done.
793         (fusion_gpr_load_<mode>): Likewise.
795 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
797         PR c++/62017
798         * asan.c (transform_statements): Don't instrument clobber statements.
800 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
802         PR debug/63284
803         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
804         if there are only debug stmts after the noreturn call, instead
805         remove the debug stmts.
807 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
809         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
810         Enable selection of 'posix' or no thread model.
812 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
814         PR target/61853
815         * config/pa/pa.c (pa_function_value): Directly handle aggregates
816         that fit exactly in a word or double word.
818 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
820         * doc/install.texi (Options specification): add
821         --disable-libsanitizer item.
823 2014-09-12  DJ Delorie  <dj@redhat.com>
825         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
826         (extend_and_shift1_hipsi2): Likewise.
827         (extend_and_shift2_hipsi2): Likewise.
829 2014-09-12  Martin Jambor  <mjambor@suse.cz>
831         PR ipa/61654
832         * cgraph.h (cgraph_analyze_function): Declare.
833         * cgraphunit.c: (analyze_function): Remove forward declaration,
834         rename to cgraph_analyze_function, made external.
835         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
836         new decl properly.  Analyze the new thunk if it is expanded.
838 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
840         Backport from mainline
841         2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
843         PR target/63228
844         * config/i386/i386.c (ix86_option_override_internal): Also turn
845         off OPTION_MASK_ABI_X32 for -m16.
847 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
849         Backport from mainline.
850         2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
852         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
853         types.
854         (vmull_high_lane_s32): Likewise.
855         (vmull_high_lane_u16): Likewise.
856         (vmull_high_lane_u32): Likewise.
858 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
860         Backport r214946 from mainline
861         2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
863         * config/aarch64/aarch64.md (adddi3_aarch64): Set type to neon_add.
865 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
867         Backport r214953 from mainline
868         2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
870         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
871         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
873         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
874         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
875         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
876         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
877         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
878         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
879         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
880         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
881         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
882         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
883         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
884         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
885         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
886         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
887         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
888         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
889         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
890         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
891         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
892         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
893         with int{32,16,8}_t.
895 2014-09-11  Jason Merrill  <jason@redhat.com>
897         PR c++/58678
898         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
900 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
902         Backport from 2014-09-11 trunk r215152.
904         PR target/63223
905         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
906         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
907         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
909 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
911         Backport from mainline
912         2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
914         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
915         V2DF, V4SF, DF, and DI modes.
916         (vsx_fmav2df2): Likewise.
917         (vsx_float_fix_<mode>2): Likewise.
918         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
920 2014-09-10  Xinliang David Li  <davidxl@google.com>
922         Backport from mainline
923         PR target/63209
924         * config/arm/arm.md (movcond_addsi): Handle case where source
925         and target operands are the same.
927 2014-09-10  Alan Modra  <amodra@gmail.com>
929         PR debug/60655
930         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
931         can't be output.
933 2014-09-09  Bill Schmidt  <wschmidt@us.ibm.com>
935         Backported from mainline
936         2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
938         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
939         selection of 0th memory doubleword, regardless of endianness.
941 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
943         Backport from mainline
944         2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
946         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
947         (-mtune): Likewise.
948         (-mcpu): Likewise.
950 2014-09-09  Jason Merrill  <jason@redhat.com>
952         PR c++/61214
953         PR c++/62224
954         * gimple-fold.c (can_refer_decl_in_current_unit_p): Don't allow
955         reference to a DECL_EXTERNAL COMDAT.
957 2014-09-09  Richard Biener  <rguenther@suse.de>
959         Backport from mainline
960         2014-08-05  Richard Biener  <rguenther@suse.de>
962         PR rtl-optimization/61672
963         * emit-rtl.h (mem_attrs_eq_p): Declare.
964         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
965         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
966         * cfgcleanup.c (merge_memattrs): Likewise.
967         Include emit-rtl.h.
969         2014-08-11  Richard Biener  <rguenther@suse.de>
971         PR tree-optimization/62075
972         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
973         handle uses in patterns.
975         2014-08-14  Richard Biener  <rguenther@suse.de>
977         PR rtl-optimization/62079
978         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
979         run cleanup_cfg.
981         2014-08-26  Richard Biener  <rguenther@suse.de>
983         PR tree-optimization/62175
984         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
985         expand possibly trapping operations.
987 2014-09-08  DJ Delorie  <dj@redhat.com>
989         * doc/invoke.texi (MSP430 Options): Add -minrt.
991 2014-09-05  Easwaran Raman  <eraman@google.com>
993         Backport from mainline
994         PR rtl-optimization/62146
995         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
996         hoisted instruction unconditional.
998 2014-09-04  Guozhi Wei  <carrot@google.com>
1000         PR target/62040
1001         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1002         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1003         it into two patterns.
1004         (move_lo_quad_internal_be_<mode>): Likewise.
1006 2014-09-03  Martin Jambor  <mjambor@suse.cz>
1008         PR ipa/62015
1009         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1010         pass-trough jump functions correctly.
1012 2014-09-03  Martin Jambor  <mjambor@suse.cz>
1014         PR ipa/61986
1015         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1016         created replacements in ascending order of offsets.
1017         (known_aggs_to_agg_replacement_list): Likewise.
1019 2014-09-02  Kaz Kojima  <kkojima@gcc.gnu.org>
1021         Backport from mainline
1022         2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
1024         PR target/62261
1025         * config/sh/sh.md (ashlsi3): Handle negative shift count for
1026         TARGET_SHMEDIA.
1027         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
1029 2014-09-02  Kaz Kojima  <kkojima@gcc.gnu.org>
1031         Backport from mainline
1032         2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
1034         PR target/62111
1035         * config/sh/predicates.md (general_extend_operand): Disable
1036         TRUNCATE before reload completes.
1038 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
1040         Backport from mainline
1041         2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
1043         PR target/62312
1044         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
1046 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
1048         PR target/62025
1049         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
1050         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
1051         (find_inc): Revert 2014-08-12 change.
1053         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
1054         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
1055         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
1057 2014-09-01  Marek Polacek  <polacek@redhat.com>
1059         Backport from mainline
1060         2014-08-21  Marek Polacek  <polacek@redhat.com>
1062         PR c/61271
1063         * expr.c (is_aligning_offset): Remove logical not.
1065 2014-09-01  Marek Polacek  <polacek@redhat.com>
1067         Backport from mainline
1068         2014-08-19  Marek Polacek  <polacek@redhat.com>
1070         PR c/61271
1071         * cgraphunit.c (handle_alias_pairs): Fix condition.
1073 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
1075         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
1076         prefix to function labels when generating fast indirect calls.
1078 2014-08-29  Yvan Roux  <yvan.roux@linaro.org>
1080         Backport from mainline
1081         2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
1083         PR other/62248
1084         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
1086 2014-08-27  Guozhi Wei  <carrot@google.com>
1088         PR target/62262
1089         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
1090         amount before using it.
1092 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
1094         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
1096 2014-08-26  Marek Polacek  <polacek@redhat.com>
1098         Backport from mainline
1099         2014-08-26  Marek Polacek  <polacek@redhat.com>
1101         PR c/61271
1102         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1103         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1105 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
1107         Backport from mainline
1108         2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
1110         PR target/61996
1111         * config/sh/sh.opt (musermode): Allow negative form.
1112         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
1113         targets that don't support it.
1114         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
1115         Document -mno-usermode option.
1117 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
1119         PR target/62038
1120         * config/pa/pa.c (pa_output_function_epilogue): Don't set
1121         last_address when the current function is a thunk.
1122         (pa_asm_output_mi_thunk): When we don't have named sections or they
1123         are not being used, check that thunk can reach the stub table with a
1124         short branch.
1126 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1128         Backport from mainline
1129         2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1131         PR target/62195
1132         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
1133         documentation to state it is only for VSX operations.
1135         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
1136         constraint only active if VSX.
1138         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
1139         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
1140         (lfiwzx): Likewise.
1142 2014-08-21  Uros Bizjak  <ubizjak@gmail.com>
1144         Backport from mainline
1145         2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1147         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
1148         destination if it is used in source.
1149         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
1150         (*popcount<mode>2_falsedep_1): Likewise.
1152         Backport from mainline
1153         2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
1155         PR target/62011
1156         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1157         New tune flag.
1158         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1159         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1160         (ffs<mode>2): Do not expand with tzcnt for
1161         TARGET_AVOID_FALSE_DEP_FOR_BMI.
1162         (ffssi2_no_cmove): Ditto.
1163         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1164         (ctz<mode>2): New expander.
1165         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1166         (*ctz<mode>2_falsedep): New insn.
1167         (*ctz<mode>2): Rename from ctz<mode>2.
1168         (clz<mode>2_lzcnt): New expander.
1169         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1170         (*clz<mode>2_lzcnt_falsedep): New insn.
1171         (*clz<mode>2): Rename from ctz<mode>2.
1172         (popcount<mode>2): New expander.
1173         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1174         (*popcount<mode>2_falsedep): New insn.
1175         (*popcount<mode>2): Rename from ctz<mode>2.
1176         (*popcount<mode>2_cmp): Remove.
1177         (*popcountsi2_cmp_zext): Ditto.
1179 2014-08-20  Martin Jambor  <mjambor@suse.cz>
1180             Wei Mi  <wmi@google.com>
1182         PR ipa/60449
1183         PR middle-end/61776
1184         * tree-ssa-operands.c (update_stmt_operands): Remove
1185         MODIFIED_NORETURN_CALLS.
1186         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
1187         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
1188         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
1189         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
1190         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
1191         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
1192         (gimple_call_set_ctrl_altering): New func.
1193         (gimple_call_ctrl_altering_p): Ditto.
1194         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
1195         (make_blocks): Use gimple_call_initialize_ctrl_altering.
1196         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
1197         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
1198         remove MODIFIED_NORETURN_CALLS.
1200 2014-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1202         Backport from mainline.
1203         2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1204         PR target/62098
1205         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
1206         Remove unnecessary attributes.
1208 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
1210         PR target/61641
1211         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1212         Declare.
1213         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1214         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1215         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1216         Define.
1217         * config/pa/pa.md (begin_brtab): Delete insn.
1218         (end_brtab): Likewise.
1220 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
1222         Backport from mainline:
1223         2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
1225         * doc/invoke.texi (SH options): Document missing processor variant
1226         options.  Remove references to Hitachi.  Undocument deprecated mspace
1227         option.
1229 2014-08-15  Tom de Vries  <tom@codesourcery.com>
1231         Backport from mainline:
1232         2014-08-14  Tom de Vries  <tom@codesourcery.com>
1234         PR rtl-optimization/62004
1235         PR rtl-optimization/62030
1236         * ifcvt.c (rtx_interchangeable_p): New function.
1237         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
1239         2014-08-05  Richard Biener  <rguenther@suse.de>
1241         * emit-rtl.h (mem_attrs_eq_p): Declare.
1242         * emit-rtl.c (mem_attrs_eq_p): Export.
1244 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
1246         PR middle-end/62092
1247         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
1248         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
1249         in OMP_CLAUSE_MAP in some outer target region.
1251 2014-08-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1253         Backport from mainline
1254         2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1256         PR target/61713
1257         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
1258         move to subtarget in serial version if result is ignored.
1260 2014-08-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1262         Backport from mainline
1263         2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1265         PR middle-end/62103
1266         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
1267         bitfields, that is when size doesn't match the size of type or the
1268         size of the constructor.
1270 2014-08-12  Felix Yang  <fei.yang0953@gmail.com>
1272         PR tree-optimization/62073
1273         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
1274         a basic block.
1276 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
1278         PR target/62025
1279         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
1280         any registers that are used in mem_insn.
1282 2014-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1284         Backport patch from mainline
1285         2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1287         * config/rs6000/constraints.md (wh constraint): New constraint,
1288         for FP registers if direct move is available.
1289         (wi constraint): New constraint, for VSX/FP registers that can
1290         handle 64-bit integers.
1291         (wj constraint): New constraint for VSX/FP registers that can
1292         handle 64-bit integers for direct moves.
1293         (wk constraint): New constraint for VSX/FP registers that can
1294         handle 64-bit doubles for direct moves.
1295         (wy constraint): Make documentation match implementation.
1297         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
1298         scalar_in_vmx_p field to simplify tests of whether SFmode or
1299         DFmode can go in the Altivec registers.
1300         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
1301         (rs6000_setup_reg_addr_masks): Likewise.
1302         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
1303         field, and wh/wi/wj/wk constraints.
1304         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
1305         the wh/wi/wj/wk constraints.
1306         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
1307         upper registers, prefer VSX registers unless the operation is a
1308         memory operation with REG+OFFSET addressing.
1310         * config/rs6000/vsx.md (VSr mode attribute): Add support for
1311         DImode.  Change SFmode to use ww constraint instead of d to allow
1312         SF registers in the upper registers.
1313         (VSr2): Likewise.
1314         (VSr3): Likewise.
1315         (VSr5): Fix thinko in comment.
1316         (VSa): New mode attribute that is an alternative to wa, that
1317         returns the VSX register class that a mode can go in, but may not
1318         be the preferred register class.
1319         (VS_64dm): New mode attribute for appropriate register classes for
1320         referencing 64-bit elements of vectors for direct moves and normal
1321         moves.
1322         (VS_64reg): Likewise.
1323         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
1324         register allocator to only registers the data type can handle.
1325         (vsx_le_perm_load_<mode>): Likewise.
1326         (vsx_le_perm_store_<mode>): Likewise.
1327         (vsx_xxpermdi2_le_<mode>): Likewise.
1328         (vsx_xxpermdi4_le_<mode>): Likewise.
1329         (vsx_lxvd2x2_le_<mode>): Likewise.
1330         (vsx_lxvd2x4_le_<mode>): Likewise.
1331         (vsx_stxvd2x2_le_<mode>): Likewise.
1332         (vsx_add<mode>3): Likewise.
1333         (vsx_sub<mode>3): Likewise.
1334         (vsx_mul<mode>3): Likewise.
1335         (vsx_div<mode>3): Likewise.
1336         (vsx_tdiv<mode>3_internal): Likewise.
1337         (vsx_fre<mode>2): Likewise.
1338         (vsx_neg<mode>2): Likewise.
1339         (vsx_abs<mode>2): Likewise.
1340         (vsx_nabs<mode>2): Likewise.
1341         (vsx_smax<mode>3): Likewise.
1342         (vsx_smin<mode>3): Likewise.
1343         (vsx_sqrt<mode>2): Likewise.
1344         (vsx_rsqrte<mode>2): Likewise.
1345         (vsx_tsqrt<mode>2_internal): Likewise.
1346         (vsx_fms<mode>4): Likewise.
1347         (vsx_nfma<mode>4): Likewise.
1348         (vsx_eq<mode>): Likewise.
1349         (vsx_gt<mode>): Likewise.
1350         (vsx_ge<mode>): Likewise.
1351         (vsx_eq<mode>_p): Likewise.
1352         (vsx_gt<mode>_p): Likewise.
1353         (vsx_ge<mode>_p): Likewise.
1354         (vsx_xxsel<mode>): Likewise.
1355         (vsx_xxsel<mode>_uns): Likewise.
1356         (vsx_copysign<mode>3): Likewise.
1357         (vsx_float<VSi><mode>2): Likewise.
1358         (vsx_floatuns<VSi><mode>2): Likewise.
1359         (vsx_fix_trunc<mode><VSi>2): Likewise.
1360         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
1361         (vsx_x<VSv>r<VSs>i): Likewise.
1362         (vsx_x<VSv>r<VSs>ic): Likewise.
1363         (vsx_btrunc<mode>2): Likewise.
1364         (vsx_b2trunc<mode>2): Likewise.
1365         (vsx_floor<mode>2): Likewise.
1366         (vsx_ceil<mode>2): Likewise.
1367         (vsx_<VS_spdp_insn>): Likewise.
1368         (vsx_xscvspdp): Likewise.
1369         (vsx_xvcvspuxds): Likewise.
1370         (vsx_float_fix_<mode>2): Likewise.
1371         (vsx_set_<mode>): Likewise.
1372         (vsx_extract_<mode>_internal1): Likewise.
1373         (vsx_extract_<mode>_internal2): Likewise.
1374         (vsx_extract_<mode>_load): Likewise.
1375         (vsx_extract_<mode>_store): Likewise.
1376         (vsx_splat_<mode>): Likewise.
1377         (vsx_xxspltw_<mode>): Likewise.
1378         (vsx_xxspltw_<mode>_direct): Likewise.
1379         (vsx_xxmrghw_<mode>): Likewise.
1380         (vsx_xxmrglw_<mode>): Likewise.
1381         (vsx_xxsldwi_<mode>): Likewise.
1382         (vsx_xscvdpspn): Tighten constraints to only use register classes
1383         the types use.
1384         (vsx_xscvspdpn): Likewise.
1385         (vsx_xscvdpspn_scalar): Likewise.
1387         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
1388         wj, and wk constraints.
1389         (GPR_REG_CLASS_P): New helper macro for register classes targeting
1390         general purpose registers.
1392         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
1393         direct moves.
1394         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
1395         DImode instead of wm.  Use wk constraint for direct move of DFmode
1396         instead of wm.
1397         (extendsidi2_lfiwax): Likewise.
1398         (lfiwax): Likewise.
1399         (lfiwzx): Likewise.
1400         (movdi_internal64): Likewise.
1402         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
1403         wk constraints. Make the wy constraint documentation match them
1404         implementation.
1406 2014-08-12  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1408         Backport from mainline
1409         2014-08-04 Ganesh Gopalasubramanian
1410                    <Ganesh.Gopalasubramanian@amd.com>
1412         * config/i386/i386.c (ix86_option_override_internal): Add
1413         PTA_RDRND and PTA_MOVBE for bdver4.
1415 2014-08-12  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1417         Backport from mainline
1418         2014-08-04  Ganesh Gopalasubramanian 
1419                     <Ganesh.Gopalasubramanian@amd.com>
1421         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
1422         family information. Handle BTVER2 cpu with cpuid family value.
1424 2014-08-12  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1426         Backport from mainline
1427         2014-06-16  Ganesh Gopalasubramanian 
1428                     <Ganesh.Gopalasubramanian@amd.com>
1430         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
1431         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
1432         handling 32-bit multiplication.
1434 2014-08-08  Guozhi Wei  <carrot@google.com>
1436         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
1438 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
1440         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
1441         constraint.
1443 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
1445         PR debug/61923
1446         * haifa-sched.c (advance_one_cycle): Fix dump.
1447         (schedule_block): Don't advance cycle if we are already at the
1448         beginning of the cycle.
1450 2014-08-06  Richard Biener  <rguenther@suse.de>
1452         PR tree-optimization/61320
1453         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
1454         handle misaligned loads.
1456 2014-08-04  Rohit  <rohitarulraj@freescale.com>
1458         PR target/60102
1459         * config/rs6000/rs6000.c
1460         (rs6000_reg_names): Add SPE high register names.
1461         (alt_reg_names): Likewise.
1462         (rs6000_dwarf_register_span): For SPE high registers, replace
1463         dwarf register numbers with GCC hard register numbers.
1464         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
1465         (rs6000_dbx_register_number): For SPE high registers, return dwarf
1466         register number for the corresponding GCC hard register number.
1467         * config/rs6000/rs6000.h
1468         (FIRST_PSEUDO_REGISTER): Update based on 32 newly added GCC hard
1469         register numbers for SPE high registers.
1470         (DWARF_FRAME_REGISTERS):  Likewise.
1471         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
1472         (DWARF_FRAME_REGNUM): Likewise.
1473         (FIXED_REGISTERS): Likewise.
1474         (CALL_USED_REGISTERS): Likewise.
1475         (CALL_REALLY_USED_REGISTERS): Likewise.
1476         (REG_ALLOC_ORDER): Likewise.
1477         (enum reg_class): Likewise.
1478         (REG_CLASS_NAMES): Likewise.
1479         (REG_CLASS_CONTENTS): Likewise.
1480         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
1482 2014-08-01  Vladimir Makarov  <vmakarov@redhat.com>
1484         * lra-constraints.c (remove_inheritance_pseudos): Process
1485         destination pseudo too.
1487 2014-08-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1489         Backport from mainline
1490         2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1492         PR tree-optimization/61375
1493         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Cancel optimization if
1494         symbolic number cannot be represented in an unsigned HOST_WIDE_INT.
1495         (execute_optimize_bswap): Cancel optimization if CHAR_BIT != 8.
1497 2014-08-01  Richard Biener  <rguenther@suse.de>
1499         PR tree-optimization/61964
1500         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
1501         by structural equality.
1503 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
1505         Backport from mainline
1506         2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
1508         PR target/61844
1509         * config/sh/sh.c (sh_legitimate_address_p,
1510         sh_legitimize_reload_address): Handle reg+reg address modes when
1511         ALLOW_INDEXED_ADDRESS is false.
1512         * config/sh/predicates.md (general_movsrc_operand,
1513         general_movdst_operand): Likewise.
1515 2014-07-25  Uros Bizjak  <ubizjak@gmail.com>
1517         Backport from mainline
1518         2014-07-14  Jakub Jelinek  <jakub@redhat.com>
1520         PR target/61656
1521         * config/i386/i386.c (classify_argument): Don't merge classes above
1522         number of words.
1524 2014-07-25  Uros Bizjak  <ubizjak@gmail.com>
1526         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
1528 2014-07-24  Kyle McMartin  <kyle@redhat.com>
1530         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
1532 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1534         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
1535         Add prototype.
1536         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
1537         function.  Issue -Wpsabi warning if future GCC releases will use
1538         different field alignment rules for this type.
1539         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
1540         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1541         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
1543 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1545         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): Issue
1546         -Wpsabi note when encountering a type where future GCC releases
1547         will apply different alignment requirements.
1549 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1551         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
1552         does not fit fully into floating-point registers, and there is still
1553         space in the register parameter area, issue -Wpsabi note that the ABI
1554         will change in a future GCC release.
1556 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1558         * config/arm/t-rtems-eabi: Add
1559         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
1560         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
1561         mbig-endian/mthumb/march=armv7-r, and
1562         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
1563         multilibs.
1565 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1566             Chris Johns <chrisj@rtems.org>
1567             Joel Sherrill <joel.sherrill@oarcorp.com>
1569         * config.gcc: Add nios2-*-rtems*.
1570         * config/nios2/rtems.h: New file.
1571         * gcc/config/nios2/t-rtems: New file.
1573 2014-07-21  Peter Bergner  <bergner@vnet.ibm.com>
1575         * config/rs6000/sysv4.h (LIBASAN_EARLY_SPEC): Define.
1576         (LIBTSAN_EARLY_SPEC): Likewise.
1578 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
1580         Backport from mainline
1581         2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
1583         PR target/61855
1584         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
1585         out of #ifdef __OPTIMIZE__.
1587 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
1589         * expr.c (store_field): Handle VOIDmode for calls that return values
1590         in multiple locations.
1592 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
1594         * toplev.c (output_stack_usage): Adjust the location of the warning.
1596 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
1598         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
1599         (*membar_storeload): Disable for LEON3.
1601 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
1603         Backport from mainline
1604         2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
1606         PR target/61662
1607         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
1609 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
1611         Backport from mainline
1612         2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
1614         PR target/61794
1615         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
1616         Fix instruction constraint.
1617         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
1619 2014-07-17  Richard Biener  <rguenther@suse.de>
1621         Backport from mainline
1622         2014-07-14  Richard Biener  <rguenther@suse.de>
1624         PR tree-optimization/61779
1625         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
1626         simplifying a condition.
1628 2014-07-17  Richard Biener  <rguenther@suse.de>
1630         PR rtl-optimization/61801
1631         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
1632         don't set reg_pending_barrier if it appears in a debug-insn.
1634 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
1636         Backport from trunk.
1637         PR target/61737.
1638         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
1639         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1640         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
1641         functions.
1642         (cris_print_index, cris_print_operand, cris_constant_index_p)
1643         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
1644         (cris_address_cost): Ditto last CONSTANT_P.
1645         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
1646         callers changed.  Yield cris_offsettable_symbol for non-PIC
1647         constant symbolic expressions including labels.  Yield cris_unspec
1648         for all unspecs.
1649         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
1650         target to pic_offset_table_rtx for calls that will likely go
1651         through PLT, const0_rtx when they can't.  All callers changed.
1652         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
1653         symbolic expressions to be PICified.  Remove second, redundant,
1654         assert on can_create_pseudo_p returning non-zero.  Use
1655         replace_equiv_address_nv, not replace_equiv_address, for final
1656         operand update.
1657         * config/cris/cris.md ("movsi"): Move variable t to pattern
1658         toplevel. Adjust assert for new cris_symbol_type member.  Use
1659         CONSTANT_P instead of CONSTANT_ADDRESS_P.
1660         ("*movsi_internal") <case 9>: Make check for valid unspec operands
1661         for lapc stricter.
1662         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
1663         ("call", "call_value"): Use second incoming operand as a marker
1664         for pic-offset-table-register being used.
1665         ("*expanded_call_non_v32", "*expanded_call_v32")
1666         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
1667         second incoming operand to CALL, match cris_call_type_marker.
1668         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
1669         ("*expanded_call_side"): Ditto.  Fix typo in comment.
1670         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
1671         CONSTANT_P.
1672         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
1673         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
1674         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
1675         users changed.  Add members cris_offsettable_symbol and cris_unspec.
1676         (cris_symbol_type): Rename from cris_pic_symbol_type.
1677         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
1678         just CONSTANT_P.
1679         * config/cris/cris-protos.h (cris_symbol_type_of,
1680         cris_expand_pic_call_address): Adjust prototypes.
1681         (cris_legitimate_constant_p): New prototype.
1683         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
1684         an existing tmake_file.  Don't add t-slibgcc and t-linux.
1686 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
1688         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
1689         on the FUNCTION_DECL.
1691         * BASE-VER: Set to 4.9.2.
1692         * DEV-PHASE: Set to prerelease.
1694 2014-07-16  Release Manager
1696         * GCC 4.9.1 released.
1698 2014-07-10  Cary Coutant  <ccoutant@google.com>
1700         Backport from trunk at r212211.
1702         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
1703         lookup.
1704         (resolve_addr_in_expr): When replacing the rtx in a location list
1705         entry, get a new address table entry.
1706         (dwarf2out_finish): Call index_location_lists even if there are no
1707         addr_index_table entries yet.
1709 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
1711         * doc/install.texi: Remove links to defunct package providers for
1712         Solaris.
1714 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
1716         PR middle-end/53590
1717         * function.c (allocate_struct_function): Revert r188667 change.
1719         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
1721 2014-07-09  Alan Lawrence  <alan.lawrence@arm.com>
1723         Backport r211369 from trunk.
1724         2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
1726         PR target/61062
1727         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
1728         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
1729         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
1730         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
1731         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
1732         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
1733         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
1734         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
1735         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
1738 2014-07-09  Alan Lawrence  <alan.lawrence@arm.com>
1740         Backport r210219 from trunk.
1741         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1743         * config/arm/arm_neon.h: Update comment.
1744         * config/arm/neon-docgen.ml: Delete.
1745         * config/arm/neon-gen.ml: Delete.
1746         * doc/arm-neon-intrinsics.texi: Update comment.
1748 2014-07-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1750         Backport r211775 from trunk.
1751         2014-06-18  Terry Guo  <terry.guo@arm.com>
1753         PR target/61544
1754         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
1755         reach the head.
1757 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
1759         PR rtl-optimization/61673
1760         * combine.c (simplify_comparison): Test just mode's sign bit
1761         in tmode rather than the sign bit and any bits above it.
1763 2014-07-08  James Greenhalgh  <james.greenhalgh@arm.com>
1765         Backport r212298 from trunk.
1766         2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
1768         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
1769         (move_lo_quad_internal_be_<mode>): Likewise.
1770         (move_lo_quad_<mode>): Convert to define_expand.
1771         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
1772         (aarch64_simd_move_hi_quad_be_<mode>): New.
1773         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
1774         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
1775         (aarch64_combinez_be<mode>): New.
1776         (aarch64_combine<mode>): Convert to define_expand.
1777         (aarch64_combine_internal<mode>): New.
1778         (aarch64_simd_combine<mode>): Remove bogus RTL description.
1780 2014-07-08  Richard Biener  <rguenther@suse.de>
1782         PR tree-optimization/61680
1783         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1784         Handle properly all read-write dependences with group accesses.
1786         PR tree-optimization/61681
1787         * tree-ssa-structalias.c (find_what_var_points_to): Expand
1788         NONLOCAL inside ESCAPED.
1790 2014-07-08  Alan Lawrence  <alan.lawrence@arm.com>
1792         Backport r211502 from mainline.
1793         2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
1795         PR target/59843
1796         * config/aarch64/aarch64-modes.def: Add V1DFmode.
1797         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
1798         Support V1DFmode.
1800 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
1802         PR tree-optimization/61725
1803         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
1804         range, use range_includes_zerop_p instead of integer_zerop on
1805         vr0->min, only use log2 of max if min is not negative.
1807 2014-07-06  Gerald Pfeifer  <gerald@pfeifer.com>
1809         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
1811 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
1813         PR middle-end/61654
1814         * cgraphunit.c (expand_thunk): Call free_dominance_info.
1816         PR tree-optimization/61684
1817         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
1818         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
1820 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
1822         Backported from mainline
1823         2014-06-27  Jakub Jelinek  <jakub@redhat.com>
1825         PR tree-optimization/57233
1826         PR tree-optimization/61299
1827         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
1828         functions.
1829         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
1830         would be lowered to scalar shifts, check if corresponding
1831         shifts and vector BIT_IOR_EXPR are supported and don't lower
1832         or lower just to narrower vector type in that case.
1833         * expmed.c (expand_shift_1): Fix up handling of vector
1834         shifts and rotates.
1836         2014-06-25  Jakub Jelinek  <jakub@redhat.com>
1838         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
1839         (LANG_HOOKS_DECLS): Add it.
1840         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
1841         has correct type.
1842         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
1843         * langhooks.h (struct lang_hooks_for_decls): Add
1844         omp_clause_linear_ctor hook.
1845         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
1846         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
1847         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
1848         combined simd loop use omp_clause_linear_ctor hook.
1850         2014-06-24  Jakub Jelinek  <jakub@redhat.com>
1852         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
1853         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is non-NULL.
1854         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
1855         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is non-NULL.
1856         (gimplify_adjust_omp_clauses): Likewise.
1857         * omp-low.c (lower_rec_simd_input_clauses,
1858         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
1859         safelen the same as safelen(1).
1860         * tree-nested.c (convert_nonlocal_omp_clauses,
1861         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
1862         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
1863         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
1864         Fixup handling of GIMPLE_OMP_TARGET.
1865         (convert_tramp_reference_stmt, convert_gimple_call): Handle
1866         GIMPLE_OMP_TARGET.
1868         2014-06-18  Jakub Jelinek  <jakub@redhat.com>
1870         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
1871         change in ORT_TARGET region, don't jump to do_outer.
1872         (struct gimplify_adjust_omp_clauses_data): New type.
1873         (gimplify_adjust_omp_clauses_1): Adjust for data being
1874         a struct gimplify_adjust_omp_clauses_data pointer instead
1875         of tree *.  Pass pre_p as a new argument to
1876         lang_hooks.decls.omp_finish_clause hook.
1877         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
1878         splay_tree_foreach to pass both list_p and pre_p.
1879         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
1880         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
1881         gimplify_adjust_omp_clauses callers.
1882         * langhooks.c (lhd_omp_finish_clause): New function.
1883         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
1884         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
1885         * langhooks.h (struct lang_hooks_for_decls): Add a new
1886         gimple_seq * argument to omp_finish_clause hook.
1887         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
1888         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
1889         (scan_omp_parallel, lower_omp_for): When adding _LOOPTEMP_ clause var,
1890         add it to outer ctx's decl_map as identity.
1891         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
1892         * tree-nested.c (convert_nonlocal_omp_clauses,
1893         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
1894         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
1896         2014-06-10  Jakub Jelinek  <jakub@redhat.com>
1898         PR fortran/60928
1899         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
1900         Set lastprivate_firstprivate even if omp_private_outer_ref
1901         langhook returns true.
1902         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
1903         langhook, call unshare_expr on new_var and call
1904         build_outer_var_ref to get the last argument.
1906         2014-05-11  Jakub Jelinek  <jakub@redhat.com>
1908         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
1909         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
1910         number of operands to 3.
1911         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
1912         * tree-nested.c (convert_nonlocal_omp_clauses,
1913         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
1914         * gimplify.c (gimplify_scan_omp_clauses): Handle
1915         OMP_CLAUSE_LINEAR_STMT.
1916         * omp-low.c (lower_rec_input_clauses): Fix typo.
1917         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
1918         cast between Fortran boolean_type_node and C _Bool if needed.
1920 2014-06-30  Jason Merrill  <jason@redhat.com>
1922         PR c++/51253
1923         PR c++/61382
1924         * gimplify.c (gimplify_arg): Non-static.
1925         * gimplify.h: Declare it.
1927 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1929         Backport from Mainline
1930         2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1932         PR target/61633
1933         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
1934         Add alternative; make early clobber.  Adjust both split patterns
1935         to use operand 0 as the working register.
1937 2014-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1939         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
1940         Update comments.
1941         (VCONQ): Make comment more helpful.
1942         (VCON): Delete.
1943         * config/aarch64/aarch64-simd.md
1944         (aarch64_sqdmulh_lane<mode>):
1945         Use VCOND for operands 2.  Update lane checking and flipping logic.
1946         (aarch64_sqrdmulh_lane<mode>): Likewise.
1947         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
1948         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
1949         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
1950         attribute of operand 3 to VCOND.
1951         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
1952         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
1953         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
1954         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
1955         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
1956         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
1957         define_insn.
1958         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
1959         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
1960         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
1961         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
1962         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
1963         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
1964         operand to VCOND.  Update lane flipping and bounds checking logic.
1965         (aarch64_sqdmlal2_lane<mode>): Likewise.
1966         (aarch64_sqdmlsl_lane<mode>): Likewise.
1967         (aarch64_sqdmull_lane<mode>): Likewise.
1968         (aarch64_sqdmull2_lane<mode>): Likewise.
1969         (aarch64_sqdmlal_laneq<mode>): Replace VCON usage with VCONQ.
1970         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
1971         (aarch64_sqdmlal2_laneq<mode>): Emit
1972         aarch64_sqdmlal2_laneq<mode>_internal insn.
1973         Replace VCON with VCONQ.
1974         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
1975         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
1976         (aarch64_sqdmull_laneq<mode>): Emit
1977         aarch64_sqdmull_laneq<mode>_internal insn.
1978         Replace VCON with VCONQ.
1979         (aarch64_sqdmull2_laneq<mode>): Emit
1980         aarch64_sqdmull2_laneq<mode>_internal insn.
1981         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
1982         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
1983         of 3rd argument to int16x4_t.
1984         (vqdmlalh_lane_s16): Likewise.
1985         (vqdmlslh_lane_s16): Likewise.
1986         (vqdmull_high_lane_s16): Likewise.
1987         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
1988         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
1989         (vqdmlsl_lane_s16): Likewise.
1990         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
1991         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
1992         (vqdmlals_lane_s32): Likewise.
1993         (vqdmlsls_lane_s32): Likewise.
1994         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
1995         (vqdmulls_lane_s32): Likewise.
1996         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
1997         (vqdmlsl_lane_s32): Likewise.
1998         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
1999         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
2000         (vqrdmulhh_lane_s16): Likewise.
2001         (vqdmlsl_high_lane_s16): Likewise.
2002         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
2003         (vqdmlsl_high_lane_s32): Likewise.
2004         (vqrdmulhs_lane_s32): Likewise.
2006 2014-06-30  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2008         Backport from Mainline
2009         2014-06-20  Jakub Jelinek  <jakub@redhat.com>
2010         2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2012         PR tree-optimization/61306
2013         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
2014         expression instead of its size.
2015         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
2016         false to prevent optimization when the result is unpredictable due to
2017         arithmetic right shift of signed type with highest byte is set.
2018         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
2019         (find_bswap_1): Likewise. Return NULL to prevent optimization when the
2020         result is unpredictable due to sign extension.
2021         (find_bswap): Adapt to change in struct symbolic_number.
2023 2014-06-27  Martin Jambor  <mjambor@suse.cz>
2025         PR ipa/61160
2026         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
2027         args_to_skip, use those from node instead.  Copy args_to_skip and
2028         combined_args_to_skip from node to the new thunk.
2029         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
2030         (cgraph_create_virtual_clone): Moved computation of
2031         combined_args_to_skip...
2032         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
2034 2014-06-27  Uros Bizjak  <ubizjak@gmail.com>
2036         Backport from mainline
2037         2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
2039         PR target/61586
2040         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
2042 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2044         PR target/61542
2045         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
2046         extraction other than index 3.
2048 2014-06-26  Marc Glisse  <marc.glisse@inria.fr>
2050         PR target/61503
2051         * config/i386/i386.md (x86_64_shrd, x86_shrd,
2052         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
2054 2014-06-26  Martin Jambor  <mjambor@suse.cz>
2056         Backport from mainline
2057         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
2058         renamed to ipa_impossible_devirt_target.  Fix typo.
2059         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
2060         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
2061         ipa_impossible_devirt_target.
2063 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
2065         PR target/61570
2066         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
2067         model family 6 CPU with has_longmode never use a CPU without
2068         64-bit support.
2070         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
2071         not mentioned in clauses use private clause if the iterator is
2072         declared in #pragma omp for simd, and when adding lastprivate
2073         instead, add it to the outer #pragma omp for too.  Diagnose
2074         if the variable is private in outer context.  For simd collapse > 1
2075         loops, replace all iterators with temporaries.
2076         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
2077         same even in collapse > 1 loops.
2079 2014-06-23  Alan Modra  <amodra@gmail.com>
2081         PR bootstrap/61583
2082         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
2083         to zero on debug statements.
2085 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2087         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
2088         New expander.
2089         (aarch64_sqrdmulh_lane<mode>): Likewise.
2090         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
2091         (aarch64_sq<r>dmulh_lane<mode>_interna): ...this.
2092         (aarch64_sqdmulh_laneq<mode>): New expander.
2093         (aarch64_sqrdmulh_laneq<mode>): Likewise.
2094         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
2095         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
2096         (aarch64_sqdmulh_lane<mode>): New expander.
2097         (aarch64_sqrdmulh_lane<mode>): Likewise.
2098         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
2099         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
2100         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
2101         (aarch64_sqdmlal_laneq<mode>): Likewise.
2102         (aarch64_sqdmlsl_lane<mode>): Likewise.
2103         (aarch64_sqdmlsl_laneq<mode>): Likewise.
2104         (aarch64_sqdmlal2_lane<mode>): Likewise.
2105         (aarch64_sqdmlal2_laneq<mode>): Likewise.
2106         (aarch64_sqdmlsl2_lane<mode>): Likewise.
2107         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
2108         (aarch64_sqdmull_lane<mode>): Likewise.
2109         (aarch64_sqdmull_laneq<mode>): Likewise.
2110         (aarch64_sqdmull2_lane<mode>): Likewise.
2111         (aarch64_sqdmull2_laneq<mode>): Likewise.
2113 2014-06-20  Martin Jambor  <mjambor@suse.cz>
2115         PR ipa/61540
2116         * ipa-prop.c (impossible_devirt_target): New function.
2117         (try_make_edge_direct_virtual_call): Use it, also instead of
2118         asserting.
2120 2014-06-20  Martin Jambor  <mjambor@suse.cz>
2122         PR ipa/61211
2123         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
2124         expanded clones.
2126 2014-06-20  Chung-Lin Tang  <cltang@codesourcery.com>
2128         Backport from mainline
2130         2014-06-20  Julian Brown  <julian@codesourcery.com>
2131                     Chung-Lin Tang  <cltang@codesourcery.com>
2133         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
2134         TARGET_THUMB1_ONLY. Add comments.
2136 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
2138         Backport from mainline
2139         2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
2141         * config/i386/i386.c (decide_alg): Correctly handle
2142         maximum size of stringop algorithm.
2144 2014-06-18  Richard Henderson  <rth@redhat.com>
2146         PR target/61545
2147         * config/aarch64/aarch64.md (tlsdesc_small): Clobber CC_REGNUM.
2149 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
2151         PR target/61483
2152         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
2153         variable 'size'; calculate 'size' right in the front; use
2154         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
2155         pcum->aapcs_stack_words.
2157 2014-06-17  Nick Clifton  <nickc@redhat.com>
2159         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
2160         (umulhi3, mulsidi3, umulsidi3): Likewise.
2162 2014-06-17  Uros Bizjak  <ubizjak@gmail.com>
2164         Backport from mainline
2165         2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
2167         PR target/61423
2168         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
2169         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
2170         and corresponding splitters.  Zero extend general register
2171         or memory input operand to XMM temporary.  Enable for
2172         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
2173         (floatunssi<mode>2): Update expander predicate.
2175 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
2177         PR rtl-optimization/61325
2178         * lra-constraints.c (valid_address_p): Add forward declaration.
2179         (simplify_operand_subreg): Check address validity before and after
2180         alter_reg of memory subreg.
2182 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
2184         PR plugins/45078
2185         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
2187 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
2189         Backport from mainline
2191         2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
2192         PR target/61415
2193         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
2194         (BU_MISC_2): Rename to ...
2195         (BU_LDBL128_2): ... this.
2196         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
2197         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
2198         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
2199         RS6000_BTM_LDBL128.
2200         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
2201         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
2202         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
2203         (unpacktf_1): Likewise.
2204         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
2205         (__builtin_longdouble_dw1): Likewise.
2206         * doc/sourcebuild.texi (longdouble128): Document.
2208 2014-06-13  Jeff Law  <law@redhat.com>
2210         Backports from mainline:
2211         2014-06-13  Jeff Law  <law@redhat.com>
2213         PR rtl-optimization/61094
2214         PR rtl-optimization/61446
2215         * ree.c (combine_reaching_defs): Get the mode for the copy from
2216         the extension insn rather than the defining insn.
2218         2014-06-02  Jeff Law  <law@redhat.com>
2220         PR rtl-optimization/61094
2221         * ree.c (combine_reaching_defs): Do not reextend an insn if it
2222         was marked as do_no_reextend.  If a copy is needed to eliminate
2223         an extension, then mark it as do_not_reextend.
2225 2014-06-13  Martin Jambor  <mjambor@suse.cz>
2227         PR ipa/61186
2228         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
2229         cache_token if returning early.
2231 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
2233         PR middle-end/61486
2234         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
2235         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
2236         if outer combined construct is distribute.
2237         (gimplify_omp_for): For OMP_DISTRIBUTE set
2238         gimplify_omp_ctxp->distribute.
2239         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
2240         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
2241         mapping into decl map.
2243 2014-06-12  Jeff Law  <law@redhat.com>
2245         Backports from mainline:
2247         2014-06-12  Jeff Law  <law@redhat.com>
2249         PR tree-optimization/61009
2250         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
2251         value when we stop processing a block due to problematic PHIs.
2253         2014-06-05  Jeff Law  <law@redhat.com>
2255         PR tree-optimization/61289
2256         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
2257         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
2258         looking for those which match LHS.  All callers changed.
2259         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
2260         parameters and code which manipulated them.  All callers changed.
2261         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
2262         and DST_MAP parameters.  Simplify invalidation code by just calling
2263         invalidate_equivalences.  All callers changed.
2264         (thread_across_edge): Simplify now that we don't need to maintain
2265         the map of equivalences to invalidate.
2267 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2269         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
2271 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
2273         Backport from 2014-05-14 trunk r210418
2274         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
2275         shifted values to avoid build warning.
2277 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
2279         Backport from 2014-05-09 trunk r210272
2281         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
2282         unsigned int initializers for regno_in, regno_out.
2284         Backport from 2014-06-12 trunk r211491
2286         PR target/61443
2287         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
2288         loading from address spaces.
2290 2014-06-12  Alan Modra  <amodra@gmail.com>
2292         PR target/61300
2293         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
2294         * doc/tm.texi: Regenerate.
2295         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
2296         Use throughout in place of REG_PARM_STACK_SPACE.
2297         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
2298         "incoming" param.  Pass to rs6000_function_parms_need_stack.
2299         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
2300         prototype_p when incoming.  Use function decl when incoming
2301         to handle K&R style functions.
2302         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
2303         (INCOMING_REG_PARM_STACK_SPACE): Define.
2305 2014-06-11  Richard Biener  <rguenther@suse.de>
2307         PR tree-optimization/61452
2308         * tree-ssa-sccvn.c (visit_phi): Remove pointless setting of
2309         expr and has_constants in case we found a leader.
2310         (simplify_binary_expression): Always valueize operands first.
2311         (simplify_unary_expression): Likewise.
2313 2014-06-11  Richard Biener  <rguenther@suse.de>
2315         PR middle-end/61456
2316         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2317         Do not use the main variant for the type comparison.
2319 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2321         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
2322         available.
2323         Simplify description of __crc32d and __crc32cd intrinsics.
2324         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
2325         availability.
2327 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
2329         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
2330         call statement, if any.
2331         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
2332         statements, if any.  Tidy up.
2334 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2336         Back port from trunk
2337         2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2339         PR target/61431
2340         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
2341         iterators, VSX_D that handles 64-bit types, and VSX_LE that
2342         handles swapping the two 64-bit double words on little endian
2343         systems.  Include V1TImode and optionally TImode in VSX_LE so that
2344         these types are properly swapped.  Change all of the insns and
2345         splits that do the 64-bit swaps to use VSX_LE.
2346         (vsx_le_perm_load_<mode>): Likewise.
2347         (vsx_le_perm_store_<mode>): Likewise.
2348         (splitters for little endian memory operations): Likewise.
2349         (vsx_xxpermdi2_le_<mode>): Likewise.
2350         (vsx_lxvd2x2_le_<mode>): Likewise.
2351         (vsx_stxvd2x2_le_<mode>): Likewise.
2353 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
2355         PR rtl-optimization/61325
2356         * lra-constraints.c (process_address_1): Check scale equal to one
2357         to prevent transformation: base + scale * index => base + new_reg.
2359 2014-06-05  Martin Jambor  <mjambor@suse.cz>
2361         PR ipa/61393
2362         * ipa-cp.c (determine_versionability): Pretend that tm_clones are
2363         not versionable.
2365 2014-06-04  Richard Biener  <rguenther@suse.de>
2367         PR tree-optimization/61383
2368         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
2369         stmts can't trap.
2371 2014-06-02  Jason Merrill  <jason@redhat.com>
2373         PR c++/61020
2374         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
2376 2014-06-03  Martin Jambor  <mjambor@suse.cz>
2378         PR ipa/61160
2379         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
2380         thunks.
2382 2014-06-03  Andrey Belevantsev  <abel@ispras.ru>
2384         Backport from mainline
2385         2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
2387         PR rtl-optimization/60866
2388         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
2389         Default it to -1.  Pass it down to init_simplejump_data.
2390         (init_simplejump_data): New parameter old_seqno.  Pass it down
2391         to get_seqno_for_a_jump.
2392         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
2393         initializing new jump seqno as a last resort.  Add comment.
2394         (sel_redirect_edge_and_branch): Save old seqno of the conditional
2395         jump and pass it down to sel_init_new_insn.
2396         (sel_redirect_edge_and_branch_force): Likewise.
2398 2014-06-03  Andrey Belevantsev  <abel@ispras.ru>
2400         Backport from mainline
2401         2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
2403         PR rtl-optimization/60901
2404         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
2405         bb predecessor belongs to the same scheduling region.  Adjust comment.
2407 2014-06-03  Uros Bizjak  <ubizjak@gmail.com>
2409         Backport from mainline
2410         2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
2412         PR target/61239
2413         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
2414         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
2416 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
2418         PR rtl-optimization/61325
2419         * lra-constraints.c (process_address): Rename to
2420         process_address_1.
2421         (process_address): New function.
2423 2014-05-29  Uros Bizjak  <ubizjak@gmail.com>
2425         Backport from mainline
2426         2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
2428         PR target/61271
2429         * config/i386/i386.c (ix86_rtx_costs)
2430         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
2431         Fix condition.
2433 2014-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2435         Backport from mainline
2436         2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2438         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
2439         predicate to detect a negative quotient.
2441 2014-05-28  Richard Biener  <rguenther@suse.de>
2443         Backport from mainline
2444         2014-05-28  Richard Biener  <rguenther@suse.de>
2446         PR middle-end/61045
2447         * fold-const.c (fold_comparison): When folding
2448         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
2449         the sign of the remaining constant operand stays the same.
2451         2014-05-05  Richard Biener  <rguenther@suse.de>
2453         PR middle-end/61010
2454         * fold-const.c (fold_binary_loc): Consistently avoid
2455         canonicalizing X & CST away from a CST that is the mask
2456         of a mode.
2458         2014-04-28  Richard Biener  <rguenther@suse.de>
2460         PR tree-optimization/60979
2461         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
2462         SCOPs that end in a block with a successor with abnormal
2463         predecessors.
2465 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2467         * configure.ac ($gcc_cv_ld_clearcap): New test.
2468         * configure: Regenerate.
2469         * config.in: Regenerate.
2470         * config/sol2.opt (mclear-hwcap): New option.
2471         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
2472         * config/sol2-clearcap.map: Moved here from
2473         testsuite/gcc.target/i386/clearcap.map.
2474         * config/sol2-clearcapv2.map: Move here from
2475         gcc.target/i386/clearcapv2.map.
2476         * config/t-sol2 (install): Depend on install-clearcap-map.
2477         (install-clearcap-map): New target.
2478         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
2479         -mclear-hwcap.
2481 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
2483         PR libgcc/61152
2484         * config/dbx.h (License): Add Runtime Library Exception.
2485         * config/newlib-stdint.h (License): Same.
2486         * config/rtems.h (License): Same
2487         * config/initfini-array.h (License): Same
2488         * config/v850/v850.h (License): Same.
2489         * config/v850/v850-opts.h (License): Same
2490         * config/v850/rtems.h (License): Same.
2492 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
2494         PR target/61044
2495         * doc/extend.texi (Local Labels): Note that label differences are
2496         not supported for AVR.
2498 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
2500         Backport from 2014-05-12 mainline r210322.
2501         Backport from 2014-05-27 mainline r210959, r210969.
2503         PR libgcc/61152
2504         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
2505         * config/arm/arm-cores.def (License): Same.
2506         * config/arm/arm-opts.h (License): Same.
2507         * config/arm/aout.h (License): Same.
2508         * config/arm/bpabi.h (License): Same.
2509         * config/arm/elf.h (License): Same.
2510         * config/arm/linux-elf.h (License): Same.
2511         * config/arm/linux-gas.h (License): Same.
2512         * config/arm/netbsd-elf.h (License): Same.
2513         * config/arm/uclinux-eabi.h (License): Same.
2514         * config/arm/uclinux-elf.h (License): Same.
2515         * config/arm/vxworks.h (License): Same.
2517 2014-05-26  Michael Tautschnig  <mt@debian.org>
2519         PR target/61249
2520         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
2521         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
2523 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
2525         PR rtl-optimization/61215
2526         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
2527         simplify_gen_subreg until final substitution.
2529 2014-05-23  Alan Modra  <amodra@gmail.com>
2531         PR target/61231
2532         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
2533         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
2534         Use "Y" constraint rather than "m".
2536 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
2538         PR rtl-optimization/60969
2539         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
2540         constraints.  Set up mem cost for NO_REGS case.
2542 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
2544         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
2546 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
2548         PR target/61208
2549         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
2551 2014-05-22  Nick Clifton  <nickc@redhat.com>
2553         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
2555 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
2557         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
2558         all padding bits in REAL_VALUE_TYPE are cleared.
2560 2014-05-21  Guozhi Wei  <carrot@google.com>
2562         PR target/61202
2563         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
2564         constraint.
2565         (vqdmulhq_n_s16): Likewise.
2567 2014-05-21  Martin Jambor  <mjambor@suse.cz>
2569         * doc/invoke.texi (Optimize Options): Document parameters
2570         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
2571         ipa-cp-array-index-hint-bonus.
2573 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
2575         PR middle-end/61252
2576         * omp-low.c (handle_simd_reference): New function.
2577         (lower_rec_input_clauses): Use it.  Defer adding reference
2578         initialization even for reduction without placeholder if in simd,
2579         handle it properly later on.
2581 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
2583         PR bootstrap/60984
2584         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
2585         parameter.
2586         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
2587         (ipa_inline): Loop inline_to_all_callers until no more aliases
2588         are removed.
2590 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
2592         PR lto/60820
2593         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
2595 2014-05-20  DJ Delorie  <dj@redhat.com>
2597         * config/msp430/msp430.md (split): Don't allow subregs when
2598         splitting SImode adds.
2599         (andneghi): Fix subtraction logic.
2600         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
2602 2014-05-20  Nick Clifton  <nickc@redhat.com>
2604         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2605         (msp430_gimplify_va_arg_expr): New function.
2606         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
2608         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
2609         operand 0 in order to prevent confusion about the number of
2610         registers involved.
2612 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2614         * config/arm/arm.md (arith_shiftsi): Do not predicate for
2615         arm_restrict_it.
2617 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
2619         * arm.c (thumb1_reorg): When scanning backwards skip anything
2620         that's not a proper insn.
2622 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
2624         * ipa.c (symtab_remove_unreachable_nodes): Remove
2625         symbol from comdat group if its body was eliminated.
2626         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
2627         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
2628         (symtab_unregister_node): ... this one.
2629         (verify_symtab_base): More strict checking of comdats.
2630         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
2632 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
2634         * opts.c (common_handle_option): Disable -fipa-reference coorectly
2635         with -fuse-profile.
2637 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
2639         PR ipa/60854
2640         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
2641         external aliases alive, too.
2643 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
2645         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
2647 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
2649         Backport from mainline
2650         2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
2652         PR target/60969
2653         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
2654         alternative 12.
2656 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
2658         PR rtl-optimization/60969
2659         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
2660         Calculate costs for this case.
2662 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
2664         PR target/61193
2665         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
2666         (__TM_simple_begin): Use it.
2667         (__TM_begin): Likewise.
2669 2014-05-15  Martin Jambor  <mjambor@suse.cz>
2671         PR ipa/61085
2672         * ipa-prop.c (update_indirect_edges_after_inlining): Check
2673         type_preserved flag when the indirect edge is polymorphic.
2675 2014-05-15  Martin Jambor  <mjambor@suse.cz>
2677         PR ipa/60897
2678         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
2680 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
2682         PR tree-optimization/61158
2683         * fold-const.c (fold_binary_loc): If X is zero-extended and
2684         shiftc >= prec, make sure zerobits is all ones instead of
2685         invoking undefined behavior.
2687 2014-05-14  Cary Coutant  <ccoutant@google.com>
2689         PR debug/61013
2690         * opts.c (common_handle_option): Don't special-case "-g".
2691         (set_debug_level): Default to at least level 2 with "-g".
2693 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
2695         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
2696         Delete.
2697         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
2698         * config/sparc/sparc.md (fptype_ut699): New attribute.
2699         (in_branch_delay): Return false if -mfix-ut699 is specified and
2700         fptype_ut699 is set to single.
2701         (truncdfsf2): Add fptype_ut699 attribute.
2702         (fix_truncdfsi2): Likewise.
2703         (floatsisf2): Change fptype attribute.
2704         (fix_truncsfsi2): Likewise.
2705         (negtf2_notv9): Delete.
2706         (negtf2_v9): Likewise.
2707         (negtf2_hq): New instruction.
2708         (negtf2): New instruction and splitter.
2709         (negdf2_notv9): Rewrite.
2710         (abstf2_notv9): Delete.
2711         (abstf2_hq_v9): Likewise.
2712         (abstf2_v9): Likewise.
2713         (abstf2_hq): New instruction.
2714         (abstf2): New instruction and splitter.
2715         (absdf2_notv9): Rewrite.
2717 2014-05-14  Matthias Klose  <doko@ubuntu.com>
2719         Revert:
2720         2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2721                     Matthias Klose  <doko@ubuntu.com>
2723         PR driver/61106
2724         * optc-gen.awk: Fix option handling for -Wunused-parameter.
2726 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
2728         * doc/sourcebuild.texi: (dfp_hw): Document.
2729         (p8vector_hw): Likewise.
2730         (powerpc_eabi_ok): Likewise.
2731         (powerpc_elfv2): Likewise.
2732         (powerpc_htm_ok): Likewise.
2733         (ppc_recip_hw): Likewise.
2734         (vsx_hw): Likewise.
2736 2014-05-13  Jeff Law  <law@redhat.com>
2738         Backports fromm mainline:
2740         2014-05-08  Jeff Law  <law@redhat.com>
2742         PR tree-optimization/61009
2743         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
2744         tri-state rather than a boolean.  When a block is too big to
2745         thread through, inform caller via negative return value.
2746         (thread_across_edge): If a block was too big for normal threading,
2747         then it's too big for a joiner too, so remove temporary equivalences
2748         and return immediately.
2750         2014-04-28  Jeff Law  <law@redhat.com>
2752         PR tree-optimization/60902
2753         * tree-ssa-threadedge.c
2754         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
2755         over real defs when invalidating outputs from statements that do not
2756         produce useful outputs for threading.
2758         2014-04-23  Jeff Law  <law@redhat.com>
2760         PR tree-optimization/60902
2761         * tree-ssa-threadedge.c
2762         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
2763         invalidate outputs from statements that do not produce useful
2764         outputs for threading.
2766 2014-05-13  Richard Biener  <rguenther@suse.de>
2768         PR ipa/60973
2769         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
2770         it needs revisiting whether the call still may be tail-called.
2772 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
2774         PR target/61060
2775         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
2776         is const0_rtx, return immediately.  Don't test count == 0 when
2777         it is always true.
2779 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2781         Backport from mainline
2782         2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2784         PR target/60991
2785         * config/avr/avr.c (avr_out_store_psi): Use correct constant
2786         to restore Y.
2788 2014-05-09  Uros Bizjak  <ubizjak@gmail.com>
2790         Backport from mainline
2791         2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
2793         PR target/61092
2794         * config/alpha/alpha.c: Include gimple-iterator.h.
2795         (alpha_gimple_fold_builtin): New function.  Move
2796         ALPHA_BUILTIN_UMULH folding from ...
2797         (alpha_fold_builtin): ... here.
2798         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
2800 2014-05-09  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
2802         Backport from 2014-04-16 trunk r209446
2803         2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
2805         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
2807 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
2809         Backport from 2014-05-09 trunk r210267
2811         PR target/61055
2812         * config/avr/avr.md (cc): Add new attribute set_vzn.
2813         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
2814         Set cc insn attribute to set_vzn instead of set_zn for alternatives
2815         with INC, DEC or NEG.
2816         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
2817         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
2818         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
2820 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2821             Matthias Klose  <doko@ubuntu.com>
2823         PR driver/61106
2824         * optc-gen.awk: Fix option handling for -Wunused-parameter.
2826 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
2828         PR target/59952
2829         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
2831 2014-05-05  Marek Polacek  <polacek@redhat.com>
2833         Back port from mainline
2834         2014-05-05  Marek Polacek  <polacek@redhat.com>
2836         PR driver/61065
2837         * opts.c (common_handle_option): Call error_at instead of warning_at.
2839 2014-05-04  Jan Hubicka  <hubicka@ucw.cz>
2841         PR ipa/60965
2842         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
2844 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
2846         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
2847         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
2848         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
2849         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
2850         Use RS6000_BTM_HARD_FLOAT.
2851         (BU_MISC_2): Likewise.
2852         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
2853         RS6000_BTM_HARD_FLOAT.
2854         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
2855         is explicitly used.
2856         (rs6000_invalid_builtin): Add hard floating builtin support.
2857         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
2858         hard float builtins.
2859         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
2861 2014-05-03  Joey Ye  <joey.ye@arm.com>
2863         Backport from mainline r209463
2864         2014-04-17  Joey Ye  <joey.ye@arm.com>
2866         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
2868 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
2870         Back port from mainline
2871         PR target/61026
2872         * config/sh/sh.c: Include stdlib headers before everything else.
2874 2014-05-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2876         PR tree-optimization/60930
2877         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
2878         creating a multiply candidate by folding two constant
2879         multiplicands when the result overflows.
2881 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
2883         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
2884         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
2885         (gimplify_adjust_omp_clauses): Simd region is never
2886         directly nested in combined parallel.  Instead, for linear
2887         with copyin/copyout, if in combined for simd loop, make decl
2888         firstprivate/lastprivate on OMP_FOR.
2889         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
2890         expand_omp_for_static_chunk): When setting endvar, also set
2891         fd->loop.v to the same value.
2893 2014-05-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2895         Back port from mainline
2896         2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2898         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
2899         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
2900         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
2901         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
2902         (TARGET_CRYPTO): Take TARGET_SIMD into account.
2904 2014-04-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
2906         Back port from mainline
2907         2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2909         * doc/extend.texi (PowerPC Built-in Functions): Document new
2910         powerpc extended divide, bcd, pack/unpack 128-bit, builtin
2911         functions.
2912         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
2914         * config/rs6000/predicates.md (const_0_to_3_operand): New
2915         predicate to match 0..3 integer constants.
2917         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
2918         to support adding miscellaneous builtin functions.
2919         (BU_DFP_MISC_2): Likewise.
2920         (BU_P7_MISC_1): Likewise.
2921         (BU_P7_MISC_2): Likewise.
2922         (BU_P8V_MISC_3): Likewise.
2923         (BU_MISC_1): Likewise.
2924         (BU_MISC_2): Likewise.
2925         (DIVWE): Add extended divide builtin functions.
2926         (DIVWEO): Likewise.
2927         (DIVWEU): Likewise.
2928         (DIVWEUO): Likewise.
2929         (DIVDE): Likewise.
2930         (DIVDEO): Likewise.
2931         (DIVDEU): Likewise.
2932         (DIVDEUO): Likewise.
2933         (DXEX): Add decimal floating-point builtin functions.
2934         (DXEXQ): Likewise.
2935         (DDEDPD): Likewise.
2936         (DDEDPDQ): Likewise.
2937         (DENBCD): Likewise.
2938         (DENBCDQ): Likewise.
2939         (DIEX): Likewise.
2940         (DIEXQ): Likewise.
2941         (DSCLI): Likewise.
2942         (DSCLIQ): Likewise.
2943         (DSCRI): Likewise.
2944         (DSCRIQ): Likewise.
2945         (CDTBCD): Add new BCD builtin functions.
2946         (CBCDTD): Likewise.
2947         (ADDG6S): Likewise.
2948         (BCDADD): Likewise.
2949         (BCDADD_LT): Likewise.
2950         (BCDADD_EQ): Likewise.
2951         (BCDADD_GT): Likewise.
2952         (BCDADD_OV): Likewise.
2953         (BCDSUB): Likewise.
2954         (BCDSUB_LT): Likewise.
2955         (BCDSUB_EQ): Likewise.
2956         (BCDSUB_GT): Likewise.
2957         (BCDSUB_OV): Likewise.
2958         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
2959         (UNPACK_TD): Likewise.
2960         (PACK_TF): Likewise.
2961         (UNPACK_TF): Likewise.
2962         (UNPACK_TF_0): Likewise.
2963         (UNPACK_TF_1): Likewise.
2964         (PACK_V1TI): Likewise.
2965         (UNPACK_V1TI): Likewise.
2967         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
2968         support for decimal floating point builtin functions.
2969         (rs6000_expand_ternop_builtin): Add checks for the new builtin
2970         functions that take constant arguments.
2971         (rs6000_invalid_builtin): Add decimal floating point builtin
2972         support.
2973         (rs6000_init_builtins): Setup long double, _Decimal64, and
2974         _Decimal128 types for new builtin functions.
2975         (builtin_function_type): Set the unsigned flags appropriately for
2976         the new builtin functions.
2977         (rs6000_opt_masks): Add support for decimal floating point builtin
2978         functions.
2980         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
2981         floating point builtin functions.
2982         (RS6000_BTM_COMMON): Likewise.
2983         (RS6000_BTI_long_double): Likewise.
2984         (RS6000_BTI_dfloat64): Likewise.
2985         (RS6000_BTI_dfloat128): Likewise.
2986         (long_double_type_internal_node): Likewise.
2987         (dfloat64_type_internal_node): Likewise.
2988         (dfloat128_type_internal_node): Likewise.
2990         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
2991         2.07 bcd arithmetic instructions.
2992         (UNSPEC_BCDSUB): Likewise.
2993         (UNSPEC_BCD_OVERFLOW): Likewise.
2994         (UNSPEC_BCD_ADD_SUB): Likewise.
2995         (bcd_add_sub): Likewise.
2996         (BCD_TEST): Likewise.
2997         (bcd<bcd_add_sub>): Likewise.
2998         (bcd<bcd_add_sub>_test): Likewise.
2999         (bcd<bcd_add_sub>_test2): Likewise.
3000         (bcd<bcd_add_sub>_<code>): Likewise.
3001         (peephole2 for combined bcd ops): Likewise.
3003         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
3004         decimal floating point builtin functions.
3005         (UNSPEC_DENBCD): Likewise.
3006         (UNSPEC_DXEX): Likewise.
3007         (UNSPEC_DIEX): Likewise.
3008         (UNSPEC_DSCLI): Likewise.
3009         (UNSPEC_DSCRI): Likewise.
3010         (D64_D128): Likewise.
3011         (dfp_suffix): Likewise.
3012         (dfp_ddedpd_<mode>): Likewise.
3013         (dfp_denbcd_<mode>): Likewise.
3014         (dfp_dxex_<mode>): Likewise.
3015         (dfp_diex_<mode>): Likewise.
3016         (dfp_dscli_<mode>): Likewise.
3017         (dfp_dscri_<mode>): Likewise.
3019         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
3020         builtin functions.
3021         (UNSPEC_CDTBCD): Likewise.
3022         (UNSPEC_CBCDTD): Likewise.
3023         (UNSPEC_DIVE): Add support for new extended divide builtin
3024         functions.
3025         (UNSPEC_DIVEO): Likewise.
3026         (UNSPEC_DIVEU): Likewise.
3027         (UNSPEC_DIVEUO): Likewise.
3028         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
3029         pack/unpack 128-bit types.
3030         (UNSPEC_PACK_128BIT): Likewise.
3031         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
3032         (udiv<mode>3): Use idiv_ldiv mode attribute.
3033         (div<mode>3): Likewise.
3034         (addg6s): Add new BCD builtin functions.
3035         (cdtbcd): Likewise.
3036         (cbcdtd): Likewise.
3037         (UNSPEC_DIV_EXTEND): Add support for new extended divide
3038         instructions.
3039         (div_extend): Likewise.
3040         (div<div_extend>_<mode>"): Likewise.
3041         (FP128_64): Add support for new builtin functions to pack/unpack
3042         128-bit types.
3043         (unpack<mode>): Likewise.
3044         (unpacktf_0): Likewise.
3045         (unpacktf_1): Likewise.
3046         (unpack<mode>_dm): Likewise.
3047         (unpack<mode>_nodm): Likewise.
3048         (pack<mode>): Likewise.
3049         (unpackv1ti): Likewise.
3050         (packv1ti): Likewise.
3052 2014-04-29  Pat Haugen  <pthaugen@us.ibm.com>
3054         Backport from mainline
3055         2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
3057         * config/rs6000/rs6000.md (addti3, subti3): New.
3059 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
3061         PR tree-optimization/60971
3062         * tree-tailcall.c (process_assignment): Reject conversions which
3063         reduce precision.
3065 2014-04-29  Nick Clifton  <nickc@redhat.com>
3067         * config/msp430/msp430.md (umulsidi): Fix typo.
3068         (mulhisi3): Enable even inside interrupt handlers.
3069         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
3070         bigger return address pushed in large mode.
3072 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
3074         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
3075         (loadsync_<mode>): Change mode.
3076         (load_quadpti, store_quadpti): New.
3077         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
3078         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
3080 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
3082         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
3083         * configure: Regenerate.
3084         * config/sparc/sparc.opt (muser-mode): New option.
3085         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
3086         for LEON3.
3087         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
3088         * doc/invoke.texi (SPARC options): Document -muser-mode.
3090 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
3092         * doc/install.texi (Building with profile feedback): Remove
3093         outdated sentence.
3095 2014-04-26  Tom de Vries  <tom@codesourcery.com>
3097         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
3098         array accesses.
3100 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
3102         PR tree-optimization/60960
3103         * tree-vect-generic.c (expand_vector_operation): Only call
3104         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
3106 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
3108         PR target/60941
3109         * config/sparc/sparc.md (ashlsi3_extend): Delete.
3111 2014-04-25  Richard Biener  <rguenther@suse.de>
3113         PR ipa/60912
3114         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
3115         call stmt use/clobber sets during stmt walk instead of
3116         walking the possibly incomplete set of caller edges.
3118 2014-04-25  Richard Biener  <rguenther@suse.de>
3120         PR ipa/60911
3121         * passes.c (apply_ipa_transforms): Inline into only caller ...
3122         (execute_one_pass): ... here.  Properly bring in function
3123         bodies for nodes we want to apply IPA transforms to.
3125 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
3127         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
3128         * gimplify.c (omp_is_private): Change last argument's type to int.
3129         Only diagnose lastprivate if the simd argument is 1, only diagnose
3130         linear if the simd argument is 2.
3131         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
3132         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
3133         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
3134         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
3135         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
3136         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
3137         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
3138         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
3139         * tree-nested.c (convert_nonlocal_omp_clauses,
3140         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
3142 2014-04-23  Uros Bizjak  <ubizjak@gmail.com>
3144         Backport from mainline
3145         2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
3147         PR target/60909
3148         * config/i386/i386.c (ix86_expand_builtin)
3149         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
3150         register for target RTX.
3151         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
3153 2014-04-23  Richard Biener  <rguenther@suse.de>
3155         PR tree-optimization/60903
3156         * tree-ssa-loop-im.c (analyze_memory_references): Remove
3157         commented code block.
3158         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
3159         loop flags to newly created BBs and edges.
3161 2014-04-23  Nick Clifton  <nickc@redhat.com>
3163         * config/msp430/msp430.c (msp430_handle_option): Move function
3164         to msp430-common.c
3165         (msp430_option_override): Simplify mcu and mcpu option handling.
3166         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
3167         support for -mhwmult command line option.
3168         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
3169         -mhwmult command line option.
3170         (msp430_hwmult_enabled): Delete.
3171         (msp43o_output_labelref): Add support for -mhwmult command line
3172         option.
3173         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
3174         (umulsidi3): Likewise.
3175         * config/msp430/msp430.opt (mmcu): Add Report attribute.
3176         (mcpu, mlarge, msmall): Likewise.
3177         (mhwmult): New option.
3178         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
3179         prototype.
3180         (msp430_is_f5_mcu): Remove prototype.
3181         (msp430_use_f5_series_hwmult): Add prototype.
3182         * config/msp430/msp430-opts.h: New file.
3183         * common/config/msp430: New directory.
3184         * common/config/msp430/msp430-common.c: New file.
3185         * config.gcc (msp430): Remove target_has_targetm_common.
3186         * doc/invoke.texi: Document -mhwmult command line option.
3188 2014-04-23  Nick Clifton  <nickc@redhat.com>
3190         * config/i386/cygwin.h (ENDFILE_SPEC): Include
3191         default-manifest.o if it can be found in the search path.
3192         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
3194 2014-04-23  Richard Biener  <rguenther@suse.de>
3196         Backport from mainline
3197         2014-04-14  Richard Biener  <rguenther@suse.de>
3199         PR lto/60720
3200         * lto-streamer-out.c (wrap_refs): New function.
3201         (lto_output): Wrap symbol references in global initializes in
3202         type-preserving MEM_REFs.
3204 2014-04-23  Richard Biener  <rguenther@suse.de>
3206         PR middle-end/60895
3207         * tree-inline.c (declare_return_variable): Use mark_addressable.
3209 2014-04-23  Richard Biener  <rguenther@suse.de>
3211         PR middle-end/60891
3212         * loop-init.c (loop_optimizer_init): Make sure to apply
3213         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
3215 2014-04-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3217         Backport from mainline
3218         2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
3220         PR target/60735
3221         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
3222         If mode is DDmode and TARGET_E500_DOUBLE allow move.
3224         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
3225         more debug information for E500 if -mdebug=reg.
3227 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
3229         Backport from mainline
3230         2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
3232         PR target/60868
3233         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
3234         on count_exp to get mode.
3236 2014-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3238         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for
3239         little-endian.
3240         (vsx_xxmrglw_<mode>): Likewise.
3242 2014-04-22  Richard Biener  <rguenther@suse.de>
3244         Backport from mainline
3245         2014-04-14  Richard Biener  <rguenther@suse.de>
3247         PR middle-end/55022
3248         * fold-const.c (negate_expr_p): Don't negate directional rounding
3249         division.
3250         (fold_negate_expr): Likewise.
3252 2014-04-22  Richard Biener  <rguenther@suse.de>
3254         Backport from mainline
3255         2014-04-17  Richard Biener  <rguenther@suse.de>
3257         PR middle-end/60849
3258         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
3259         boolean results for comparisons.
3261 2014-04-22   Richard Biener  <rguenther@suse.de>
3263         Backport from mainline
3264         2014-04-17   Richard Biener  <rguenther@suse.de>
3266         PR tree-optimization/60841
3267         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
3268         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
3269         of stmts to SLP build.
3270         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
3271         (vect_analyze_slp): Likewise.
3272         (vect_analyze_slp_instance): Likewise.
3273         (vect_build_slp_tree): Limit overall SLP tree growth.
3274         * tree-vectorizer.h (vect_analyze_data_refs,
3275         vect_analyze_slp): Adjust prototypes.
3277 2014-04-22  Richard Biener  <rguenther@suse.de>
3279         Backport from mainline
3280         2014-04-17  Richard Biener  <rguenther@suse.de>
3282         PR tree-optimization/60836
3283         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
3284         initial PHI args to be gimple values.
3286 2014-04-22  Richard Biener  <rguenther@suse.de>
3288         Backport from mainline
3289         2014-04-14  Richard Biener  <rguenther@suse.de>
3291         PR tree-optimization/59817
3292         PR tree-optimization/60453
3293         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
3294         recursion to catch all CHRECs in the scalar evolution and restrict
3295         the predicate for the remains appropriately.
3297 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
3299         PR tree-optimization/60823
3300         * omp-low.c (ipa_simd_modify_function_body): Go through
3301         all SSA_NAMEs and for those refering to vector arguments
3302         which are going to be replaced adjust SSA_NAME_VAR and,
3303         if it is a default definition, change it into a non-default
3304         definition assigned at the beginning of function from new_decl.
3305         (ipa_simd_modify_stmt_ops): Rewritten.
3306         * tree-dfa.c (set_ssa_default_def): When removing default def,
3307         check for NULL loc instead of NULL *loc.
3309 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
3311         PR middle-end/60281
3312         * asan.c (asan_emit_stack_protection): Force the base to align to
3313         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
3314         appropriate bits if STRICT_ALIGNMENT.
3315         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
3316         when asan is on.
3317         (expand_used_vars): Leave a space in the stack frame for alignment
3318         if STRICT_ALIGNMENT.
3320 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
3322         Backported from mainline
3323         2014-04-16  Jakub Jelinek  <jakub@redhat.com>
3325         PR tree-optimization/60844
3326         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
3327         (propagate_op_to_single_use, remove_visited_stmt_chain,
3328         linearize_expr, repropagate_negates, reassociate_bb): Use it
3329         instead of gsi_remove.
3331 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
3333         * BASE-VER: Set to 4.9.1.
3334         * DEV-PHASE: Set to prerelease.
3336 2014-04-22  Release Manager
3338         * GCC 4.9.0 released.
3340 2014-04-18  Richard Henderson  <rth@redhat.com>
3342         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
3343         to GET_MODE_SIZE, not a reg_class_t.
3345 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
3347         PR target/60847
3348         Forward port from 4.8 branch
3349         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
3351         * config/i386/bmiintrin.h (_blsi_u32): New.
3352         (_blsi_u64): Ditto.
3353         (_blsr_u32): Ditto.
3354         (_blsr_u64): Ditto.
3355         (_blsmsk_u32): Ditto.
3356         (_blsmsk_u64): Ditto.
3357         (_tzcnt_u32): Ditto.
3358         (_tzcnt_u64): Ditto.
3360 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3362         PR target/60839
3363         Revert the following patch
3365         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3367         PR target/60735
3368         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
3369         software floating point or no floating point registers, do not
3370         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
3371         in GPRs that occurs after we tested for GPRs that would never be
3372         true.
3374         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
3375         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
3376         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
3377         specifically allow DDmode, since that does not use the SPE SIMD
3378         instructions.
3380 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
3382         PR plugins/59335
3383         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
3384         added in 4.9.
3386 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
3388         * doc/invoke.texi (free): Document AArch64.
3390 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
3392         * DEV-PHASE: Set to prerelease.
3394 2014-04-11  Tobias Burnus  <burnus@net-b.de>
3396         PR other/59055
3397         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
3398         * doc/gcc.texi (Service): Update description in the @menu
3399         * doc/invoke.texi (Option Summary): Remove misplaced and
3400         duplicated @menu.
3402 2014-04-11  Steve Ellcey  <sellcey@mips.com>
3403             Jakub Jelinek  <jakub@redhat.com>
3405         PR middle-end/60556
3406         * expr.c (convert_move): Use emit_store_flag_force instead of
3407         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
3408         argument to it.
3410 2014-04-11  Richard Biener  <rguenther@suse.de>
3412         PR middle-end/60797
3413         * varasm.c (assemble_alias): Avoid endless error reporting
3414         recursion by setting TREE_ASM_WRITTEN.
3416 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3418         * config/s390/s390.md: Add a splitter for NOT rtx.
3420 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
3422         PR rtl-optimization/60663
3423         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
3425 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
3426             Jakub Jelinek  <jakub@redhat.com>
3428         PR lto/60567
3429         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
3430         flag from decl_node to node.
3432 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3434         PR debug/60655
3435         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
3436         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
3437         ameliorating the cases where it can be.
3439 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
3441         Revert
3442         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
3444         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
3445         (loadsync_<mode>): Change mode.
3446         (load_quadpti, store_quadpti): New.
3447         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
3448         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
3449         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
3451 2014-04-09  Cong Hou  <congh@google.com>
3453         PR testsuite/60773
3454         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
3455         documentation.
3457 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3459         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
3460         instead of vnor to exploit possible fusion opportunity in the
3461         future.
3462         (altivec_expand_vec_perm_const_le): Likewise.
3464 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
3466         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
3467         (loadsync_<mode>): Change mode.
3468         (load_quadpti, store_quadpti): New.
3469         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
3470         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
3472 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
3474         PR target/60763
3475         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
3476         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
3477         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
3479 2014-04-08  Richard Biener  <rguenther@suse.de>
3481         PR middle-end/60706
3482         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
3483         a 64bit widest int print double-int similar to on HWI64 hosts.
3485 2014-04-08  Richard Biener  <rguenther@suse.de>
3487         PR tree-optimization/60785
3488         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
3489         default defs properly.
3491 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
3493         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
3494         (Weffc++): Likewise.
3496 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
3498         * ipa-devirt.c (maybe_record_node): When node is not recorded,
3499         set completep to false rather than true.
3501 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
3503         PR target/60504
3504         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
3505         ARM_TARGET2_DWARF_FORMAT.
3507 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
3509         PR target/60609
3510         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
3511         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
3512         ADDR_DIFF_VEC.
3514 2014-04-07  Richard Biener  <rguenther@suse.de>
3516         PR tree-optimization/60766
3517         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
3518         (may_eliminate_iv): Convert cand_value_at result to desired type.
3520 2014-04-07  Jason Merrill  <jason@redhat.com>
3522         PR c++/60731
3523         * common.opt (-fno-gnu-unique): Add.
3524         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
3526 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3528         * haifa-sched.c: Fix outdated function reference and minor
3529         grammar errors in introductory comment.
3531 2014-04-07  Richard Biener  <rguenther@suse.de>
3533         PR middle-end/60750
3534         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
3535         for noreturn calls.
3536         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
3538 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
3540         PR debug/55794
3541         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
3542         size accounting for thunks.
3543         (pa_asm_output_mi_thunk): Use final_start_function() and
3544         final_end_function() to output function start and end directives.
3546 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
3548         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
3549         device specific ISA/ feature information. Remove short_sp and
3550         errata_skip ds.  Add avr_device_specific_features enum to have device
3551         specific info.
3552         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
3553         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
3554         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
3555         updated device specific info.
3556         * config/avr/avr-mcus.def: Merge device specific details to
3557         dev_attribute field.
3558         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
3559         errata_skip.
3560         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
3561         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
3562         assembler if RMW isa supported by current device.
3563         * config/avr/genmultilib.awk: Update as device info structure changed.
3564         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
3566 2014-04-04  Cong Hou  <congh@google.com>
3568         PR tree-optimization/60656
3569         * tree-vect-stmts.c (supportable_widening_operation):
3570         Fix a bug that elements in a vector with vect_used_by_reduction
3571         property are incorrectly reordered when the operation on it is not
3572         consistant with the one in reduction operation.
3574 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
3576         PR rtl-optimization/60155
3577         * gcse.c (record_set_data): New function.
3578         (single_set_gcse): New function.
3579         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
3580         (hoist_code): Likewise.
3581         (get_pressure_class_and_nregs): Likewise.
3583 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3585         * explow.c (probe_stack_range): Emit a final optimization blockage.
3587 2014-04-04  Anthony Green  <green@moxielogic.com>
3589         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
3590         typos.
3592 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
3594         PR ipa/59626
3595         * lto-cgraph.c (input_overwrite_node): Check that partitioning
3596         flags are set only during streaming.
3597         * ipa.c (process_references, walk_polymorphic_call_targets,
3598         symtab_remove_unreachable_nodes): Drop bodies of always inline
3599         after early inlining.
3600         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
3602 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
3603         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3605         PR debug/60655
3606         * dwarf2out.c (const_ok_for_output_1): Reject expressions
3607         containing a NOT.
3609 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3611         PR bootstrap/60743
3612         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
3613         duration.
3614         (cortex_a53_fdivd): Likewise.
3616 2014-04-04  Martin Jambor  <mjambor@suse.cz>
3618         PR ipa/60640
3619         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
3620         Adjust all callers.
3621         * cgraph.c (clone_of_p): Also return true if thunks match.
3622         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
3623         cgraph_function_or_thunk_node and an obsolete comment.
3624         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
3625         file.
3626         (build_function_decl_skip_args): Likewise.
3627         (set_new_clone_decl_and_node_flags): New function.
3628         (duplicate_thunk_for_node): Likewise.
3629         (redirect_edge_duplicating_thunks): Likewise.
3630         (cgraph_clone_node): New parameter args_to_skip, pass it to
3631         redirect_edge_duplicating_thunks which is called instead of
3632         cgraph_redirect_edge_callee.
3633         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
3634         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
3636 2014-04-04  Jeff Law  <law@redhat.com>
3638         PR target/60657
3639         * config/arm/predicates.md (const_int_I_operand): New predicate.
3640         (const_int_M_operand): Similarly.
3641         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
3642         const_int_operand.
3643         (insv_t2, extv_reg, extzv_t2): Likewise.
3644         (load_multiple_with_writeback): Similarly for const_int_I_operand.
3645         (pop_multiple_with_writeback_and_return): Likewise.
3646         (vfp_pop_multiple_with_writeback): Likewise
3648 2014-04-04  Richard Biener  <rguenther@suse.de>
3650         PR ipa/60746
3651         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
3652         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
3653         non-GIMPLE_LABELs.
3654         * gimplify.h (gimple_add_tmp_var_fn): Declare.
3655         * gimplify.c (gimple_add_tmp_var_fn): New function.
3656         * gimple-expr.h (create_tmp_reg_fn): Declare.
3657         * gimple-expr.c (create_tmp_reg_fn): New function.
3658         * gimple-low.c (record_vars_into): Don't change cfun.
3659         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
3660         code generation without cfun.
3662 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
3664         PR bootstrap/60719
3665         * Makefile.in (install-driver): Fix shell scripting.
3667 2014-04-03  Cong Hou  <congh@google.com>
3669         PR tree-optimization/60505
3670         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
3671         threshold of number of iterations below which no vectorization
3672         will be done.
3673         * tree-vect-loop.c (new_loop_vec_info):
3674         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
3675         * tree-vect-loop.c (vect_analyze_loop_operations):
3676         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
3677         * tree-vect-loop.c (vect_transform_loop):
3678         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
3679         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
3680         of iterations of the loop and see if we should build the epilogue.
3682 2014-04-03  Richard Biener  <rguenther@suse.de>
3684         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
3685         (streamer_tree_cache_create): Adjust.
3686         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
3687         to allow optional nodes array.
3688         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
3689         (streamer_tree_cache_append): Likewise.
3690         (streamer_tree_cache_create): Create nodes array optionally
3691         as specified by parameter.
3692         * lto-streamer-out.c (create_output_block): Avoid maintaining
3693         the node array in the writer cache.
3694         (DFS_write_tree): Remove assertion.
3695         (produce_asm_for_decls): Free the out decl state hash table early.
3696         * lto-streamer-in.c (lto_data_in_create): Adjust for
3697         streamer_tree_cache_create prototype change.
3699 2014-04-03  Richard Biener  <rguenther@suse.de>
3701         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
3702         set TREE_CHAIN to NULL_TREE.
3704 2014-04-03  Richard Biener  <rguenther@suse.de>
3706         PR tree-optimization/60740
3707         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
3708         over all GIMPLE_COND operands.
3710 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
3712         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
3713         (Weffc++): Remove Scott's numbering, merge lists and reference
3714         Wnon-virtual-dtor.
3716 2014-04-03  Nick Clifton  <nickc@redhat.com>
3718         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
3719         properly.
3721 2014-04-03  Martin Jambor  <mjambor@suse.cz>
3723         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
3724         mention gcc_unreachable before failing.
3725         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
3726         removed symbols.
3728 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
3730         PR ipa/60659
3731         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
3732         inconsistent code and instead mark the context inconsistent.
3733         (possible_polymorphic_call_targets): For inconsistent contexts
3734         return empty complete list.
3736 2014-04-02  Anthony Green  <green@moxielogic.com>
3738         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
3739         (extendqisi2, extendhisi2): Define.
3740         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
3741         (WCHAR_TYPE): Change to unsigned int.
3743 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3745         PR tree-optimization/60733
3746         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
3747         insertion point for PHI candidates to be the end of the feeding
3748         block for the PHI argument.
3750 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
3752         PR rtl-optimization/60650
3753         * lra-constraints.c (process_alt_operands): Decrease reject for
3754         earlyclobber matching.
3756 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3758         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
3760 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3762         * config/spu/spu.c (pad_bb): Do not crash when the last
3763         insn is CODE_FOR_blockage.
3765 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3767         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
3768         lies outside the target mode.
3770 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3772         PR target/60735
3773         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
3774         software floating point or no floating point registers, do not
3775         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
3776         in GPRs that occurs after we tested for GPRs that would never be
3777         true.
3779         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
3780         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
3781         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
3782         specifically allow DDmode, since that does not use the SPE SIMD
3783         instructions.
3785 2014-04-02  Richard Biener  <rguenther@suse.de>
3787         PR middle-end/60729
3788         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
3789         MODE_INTs.  Properly use negv_optab.
3790         (expand_abs): Likewise.
3792 2014-04-02  Richard Biener  <rguenther@suse.de>
3794         PR bootstrap/60719
3795         * Makefile.in (install-driver): Guard extra installs with special
3796         names properly.
3798 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
3800         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
3801         Document vec_vgbbd.
3803 2014-04-01  Richard Henderson  <rth@redhat.com>
3805         PR target/60704
3806         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
3807         alternative enabled before register allocation.
3809 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
3811         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
3812         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
3813         typo.
3814         (nios2_large_got_address): Remove unneeded 'sym' parameter.
3815         (nios2_got_address): Update nios2_large_got_address call site.
3816         (nios2_delegitimize_address): New function.
3817         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
3818         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
3819         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
3821 2014-04-01  Martin Husemann  <martin@duskware.de>
3823         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
3824         for -mabi=32.
3826 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
3828         PR rtl-optimization/60604
3829         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
3830         check from register_operand.
3831         (register_operand): Redefine in terms of general_operand.
3832         (nonmemory_operand): Use register_operand for the non-constant cases.
3834 2014-04-01  Richard Biener  <rguenther@suse.de>
3836         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
3838 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3840         * doc/invoke.texi (mapp-regs): Clarify.
3842 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
3844         * config/i386/avx512fintrin.h (__v32hi): Define type.
3845         (__v64qi): Likewise.
3846         (_mm512_set1_epi8): Define.
3847         (_mm512_set1_epi16): Define.
3848         (_mm512_set4_epi32): Define.
3849         (_mm512_set4_epi64): Define.
3850         (_mm512_set4_pd): Define.
3851         (_mm512_set4_ps): Define.
3852         (_mm512_setr4_epi64): Define.
3853         (_mm512_setr4_epi32): Define.
3854         (_mm512_setr4_pd): Define.
3855         (_mm512_setr4_ps): Define.
3856         (_mm512_setzero_epi32): Define.
3858 2014-03-31  Martin Jambor  <mjambor@suse.cz>
3860         PR middle-end/60647
3861         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
3862         callsite_arguments_match_p.  Updated all callers.  Also check types of
3863         corresponding formal parameters and actual arguments.
3864         (not_all_callers_have_enough_arguments_p) Renamed to
3865         some_callers_have_mismatched_arguments_p.
3867 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
3869         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
3871 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
3873         PR target/60034
3874         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
3875         section anchor.
3877 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
3879         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
3880         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
3881         Split out
3882         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
3883         Use FMAMODE_NOVF512 mode iterator.
3884         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
3885         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
3886         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
3887         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
3888         Split out
3889         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
3890         Use VF_128_256 mode iterator.
3891         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
3892         Ditto.
3894 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
3896         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
3897         static chain if needed.
3899 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
3901         PR target/60697
3902         * lra-constraints.c (index_part_to_reg): New.
3903         (process_address): Use it.
3905 2014-03-27  Jeff Law  <law@redhat.com>
3906             Jakub Jelinek  <jakub@redhat.com>
3908         PR target/60648
3909         * expr.c (do_tablejump): Use simplify_gen_binary rather than
3910         gen_rtx_{PLUS,MULT} to build up the address expression.
3912         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
3913         creating non-canonical RTL.
3915 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
3917         PR ipa/60243
3918         * ipa-inline.c (want_inline_small_function_p): Short circuit large
3919         functions; reorganize to make cheap checks first.
3920         (inline_small_functions): Do not estimate growth when dumping;
3921         it is expensive.
3922         * ipa-inline.h (inline_summary): Add min_size.
3923         (growth_likely_positive): New function.
3924         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
3925         (set_cond_stmt_execution_predicate): Cleanup.
3926         (estimate_edge_size_and_time): Compute min_size.
3927         (estimate_calls_size_and_time): Likewise.
3928         (estimate_node_size_and_time): Likewise.
3929         (inline_update_overall_summary): Update min_size.
3930         (do_estimate_edge_time): Likewise.
3931         (do_estimate_edge_size): Update.
3932         (do_estimate_edge_hints): Update.
3933         (growth_likely_positive): New function.
3935 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
3937         PR target/60693
3938         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
3939         also if addr has VOIDmode.
3941 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3943         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
3944         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
3945         Declare extern.
3946         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
3947         instructions as well as AdvancedSIMD loads.
3949 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3951         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
3952         Use crypto_aese type.
3953         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
3954         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
3955         crypto_aese, crypto_aesmc.  Move to types.md.
3956         * config/arm/types.md (crypto_aes): Split into crypto_aese,
3957         crypto_aesmc.
3958         * config/arm/iterators.md (crypto_type): Likewise.
3960 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
3962         * cgraph.c: Include expr.h and tree-dfa.h.
3963         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
3964         remove LHS.
3966 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
3968         PR target/60675
3969         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
3970         regs from checking multi-reg pseudos.
3972 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3974         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
3976 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3978         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
3979         if it would clobber the stack pointer, even temporarily.
3981 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3983         * mode-switching.c: Make small adjustments to the top comment.
3985 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
3987         * config/rs6000/constraints.md (wD constraint): New constraint to
3988         match the constant integer to get the top DImode/DFmode out of a
3989         vector in a VSX register.
3991         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
3992         match the constant integer to get the top DImode/DFmode out of a
3993         vector in a VSX register.
3995         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
3996         for ISA 2.07.
3998         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3999         vbpermq builtins.
4001         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4002         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
4004         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
4005         Optimize vec_extract of 64-bit values, where the value being
4006         extracted is in the top word, where we can use scalar
4007         instructions.  Add direct move and store support.  Combine the big
4008         endian/little endian vector select load support into a single insn.
4009         (vsx_extract_<mode>_internal1): Likewise.
4010         (vsx_extract_<mode>_internal2): Likewise.
4011         (vsx_extract_<mode>_load): Likewise.
4012         (vsx_extract_<mode>_store): Likewise.
4013         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
4014         combined into vsx_extract_<mode>_load.
4015         (vsx_extract_<mode>_one_le): Likewise.
4017         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
4018         define the top 64-bit vector element.
4020         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
4021         constraint.
4023         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
4024         Document vec_vbpermq builtin.
4026         PR target/60672
4027         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
4028         enable use of xxsldwi and xxpermdi builtin functions.
4029         (vec_xxpermdi): Likewise.
4031         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
4032         Document use of vec_xxsldwi and vec_xxpermdi builtins.
4034 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
4036         PR rtl-optimization/60650
4037         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
4038         first_p.  Use it.
4039         (find_spills_for): New.
4040         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
4041         Spill all pseudos on the second iteration.
4043 2014-03-27  Marek Polacek  <polacek@redhat.com>
4045         PR c/50347
4046         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
4047         types.
4049 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4051         * config/s390/s390.c (s390_can_use_return_insn): Check for
4052         call-saved FPRs on 31 bit.
4054 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
4056         PR middle-end/60682
4057         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
4058         if they need regimplification, just drop them instead of
4059         calling gimple_regimplify_operands on them.
4061 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4063         PR target/60580
4064         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
4065         (aarch64_frame_pointer_required): Adjust logic.
4066         (aarch64_can_eliminate): Adjust logic.
4067         (aarch64_override_options_after_change): Adjust logic.
4069 2014-03-27  Dehao Chen  <dehao@google.com>
4071         * ipa-inline.c (early_inliner): Update node's inline info.
4073 2014-03-26  Dehao Chen  <dehao@google.com>
4075         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
4076         compiler inserted conditional jumps for NAN float check.
4078 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
4080         * ubsan.h (ubsan_create_data): Change second argument's type
4081         to const location_t *.
4082         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
4083         _("<unknown>").
4084         (ubsan_create_data): Change second argument to const location_t *PLOC.
4085         Create Loc field whenever PLOC is non-NULL.
4086         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
4087         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
4088         callers.
4090         PR other/59545
4091         * real.c (real_to_integer2): Change type of low to UHWI.
4093 2014-03-26  Tobias Burnus  <burnus@net-b.de>
4095         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
4096         (CILK_SELF_SPECS): New define.
4097         (driver_self_specs): Use it.
4099 2014-03-26  Richard Biener  <rguenther@suse.de>
4101         * tree-pretty-print.c (percent_K_format): Implement special
4102         case for LTO and its stripped down BLOCK tree.
4104 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
4106         PR sanitizer/60636
4107         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
4109         * tree-vrp.c (simplify_internal_call_using_ranges): If only
4110         one range is range_int_cst_p, but not both, at least optimize
4111         addition/subtraction of 0 and multiplication by 0 or 1.
4112         * gimple-fold.c (gimple_fold_call): Fold
4113         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
4114         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
4115         INTEGER_CSTs, try to fold at least x * 0 and y - y.
4117 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4119         PR rtl-optimization/60452
4120         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
4121         <case REG>: Return 1 for invalid offsets from the frame pointer.
4123 2014-03-26  Marek Polacek  <polacek@redhat.com>
4125         PR c/37428
4126         * doc/extend.texi (C Extensions): Mention variable-length arrays in
4127         a structure/union.
4129 2014-03-26  Marek Polacek  <polacek@redhat.com>
4131         PR c/39525
4132         * doc/extend.texi (Designated Inits): Describe what happens to omitted
4133         field members.
4135 2014-03-26  Marek Polacek  <polacek@redhat.com>
4137         PR other/59545
4138         * ira-color.c (update_conflict_hard_regno_costs): Perform the
4139         multiplication in unsigned type.
4141 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
4143         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
4145 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
4147         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
4149 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
4151         PR ipa/60315
4152         * cif-code.def (UNREACHABLE) New code.
4153         * ipa-inline.c (inline_small_functions): Skip edges to
4154         __builtlin_unreachable.
4155         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
4156         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
4157         predicate to __bulitin_unreachable.
4158         (set_cond_stmt_execution_predicate): Fix issue when
4159         invert_tree_comparison returns ERROR_MARK.
4160         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
4161         propagate to inline clones.
4162         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
4163         to unreachable.
4164         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
4165         * cgraphclones.c (cgraph_clone_node): If call destination is already
4166         ureachable, do not redirect it back.
4167         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
4168         unreachable.
4170 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
4172         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
4173         Do not modify inline clones.
4175 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
4177         * config/i386/i386.md (general_sext_operand): New mode attr.
4178         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
4179         don't generate (sign_extend (const_int)).
4180         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
4181         operands[2].  Use We constraint instead of <i> and
4182         <general_sext_operand> predicate instead of <general_operand>.
4183         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
4184         * config/i386/constraints.md (We): New constraint.
4185         * config/i386/predicates.md (x86_64_sext_operand,
4186         sext_operand): New predicates.
4188 2014-03-25  Martin Jambor  <mjambor@suse.cz>
4190         PR ipa/60600
4191         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
4192         inconsistent devirtualizations to __builtin_unreachable.
4194 2014-03-25  Marek Polacek  <polacek@redhat.com>
4196         PR c/35449
4197         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
4199 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
4201         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
4202         order of elements for big-endian.
4204 2014-03-25  Richard Biener  <rguenther@suse.de>
4206         PR middle-end/60635
4207         * gimplify-me.c (gimple_regimplify_operands): Update the
4208         re-gimplifed stmt.
4210 2014-03-25  Martin Jambor  <mjambor@suse.cz>
4212         PR ipa/59176
4213         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
4214         (lto_output_varpool_node): Likewise.
4215         (input_overwrite_node): Likewise.
4216         (input_varpool_node): Likewise.
4218 2014-03-25  Richard Biener  <rguenther@suse.de>
4220         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
4221         (run_gcc): Likewise.
4223 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
4225         * combine.c (simplify_compare_const): Add MODE argument.
4226         Handle mode_width 0 as very large mode_width.
4227         (try_combine, simplify_comparison): Adjust callers.
4229         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
4230         type to avoid signed integer overflow.
4231         * explow.c (plus_constant): Likewise.
4233 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4235         * doc/generic.texi: Correct typos.
4237 2014-03-24  Tobias Burnus  <burnus@net-b.de>
4239         * doc/invoke.texi (-flto): Expand section about
4240         using static libraries with LTO.
4242 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4244         PR rtl-optimization/60501
4245         * optabs.def (addptr3_optab): New optab.
4246         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
4247         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
4248         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
4250         * lra.c (emit_add3_insn): Use the addptr pattern if available.
4252         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
4254 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
4256         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
4257         _mm512_set1_pd.
4259         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
4260         (_mm256_undefined_ps): Define.
4261         (_mm256_undefined_pd): Define.
4262         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
4263         (_mm_undefined_pd): Define.
4264         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
4265         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
4266         (_mm512_undefined_ps): Define.
4267         (_mm512_undefined_pd): Define.
4268         Use _mm*_undefined_*.
4269         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
4271 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
4273         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
4274         (lshr_simd): DI mode added.
4275         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
4276         (aarch64_ushr_simddi): Likewise.
4277         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
4278         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
4279         (vshrd_n_u64): Likewise.
4281 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4283         * Makefile.in (s-macro_list): Depend on cc1.
4285 2014-03-23  Teresa Johnson  <tejohnson@google.com>
4287         * ipa-utils.c (ipa_print_order): Use specified dump file.
4289 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
4291         PR rtl-optimization/60601
4292         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
4294         * gcc.c (eval_spec_function): Initialize save_growing_value.
4296 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
4298         PR sanitizer/60613
4299         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
4300         code == MINUS_EXPR, never swap op0 with op1.
4302         * toplev.c (init_local_tick): Avoid signed integer multiplication
4303         overflow.
4304         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
4305         shift by first operand's bitsize.
4307 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
4309         PR target/60610
4310         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
4311         redefine to 1 or 0.
4312         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
4313         TARGET_ISA_64BIT_P(x).
4315 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4317         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
4318         pattern for vector nor instead of subtract from splat(-1).
4319         (altivec_expand_vec_perm_const_le): Likewise.
4321 2014-03-21  Richard Henderson  <rth@twiddle.net>
4323         PR target/60598
4324         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
4325         related insns after epilogue_completed.
4327 2014-03-21  Martin Jambor  <mjambor@suse.cz>
4329         PR ipa/59176
4330         * cgraph.h (symtab_node): New flag body_removed.
4331         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
4332         when removing bodies.
4333         * symtab.c (dump_symtab_base): Dump body_removed flag.
4334         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
4335         had their bodies removed.
4337 2014-03-21  Martin Jambor  <mjambor@suse.cz>
4339         PR ipa/60419
4340         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
4341         in the border.
4343 2014-03-21  Richard Biener  <rguenther@suse.de>
4345         PR tree-optimization/60577
4346         * tree-core.h (struct tree_base): Document nothrow_flag use
4347         in DECL_NONALIASED.
4348         * tree.h (DECL_NONALIASED): New.
4349         (may_be_aliased): Adjust.
4350         * coverage.c (build_var): Set DECL_NONALIASED.
4352 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
4354         * expr.c (expand_expr_real_1): Remove outdated comment.
4356 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
4358         PR middle-end/60597
4359         * ira.c (adjust_cleared_regs): Call copy_rtx on
4360         *reg_equiv[REGNO (loc)].src_p before passing it to
4361         simplify_replace_fn_rtx.
4363         PR target/60568
4364         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
4365         into CONST, put pic register as first operand of PLUS.  Use
4366         gen_const_mem for both 32-bit and 64-bit PIC got loads.
4368 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4370         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
4372 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
4374         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
4375         around for store forwarding issue in the FPU on the UT699.
4376         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
4377         loads and operations if -mfix-ut699 is specified.
4378         (divtf3_hq): Tweak attribute.
4379         (sqrttf2_hq): Likewise.
4381 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
4383         * calls.c (store_one_arg): Remove incorrect const qualification on the
4384         type of the temporary.
4385         * cfgexpand.c (expand_return): Likewise.
4386         * expr.c (expand_constructor): Likewise.
4387         (expand_expr_real_1): Likewise.
4389 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4391         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
4392         of parts.
4394 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
4396         PR target/60039
4397         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
4399 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
4401         * config/arm/aarch-common-protos.h
4402         (alu_cost_table): Fix spelling of "extend".
4403         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
4405 2014-03-19  Richard Biener  <rguenther@suse.de>
4407         PR middle-end/60553
4408         * tree-core.h (tree_type_common): Re-order pointer members
4409         to reduce recursion depth during GC walks.
4411 2014-03-19  Marek Polacek  <polacek@redhat.com>
4413         PR sanitizer/60569
4414         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
4415         before accessing it.
4417 2014-03-19  Richard Biener  <rguenther@suse.de>
4419         PR lto/59543
4420         * lto-streamer-in.c (input_function): In WPA stage do not drop
4421         debug stmts.
4423 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
4425         PR tree-optimization/60559
4426         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
4427         with build_zero_cst assignment.
4429 2014-03-18  Kai Tietz  <ktietz@redhat.com>
4431         PR rtl-optimization/56356
4432         * sdbout.c (sdbout_parms): Verify that parms'
4433         incoming argument is valid.
4434         (sdbout_reg_parms): Likewise.
4436 2014-03-18  Richard Henderson  <rth@redhat.com>
4438         PR target/60562
4439         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
4440         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
4441         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
4443 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
4445         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
4446         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
4447         Italicize plugin event names in description.  Explain that
4448         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
4449         Remind that no GCC functions should be called after PLUGIN_FINISH.
4450         Explain what pragmas with expansion are.
4452 2014-03-18  Martin Liska  <mliska@suse.cz>
4454         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
4455         gimple call statement is update.
4456         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
4457         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
4459 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
4461         PR sanitizer/60557
4462         * ubsan.c (ubsan_instrument_unreachable): Call
4463         initialize_sanitizer_builtins.
4464         (ubsan_pass): Likewise.
4466         PR sanitizer/60535
4467         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
4468         varpool_finalize_decl instead of rest_of_decl_compilation.
4470 2014-03-18  Richard Biener  <rguenther@suse.de>
4472         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
4473         by using bitmap_and_compl instead of bitmap_and_compl_into.
4474         (df_rd_transfer_function): Likewise.
4476 2014-03-18  Richard Biener  <rguenther@suse.de>
4478         * doc/lto.texi (fresolution): Fix typo.
4480 2014-03-18  Richard Biener  <rguenther@suse.de>
4482         * doc/invoke.texi (flto): Update for changes in 4.9.
4484 2014-03-18  Richard Biener  <rguenther@suse.de>
4486         * doc/loop.texi: Remove section on the removed lambda framework.
4487         Update loop docs with recent changes in preserving loop structure.
4489 2014-03-18  Richard Biener  <rguenther@suse.de>
4491         * doc/lto.texi (-fresolution): Document.
4493 2014-03-18  Richard Biener  <rguenther@suse.de>
4495         * doc/contrib.texi: Adjust my name.
4497 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
4499         PR ipa/58721
4500         * internal-fn.c: Include diagnostic-core.h.
4501         (expand_BUILTIN_EXPECT): New function.
4502         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
4503         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
4504         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
4505         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
4506         IFN_BUILTIN_EXPECT.
4507         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
4508         Revert 3 argument __builtin_expect code.
4509         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
4510         * gimple-fold.c (gimple_fold_call): Likewise.
4511         * tree.h (fold_builtin_expect): New prototype.
4512         * builtins.c (build_builtin_expect_predicate): Add predictor
4513         argument, if non-NULL, create 3 argument __builtin_expect.
4514         (fold_builtin_expect): No longer static.  Add ARG2 argument,
4515         pass it through to build_builtin_expect_predicate.
4516         (fold_builtin_2): Adjust caller.
4517         (fold_builtin_3): Handle BUILT_IN_EXPECT.
4518         * internal-fn.def (BUILTIN_EXPECT): New.
4520 2014-03-18  Tobias Burnus  <burnus@net-b.de>
4522         PR ipa/58721
4523         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
4524         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
4525         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
4527 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
4529         PR ipa/58721
4530         * predict.c (combine_predictions_for_bb): Fix up formatting.
4531         (expr_expected_value_1, expr_expected_value): Add predictor argument,
4532         fill what it points to if non-NULL.
4533         (tree_predict_by_opcode): Adjust caller, use the predictor.
4534         * predict.def (PRED_COMPARE_AND_SWAP): Add.
4536 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
4538         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
4539         proper constant for the store mode.
4541 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
4543         * symtab.c (change_decl_assembler_name): Fix transparent alias
4544         chain construction.
4546 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
4548         * config/aarch64/aarch64.c: Correct the comments about the
4549         aarch64 stack layout.
4551 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
4553         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
4554         check for GF_OMP_FOR_KIND_FOR.
4556 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4558         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
4559         ymm and zmm register names.
4561 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
4563         PR target/60516
4564         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
4565         note creation for the 2010-08-31 changes.
4567 2014-03-17  Marek Polacek  <polacek@redhat.com>
4569         PR middle-end/60534
4570         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
4571         as -fno-tree-loop-vectorize.
4572         (expand_omp_simd): Likewise.
4574 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
4576         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
4577         (eligible_for_call_delay): New prototype.
4578         * config/sparc/sparc.c (tls_call_delay): Rename into...
4579         (eligible_for_call_delay): ...this.  Return false if the instruction
4580         cannot be put in the delay slot of a branch.
4581         (eligible_for_restore_insn): Simplify.
4582         (eligible_for_return_delay): Return false if the instruction cannot be
4583         put in the delay slot of a branch and simplify.
4584         (eligible_for_sibcall_delay): Return false if the instruction cannot be
4585         put in the delay slot of a branch.
4586         * config/sparc/sparc.md (fix_ut699): New attribute.
4587         (tls_call_delay): Delete.
4588         (in_call_delay): Reimplement.
4589         (eligible_for_sibcall_delay): Rename into...
4590         (in_sibcall_delay): ...this.
4591         (eligible_for_return_delay): Rename into...
4592         (in_return_delay): ...this.
4593         (in_branch_delay): Reimplement.
4594         (in_uncond_branch_delay): Delete.
4595         (in_annul_branch_delay): Delete.
4597 2014-03-14  Richard Henderson  <rth@redhat.com>
4599         PR target/60525
4600         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
4601         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
4602         (*floathi<X87MODEF>2_i387_with_temp): Remove.
4603         (floathi splitters): Remove.
4604         (float<SWI48x>xf2): New pattern.
4605         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
4606         code that tried to handle DImode for 32-bit, but which was excluded
4607         by the pattern's condition.  Drop allocation of stack temporary.
4608         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
4609         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
4610         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
4611         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
4612         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
4613         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
4614         (*float<SWI48><MODEF>2_sse_interunit): Remove.
4615         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
4616         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
4617         (*float<SWI48x><X87MODEF>2_i387): Remove.
4618         (all float _with_temp splitters): Remove.
4619         (*float<SWI48x><MODEF>2_i387): New pattern.
4620         (*float<SWI48><MODEF>2_sse): New pattern.
4621         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
4622         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
4624 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
4625             Marek Polacek  <polacek@redhat.com>
4627         PR middle-end/60484
4628         * common.opt (dump_base_name_prefixed): New Variable.
4629         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
4630         if x_dump_base_name_prefixed is already set, set it at the end.
4632 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
4634         PR rtl-optimization/60508
4635         * lra-constraints.c (get_reload_reg): Add new parameter
4636         in_subreg_p.
4637         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
4638         Pass the new parameter values.
4640 2014-03-14  Richard Biener  <rguenther@suse.de>
4642         * common.opt: Revert unintented changes from r205065.
4643         * opts.c: Likewise.
4645 2014-03-14  Richard Biener  <rguenther@suse.de>
4647         PR middle-end/60518
4648         * cfghooks.c (split_block): Properly adjust all loops the
4649         block was a latch of.
4651 2014-03-14  Martin Jambor  <mjambor@suse.cz>
4653         PR lto/60461
4654         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
4655         and simplify it.
4657 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
4659         PR target/59396
4660         * config/avr/avr.c (avr_set_current_function): Pass function name
4661         through default_strip_name_encoding before sanity checking instead
4662         of skipping the first char of the assembler name.
4664 2014-03-13  Richard Henderson  <rth@redhat.com>
4666         PR debug/60438
4667         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
4668         (ix86_force_to_memory, ix86_free_from_memory): Remove.
4669         * config/i386/i386-protos.h: Likewise.
4670         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
4671         in the expander instead of a splitter.
4672         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
4673         any possibility of requiring a memory.
4674         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
4675         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
4676         (fp branch splitters): Update for ix86_split_fp_branch.
4677         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
4678         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
4679         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
4680         (*fop_<MODEF>_2_i387): Remove f/r alternative.
4681         (*fop_<MODEF>_3_i387): Likewise.
4682         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
4683         (splitters for the fop_* register patterns): Remove.
4684         (fscalexf4_i387): Rename from *fscalexf4_i387.
4685         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
4687 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
4689         PR tree-optimization/59779
4690         * tree-dfa.c (get_ref_base_and_extent): Use double_int
4691         type for bitsize and maxsize instead of HOST_WIDE_INT.
4693 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
4695         PR rtl-optimization/57320
4696         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
4697         the CFG after thread_prologue_and_epilogue_insns.
4699 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
4701         PR rtl-optimization/57189
4702         * lra-constraints.c (process_alt_operands): Disfavor spilling
4703         vector pseudos.
4705 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
4707         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
4709 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
4711         PR tree-optimization/59025
4712         PR middle-end/60418
4713         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
4714         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
4716 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
4718         PR target/60486
4719         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
4720         calls of avr_out_plus_1.
4722 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
4724         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
4725         BB's single pred and update the father loop's latch info later.
4727 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4729         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
4730         (VEC_M): Likewise.
4731         (VEC_N): Likewise.
4732         (VEC_R): Likewise.
4733         (VEC_base): Likewise.
4734         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
4735         registers, we need to swap double words in little endian mode.
4737         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
4738         to be a container mode for 128-bit integer operations added in ISA
4739         2.07.  Unlike TImode and PTImode, the preferred register set is
4740         the Altivec/VMX registers for the 128-bit operations.
4742         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
4743         declarations.
4744         (rs6000_split_128bit_ok_p): Likewise.
4746         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
4747         macros for creating ISA 2.07 normal and overloaded builtin
4748         functions with 3 arguments.
4749         (BU_P8V_OVERLOAD_3): Likewise.
4750         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
4751         for use as overloaded functions.
4752         (VPERM_1TI_UNS): Likewise.
4753         (VSEL_1TI): Likewise.
4754         (VSEL_1TI_UNS): Likewise.
4755         (ST_INTERNAL_1ti): Likewise.
4756         (LD_INTERNAL_1ti): Likewise.
4757         (XXSEL_1TI): Likewise.
4758         (XXSEL_1TI_UNS): Likewise.
4759         (VPERM_1TI): Likewise.
4760         (VPERM_1TI_UNS): Likewise.
4761         (XXPERMDI_1TI): Likewise.
4762         (SET_1TI): Likewise.
4763         (LXVD2X_V1TI): Likewise.
4764         (STXVD2X_V1TI): Likewise.
4765         (VEC_INIT_V1TI): Likewise.
4766         (VEC_SET_V1TI): Likewise.
4767         (VEC_EXT_V1TI): Likewise.
4768         (EQV_V1TI): Likewise.
4769         (NAND_V1TI): Likewise.
4770         (ORC_V1TI): Likewise.
4771         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
4772         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
4773         overloaded builtin.
4774         (VADDUQM): Likewise.
4775         (VSUBCUQ): Likewise.
4776         (VADDEUQM): Likewise.
4777         (VADDECUQ): Likewise.
4778         (VSUBEUQM): Likewise.
4779         (VSUBECUQ): Likewise.
4781         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
4782         __int128_t and __uint128_t types.
4783         (__uint128_type): Likewise.
4784         (altivec_categorize_keyword): Add support for vector __int128_t,
4785         vector __uint128_t, vector __int128, and vector unsigned __int128
4786         as a container type for TImode operations that need to be done in
4787         VSX/Altivec registers.
4788         (rs6000_macro_to_expand): Likewise.
4789         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
4790         to support 128-bit integer instructions vaddcuq, vadduqm,
4791         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
4792         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
4794         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
4795         for V1TImode, and set up preferences to use VSX/Altivec registers.
4796         Setup VSX reload handlers.
4797         (rs6000_debug_reg_global): Likewise.
4798         (rs6000_init_hard_regno_mode_ok): Likewise.
4799         (rs6000_preferred_simd_mode): Likewise.
4800         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
4801         (easy_altivec_constant): Likewise.
4802         (output_vec_const_move): Likewise.
4803         (rs6000_expand_vector_set): Convert V1TImode set and extract to
4804         simple move.
4805         (rs6000_expand_vector_extract): Likewise.
4806         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
4807         addressing.
4808         (rs6000_const_vec): Add support for V1TImode.
4809         (rs6000_emit_le_vsx_load): Swap double words when loading or
4810         storing TImode/V1TImode.
4811         (rs6000_emit_le_vsx_store): Likewise.
4812         (rs6000_emit_le_vsx_move): Likewise.
4813         (rs6000_emit_move): Add support for V1TImode.
4814         (altivec_expand_ld_builtin): Likewise.
4815         (altivec_expand_st_builtin): Likewise.
4816         (altivec_expand_vec_init_builtin): Likewise.
4817         (altivec_expand_builtin): Likewise.
4818         (rs6000_init_builtins): Add support for V1TImode type.  Add
4819         support for ISA 2.07 128-bit integer builtins.  Define type names
4820         for the VSX/Altivec vector types.
4821         (altivec_init_builtins): Add support for overloaded vector
4822         functions with V1TImode type.
4823         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
4824         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
4825         external function.
4826         (rs6000_split_128bit_ok_p): Likewise.
4827         (rs6000_handle_altivec_attribute): Create V1TImode from vector
4828         __int128_t and vector __uint128_t.
4830         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
4831         and mode attributes.
4832         (VSX_M): Likewise.
4833         (VSX_M2): Likewise.
4834         (VSm): Likewise.
4835         (VSs): Likewise.
4836         (VSr): Likewise.
4837         (VSv): Likewise.
4838         (VS_scalar): Likewise.
4839         (VS_double): Likewise.
4840         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
4842         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
4843         we support the ISA 2.07 128-bit integer arithmetic instructions.
4844         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
4845         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
4846         and TImode types for use with the builtin functions.
4847         (V1TI_type_node): Likewise.
4848         (unsigned_V1TI_type_node): Likewise.
4849         (intTI_type_internal_node): Likewise.
4850         (uintTI_type_internal_node): Likewise.
4852         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
4853         128-bit builtin functions.
4854         (UNSPEC_VADDEUQM): Likewise.
4855         (UNSPEC_VADDECUQ): Likewise.
4856         (UNSPEC_VSUBCUQ): Likewise.
4857         (UNSPEC_VSUBEUQM): Likewise.
4858         (UNSPEC_VSUBECUQ): Likewise.
4859         (VM): Add V1TImode to vector mode iterators.
4860         (VM2): Likewise.
4861         (VI_unit): Likewise.
4862         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
4863         (altivec_vaddcuq): Likewise.
4864         (altivec_vsubuqm): Likewise.
4865         (altivec_vsubcuq): Likewise.
4866         (altivec_vaddeuqm): Likewise.
4867         (altivec_vaddecuq): Likewise.
4868         (altivec_vsubeuqm): Likewise.
4869         (altivec_vsubecuq): Likewise.
4871         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
4872         mode iterators.
4873         (BOOL_128): Likewise.
4874         (BOOL_REGS_OUTPUT): Likewise.
4875         (BOOL_REGS_OP1): Likewise.
4876         (BOOL_REGS_OP2): Likewise.
4877         (BOOL_REGS_UNARY): Likewise.
4878         (BOOL_REGS_AND_CR0): Likewise.
4880         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
4881         128-bit integer builtin support.
4882         (vec_vadduqm): Likewise.
4883         (vec_vaddecuq): Likewise.
4884         (vec_vaddeuqm): Likewise.
4885         (vec_vsubecuq): Likewise.
4886         (vec_vsubeuqm): Likewise.
4887         (vec_vsubcuq): Likewise.
4888         (vec_vsubuqm): Likewise.
4890         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
4891         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
4892         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
4893         128-bit integer add/subtract to ISA 2.07.
4895 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
4897         * config/arc/arc.c (arc_predicate_delay_insns):
4898         Fix third argument passed to conditionalize_nonjump.
4900 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
4902         * config/aarch64/aarch64-builtins.c
4903         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
4904         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
4905         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
4906         instead of __builtin_lfloor.
4907         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
4909 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
4911         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
4912         (tree_ssa_ifcombine_bb_1): New function.
4913         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
4914         is an empty forwarder block to then_bb or vice versa and then_bb
4915         and else_bb are effectively swapped.
4917 2014-03-12  Christian Bruel  <christian.bruel@st.com>
4919         PR target/60264
4920         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
4921         REG_CFA_DEF_CFA note.
4922         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
4923         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
4925 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4927         PR tree-optimization/60454
4928         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
4930 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4932         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
4933         Do not define target_cpu_default2 to generic.
4934         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
4935         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
4936         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
4938 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
4939             Marc Glisse  <marc.glisse@inria.fr>
4941         PR tree-optimization/60502
4942         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
4943         instead of build_low_bits_mask.
4945 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
4947         PR middle-end/60482
4948         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
4949         if there are multiple uses, but op doesn't live on E edge.
4950         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
4951         clobber stmts before __builtin_unreachable.
4953 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
4955         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
4956         hard_frame_pointer_rtx.
4957         * cse.c (cse_insn): Remove volatile check.
4958         * cselib.c (cselib_process_insn): Likewise.
4959         * dse.c (scan_insn): Likewise.
4961 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
4963         * config/arc/arc.c (conditionalize_nonjump): New function,
4964         broken out of ...
4965         (arc_ifcvt): ... this.
4966         (arc_predicate_delay_insns): Use it.
4968 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
4970         * config/arc/predicates.md (extend_operand): During/after reload,
4971         allow const_int_operand.
4972         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
4973         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
4974         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
4975         to "i".
4976         (umulsi3_highpart_i): Likewise.
4978 2014-03-11  Richard Biener  <rguenther@suse.de>
4980         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
4981         Add asserts to guard possible wrong-code bugs.
4983 2014-03-11  Richard Biener  <rguenther@suse.de>
4985         PR tree-optimization/60429
4986         PR tree-optimization/60485
4987         * tree-ssa-structalias.c (set_union_with_increment): Properly
4988         take into account all fields that overlap the shifted vars.
4989         (do_sd_constraint): Likewise.
4990         (do_ds_constraint): Likewise.
4991         (get_constraint_for_ptr_offset): Likewise.
4993 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
4995         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
4996         (nios2_compute_frame_layout):
4997         Add calculation of cfun->machine->fp_save_offset.
4998         (nios2_expand_prologue): Correct setting of frame pointer register
4999         in prologue.
5000         (nios2_expand_epilogue): Update recovery of stack pointer from
5001         frame pointer accordingly.
5002         (nios2_initial_elimination_offset): Update calculation of offset
5003         for eliminating to HARD_FRAME_POINTER_REGNUM.
5005 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
5007         PR ipa/60457
5008         * ipa.c (symtab_remove_unreachable_nodes): Don't call
5009         cgraph_get_create_node on VAR_DECLs.
5011 2014-03-10  Richard Biener  <rguenther@suse.de>
5013         PR middle-end/60474
5014         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
5016 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
5018         * config/vms/vms.opt (vms_float_format): New variable.
5020 2014-03-08  Tobias Burnus  <burnus@net-b.de>
5022         * doc/invoke.texi (-fcilkplus): Update implementation status.
5024 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
5025             Richard Biener  <rguenther@suse.de>
5027         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
5028         consistently accross all TUs.
5029         (run_gcc): Enable -fshort-double automatically at link at link-time
5030         and disallow override.
5032 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
5034         PR target/58271
5035         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
5036         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
5037         if they can't be used.
5039 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5041         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
5042         for Solaris 11/x86 ld.
5043         * configure: Regenerate.
5045 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5047         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
5048         (LIB_TLS_SPEC): Save as ld_tls_libs.
5049         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
5050         (HAVE_AS_IX86_TLSLDM): New test.
5051         * configure, config.in: Regenerate.
5052         * config/i386/i386.c (legitimize_tls_address): Fall back to
5053         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
5054         cannot support TLS_MODEL_LOCAL_DYNAMIC.
5055         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
5056         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
5058 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
5060         * common.opt (fira-loop-pressure): Mark as optimization.
5062 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
5064         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
5065         an OpenMP mappable type.
5067 2014-03-06  Matthias Klose  <doko@ubuntu.com>
5069         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
5070         MULTILIB_OSDIRNAMES is not defined.
5072 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
5073             Meador Inge  <meadori@codesourcery.com>
5075         PR target/58595
5076         * config/arm/arm.c (arm_tls_symbol_p): Remove.
5077         (arm_legitimize_address): Call legitimize_tls_address for any
5078         arm_tls_referenced_p expression, handle constant addend.  Call it
5079         before testing for !TARGET_ARM.
5080         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
5082 2014-03-06  Richard Biener  <rguenther@suse.de>
5084         PR middle-end/60445
5085         PR lto/60424
5086         PR lto/60427
5087         Revert
5088         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
5090         * tree-streamer.c (record_common_node): Assert we don't record
5091         nodes with type double.
5092         (preload_common_node): Skip type double, complex double and double
5093         pointer since it is now frontend dependent due to fshort-double option.
5095 2014-03-06  Richard Biener  <rguenther@suse.de>
5097         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
5098         or -fno-lto is specified and the linker has full plugin support.
5099         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
5100         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
5101         * lto-wrapper.c (merge_and_complain): Merge compile-time
5102         optimization levels.
5103         (run_gcc): And pass it through to the link options.
5105 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
5107         PR debug/60381
5108         Revert:
5109         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
5110         PR debug/59992
5111         * cselib.c (remove_useless_values): Skip to avoid quadratic
5112         behavior if the condition moved from...
5113         (cselib_process_insn): ... here holds.
5115 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
5117         PR plugins/59335
5118         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
5119         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
5121         PR plugins/59335
5122         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
5123         (TM_H): Add x86-tune.def.
5125 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5127         * config/aarch64/aarch64.c (generic_tunings):
5128         Use cortexa57_extra_costs.
5130 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
5132         PR lto/60404
5133         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
5134         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
5135         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
5136         cost for in_lto_p.
5138 2014-03-04  Heiher  <r@hev.cc>
5140         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
5141         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
5143 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
5145         * config/i386/predicates.md (const2356_operand): Change to ...
5146         (const2367_operand): ... this.
5147         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
5148         const2367_operand.
5149         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
5150         (*avx512pf_scatterpf<mode>sf): Ditto.
5151         (avx512pf_scatterpf<mode>df): Ditto.
5152         (*avx512pf_scatterpf<mode>df_mask): Ditto.
5153         (*avx512pf_scatterpf<mode>df): Ditto.
5154         * config/i386/i386.c (ix86_expand_builtin): Update
5155         incorrect hint operand error message.
5157 2014-03-04  Richard Biener  <rguenther@suse.de>
5159         * lto-section-in.c (lto_get_section_data): Fix const cast.
5161 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
5163         * tree-streamer.c (record_common_node): Assert we don't record
5164         nodes with type double.
5165         (preload_common_node): Skip type double, complex double and double
5166         pointer since it is now frontend dependent due to fshort-double option.
5168 2014-03-04  Richard Biener  <rguenther@suse.de>
5170         PR lto/60405
5171         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
5172         (lto_input_toplevel_asms): Likewise.
5173         * lto-section-in.c (lto_get_section_data): Instead do it here
5174         for every section.
5176 2014-03-04  Richard Biener  <rguenther@suse.de>
5178         PR tree-optimization/60382
5179         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
5180         dead PHIs a reduction.
5182 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
5184         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
5185         hint value.
5186         (_mm_prefetch): Move out of GCC target("sse") pragma.
5187         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
5188         GCC target("prfchw") pragma.
5189         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
5190         for locality <= 2.
5191         * config/i386/i386.c (ix86_option_override_internal): Enable
5192         -mprfchw with -mprefetchwt1.
5194 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
5196         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
5197         Mark as varying.
5199 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
5201         * opts.h (CL_PCH_IGNORE): Define.
5202         * targhooks.c (option_affects_pch_p):
5203         Return false for options that have CL_PCH_IGNORE set.
5204         * opt-functions.awk: Process PchIgnore.
5205         * doc/options.texi: Document PchIgnore.
5207         * config/arc/arc.opt (misize): Add PchIgnore property.
5209 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5211         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
5212         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
5213         constraint on constants to permit them being loaded into
5214         GENERAL_REGS or BASE_REGS.
5216 2014-03-03  Nick Clifton  <nickc@redhat.com>
5218         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
5219         anti-cacnonical alternatives.
5220         (negandhi3_real): New pattern.
5221         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
5223 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5225         * config/avr/avr-mcus.def: Remove atxmega16x1.
5226         * config/avr/avr-tables.opt: Regenerate.
5227         * config/avr/t-multilib: Regenerate.
5228         * doc/avr-mmcu.texi: Regenerate.
5230 2014-03-03  Tobias Grosser  <tobias@grosser.es>
5231             Mircea Namolaru  <mircea.namolaru@inria.fr>
5233         PR tree-optimization/58028
5234         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
5235         scalar dimensions.
5237 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5239         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
5240         not handled by recognizers.
5242 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
5244         PR middle-end/60175
5245         * function.c (expand_function_end): Don't emit
5246         clobber_return_register sequence if clobber_after is a BARRIER.
5247         * cfgexpand.c (construct_exit_block): Append instructions before
5248         return_label to prev_bb.
5250 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5252         * config/rs6000/constraints.md: Document reserved use of "wc".
5254 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
5256         PR ipa/60150
5257         * ipa.c (function_and_variable_visibility): When dissolving comdat
5258         group, also set all symbols to local.
5260 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
5262         PR ipa/60306
5264         Revert:
5265         2013-12-14   Jan Hubicka  <jh@suse.cz>
5266         PR middle-end/58477
5267         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
5269 2014-03-02  Jon Beniston  <jon@beniston.com>
5271         PR bootstrap/48230
5272         PR bootstrap/50927
5273         PR bootstrap/52466
5274         PR target/46898
5275         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
5276           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
5277         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
5278         (simple_return, *simple_return): New patterns
5279         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
5280         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
5282 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
5284         * dwarf2out.c (gen_subprogram_die): Tidy.
5286 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
5288         PR target/60071
5289         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
5290         (*mov_t_msb_neg_negc): ... this new insn.
5292 2014-02-28  Jason Merrill  <jason@redhat.com>
5294         PR c++/58678
5295         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
5296         function.
5298 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
5300         PR c++/60314
5301         * dwarf2out.c (decltype_auto_die): New static.
5302         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
5303         (gen_type_die_with_usage): Handle 'decltype(auto)'.
5304         (is_cxx_auto): Likewise.
5306 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
5308         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
5309         we are not using general regs only.
5311 2014-02-28  Richard Biener  <rguenther@suse.de>
5313         PR target/60280
5314         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
5315         previous fix and only allow to remove trivial pre-headers
5316         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
5317         (remove_forwarder_block): Properly update the latch of a loop.
5319 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
5321         PR debug/59992
5322         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
5323         (cselib_preserved_hash_table): New.
5324         (preserve_constants_and_equivs): Move preserved vals to it.
5325         (cselib_find_slot): Look it up first.
5326         (cselib_init): Initialize it.
5327         (cselib_finish): Release it.
5328         (dump_cselib_table): Dump it.
5330 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
5332         PR debug/59992
5333         * cselib.c (remove_useless_values): Skip to avoid quadratic
5334         behavior if the condition moved from...
5335         (cselib_process_insn): ... here holds.
5337 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
5339         PR debug/57232
5340         * var-tracking.c (vt_initialize): Apply the same condition to
5341         preserve the CFA base value.
5343 2014-02-28  Joey Ye  <joey.ye@arm.com>
5345         PR target/PR60169
5346         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
5347         if reload in progress or completed.
5349 2014-02-28  Tobias Burnus  <burnus@net-b.de>
5351         PR middle-end/60147
5352         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
5353         NAMELIST_DECL.
5355 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
5357         * doc/tm.texi.in (Condition Code Status): Update documention for
5358         relative locations of cc0-setter and cc0-user.
5360 2014-02-27  Jeff Law  <law@redhat.com>
5362         PR rtl-optimization/52714
5363         * combine.c (try_combine): When splitting an unrecognized PARALLEL
5364         into two independent simple sets, if I3 is a jump, ensure the
5365         pattern we place into I3 is a (set (pc) ...).
5367 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
5368             Jeff Law  <law@redhat.com>
5370         PR rtl-optimization/49847
5371         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
5372         are in different blocks.
5373         * doc/tm.texi (Condition Code Status): Update documention for
5374         relative locations of cc0-setter and cc0-user.
5376 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
5378         PR target/59222
5379         * lra.c (lra_emit_add): Check SUBREG too.
5381 2014-02-27  Andreas Schwab  <schwab@suse.de>
5383         * config/m68k/m68k.c (m68k_option_override): Disable
5384         -flive-range-shrinkage for classic m68k.
5385         (m68k_override_options_after_change): Likewise.
5387 2014-02-27  Marek Polacek  <polacek@redhat.com>
5389         PR middle-end/59223
5390         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
5391         -Wmaybe-uninitialized.
5393 2014-02-27  Alan Modra  <amodra@gmail.com>
5395         PR target/57936
5396         * reload1.c (emit_input_reload_insns): When reload_override_in,
5397         set old to rl->in_reg when rl->in_reg is a subreg.
5399 2014-02-26  Richard Biener  <rguenther@suse.de>
5401         PR bootstrap/60343
5402         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
5404 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
5406         * common/config/i386/predicates.md (const1256_operand): Remove.
5407         (const2356_operand): New.
5408         (const_1_to_2_operand): Remove.
5409         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
5410         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
5411         (*avx512pf_gatherpf<mode>sf): Ditto.
5412         (avx512pf_gatherpf<mode>df): Ditto.
5413         (*avx512pf_gatherpf<mode>df_mask): Ditto.
5414         (*avx512pf_gatherpf<mode>df): Ditto.
5415         (avx512pf_scatterpf<mode>sf): Ditto.
5416         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
5417         (*avx512pf_scatterpf<mode>sf): Ditto.
5418         (avx512pf_scatterpf<mode>df): Ditto.
5419         (*avx512pf_scatterpf<mode>df_mask): Ditto.
5420         (*avx512pf_scatterpf<mode>df): Ditto.
5421         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
5423 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
5425         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
5426         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
5427         (_mm512_mask_testn_epi64_mask): Move to ...
5428         * config/i386/avx512cdintrin.h: Here.
5429         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
5430         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
5431         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
5432         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
5433         TARGET_AVX512F from TARGET_AVX512CD.
5435 2014-02-26  Richard Biener  <rguenther@suse.de>
5437         PR ipa/60327
5438         * ipa.c (walk_polymorphic_call_targets): Properly guard
5439         call to inline_update_overall_summary.
5441 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
5443         PR target/60280
5444         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
5445         and latches only if requested.  Fix latch if it is removed.
5446         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
5447         LOOPS_HAVE_PREHEADERS.
5449 2014-02-25  Andrew Pinski  <apinski@cavium.com>
5451         * builtins.c (expand_builtin_thread_pointer): Create a new target
5452         when the target is NULL.
5454 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
5456         PR rtl-optimization/60317
5457         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
5458         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
5459         * lra-assigns.c: Include params.h.
5460         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
5461         other reload pseudos considerations.
5463 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5465         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
5466         to use canonical form for nor<mode>3.
5468 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5470         PR target/55426
5471         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
5472         conversions.
5474 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
5476         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
5477         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
5478         (ix86_handle_option): Handle OPT_mprefetchwt1.
5479         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
5480         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5481         PREFETCHWT1 CPUID.
5482         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5483         OPTION_MASK_ISA_PREFETCHWT1.
5484         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
5485         (PTA_PREFETCHWT1): New.
5486         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
5487         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
5488         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
5489         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
5490         (*prefetch_avx512pf_<mode>_: Change into ...
5491         (*prefetch_prefetchwt1_<mode>: This.
5492         * config/i386/i386.opt (mprefetchwt1): New.
5493         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
5494         (_mm_prefetch): Handle intent to write.
5495         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
5497 2014-02-25  Richard Biener  <rguenther@suse.de>
5499         PR middle-end/60291
5500         * emit-rtl.c (mem_attrs_htab): Remove.
5501         (mem_attrs_htab_hash): Likewise.
5502         (mem_attrs_htab_eq): Likewise.
5503         (set_mem_attrs): Always allocate new mem-attrs when something changed.
5504         (init_emit_once): Do not allocate mem_attrs_htab.
5506 2014-02-25  Richard Biener  <rguenther@suse.de>
5508         PR lto/60319
5509         * lto-opts.c (lto_write_options): Output non-explicit conservative
5510         -fwrapv, -fno-trapv and -fno-strict-overflow.
5511         * lto-wrapper.c (merge_and_complain): Handle merging those options.
5512         (run_gcc): And pass them through.
5514 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
5516         * sel-sched.c (calculate_new_fences): New parameter ptime.
5517         Calculate it as a maximum over all fence cycles.
5518         (sel_sched_region_2): Adjust the call to calculate_new_fences.
5519         Print the final schedule timing when sched_verbose.
5521 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
5523         PR rtl-optimization/60292
5524         * sel-sched.c (fill_vec_av_set): Do not reset target availability
5525         bit fot the fence instruction.
5527 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
5529         * calls.h: Fix typo in comment.
5531 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
5533         * config/pa/pa.c (pa_output_move_double): Don't valididate when
5534         adjusting offsetable addresses.
5536 2014-02-24  Guozhi Wei  <carrot@google.com>
5538         * sparseset.h (sparseset_pop): Fix the wrong index.
5540 2014-02-24  Walter Lee  <walt@tilera.com>
5542         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
5543         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
5544         triplet.
5545         * common/config/tilegx/tilegx-common.c
5546         (TARGET_DEFAULT_TARGET_FLAGS): Define.
5547         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
5548         (LINK_SPEC): Ditto.
5549         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
5550         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
5551         (tilegx_gimplify_va_arg_expr): Handle big endian.
5552         (tilegx_expand_unaligned_load): Ditto.
5553         (tilegx_expand_unaligned_store): Ditto.
5554         (TARGET_RETURN_IN_MSB): New.
5555         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
5556         (TARGET_ENDIAN_DEFAULT): New.
5557         (TARGET_BIG_ENDIAN): Handle big endian.
5558         (BYTES_BIG_ENDIAN): Ditto.
5559         (WORDS_BIG_ENDIAN): Ditto.
5560         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
5561         (ENDIAN_SPEC): New.
5562         (EXTRA_SPECS): New.
5563         * config/tilegx/tilegx.md (extv): Handle big endian.
5564         (extzv): Ditto.
5565         (insn_st<n>): Ditto.
5566         (insn_st<n>_add<bitsuffix>): Ditto.
5567         (insn_stnt<n>): Ditto.
5568         (insn_stnt<n>_add<bitsuffix>):Ditto.
5569         (vec_interleave_highv8qi): Handle big endian.
5570         (vec_interleave_highv8qi_be): New.
5571         (vec_interleave_highv8qi_le): New.
5572         (insn_v1int_h): Handle big endian.
5573         (vec_interleave_lowv8qi): Handle big endian.
5574         (vec_interleave_lowv8qi_be): New.
5575         (vec_interleave_lowv8qi_le): New.
5576         (insn_v1int_l): Handle big endian.
5577         (vec_interleave_highv4hi): Handle big endian.
5578         (vec_interleave_highv4hi_be): New.
5579         (vec_interleave_highv4hi_le): New.
5580         (insn_v2int_h): Handle big endian.
5581         (vec_interleave_lowv4hi): Handle big endian.
5582         (vec_interleave_lowv4hi_be): New.
5583         (vec_interleave_lowv4hi_le): New.
5584         (insn_v2int_l): Handle big endian.
5585         (vec_interleave_highv2si): Handle big endian.
5586         (vec_interleave_highv2si_be): New.
5587         (vec_interleave_highv2si_le): New.
5588         (insn_v4int_h): Handle big endian.
5589         (vec_interleave_lowv2si): Handle big endian.
5590         (vec_interleave_lowv2si_be): New.
5591         (vec_interleave_lowv2si_le): New.
5592         (insn_v4int_l): Handle big endian.
5593         * config/tilegx/tilegx.opt (mbig-endian): New option.
5594         (mlittle-endian): New option.
5595         * doc/install.texi: Document tilegxbe-linux.
5596         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
5598 2014-02-24  Martin Jambor  <mjambor@suse.cz>
5600         PR ipa/60266
5601         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
5602         there are no parameter descriptors.
5604 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
5606         PR rtl-optimization/60268
5607         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
5608         initialization to ...
5609         (sched_rgn_init): ... here.
5610         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
5612 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
5614         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
5615         names.
5617 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
5619         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
5620         definition.
5622 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
5624         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
5625         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
5627 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
5629         * config/microblaze/predicates.md: Add cmp_op predicate.
5630         * config/microblaze/microblaze.md: Add branch_compare instruction
5631         which uses cmp_op predicate and emits cmp insn before branch.
5632         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
5633         to microblaze_expand_conditional_branch and consolidate logic.
5634         (microblaze_expand_conditional_branch): emit branch_compare
5635         insn instead of handling cmp op separate from branch insn.
5637 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5639         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
5640         to permit subregs.
5642 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5644         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
5645         define_insn with define_expand and new define_insn
5646         *altivec_lve<VI_char>x_internal.
5647         (altivec_stve<VI_char>x): Replace define_insn with define_expand
5648         and new define_insn *altivec_stve<VI_char>x_internal.
5649         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
5650         prototype.
5651         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
5652         lve*x built-ins.
5653         (altivec_expand_stvex_be): New function.
5655 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
5657         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
5658         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
5659         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
5660         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
5662 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
5664         PR target/60298
5665         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
5666         instead of emit_move_insn.
5668 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5670         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
5671         vspltw with vsldoi.
5672         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
5673         gen_altivec_vsumsws.
5675 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5677         * config/rs6000/altivec.md (altivec_lvxl): Rename as
5678         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
5679         (altivec_lvxl_<mode>): New define_expand incorporating
5680         -maltivec=be semantics where needed.
5681         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
5682         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
5683         semantics where needed.
5684         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
5685         (altivec_stvx_<mode>): New define_expand incorporating
5686         -maltivec=be semantics where needed.
5687         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
5688         VM2 iterator instead of V4SI.
5689         (altivec_stvxl_<mode>): New define_expand incorporating
5690         -maltivec=be semantics where needed.
5691         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
5692         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
5693         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
5694         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
5695         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
5696         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
5697         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
5698         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
5699         ALTIVEC_BUILTIN_STVXL.
5700         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
5701         (altivec_expand_stvx_be): Likewise.
5702         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
5703         (altivec_expand_lvx_be): Likewise.
5704         (altivec_expand_stvx_be): Likewise.
5705         (altivec_expand_builtin): Add cases for
5706         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
5707         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
5708         (altivec_init_builtins): Add definitions for
5709         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
5710         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
5712 2014-02-21  Catherine Moore  <clm@codesourcery.com>
5714         * doc/invoke.texi (mvirt, mno-virt): Document.
5715         * config/mips/mips.opt (mvirt): New option.
5716         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
5718 2014-02-21  Richard Biener  <rguenther@suse.de>
5720         PR tree-optimization/60276
5721         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
5722         (STMT_VINFO_MIN_NEG_DIST): New macro.
5723         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
5724         STMT_VINFO_MIN_NEG_DIST.
5725         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
5726         made for negative dependence distances still hold.
5728 2014-02-21  Richard Biener  <rguenther@suse.de>
5730         PR middle-end/60291
5731         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
5732         DECL_INITIAL for globals not in the current function context.
5734 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
5736         PR tree-optimization/56490
5737         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
5738         * tree-ssa-uninit.c: Include params.h.
5739         (compute_control_dep_chain): Add num_calls argument, return false
5740         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
5741         num_calls to recursive call.
5742         (find_predicates): Change dep_chain into normal array,
5743         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
5744         variable and adjust compute_control_dep_chain caller.
5745         (find_def_preds): Likewise.
5747 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
5749         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
5750         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
5752 2014-02-21  Nick Clifton  <nickc@redhat.com>
5754         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
5755         (pushhi1): Likewise.
5756         (popqi1): Add mode to pre_dec.
5757         (pophi1): Likewise.
5759 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
5761         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
5762         mode for mask of V8SFmode permutation.
5764 2014-02-20  Richard Henderson  <rth@redhat.com>
5766         PR c++/60272
5767         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
5768         a new pseudo for OLDVAL.
5770 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
5772         PR target/57896
5773         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
5774         gen_reg_rtx if d->testing_p.
5775         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
5776         if d->testing_p and we will certainly return true.
5777         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
5778         if d->testing_p.
5780 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
5782         * emit-rtl.c (gen_reg_rtx): Assert that
5783         crtl->emit.regno_pointer_align_length is non-zero.
5785 2014-02-20  Richard Henderson  <rth@redhat.com>
5787         PR c++/60272
5788         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
5789         on failure the store back into EXPECT.
5791 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
5792             Sandra Loosemore  <sandra@codesourcery.com>
5794         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
5795         * config/nios2/nios2.c (nios2_function_profiler): Add
5796         -fPIC (flag_pic == 2) support.
5797         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
5798         (nios2_large_offset_p): New function.
5799         (nios2_unspec_reloc_p): Move up position, update to use
5800         nios2_large_offset_p.
5801         (nios2_unspec_address): Remove function.
5802         (nios2_unspec_offset): New function.
5803         (nios2_large_got_address): New function.
5804         (nios2_got_address): Add large offset support.
5805         (nios2_legitimize_tls_address): Update usage of removed and new
5806         functions.
5807         (nios2_symbol_binds_local_p): New function.
5808         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
5809         (nios2_legitimize_address): Update to use nios2_large_offset_p.
5810         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
5811         (nios2_print_operand): Merge H/L processing, add hiadj/lo
5812         processing for (const (unspec ...)).
5813         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
5815 2014-02-20  Richard Biener  <rguenther@suse.de>
5817         * tree-cfg.c (replace_uses_by): Mark altered BBs before
5818         doing the substitution.
5819         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
5821 2014-02-20  Martin Jambor  <mjambor@suse.cz>
5823         PR ipa/55260
5824         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
5825         info when checking whether lattices are bottom.
5827 2014-02-20  Richard Biener  <rguenther@suse.de>
5829         PR middle-end/60221
5830         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
5831         regions at -O0.
5833 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
5835         PR ipa/58555
5836         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
5837         parameter specifying the scaling.
5838         (inline_call): Update.
5839         (want_inline_recursively): Guard division by zero.
5840         (recursive_inlining): Update.
5841         * ipa-inline.h (clone_inlined_nodes): Update.
5843 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
5845         PR target/60204
5846         * config/i386/i386.c (classify_argument): Pass structures of size
5847         64 bytes or less in register.
5849 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
5850             Kirill Yukhin  <kirill.yukhin@intel.com>
5852         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
5853         (_mm_rcp28_round_ss): Ditto.
5854         (_mm_rsqrt28_round_sd): Ditto.
5855         (_mm_rsqrt28_round_ss): Ditto.
5856         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
5857         (_mm_rcp14_round_ss): Ditto.
5858         (_mm_rsqrt14_round_sd): Ditto.
5859         (_mm_rsqrt14_round_ss): Ditto.
5860         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
5861         the first input operand, get rid of match_dup.
5862         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
5863         attribute to sse.
5864         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
5865         Ditto.
5866         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
5867         operand as the first input operand, set type attribute.
5868         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
5869         Set type attribute.
5870         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
5871         operand as the first input operand, set type attribute.
5873 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5875         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
5876         bit of zero.
5878 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5880         PR target/60207
5881         * config/i386/i386.c (construct_container): Remove TFmode check
5882         for X86_64_INTEGER_CLASS.
5884 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
5886         PR target/59794
5887         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
5888         only when -Wpsabi is enabled.
5890 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
5892          PR target/59799
5893         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
5894         passing arrays in registers are the same as for structs, so remove the
5895         special case for them.
5897 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
5899         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
5900         destination type, extract only the valid bits if the source type is not
5901         integral and has a different mode.
5903 2014-02-19  Richard Biener  <rguenther@suse.de>
5905         PR ipa/60243
5906         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
5907         for all calls.
5909 2014-02-19  Richard Biener  <rguenther@suse.de>
5911         PR ipa/60243
5912         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
5913         (ipa_modify_call_arguments): Emit an argument load explicitely and
5914         preserve virtual SSA form there and for the replacement call.
5915         Do not update SSA form nor free dominance info.
5917 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
5919         * ipa.c (function_and_variable_visibility): Also clear WEAK
5920         flag when disolving COMDAT_GROUP.
5922 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
5924         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
5925         * ipa-prop.c (ipa_set_jf_known_type): Return early when
5926         not devirtualizing.
5927         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
5928         do more sanity checks.
5929         (detect_type_change): Return true when giving up early.
5930         (compute_complex_assign_jump_func): Fix type parameter of
5931         ipa_set_ancestor_jf.
5932         (compute_complex_ancestor_jump_func): Likewise.
5933         (update_jump_functions_after_inlining): Fix updating of
5934         ancestor function.
5935         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
5937 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
5939         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
5940         inline clones when edge disappears.
5942 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5944         PR target/60203
5945         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
5946         Split 64-bit moves into 2 patterns.  Do not allow the use of
5947         direct move for TDmode in little endian, since the decimal value
5948         has little endian bytes within a word, but the 64-bit pieces are
5949         ordered in a big endian fashion, and normal subreg's of TDmode are
5950         not allowed.
5951         (mov<mode>_64bit_dm): Likewise.
5952         (movtd_64bit_nodm): Likewise.
5954 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
5956         PR tree-optimization/60174
5957         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
5958         statement of an SSA_NAME that occurs in an abnormal PHI node.
5960 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
5962         PR sanitizer/60142
5963         * final.c (SEEN_BB): Remove.
5964         (SEEN_NOTE, SEEN_EMITTED): Renumber.
5965         (final_scan_insn): Don't force_source_line on second
5966         NOTE_INSN_BASIC_BLOCK.
5968 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
5970         PR target/60205
5971         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
5972         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
5973         (type_natural_mode): Warn ABI change when %zmm register is not
5974         available for AVX512F vector value passing.
5976 2014-02-18  Kai Tietz  <ktietz@redhat.com>
5978         PR target/60193
5979         * config/i386/i386.c (ix86_expand_prologue): Use value in
5980         rax register as displacement when restoring %r10 or %rax.
5981         Fix wrong offset when restoring both registers.
5983 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
5985         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
5986         assertion with conditional return.
5988 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
5989             Uros Bizjak  <ubizjak@gmail.com>
5991         PR driver/60233
5992         * config/i386/driver-i386.c (host_detect_local_cpu): If
5993         YMM state is not saved by the OS, also clear has_f16c.  Move
5994         CPUID 0x80000001 handling before YMM state saving checking.
5996 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
5998         PR rtl-optimization/58960
5999         * haifa-sched.c (alloc_global_sched_pressure_data): New,
6000         factored out from ...
6001         (sched_init): ... here.
6002         (free_global_sched_pressure_data): New, factored out from ...
6003         (sched_finish): ... here.
6004         * sched-int.h (free_global_sched_pressure_data): Declare.
6005         * sched-rgn.c (nr_regions_initial): New static global.
6006         (haifa_find_rgns): Initialize it.
6007         (schedule_region): Disable sched-pressure for the newly
6008         generated regions.
6010 2014-02-17  Richard Biener  <rguenther@suse.de>
6012         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
6013         release SSA defs of pattern stmts.
6015 2014-02-17  Richard Biener  <rguenther@suse.de>
6017         * tree-inline.c (expand_call_inline): Release the virtual
6018         operand defined by the call we are about to inline.
6020 2014-02-17  Richard Biener  <rguenther@suse.de>
6022         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
6024 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
6025             Ilya Tocar  <ilya.tocar@intel.com>
6027         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
6028         arguments order in builtin.
6029         (_mm512_permutexvar_epi64): Ditto.
6030         (_mm512_mask_permutexvar_epi64): Ditto
6031         (_mm512_maskz_permutexvar_epi32): Ditto
6032         (_mm512_permutexvar_epi32): Ditto
6033         (_mm512_mask_permutexvar_epi32): Ditto
6035 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6037         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
6038         (p8_vmrgow): Likewise.
6040 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6042         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
6043         endian targets.
6045 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
6047         PR target/60203
6048         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
6049         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
6050         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
6051         using direct move instructions on ISA 2.07.  Also adjust
6052         instruction length for 64-bit.
6053         (mov<mode>_64bit, TFmode/TDmode): Likewise.
6054         (mov<mode>_32bit, TFmode/TDmode): Likewise.
6056 2014-02-15  Alan Modra  <amodra@gmail.com>
6058         PR target/58675
6059         PR target/57935
6060         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6061         find_replacement on parts of insn rtl that might be reloaded.
6063 2014-02-15  Richard Biener  <rguenther@suse.de>
6065         PR tree-optimization/60183
6066         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
6067         (tree_ssa_phiprop): Calculate and free post-dominators.
6069 2014-02-14  Jeff Law  <law@redhat.com>
6071         PR rtl-optimization/60131
6072         * ree.c (get_extended_src_reg): New function.
6073         (combine_reaching_defs): Use it rather than assuming location of REG.
6074         (find_and_remove_re): Verify first operand of extension is
6075         a REG before adding the insns to the copy list.
6077 2014-02-14  Roland McGrath  <mcgrathr@google.com>
6079         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
6080         * configure: Regenerated.
6081         * config.in: Regenerated.
6082         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
6083         instead of ASM_SHORT.
6085 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
6086             Richard Earnshaw  <rearnsha@arm.com>
6088         PR rtl-optimization/59535
6089         * lra-constraints.c (process_alt_operands): Encourage alternative
6090         when unassigned pseudo class is superset of the alternative class.
6091         (inherit_reload_reg): Don't inherit when optimizing for code size.
6092         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
6093         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
6094         modes not less than 4 for Thumb1.
6096 2014-02-14  Kyle McMartin  <kyle@redhat.com>
6098         PR pch/60010
6099         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
6101 2014-02-14  Richard Biener  <rguenther@suse.de>
6103         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
6104         (get_frame_arg): Drop the assert with langhook types_compatible_p.
6105         Do not strip INDIRECT_REFs.
6107 2014-02-14  Richard Biener  <rguenther@suse.de>
6109         PR lto/60179
6110         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
6111         DECL_FUNCTION_SPECIFIC_TARGET.
6112         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
6113         * tree-streamer-out.c (pack_ts_target_option): Remove.
6114         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
6115         (write_ts_function_decl_tree_pointers): Do not stream
6116         DECL_FUNCTION_SPECIFIC_TARGET.
6117         * tree-streamer-in.c (unpack_ts_target_option): Remove.
6118         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
6119         (lto_input_ts_function_decl_tree_pointers): Do not stream
6120         DECL_FUNCTION_SPECIFIC_TARGET.
6122 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
6124         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
6125         (get_initial_def_for_induction, vectorizable_induction): Ignore
6126         debug stmts when looking for exit_phi.
6127         (vectorizable_live_operation): Fix up condition.
6129 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
6131         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
6132         nreverse() because it changes the content of original tree list.
6134 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
6136         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
6137         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
6139 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
6141         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
6142         GNU coding standards.
6144 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
6146         PR debug/60152
6147         * dwarf2out.c (gen_subprogram_die): Don't call
6148         add_calling_convention_attribute if subr_die is old_die.
6150 2014-02-13  Sharad Singhai  <singhai@google.com>
6152         * doc/optinfo.texi: Fix order of nodes.
6154 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
6156         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
6157         operands[2], not operands[3].
6159 2014-02-13  Richard Biener  <rguenther@suse.de>
6161         PR bootstrap/59878
6162         * doc/install.texi (ISL): Update recommended version to 0.12.2,
6163         mention the possibility of an in-tree build.
6164         (CLooG): Update recommended version to 0.18.1, mention the
6165         possibility of an in-tree build and clarify that the ISL
6166         bundled with CLooG does not work.
6168 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
6170         PR target/43546
6171         * expr.c (compress_float_constant): If x is a hard register,
6172         extend into a pseudo and then move to x.
6174 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6176         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
6177         caused by bad second argument to warning_at() with -mhotpatch and
6178         nested functions (e.g. with gfortran).
6180 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
6182         * opts.c (option_name): Remove "enabled by default" rider.
6184 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
6186         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
6188 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
6189             Uros Bizjak  <ubizjak@gmail.com>
6191         PR target/60151
6192         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
6193         * configure: Regenerated.
6195 2014-02-12  Richard Biener  <rguenther@suse.de>
6197         * vec.c (vec_prefix::calculate_allocation): Move as
6198         inline variant to vec.h.
6199         (vec_prefix::calculate_allocation_1): New out-of-line version.
6200         * vec.h (vec_prefix::calculate_allocation_1): Declare.
6201         (vec_prefix::m_has_auto_buf): Rename to ...
6202         (vec_prefix::m_using_auto_storage): ... this.
6203         (vec_prefix::calculate_allocation): Inline the easy cases
6204         and dispatch to calculate_allocation_1 which doesn't need the
6205         prefix address.
6206         (va_heap::reserve): Use gcc_checking_assert.
6207         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
6208         m_using_auto_storage.
6209         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
6210         member and adjust.
6211         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
6212         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
6213         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
6215 2014-02-12  Richard Biener  <rguenther@suse.de>
6217         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
6218         when we found a dependence.
6220 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
6222         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
6223         common code...
6224         (maybe_fold_stmt): ... into this new function.
6225         * omp-low.c (lower_omp): Update comment.
6227         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
6228         last use.
6230         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
6231         dereference.
6233 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
6235         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
6236         identifiers in comments.
6237         (cortexa53_extra_costs): Likewise.
6238         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
6239         (cortexa7_extra_costs): Likewise.
6240         (cortexa12_extra_costs): Likewise.
6241         (cortexa15_extra_costs): Likewise.
6242         (v7m_extra_costs): Likewise.
6244 2014-02-12  Richard Biener  <rguenther@suse.de>
6246         PR middle-end/60092
6247         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
6248         of posix_memalign being successful.
6249         (lower_stmt): Restrict lowering of posix_memalign to when
6250         -ftree-bit-ccp is enabled.
6252 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6254         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
6255         arg_loc.
6256         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
6258 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
6260         PR rtl-optimization/60116
6261         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
6262         other_insn once the combination has been validated.
6264 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
6266         PR lto/59468
6267         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
6268         and wrapper.
6269         * ipa-devirt.c: Include demangle.h
6270         (odr_violation_reported): New static variable.
6271         (add_type_duplicate): Update odr_violations.
6272         (maybe_record_node): Add completep parameter; update it.
6273         (record_target_from_binfo): Add COMPLETEP parameter;
6274         update it as needed.
6275         (possible_polymorphic_call_targets_1): Likewise.
6276         (struct polymorphic_call_target_d): Add nonconstruction_targets;
6277         rename FINAL to COMPLETE.
6278         (record_targets_from_bases): Sanity check we found the binfo;
6279         fix COMPLETEP updating.
6280         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
6281         parameter, fix computing of COMPLETEP.
6282         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
6283         at LTO time do demangling.
6284         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
6285         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
6286         parameter.
6287         (gimple_get_virt_method_for_binfo): Likewise.
6288         * gimple-fold.h (gimple_get_virt_method_for_binfo,
6289         gimple_get_virt_method_for_vtable): Update prototypes.
6291 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
6293         PR target/49008
6294         * genautomata.c (add_presence_absence): Fix typo with
6295         {final_}presence_list.
6297 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6299         PR target/60137
6300         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
6301         for VSX/Altivec vectors that land in GPR registers.
6303 2014-02-11  Richard Henderson  <rth@redhat.com>
6304             Jakub Jelinek  <jakub@redhat.com>
6306         PR debug/59776
6307         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
6308         around drhs if type conversion to lacc->type is not useless.
6310 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6312         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
6313         tuning struct.
6314         (cortex-a57.cortex-a53): Likewise.
6315         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
6317 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6319         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
6320         arm_restrict_it.
6322 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
6324         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
6325         add_options_for_arm_vfp3.
6327 2014-02-11  Jeff Law  <law@redhat.com>
6329         PR middle-end/54041
6330         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
6331         object with an undesirable mode.
6333 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6335         PR libgomp/60107
6336         * config/i386/sol2-9.h: New file.
6337         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
6338         *-*-solaris2.9*): Use it.
6340 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
6342         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
6343         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
6345 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
6347         * config/microblaze/microblaze.c: Extend mcpu version format
6349 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
6351         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
6353 2014-02-10  Richard Henderson  <rth@redhat.com>
6355         PR target/59927
6356         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
6357         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
6358         ms-abi vs -mno-accumulate-outgoing-args.
6359         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
6360         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
6361         respect to ms-abi.
6363 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6365         PR middle-end/60080
6366         * cfgexpand.c (expand_asm_operands): Attach source location to
6367         ASM_INPUT rtx objects.
6368         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
6370 2014-02-10  Nick Clifton  <nickc@redhat.com>
6372         * config/mn10300/mn10300.c (popcount): New function.
6373         (mn10300_expand_prologue): Include saved registers in stack usage
6374         count.
6376 2014-02-10  Jeff Law  <law@redhat.com>
6378         PR middle-end/52306
6379         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
6380         when changing the SET_DEST of a prior insn to avoid an input reload.
6382 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6384         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
6385         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
6386         -mcall-openbsd, or -mcall-linux.
6387         (CC1_ENDIAN_BIG_SPEC): Remove.
6388         (CC1_ENDIAN_LITTLE_SPEC): Remove.
6389         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
6390         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
6391         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
6392         and %cc1_endian_default.
6393         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
6395 2014-02-10  Richard Biener  <rguenther@suse.de>
6397         PR tree-optimization/60115
6398         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
6399         MEM_REF handling.  Properly verify that the accesses are not
6400         out of the objects bound.
6402 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6404         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
6405         coretex to cortex.
6407 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
6409         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
6410         proper constants and fix formatting.
6411         (possible_polymorphic_call_targets): Fix formatting.
6413 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
6414             Ilya Tocar  <ilya.tocar@intel.com>
6416         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
6417         (_mm512_loadu_epi32): Renamed into...
6418         (_mm512_loadu_si512): This.
6419         (_mm512_storeu_epi32): Renamed into...
6420         (_mm512_storeu_si512): This.
6421         (_mm512_maskz_ceil_ps): Removed.
6422         (_mm512_maskz_ceil_pd): Ditto.
6423         (_mm512_maskz_floor_ps): Ditto.
6424         (_mm512_maskz_floor_pd): Ditto.
6425         (_mm512_floor_round_ps): Ditto.
6426         (_mm512_floor_round_pd): Ditto.
6427         (_mm512_ceil_round_ps): Ditto.
6428         (_mm512_ceil_round_pd): Ditto.
6429         (_mm512_mask_floor_round_ps): Ditto.
6430         (_mm512_mask_floor_round_pd): Ditto.
6431         (_mm512_mask_ceil_round_ps): Ditto.
6432         (_mm512_mask_ceil_round_pd): Ditto.
6433         (_mm512_maskz_floor_round_ps): Ditto.
6434         (_mm512_maskz_floor_round_pd): Ditto.
6435         (_mm512_maskz_ceil_round_ps): Ditto.
6436         (_mm512_maskz_ceil_round_pd): Ditto.
6437         (_mm512_expand_pd): Ditto.
6438         (_mm512_expand_ps): Ditto.
6439         * config/i386/i386.c (ix86_builtins): Remove
6440         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
6441         (bdesc_args): Ditto.
6442         * config/i386/predicates.md (const1256_operand): New.
6443         (const_1_to_2_operand): Ditto.
6444         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
6445         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
6446         (*avx512pf_gatherpf<mode>sf): Ditto.
6447         (avx512pf_gatherpf<mode>df): Ditto.
6448         (*avx512pf_gatherpf<mode>df_mask): Ditto.
6449         (*avx512pf_gatherpf<mode>df): Ditto.
6450         (avx512pf_scatterpf<mode>sf): Ditto.
6451         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
6452         (*avx512pf_scatterpf<mode>sf): Ditto.
6453         (avx512pf_scatterpf<mode>df): Ditto.
6454         (*avx512pf_scatterpf<mode>df_mask): Ditto.
6455         (*avx512pf_scatterpf<mode>df): Ditto.
6456         (avx512f_expand<mode>): Removed.
6457         (<shift_insn><mode>3<mask_name>): Change predicate type.
6459 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
6461         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
6462         not at the end of datarefs vector use ordered_remove to avoid
6463         reordering datarefs vector.
6465         PR c/59984
6466         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
6467         mark local addressable non-static vars as GOVD_PRIVATE
6468         instead of GOVD_LOCAL.
6469         * omp-low.c (lower_omp_for): Move gimple_bind_vars
6470         and BLOCK_VARS of gimple_bind_block to new_stmt rather
6471         than copying them.
6473         PR middle-end/60092
6474         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
6475         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
6476         assume_aligned or alloc_align attributes.
6477         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
6478         arguments.  Handle also assume_aligned and alloc_align attributes.
6479         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
6480         calls to functions with assume_aligned or alloc_align attributes.
6481         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
6483 2014-02-08  Terry Guo  <terry.guo@arm.com>
6485         * doc/invoke.texi: Document ARM -march=armv7e-m.
6487 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
6489         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
6490         flag on __cilkrts_rethrow builtin.
6492         PR ipa/60026
6493         * ipa-cp.c (determine_versionability): Fail at -O0
6494         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
6495         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
6497         Revert:
6498         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
6500         PR ipa/60026
6501         * tree-inline.c (copy_forbidden): Fail for
6502         __attribute__((optimize (0))) functions.
6504 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
6506         * varpool.c: Include pointer-set.h.
6507         (varpool_remove_unreferenced_decls): Variables in other partitions
6508         will not be output; be however careful to not lose information
6509         about partitioning.
6511 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
6513         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
6514         lookup in the vtable constructor.
6516 2014-02-07  Jeff Law  <law@redhat.com>
6518         PR target/40977
6519         * config/m68k/m68k.md (ashldi_extsi): Turn into a
6520         define_insn_and_split.
6522         * ipa-inline.c (inline_small_functions): Fix typos.
6524 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6526         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
6527         (s390_can_use_return_insn): Declare.
6528         * config/s390/s390.h (EPILOGUE_USES): Define.
6529         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
6530         instructions.
6531         (s390_chunkify_start): Handle return JUMP_LABELs.
6532         (s390_early_mach): Emit a main_pool instruction on the entry edge.
6533         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
6534         (s390_can_use_return_insn): New functions.
6535         (s390_fix_long_loop_prediction): Handle conditional returns.
6536         (TARGET_SET_UP_BY_PROLOGUE): Define.
6537         * config/s390/s390.md (ANY_RETURN): New code iterator.
6538         (*creturn, *csimple_return, return, simple_return): New patterns.
6540 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6542         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
6543         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
6544         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
6545         REG_CFA_RESTORE list when deciding not to restore a register.
6547 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6549         * config/s390/s390.c: Include tree-pass.h and context.h.
6550         (s390_early_mach): New function, split out from...
6551         (s390_emit_prologue): ...here.
6552         (pass_data_s390_early_mach): New pass structure.
6553         (pass_s390_early_mach): New class.
6554         (s390_option_override): Create and register early_mach pass.
6555         Move to end of file.
6557 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6559         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
6560         to match for the exit block.
6562 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6564         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
6565         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
6566         Reject misaligned operands.
6568 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6570         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
6572 2014-02-07  Richard Biener  <rguenther@suse.de>
6574         PR middle-end/60092
6575         * gimple-low.c (lower_builtin_posix_memalign): New function.
6576         (lower_stmt): Call it to lower posix_memalign in a way
6577         to make alignment info accessible.
6579 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
6581         PR c++/60082
6582         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
6583         __builtin_setjmp_receiver.
6585 2014-02-07  Richard Biener  <rguenther@suse.de>
6587         PR middle-end/60092
6588         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
6589         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
6590         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6591         Handle BUILT_IN_POSIX_MEMALIGN.
6592         (find_func_clobbers): Likewise.
6593         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6594         (call_may_clobber_ref_p_1): Likewise.
6596 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
6598         PR ipa/59918
6599         * ipa-devirt.c (record_target_from_binfo): Remove overactive
6600         sanity check.
6602 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
6604         PR ipa/59469
6605         * lto-cgraph.c (lto_output_node): Use
6606         symtab_get_symbol_partitioning_class.
6607         (lto_output_varpool_node): likewise.
6608         (symtab_get_symbol_partitioning_class): Move here from
6609         lto/lto-partition.c
6610         * cgraph.h (symbol_partitioning_class): Likewise.
6611         (symtab_get_symbol_partitioning_class): Declare.
6613 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
6615         * ggc.h (ggc_internal_cleared_alloc): New macro.
6616         * vec.h (vec_safe_copy): Handle memory stats.
6617         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
6618         * target-globals.c (save_target_globals): Likewise.
6620 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
6622         PR target/60077
6623         * expr.c (emit_move_resolve_push): Export; be bit more selective
6624         on when to clear alias set.
6625         * expr.h (emit_move_resolve_push): Declare.
6626         * function.h (struct function): Add tail_call_marked.
6627         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
6628         * config/i386/i386-protos.h (ix86_expand_push): Remove.
6629         * config/i386/i386.md (TImode move expander): De not call
6630         ix86_expand_push.
6631         (FP push expanders): Preserve memory attributes.
6632         * config/i386/sse.md (push<mode>1): Remove.
6633         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
6634         (ix86_expand_push): Remove.
6635         * config/i386/mmx.md (push<mode>1): Remove.
6637 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
6639         PR rtl-optimization/60030
6640         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
6641         lopart with paradoxical subreg before shifting it up by hprec.
6643 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6645         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
6646         Remove extra newline at end of file.
6647         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
6648         (arm_issue_rate): Handle cortexa57.
6649         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
6650         (cortex-a57.cortex-a53): Likewise.
6652 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
6654         PR target/59575
6655         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
6656         don't record in REG_FRAME_RELATED_EXPR registers not set in that
6657         bitmask.
6658         (arm_expand_prologue): Adjust all callers.
6659         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
6660         info, registers also at the lowest numbered registers side.  Use
6661         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
6662         XEXP.
6664         PR debug/59992
6665         * var-tracking.c (adjust_mems): Before adding a SET to
6666         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
6668 2014-02-06  Alan Modra  <amodra@gmail.com>
6670         PR target/60032
6671         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
6672         change SDmode to DDmode when lra_in_progress.
6674 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
6676         PR middle-end/59150
6677         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
6678         free_data_ref on the dr first, and before goto again also set dr
6679         to the next dr.  For simd_lane_access, free old datarefs[i] before
6680         overwriting it.  For get_vectype_for_scalar_type failure, don't
6681         free_data_ref if simd_lane_access.
6683         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
6685         PR target/60062
6686         * tree.h (opts_for_fn): New inline function.
6687         (opt_for_fn): Define.
6688         * config/i386/i386.c (ix86_function_regparm): Use
6689         opt_for_fn (decl, optimize) instead of optimize.
6691 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6693         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
6694         for SYMBOL_REF in large memory model.
6696 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6698         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
6699         and crypto support.
6700         (cortex-a57): Likewise.
6701         (cortex-a57.cortex-a53): Likewise.
6703 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
6704             Kugan Vivekanandarajah  <kuganv@linaro.org>
6706         * config/arm/arm.c (arm_vector_alignment_reachable): Check
6707         unaligned_access.
6708         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
6710 2014-02-06  Richard Biener  <rguenther@suse.de>
6712         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
6713         set_loop_copy and initialize_original_copy_tables.
6715 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
6717         * config/aarch64/aarch64-simd.md
6718         (aarch64_ashr_simddi): Change QI to SI.
6720 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
6721             Jakub Jelinek  <jakub@redhat.com>
6723         PR middle-end/60013
6724         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
6725         of the dataflow.
6727 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6729         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
6730         CODE_FOR_altivec_vpku[hw]um to
6731         CODE_FOR_altivec_vpku[hw]um_direct.
6732         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
6733         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
6734         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
6735         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
6737 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6739         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
6740         generation for -maltivec=be.
6741         (altivec_vsumsws): Simplify redundant test.
6743 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6745         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
6746         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
6747         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
6748         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
6749         gen_altivec_vpkuwum.
6750         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
6751         BYTES_BIG_ENDIAN.
6752         (altivec_vpks<VI_char>ss): Likewise.
6753         (altivec_vpks<VI_char>us): Likewise.
6754         (altivec_vpku<VI_char>us): Likewise.
6755         (altivec_vpku<VI_char>um): Likewise.
6756         (altivec_vpku<VI_char>um_direct): New (copy of
6757         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
6758         internal use).
6759         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
6760         target is little endian and -maltivec=be is not specified.
6761         (*altivec_vupkhs<VU_char>_direct): New (copy of
6762         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
6763         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
6764         target is little endian and -maltivec=be is not specified.
6765         (*altivec_vupkls<VU_char>_direct): New (copy of
6766         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
6767         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
6768         little endian and -maltivec=be is not specified.
6769         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
6770         little endian and -maltivec=be is not specified.
6772 2014-02-05  Richard Henderson  <rth@redhat.com>
6774         PR debug/52727
6775         * combine-stack-adj.c: Revert r206943.
6776         * sched-int.h (struct deps_desc): Add last_args_size.
6777         * sched-deps.c (init_deps): Initialize it.
6778         (sched_analyze_insn): Add OUTPUT dependencies between insns that
6779         contain REG_ARGS_SIZE notes.
6781 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
6783         * lto-cgraph.c (asm_nodes_output): Make global.
6784         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
6785         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
6786         (driver_handle_option): Handle OPT_fwpa.
6788 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
6790         PR ipa/59947
6791         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
6792         a comment typo and formatting issue.  If odr_hash hasn't been
6793         created, return vNULL and set *completep to false.
6795         PR middle-end/57499
6796         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
6797         bb with no successors.
6799 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
6801         PR target/59718
6802         * doc/invoke.texi (-march): Clarify documentation for ARM.
6803         (-mtune): Likewise.
6804         (-mcpu): Likewise.
6806 2014-02-05  Richard Biener  <rguenther@suse.de>
6808         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
6809         when not vectorizing because of too many alias checks.
6810         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6811         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
6813 2014-02-05  Nick Clifton  <nickc@redhat.com>
6815         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
6816         accept extended registers in any mode when compiling for the MN10300.
6818 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
6820         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
6821         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
6822         sanitization attributes.
6823         (can_inline_edge_p): Likewise.
6824         (sanitize_attrs_match_for_inline_p): New function.
6826 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
6828         * ipa-prop.c (detect_type_change): Shor circuit testing of
6829         type changes on THIS pointer.
6831 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
6833         PR target/59777
6834         * config/pa/pa.c (legitimize_tls_address): Return original address
6835         if not passed a SYMBOL_REF rtx.
6836         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
6837         addresses.
6838         (pa_emit_move_sequence): Simplify TLS source operands.
6839         (pa_legitimate_constant_p): Reject all TLS constants.
6840         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
6841         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
6843 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
6845         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
6846         groups when we know they are controlled by LTO.
6847         * varasm.c (default_binds_local_p_1): If object is in other partition,
6848         it will be resolved locally.
6850 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6852         * config/host-linux.c (linux_gt_pch_use_address): Don't
6853         use SSIZE_MAX because it is not always defined.
6855 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
6857         PR bootstrap/59913
6858         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
6859         threshold for pseudo splitting.
6860         (update_ebb_live_info): Process call argument hard registers and
6861         hard registers from insn definition too.
6862         (max_small_class_regs_num): New constant.
6863         (inherit_in_ebb): Update live hard regs through EBBs.  Update
6864         reloads_num only for small register classes.  Don't split for
6865         outputs of jumps.
6867 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
6869         PR ipa/60058
6870         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
6871         is non-null.
6873 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
6875         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
6876         visibility is safe.
6878 2014-02-04  Marek Polacek  <polacek@redhat.com>
6880         * gdbinit.in (pel): Define.
6882 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6884         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
6885         behavior.
6887 2014-02-04  Richard Biener  <rguenther@suse.de>
6889         PR lto/59723
6890         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
6891         in function context local.
6892         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
6893         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
6894         similar to LTO_imported_decl_ref.
6896 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
6898         PR tree-optimization/60002
6899         * cgraphclones.c (build_function_decl_skip_args): Clear
6900         DECL_LANG_SPECIFIC.
6902         PR tree-optimization/60023
6903         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
6904         false to gsi_replace.
6905         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
6906         has been in some EH region and vec_stmt could throw, add
6907         vec_stmt into the same EH region.
6908         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
6909         has no lhs, ignore it.
6910         * internal-fn.c (expand_MASK_LOAD): Likewise.
6912         PR ipa/60026
6913         * tree-inline.c (copy_forbidden): Fail for
6914         __attribute__((optimize (0))) functions.
6916         PR other/58712
6917         * omp-low.c (simd_clone_struct_copy): If from->inbranch
6918         is set, copy one less argument.
6919         (expand_simd_clones): Don't subtract clone_info->inbranch
6920         from simd_clone_struct_alloc argument.
6922         PR rtl-optimization/57915
6923         * recog.c (simplify_while_replacing): If all unary/binary/relational
6924         operation arguments are constant, attempt to simplify those.
6926         PR middle-end/59261
6927         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
6928         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
6930 2014-02-04  Richard Biener  <rguenther@suse.de>
6932         PR tree-optimization/60012
6933         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
6934         TBAA disambiguation to all DDRs.
6936 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6938         PR target/59788
6939         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
6940         (LINK_SPEC): Use it for -shared, -shared-libgcc.
6942 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
6944         PR ipa/59882
6945         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
6947 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
6949         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
6950         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
6952 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
6954         PR ipa/59831
6955         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
6956         to figure out targets of polymorphic calls with known decl.
6957         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6958         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
6959         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
6960         (get_polymorphic_call_info): ... here.
6961         (get_polymorphic_call_info_from_invariant): New function.
6963 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
6965         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
6966         lookup via vtable pointer; check for type consistency
6967         and turn inconsitent facts into UNREACHABLE.
6968         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6969         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
6970         type inconsistent querries; return UNREACHABLE instead.
6972 2014-02-03  Richard Henderson  <rth@twiddle.net>
6974         PR tree-opt/59924
6975         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
6976         already processed this node.
6977         (normalize_one_pred_1): Pass along mark_set.
6978         (normalize_one_pred): Create and destroy a pointer_set_t.
6979         (normalize_one_pred_chain): Likewise.
6981 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
6983         PR gcov-profile/58602
6984         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
6986 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
6988         PR ipa/59831
6989         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
6990         -fno-devirtualize; try to devirtualize by the knowledge of
6991         virtual table pointer given by aggregate propagation.
6992         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6993         (ipa_print_node_jump_functions): Dump also offset that
6994         is relevant for polymorphic calls.
6995         (determine_known_aggregate_parts): Add arg_type parameter; use it
6996         instead of determining the type from pointer type.
6997         (ipa_compute_jump_functions_for_edge): Update call of
6998         determine_known_aggregate_parts.
6999         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
7000         (gimple_get_virt_method_for_binfo): ... here; simplify using
7001         vtable_pointer_value_to_vtable.
7002         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
7003         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
7004         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
7005         (vtable_pointer_value_to_vtable): Break out from ...; handle also
7006         POINTER_PLUS_EXPR.
7007         (vtable_pointer_value_to_binfo): ... here.
7008         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
7010 2014-02-03  Teresa Johnson  <tejohnson@google.com>
7012         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
7013         redef of outer loop index variable.
7015 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
7017         PR c++/53017
7018         PR c++/59211
7019         * doc/extend.texi (Function Attributes): Typo.
7021 2014-02-03  Cong Hou  <congh@google.com>
7023         PR tree-optimization/60000
7024         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
7025         if the vectorized statement is a store.  A store statement can only
7026         appear at the end of pattern statements.
7028 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
7030         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
7031         (ix86_option_override_internal): Default long double to 64-bit for
7032         32-bit Bionic and to 128-bit for 64-bit Bionic.
7034         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
7035         TARGET_LONG_DOUBLE_128 is true.
7036         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
7038         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
7039         (mlong-double-64): Negate -mlong-double-128.
7040         (mlong-double-128): New option.
7042         * config/i386/i386-c.c (ix86_target_macros): Define
7043         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
7045         * doc/invoke.texi: Document -mlong-double-128.
7047 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
7049         PR rtl-optimization/60024
7050         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
7052 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
7054         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
7056 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
7058         PR rtl-optimization/57662
7059         * sel-sched.c (code_motion_path_driver): Do not mark already not
7060         existing blocks in the visiting bitmap.
7062 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
7064         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
7065         on the insn being emitted.
7067 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
7068             Will Deacon  <will.deacon@arm.com>
7070         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
7072 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7074         * config/arm/arm-tables.opt: Regenerate.
7076 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7078         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
7079         for vector types other than V16QImode.
7080         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
7081         define_expand, and call altivec_expand_vec_perm_le when producing
7082         code with little endian element order.
7083         (*altivec_vperm_<mode>_internal): New insn having previous
7084         behavior of altivec_vperm_<mode>.
7085         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
7086         altivec_expand_vec_perm_le when producing code with little endian
7087         element order.
7088         (*altivec_vperm_<mode>_uns_internal): New insn having previous
7089         behavior of altivec_vperm_<mode>_uns.
7091 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7093         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
7094         (altivec_vsumsws): Add handling for -maltivec=be with a little
7095         endian target.
7096         (altivec_vsumsws_direct): New.
7097         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
7098         gen_altivec_vsumsws.
7100 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
7102         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
7103         vtable_pointer_value_to_binfo): New functions.
7104         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
7105         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
7107 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
7109         * config/nios2/nios2.md (load_got_register): Initialize GOT
7110         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
7111         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
7113 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
7115         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
7116         preserverd by passthrough, do not propagate the type.
7118 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
7120         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
7121         (mips_atomic_assign_expand_fenv): New function.
7122         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
7124 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
7126         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
7127         (__builtin_mips_set_fcsr): Likewise.
7128         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
7129         MIPS_USI_FTYPE_VOID.
7130         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
7131         (mips16_expand_set_fcsr): Likewise.
7132         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
7133         (mips16_set_fcsr_stub): Likewise.
7134         (mips16_get_fcsr_one_only_stub): New class.
7135         (mips16_set_fcsr_one_only_stub): Likewise.
7136         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
7137         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
7138         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
7139         (hard_float): New availability predicate.
7140         (mips_builtins): Add get_fcsr and set_fcsr.
7141         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
7142         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
7143         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
7144         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
7145         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
7146         patterns.
7148 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
7150         * config/mips/mips.c (mips_one_only_stub): New class.
7151         (mips_need_mips16_rdhwr_p): Replace with...
7152         (mips16_rdhwr_stub): ...this new variable.
7153         (mips16_stub_call_address): New function.
7154         (mips16_rdhwr_one_only_stub): New class.
7155         (mips_expand_thread_pointer): Use mips16_stub_call_address.
7156         (mips_output_mips16_rdhwr): Delete.
7157         (mips_finish_stub): New function.
7158         (mips_code_end): Use it to handle rdhwr stubs.
7160 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
7162         PR target/60017
7163         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
7164         when calculating size of integer atomic types.
7166 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
7168         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
7170 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
7172         PR tree-optimization/60003
7173         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
7174         * profile.c (branch_prob): Use gimple_call_builtin_p
7175         to check for BUILT_IN_SETJMP_RECEIVER.
7176         * tree-inline.c (copy_bb): Call notice_special_calls.
7178 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
7180         PR bootstrap/59985
7181         * lra-constraints.c (process_alt_operands): Update reload_sum only
7182         on the first pass.
7184 2014-01-31  Richard Henderson  <rth@redhat.com>
7186         PR middle-end/60004
7187         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
7188         until after else_eh is processed.
7190 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
7192         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
7193         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
7194         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
7195         in smmintrin.h, remove them.
7196         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
7197         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
7198         * config/i386/i386.md (ROUND_SAE): Fix value.
7199         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
7200         (const48_operand): New.
7201         * config/i386/subst.md (round), (round_expand): Use
7202         const_4_or_8_to_11_operand.
7203         (round_saeonly), (round_saeonly_expand): Use const48_operand.
7205 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
7207         * config/i386/constraints.md (Yk): Swap meaning with k.
7208         * config/i386/i386.md (movhi_internal): Change Yk to k.
7209         (movqi_internal): Ditto.
7210         (*k<logic><mode>): Ditto.
7211         (*andhi_1): Ditto.
7212         (*andqi_1): Ditto.
7213         (kandn<mode>): Ditto.
7214         (*<code>hi_1): Ditto.
7215         (*<code>qi_1): Ditto.
7216         (kxnor<mode>): Ditto.
7217         (kortestzhi): Ditto.
7218         (kortestchi): Ditto.
7219         (kunpckhi): Ditto.
7220         (*one_cmplhi2_1): Ditto.
7221         (*one_cmplqi2_1): Ditto.
7222         * config/i386/sse.md (): Change k to Yk.
7223         (avx512f_load<mode>_mask): Ditto.
7224         (avx512f_blendm<mode>): Ditto.
7225         (avx512f_store<mode>_mask): Ditto.
7226         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
7227         (avx512f_storedqu<mode>_mask): Ditto.
7228         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
7229         Ditto.
7230         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
7231         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
7232         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
7233         (avx512f_maskcmp<mode>3): Ditto.
7234         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
7235         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
7236         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
7237         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
7238         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
7239         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
7240         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
7241         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
7242         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
7243         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
7244         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
7245         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
7246         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
7247         (vec_extract_lo_<mode>_maskm): Ditto.
7248         (vec_extract_hi_<mode>_maskm): Ditto.
7249         (avx512f_vternlog<mode>_mask): Ditto.
7250         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
7251         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
7252         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
7253         (avx512f_<code>v8div16qi2_mask): Ditto.
7254         (avx512f_<code>v8div16qi2_mask_store): Ditto.
7255         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
7256         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
7257         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
7258         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
7259         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
7260         (*avx512pf_gatherpf<mode>df_mask): Ditto.
7261         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
7262         (*avx512pf_scatterpf<mode>df_mask): Ditto.
7263         (avx512cd_maskb_vec_dupv8di): Ditto.
7264         (avx512cd_maskw_vec_dupv16si): Ditto.
7265         (avx512f_vpermi2var<mode>3_maskz): Ditto.
7266         (avx512f_vpermi2var<mode>3_mask): Ditto.
7267         (avx512f_vpermi2var<mode>3_mask): Ditto.
7268         (avx512f_vpermt2var<mode>3_maskz): Ditto.
7269         (*avx512f_gathersi<mode>): Ditto.
7270         (*avx512f_gathersi<mode>_2): Ditto.
7271         (*avx512f_gatherdi<mode>): Ditto.
7272         (*avx512f_gatherdi<mode>_2): Ditto.
7273         (*avx512f_scattersi<mode>): Ditto.
7274         (*avx512f_scatterdi<mode>): Ditto.
7275         (avx512f_compress<mode>_mask): Ditto.
7276         (avx512f_compressstore<mode>_mask): Ditto.
7277         (avx512f_expand<mode>_mask): Ditto.
7278         * config/i386/subst.md (mask): Change k to Yk.
7279         (mask_scalar_merge): Ditto.
7280         (sd): Ditto.
7282 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
7284         * doc/extend.texi (Vector Extensions): Document ?: in C++.
7286 2014-01-31  Richard Biener  <rguenther@suse.de>
7288         PR middle-end/59990
7289         * builtins.c (fold_builtin_memory_op): Make sure to not
7290         use a floating-point mode or a boolean or enumeral type for
7291         the copy operation.
7293 2014-01-30  DJ Delorie  <dj@redhat.com>
7295         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
7296         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
7297         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
7298         whenever main() has an epilogue.
7300 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7302         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
7303         unused variable "field".
7304         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
7305         (vsx_mergeh_<mode>): Likewise.
7306         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
7307         (altivec_vmrghh): Likewise.
7308         (altivec_vmrghw): Likewise.
7309         (altivec_vmrglb): Likewise.
7310         (altivec_vmrglh): Likewise.
7311         (altivec_vmrglw): Likewise.
7312         (altivec_vspltb): Add missing uses.
7313         (altivec_vsplth): Likewise.
7314         (altivec_vspltw): Likewise.
7315         (altivec_vspltsf): Likewise.
7317 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
7319         PR target/59923
7320         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
7321         frame related instructions.
7323 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
7325         PR rtl-optimization/59959
7326         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
7327         any reload of register whose subreg is invalid.
7329 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
7331         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
7332         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
7333         Add missing return type - void.
7335 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7337         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
7338         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
7339         remove element index adjustment for endian (now handled in vsx.md
7340         and altivec.md).
7341         (altivec_expand_vec_perm_const): Use
7342         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
7343         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
7344         (vsx_xxspltw_<mode>): Adjust element index for little endian.
7345         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
7346         define_expand and a new define_insn *altivec_vspltb_internal;
7347         adjust for -maltivec=be on a little endian target.
7348         (altivec_vspltb_direct): New.
7349         (altivec_vsplth): Divide into a define_expand and a new
7350         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
7351         little endian target.
7352         (altivec_vsplth_direct): New.
7353         (altivec_vspltw): Divide into a define_expand and a new
7354         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
7355         little endian target.
7356         (altivec_vspltw_direct): New.
7357         (altivec_vspltsf): Divide into a define_expand and a new
7358         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
7359         a little endian target.
7361 2014-01-30  Richard Biener  <rguenther@suse.de>
7363         PR tree-optimization/59993
7364         * tree-ssa-forwprop.c (associate_pointerplus): Check we
7365         can propagate form the earlier stmt and avoid the transform
7366         when the intermediate result is needed.
7368 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
7370         * README.Portability: Fix typo.
7372 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
7374         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
7375         comparison_operator with ordered_comparison_operator.
7377 2014-01-30  Nick Clifton  <nickc@redhat.com>
7379         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
7380         Rename to mn10300_store_multiple_regs.
7381         * config/mn10300/mn10300.c: Likewise.
7382         * config/mn10300/mn10300.md (store_movm): Fix typo: call
7383         store_multiple_regs.
7384         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
7385         Call mn10300_store_multiple_regs.
7387 2014-01-30  Nick Clifton  <nickc@redhat.com>
7388             DJ Delorie  <dj@redhat.com>
7390         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
7391         %fp 2 to keep registers after it properly word-aligned.
7392         (rl78_alloc_physical_registers_umul): Handle the case where both
7393         input operands are the same.
7395 2014-01-30  Richard Biener  <rguenther@suse.de>
7397         PR tree-optimization/59903
7398         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
7399         check properly.
7401 2014-01-30  Jason Merrill  <jason@redhat.com>
7403         PR c++/59633
7404         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
7406         PR c++/59645
7407         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
7409 2014-01-30  Richard Biener  <rguenther@suse.de>
7411         PR tree-optimization/59951
7412         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
7414 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
7416         PR target/59784
7417         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
7418         SFmode to DFmode case.
7420 2014-01-29  DJ Delorie  <dj@redhat.com>
7422         * config/msp430/msp430.opt (-minrt): New.
7423         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
7424         if -minrt given.
7425         (ENDFILE_SPEC): Likewise.
7427 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
7429         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
7430         (estimate_function_body_sizes): Use it.
7432 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
7434         PR c++/58561
7435         * dwarf2out.c (is_cxx_auto): New.
7436         (is_base_type): Use it.
7437         (gen_type_die_with_usage): Likewise.
7439 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7441         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
7442         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
7443         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
7444         -maltivec=be with LE targets.
7445         (vsx_mergeh_<mode>): Likewise.
7446         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
7447         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
7448         (altivec_vmrghb): Replace with define_expand and new
7449         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
7450         (altivec_vmrghb_direct): New define_insn.
7451         (altivec_vmrghh): Replace with define_expand and new
7452         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
7453         (altivec_vmrghh_direct): New define_insn.
7454         (altivec_vmrghw): Replace with define_expand and new
7455         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
7456         (altivec_vmrghw_direct): New define_insn.
7457         (*altivec_vmrghsf): Adjust for endianness.
7458         (altivec_vmrglb): Replace with define_expand and new
7459         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
7460         (altivec_vmrglb_direct): New define_insn.
7461         (altivec_vmrglh): Replace with define_expand and new
7462         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
7463         (altivec_vmrglh_direct): New define_insn.
7464         (altivec_vmrglw): Replace with define_expand and new
7465         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
7466         (altivec_vmrglw_direct): New define_insn.
7467         (*altivec_vmrglsf): Adjust for endianness.
7468         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
7469         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
7470         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
7471         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
7472         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
7473         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
7474         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
7475         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
7477 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7479         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
7480         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
7481         whitespace.
7483 2014-01-29  Richard Biener  <rguenther@suse.de>
7485         PR tree-optimization/58742
7486         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
7487         associate_pointerplus_align.
7488         (associate_pointerplus_diff): New function.
7489         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
7490         and associate_pointerplus_diff.
7492 2014-01-29  Richard Biener  <rguenther@suse.de>
7494         * lto-streamer.h (LTO_major_version): Bump to 3.
7495         (LTO_minor_version): Reset to 0.
7497 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
7499         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
7500         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
7501         (arm_file_start): Generate correct asm header for armv7ve.
7502         * config/arm/bpabi.h: Add multilib support for armv7ve.
7503         * config/arm/driver-arm.c: Change the architectures of cortex-a7
7504         and cortex-a15 to armv7ve.
7505         * config/arm/t-aprofile: Add multilib support for armv7ve.
7506         * doc/invoke.texi: Document -march=armv7ve.
7508 2014-01-29  Richard Biener  <rguenther@suse.de>
7510         PR tree-optimization/58742
7511         * tree-ssa-forwprop.c (associate_plusminus): Return true
7512         if we changed sth, defer EH cleanup to ...
7513         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
7514         (simplify_mult): New function.
7516 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
7518         PR middle-end/59917
7519         PR tree-optimization/59920
7520         * tree.c (build_common_builtin_nodes): Remove
7521         __builtin_setjmp_dispatcher initialization.
7522         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
7523         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
7524         instead of gsi_after_labels + manually skipping debug stmts.
7525         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
7526         ignore bbs with IFN_ABNORMAL_DISPATCHER.
7527         * tree-inline.c (copy_edges_for_bb): Remove
7528         can_make_abnormal_goto argument, instead add abnormal_goto_dest
7529         argument.  Ignore computed_goto_p stmts.  Don't call
7530         make_abnormal_goto_edges.  If a call might need abnormal edges
7531         for non-local gotos, see if it already has an edge to
7532         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
7533         with true argument, don't do anything then, otherwise add
7534         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
7535         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
7536         caller.
7537         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
7538         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
7539         (lower_stmt): Don't set data->calls_builtin_setjmp.
7540         (lower_builtin_setjmp): Adjust comment.
7541         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
7542         * tree-cfg.c (found_computed_goto): Remove.
7543         (factor_computed_gotos): Remove.
7544         (make_goto_expr_edges): Return bool, true for computed gotos.
7545         Don't call make_abnormal_goto_edges.
7546         (build_gimple_cfg): Don't set found_computed_goto, don't call
7547         factor_computed_gotos.
7548         (computed_goto_p): No longer static.
7549         (make_blocks): Don't set found_computed_goto.
7550         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
7551         (make_edges): If make_goto_expr_edges returns true, push bb
7552         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
7553         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
7554         vector.  Record mapping between bbs and OpenMP regions if there
7555         are any, adjust make_gimple_omp_edges caller.  Call
7556         handle_abnormal_edges.
7557         (make_abnormal_goto_edges): Remove.
7558         * tree-cfg.h (make_abnormal_goto_edges): Remove.
7559         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
7560         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
7561         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
7562         * internal-fn.def (ABNORMAL_DISPATCHER): New.
7563         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
7564         filling *region also set *region_idx to (*region)->entry->index.
7566         PR other/58712
7567         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
7568         For REGs set ORIGINAL_REGNO.
7570 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
7572         * doc/md.texi: Mention that a target shouldn't implement
7573         vec_widen_(s|u)mul_even/odd pair if it is less efficient
7574         than hi/lo pair.
7576 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
7578         PR tree-optimization/59594
7579         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
7580         a copy of the datarefs vector rather than the vector itself.
7582 2014-01-28  Jason Merrill  <jason@redhat.com>
7584         PR c++/53756
7585         * dwarf2out.c (auto_die): New static.
7586         (gen_type_die_with_usage): Handle C++1y 'auto'.
7587         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
7588         on definition.
7590 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
7592         PR target/59672
7593         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
7594         (SPEC_X32): Likewise.
7595         (SPEC_64): Likewise.
7596         * config/i386/i386.c (ix86_option_override_internal): Turn off
7597         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
7598         for TARGET_16BIT.
7599         (x86_file_start): Output .code16gcc for TARGET_16BIT.
7600         * config/i386/i386.h (TARGET_16BIT): New macro.
7601         (TARGET_16BIT_P): Likewise.
7602         * config/i386/i386.opt: Add m16.
7603         * doc/invoke.texi: Document -m16.
7605 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
7607         PR preprocessor/59935
7608         * input.c (location_get_source_line): Bail out on when line number
7609         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
7611 2014-01-28  Richard Biener  <rguenther@suse.de>
7613         PR tree-optimization/58742
7614         * tree-ssa-forwprop.c (associate_plusminus): Handle
7615         pointer subtraction of the form (T)(P + A) - (T)P.
7617 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7619         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
7620         at const_int_cost.
7622 2014-01-28  Richard Biener  <rguenther@suse.de>
7624         Revert
7625         2014-01-28  Richard Biener  <rguenther@suse.de>
7627         PR rtl-optimization/45364
7628         PR rtl-optimization/59890
7629         * var-tracking.c (local_get_addr_clear_given_value): Handle
7630         already cleared slot.
7631         (val_reset): Handle not allocated local_get_addr_cache.
7632         (vt_find_locations): Use post-order on the inverted CFG.
7634 2014-01-28  Richard Biener  <rguenther@suse.de>
7636         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
7638 2014-01-28  Richard Biener  <rguenther@suse.de>
7640         PR rtl-optimization/45364
7641         PR rtl-optimization/59890
7642         * var-tracking.c (local_get_addr_clear_given_value): Handle
7643         already cleared slot.
7644         (val_reset): Handle not allocated local_get_addr_cache.
7645         (vt_find_locations): Use post-order on the inverted CFG.
7647 2014-01-28  Alan Modra  <amodra@gmail.com>
7649         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
7650         * configure.ac <recursive call for build != host>: Define
7651         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
7652         and LD_FOR_BUILD too.
7653         * configure: Regenerate.
7655 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
7657         * config/i386/i386.c (get_builtin_code_for_version): Separate
7658         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
7659         Broadwell from Haswell.
7661 2014-01-27  Steve Ellcey  <sellcey@mips.com>
7663         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
7664         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
7665         * config/mips/mips.c (mips_option_override): Change setting
7666         of TARGET_DSP.
7667         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
7668         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
7669         Change from Mask to Var.
7671 2014-01-27  Jeff Law  <law@redhat.com>
7673         * ipa-inline.c (inline_small_functions): Fix typo.
7675 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
7677         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
7678         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
7679         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
7680         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
7681         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
7682         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
7683         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
7684         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
7685         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
7686         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
7687         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
7688         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
7689         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
7690         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
7691         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
7692         (_mm512_storeu_epi64): Ditto.
7693         (_mm512_cmpge_epi32_mask): Ditto.
7694         (_mm512_cmpge_epu32_mask): Ditto.
7695         (_mm512_cmpge_epi64_mask): Ditto.
7696         (_mm512_cmpge_epu64_mask): Ditto.
7697         (_mm512_cmple_epi32_mask): Ditto.
7698         (_mm512_cmple_epu32_mask): Ditto.
7699         (_mm512_cmple_epi64_mask): Ditto.
7700         (_mm512_cmple_epu64_mask): Ditto.
7701         (_mm512_cmplt_epi32_mask): Ditto.
7702         (_mm512_cmplt_epu32_mask): Ditto.
7703         (_mm512_cmplt_epi64_mask): Ditto.
7704         (_mm512_cmplt_epu64_mask): Ditto.
7705         (_mm512_cmpneq_epi32_mask): Ditto.
7706         (_mm512_cmpneq_epu32_mask): Ditto.
7707         (_mm512_cmpneq_epi64_mask): Ditto.
7708         (_mm512_cmpneq_epu64_mask): Ditto.
7709         (_mm512_expand_pd): Ditto.
7710         (_mm512_expand_ps): Ditto.
7711         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
7712         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
7713         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
7714         * config/i386/i386.c (ix86_builtins): Add
7715         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
7716         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
7717         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
7718         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
7719         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
7720         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
7721         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
7722         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
7723         IX86_BUILTIN_PMOVUSQW512_MEM.
7724         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
7725         __builtin_ia32_pmovsqd512mem_mask,
7726         __builtin_ia32_pmovqd512mem_mask,
7727         __builtin_ia32_pmovusqw512mem_mask,
7728         __builtin_ia32_pmovsqw512mem_mask,
7729         __builtin_ia32_pmovqw512mem_mask,
7730         __builtin_ia32_pmovusdw512mem_mask,
7731         __builtin_ia32_pmovsdw512mem_mask,
7732         __builtin_ia32_pmovdw512mem_mask,
7733         __builtin_ia32_pmovqb512mem_mask,
7734         __builtin_ia32_pmovusqb512mem_mask,
7735         __builtin_ia32_pmovsqb512mem_mask,
7736         __builtin_ia32_pmovusdb512mem_mask,
7737         __builtin_ia32_pmovsdb512mem_mask,
7738         __builtin_ia32_pmovdb512mem_mask.
7739         (bdesc_args): Add __builtin_ia32_expanddf512,
7740         __builtin_ia32_expandsf512.
7741         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
7742         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
7743         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
7744         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
7745         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
7746         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
7747         (avx512f_<code>v8div16qi2_mask_store): This.
7748         (avx512f_expand<mode>): New.
7750 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
7752         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
7753         New.
7754         (_mm512_mask_prefetch_i64gather_pd): Ditto.
7755         (_mm512_prefetch_i32scatter_pd): Ditto.
7756         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
7757         (_mm512_prefetch_i64scatter_pd): Ditto.
7758         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
7759         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
7760         (_mm512_mask_prefetch_i64gather_ps): Ditto.
7761         (_mm512_prefetch_i32scatter_ps): Ditto.
7762         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
7763         (_mm512_prefetch_i64scatter_ps): Ditto.
7764         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
7765         * config/i386/i386-builtin-types.def: Define
7766         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
7767         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
7768         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
7769         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
7770         IX86_BUILTIN_SCATTERPFQPD.
7771         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
7772         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
7773         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
7774         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
7775         __builtin_ia32_scatterpfqps.
7776         (ix86_expand_builtin): Expand new built-ins.
7777         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
7778         fix memory access data type.
7779         (*avx512pf_gatherpf<mode>_mask): Ditto.
7780         (*avx512pf_gatherpf<mode>): Ditto.
7781         (avx512pf_scatterpf<mode>): Ditto.
7782         (*avx512pf_scatterpf<mode>_mask): Ditto.
7783         (*avx512pf_scatterpf<mode>): Ditto.
7784         (GATHER_SCATTER_SF_MEM_MODE): New.
7785         (avx512pf_gatherpf<mode>df): Ditto.
7786         (*avx512pf_gatherpf<mode>df_mask): Ditto.
7787         (*avx512pf_scatterpf<mode>df): Ditto.
7789 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
7791         PR bootstrap/59934
7792         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
7793         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
7794         reached.
7796 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
7798         * common/config/arm/arm-common.c
7799         (arm_rewrite_mcpu): Handle multiple names.
7800         * config/arm/arm.h
7801         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
7803 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
7805         * gimple-builder.h (create_gimple_tmp): Delete.
7807 2014-01-27  Christian Bruel  <christian.bruel@st.com>
7809         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
7810         words comparisons.
7812 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
7814         * config/pa/pa.md (call): Generate indirect long calls to non-local
7815         functions when outputing 32-bit code.
7816         (call_value): Likewise except for special call to buggy powf function.
7818         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
7819         portable runtime and PIC indirect calls.
7820         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
7821         and PIC call sequences.  Use ldo instead of blr to set return register
7822         in PIC call sequence.
7824 2014-01-25  Walter Lee  <walt@tilera.com>
7826         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
7827         avoid clobbering a live register.
7829 2014-01-25  Walter Lee  <walt@tilera.com>
7831         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
7832         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
7833         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
7834         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
7836 2014-01-25  Walter Lee  <walt@tilera.com>
7838         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
7839         arguments on even registers.
7840         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
7841         STACK_BOUNDARY.
7842         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
7843         (BIGGEST_ALIGNMENT): Ditto.
7844         (BIGGEST_FIELD_ALIGNMENT): Ditto.
7846 2014-01-25  Walter Lee  <walt@tilera.com>
7848         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
7849         insns before bundling.
7850         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
7852 2014-01-25  Walter Lee  <walt@tilera.com>
7854         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
7855         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
7856         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
7858 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
7860         * config/mips/constraints.md (kl): Delete.
7861         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
7862         define expands, using...
7863         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
7864         instructions for MIPS16.
7865         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
7866         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
7868 2014-01-25  Walter Lee  <walt@tilera.com>
7870         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
7871         (clzdi2): Ditto.
7872         (ffsdi2): Ditto.
7874 2014-01-25  Walter Lee  <walt@tilera.com>
7876         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
7877         (TARGET_EXPAND_TO_RTL_HOOK): Define.
7879 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
7881         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
7882         Handle XOR.
7884 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
7886         * print-rtl.c (in_call_function_usage): New var.
7887         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
7888         EXPR_LIST mode as mode and not as reg note name.
7890         PR middle-end/59561
7891         * cfgloopmanip.c (copy_loop_info): If
7892         loop->warned_aggressive_loop_optimizations, make sure
7893         the flag is set in target loop too.
7895 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7897         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
7898         flag_cilkplus.
7899         * builtins.def: Likewise.
7900         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
7901         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
7902         * ira.c (ira_setup_eliminable_regset): Likewise.
7903         * omp-low.c (gate_expand_omp): Likewise.
7904         (execute_lower_omp): Likewise.
7905         (diagnose_sb_0): Likewise.
7906         (gate_diagnose_omp_blocks): Likewise.
7907         (simd_clone_clauses_extract): Likewise.
7908         (gate): Likewise.
7910 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7912         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
7913         correction for little endian...
7914         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
7915         here.
7917 2014-01-24  Jeff Law  <law@redhat.com>
7919         PR tree-optimization/59919
7920         * tree-vrp.c (find_assert_locations_1): Do not register asserts
7921         for non-returning calls.
7923 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
7925         * common/config/aarch64/aarch64-common.c
7926         (aarch64_rewrite_mcpu): Handle multiple names.
7927         * config/aarch64/aarch64.h
7928         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
7930 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
7932         * input.c (add_file_to_cache_tab): Handle the case where fopen
7933         returns NULL.
7935 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
7937         PR target/59929
7938         * config/i386/i386.md (pushsf splitter): Get stack adjustment
7939         from push operand if code of push isn't PRE_DEC.
7941 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7943         PR target/59909
7944         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7945         -mquad-memory-atomic.  Update -mquad-memory documentation to say
7946         it is only used for non-atomic loads/stores.
7948         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
7949         -mquad-memory or -mquad-memory-atomic switches.
7951         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7952         -mquad-memory-atomic to ISA 2.07 support.
7954         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
7955         to separate support of normal quad word memory operations (ldq, stq)
7956         from the atomic quad word memory operations.
7958         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7959         support to separate non-atomic quad word operations from atomic
7960         quad word operations.  Disable non-atomic quad word operations in
7961         little endian mode so that we don't have to swap words after the
7962         load and before the store.
7963         (quad_load_store_p): Add comment about atomic quad word support.
7964         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
7965         options printed with -mdebug=reg.
7967         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
7968         -mquad-memory-atomic as the test for whether we have quad word
7969         atomic instructions.
7970         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
7971         or -mp8-vector are used, allow byte/half-word atomic operations.
7973         * config/rs6000/sync.md (load_lockedti): Insure that the address
7974         is a proper indexed or indirect address for the lqarx instruction.
7975         On little endian systems, swap the hi/lo registers after the lqarx
7976         instruction.
7977         (load_lockedpti): Use indexed_or_indirect_operand predicate to
7978         insure the address is valid for the lqarx instruction.
7979         (store_conditionalti): Insure that the address is a proper indexed
7980         or indirect address for the stqcrx. instruction.  On little endian
7981         systems, swap the hi/lo registers before doing the stqcrx.
7982         instruction.
7983         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
7984         insure the address is valid for the stqcrx. instruction.
7986         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
7987         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
7988         type of quad memory support is available.
7990 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
7992         PR regression/59915
7993         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
7994         there is a danger of looping.
7996 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
7998         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
7999         force flag_ira_loop_pressure if set via command line.
8001 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
8003         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
8004         (ashr_simd): New builtin handling DI mode.
8005         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
8006         (aarch64_sshr_simddi): New match pattern.
8007         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
8008         (vshrd_n_s64): Likewise.
8009         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
8011 2014-01-23  Nick Clifton  <nickc@redhat.com>
8013         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
8014         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
8015         favour of mcu specific scripts.
8016         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
8017         430x multilibs.
8019 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
8020             Alex Velenko  <Alex.Velenko@arm.com>
8022         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
8023         (vaddv_s16): Likewise.
8024         (vaddv_s32): Likewise.
8025         (vaddv_u8): Likewise.
8026         (vaddv_u16): Likewise.
8027         (vaddv_u32): Likewise.
8028         (vaddvq_s8): Likewise.
8029         (vaddvq_s16): Likewise.
8030         (vaddvq_s32): Likewise.
8031         (vaddvq_s64): Likewise.
8032         (vaddvq_u8): Likewise.
8033         (vaddvq_u16): Likewise.
8034         (vaddvq_u32): Likewise.
8035         (vaddvq_u64): Likewise.
8036         (vaddv_f32): Likewise.
8037         (vaddvq_f32): Likewise.
8038         (vaddvq_f64): Likewise.
8039         (vmaxv_f32): Likewise.
8040         (vmaxv_s8): Likewise.
8041         (vmaxv_s16): Likewise.
8042         (vmaxv_s32): Likewise.
8043         (vmaxv_u8): Likewise.
8044         (vmaxv_u16): Likewise.
8045         (vmaxv_u32): Likewise.
8046         (vmaxvq_f32): Likewise.
8047         (vmaxvq_f64): Likewise.
8048         (vmaxvq_s8): Likewise.
8049         (vmaxvq_s16): Likewise.
8050         (vmaxvq_s32): Likewise.
8051         (vmaxvq_u8): Likewise.
8052         (vmaxvq_u16): Likewise.
8053         (vmaxvq_u32): Likewise.
8054         (vmaxnmv_f32): Likewise.
8055         (vmaxnmvq_f32): Likewise.
8056         (vmaxnmvq_f64): Likewise.
8057         (vminv_f32): Likewise.
8058         (vminv_s8): Likewise.
8059         (vminv_s16): Likewise.
8060         (vminv_s32): Likewise.
8061         (vminv_u8): Likewise.
8062         (vminv_u16): Likewise.
8063         (vminv_u32): Likewise.
8064         (vminvq_f32): Likewise.
8065         (vminvq_f64): Likewise.
8066         (vminvq_s8): Likewise.
8067         (vminvq_s16): Likewise.
8068         (vminvq_s32): Likewise.
8069         (vminvq_u8): Likewise.
8070         (vminvq_u16): Likewise.
8071         (vminvq_u32): Likewise.
8072         (vminnmv_f32): Likewise.
8073         (vminnmvq_f32): Likewise.
8074         (vminnmvq_f64): Likewise.
8076 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
8078         * config/aarch64/aarch64-simd.md
8079         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
8080         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
8081         (*aarch64_mul3_elt<mode>): Likewise.
8082         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
8083         (*aarch64_mul3_elt_to_64v2df): Likewise.
8084         (*aarch64_mla_elt<mode>): Likewise.
8085         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
8086         (*aarch64_mls_elt<mode>): Likewise.
8087         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
8088         (*aarch64_fma4_elt<mode>): Likewise.
8089         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
8090         (*aarch64_fma4_elt_to_64v2df): Likewise.
8091         (*aarch64_fnma4_elt<mode>): Likewise.
8092         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
8093         (*aarch64_fnma4_elt_to_64v2df): Likewise.
8094         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8095         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
8096         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8097         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8098         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
8099         (aarch64_sqdmull_lane<mode>_internal): Likewise.
8100         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
8102 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
8104         * config/aarch64/aarch64-simd.md
8105         (aarch64_be_checked_get_lane<mode>): New define_expand.
8106         * config/aarch64/aarch64-simd-builtins.def
8107         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
8108         New builtin definition.
8109         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
8110         Use new safe be builtin.
8112 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
8114         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
8115         New define_insn.
8116         (aarch64_be_st1<mode>): Likewise.
8117         (aarch_ld1<VALL:mode>): Define_expand modified.
8118         (aarch_st1<VALL:mode>): Likewise.
8119         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
8120         (UNSPEC_ST1): Likewise.
8122 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
8124         * config/microblaze/microblaze.md: Add trap insn and attribute
8126 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
8128         PR preprocessor/58580
8129         * input.h (location_get_source_line): Take an additional line_size
8130         parameter.
8131         (void diagnostics_file_cache_fini): Declare new function.
8132         * input.c (struct fcache): New type.
8133         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
8134         New static constants.
8135         (diagnostic_file_cache_init, total_lines_num)
8136         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
8137         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
8138         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
8139         (get_next_line, read_next_line, goto_next_line, read_line_num):
8140         New static function definitions.
8141         (diagnostic_file_cache_fini): New function.
8142         (location_get_source_line): Take an additional output line_len
8143         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
8144         read_line_num.
8145         * diagnostic.c (diagnostic_finish): Call
8146         diagnostic_file_cache_fini.
8147         (adjust_line): Take an additional input parameter for the length
8148         of the line, rather than calculating it with strlen.
8149         (diagnostic_show_locus): Adjust the use of
8150         location_get_source_line and adjust_line with respect to their new
8151         signature.  While displaying a line now, do not stop at the first
8152         null byte.  Rather, display the zero byte as a space and keep
8153         going until we reach the size of the line.
8154         * Makefile.in: Add vec.o to OBJS-libcommon
8156 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8157             Ilya Tocar     <ilya.tocar@intel.com>
8159         * config/i386/avx512fintrin.h (_mm512_kmov): New.
8160         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
8161         (__builtin_ia32_kmov16): Ditto.
8162         * config/i386/i386.md (UNSPEC_KMOV): New.
8163         (kmovw): Ditto.
8165 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8167         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
8168         (_mm512_storeu_si512): Ditto.
8170 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
8172         PR target/52125
8173         * rtl.h (get_referenced_operands): Declare.
8174         * recog.c (get_referenced_operands): New function.
8175         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
8176         operands have been referenced when recording LO_SUM references.
8178 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
8180         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
8182 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
8184         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
8185         Enable for generic and recent AMD targets.
8187 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
8189         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
8190         ARG_SIZE note when adjustment was eliminated.
8192 2014-01-22  Jeff Law  <law@redhat.com>
8194         PR tree-optimization/59597
8195         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
8196         in file.  Accept new argument REGISTERING and use it to modify
8197         dump output appropriately.
8198         (register_jump_thread): Corresponding changes.
8199         (mark_threaded_blocks): Reinstate code to cancel unprofitable
8200         thread paths involving joiner blocks.  Add code to dump cancelled
8201         jump threading paths.
8203 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
8205         PR rtl-optimization/59477
8206         * lra-constraints.c (inherit_in_ebb): Process call for living hard
8207         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
8209 2014-01-22  Tom Tromey  <tromey@redhat.com>
8211         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
8212         PARAMS.
8213         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
8215 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
8217         PR rtl-optimization/59896
8218         * lra-constraints.c (process_alt_operands): Check unused note for
8219         matched operands of insn with no output reloads.
8221 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
8223         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
8224         (mips_move_from_gpr_cost): Likewise.
8226 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
8228         PR rtl-optimization/59858
8229         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
8230         ira_class_hard_regs_num.
8231         (process_alt_operands): Increase reject for dying matched operand.
8233 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
8235         PR target/59003
8236         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
8237         smaller than size, perform several stores or loads and stores
8238         at dst + count - size to store or copy all of size bytes, rather
8239         than just last modesize bytes.
8241 2014-01-20  DJ Delorie  <dj@redhat.com>
8243         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
8244         that CLOBBERs are REGs before propogating their values.
8246 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
8248         PR middle-end/59789
8249         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
8250         (cgraph_inline_failed_type): New function.
8251         * cgraph.h (DEFCIFCODE): Add type.
8252         (cgraph_inline_failed_type_t): New enum.
8253         (cgraph_inline_failed_type): New prototype.
8254         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
8255         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
8256         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
8257         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
8258         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
8259         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
8260         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
8261         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
8262         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
8263         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
8264         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
8265         OPTIMIZATION_MISMATCH.
8266         * tree-inline.c (expand_call_inline): Emit errors during
8267         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
8269 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
8271         PR target/59685
8272         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
8273         mode attribute in insn output.
8275 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
8277         * output.h (output_constant): Delete.
8278         * varasm.c (output_constant): Make private.
8280 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
8282         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
8284 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
8286         PR middle-end/59860
8287         * tree.h (fold_builtin_strcat): New prototype.
8288         * builtins.c (fold_builtin_strcat): No longer static.  Add len
8289         argument, if non-NULL, don't call c_strlen.  Optimize
8290         directly into __builtin_memcpy instead of __builtin_strcpy.
8291         (fold_builtin_2): Adjust fold_builtin_strcat caller.
8292         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
8294 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
8296         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
8297         for SImode_address_operand operands, having only a REG argument.
8299 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8301         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
8302         loader name using mbig-endian.
8303         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
8305 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
8307         * doc/invoke.texi (-march): Clarify documentation for AArch64.
8308         (-mtune): Likewise.
8309         (-mcpu): Likewise.
8311 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
8313         * config/aarch64/aarch64-protos.h
8314         (aarch64_cannot_change_mode_class_ptr): Declare.
8315         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
8316         aarch64_cannot_change_mode_class_ptr): New.
8317         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
8318         backend hook aarch64_cannot_change_mode_class.
8320 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
8322         * common/config/aarch64/aarch64-common.c
8323         (aarch64_handle_option): Don't handle any option order logic here.
8324         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
8325         selected_cpu, warn on architecture version mismatch.
8326         (aarch64_override_options): Fix parsing order for option strings.
8328 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8329             Iain Sandoe  <iain@codesourcery.com>
8331         PR bootstrap/59496
8332         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
8333         warning.  Amend comment to reflect current functionality.
8335 2014-01-20  Richard Biener  <rguenther@suse.de>
8337         PR middle-end/59860
8338         * builtins.c (fold_builtin_strcat): Remove case better handled
8339         by tree-ssa-strlen.c.
8341 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
8343         * config/aarch64/aarch64.opt
8344         (mcpu, march, mtune): Make case-insensitive.
8346 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
8348         PR target/59880
8349         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
8350         if operands[1] is a REG or ZERO_EXTEND of a REG.
8352 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
8354         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
8356 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
8358         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
8359         long non-pic millicode calls.
8361 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8363         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
8365 2014-01-19  Kito Cheng  <kito@0xlab.org>
8367         * builtins.c (expand_movstr): Check movstr expand done or fail.
8369 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
8370             H.J. Lu  <hongjiu.lu@intel.com>
8372         PR target/59379
8373         * config/i386/i386.md (*lea<mode>): Zero-extend return register
8374         to DImode for zero-extended addresses.
8376 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
8378         PR rtl-optimization/57763
8379         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
8380         on the new indirect jump_insn and increment LABEL_NUSES (label).
8382 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
8384         PR bootstrap/59580
8385         PR bootstrap/59583
8386         * config.gcc (x86_archs): New variable.
8387         (x86_64_archs): Likewise.
8388         (x86_cpus): Likewise.
8389         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
8390         --with-arch/--with-cpu= options.
8391         Support --with-arch=/--with-cpu={nehalem,westmere,
8392         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
8394 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
8396         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
8397         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
8399 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
8401         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
8403 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
8405         PR target/58944
8406         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
8407         clear cpp_get_options (parse_in)->warn_unused_macros for
8408         ix86_target_macros_internal with cpp_define.
8410 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
8412         * jump.c (delete_related_insns): Keep (use (insn))s.
8413         * reorg.c (redundant_insn): Check for barriers too.
8415 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
8417         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
8419 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
8421         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
8422         call to $$dyncall when TARGET_LONG_CALLS is true.
8424 2014-01-17  Jeff Law  <law@redhat.com>
8426         * ree.c (combine_set_extension): Temporarily disable test for
8427         changing number of hard registers.
8429 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
8431         PR middle-end/58125
8432         * ipa-inline-analysis.c (inline_free_summary):
8433         Do not free summary of aliases.
8435 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
8437         PR middle-end/59706
8438         * gimplify.c (gimplify_expr): Use create_tmp_var
8439         instead of create_tmp_var_raw.  If cond doesn't have
8440         integral type, don't add the IFN_ANNOTATE builtin at all.
8442 2014-01-17  Martin Jambor  <mjambor@suse.cz>
8444         PR ipa/59736
8445         * ipa-cp.c (prev_edge_clone): New variable.
8446         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
8447         Also resize prev_edge_clone vector.
8448         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
8449         (ipcp_edge_removal_hook): New function.
8450         (ipcp_driver): Register ipcp_edge_removal_hook.
8452 2014-01-17  Andrew Pinski  <apinski@cavium.com>
8453             Steve Ellcey  <sellcey@mips.com>
8455         PR target/59462
8456         * config/mips/mips.c (mips_print_operand): Check operand mode instead
8457         of operator mode.
8459 2014-01-17  Jeff Law  <law@redhat.com>
8461         PR middle-end/57904
8462         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
8463         so that pass_ccp runs first.
8465 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
8467         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
8468         (ix86_adjust_cost): Use !TARGET_XXX.
8469         (do_reorder_for_imul): Likewise.
8470         (swap_top_of_ready_list): Likewise.
8471         (ix86_sched_reorder): Likewise.
8473 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
8475         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8476         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
8477         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
8478         (intel_memset): New.  Duplicate slm_memset.
8479         (intel_cost): New.  Duplicate slm_cost.
8480         (m_INTEL): New macro.
8481         (processor_target_table): Add "intel".
8482         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
8483         with PROCESSOR_INTEL for "intel".
8484         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
8485         PROCESSOR_SILVERMONT.
8486         (ix86_issue_rate): Likewise.
8487         (ix86_adjust_cost): Likewise.
8488         (ia32_multipass_dfa_lookahead): Likewise.
8489         (swap_top_of_ready_list): Likewise.
8490         (ix86_sched_reorder): Likewise.
8491         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
8492         instead of TARGET_OPT_AGU.
8493         * config/i386/i386.h (TARGET_INTEL): New.
8494         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
8495         (processor_type): Add PROCESSOR_INTEL.
8496         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
8497         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
8499 2014-01-17  Marek Polacek  <polacek@redhat.com>
8501         PR c/58346
8502         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
8503         size is zero.
8505 2014-01-17  Richard Biener  <rguenther@suse.de>
8507         PR tree-optimization/46590
8508         * opts.c (default_options_table): Add entries for
8509         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
8510         all enabled at -O1 but not for -Og.
8511         * common.opt (fbranch-count-reg): Remove Init(1).
8512         (fmove-loop-invariants): Likewise.
8513         (ftree-pta): Likewise.
8515 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
8517         * config/i386/i386.c (ix86_data_alignment): For compatibility with
8518         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
8519         decls to at least the GCC 4.8 used alignments.
8521         PR fortran/59440
8522         * tree-nested.c (convert_nonlocal_reference_stmt,
8523         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
8524         of GIMPLE_BIND stmts, adjust associated decls.
8526 2014-01-17  Richard Biener  <rguenther@suse.de>
8528         PR tree-optimization/46590
8529         * vec.h (vec<>::bseach): New member function implementing
8530         binary search according to C89 bsearch.
8531         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
8532         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
8533         bitmap pointer again.  Make accesses_in_loop a flat array.
8534         (mem_ref_obstack): New global.
8535         (outermost_indep_loop): Adjust for mem_ref->stored changes.
8536         (mark_ref_stored): Likewise.
8537         (ref_indep_loop_p_2): Likewise.
8538         (set_ref_stored_in_loop): New helper function.
8539         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
8540         (memref_free): Adjust.
8541         (record_mem_ref_loc): Simplify.
8542         (gather_mem_refs_stmt): Adjust.
8543         (sort_locs_in_loop_postorder_cmp): New function.
8544         (analyze_memory_references): Sort accesses_in_loop after
8545         loop postorder number.
8546         (find_ref_loc_in_loop_cmp): New function.
8547         (for_all_locs_in_loop): Find relevant cluster of locs in
8548         accesses_in_loop and iterate without recursion.
8549         (execute_sm): Avoid uninit warning.
8550         (struct ref_always_accessed): Simplify.
8551         (ref_always_accessed::operator ()): Likewise.
8552         (ref_always_accessed_p): Likewise.
8553         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
8554         loop postorder numbers here.
8555         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
8556         numbers.
8558 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
8560         PR c++/57945
8561         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
8562         on decls for which assemble_alias has been called.
8564 2014-01-17  Nick Clifton  <nickc@redhat.com>
8566         * config/msp430/msp430.opt: (mcpu): New option.
8567         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
8568         (msp430_option_override): Parse target_cpu.  If the MCU name
8569         matches a generic string, clear target_mcu.
8570         (msp430_attr): Allow numeric interrupt values up to 63.
8571         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
8572         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
8573         option.
8574         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
8575         Add mcpu matches.
8576         * config/msp430/msp430.md (popm): Use %J rather than %I.
8577         (addsi3): Use msp430_nonimmediate_operand for operand 2.
8578         (addhi_cy_i): Use immediate_operand for operand 2.
8579         * doc/invoke.texi: Document -mcpu option.
8581 2014-01-17  Richard Biener  <rguenther@suse.de>
8583         PR rtl-optimization/38518
8584         * df.h (df_analyze_loop): Declare.
8585         * df-core.c: Include cfgloop.h.
8586         (df_analyze_1): Split out main part of df_analyze.
8587         (df_analyze): Adjust.
8588         (loop_inverted_post_order_compute): New function.
8589         (loop_post_order_compute): Likewise.
8590         (df_analyze_loop): New function avoiding whole-function
8591         postorder computes.
8592         * loop-invariant.c (find_defs): Use df_analyze_loop.
8593         (find_invariants): Adjust.
8594         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
8596 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8598         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
8599         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
8601 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
8603         * ipa-ref.c (ipa_remove_stmt_references): Fix references
8604         traversal when removing references.
8606 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
8608         PR ipa/59775
8609         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
8611 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
8613         PR middle-end/56791
8614         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
8615         pushing a reload for an autoinc when we had previously reloaded an
8616         inner part of the address.
8618 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
8620         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
8621         field.
8622         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
8623         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
8624         when not giving up or versioning for alias only because of
8625         loop->safelen.
8626         (vect_analyze_data_ref_dependences): Set to true.
8627         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
8628         is a GIMPLE_PHI.
8629         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
8630         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
8631         to the condition.
8633         PR middle-end/58344
8634         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
8636         PR target/59839
8637         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
8638         operand 0 predicate for gathers, use a new pseudo as subtarget.
8640 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
8642         PR middle-end/59609
8643         * lra-constraints.c (process_alt_operands): Add printing debug info.
8644         Check absence of input/output reloads for matched operands too.
8646 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
8648         PR rtl-optimization/59835
8649         * ira.c (ira_init_register_move_cost): Increase cost for
8650         impossible modes.
8652 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
8654         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
8656 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
8658         PR target/59780
8659         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
8660         non-register objects.  Use gen_(high/low)part more consistently.
8661         Fix assertions.
8663 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
8665         PR target/59844
8666         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
8667         endian support, remove tests for WORDS_BIG_ENDIAN.
8668         (p8_mfvsrd_3_<mode>): Likewise.
8669         (reload_gpr_from_vsx<mode>): Likewise.
8670         (reload_gpr_from_vsxsf): Likewise.
8671         (p8_mfvsrd_4_disf): Likewise.
8673 2014-01-16  Richard Biener  <rguenther@suse.de>
8675         PR rtl-optimization/46590
8676         * lcm.c (compute_antinout_edge): Use postorder iteration.
8677         (compute_laterin): Use inverted postorder iteration.
8679 2014-01-16  Nick Clifton  <nickc@redhat.com>
8681         PR middle-end/28865
8682         * varasm.c (output_constant): Return the number of bytes actually
8683         emitted.
8684         (output_constructor_array_range): Update the field size with the
8685         number of bytes emitted by output_constant.
8686         (output_constructor_regular_field): Likewise.  Also do not
8687         complain if the total number of bytes emitted is now greater
8688         than the expected fieldpos.
8689         * output.h (output_constant): Update prototype and descriptive comment.
8691 2014-01-16  Marek Polacek  <polacek@redhat.com>
8693         PR middle-end/59827
8694         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
8695         it is error_mark_node.
8697 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
8699         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
8700         VALID_AVX256_REG_OR_OI_MODE.
8702 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
8704         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
8705         current procedure should be profiled.
8707 2014-01-15  Andrew Pinski  <apinski@cavium.com>
8709         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
8710         of moving from/to the STACK_REG register class.
8712 2014-01-15  Richard Henderson  <rth@redhat.com>
8714         PR debug/54694
8715         * reginfo.c (global_regs_decl): Globalize.
8716         * rtl.h (global_regs_decl): Declare.
8717         * ira.c (do_reload): Diagnose frame_pointer_needed and it
8718         reserved via global_regs.
8720 2014-01-15  Teresa Johnson  <tejohnson@google.com>
8722         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
8724 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
8726         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
8727         and vmulosh rather than call gen_vec_widen_smult_*.
8728         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
8729         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
8730         (vec_widen_smult_even_v16qi): Likewise.
8731         (vec_widen_umult_even_v8hi): Likewise.
8732         (vec_widen_smult_even_v8hi): Likewise.
8733         (vec_widen_umult_odd_v16qi): Likewise.
8734         (vec_widen_smult_odd_v16qi): Likewise.
8735         (vec_widen_umult_odd_v8hi): Likewise.
8736         (vec_widen_smult_odd_v8hi): Likewise.
8737         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
8738         vmuloub rather than call gen_vec_widen_umult_*.
8739         (vec_widen_umult_lo_v16qi): Likewise.
8740         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
8741         vmulosb rather than call gen_vec_widen_smult_*.
8742         (vec_widen_smult_lo_v16qi): Likewise.
8743         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
8744         rather than call gen_vec_widen_umult_*.
8745         (vec_widen_umult_lo_v8hi): Likewise.
8746         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
8747         rather than call gen_vec_widen_smult_*.
8748         (vec_widen_smult_lo_v8hi): Likewise.
8750 2014-01-15  Jeff Law  <law@redhat.com>
8752         PR tree-optimization/59747
8753         * ree.c (find_and_remove_re): Properly handle case where a second
8754         eliminated extension requires widening a copy created for elimination
8755         of a prior extension.
8756         (combine_set_extension): Ensure that the number of hard regs needed
8757         for a destination register does not change when we widen it.
8759 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8761         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
8762         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
8763         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
8764         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
8765         (avr-*-rtems*): Likewise.
8766         (bfin*-rtems*): Likewise.
8767         (moxie-*-rtems*): Likewise.
8768         (h8300-*-rtems*): Likewise.
8769         (i[34567]86-*-rtems*): Likewise.
8770         (lm32-*-rtems*): Likewise.
8771         (m32r-*-rtems*): Likewise.
8772         (m68k-*-rtems*): Likewise.
8773         (microblaze*-*-rtems*): Likewise.
8774         (mips*-*-rtems*): Likewise.
8775         (powerpc-*-rtems*): Likewise.
8776         (sh-*-rtems*): Likewise.
8777         (sparc-*-rtems*): Likewise.
8778         (sparc64-*-rtems*): Likewise.
8779         (v850-*-rtems*): Likewise.
8780         (m32c-*-rtems*): Likewise.
8782 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
8784         PR rtl-optimization/59511
8785         * ira.c (ira_init_register_move_cost): Use memory costs for some
8786         cases of register move cost calculations.
8787         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
8788         instead of BB frequency.
8789         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
8790         * lra-assigns.c (find_hard_regno_for): Ditto.
8792 2014-01-15  Richard Biener  <rguenther@suse.de>
8794         PR tree-optimization/59822
8795         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
8796         (vectorizable_load): Use it to hoist defs of uses of invariant
8797         loads out of the loop.
8799 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
8800             Kugan Vivekanandarajah  <kuganv@linaro.org>
8802         PR target/59695
8803         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
8804         truncation.
8806 2014-01-15  Richard Biener  <rguenther@suse.de>
8808         PR rtl-optimization/59802
8809         * lcm.c (compute_available): Use inverted postorder to seed
8810         the initial worklist.
8812 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8814         PR target/59803
8815         * config/s390/s390.c (s390_preferred_reload_class): Don't return
8816         ADDR_REGS for invalid symrefs in non-PIC code.
8818 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
8820         PR other/58712
8821         * builtins.c (determine_block_size): Initialize *probable_max_size
8822         even if len_rtx is CONST_INT.
8824 2014-01-14  Andrew Pinski  <apinski@cavium.com>
8826         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
8827         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
8828         (cortexa53_tunings): Likewise.
8829         (aarch64_sched_issue_rate): New function.
8830         (TARGET_SCHED_ISSUE_RATE): Define.
8832 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
8834         * ira-costs.c (find_costs_and_classes): Add missed
8835         ira_init_register_move_cost_if_necessary.
8837 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
8839         PR target/59787
8840         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
8842 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
8844         PR target/59794
8845         * config/i386/i386.c (type_natural_mode): Add a bool parameter
8846         to indicate if type is used for function return value.  Warn ABI
8847         change if the vector mode isn't available for function return value.
8848         (ix86_function_arg_advance): Pass false to type_natural_mode.
8849         (ix86_function_arg): Likewise.
8850         (ix86_gimplify_va_arg): Likewise.
8851         (function_arg_32): Don't warn ABI change.
8852         (ix86_function_value): Pass true to type_natural_mode.
8853         (ix86_return_in_memory): Likewise.
8854         (ix86_struct_value_rtx): Removed.
8855         (TARGET_STRUCT_VALUE_RTX): Likewise.
8857 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
8859         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
8860         converting a conditional jump into a conditional return.
8862 2014-01-14  Richard Biener  <rguenther@suse.de>
8864         PR tree-optimization/58921
8865         PR tree-optimization/59006
8866         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
8867         hoisting invariant stmts.
8868         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
8869         invariant loads on the preheader edge if possible.
8871 2014-01-14  Joey Ye  <joey.ye@arm.com>
8873         * doc/plugin.texi (Building GCC plugins): Update to C++.
8875 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
8877         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
8878         (_mm_rcp28_round_ss): Ditto.
8879         (_mm_rsqrt28_round_sd): Ditto.
8880         (_mm_rsqrt28_round_ss): Ditto.
8881         (_mm_rcp28_sd): Ditto.
8882         (_mm_rcp28_ss): Ditto.
8883         (_mm_rsqrt28_sd): Ditto.
8884         (_mm_rsqrt28_ss): Ditto.
8885         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
8886         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
8887         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
8888         (IX86_BUILTIN_RCP28SD): Ditto.
8889         (IX86_BUILTIN_RCP28SS): Ditto.
8890         (IX86_BUILTIN_RSQRT28SD): Ditto.
8891         (IX86_BUILTIN_RSQRT28SS): Ditto.
8892         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
8893         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
8894         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
8895         (ix86_expand_special_args_builtin): Expand new FTYPE.
8896         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
8897         (srcp14<mode>): Make insn unary.
8898         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
8899         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
8900         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
8901         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
8902         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
8903         Fix rounding: make it SAE only.
8904         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
8905         Ditto.
8906         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
8907         Ditto.
8908         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
8909         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
8910         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
8911         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
8912         (round_saeonly_mask_scalar_operand4): Ditto.
8913         (round_saeonly_mask_scalar_op3): Ditto.
8914         (round_saeonly_mask_scalar_op4): Ditto.
8916 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8918         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8919         Implement -maltivec=be for vec_insert and vec_extract.
8921 2014-01-10  DJ Delorie  <dj@redhat.com>
8923         * config/msp430/msp430.md (call_internal): Don't allow memory
8924         references with SP as the base register.
8925         (call_value_internal): Likewise.
8926         * config/msp430/constraints.md (Yc): New.  For memory references
8927         that don't use SP as a base register.
8929         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
8930         "an integer without a # prefix"
8931         * config/msp430/msp430.md (epilogue_helper): Use it.
8933 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
8935         PR target/59617
8936         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
8937         AVX512F gather builtins.
8938         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
8939         on gather decls with INTEGER_TYPE masktype.
8940         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
8941         directly into the builtin rather than hoisting it before loop.
8943         PR tree-optimization/59387
8944         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
8945         (scev_const_prop): If folded_casts and type has undefined overflow,
8946         use force_gimple_operand instead of force_gimple_operand_gsi and
8947         for each added stmt if it is assign with
8948         arith_code_with_undefined_signed_overflow, call
8949         rewrite_to_defined_overflow.
8950         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
8951         gimple-fold.h instead.
8952         (arith_code_with_undefined_signed_overflow,
8953         rewrite_to_defined_overflow): Moved to ...
8954         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
8955         rewrite_to_defined_overflow): ... here.  No longer static.
8956         Include gimplify-me.h.
8957         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
8958         rewrite_to_defined_overflow): New prototypes.
8960 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8962         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
8964 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
8966         * builtins.c (get_object_alignment_2): Minor tweak.
8967         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
8969 2014-01-13  Christian Bruel  <christian.bruel@st.com>
8971         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
8972         optimized non constant lengths.
8974 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
8976         PR libgomp/59194
8977         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
8978         load as __atomic_load_N if possible.
8980 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
8982         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
8983         target parameter.
8984         (rs6000_expand_builtin): Adjust call.
8986 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
8988         PR target/58115
8989         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
8990         * config/rs6000/rs6000.c: Include target-globals.h.
8991         (rs6000_set_current_function): Instead of doing target_reinit
8992         unconditionally, use save_target_globals_default_opts and
8993         restore_target_globals.
8995         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
8996         FPSCR.
8997         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
8998         (rs6000_expand_builtin): Handle mffs and mtfsf.
8999         (rs6000_init_builtins): Define mffs and mtfsf.
9000         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
9001         (rs6000_mffs): New pattern.
9002         (rs6000_mtfsf): New pattern.
9004 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
9006         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
9007         Start narrowing with START.  Apply candidate-use pair
9008         and check overall cost in narrowing.
9009         (iv_ca_prune): Pass new argument.
9011 2014-01-10  Jeff Law  <law@redhat.com>
9013         PR middle-end/59743
9014         * ree.c (combine_reaching_defs): Ensure the defining statement
9015         occurs before the extension when optimizing extensions with
9016         different source and destination hard registers.
9018 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
9020         PR ipa/58585
9021         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
9022         vtables into the type inheritance graph.
9024 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
9026         PR rtl-optimization/59754
9027         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
9028         modes in the REGNO != REGNO case.
9030 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9032         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
9034 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
9036         PR tree-optimization/59745
9037         * tree-predcom.c (tree_predictive_commoning_loop): Call
9038         free_affine_expand_cache if giving up because components is NULL.
9040         * target-globals.c (save_target_globals): Allocate < 4KB structs using
9041         GC in payload of target_globals struct instead of allocating them on
9042         the heap and the larger structs separately using GC.
9043         * target-globals.h (struct target_globals): Make regs, hard_regs,
9044         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
9045         of GTY((skip)) and change type to void *.
9046         (reset_target_globals): Cast loads from those fields to corresponding
9047         types.
9049 2014-01-10  Steve Ellcey  <sellcey@mips.com>
9051         PR plugins/59335
9052         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
9053         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
9054         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
9056 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
9058         PR target/59744
9059         * aarch64-modes.def (CC_Zmode): New flags mode.
9060         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
9061         represents an equality.
9062         (aarch64_get_condition_code): Handle CC_Zmode.
9063         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
9065 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9067         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
9068         extraction in good case.
9070 2014-01-10  Richard Biener  <rguenther@suse.de>
9072         PR tree-optimization/59374
9073         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
9074         checking after SLP discovery.  Mark stmts not participating
9075         in any SLP instance properly.
9077 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9079         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
9080         when handling a SET rtx.
9082 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9084         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
9085         (cortex-a57): Likewise.
9086         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
9088 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9090         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
9091         non-iwmmxt builtins.
9093 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
9095         PR ipa/58252
9096         PR ipa/59226
9097         * ipa-devirt.c record_target_from_binfo): Take as argument
9098         stack of binfos and lookup matching one for virtual inheritance.
9099         (possible_polymorphic_call_targets_1): Update.
9101 2014-01-10  Huacai Chen  <chenhc@lemote.com>
9103         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
9104         kernel strings for Loongson-2E/2F/3A.
9106 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
9108         PR middle-end/59670
9109         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
9110         is_gimple_call before calling gimple_call_internal_p.
9112 2014-01-09  Steve Ellcey  <sellcey@mips.com>
9114         * Makefile.in (TREE_FLOW_H): Remove.
9115         (TREE_SSA_H): Add file names from tree-flow.h.
9116         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
9117         * tree.h: Remove tree-flow.h reference.
9118         * hash-table.h: Remove tree-flow.h reference.
9119         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
9120         reference with tree-ssa-loop.h.
9122 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9124         * doc/invoke.texi: Add -maltivec={be,le} options, and document
9125         default element-order behavior for -maltivec.
9126         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
9127         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
9128         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
9129         when targeting big endian, at least for now.
9130         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
9132 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
9134         PR middle-end/47735
9135         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
9136         var satisfies use_register_for_decl, just take into account type
9137         alignment, rather than decl alignment.
9139         PR tree-optimization/59622
9140         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
9141         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
9142         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
9143         Don't devirtualize for inplace at all.  For targets.length () == 1,
9144         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
9146 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
9148         * config/i386/i386.md (cpu): Remove the unused btver1.
9150 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
9152         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
9154 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
9156         PR target/58115
9157         * tree-core.h (struct target_globals): New forward declaration.
9158         (struct tree_target_option): Add globals field.
9159         * tree.h (TREE_TARGET_GLOBALS): Define.
9160         (prepare_target_option_nodes_for_pch): New prototype.
9161         * target-globals.h (struct target_globals): Define even if
9162         !SWITCHABLE_TARGET.
9163         * tree.c (prepare_target_option_node_for_pch,
9164         prepare_target_option_nodes_for_pch): New functions.
9165         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
9166         * config/i386/i386.c: Include target-globals.h.
9167         (ix86_set_current_function): Instead of doing target_reinit
9168         unconditionally, use save_target_globals_default_opts and
9169         restore_target_globals.
9171 2014-01-09  Richard Biener  <rguenther@suse.de>
9173         PR tree-optimization/59715
9174         * tree-cfg.h (split_critical_edges): Declare.
9175         * tree-cfg.c (split_critical_edges): Export.
9176         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
9178 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
9180         * cfgexpand.c (expand_stack_vars): Optionally disable
9181         asan stack protection.
9182         (expand_used_vars): Likewise.
9183         (partition_stack_vars): Likewise.
9184         * asan.c (asan_emit_stack_protection): Optionally disable
9185         after return stack usage.
9186         (instrument_derefs): Optionally disable memory access instrumentation.
9187         (instrument_builtin_call): Likewise.
9188         (instrument_strlen_call): Likewise.
9189         (asan_protect_global): Optionally disable global variables protection.
9190         * doc/invoke.texi: Added doc for new options.
9191         * params.def: Added new options.
9192         * params.h: Likewise.
9194 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
9196         PR rtl-optimization/59724
9197         * ifcvt.c (cond_exec_process_if_block): Don't call
9198         flow_find_head_matching_sequence with 0 longest_match.
9199         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
9200         non-active insns if !stop_after.
9201         (try_head_merge_bb): Revert 2014-01-07 changes.
9203 2014-01-08  Jeff Law  <law@redhat.com>
9205         * ree.c (get_sub_rtx): New function, extracted from...
9206         (merge_def_and_ext): Here.
9207         (combine_reaching_defs): Use get_sub_rtx.
9209 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
9211         * cgraph.h (varpool_variable_node): Do not choke on null node.
9213 2014-01-08  Catherine Moore  <clm@codesourcery.com>
9215         * config/mips/mips.md (simple_return): Attempt to use JRC
9216         for microMIPS.
9217         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
9219 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
9221         PR rtl-optimization/59137
9222         * reorg.c (steal_delay_list_from_target): Call update_block for
9223         elided insns.
9224         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
9226 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9228         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
9229         two duplicate entries.
9231 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
9233         Revert:
9234         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
9236         * config/mips/mips.c (mips_truncated_op_cost): New function.
9237         (mips_rtx_costs): Adjust test for BADDU.
9238         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
9240         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
9242         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
9243         (*baddu_si): ...this new pattern.
9245 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
9247         PR ipa/59722
9248         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
9250 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9252         PR middle-end/57748
9253         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
9254         inner_reference_p.
9255         (expand_expr, expand_normal): Adjust.
9256         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
9257         inner_reference_p. Use inner_reference_p to expand inner references.
9258         (store_expr): Adjust.
9259         * cfgexpand.c (expand_call_stmt): Adjust.
9261 2014-01-08  Rong Xu  <xur@google.com>
9263         * gcov-io.c (gcov_var): Move from gcov-io.h.
9264         (gcov_position): Ditto.
9265         (gcov_is_error): Ditto.
9266         (gcov_rewrite): Ditto.
9267         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
9268         only part to libgcc/libgcov.h.
9270 2014-01-08  Marek Polacek  <polacek@redhat.com>
9272         PR middle-end/59669
9273         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
9275 2014-01-08  Marek Polacek  <polacek@redhat.com>
9277         PR sanitizer/59667
9278         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
9280 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
9282         PR rtl-optimization/59649
9283         * stor-layout.c (get_mode_bounds): For BImode return
9284         0 and STORE_FLAG_VALUE.
9286 2014-01-08  Richard Biener  <rguenther@suse.de>
9288         PR middle-end/59630
9289         * gimple.h (is_gimple_builtin_call): Remove.
9290         (gimple_builtin_call_types_compatible_p): New.
9291         (gimple_call_builtin_p): New overload.
9292         * gimple.c (is_gimple_builtin_call): Remove.
9293         (validate_call): Rename to ...
9294         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
9295         check return types.
9296         (validate_type): New static function.
9297         (gimple_call_builtin_p): New overload and adjust.
9298         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
9299         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
9300         (gimple_fold_stmt_to_constant_1): Likewise.
9301         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
9303 2014-01-08  Richard Biener  <rguenther@suse.de>
9305         PR middle-end/59471
9306         * gimplify.c (gimplify_expr): Gimplify register-register type
9307         VIEW_CONVERT_EXPRs to separate stmts.
9309 2014-01-07  Jeff Law  <law@redhat.com>
9311         PR middle-end/53623
9312         * ree.c (combine_set_extension): Handle case where source
9313         and destination registers in an extension insn are different.
9314         (combine_reaching_defs): Allow source and destination registers
9315         in extension to be different under limited circumstances.
9316         (add_removable_extension): Remove restriction that the
9317         source and destination registers in the extension are the same.
9318         (find_and_remove_re): Emit a copy from the extension's
9319         destination to its source after the defining insn if
9320         the source and destination registers are different.
9322         PR middle-end/59285
9323         * ifcvt.c (merge_if_block): If we are merging a block with more than
9324         one successor with a block with no successors, remove any BARRIER
9325         after the second block.
9327 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
9329         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
9331 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
9333         PR target/59652
9334         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
9335         for 14-bit register offsets when INT14_OK_STRICT is false.
9337 2014-01-07  Roland Stigge  <stigge@antcom.de>
9338             Michael Meissner  <meissner@linux.vnet.ibm.com>
9340         PR 57386/target
9341         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
9342         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
9344 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
9346         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
9347         -mcpu.
9349 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
9351         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
9352         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
9353         rtx is const0_rtx or not.
9355 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
9357         PR target/58115
9358         * target-globals.c (save_target_globals): Remove this_fn_optab
9359         handling.
9360         * toplev.c: Include optabs.h.
9361         (target_reinit): Temporarily restore the global options if another
9362         set of options are in force.
9364 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
9366         PR rtl-optimization/58668
9367         * cfgcleanup.c (flow_find_cross_jump): Don't count
9368         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
9369         to determine what is counted.
9370         (flow_find_head_matching_sequence): Use active_insn_p to determine
9371         what is counted.
9372         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
9373         counting change.
9374         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
9375         determine what is counted.
9377         PR tree-optimization/59643
9378         * tree-predcom.c (split_data_refs_to_components): If one dr is
9379         read and one write, determine_offset fails and the write isn't
9380         in the bad component, just put the read into the bad component.
9382 2014-01-07  Mike Stump  <mikestump@comcast.net>
9383             Jakub Jelinek  <jakub@redhat.com>
9385         PR pch/59436
9386         * tree-core.h (struct tree_optimization_option): Change optabs
9387         type from unsigned char * to void *.
9388         * optabs.c (init_tree_optimization_optabs): Adjust
9389         TREE_OPTIMIZATION_OPTABS initialization.
9391 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
9393         PR target/59644
9394         * config/i386/i386.h (struct machine_function): Add
9395         no_drap_save_restore field.
9396         * config/i386/i386.c (ix86_save_reg): Use
9397         !cfun->machine->no_drap_save_restore instead of
9398         crtl->stack_realign_needed.
9399         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
9400         this function clears frame_pointer_needed.  Set
9401         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
9402         and DRAP reg is needed.
9404 2014-01-06  Marek Polacek  <polacek@redhat.com>
9406         PR c/57773
9407         * doc/implement-c.texi: Mention that other integer types are
9408         permitted as bit-field types in strictly conforming mode.
9410 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
9412         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
9413         is newly allocated.
9415 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
9417         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
9419 2014-01-06  Martin Jambor  <mjambor@suse.cz>
9421         PR ipa/59008
9422         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
9423         to int.
9424         * ipa-prop.c (ipa_print_node_params): Fix indentation.
9426 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
9428         PR debug/59350
9429         PR debug/59510
9430         * var-tracking.c (add_stores): Preserve the value of the source even if
9431         we don't record the store.
9433 2014-01-06  Terry Guo  <terry.guo@arm.com>
9435         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
9437 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
9439         PR bootstrap/59541
9440         * config/darwin.c (darwin_function_section): Adjust return values to
9441         correspond to optimisation changes made in r206070.
9443 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
9445         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
9446         from prefetch_block tune setting.
9447         (nocona_cost): Correct size of prefetch block to 64.
9449 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9451         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
9452         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
9453         used to save the static chain register in the computation of the offset
9454         from which the FP registers need to be restored.
9456 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
9458         PR tree-optimization/59519
9459         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
9460         ICE if get_current_def (current_new_name) is already non-NULL, as long
9461         as it is a phi result of some other phi in *new_exit_bb that has
9462         the same argument.
9464         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
9465         or vmovdqu* for misaligned_operand.
9466         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
9467         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
9468         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
9469         aligned_mem for AVX512F masked aligned load and store builtins and for
9470         non-temporal moves.
9472 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
9474         PR tree-optimization/59651
9475         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9476         Address range for negative step should be added by TYPE_SIZE_UNIT.
9478 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
9480         * config/m68k/m68k.c (handle_move_double): Handle pushes with
9481         overlapping registers also for registers other than the stack pointer.
9483 2014-01-03  Marek Polacek  <polacek@redhat.com>
9485         PR other/59661
9486         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
9487         __builtin_FILE.
9489 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
9491         PR target/59625
9492         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
9493         asm goto as jump.
9495         * config/i386/i386.md (MODE_SIZE): New mode attribute.
9496         (push splitter): Use <P:MODE_SIZE> instead of
9497         GET_MODE_SIZE (<P:MODE>mode).
9498         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
9499         (mov -1, reg peephole2): Likewise.
9500         * config/i386/sse.md (*mov<mode>_internal,
9501         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
9502         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
9503         *<code><mode>3, *andnot<mode>3<mask_name>,
9504         <mask_codefor><code><mode>3<mask_name>): Likewise.
9505         * config/i386/subst.md (mask_mode512bit_condition,
9506         sd_mask_mode512bit_condition): Likewise.
9508 2014-01-02  Xinliang David Li  <davidxl@google.com>
9510         PR tree-optimization/59303
9511         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
9512         (dump_predicates): Better output format.
9513         (pred_equal_p): New function.
9514         (is_neq_relop_p): Ditto.
9515         (is_neq_zero_form_p): Ditto.
9516         (pred_expr_equal_p): Ditto.
9517         (pred_neg_p): Ditto.
9518         (simplify_pred): Ditto.
9519         (simplify_preds_2): Ditto.
9520         (simplify_preds_3): Ditto.
9521         (simplify_preds_4): Ditto.
9522         (simplify_preds): Ditto.
9523         (push_pred): Ditto.
9524         (push_to_worklist): Ditto.
9525         (get_pred_info_from_cmp): Ditto.
9526         (is_degenerated_phi): Ditto.
9527         (normalize_one_pred_1): Ditto.
9528         (normalize_one_pred): Ditto.
9529         (normalize_one_pred_chain): Ditto.
9530         (normalize_preds): Ditto.
9531         (normalize_cond_1): Remove function.
9532         (normalize_cond): Ditto.
9533         (is_gcond_subset_of): Ditto.
9534         (is_subset_of_any): Ditto.
9535         (is_or_set_subset_of): Ditto.
9536         (is_and_set_subset_of): Ditto.
9537         (is_norm_cond_subset_of): Ditto.
9538         (pred_chain_length_cmp): Ditto.
9539         (convert_control_dep_chain_into_preds): Type change.
9540         (find_predicates): Ditto.
9541         (find_def_preds): Ditto.
9542         (destroy_predicates_vecs): Ditto.
9543         (find_matching_predicates_in_rest_chains): Ditto.
9544         (use_pred_not_overlap_with_undef_path_pred): Ditto.
9545         (is_pred_expr_subset): Ditto.
9546         (is_pred_chain_subset_of): Ditto.
9547         (is_included_in): Ditto.
9548         (is_superset_of): Ditto.
9550 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9552         Update copyright years.
9554 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9556         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
9557         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
9558         config/arc/arc.md, config/arc/arc.opt,
9559         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
9560         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
9561         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
9562         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
9563         config/linux-protos.h, config/linux.c, config/winnt-c.c,
9564         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
9565         vtable-verify.c, vtable-verify.h: Use the standard form for the
9566         copyright notice.
9568 2014-01-02  Tobias Burnus  <burnus@net-b.de>
9570         * gcc.c (process_command): Update copyright notice dates.
9571         * gcov-dump.c: Ditto.
9572         * gcov.c: Ditto.
9573         * doc/cpp.texi: Bump @copying's copyright year.
9574         * doc/cppinternals.texi: Ditto.
9575         * doc/gcc.texi: Ditto.
9576         * doc/gccint.texi: Ditto.
9577         * doc/gcov.texi: Ditto.
9578         * doc/install.texi: Ditto.
9579         * doc/invoke.texi: Ditto.
9581 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9583         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
9585 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
9587         * config/i386/sse.md (*mov<mode>_internal): Guard
9588         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
9590         PR rtl-optimization/59647
9591         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
9592         new_rtx into UNSIGNED_FLOAT rtxes.
9594 Copyright (C) 2014 Free Software Foundation, Inc.
9596 Copying and distribution of this file, with or without modification,
9597 are permitted in any medium without royalty provided the copyright
9598 notice and this notice are preserved.