Merge from trunk:
[official-gcc.git] / main / gcc / ChangeLog
blob535875a6d8bbe5b37e1c4aab07f397ef931b5ad6
1 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
3         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
5         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6         (HAVE_sync_compare_and_swapqi): Define.
7         (HAVE_sync_compare_and_swaphi): Likewise.
8         (HAVE_sync_compare_and_swapsi): Likewise.
10 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
12         * config/mips/p5600.md: Add missing cpu tests.
14 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
17         (vmla_f64): Likewise.
18         (vfms_f64): Likewise.
19         (vmls_f64): Likewise.
21 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
24         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
26 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
29         (vmlal_high_lane_s32): Likewise.
30         (vmlal_high_lane_u16): Likewise.
31         (vmlal_high_lane_u32): Likewise.
32         (vmlsl_high_lane_s16): Likewise.
33         (vmlsl_high_lane_s32): Likewise.
34         (vmlsl_high_lane_u16): Likewise.
35         (vmlsl_high_lane_u32): Likewise.
37 2014-07-17  Terry Guo  <terry.guo@arm.com>
39         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
40         (alus_reg): Renamed to alus_sreg.
41         * config/arm/arm-fixed.md: Change type of non-dsp instructions
42         from alu_reg to alu_sreg.  Change type of dsp instructions from
43         alu_reg to alu_dsp_reg.
44         * config/arm/thumb1.md: Likewise.
45         * config/arm/thumb2.md: Likewise.
46         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
47         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
48         with alu_sreg and alus_sreg.
49         * config/arm/arm1026ejs.md (alu_op): Likewise.
50         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
51         * config/arm/arm926ejs.md (9_alu_op): Likewise.
52         * config/arm/fa526.md (526_alu_op): Likewise.
53         * config/arm/fa606te.md (606te_alu_op): Likewise.
54         * config/arm/fa626te.md (626te_alu_op): Likewise.
55         * config/arm/fa726te.md (726te_alu_op): Likewise.
56         * config/arm/fmp626.md (mp626_alu_op): Likewise.
57         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
58         alu_sreg, alu_dsp_reg and alus_sreg.     
59         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
60         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
61         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
62         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
63         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
64         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
65         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
66         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
67         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
68         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
69         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
70         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.     
71         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
72         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
73         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type 
74         alus_reg to alus_sreg.
76 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
78         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
79         infinity format.
81 2014-07-17  Richard Biener  <rguenther@suse.de>
83         PR rtl-optimization/61801
84         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and
85         ASM_INPUT don't set reg_pending_barrier if it appears in a
86         debug-insn.
88 2014-07-16  DJ Delorie  <dj@redhat.com>
90         * config/rx/rx.c (rx_option_override): Fix alignment values.
91         (rx_align_for_label): Likewise.
93 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
95         PR target/61737.
96         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
97         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
98         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
99         functions.
100         (cris_print_index, cris_print_operand, cris_constant_index_p)
101         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
102         (cris_address_cost): Ditto last CONSTANT_P.
103         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
104         callers changed.  Yield cris_offsettable_symbol for non-PIC
105         constant symbolic expressions including labels.  Yield cris_unspec
106         for all unspecs.
107         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
108         target to pic_offset_table_rtx for calls that will likely go
109         through PLT, const0_rtx when they can't.  All callers changed.
110         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
111         symbolic expressions to be PICified.  Remove second, redundant,
112         assert on can_create_pseudo_p returning non-zero.  Use
113         replace_equiv_address_nv, not replace_equiv_address, for final
114         operand update.
115         * config/cris/cris.md ("movsi"): Move variable t to pattern
116         toplevel. Adjust assert for new cris_symbol_type member.  Use
117         CONSTANT_P instead of CONSTANT_ADDRESS_P.
118         ("*movsi_internal") <case 9>: Make check for valid unspec operands
119         for lapc stricter.
120         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition
121         codes.
122         ("call", "call_value"): Use second incoming operand as a marker
123         for pic-offset-table-register being used.
124         ("*expanded_call_non_v32", "*expanded_call_v32")
125         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
126         second incoming operand to CALL, match cris_call_type_marker.
127         ("*expanded_call_value_side"): Ditto.  Disable before
128         reload_completed.
129         ("*expanded_call_side"): Ditto.  Fix typo in comment.
130         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
131         CONSTANT_P.
132         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
133         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
134         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
135         users changed.  Add members cris_offsettable_symbol and
136         cris_unspec.
137         (cris_symbol_type): Rename from cris_pic_symbol_type.
138         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
139         just CONSTANT_P.
140         * config/cris/cris-protos.h (cris_symbol_type_of,
141         cris_expand_pic_call_address): Adjust prototypes.
142         (cris_legitimate_constant_p): New prototype.
144         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
145         an existing tmake_file.  Don't add t-slibgcc and t-linux.
147 2014-07-17  Jason Merrill  <jason@redhat.com>
149         PR c++/61623
150         * symtab.c (symtab_remove_from_same_comdat_group): Also
151         set_comdat_group to NULL_TREE.
152         (verify_symtab): Fix diagnostic.
154 2014-07-16  David Wohlferd <dw@LimeGreenSocks.com>
156         PR target/61662
157         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
159 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
161         Support location tracking for built-in macro tokens
162         * input.h (is_location_from_builtin_token): New function
163         declaration.
164         * input.c (is_location_from_builtin_token): New function
165         definition.
166         * toplev.c (general_init): Tell libcpp what the pre-defined
167         spelling location for built-in tokens is.
169 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
171         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
172         on the FUNCTION_DECL.
174 2014-07-16  Richard Biener  <rguenther@suse.de>
176         PR other/61782
177         * doc/extend.texi (always_inline): Clarify.
179 2014-07-15  Eric Christopher  <echristo@gmail.com>
181         * doc/invoke.texi (Link Options): Document -z option.
183 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
185         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
186         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
188 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
190         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
192 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
194         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
195         varpool_assemble_decl.
196         * varpool.c (varpool_assemble_decl): Assert that node->definition is
197         true.
199 2014-07-15  Michael Matz  <matz@suse.de>
201         PR rtl-optimization/61772
202         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
204 2014-07-15  Richard Biener  <rguenther@suse.de>
206         * opts.c (default_options_table): Disable bit-ccp at -Og.
208 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
210         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
212 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
214         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
215         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
216         call langhook for unknown declaration.
217         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
218         * tree.h (DECL_ARGUMENTS): Update.
219         * print-tree.c (print_node): Update.
220         * tree-core.h (tree_decl_non_common): Remove arguments.
221         (tree_function_decl): Add arguments.
223 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
225         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
227 2014-07-14  Richard Biener  <rguenther@suse.de>
229         PR tree-optimization/61779
230         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
231         simplifying a condition.
233 2014-07-14  Richard Biener  <rguenther@suse.de>
235         * builtins.c (c_strlen): Make only_value == 2 really only
236         affect warning generation.
238 2014-07-14  Richard Biener  <rguenther@suse.de>
240         PR tree-optimization/61757
241         PR tree-optimization/61783
242         PR tree-optimization/61787
243         * tree-ssa-dom.c (record_equality): Revert canonicalization
244         change and add comment.
245         (propagate_rhs_into_lhs): Revert previous fix, removing
246         loop depth restriction again.
248 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
250         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
251         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
252         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
253         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
254         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
255         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
256         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
258 2014-07-14  Richard Biener  <rguenther@suse.de>
260         * cgraph.h (decl_in_symtab_p): Make inline.
262 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
264         PR middle-end/61294
265         * doc/invoke.texi (-Wmemset-transposed-args): Document.
267         PR target/61656
268         * config/i386/i386.c (classify_argument): Don't merge classes above
269         number of words.
271 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
273         * cgraph.h (symtab_node): Add nonzero_address.
274         (decl_in_symtab_p): Break out from ...
275         (symtab_get_node): ... here.
276         * fold-const.c: Include cgraph.h
277         (tree_single_nonzero_warnv_p): Use symtab to determine
278         if symbol is non-zero.
279         * symtab.c (symtab_node::nonzero_address): New method.
281 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
283         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
284         forgotten in previous commit.
286 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
288         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
289         on builtin types.
290         * ipa-devirt.c: Include stor-layout.h and intl.h
291         (odr_subtypes_equivalent_p): New function.
292         (warn_odr): New function.
293         (warn_type_mismatch): New function.
294         (odr_types_equivalent_p): New function.
295         (add_type_duplicate): Use it.
296         * common.opt (Wodr): New flag.
297         * doc/invoke.texi (Wodr): Document new warning.
299 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
301         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
302         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
303         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
304         (varpool_get_constructor): Push CTORS_IN timevar.
305         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
307 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
309         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
310         Remove VOID_FTYPE_PUSHORT.
311         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
312         Change code to USHORT_FTYPE_VOID.
313         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
314         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
315         (ix86_atomic_assign_expand_fenv): Update for
316         __builtin_ia32_fnstsw changes.
317         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
318         (fnstsw): Change operand 0 to nonimmediate operand.
320 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
322         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
323         (varpool_get_constructor): New function.
324         (varpool_ctor_useable_for_folding_p): Break out from ...
325         (ctor_for_folding): ... here; use varpool_get_constructor.
326         (varpool_assemble_decl): Likewise.
327         * lto-streamer.h (struct output_block): Turn cgraph_node
328         to symbol filed.
329         (lto_input_variable_constructor): Declare.
330         * ipa-visibility.c (function_and_variable_visibility): Use
331         varpool_get_constructor.
332         * cgraph.h (varpool_get_constructor): Declare.
333         (varpool_ctor_useable_for_folding_p): New function.
334         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
335         parameter; return error_mark_node for non-trivial constructors.
336         (lto_write_tree_1, DFS_write_tree): Update use of
337         get_symbol_initial_value.
338         (output_function): Update initialization of symbol.
339         (output_constructor): New function.
340         (copy_function): Rename to ..
341         (copy_function_or_variable): ... this one; handle vars too.
342         (lto_output): Output variable sections.
343         * lto-streamer-in.c (input_constructor): New function.
344         (lto_read_body): Rename from ...
345         (lto_read_body_or_constructor): ... this one; handle vars too.
346         (lto_input_variable_constructor): New function.
347         * ipa-prop.c (ipa_prop_write_jump_functions,
348         ipa_prop_write_all_agg_replacement): Update.
349         * lto-cgraph.c (compute_ltrans_boundary): Use it.
350         (output_cgraph_opt_summary): Set symbol to NULL.
352 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
354         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
355         non-polymorphic types.
356         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
357         * ipa-devirt.c (types_same_for_odr): Do not explode when one
358         of types is not polymorphic.
360 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
362         * lra-constraints.c (remove_inheritance_pseudos): Process
363         destination pseudo too.
365 2014-07-11  Rong Xu  <xur@google.com>
367         * gcov-tool.c (gcov_output_files): Fix build error introduced in
368         commit r212448.
370 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
372         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
373         * config/avr/avr-devices.c (AVR_MCU): Same.
374         (avr_mcu_types): add text start value to end of device list.
375         * config/avr/avr-mcus.def: Add text section start for all devices.
376         (ata5782): Add new avr5 device.
377         (ata5831): Same.
378         * config/avr/avr-tables.opt: Regenerate.
379         * config/avr/avr.h: Add declaration for text section start handler.
380         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
381         SPEC functions.
382         (LINK_SPEC): Include text section start handler to linker spec.
383         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
384         pass -Ttext option to linker if the text section start for the device
385         is not zero.
386         * config/avr/t-multilib: Regenerate.
387         * doc/avr-mmcu.texi: Regenerate.
389 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
391         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
392         * config/rs6000/aix52.h (LINK_SPEC): Same.
393         * config/rs6000/aix53.h (LINK_SPEC): Same.
394         * config/rs6000/aix61.h (LINK_SPEC): Same.
395         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
397 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
399         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
400         (graphite_verify): New function.
401         (ivs_params_clear): New function.
402         (gcc_expression_from_isl_ast_expr_id): New function.
403         (gcc_expression_from_isl_expr_int): New function.
404         (binary_op_to_tree): New function.
405         (ternary_op_to_tree): New function.
406         (unary_op_to_tree): New function.
407         (nary_op_to_tree): New function.
408         (gcc_expression_from_isl_expr_op): New function.
409         (gcc_expression_from_isl_expression): New function.
410         (graphite_create_new_loop): New function.
411         (translate_isl_ast_for_loop): New function.
412         (get_upper_bound): New function.
413         (graphite_create_new_loop_guard): New function.
414         (translate_isl_ast_node_for): New function.
415         (translate_isl_ast): New function.
416         (add_parameters_to_ivs_params): New function.
417         (scop_to_isl_ast): New parameter ip.
418         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
420 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
422         * config/xtensa/predicates.md (call expander): Update for
423         DECL_SECTION_NAME being string.
425 2014-07-11  Richard Biener  <rguenther@suse.de>
427         PR middle-end/61473
428         * builtins.c (fold_builtin_memory_op): Inline memory moves that
429         can be implemented with a single load followed by a single store.
430         (c_strlen): Only warn when only_value is not 2.
432 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
434         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
436 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
438         PR target/61561
439         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
440         (*movhi_bytes): Likewise.
441         (*arm_movqi_insn): Likewise.
443 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
445         PR target/56858
446         * config/alpha/alpha.c: Include tree-pass.h, context.h
447         and pass_manager.h.
448         (pass_data_handle_trap_shadows): New pass.
449         (pass_handle_trap_shadows::gate): New pass gate function.
450         (make_pass_handle_trap_shadows): New function.
451         (rest_of_handle_trap_shadows): Ditto.
453         (alpha_align_insns_1): Rename from alpha_align_insns.
454         (pass_data_align_insns): New pass.
455         (pass_align_insns::gate): New pass gate function.
456         (make_pass_aling_insns): New function.
457         (rest_of_align_insns): Ditto.
458         (alpha_align_insns): Ditto.
460         (alpha_option_override): Declare handle_trap_shadows info
461         and align_insns_info.  Register handle_trap_shadows and align_insns
462         passes here.
463         (alpha_reorg): Do not call alpha_trap_shadows and
464         alpha_align_insn from here.
466         (alpha_pad_function_end): Do not skip BARRIERs.
468 2014-07-10  Rong Xu  <xur@google.com>
470         Add gcov-tool: an offline gcda profile processing tool support.
471         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
472         (gcov_is_error): Ditto.
473         (gcov_read_string): Ditto.
474         (gcov_read_sync): Ditto.
475         * gcov-io.h: Move counter defines to gcov-counter.def.
476         * gcov-dump.c (tag_counters): Use gcov-counter.def.
477         * coverage.c: Ditto.
478         * gcov-tool.c: Offline gcda profile processing tool.
479         (unlink_gcda_file): Remove one gcda file.
480         (unlink_profile_dir): Remove gcda files from the profile path.
481         (gcov_output_files): Output gcda files to an output dir.
482         (profile_merge): Merge two profiles in directory.
483         (print_merge_usage_message): Print merge usage.
484         (merge_usage): Print merge usage and exit.
485         (do_merge): Driver for profile merge sub-command.
486         (profile_rewrite): Rewrite profile.
487         (print_rewrite_usage_message): Print rewrite usage.
488         (rewrite_usage): Print rewrite usage and exit.
489         (do_rewrite): Driver for profile rewrite sub-command.
490         (print_usage): Print gcov-info usage and exit.
491         (print_version): Print gcov-info version.
492         (process_args): Process arguments.
493         (main): Main routine for gcov-tool.
494         * Makefile.in: Build and install gcov-tool.
495         * gcov-counter.def: New file split from gcov-io.h.
496         * doc/gcc.texi: Include gcov-tool.texi.
497         * doc/gcov-tool.texi: Document for gcov-tool.
499 2014-07-10  Richard Biener  <rguenther@suse.de>
501         PR tree-optimization/61757
502         * tree-ssa-dom.c (loop_depth_of_name): Restore.
503         (propagate_rhs_into_lhs): Revert part of last change.
505 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
507         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
508         FUNCTION_DECLs.
510 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
512         PR middle-end/53590
513         * function.c (allocate_struct_function): Revert r188667 change.
515         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
517 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
519         * doc/install.texi: Remove links to defunct package providers for
520         Solaris.
522 2014-07-09  Tom de Vries  <tom@codesourcery.com>
524         * final.c (get_call_fndecl): Declare.
525         (self_recursive_call_p): New function.
526         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
528 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
530         * ipa-devirt.c (record_node): Walk through aliases.
532 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
534         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
536 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
538         Revert:
539         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
541 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
543         * ipa-visibility.c (function_and_variable_visibility): Remove
544         temporary hack disabling local aliases on AIX.
546 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
548         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
549         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
551 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
553         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
554         * rs6000/rs6000.c: Inline output of .set instruction.
555         (declare_alias_data): New struct.
556         (rs6000_declare_alias): New function.
557         (rs6000_xcoff_declare_function_name): Use it.
558         (rs6000_xcoff_declare_object_name): New function.
559         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
560         (ASM_OUTPUT_DEF): Turn to empty definition.
562 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
564         PR bootstrap/61679
565         * hash-table.h: use hash_table::value_type instead of
566         Descriptor::value_type in the return types of several methods.
568 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
570         * tree-pass.h (pass_data): Remove has_execute member.
571         * passes.c (execute_one_pass): Don't check pass->has_execute.
572         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
573         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
574         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
575         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
576         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
577         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
578         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
579         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
580         gimple-low.c, gimple-ssa-isolate-paths.c,
581         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
582         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
583         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
584         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
585         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
586         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
587         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
588         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
589         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
590         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
591         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
592         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
593         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
594         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
595         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
596         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
597         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
598         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
599         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
600         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
601         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
602         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
603         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
604         web.c: Remove initializer for pass_data::has_execute.
606 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
608         * graphite-htab.h: Use hash_map instead of hash_table.
609         * graphite-clast-to-gimple.c: Adjust.
610         * passes.c: Use hash_map instead of hash_table.
611         * sese.c: Likewise.
612         * sese.h: Remove now unused code.
614 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
616         PR target/61599
617         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
618         than zero.
620 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
622         PR rtl-optimization/61673
623         * combine.c (simplify_comparison): Test just mode's sign bit
624         in tmode rather than the sign bit and any bits above it.
626 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
628         * graphite-isl-ast-to-gimple.c (generate_isl_context):
629         Add __isl_give to the declaration.
630         (generate_isl_schedule): Likewise.
631         (scop_to_isl_ast): Likewise.
633 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
635         * config/arm/arm.c (cortexa5_extra_costs): New table.
636         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
638 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
640         PR tree-optimization/61725
641         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
642         range, use range_includes_zerop_p instead of integer_zerop on
643         vr0->min, only use log2 of max if min is not negative.
645 2014-07-08  Richard Biener  <rguenther@suse.de>
647         * tree-ssa-dom.h (loop_depth_of_name): Remove.
648         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
649         restriction on loop depth difference.
650         (record_equality): Likewise.
651         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
652         (loop_depth_of_name): Remove.
653         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
654         restriction on loop depth difference.
655         (init_copy_prop): Likewise.
657 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
659         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
660         parameter.
661         (walk_aliased_vdefs): Likewise.
662         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
663         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
664         (detect_type_change_from_memory_writes): Check if entry was reached.
666 2014-07-08  Richard Biener  <rguenther@suse.de>
668         PR tree-optimization/61681
669         * tree-ssa-structalias.c (find_what_var_points_to): Expand
670         NONLOCAL inside ESCAPED.
672 2014-07-08  Richard Biener  <rguenther@suse.de>
674         PR tree-optimization/61680
675         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
676         Handle properly all read-write dependences with group accesses.
678 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
680         PR tree-optimization/61576
681         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
682         block containing reduction statement is predecessor of phi basi block.
684 2014-07-08  Marek Polacek  <polacek@redhat.com>
686         PR c/60226
687         * fold-const.c (round_up_loc): Change the parameter type.
688         Remove assert.
689         * fold-const.h (round_up_loc): Adjust declaration.
690         * stor-layout.c (finalize_record_size): Check for too large types.
692 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
694         * symtab.c: Include calls.h.
695         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
697 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
699         * config/rs6000/rs6000.c (output_vec_const_move): Handle
700         little-endian code generation.
701         * config/rs6000/spe.md (spe_evmergehi): Rename to...
702         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
703         (spe_evmergehilo): Rename to...
704         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
705         (spe_evmergelo): Rename to...
706         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
707         (spe_evmergelohi): Rename to...
708         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
709         (spe_evmergehi, spe_evmergehilo): New expanders.
710         (spe_evmergelo, spe_evmergelohi): Likewise.
711         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
712         (*frob_tf_ti): Likewise.
713         (*frob_<mode>_di_2): Likewise.
714         (*frob_tf_di_8_2): Likewise.
715         (*frob_di_<mode>): Likewise.
716         (*frob_ti_tf): Likewise.
717         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
718         (*frob_ti_<mode>_8_2): Likewise.
719         (*frob_ti_tf_2): Likewise.
720         (mov_si<mode>_e500_subreg0): Rename to...
721         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
722         endianness only.
723         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
724         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
725         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
726         the big endianness only.
727         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
728         (*mov_si<mode>_e500_subreg0_2): Rename to...
729         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
730         big big endianness only.
731         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
732         (*mov_si<mode>_e500_subreg4): Rename to...
733         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
734         endianness only.
735         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
736         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
737         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
738         the big endianness only.
739         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
740         pattern.
741         (*mov_si<mode>_e500_subreg4_2): Rename to...
742         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
743         endianness only.
744         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
745         (*mov_sitf_e500_subreg8): Rename to...
746         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
747         endianness only.
748         (*mov_sitf_e500_subreg8_le): New instruction pattern.
749         (*mov_sitf_e500_subreg8_2): Rename to...
750         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
751         endianness only.
752         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
753         (*mov_sitf_e500_subreg12): Rename to...
754         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
755         endianness only.
756         (*mov_sitf_e500_subreg12_le): New instruction pattern.
757         (*mov_sitf_e500_subreg12_2): Rename to...
758         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
759         endianness only.
760         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
762 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
764         * asan.c (instrument_strlen_call): Do not instrument first byte
765         in strlen if already instrumented.
767 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
769         * config/arm/arm.opt (mwords-little-endian): Delete.
770         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
771         of TARGET_LITTLE_WORDS.
772         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
773         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
774         warning.
775         * doc/invoke.texi: Remove references to -mwords-little-endian.
777 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
779         * expmed.c (struct init_expmed_rtl): Change all fields but
780         pow2 and cint from struct rtx_def to rtx.
781         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
782         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
783         at the end again.
785 2014-07-06  Marek Polacek  <polacek@redhat.com>
787         PR c/6940
788         * doc/invoke.texi: Document -Wsizeof-array-argument.
790 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
792         * wide-int.h (wide_int_storage): Change declaration from struct
793         to class.
795 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
797         * cgraph.c (cgraph_create_indirect_edge): Update call of
798         get_polymorphic_call_info.
799         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
800         (possible_polymorphic_call_targets): Add parameter call.
801         (decl_maybe_in_construction_p): New predicate.
802         (get_polymorphic_call_info): Add parameter call;
803         use decl_maybe_in_construction_p.
804         * gimple-fold.c (fold_gimple_assign): Update use of
805         possible_polymorphic_call_targets.
806         (gimple_fold_call): Likewise.
807         * ipa-prop.c: Inlcude calls.h
808         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
809         (param_type_may_change_p): New predicate.
810         (detect_type_change_from_memory_writes): Break out from ...
811         (detect_type_change): ... this one; use param_type_may_change_p.
812         (detect_type_change_ssa): Use param_type_may_change_p.
813         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
815 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
817         PR target/49423
818         * config/arm/arm-protos.h (arm_legitimate_address_p,
819         arm_is_constant_pool_ref): Add prototypes.
820         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
821         (arm_is_constant_pool_ref) New function.
822         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
823         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
824         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
825         operand. Remove pool_range and neg_pool_range attributes.
826         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
827         pool_range and neg_pool_range attributes.
828         * config/arm/constraints.md (Uh): New constraint.
829         (Uq): Don't allow constant pool references.
831 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
833         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
834         (move_lo_quad_internal_be_<mode>): Likewise.
835         (move_lo_quad_<mode>): Convert to define_expand.
836         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
837         (aarch64_simd_move_hi_quad_be_<mode>): New.
838         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
839         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
840         (aarch64_combinez_be<mode>): New.
841         (aarch64_combine<mode>): Convert to define_expand.
842         (aarch64_combine_internal<mode>): New.
843         (aarch64_simd_combine<mode>): Remove bogus RTL description.
845 2014-07-04  Tom de Vries  <tom@codesourcery.com>
847         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
848         combination of earlyclobber and read/write modifiers.
850 2014-07-04  Tom de Vries  <tom@codesourcery.com>
852         * config/aarch64/aarch64-simd.md
853         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
855 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
857         PR target/61714
858         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
860 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
862         PR middle-end/61654
863         * cgraphunit.c (expand_thunk): Call free_dominance_info.
865         PR tree-optimization/61684
866         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
867         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
869 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
870             Kito Cheng  <kito@0xlab.org>
871             Monk Chiang  <sh.chiang04@gmail.com>
873         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
874         (nds32_symbol_load_store_p): Move to ...
875         (nds32_fp_as_gp_check_available): Move to ...
876         * config/nds32/nds32-fp-as-gp.c: ... here.
877         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
878         extern declaration.
880 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
881             Kito Cheng  <kito@0xlab.org>
882             Monk Chiang  <sh.chiang04@gmail.com>
884         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
885         (nds32_expand_store_multiple): Move to ...
886         (nds32_expand_movmemqi): Move to ...
887         * config/nds32/nds32-memory-manipulation.c: ... here.
889 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
890             Kito Cheng  <kito@0xlab.org>
891             Monk Chiang  <sh.chiang04@gmail.com>
893         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
894         (nds32_output_casesi_pc_relative): Move to ...
895         (nds32_output_casesi): Move to ...
896         (nds32_mem_format): Move to ...
897         (nds32_output_16bit_store): Move to ...
898         (nds32_output_16bit_load): Move to ...
899         (nds32_output_32bit_store): Move to ...
900         (nds32_output_32bit_load): Move to ...
901         (nds32_output_32bit_load_s): Move to ...
902         (nds32_output_stack_push): Move to ...
903         (nds32_output_stack_pop): Move to ...
904         * config/nds32/nds32-md-auxiliary.c: ... here.
906 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
907             Ling-Hua Tseng  <uranus@tinlans.org>
909         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
910         the purpose of this file.
912 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
913             Kito Cheng  <kito@0xlab.org>
914             Monk Chiang  <sh.chiang04@gmail.com>
916         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
917         (nds32_address_cost): Move implementation to ...
918         * config/nds32/nds32-cost.c: ... here.
919         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
920         (nds32_address_cost_impl): Declare.
922 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
923             Kito Cheng  <kito@0xlab.org>
924             Monk Chiang  <sh.chiang04@gmail.com>
926         * config/nds32/nds32.c
927         (nds32_consecutive_registers_load_store_p): Move to ...
928         (nds32_valid_multiple_load_store): Move to ...
929         (nds32_valid_stack_push_pop): Move to ...
930         (nds32_can_use_bclr_p): Move to ...
931         (nds32_can_use_bset_p): Move to ...
932         (nds32_can_use_btgl_p): Move to ...
933         (nds32_can_use_bitci_p): Move to ...
934         * config/nds32/nds32-predicates.c: ... here.
936 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
937             Kito Cheng  <kito@0xlab.org>
938             Monk Chiang  <sh.chiang04@gmail.com>
940         * config/nds32/nds32.c
941         (nds32_expand_builtin_null_ftype_reg): Move to ...
942         (nds32_expand_builtin_reg_ftype_imm): Move to ...
943         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
944         (nds32_init_builtins): Move implementation to ...
945         (nds32_expand_builtin): Move implementation to ...
946         * config/nds32/nds32-intrinsic.c: ... here.
947         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
948         (nds32_expand_builtin_impl): Declare.
950 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
951             Kito Cheng  <kito@0xlab.org>
952             Monk Chiang  <sh.chiang04@gmail.com>
954         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
955         (nds32_emit_section_tail_template): Move to ...
956         (nds32_emit_isr_jmptbl_section): Move to ...
957         (nds32_emit_isr_vector_section): Move to ...
958         (nds32_emit_isr_reset_conten): Move to ...
959         (nds32_check_isr_attrs_conflict): Move to ...
960         (nds32_construct_isr_vectors_information): Move to ...
961         (nds32_asm_file_start): Move implementation to ...
962         (nds32_asm_file_end): Move implementation to ...
963         * config/nds32/nds32-isr.c: ... here.
964         * config/nds32/nds32-protos.h
965         (nds32_check_isr_attrs_conflict): Declare.
966         (nds32_construct_isr_vectors_information): Declare.
967         (nds32_asm_file_start_for_isr): Declare.
968         (nds32_asm_file_end_for_isr): Declare.
970 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
971             Kito Cheng  <kito@0xlab.org>
972             Monk Chiang  <sh.chiang04@gmail.com>
974         * config.gcc (nds32*): Add new modules to extra_objs.
975         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
976         (nds32be-*-*): Likewise.
977         * config/nds32/nds32-cost.c: New file.
978         * config/nds32/nds32-fp-as-gp.c: New file.
979         * config/nds32/nds32-intrinsic.c: New file.
980         * config/nds32/nds32-isr.c: New file.
981         * config/nds32/nds32-md-auxiliary.c: New file.
982         * config/nds32/nds32-memory-manipulation.c: New file.
983         * config/nds32/nds32-pipelines-auxiliary.c: New file.
984         * config/nds32/nds32-predicates.c: New file.
985         * config/nds32/t-nds32: New file.
987 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
989         PR tree-optimization/61682
990         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
991         using cases and when one of the operands is equal to 1.
993 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
995         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
996         ashr<mode>3): Correct mode of operands[2].
997         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
998         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
999         Correct mode of operands[2].  Fix split condition.
1001 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
1003         * arm.md (arch): Add armv6_or_vfpv3.
1004         (arch_enabled): Add test for the above.
1005         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
1006         on VFP9.
1007         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
1009 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
1011         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
1012         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
1013         HWI 1 and negate the unsigned value.
1014         * expmed.c (expand_sdiv_pow2): For modes wider than word always
1015         use AND instead of shift.
1016         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
1018 2014-07-03  Marek Polacek  <polacek@redhat.com>
1020         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
1021         (-fsanitize=float-divide-by-zero): Move to the table with
1022         -fsanitize=undefined suboptions.
1023         (-fsanitize=float-cast-overflow): Likewise.
1025 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
1027         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
1028         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
1029         endianness.
1031 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1033         * loop-invariant.c (struct invariant): Add a new member: eqno;
1034         (find_identical_invariants): Update eqno;
1035         (create_new_invariant): Init eqno;
1036         (get_inv_cost): Compute comp_cost with eqno;
1038 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
1040         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
1041         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
1042         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
1043         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
1044         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
1046 2014-07-02  Christian Bruel  <christian.bruel@st.com>
1048         PR target/29349
1049         PR target/53513
1050         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
1051         (make_preds_opaque): Delete.
1052         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
1053         (commit_mode_sets): New function.
1054         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
1055         Process all modes at once.
1056         * basic-block.h (pre_edge_lcm_avs): Declare.
1057         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
1058         Call clear_aux_for_edges. Fix comments.
1059         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
1060         (pre_edge_rev_lcm): Idem.
1061         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
1062         parameter.
1063         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
1064         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
1065         Idem.
1066         * config/i386/i386.c (x96_emit_mode_set): Idem.
1067         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
1068         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
1069         (fpscr_toggle) Disallow from delay slot.
1070         * target.def (emit_mode_set): Add prev_mode parameter.
1071         * doc/tm.texi: Regenerate.
1073 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1075         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
1076         variable i.
1078 2014-07-01  Jan Hubicka   <hubicka@ucw.cz>
1080         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
1081         vtable_pointer_value_to_vtable): Constify.
1082         (contains_polymorphic_type_p): Declare.
1083         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
1084         vtable_pointer_value_to_vtable): Constify.
1085         (contains_polymorphic_type_p): New predicate.
1086         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
1087         polymorphic types.
1088         (ipa_set_ancestor_jf): Likewise.
1089         (detect_type_change): Return false in easy cases.
1090         (compute_complex_assign_jump_func): Require type to contain
1091         polymorphic type.
1092         (compute_known_type_jump_func): Likewise.
1094 2014-07-01  Jan Hubicka   <hubicka@ucw.cz>
1096         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
1097         Remove.
1098         (type_in_anonymous_namespace_p): Constify argument.
1099         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
1100         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
1101         (main_odr_variant): New function.
1102         (hash_type_name): Make static; update assert; do not ICE on
1103         non-records.
1104         (types_same_for_odr): Bring here from tree.c; simplify and remove
1105         old structural comparing code that doesn't work for templates.
1106         (odr_hasher::equal): Update assert.
1107         (add_type_duplicate): Return true when bases should be computed;
1108         replace incomplete loader by complete; do not output duplicated
1109         warnings; do not ICE on non-records; set odr_violated flag.
1110         (get_odr_type): Be ready to replace incomplete type by complete
1111         one; work on ODR variants instead of main variants; reorder item
1112         in array so bases have still smaller indexes.
1113         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
1114         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
1116 2014-07-01  Cary Coutant  <ccoutant@google.com>
1118         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
1119         lookup.
1120         (resolve_addr_in_expr): When replacing the rtx in a location list
1121         entry, get a new address table entry.
1122         (dwarf2out_finish): Call index_location_lists even if there are no
1123         addr_index_table entries yet.
1125 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
1127         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
1128         change for not being obvious.
1130 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
1132         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
1133         unused argument.
1135 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1137         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
1138         (vcagt_f64): Likewise.
1139         (vcale_f64): Likewise.
1140         (vcaled_f64): Likewise.
1141         (vcales_f32): Likewise.
1142         (vcalt_f64): Likewise.
1143         (vcaltd_f64): Likewise.
1144         (vcalts_f32): Likewise.
1146 2014-07-01  Marek Polacek  <polacek@redhat.com>
1148         * doc/invoke.texi: Document -Wint-conversion.
1150 2014-07-01  Marek Polacek  <polacek@redhat.com>
1152         PR c/58286
1153         * doc/invoke.texi: Document -Wincompatible-pointer-types.
1155 2014-07-01  Martin Liska  <mliska@suse.cz>
1157         IPA REF alias refactoring
1158         * cgraph.h (iterate_direct_aliases): New function.
1159         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
1160         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
1161         FOR_EACH_ALIAS added.
1162         (cgraph_for_node_and_aliases): Likewise.
1163         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
1164         * ipa-inline.c (reset_edge_caches): Likewise.
1165         (update_caller_keys): Likewise.
1166         * trans-mem.c (ipa_tm_execute): Likewise.
1167         *varpool.c (varpool_analyze_node): Likewise.
1168         (varpool_for_node_and_aliases): Likewise.
1169         * ipa-ref.h (first_alias): New function.
1170         (last_alias): Likewise.
1171         (has_aliases_p): Likewise.
1172         * ipa-ref.c (ipa_ref::remove_reference): Removal function
1173         is sensitive to IPA_REF_ALIASes.
1174         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
1175         are put at the beginning of the list.
1176         (symtab_node::iterate_direct_aliases): New function.
1178 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
1180         Revert:
1181         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
1182         type is complete.
1183         (write_ts_type_common_tree_pointers): Do not stream fields not set
1184         for incomplete types; do not stream duplicated fields for variants;
1185         sanity check that variant and type match.
1186         (write_ts_type_non_common_tree_pointers): Likewise.
1187         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
1188         TYPE_SIZE whether type is complete.
1189         (lto_input_ts_type_common_tree_pointers): Do same changes as in
1190         write_ts_type_common_tree_pointers
1191         (lto_input_ts_type_non_common_tree_pointers): Likewise.
1193 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
1195         * var-tracking.c (add_stores): Return instead of asserting if old
1196         and new values for conditional store are the same.
1198 2014-06-30  Richard Henderson  <rth@redhat.com>
1200         PR rtl-opt/61608
1201         PR target/39284
1202         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
1203         the cfg if there were any changes.
1204         * passes.def: Revert move of peephole2 after reorder_blocks;
1205         move duplicate_computed_gotos before peephole2.
1207 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
1209         * except.c (emit_note_eh_region_end): New helper function.
1210         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
1211         emit EH_REGION_END note.
1212         * jump.c (cleanup_barriers): Do not split a call and its
1213         corresponding CALL_ARG_LOCATION note.
1215 2014-06-30  Jeff Law  <law@redhat.com>
1217         PR tree-optimization/61607
1218         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
1219         deeper into the SSA_NAME_VALUE chain.
1221 2014-06-30  Marek Polacek  <polacek@redhat.com>
1223         * convert.c (convert_to_integer): Don't instrument conversions if the
1224         function has no_sanitize_undefined attribute.
1225         * ubsan.c: Don't run the ubsan pass if the function has
1226         no_sanitize_undefined attribute.
1228 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
1230         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
1231         -fsanitize=undefined suboptions.
1233 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
1235         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
1236         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
1237         against bigendian and adjust indices.
1239 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
1241         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
1243 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1245         PR target/61633
1246         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
1247         Add alternative; make early clobber.  Adjust both split patterns
1248         to use operand 0 as the working register.
1250 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
1252         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
1253         as ira_object_id_map might be NULL, or 1.
1255 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1257         * loop-invariant.c (get_inv_cost): Handle register class.
1258         (gain_for_invariant): Check the register pressure of the inv
1259         and its overlapped register class, other than all.
1261 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
1263         * doc/invoke.texi (Optimize Options): Fix descriptions of
1264         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
1266 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
1268         * doc/extend.texi (Function Attributes): Update 'naked' attribute
1269         documentation.
1271 2014-06-29  Tobias Grosser <tobias@grosser.es>
1273         PR bootstrap/61650
1274         * graphite-isl-ast-to-gimple.c: Add missing guards.
1276 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
1278         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
1279         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
1280         * flag-types.h: Add new enum fgraphite_generator.
1281         * graphite-isl-ast-to-gimple.c: New.
1282         * graphite-isl-ast-to-gimple.h: New.
1283         * graphite.c (graphite_transform_loops): Add choice of Graphite
1284         code generator, which depends on flag_graphite_code_gen.
1286 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
1288         * graphite-dependences.c (subtract_commutative_associative_deps):
1289         Add NULL checking of the following variables: must_raw_no_source,
1290         may_raw_no_source, must_war_no_source, may_war_no_source,
1291         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
1292         must_war, may_war, must_waw, may_waw.
1294 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
1296         * graphite-clast-to-gimple.c: gloog is renamed to
1297         graphite_regenerate_ast_cloog.  gloog_error is renamed to
1298         graphite_regenerate_error.
1299         * graphite-clast-to-gimple.h: The definition of the struct
1300         bb_pbb_def is moved to graphite-htab.h.
1301         Add inclusion of the hash-table.h.
1302         * graphite-htab.h: The declaration of the function gloog is moved
1303         to graphite-clast-to-gimple.h and renamed to
1304         graphite_regenerate_ast_cloog.
1305         * graphite.c (graphite_transform_loops): gloog is renamed
1306         to graphite_regenerate_ast_cloog.
1308 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
1310         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
1311         type is complete.
1312         (write_ts_type_common_tree_pointers): Do not stream fields not set
1313         for incomplete types; do not stream duplicated fields for variants;
1314         sanity check that variant and type match.
1315         (write_ts_type_non_common_tree_pointers): Likewise.
1316         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
1317         TYPE_SIZE whether type is complete.
1318         (lto_input_ts_type_common_tree_pointers): Do same changes as in
1319         write_ts_type_common_tree_pointers
1320         (lto_input_ts_type_non_common_tree_pointers): Likewise.
1322 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
1324         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
1326 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
1328         * tree-inline.c (remap_type_1): Do not duplicate fields
1329         that are shared in between type and its main variant.
1331 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
1333         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
1334         of the type.
1335         (ipa_set_ancestor_jf) Likewise.
1336         (check_stmt_for_type_change): Check that we work on main variant.
1337         (detect_type_change): Look into main variant.
1338         (compute_known_type_jump_func): Check that main variant has BINFO.
1340 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
1342         * ipa-devirt.c (set_type_binfo): New function.
1343         (add_type_duplicate): Use it.
1344         (get_odr_type): Sanity check that binfos points to main variants.
1345         (get_class_context): Be sure the context's outer_type is main variant.
1346         (contains_type_p): Walk main variant.
1347         (get_polymorphic_call_info_for_decl): Set outer_type to be
1348         main variant.
1349         (get_polymorphic_call_info): Likewise.
1350         (possible_polymorphic_call_targets): Sanity check that we operate
1351         on main variant.
1353 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
1355         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
1357 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1359         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
1360         accidental change due to wide-int branch merge.
1362 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1364         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
1365         compressed debug support.
1366         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
1367         * configure: Regenerate.
1368         * config.in: Regenerate.
1369         * common.opt (compressed_debug_sections): New enum.
1370         (gz, gz=): New options.
1371         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
1372         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
1373         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
1374         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
1375         LINK_COMPRESS_DEBUG_SPEC.
1376         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
1377         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
1378         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
1379         (Debugging Options): Document -gz[=type].
1381 2014-06-27  Martin Jambor  <mjambor@suse.cz>
1383         PR ipa/61160
1384         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
1385         args_to_skip, use those from node instead.  Copy args_to_skip and
1386         combined_args_to_skip from node to the new thunk.
1387         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
1388         (cgraph_create_virtual_clone): Moved computation of
1389         combined_args_to_skip...
1390         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
1392 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
1394         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
1395         redundant diagnostic machinary.
1397 2014-06-27  Richard Biener  <rguenther@suse.de>
1399         * tree-ssa-math-opts.c (bswap_replace): Fix
1400         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
1402 2014-06-27  Martin Liska  <mliska@suse.cz>
1404         * gimple.h (gimple_location_safe): New function introduced.
1405         * cgraphunit.c (walk_polymorphic_call_targets): Usage
1406         of gimple_location_safe replaces gimple_location.
1407         (gimple_fold_call): Likewise.
1408         * ipa-devirt.c (ipa_devirt): Likewise.
1409         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1410         * ipa.c (walk_polymorphic_call_targets): Likewise.
1411         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
1413 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
1415         PR tree-optimization/57233
1416         PR tree-optimization/61299
1417         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
1418         functions.
1419         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
1420         would be lowered to scalar shifts, check if corresponding
1421         shifts and vector BIT_IOR_EXPR are supported and don't lower
1422         or lower just to narrower vector type in that case.
1423         * expmed.c (expand_shift_1): Fix up handling of vector
1424         shifts and rotates.
1426 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
1428         PR target/61586
1429         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
1431 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
1433         * doc/invoke.texi (-fsemantic-interposition): Document.
1434         * common.opt (fsemantic-interposition): New flag.
1435         * varasm.c (decl_replaceable_p): Use it.
1437 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1439         PR target/61542
1440         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
1441         extraction other than index 3.
1443 2014-06-26  Teresa Johnson  <tejohnson@google.com>
1445         * doc/invoke.texi: Fix typo.
1446         * dumpfile.c: Add support for documented -fdump-* options
1447         optimized/missed/note/optall.
1449 2014-06-26  Martin Jambor  <mjambor@suse.cz>
1451         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
1452         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
1453         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
1454         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
1455         * opts.c (default_options_optimization): Set
1456         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
1457         * doc/invoke.texi (allow-load-data-races)
1458         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
1459         (allow-store-data-races): Document the new default.
1461 2014-06-26  Martin Jambor  <mjambor@suse.cz>
1463         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
1464         renamed to ipa_impossible_devirt_target.  Fix typo.
1465         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
1466         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
1467         ipa_impossible_devirt_target.
1469 2014-06-26  Richard Biener  <rguenther@suse.de>
1471         PR tree-optimization/61607
1472         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
1473         explaining why we restrict copies on loop depth.
1474         * tree-ssa-dom.c (cprop_operand): Remove restriction on
1475         on loop depth.
1476         (record_equivalences_from_phis): Instead add it here.
1478 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
1480         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
1481         (LTO_WRAPPER_OBJS): New variable.
1482         (lto-wrapper$(exeext)): Use it.
1483         * collect2.c: Include "collect-utils.h".
1484         (verbose, debug): Remove variables.
1485         (at_file_supplied): No longer static.
1486         (tool_name): New variable.
1487         (do_wait, fork_execute, maybe_unlink): Don't declare.
1488         (tool_cleanup): No longer static.
1489         (notice): Remove function.
1490         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
1491         fork_execute calls.
1492         (collect_wait, do_wait, collect_execute): Remove functions.
1493         (maybe_unlink): No longer static.
1494         * collect2.h (verbose, debug): Don't declare.
1495         (at_file_supplied): Declare.
1496         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
1497         changed.
1498         (collect_execute): Replace with implementation from collect2, plus a
1499         new arg use_atfile.  All callers changed.
1500         (collect_wait): Replace with implementation from collect2.
1501         (maybe_unlink_file): Remove function.
1502         (fork_execute): Replace with implementation from collect2, plus a
1503         new arg use_atfile.  All callers changed.
1504         (do_wait): Add call to utils_cleanup to the error path.
1505         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
1506         (tool_cleanup): Adjust declarations.
1507         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
1508         * tlink.c: Include "collect-utils.h".
1509         (tlink_execute): New arg use_atfile.  All callers changed.
1510         (tlink_init, tlink_execute): Remove declarations.
1512         * collect-utils.c (save_temps): New variable.
1513         (do_wait): Use it instead of debug.  Use fatal_error.
1514         * collect-utils.h (save_temps): Declare.
1515         * collect2.c (verbose): Rename from vflag.  All uses changed.
1516         (tool_cleanup): New function, copied from collect_atexit.
1517         (collect_atexit, handler): Just call it.
1518         * collect2.h (verbose): Declaration renamed from vflag.
1519         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
1520         debug.
1522         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
1523         (lto-wrapper$(exeext)): Link with collect-utils.o.
1524         * collect-utils.c: New file.
1525         * collect-utils.h: New file.
1526         * lto-wrapper.c: Include "collect-utils.h".
1527         (args_name): Delete variable.
1528         (tool_name): New variable.
1529         (tool_cleanup): New function.
1530         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
1531         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
1532         (fork_execute): Remove functions.
1534 2014-06-26  Nick Clifton  <nickc@redhat.com>
1536         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
1538         * doc/extend.texi (Function Attributes): Fix typo in description
1539         of RX vector attribute.
1541 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
1543         * config.gcc (supported_defaults): Error when passing either
1544         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
1546 2014-06-26  Richard Biener  <rguenther@suse.de>
1548         * tree-ssa-dom.c (cprop_operand): Remove restriction on
1549         propagating volatile pointers.
1551 2014-06-26  Richard Biener  <rguenther@suse.de>
1553         PR tree-optimization/61607
1554         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
1555         loop if we redirected its latch edge.
1556         (thread_block_1): Do not cancel loops prematurely.
1558 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
1560         * toplev.c (backend_init_target): Move init_emit_regs and
1561         init_regs to...
1562         (backend_init) ... here; skip ira_init_once and backend_init_target.
1563         (target_reinit) ... and here; clear
1564         this_target_rtl->lang_dependent_initialized.
1565         (lang_dependent_init_target): Clear
1566         this_target_rtl->lang_dependent_initialized;
1567         break out rtl initialization to ...
1568         (initialize_rtl): ... here; call also backend_init_target
1569         and ira_init_once.
1570         * toplev.h (initialize_rtl): New function.
1571         * function.c: Include toplev.h
1572         (init_function_start): Call initialize_rtl.
1573         * rtl.h (target_rtl): Add target_specific_initialized,
1574         lang_dependent_initialized.
1576 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
1577             Jakub Jelinek  <jakub@redhat.com>
1579         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
1581 2014-06-25  Tom de Vries  <tom@codesourcery.com>
1583         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
1585 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1587         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
1588         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
1589         Issue a strict overflow warning if appropriate.
1591 2014-06-25  Martin Liska  <mliska@suse.cz>
1593         IPA REF refactoring
1594         * Makefile.in: Removed header file (ipa-ref-inline.h).
1595         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
1596         called.
1597         (cgraph_speculative_call_info): Likewise.
1598         (cgraph_for_node_thunks_and_aliases): Likewise.
1599         (cgraph_for_node_and_aliases): Likewise.
1600         (verify_cgraph_node): Likewise.
1601         * cgraph.h: Batch of IPA REF functions become member functions of
1602         symtab_node: add_reference, maybe_add_reference, clone_references,
1603         clone_referring, clone_reference, find_reference,
1604         remove_stmt_references, remove_all_references,
1605         remove_all_referring, dump_references, dump_referring,
1606         has_alias_p, iterate_reference, iterate_referring.
1607         * cgraphbuild.c (record_reference): New IPA REF function used.
1608         (record_type_list): Likewise.
1609         (record_eh_tables): Likewise.
1610         (mark_address): Likewise.
1611         (mark_load): Likewise.
1612         (mark_store): Likewise.
1613         (pass_build_cgraph_edges): Likewise.
1614         (rebuild_cgraph_edge): Likewise.
1615         (cgraph_rebuild_references): Likewise.
1616         (pass_remove_cgraph_callee_edges): Likewise.
1617         * cgraphclones.c (cgraph_clone_node): Likewise.
1618         (cgraph_create_virtual_clone): Likewise.
1619         (cgraph_materialize_clone): Likewise.
1620         (cgraph_materialize_all_clones): Likewise.
1621         * cgraphunit.c (cgraph_reset_node): Likewise.
1622         (cgraph_reset_node): Likewise.
1623         (analyze_function): Likewise.
1624         (assemble_thunks_and_aliases): Likewise.
1625         (expand_function): Likewise.
1626         * ipa-comdats.c (propagate_comdat_group): Likewise.
1627         (enqueue_references): Likewise.
1628         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
1629         (create_specialized_node): Likewise.
1630         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
1631         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
1632         * ipa-inline.c (reset_edge_caches): Likewise.
1633         (update_caller_keys): Likewise.
1634         (execute): Likewise.
1635         * ipa-prop.c (remove_described_reference): Likewise.
1636         (propagate_controlled_uses): Likewise.
1637         (ipa_edge_duplication_hook): Likewise.
1638         (ipa_modify_call_arguments): Likewise.
1639         * ipa-pure-const.c (propagate_pure_const): Likewise.
1640         * ipa-ref-inline.h: Header file removed, functions moved
1641         to symtab_node class.
1642         * ipa-ref.c (remove_reference): New class member function.
1643         (cannot_lead_to_return): New class member function.
1644         (referring_ref_list): Likewise.
1645         (referred_ref_list): Likewise.
1646         Rest of functions moved to symtab_node class.
1647         * ipa-ref.h: New member functions remove_reference,
1648         cannot_lead_to_return, referring_ref_list, referred_ref_list added
1649         to ipa_ref class.
1650         ipa_ref_list class has new member functions: first_reference,
1651         first_referring, clear, nreferences.
1652         * ipa-reference.c (analyze_function): New IPA REF function used.
1653         (write_node_summary_p): Likewise.
1654         (ipa_reference_write_optimization_summary): Likewise.
1655         * ipa-split.c (split_function): Likewise.
1656         * ipa-utils.c (ipa_reverse_postorder): Likewise.
1657         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
1658         (function_and_variable_visibility): Likewise.
1659         * ipa.c (has_addr_references_p): Likewise.
1660         (process_references): Argument type changed.
1661         (symtab_remove_unreachable_nodes): New IPA REF function used.
1662         (process_references): Likewise.
1663         (set_writeonly_bit): Likewise.
1664         * lto-cgraph.c: Implementation of new symtab_node member functions
1665         that uses new IPA REF functions.
1666         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
1667         function used.
1668         * lto-streamer-out.c (output_symbol_p): Likewise.
1669         * lto-streamer.h (referenced_from_this_partition_p): Argument type
1670         changed.
1671         * symtab.c: Implementation of new IPA REF API.
1672         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
1673         (ipa_tm_create_version): Likewise.
1674         (ipa_tm_execute): Likewise.
1675         * tree-emutls.c (gen_emutls_addr): Likewise.
1676         * tree-inline.c (copy_bb): Likewise.
1677         (delete_unreachable_blocks_update_callgraph): Likewise.
1678         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
1679         (varpool_for_node_and_aliases): Likewise.
1681 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
1683         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
1685 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
1687         PR bootstrap/61598
1688         * fold-const.c (fold_checksum_tree): Use a hash_table of const
1689         tree_node * instead of tree_node *.
1690         (fold): Adjust.
1691         (print_fold_checksum): Likewise.
1692         (fold_check_failed): Likewise.
1693         (debug_fold_checksum): Likewise.
1694         (fold_build1_stat_loc): Likewise.
1695         (fold_build2_stat_loc): Likewise.
1696         (fold_build3_stat_loc): Likewise.
1697         (fold_build_call_array_loc): Likewise.
1699 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
1701         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
1702         implementation with call to...
1703         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
1704         function.
1705         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
1706         Declare.
1708 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
1710         PR tree-optimization/57742
1711         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
1712         after replacing the statement.
1714 2014-06-25  Nick Clifton  <nickc@redhat.com>
1716         * config/v850/v850.c (GHS_default_section_names): Change to const
1717         char * type.
1718         (GHS_current_section_names): Likewise.
1719         (v850_insert_attributes): Do not build strings, just assign the
1720         names directly.  Change the type of 'chosen_section' to const
1721         char*.
1722         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
1723         directly to the array entry.
1724         * config/v850/v850.h (GHS_default_section_names): Change to const
1725         char * type.
1726         (GHS_current_section_names): Likewise.
1728 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
1730         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
1731         (LANG_HOOKS_DECLS): Add it.
1732         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
1733         has correct type.
1734         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
1735         * langhooks.h (struct lang_hooks_for_decls): Add
1736         omp_clause_linear_ctor hook.
1737         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
1738         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
1739         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
1740         combined simd loop use omp_clause_linear_ctor hook.
1742 2014-06-24  Cong Hou  <congh@google.com>
1744         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
1745         pattern recognition.
1746         (type_conversion_p): PROMOTION is true if it's a type promotion
1747         conversion, and false otherwise.  Return true if the given expression
1748         is a type conversion one.
1749         * tree-vectorizer.h: Adjust the number of patterns.
1750         * tree.def: Add SAD_EXPR.
1751         * optabs.def: Add sad_optab.
1752         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
1753         * expr.c (expand_expr_real_2): Likewise.
1754         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
1755         * gimple.c (get_gimple_rhs_num_ops): Likewise.
1756         * optabs.c (optab_for_tree_code): Likewise.
1757         * tree-cfg.c (estimate_operator_cost): Likewise.
1758         * tree-ssa-operands.c (get_expr_operands): Likewise.
1759         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
1760         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
1761         * doc/generic.texi: Add document for SAD_EXPR.
1762         * doc/md.texi: Add document for ssad and usad.
1764 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
1766         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
1767         qualification in cast.
1769 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
1771         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
1772         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
1773         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
1774         (tree_function_decl): ... here.
1775         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
1776         streaming of vindex to ...
1777         (write_ts_function_decl_tree_pointers): ... here.
1778         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
1779         Do not stream DECL_VINDEX.
1780         (lto_input_ts_function_decl_tree_pointers): Stream it here.
1782 2014-06-24  Catherine Moore  <clm@codesourcery.com>
1783             Sandra Loosemore  <sandra@codesourcery.com>
1785         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
1786         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
1787         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
1789 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
1791         * doc/invoke.texi (Warning Options): Remove duplicated
1792         -Wmaybe-uninitialized.
1794 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
1796         PR tree-optimization/57742
1797         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
1798         (handle_builtin_malloc, handle_builtin_memset): New functions.
1799         (strlen_optimize_stmt): Call them.
1800         * passes.def: Move strlen after loop+dom but before vrp.
1802 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
1804         PR target/61570
1805         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
1806         model family 6 CPU with has_longmode never use a CPU without
1807         64-bit support.
1809 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
1811         PR target/61570
1812         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
1813         the last change.
1815 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
1817         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
1818         * dominance.c (iterate_fix_dominators): Use hash_map instead of
1819         pointer_map.
1820         * hash-map.h: New file.
1821         * ipa-comdats.c: Use hash_map instead of pointer_map.
1822         * ipa.c: Likewise.
1823         * lto-section-out.c: Adjust.
1824         * lto-streamer.h: Replace pointer_map with hash_map.
1825         * symtab.c (verify_symtab): Likewise.
1826         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
1827         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
1828         * tree-streamer.h: Likewise.
1829         * tree-streamer.c: Adjust.
1830         * pointer-set.h: Remove pointer_map.
1832 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
1834         * hash-table.h: Add a template arg to choose between storing values
1835         and storing pointers to values, and then provide partial
1836         specializations for both.
1837         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
1838         should store, not the type values should point to.
1839         * tree-into-ssa.c (var_info_hasher): Likewise.
1840         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
1841         * tree-complex.c: Adjust.
1842         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
1843         table instead of int_tree_map *.
1844         * tree-parloops.c: Adjust.
1845         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
1846         type is being stored.
1847         * tree-vectorizer.c: Adjust.
1849 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
1851         * hash-table.h: Remove a layer of indirection from hash_table so that
1852         it contains the hash table's data instead of a pointer to the data.
1853         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
1854         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
1855         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
1856         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
1857         fold-const.c, gcse.c, ggc-common.c,
1858         gimple-ssa-strength-reduction.c, gimplify.c,
1859         graphite-clast-to-gimple.c, graphite-dependences.c,
1860         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
1861         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
1862         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
1863         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
1864         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
1865         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
1866         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
1867         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
1868         tree-ssa-live.c, tree-ssa-loop-im.c,
1869         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
1870         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
1871         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
1872         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
1873         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
1874         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
1875         vtable-verify.c, vtable-verify.h: Adjust.
1877 2014-06-24  Richard Biener  <rguenther@suse.de>
1879         PR tree-optimization/61572
1880         * tree-ssa-sink.c (statement_sink_location): Do not sink
1881         loads from hard registers.
1883 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
1885         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
1886         not mentioned in clauses use private clause if the iterator is
1887         declared in #pragma omp for simd, and when adding lastprivate
1888         instead, add it to the outer #pragma omp for too.  Diagnose
1889         if the variable is private in outer context.  For simd collapse > 1
1890         loops, replace all iterators with temporaries.
1891         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
1892         same even in collapse > 1 loops.
1894         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
1895         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
1896         non-NULL.
1897         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
1898         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
1899         non-NULL.
1900         (gimplify_adjust_omp_clauses): Likewise.
1901         * omp-low.c (lower_rec_simd_input_clauses,
1902         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
1903         safelen the same as safelen(1).
1904         * tree-nested.c (convert_nonlocal_omp_clauses,
1905         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
1906         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
1907         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
1908         Fixup handling of GIMPLE_OMP_TARGET.
1909         (convert_tramp_reference_stmt, convert_gimple_call): Handle
1910         GIMPLE_OMP_TARGET.
1912 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
1914         PR tree-optimization/61554
1915         * tree-ssa-propagate.c: Include "bitmap.h".
1916         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
1917         properly update constructor/destructor.
1918         (substitute_and_fold_dom_walker::before_dom_children):
1919         Remove call to gimple_purge_dead_eh_edges, add bb->index to
1920         need_eh_cleaup instead.
1921         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
1922         need_eh_cleanup.
1924 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
1926         * varpool.c (dump_varpool_node): Dump used_by_single_function.
1927         * tree-pass.h (make_pass_ipa_single_use): New pass.
1928         * cgraph.h (used_by_single_function): New flag.
1929         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
1930         Stream it.
1931         * passes.def (pass_ipa_single_use): Scedule.
1932         * ipa.c (BOTTOM): New macro.
1933         (meet): New function
1934         (propagate_single_user): New function.
1935         (ipa_single_use): New function.
1936         (pass_data_ipa_single_use): New pass.
1937         (pass_ipa_single_use): New pass.
1938         (pass_ipa_single_use::gate): New gate.
1939         (make_pass_ipa_single_use): New function.
1941 2014-06-23  Kai Tietz  <ktietz@redhat.com>
1943         PR target/39284
1944         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
1945         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
1947 2014-06-23  Richard Biener  <rguenther@suse.de>
1949         * tree-ssa-loop.c (gate_loop): New function.
1950         (pass_tree_loop::gate): Call it.
1951         (pass_data_tree_no_loop, pass_tree_no_loop,
1952         make_pass_tree_no_loop): New.
1953         * tree-vectorizer.c: Include tree-scalar-evolution.c
1954         (pass_slp_vectorize::execute): Initialize loops and SCEV if
1955         required.
1956         (pass_slp_vectorize::clone): New method.
1957         * timevar.def (TV_TREE_NOLOOP): New.
1958         * tree-pass.h (make_pass_tree_no_loop): Declare.
1959         * passes.def (pass_tree_no_loop): New pass group with
1960         SLP vectorizer.
1962 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
1964         PR target/61570
1965         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
1966         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
1968 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
1970         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
1971         "yes" where needed.
1973 2014-06-23  Alan Modra  <amodra@gmail.com>
1975         PR bootstrap/61583
1976         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
1977         to zero on debug statements.
1979 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
1981         PR target/60825
1982         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
1983         Ignore third operand if present by marking qualifier_internal.
1985         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
1987         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
1988         vector extension.
1989         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
1990         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
1991         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
1992         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
1993         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
1994         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
1995         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
1996         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
1997         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
1998         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
1999         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
2000         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
2001         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
2002         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
2003         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
2004         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
2005         logic in GCC vector extensions
2007         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
2008         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
2009         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
2010         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
2011         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
2012         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
2013         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
2014         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
2015         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
2016         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
2018         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
2020         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
2021         extensions.
2023         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
2024         (vget_low_s64): Use __GET_LOW macro.
2025         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
2026         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
2027         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
2028         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
2029         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
2031         (vcombine_s64): Use GCC vector extensions; remove cast.
2032         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
2033         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
2034         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
2035         Fix type signature; remove cast.
2037 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
2039         PR target/60825
2040         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
2041         V1DFmode.
2042         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
2043         add V1DFmode
2044         (BUILTIN_VD1): New.
2045         (BUILTIN_VD_RE): Remove.
2046         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
2047         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
2048         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
2049         variant but not df.
2050         (vreinterpretv1df*, vreinterpret*v1df): New.
2051         (vreinterpretdf*, vreinterpret*df): Remove.
2052         * config/aarch64/aarch64-simd.md (aarch64_create,
2053         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
2054         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
2055         (VD1): New.
2056         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
2057         (vcreate_f64): Remove cast, use v1df builtin.
2058         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
2059         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
2060         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
2061         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
2062         vmov_n_f64, vst1_f64): Use gcc vector extensions.
2063         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
2064         add range check using __builtin_aarch64_im_lane_boundsi.
2065         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
2066         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
2067         type signature, use gcc vector extensions.
2068         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
2069         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
2070         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
2071         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
2072         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
2073         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
2074         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
2075         vreinterpret_u64_f64): Use v1df builtin not df.
2077 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
2079         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
2080         vector registers.
2082 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
2084         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
2085         priority directly.
2087 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2089         * loop-invariant.c (pre_check_invariant_p): New function.
2090         (find_invariant_insn): Call pre_check_invariant_p.
2092 2014-06-22  Richard Henderson  <rth@redhat.com>
2094         PR target/61565
2095         * compare-elim.c (struct comparison): Add eh_note.
2096         (find_comparison_dom_walker::before_dom_children): Don't eliminate
2097         a redundant comparison in a different EH region.  Purge EH edges if
2098         necessary.
2100 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
2102         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
2103         (var_shift): Use it.
2104         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
2105         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
2106         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
2107         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
2108         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
2109         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
2110         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
2111         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
2112         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
2113         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
2114         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
2115         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
2116         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
2117         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
2118         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
2119         *rotldi3_internal15be): Use the new attribute.  Merge register and
2120         integer alternatives.
2122 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
2124         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
2125         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
2126         split, *ashrdi3_internal3 and split): Delete, merge into...
2127         (ashr<mode>3): New expander.
2128         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
2129         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
2131 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
2133         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
2134         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
2135         *rotldi3_internal3 and split): Delete, merge into...
2136         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
2137         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
2138         Use "rotlw" extended mnemonic.
2140 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
2142         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
2143         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
2144         and split, *ashldi3_internal3 and split): Delete, merge into...
2145         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
2146         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
2148 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
2150         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
2151         (lshrsi3, two anonymous define_insns and define_splits,
2152         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
2153         *lshrdi3_internal3 and split): Delete, merge into...
2154         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
2155         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
2157 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
2159         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
2160         Remove "O" alternative.
2162 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
2164         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
2165         (mips_move_from_gpr_cost): Likewise.
2166         (mips_register_move_cost): Update accordingly.
2167         (mips_secondary_reload_class): Remove name of in_p.
2169 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
2171         PR target/61503
2172         * config/i386/i386.md (x86_64_shrd, x86_shrd,
2173         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
2175 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2177         * config/nios2/nios2.c: Include "builtins.h".
2179 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
2181         * cgraph.h (tls_model_names): New variable.
2182         * print-tree.c (print_node): Simplify.
2183         * varpool.c (tls_model_names): New variable.
2184         (dump_varpool_node): Output tls model.
2186 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
2188         * ipa-visibility.c (function_and_variable_visibility): Disable
2189         temporarily local aliases for some targets.
2191 2014-06-20  Marek Polacek  <polacek@redhat.com>
2193         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
2194         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
2195         into SANITIZE_UNDEFINED.
2196         * doc/invoke.texi: Describe -fsanitize=bounds.
2197         * gimplify.c (gimplify_call_expr): Add gimplification of internal
2198         functions created in the FEs.
2199         * internal-fn.c: Move "internal-fn.h" after "tree.h".
2200         (expand_UBSAN_BOUNDS): New function.
2201         * internal-fn.def (UBSAN_BOUNDS): New internal function.
2202         * internal-fn.h: Don't define internal functions here.
2203         * opts.c (common_handle_option): Add -fsanitize=bounds.
2204         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
2205         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
2206         * tree-core.h: Define internal functions here.
2207         (struct tree_base): Add ifn field.
2208         * tree-pretty-print.c: Include "internal-fn.h".
2209         (dump_generic_node): Handle functions without CALL_EXPR_FN.
2210         * tree.c (get_callee_fndecl): Likewise.
2211         (build_call_expr_internal_loc): New function.
2212         * tree.def (CALL_EXPR): Update description.
2213         * tree.h (CALL_EXPR_IFN): Define.
2214         (build_call_expr_internal_loc): Declare.
2215         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
2216         types.
2217         (ubsan_type_descriptor): Change bool parameter to enum
2218         ubsan_print_style.  Adjust the code.  Add handling of
2219         UBSAN_PRINT_ARRAY.
2220         (ubsan_expand_bounds_ifn): New function.
2221         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
2222         (ubsan_build_overflow_builtin): Likewise.
2223         (instrument_bool_enum_load): Likewise.
2224         (ubsan_instrument_float_cast): Likewise.
2225         * ubsan.h (enum ubsan_print_style): New enum.
2226         (ubsan_expand_bounds_ifn): Declare.
2227         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
2229 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
2231         * config/rs6000/rs6000.md: Append `DONE' to preparation
2232         statements of `bswap' pattern splitters.
2234 2014-06-20  Tom de Vries  <tom@codesourcery.com>
2236         * target.def (call_fusage_contains_non_callee_clobbers): Update
2237         definition.
2238         * doc/tm.texi: Regenerate.
2240 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
2241             Max Ostapenko  <m.ostapenko@partner.samsung.com>
2243         PR sanitizer/61547
2244         * asan.c (instrument_strlen_call): Fixed instrumentation of
2245         trailing byte.
2247 2014-06-20  Martin Jambor  <mjambor@suse.cz>
2249         PR ipa/61540
2250         * ipa-prop.c (impossible_devirt_target): New function.
2251         (try_make_edge_direct_virtual_call): Use it, also instead of
2252         asserting.
2254 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
2255             Max Ostapenko  <m.ostapenko@partner.samsung.com>
2257         PR sanitizer/61530
2258         * asan.c (build_check_stmt): Add condition.
2260 2014-06-20  Martin Jambor  <mjambor@suse.cz>
2262         PR ipa/61211
2263         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
2264         expanded clones.
2266 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2268         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
2269         Update comments.
2270         (VCONQ): Make comment more helpful.
2271         (VCON): Delete.
2272         * config/aarch64/aarch64-simd.md
2273         (aarch64_sqdmulh_lane<mode>):
2274         Use VCOND for operands 2.  Update lane checking and flipping logic.
2275         (aarch64_sqrdmulh_lane<mode>): Likewise.
2276         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
2277         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
2278         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
2279         attribute of operand 3 to VCOND.
2280         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
2281         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
2282         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
2283         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
2284         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
2285         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
2286         define_insn.
2287         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
2288         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
2289         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
2290         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
2291         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
2292         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
2293         operand to VCOND.  Update lane flipping and bounds checking logic.
2294         (aarch64_sqdmlal2_lane<mode>): Likewise.
2295         (aarch64_sqdmlsl_lane<mode>): Likewise.
2296         (aarch64_sqdmull_lane<mode>): Likewise.
2297         (aarch64_sqdmull2_lane<mode>): Likewise.
2298         (aarch64_sqdmlal_laneq<mode>):
2299         Replace VCON usage with VCONQ.
2300         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
2301         (aarch64_sqdmlal2_laneq<mode>): Emit
2302         aarch64_sqdmlal2_laneq<mode>_internal insn.
2303         Replace VCON with VCONQ.
2304         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
2305         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
2306         (aarch64_sqdmull_laneq<mode>): Emit
2307         aarch64_sqdmull_laneq<mode>_internal insn.
2308         Replace VCON with VCONQ.
2309         (aarch64_sqdmull2_laneq<mode>): Emit
2310         aarch64_sqdmull2_laneq<mode>_internal insn.
2311         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
2312         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
2313         of 3rd argument to int16x4_t.
2314         (vqdmlalh_lane_s16): Likewise.
2315         (vqdmlslh_lane_s16): Likewise.
2316         (vqdmull_high_lane_s16): Likewise.
2317         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
2318         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
2319         (vqdmlsl_lane_s16): Likewise.
2320         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
2321         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
2322         (vqdmlals_lane_s32): Likewise.
2323         (vqdmlsls_lane_s32): Likewise.
2324         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
2325         (vqdmulls_lane_s32): Likewise.
2326         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
2327         (vqdmlsl_lane_s32): Likewise.
2328         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
2329         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
2330         (vqrdmulhh_lane_s16): Likewise.
2331         (vqdmlsl_high_lane_s16): Likewise.
2332         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
2333         (vqdmlsl_high_lane_s32): Likewise.
2334         (vqrdmulhs_lane_s32): Likewise.
2336 2014-06-20  Tom de Vries  <tom@codesourcery.com>
2338         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
2339         get_call_reg_set_usage.
2341 2014-06-20  Tom de Vries  <tom@codesourcery.com>
2343         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
2344         it contains all call_used_regs.
2346 2014-06-20  Tom de Vries  <tom@codesourcery.com>
2348         * final.c (collect_fn_hard_reg_usage): Add and use variable
2349         function_used_regs.
2351 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
2353         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
2354         (set_init_priority, get_init_priority, set_fini_priority,
2355         get_fini_priority): New methods.
2356         * tree.c (init_priority_for_decl): Remove.
2357         (init_ttree): Do not initialize init priority.
2358         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
2359         (decl_priority_info): Remove.
2360         (decl_init_priority_insert): Rewrite.
2361         (decl_fini_priority_insert): Rewrite.
2362         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
2363         tree_priority_map_marked_p): Remove.
2364         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
2365         * lto-streamer-out.c (hash_tree): Do not hash priorities.
2366         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
2367         not output priorities.
2368         (pack_ts_function_decl_value_fields): Likewise.
2369         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
2370         not input priorities.
2371         (unpack_ts_function_decl_value_fields): Likewise.
2372         * symtab.c (symbol_priority_map): Declare.
2373         (init_priority_hash): Declare.
2374         (symtab_unregister_node): Unregister from priority hash, too.
2375         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
2376         New methods.
2377         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
2378         (symbol_priority_info): New function.
2379         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
2380         New methods.
2381         * tree-core.h (tree_priority_map): Remove.
2383 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
2385         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
2386         0xff to uint64_t before shifting it up.
2388 2014-06-20  Julian Brown  <julian@codesourcery.com>
2389             Chung-Lin Tang  <cltang@codesourcery.com>
2391         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
2392         TARGET_THUMB1_ONLY. Add comments.
2394 2014-06-19  Tom de Vries  <tom@codesourcery.com>
2396         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
2397         return type to void.
2398         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
2400 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2402         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
2403         as "move", from depends_on.
2405 2014-06-19  Terry Guo  <terry.guo@arm.com>
2407         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
2408         stage.
2410 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
2412         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
2413         Remove cr5.
2414         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
2416 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
2418         PR target/61550
2419         * config/sh/sh.c (prepare_move_operands): Don't process TLS
2420         addresses here if reload in progress or completed.
2422 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
2424         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
2425         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
2426         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
2427         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
2428         (mips_register_priority): New function that implements the target
2429         hook TARGET_REGISTER_PRIORITY.
2430         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
2431         (mips_lra_p): Likewise for TARGET_LRA_P.
2432         (TARGET_REGISTER_PRIORITY): Define macro.
2433         (TARGET_SPILL_CLASS): Likewise.
2434         (TARGET_LRA_P): Likewise.
2435         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
2436         classes.
2437         (REG_CLASS_NAMES): Likewise.
2438         (REG_CLASS_CONTENTS): Likewise.
2439         (BASE_REG_CLASS): Use M16_SP_REGS.
2440         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
2441         New set attribute to enable alternatives depending on the register
2442         allocator used.
2443         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
2444         (*lea64): Disable pattern for MIPS16.
2445         * config/mips/mips.opt (mlra): New option.
2447 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
2449         * lra-constraints.c (base_to_reg): New function.
2450         (process_address): Use new function.
2452 2014-06-18  Tom de Vries  <tom@codesourcery.com>
2454         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
2455         * config/aarch64/aarch64.c
2456         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
2457         (aarch64_emit_call_insn): New function.
2458         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
2459         of emit_call_insn.
2460         * config/aarch64/aarch64.md (define_expand "call_internal")
2461         (define_expand "call_value_internal", define_expand "sibcall_internal")
2462         (define_expand "sibcall_value_internal"): New.
2463         (define_expand "call", define_expand "call_value")
2464         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
2465         expand variant and aarch64_emit_call_insn.
2467 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
2468             Tom de Vries  <tom@codesourcery.com>
2470         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
2471         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
2472         Redefine to true.
2473         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
2474         clobbers to CALL_INSN_FUNCTION_USAGE.
2475         (define_expand "sibcall_internal")
2476         (define_expand "sibcall_value_internal"): New.
2477         (define_expand "call", define_expand "call_value"): Add argument to
2478         arm_emit_call_insn.
2479         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
2480         (define_expand "sibcall_value"): Use sibcall_value_internal and
2481         arm_emit_call_insn.
2483 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
2485         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
2487 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
2489         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
2490         __udivmoddi4.
2492 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
2494         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
2495         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
2496         annotations. Fix DWARF information.
2498 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
2500         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
2501         __udivmoddi4, and fixups for negative operands.
2503 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
2505         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
2507 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
2509         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
2510         to __udivmoddi4.
2512 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
2514         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
2515         manipulation.
2517 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
2519         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
2520         describing register usage on function entry and exit.
2522 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
2524         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
2525         (__aeabi_ldivmod): Fix whitespace.
2527 2014-06-18  Andreas Schwab  <schwab@suse.de>
2529         * doc/md.texi (Standard Names): Use @itemx for grouped items.
2530         Remove blank line after @item.
2532 2014-06-18  Richard Henderson  <rth@redhat.com>
2534         PR target/61545
2535         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
2537 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
2539         * config/arm/arm.c (neon_vector_mem_operand): Allow register
2540         POST_MODIFY for neon loads and stores.
2541         (arm_print_operand): Output post-index register for neon loads and
2542         stores.
2544 2014-06-18  Richard Biener  <rguenther@suse.de>
2546         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
2548 2014-06-18  Richard Biener  <rguenther@suse.de>
2550         * tree-pass.h (make_pass_dce_loop): Remove.
2551         * passes.def: Replace pass_dce_loop with pass_dce.
2552         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
2553         changed free niter estimates and reset the scev cache.
2554         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
2555         make_pass_dce_loop): Remove.
2556         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
2557         (fini_copy_prop): Return whether something changed.  Always
2558         let substitute_and_fold perform DCE and free niter estimates
2559         and reset the scev cache if so.
2560         (execute_copy_prop): If sth changed schedule cleanup-cfg.
2561         (pass_data_copy_prop): Do not unconditionally schedule
2562         cleanup-cfg or update-ssa.
2564 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
2566         PR tree-optimization/61518
2567         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
2568         reduction var is used in reduction stmt or phi-function only.
2570 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2572         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
2574 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2576         PR tree-optimization/61517
2577         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
2578         whose rhs's first tree is the source expression instead of the
2579         expression itself.
2580         (find_bswap_or_nop): Likewise.
2581         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
2582         gimple stmt whose rhs's first tree is the source. In the memory source
2583         case, move the stmt to be replaced close to one of the original load to
2584         avoid the problem of a store between the load and the stmt's original
2585         location.
2586         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
2587         signature.
2589 2014-06-18  Andreas Schwab  <schwab@suse.de>
2591         PR rtl-optimization/54555
2592         * postreload.c (move2add_use_add2_insn): Substitute
2593         STRICT_LOW_PART only if it is cheaper.
2595 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
2597         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
2598         Do not use unspec as call operand.  Use memory_operand instead of
2599         memory_nox32_operand and add "m" operand constraint.  Disable
2600         pattern for TARGET_X32.
2601         (*sibcall_pop_memory): Ditto.
2602         (*sibcall_value_memory): Ditto.
2603         (*sibcall_value_pop_memory): Ditto.
2604         (sibcall peepholes): Merge SImode and DImode patterns using
2605         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
2606         Disable pattern for TARGET_X32.  Check if eliminated register is
2607         really dead after call insn.  Generate call RTX without unspec operand.
2608         (sibcall_value peepholes): Ditto.
2609         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
2610         instead of memory_nox32_operand.  Check if eliminated register is
2611         really dead after call insn. Generate call RTX without unspec operand.
2612         (sibcall_value_pop peepholes): Ditto.
2613         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
2615 2014-06-18  Terry Guo  <terry.guo@arm.com>
2617         PR target/61544
2618         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
2619         reach the head.
2621 2014-06-18  Olivier Hainque  <hainque@adacore.com>
2623         * tree-core.h (tree_block): Add an "end_locus" field, allowing
2624         memorization of the end of block source location.
2625         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
2626         * gimplify.c (gimplify_bind_expr): Propagate the block start and
2627         end source location info we have on the block entry/exit code we
2628         generate.
2630 2014-06-18  Richard Biener  <rguenther@suse.de>
2632         * common.opt (fssa-phiopt): New option.
2633         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
2634         but not with -Og.
2635         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
2636         * doc/invoke.texi (-fssa-phiopt): Document.
2638 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2640         * genattrtab.c (n_bypassed): New variable.
2641         (process_bypasses): Initialise n_bypassed.
2642         Count number of bypassed reservations.
2643         (make_automaton_attrs): Allocate space for bypassed reservations
2644         rather than number of bypasses.
2646 2014-06-18  Richard Biener  <rguenther@suse.de>
2648         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
2649         we propagated anything.
2650         (substitute_and_fold_dom_walker::before_dom_children): Something
2651         changed if we propagated into PHI arguments.
2652         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
2653         we removed a stmt.
2655 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
2657         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
2658         vector case.
2659         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
2660         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
2661         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
2662         Introduces alternative way of loads group permutaions.
2663         (vect_transform_grouped_load): Try alternative way of permutations.
2665 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
2667         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
2668         changed in ORT_TARGET region, don't jump to do_outer.
2669         (struct gimplify_adjust_omp_clauses_data): New type.
2670         (gimplify_adjust_omp_clauses_1): Adjust for data being
2671         a struct gimplify_adjust_omp_clauses_data pointer instead
2672         of tree *.  Pass pre_p as a new argument to
2673         lang_hooks.decls.omp_finish_clause hook.
2674         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
2675         splay_tree_foreach to pass both list_p and pre_p.
2676         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
2677         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
2678         gimplify_adjust_omp_clauses callers.
2679         * langhooks.c (lhd_omp_finish_clause): New function.
2680         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
2681         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
2682         * langhooks.h (struct lang_hooks_for_decls): Add a new
2683         gimple_seq * argument to omp_finish_clause hook.
2684         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
2685         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
2686         (scan_omp_parallel, lower_omp_for): When adding
2687         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
2688         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
2689         * tree-nested.c (convert_nonlocal_omp_clauses,
2690         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
2691         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
2693 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
2695         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
2696         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
2698 2014-06-17  Xinliang David Li  <davidxl@google.com>
2700         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
2701         * passes.c (pass_init_dump_file): Do not set initialize
2702         flag to false unconditionally.
2704 2014-06-17  Richard Biener  <rguenther@suse.de>
2706         * genopinit.c (main): Use vec<>::qsort method.
2707         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
2708         Likewise.
2709         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
2711 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
2713         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
2714         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
2715         (mips_move_to_gpr_cost): Remove ST_REGS case.
2716         (mips_move_from_gpr_cost): Likewise.
2717         (mips_register_move_cost): Likewise.
2718         (mips_secondary_reload_class): Likewise.
2720 2014-06-17  Richard Biener  <rguenther@suse.de>
2722         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
2723         (pass_all_optimizations): Move 3rd copy-prop pass from after
2724         fre to before ifcombine/phiopt.
2726 2014-06-17  Richard Biener  <rguenther@suse.de>
2728         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
2729         and allow all blocks to be forwarders.
2731 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
2733         PR target/61483
2734         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
2735         variable 'size'; calculate 'size' right in the front; use
2736         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
2737         pcum->aapcs_stack_words.
2739 2014-06-17  Nick Clifton  <nickc@redhat.com>
2741         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
2742         (umulhi3, mulsidi3, umulsidi3): Likewise.
2744 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
2746         PR middle-end/61508
2747         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
2748         check for section name.
2750 2014-06-17  Richard Biener  <rguenther@suse.de>
2752         * tree-ssa-propagate.c: Include domwalk.h.
2753         (substitute_and_fold): Outline main worker into a domwalker ...
2754         (substitute_and_fold_dom_walker::before_dom_children): ... here.
2755         Schedule stmts we can fully propagate for removal.  Remove
2756         poor-mans DCE.
2757         (substitute_and_fold): Apply a dominator walk to perform
2758         substitution.  Process stmts scheduled for removal here.
2760 2014-06-17  Richard Biener  <rguenther@suse.de>
2762         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
2763         of PHI node moving.
2765 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
2767         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
2768         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
2769         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
2770         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
2771         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
2772         TARGET_HARD_FLOAT.
2773         (get_fpscr) : Likewise.
2775 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
2777         PR rtl-optimization/61325
2778         * lra-constraints.c (valid_address_p): Add forward declaration.
2779         (simplify_operand_subreg): Check address validity before and after
2780         alter_reg of memory subreg.
2782 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
2784         * config/i386/i386.c (decide_alg): Correctly handle
2785         maximum size of stringop algorithm.
2787 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
2789         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
2791 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
2793         PR rtl-optimization/61522
2794         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
2796 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
2798         Revert:
2799         * symtab.c (symtab_node::reset_section): New method.
2800         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
2801         for localization.
2802         * cgraph.h (reset_section): Declare.
2803         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
2804         do not consider comdat locals.
2805         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
2806         for new symbol.
2807         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
2808         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
2809         reset sections of symbols dragged out of the comdats.
2810         (function_and_variable_visibility): Reset sections of
2811         localized symbols.
2813 2014-06-16  Richard Biener  <rguenther@suse.de>
2815         PR tree-optimization/61482
2816         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
2817         [-INF(OVF), +INF(OVF)] range.
2819 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2821         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
2822         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
2823         handling 32-bit multiplication.
2825 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
2827         PR middle-end/61430
2828         * lra-lives.c (process_bb_lives): Skip creating copy during
2829         insn scan when src/dest has constrained to same regno.
2831 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
2833         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
2834         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
2836 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
2838         * asan.c (check_func): New function.
2839         (maybe_create_ssa_name): Likewise.
2840         (build_check_stmt_with_calls): Likewise.
2841         (use_calls_p): Likewise.
2842         (report_error_func): Change interface.
2843         (build_check_stmt): Allow non-integer lengths; add support
2844         for new parameter.
2845         (asan_instrument): Likewise.
2846         (instrument_mem_region_access): Moved code to build_check_stmt.
2847         (instrument_derefs): Likewise.
2848         (instrument_strlen_call): Likewise.
2849         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
2850         * doc/invoke.texi: Describe new parameter.
2851         * params.def: Define new parameter.
2852         * params.h: Likewise.
2853         * sanitizer.def: Describe new builtins.
2855 2014-06-16  Richard Biener  <rguenther@suse.de>
2857         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2858         Make all defs available at the end.
2859         (eliminate): If we remove a PHI node schedule cfg-cleanup.
2861 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
2863         PR plugins/45078
2864         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
2866 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
2868         PR bootstrap/61516
2869         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
2870         initialization.  Replace remaining use of uid.
2872 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
2874         * c-family/c-common.c (handle_tls_model_attribute): Use
2875         set_decl_tls_model.
2876         * c-family/c-common.c (handle_tls_model_attribute): Use
2877         set_decl_tls_model.
2878         * cgraph.h (struct varpool_node): Add tls_model.
2879         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
2880         * tree.h (DECL_TLS_MODEL): Update.
2881         (DECL_THREAD_LOCAL_P): Check that variable is static.
2882         (decl_tls_model): Declare.
2883         (set_decl_tls_model): Declare.
2884         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
2885         set symbol prorperties.
2886         (get_emutls_init_templ_addr): Cleanup.
2887         (new_emutls_decl): Update.
2888         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
2889         (lto_input_varpool_node): Likewise.
2890         * lto-streamer-out.c (hash_tree): Likewise.
2891         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
2892         not stream DECL_TLS_MODEL.
2893         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
2894         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
2896 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
2898         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
2900 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
2902         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
2903         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
2904         lists.
2905         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
2906         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
2907         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
2908         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
2909         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
2910         (df_get_artificial_defs, df_get_artificial_uses)
2911         (df_single_def, df_single_use): Update accordingly.
2912         (df_refs_chain_dump): Take the first element in a linked list as
2913         parameter, rather than a pointer to an array of pointers.
2914         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
2915         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
2916         (df_chain_create_bb_process_use): Likewise.
2917         (df_md_bb_local_compute_process_def): Likewise.
2918         * fwprop.c (process_defs, process_uses): Likewise.
2919         (register_active_defs, update_uses): Likewise.
2920         (forward_propagate_asm): Update for new df_ref linking.
2921         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
2922         (df_null_ref_rec, df_null_mw_rec): Likewise.
2923         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
2924         explicitly.
2925         (df_scan_free_bb_info): Remove check for null artificial_defs.
2926         (df_install_ref_incremental): Adjust for new df_ref linking.
2927         Use a single-element insertion rather than a full sort.
2928         (df_ref_chain_delete_du_chain): Take the first element
2929         in a linked list as parameter, rather than a pointer to an array of
2930         pointers.
2931         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
2932         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
2933         (df_insn_info_delete): Remove check for null defs and call to
2934         df_scan_free_mws_vec.
2935         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
2936         null rather than df_null_*_rec.
2937         (df_insn_rescan_debug_internal): Likewise, and update null
2938         checks in the same way.  Remove check for null defs.
2939         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
2940         Move a single element rather doing a full sort.
2941         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
2942         linking.
2943         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
2944         Initialize df_ref and df_mw_hardreg lists to null rather than
2945         df_null_*_rec.
2946         (df_ref_compare): Take df_refs as parameter, transferring the
2947         old interface to...
2948         (df_ref_ptr_compare): ...this new function.
2949         (df_sort_and_compress_refs): Update accordingly.
2950         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
2951         old interface to...
2952         (df_mw_ptr_compare): ...this new function.
2953         (df_sort_and_compress_mws): Update accordingly.
2954         (df_install_refs, df_install_mws): Return a linked list rather than
2955         an array of pointers.
2956         (df_refs_add_to_chains): Assert that old lists are empty rather
2957         than freeing them.
2958         (df_insn_refs_verify): Don't handle null defs speciailly.
2959         * web.c (union_match_dups): Update for new df_ref linking.
2961 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
2963         * df.h (df_ref_create, df_ref_remove): Delete.
2964         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
2965         (df_ref_remove): Likewise.
2967 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
2969         * df.h (df_single_def, df_single_use): New functions.
2970         * ira.c (find_moveable_pseudos): Use them.
2972 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
2974         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
2975         * df-problems.c (df_note_bb_compute): Use it.
2976         * regstat.c (regstat_bb_compute_ri): Likewise.
2978 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
2980         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
2981         * cse.c (cse_extended_basic_block): Use them.
2982         * dce.c (mark_artificial_use): Likewise.
2983         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
2984         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
2985         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
2986         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
2987         (df_simulate_initialize_backwards): Likewise.
2988         (df_simulate_finalize_backwards): Likewise.
2989         (df_simulate_initialize_forwards): Likewise.
2990         (df_md_simulate_artificial_defs_at_top): Likewise.
2991         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
2992         * regrename.c (init_rename_info): Likewise.
2993         * regstat.c (regstat_bb_compute_ri): Likewise.
2994         (regstat_bb_compute_calls_crossed): Likewise.
2996 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
2998         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
2999         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
3000         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
3001         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
3002         * combine.c (create_log_links): Likewise.
3003         * compare-elim.c (find_flags_uses_in_insn): Likewise.
3004         (try_eliminate_compare): Likewise.
3005         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
3006         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
3007         (remove_reg_equal_equiv_notes_for_defs): Likewise.
3008         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
3009         (word_dce_process_block, dce_process_block): Likewise.
3010         * ddg.c (def_has_ccmode_p): Likewise.
3011         * df-core.c (df_bb_regno_first_def_find): Likewise.
3012         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
3013         * df-problems.c (df_rd_simulate_one_insn): Likewise.
3014         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
3015         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
3016         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
3017         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
3018         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
3019         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
3020         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
3021         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
3022         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
3023         * fwprop.c (local_ref_killed_between_p): Likewise.
3024         (all_uses_available_at, free_load_extend): Likewise.
3025         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
3026         * hw-doloop.c (scan_loop): Likewise.
3027         * ifcvt.c (dead_or_predicable): Likewise.
3028         * init-regs.c (initialize_uninitialized_regs): Likewise.
3029         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
3030         (process_bb_node_lives): Likewise.
3031         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
3032         (find_moveable_pseudos): Likewise.
3033         * loop-invariant.c (check_dependencies, record_uses): Likewise.
3034         * recog.c (peep2_find_free_register): Likewise.
3035         * ree.c (get_defs): Likewise.
3036         * regstat.c (regstat_bb_compute_ri): Likewise.
3037         (regstat_bb_compute_calls_crossed): Likewise.
3038         * sched-deps.c (find_inc, find_mem): Likewise.
3039         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
3040         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
3041         * shrink-wrap.c (requires_stack_frame_p): Likewise.
3042         (prepare_shrink_wrap): Likewise.
3043         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
3044         * web.c (union_defs, pass_web::execute): Likewise.
3045         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
3046         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
3048 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
3050         * lra-assign.c (assign_by_spills): Add code to assign vector regs
3051         to inheritance pseudos.
3052         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
3054 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
3056         PR target/61415
3057         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
3058         (BU_MISC_2): Rename to ...
3059         (BU_LDBL128_2): ... this.
3060         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
3061         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
3062         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
3063         RS6000_BTM_LDBL128.
3064         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
3065         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
3066         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
3067         (unpacktf_1): Likewise.
3068         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
3069         (__builtin_longdouble_dw1): Likewise.
3070         * doc/sourcebuild.texi (longdouble128): Document.
3072 2014-06-13  Jeff Law  <law@redhat.com>
3074         PR rtl-optimization/61094
3075         PR rtl-optimization/61446
3076         * ree.c (combine_reaching_defs): Get the mode for the copy from
3077         the extension insn rather than the defining insn.
3079 2014-06-13  Dehao Chen  <dehao@google.com>
3081         * dwarf2out.c (add_linkage_name): Emit more linkage name.
3083 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
3085         * doc/install.texi (--enable-linker-plugin-configure-flags)
3086         (--enable-linker-plugin-flags): Document new flags.
3088 2014-06-13  Martin Jambor  <mjambor@suse.cz>
3090         PR ipa/61186
3091         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
3092         cache_token if returning early.
3094 2014-06-13  Nick Clifton  <nickc@redhat.com>
3096         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
3097         requested alignment is active.
3098         (LABEL_ALIGN): Likewise.
3099         (LOOP_ALIGN): Likewise.
3101 2014-06-13  Richard Biener  <rguenther@suse.de>
3103         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3104         Rewrite to propagate the VN result into all uses where
3105         possible and to remove stmts becoming dead because of that.
3106         (eliminate): Generalize stmt removal handling, remove in
3107         reverse dominator order to support proper debug stmt
3108         generation.  Update stmts before removing stmts.
3109         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
3111 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3113         PR tree-optimization/61375
3114         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
3115         symbolic number cannot be represented in an uint64_t.
3116         (find_bswap_or_nop_1): Likewise.
3118 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
3120         * symtab.c (symtab_node::reset_section): New method.
3121         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
3122         for localization.
3123         * cgraph.h (reset_section): Declare.
3124         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
3125         do not consider comdat locals.
3126         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
3127         for new symbol.
3128         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
3129         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
3130         reset sections of symbols dragged out of the comdats.
3131         (function_and_variable_visibility): Reset sections of
3132         localized symbols.
3134 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
3136         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
3137         to use symtab and decl_binds_to_current_def_p
3138         * tree-vectorizer.c (increase_alignment): Increase alignment
3139         of alias target, too.
3141 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
3143         PR middle-end/61486
3144         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
3145         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
3146         if outer combined construct is distribute.
3147         (gimplify_omp_for): For OMP_DISTRIBUTE set
3148         gimplify_omp_ctxp->distribute.
3149         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
3150         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
3151         mapping into decl map.
3153 2014-06-12  Jason Merrill  <jason@redhat.com>
3155         * common.opt (fabi-version): Change default to 0.
3157 2014-06-12  Jason Merrill  <jason@redhat.com>
3159         * toplev.c (process_options): Reject -fabi-version=1.
3161 2014-06-12  Jeff Law  <law@redhat.com>
3163         PR tree-optimization/61009
3164         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
3165         value when we stop processing a block due to problematic PHIs.
3167 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
3169         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
3170         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
3171         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
3172         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
3173         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
3174         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
3175         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
3176         are not in the spec.
3178 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
3180         PR target/59843
3181         * config/aarch64/aarch64-modes.def: Add V1DFmode.
3182         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
3183         Support V1DFmode.
3185 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3187         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
3189 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
3191         PR target/61443
3192         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
3193         loading from address spaces.
3195 2014-06-12  Martin Liska  <mliska@suse.cz>
3197         PR ipa/61462
3198         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
3199         statement is reachable.
3201 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
3203         * symtab.c (section_hash): New hash.
3204         (symtab_unregister_node): Clear section before freeing.
3205         (hash_section_hash_entry): New haser.
3206         (eq_sections): New function.
3207         (symtab_node::set_section_for_node): New method.
3208         (set_section_1): Update.
3209         (symtab_node::set_section): Take string instead of tree as parameter.
3210         (symtab_resolve_alias): Update.
3211         * cgraph.h (section_hash_entry_d): New structure.
3212         (section_hash_entry): New typedef.
3213         (cgraph_node): Change comdat_group_ to x_comdat_group,
3214         change section_ to x_section and turn into section_hash_entry;
3215         update accestors; put set_section_for_node offline.
3216         * tree.c (decl_section_name): Turn into string.
3217         (set_decl_section_name): Change parameter to be string.
3218         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
3219         * sdbout.c (sdbout_one_type): Update.
3220         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
3221         * varasm.c (IN_NAMED_SECTION, get_named_section,
3222         resolve_unique_section, hot_function_section, get_named_text_section,
3223         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
3224         make_decl_rtl, default_unique_section): Update.
3225         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
3226         (c6x_elf_unique_section): Update.
3227         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
3228         * config/pa/pa.c (pa_function_section): Update.
3229         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
3230         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
3231         * config/arc/arc.c (arc_in_small_data_p): Update.
3232         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
3233         * config/mcore/mcore.c (mcore_unique_section): Update.
3234         * config/mips/mips.c (mips16_build_function_stub): Update.
3235         (mips16_build_call_stub): Update.
3236         (mips_function_rodata_section): Update.
3237         (mips_in_small_data_p): Update.
3238         * config/score/score.c (score_in_small_data_p): Update.
3239         * config/rx/rx.c (rx_in_small_data): Update.
3240         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
3241         (rs6000_xcoff_asm_named_section): Update.
3242         (rs6000_xcoff_unique_section): Update.
3243         * config/frv/frv.c (frv_string_begins_with): Update.
3244         (frv_in_small_data_p): Update.
3245         * config/v850/v850.c (v850_encode_data_area): Update.
3246         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
3247         (bfin_handle_l1_data_attribute): Update.
3248         (bfin_handle_l2_attribute): Update.
3249         * config/mep/mep.c (mep_unique_section): Update.
3250         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
3251         Update.
3252         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
3253         (h8300_handle_tiny_data_attribute): Update.
3254         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
3255         (m32r_in_small_data_p): Update.
3256         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
3257         * config/i386/i386.c (ix86_in_large_data_p): Update.
3258         * config/i386/winnt.c (i386_pe_unique_section): Update.
3259         * config/darwin.c (darwin_function_section): Update.
3260         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
3261         * tree-emutls.c (get_emutls_init_templ_addr): Update.
3262         (new_emutls_decl): Update.
3263         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
3264         input_varpool_node): Update.
3265         (ead_string_cst): Turn to ...
3266         (read_string): ... this one.
3267         * dwarf2out.c (secname_for_decl): Update.
3268         * asan.c (asan_protect_global): Update.
3270 2014-06-11  DJ Delorie  <dj@redhat.com>
3272         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
3273         cache lines.
3274         * config/rx/rx.c (rx_option_override): Likewise.
3275         (rx_align_for_label): Likewise.
3277         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
3279 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
3281         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
3282         prototype.
3284 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
3286         * common.md: New file.
3287         * doc/md.texi: Update description of generic, machine-independent
3288         constraints.
3289         * config/s390/constraints.md (e): Delete.
3290         * Makefile.in (md_file): Include common.md.
3291         * config/m32c/t-m32c (md_file): Likewise.
3292         * genpreds.c (general_mem): New array.
3293         (generic_constraint_letters): Remove constraints now defined by
3294         common.md.
3295         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
3296         Allow the first character to be '<' or '>' as well.
3297         * genoutput.c (general_mem): New array.
3298         (indep_constraints): Remove constraints now defined by common.md.
3299         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
3300         Remove special handling of 'm'.
3301         * ira-costs.c (record_reg_classes): Remove special handling of
3302         constraints now defined by common.md.
3303         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
3304         * ira-lives.c (single_reg_class): Likewise.
3305         (ira_implicitly_set_insn_hard_regs): Likewise.
3306         * lra-constraints.c (reg_class_from_constraints): Likewise.
3307         (process_alt_operands, process_address, curr_insn_transform): Likewise.
3308         * postreload.c (reload_cse_simplify_operands): Likewise.
3309         * reload.c (push_secondary_reload, scratch_reload_class)
3310         (find_reloads, alternative_allows_const_pool_ref): Likewise.
3311         * reload1.c (maybe_fix_stack_asms): Likewise.
3312         * targhooks.c (default_secondary_reload): Likewise.
3313         * stmt.c (parse_output_constraint): Likewise.
3314         * recog.c (preprocess_constraints): Likewise.
3315         (constrain_operands, peep2_find_free_register): Likewise.
3316         (asm_operand_ok): Likewise, but add a comment saying why 'o'
3317         must be handled specially.
3319 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
3321         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
3322         * genpreds.c (have_const_dbl_constraints): Delete.
3323         (add_constraint): Don't set it.
3324         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
3325         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
3326         constraints using the lookup_constraint logic.
3327         * ira-lives.c (single_reg_class): Likewise.
3328         * ira.c (ira_setup_alts): Likewise.
3329         * lra-constraints.c (process_alt_operands): Likewise.
3330         * recog.c (asm_operand_ok, constrain_operands): Likewise.
3331         * reload.c (find_reloads): Likewise.
3333 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
3335         * genpreds.c (const_int_start, const_int_end): New variables.
3336         (choose_enum_order): Output CONST_INT constraints before memory
3337         constraints.
3338         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
3339         Add CT_CONST_INT.
3340         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
3341         * ira.c (ira_setup_alts): Likewise.
3342         * lra-constraints.c (process_alt_operands): Likewise.
3343         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
3344         * reload.c (find_reloads): Likewise.
3346 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
3348         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
3349         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
3350         * recog.c (preprocess_constraints): Update accordingly.
3352 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
3354         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
3355         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
3356         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
3357         * genpreds.c (print_type_tree): New function.
3358         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
3359         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
3360         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
3361         Write out enum constraint_type and get_constraint_type.
3362         * lra-constraints.c (satisfies_memory_constraint_p): Take a
3363         constraint_num rather than a constraint string.
3364         (satisfies_address_constraint_p): Likewise.
3365         (reg_class_from_constraints): Avoid old constraint macros.
3366         (process_alt_operands, process_address_1): Likewise.
3367         (curr_insn_transform): Likewise.
3368         * ira-costs.c (record_reg_classes): Likewise.
3369         (record_operand_costs): Likewise.
3370         * ira-lives.c (single_reg_class): Likewise.
3371         (ira_implicitly_set_insn_hard_regs): Likewise.
3372         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
3373         * postreload.c (reload_cse_simplify_operands): Likewise.
3374         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
3375         (constrain_operands, peep2_find_free_register): Likewise.
3376         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
3377         (find_reloads, alternative_allows_const_pool_ref): Likewise.
3378         * reload1.c (maybe_fix_stack_asms): Likewise.
3379         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3380         * targhooks.c (default_secondary_reload): Likewise.
3381         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
3382         to EXTRA_CONSTRAINT_STR.
3383         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
3385 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
3387         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
3388         (write_constraint_satisfied_p_array): ...this new function.
3389         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
3390         an array.
3391         (write_insn_preds_c): Update accordingly.
3393 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
3395         * genpreds.c (write_lookup_constraint): Rename to...
3396         (write_lookup_constraint_1): ...this.
3397         (write_lookup_constraint_array): New function.
3398         (write_tm_preds_h): Define lookup_constraint as an inline function
3399         that uses write_lookup_constraint_array where possible.
3400         (write_insn_preds_c): Update for the changes above.
3402 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
3404         * doc/md.texi (regclass_for_constraint): Rename to...
3405         (reg_class_for_constraint): ...this.
3406         * genpreds.c (num_constraints, enum_order, register_start)
3407         (register_end, satisfied_start, memory_start, memory_end)
3408         (address_start, address_end): New variables.
3409         (add_constraint): Count the number of constraints.
3410         (choose_enum_order): New function.
3411         (write_enum_constraint_num): Iterate over enum_order.
3412         (write_regclass_for_constraint): Rename to...
3413         (write_reg_class_for_constraint_1): ...this and update output
3414         accordingly.
3415         (write_constraint_satisfied_p): Rename to...
3416         (write_constraint_satisfied_p_1): ...this and update output
3417         accordingly.  Do nothing if all extra constraints are register
3418         constraints.
3419         (write_insn_extra_memory_constraint): Delete.
3420         (write_insn_extra_address_constraint): Delete.
3421         (write_range_function): New function.
3422         (write_tm_preds_h): Define constraint_satisfied_p and
3423         reg_class_for_constraint as inline functions that do a range check
3424         before calling the out-of-line function.  Use write_range_function
3425         to implement insn_extra_{register,memory,address}_constraint,
3426         the first of which is new.
3427         (write_insn_preds_c): Update after above changes to write_* functions.
3428         (main): Call choose_enum_order.
3430 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3432         PR tree-optimization/61306
3433         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
3434         expression instead of its size.
3435         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
3436         false to prevent optimization when the result is unpredictable due to
3437         arithmetic right shift of signed type with highest byte is set.
3438         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
3439         (init_symbolic_number): Likewise.
3440         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
3441         when the result is unpredictable due to sign extension.
3443 2014-06-11  Terry Guo  <terry.guo@arm.com>
3445         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
3446         (*thumb1_addsi3): Ditto.
3447         (*thumb_subdi3): Ditto.
3448         (thumb1_subsi3_insn): Ditto.
3449         (*thumb_mulsi3): Ditto.
3450         (*thumb_mulsi3_v6): Ditto.
3451         (*thumb1_andsi3_insn): Ditto.
3452         (thumb1_bicsi3): Ditto.
3453         (*thumb1_iorsi3_insn): Ditto.
3454         (*thumb1_xorsi3_insn): Ditto.
3455         (*thumb1_ashlsi3): Ditto.
3456         (*thumb1_ashrsi3): Ditto.
3457         (*thumb1_lshrsi3): Ditto.
3458         (*thumb1_rotrsi3): Ditto.
3459         (*thumb1_negdi2): Ditto.
3460         (*thumb1_negsi2): Ditto.
3461         (*thumb1_abssi2): Ditto.
3462         (*thumb1_neg_abssi2): Ditto.
3463         (*thumb1_one_cmplsi2): Ditto.
3464         (*thumb1_zero_extendhisi2): Ditto.
3465         (*thumb1_zero_extendqisi2): Ditto.
3466         (*thumb1_zero_extendqisi2_v6): Ditto.
3467         (thumb1_extendhisi2): Ditto.
3468         (thumb1_extendqisi2): Ditto.
3469         (*thumb1_movdi_insn): Ditto.
3470         (*thumb1_movsi_insn): Ditto.
3471         (*thumb1_movhi_insn): Ditto.
3472         (thumb_movhi_clobber): Ditto.
3473         (*thumb1_movqi_insn): Ditto.
3474         (*thumb1_movhf): Ditto.
3475         (*thumb1_movsf_insn): Ditto.
3476         (*thumb_movdf_insn): Ditto.
3477         (movmem12b): Ditto.
3478         (movmem8b): Ditto.
3479         (cbranchqi4): Ditto.
3480         (cbranchsi4_insn): Ditto.
3481         (cbranchsi4_scratch): Ditto.
3482         (*negated_cbranchsi4): Ditto.
3483         (*tbit_cbranch): Ditto.
3484         (*tlobits_cbranch): Ditto.
3485         (*tstsi3_cbranch): Ditto.
3486         (*cbranchne_decr1): Ditto.
3487         (*addsi3_cbranch): Ditto.
3488         (*addsi3_cbranch_scratch): Ditto.
3489         (*thumb_cmpdi_zero): Ditto.
3490         (cstoresi_eq0_thumb1): Ditto.
3491         (cstoresi_ne0_thumb1): Ditto.
3492         (*cstoresi_eq0_thumb1_insn): Ditto.
3493         (*cstoresi_ne0_thumb1_insn): Ditto.
3494         (cstoresi_nltu_thumb1): Ditto.
3495         (cstoresi_ltu_thumb1): Ditto.
3496         (thumb1_addsi3_addgeu): Ditto.
3497         (*thumb_jump): Ditto.
3498         (*call_reg_thumb1_v5): Ditto.
3499         (*call_reg_thumb1): Ditto.
3500         (*call_value_reg_thumb1_v5): Ditto.
3501         (*call_value_reg_thumb1): Ditto.
3502         (*call_insn): Ditto.
3503         (*call_value_insn): Ditto.
3504         (thumb1_casesi_internal_pic): Ditto.
3505         (thumb1_casesi_dispatch): Ditto.
3506         (*thumb1_indirect_jump): Ditto.
3507         (prologue_thumb1_interwork): Ditto.
3508         (*epilogue_insns): Ditto.
3509         (consttable_1): Ditto.
3510         (consttable_2): Ditto.
3511         (tablejump): Ditto.
3512         (*thumb1_tablejump): Ditto.
3513         (thumb_eh_return): Ditto.
3514         (define_peephole2): Two of them are thumb1 only and got moved into
3515         new file thumb1.md.
3516         (define_split): Six of them are thumb1 only and got moved into new
3517         file thumb1.md.
3518         * config/arm/thumb1.md: New file comprised of above thumb1 only
3519         patterns.
3521 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3523         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
3524         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
3525         dependencies.
3526         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
3527         (aarch64_crc_builtin_datum): New struct.
3528         (aarch64_crc_builtin_data): New.
3529         (aarch64_init_crc32_builtins): New function.
3530         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
3531         (aarch64_crc32_expand_builtin): New.
3532         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
3533         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
3534         __ARM_FEATURE_CRC32 when appropriate.
3535         (TARGET_CRC32): Define.
3536         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
3537         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
3538         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
3539         (aarch64_<crc_variant>): New pattern.
3540         * config/aarch64/arm_acle.h: New file.
3541         * config/aarch64/iterators.md (CRC): New int iterator.
3542         (crc_variant, crc_mode): New int attributes.
3543         * doc/aarch64-acle-intrinsics.texi: New file.
3544         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
3545         Include aarch64-acle-intrinsics.texi.
3547 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
3549         * tree-vect-data-refs.c (vect_grouped_store_supported): New
3550         check for stores group of length 3.
3551         (vect_permute_store_chain): New permutations for stores group of
3552         length 3.
3553         * tree-vect-stmts.c (vect_model_store_cost): Change cost
3554         of vec_perm_shuffle for the new permutations.
3556 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
3558         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
3559         table rewriting temporarily on targets not supporting ONE_ONLY.
3561 2014-06-11  Richard Biener  <rguenther@suse.de>
3563         PR middle-end/61437
3564         Revert
3565         2014-06-04  Richard Biener  <rguenther@suse.de>
3567         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
3568         TREE_PUBLIC and DECL_EXTERNAL decls.
3570 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
3572         * varasm.c (set_implicit_section): New function.
3573         (resolve_unique_section): Use it to set implicit section
3574         for aliases, too.
3575         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
3576         (default_function_section): Likewise.
3577         (decl_binds_to_current_def_p): Constify argument.
3578         * varasm.h (decl_binds_to_current_def_p): Update prototype.
3579         * asan.c (asan_protect_global): Use
3580         symtab_get_node (decl)->implicit_section.
3581         * symtab.c (dump_symtab_base): Dump implicit sections.
3582         (verify_symtab_base): Verify sanity of sectoins and comdats.
3583         (symtab_resolve_alias): Alias share the section of its target.
3584         (set_section_1): New function.
3585         (symtab_node::set_section): Move here, recurse to aliases.
3586         (verify_symtab): Check for duplicated symtab lists.
3587         * tree-core.h (implicit_section_name_p): Remove.
3588         * tree-vect-data-refs.c: Include varasm.h.
3589         (vect_can_force_dr_alignment_p): Fix conditional on when
3590         decl bints to current definition; use
3591         symtab_get_node (decl)->implicit_section.
3592         * cgraph.c (cgraph_make_node_local_1): Fix section set.
3593         * cgraph.h (struct symtab_node): Add implicit_section.
3594         (set_section): Rename to ...
3595         (set_section_for_node): ... this one.
3596         (set_section): Declare.
3597         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
3598         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3599         input_overwrite_node, input_varpool_node): Stream implicit_section.
3600         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
3601         removal; it will fail in LTO.
3603 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3605         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
3606         Change second alternative type to f_mcr.
3607         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
3608         and 12th alternatives' types to f_mcr and f_mrc.
3609         (*movdi_aarch64): Same for 12th and 13th alternatives.
3610         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
3611         (aarch64_movtilow_tilow): Change type to fmov.
3613 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
3615         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
3616         (aarch64_save_or_restore_callee_save_registers): Fix layout.
3618 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3620         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
3621         New expander.
3622         (aarch64_sqrdmulh_lane<mode>): Likewise.
3623         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
3624         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
3625         (aarch64_sqdmulh_laneq<mode>): New expander.
3626         (aarch64_sqrdmulh_laneq<mode>): Likewise.
3627         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
3628         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
3629         (aarch64_sqdmulh_lane<mode>): New expander.
3630         (aarch64_sqrdmulh_lane<mode>): Likewise.
3631         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
3632         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
3633         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
3634         (aarch64_sqdmlal_laneq<mode>): Likewise.
3635         (aarch64_sqdmlsl_lane<mode>): Likewise.
3636         (aarch64_sqdmlsl_laneq<mode>): Likewise.
3637         (aarch64_sqdmlal2_lane<mode>): Likewise.
3638         (aarch64_sqdmlal2_laneq<mode>): Likewise.
3639         (aarch64_sqdmlsl2_lane<mode>): Likewise.
3640         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
3641         (aarch64_sqdmull_lane<mode>): Likewise.
3642         (aarch64_sqdmull_laneq<mode>): Likewise.
3643         (aarch64_sqdmull2_lane<mode>): Likewise.
3644         (aarch64_sqdmull2_laneq<mode>): Likewise.
3646 2014-06-10  Richard Biener  <rguenther@suse.de>
3648         PR tree-optimization/61438
3649         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
3650         (eliminate_dom_walker::before_dom_children): Only try to inhibit
3651         insertion of IVs if running PRE.
3652         (eliminate): Adjust.
3653         (pass_pre::execute): Likewise.
3654         (pass_fre::execute): Likewise.
3656 2014-06-10  Richard Biener  <rguenther@suse.de>
3658         PR middle-end/61456
3659         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
3660         Do not use the main variant for the type comparison.
3661         (ncr_compar): Likewise.
3662         (nonoverlapping_component_refs_p): Likewise.
3664 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3666         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
3667         REG_CFA_RESTORE mode.
3669 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
3671         * config/i386/i386.c (expand_vec_perm_pblendv): New.
3672         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
3673         expand_vec_perm_pblendv.
3675 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3677         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
3678         available.
3679         Simplify description of __crc32d and __crc32cd intrinsics.
3680         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
3681         availability.
3683 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3685         PR lto/61334
3686         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
3687         * config.in: Regenerate.
3688         * configure: Likewise.
3690 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
3692         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
3693         and public vars.
3694         (intersect_static_var_sets): Remove.
3695         (propagate): Do not prune local statics.
3697 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
3699         PR fortran/60928
3700         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
3701         Set lastprivate_firstprivate even if omp_private_outer_ref
3702         langhook returns true.
3703         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
3704         langhook, call unshare_expr on new_var and call
3705         build_outer_var_ref to get the last argument.
3707 2014-06-10  Marek Polacek  <polacek@redhat.com>
3709         PR c/60988
3710         * doc/extend.texi: Add cindex for transparent_union.
3712 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3714         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
3715         init_symbolic_number ().
3717 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
3719         PR middle-end/61141
3720         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
3721         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
3722         (verify_rtl_sharing): Likewise.
3724 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
3726         PR c++/54442
3727         * tree.c (build_qualified_type): Use a canonical type for
3728         TYPE_CANONICAL.
3730 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3732         * config/arm/arm-modes.def: Remove XFmode.
3734 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
3736         PR target/61062
3737         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
3738         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
3739         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
3740         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
3741         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
3742         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
3743         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
3744         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
3745         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
3747 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
3749         * tree-core.h (tree_decl_with_vis): Remove section_name.
3751 2014-06-09  Kito Cheng  <kito@0xlab.org>
3753         * ira.c (ira): Don't call init_caller_save if LRA enabled
3754         since LRA use its own infrastructure to handle that.
3756 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
3758         * symtab.c (dump_symtab_base): Update dumping.
3759         (symtab_make_decl_local): Clear only DECL_COMDAT.
3760         * tree-vect-data-refs.c (Check that variable is static before
3761         tampering with sections.
3762         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
3763         (cgraph_create_virtual_clone): Likewise.
3764         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
3765         (decl_section_name, set_decl_section_name): New accessors.
3766         (find_decls_types_r): Do not walk section name
3767         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
3768         (decl_comdat_group, decl_comdat_group_id): Constify.
3769         (decl_section_name, set_decl_section_name): Update.
3770         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
3771         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
3772         (cgraph_make_node_local_1): Clear section and comdat group.
3773         * cgraph.h (set_comdat_group): Sanity check.
3774         (get_section, set_section): New.
3775         * ipa-comdats.c (ipa_comdats): Use get_section.
3776         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
3777         * lto-streamer-out.c: Do not follow section names.
3778         * c-family/c-common.c (handle_section_attribute): Update.
3779         * lto-cgraph.c (lto_output_node): Output section.
3780         (lto_output_varpool_node): Likewise.
3781         (read_comdat_group): Rename to ...
3782         (read_identifier): ... this one.
3783         (read_string_cst): New function.
3784         (input_node, input_varpool_node): Input section names.
3785         * tree-emutls.c (get_emutls_init_templ_addr): Update.
3786         (new_emutls_decl): Update.
3787         (secname_for_decl): Check section names only of static vars.
3788         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
3789         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
3790         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
3791         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
3792         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
3793         * config/mcore/mcore.c (mcore_unique_section): Likewise.
3794         * config/mips/mips.c (mips16_build_function_stub): Likewise.
3795         * config/v850/v850.c (v850_insert_attributes): Likewise.
3796         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
3797         Likewise.
3798         (h8300_handle_tiny_data_attribute): Likewise.
3799         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
3800         (bfin_handle_l2_attribute): Likewise.
3802 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
3804         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
3805         remove static initializer.
3807 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
3809         * varasm.c (use_blocks_for_decl_p): Check symbol table
3810         instead of alias attribute.
3811         (place_block_symbol): Recurse on aliases.
3813 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
3815         * ipa-visibility.c: Include varasm.h
3816         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
3818 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
3820         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
3821         outputting aliases.
3823 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
3825         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
3826         from test_insn into GGC space escape via SET_SRC.
3828 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
3830         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
3831         call statement, if any.
3832         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
3833         statements, if any.  Tidy up.
3835 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
3837         PR target/61431
3838         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
3839         iterators, VSX_D that handles 64-bit types, and VSX_LE that
3840         handles swapping the two 64-bit double words on little endian
3841         systems.  Include V1TImode and optionally TImode in VSX_LE so that
3842         these types are properly swapped.  Change all of the insns and
3843         splits that do the 64-bit swaps to use VSX_LE.
3844         (vsx_le_perm_load_<mode>): Likewise.
3845         (vsx_le_perm_store_<mode>): Likewise.
3846         (splitters for little endian memory operations): Likewise.
3847         (vsx_xxpermdi2_le_<mode>): Likewise.
3848         (vsx_lxvd2x2_le_<mode>): Likewise.
3849         (vsx_stxvd2x2_le_<mode>): Likewise.
3851 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
3853         PR target/61423
3854         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
3855         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
3856         and corresponding splitters.  Zero extend general register
3857         or memory input operand to XMM temporary.  Enable for
3858         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
3859         (floatunssi<mode>2): Update expander predicate.
3861 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
3863         PR rtl-optimization/61325
3864         * lra-constraints.c (process_address_1): Check scale equal to one
3865         to prevent transformation: base + scale * index => base + new_reg.
3867 2014-06-06  Richard Biener  <rguenther@suse.de>
3869         PR tree-optimization/59299
3870         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
3871         a def operand.
3872         (nearest_common_dominator_of_uses): Likewise.
3873         (statement_sink_location): Adjust.  Support sinking loads.
3875 2014-06-06  Martin Jambor  <mjambor@suse.cz>
3877         * ipa-prop.c (get_place_in_agg_contents_list): New function.
3878         (build_agg_jump_func_from_list): Likewise.
3879         (determine_known_aggregate_parts): Renamed to
3880         determine_locally_known_aggregate_parts.  Moved some functionality
3881         to the two functions above, removed bound checks.
3883 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
3885         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
3886         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
3887         (aarch64_progress_pointer): Likewise.
3888         (aarch64_copy_one_part_and_move_pointers): Likewise.
3889         (aarch64_expand_movmen): Likewise.
3890         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
3891         * config/aarch64/aarch64.md (movmem<mode>): New.
3893 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
3895         * targhooks.c (default_add_stmt_cost): Call target specific
3896         hook instead of default one.
3898 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3900         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
3901         endianness instead of host endianness.
3902         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
3903         comments.
3905 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
3907         PR debug/53927
3908         * function.c (instantiate_decls): Process the saved static chain.
3909         (expand_function_start): If not optimizing, save the static chain
3910         onto the stack.
3911         * tree-nested.c (convert_all_function_calls): Always create the static
3912         chain for nested functions if not optimizing.
3914 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
3916         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
3918 2014-06-06  Richard Biener  <rguenther@suse.de>
3920         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
3921         (construct_init_block): Likewise.
3922         (construct_exit_block): Likewise.
3923         (pass_expand::execute): Likewise.
3924         * graphite.c (graphite_transforms): Replace check for current_loops
3925         with a check for > 1 loops.
3926         (pass_graphite_transforms::execute): Adjust.
3927         * ipa-split.c (split_function): Remove check for current_loops.
3928         * omp-low.c (expand_parallel_call): Likewise.
3929         (expand_omp_for_init_counts): Likewise.
3930         (extract_omp_for_update_vars): Likewise.
3931         (expand_omp_for_generic): Likewise.
3932         (expand_omp_sections): Likewise.
3933         (expand_omp_target): Likewise.
3934         * tracer.c (tail_duplicate): Likewise.
3935         (pass_tracer::execute): Likewise.
3936         * trans-mem.c (expand_transaction): Likewise.
3937         * tree-complex.c (expand_complex_div_wide): Likewise.
3938         * tree-eh.c (lower_resx): Likewise.
3939         (cleanup_empty_eh_merge_phis): Likewise.
3940         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
3941         current_loops with a check for > 1 loops.
3942         (pass_predcom::execute): Adjust.
3943         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
3944         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
3945         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
3946         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
3947         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
3948         * tree-switch-conversion.c (process_switch): Likewise.
3949         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
3950         * tree-vrp.c (vrp_visit_phi_node): Likewise.
3951         (execute_vrp): Likewise.
3952         * ubsan.c (ubsan_expand_null_ifn): Likewise.
3954 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
3956         * rtl.h (insn_location): Declare.
3957         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
3958         with UNKNOWN_LOCATION.
3959         * emit-rtl.c (insn_location): New function.
3960         * final.c (notice_source_line): Check that the instruction has a
3961         location before retrieving it and use insn_location.
3962         * modulo-sched.c (loop_single_full_bb_p): Likewise.
3963         * print-rtl.c (print_rtx): Likewise.
3965 2014-06-06  Richard Biener  <rguenther@suse.de>
3967         * passes.def: Move 2nd VRP pass before phi-only-cprop.
3969 2014-06-06  Christian Bruel  <christian.bruel@st.com>
3971         PR tree-optimization/43934
3972         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
3973         cost.
3975 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
3977         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
3978         return NO_REGS for extra address and memory constraints.  Handle
3979         operands that match (or are equivalent to something that matches)
3980         extra constant constraints.  Ignore other non-register operands.
3982 2014-06-06  Alan Modra  <amodra@gmail.com>
3984         PR target/61300
3985         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
3986         * doc/tm.texi: Regenerate.
3987         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
3988         Use throughout in place of REG_PARM_STACK_SPACE.
3989         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
3990         "incoming" param.  Pass to rs6000_function_parms_need_stack.
3991         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
3992         prototype_p when incoming.  Use function decl when incoming
3993         to handle K&R style functions.
3994         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
3995         (INCOMING_REG_PARM_STACK_SPACE): Define.
3997 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3999         PR target/52472
4000         * cfgexpand.c (expand_debug_expr): Use address space of nested
4001         TREE_TYPE for ADDR_EXPR and MEM_REF.
4003 2014-06-05  Jeff Law  <law@redhat.com>
4005         PR tree-optimization/61289
4006         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
4007         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
4008         looking for those which match LHS.  All callers changed.
4009         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
4010         parameters and code which manipulated them.  All callers changed.
4011         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
4012         and DST_MAP parameters.  Simplify invalidation code by just calling
4013         invalidate_equivalences.  All callers changed.
4014         (thread_across_edge): Simplify now that we don't need to maintain
4015         the map of equivalences to invalidate.
4017 2014-06-05  Kai Tietz  <ktietz@redhat.com>
4018             Richard Henderson  <rth@redhat.com>
4020         PR target/46219
4021         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
4022         checking for !TARGET_X32.
4023         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
4024         (sibcall_intern): New define_insn, plus required peepholes.
4025         (sibcall_pop_intern): Likewise.
4026         (sibcall_value_intern): Likewise.
4027         (sibcall_value_pop_intern): Likewise.
4029 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
4031         * tree-inline.c (tree_function_versioning): Check DF info existence
4032         before accessing it.
4034 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4036         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
4037         frame_size.
4038         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
4039         aarch64_frame hard_fp_offset and frame_size.
4040         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
4041         frame_size; remove original_frame_size.
4042         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
4043         (aarch64_initial_elimination_offset): Remove frame_size and
4044         offset.  Use aarch64_frame frame_size.
4046 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4047             Jiong Wang  <jiong.wang@arm.com>
4048             Renlin  <renlin.li@arm.com>
4050         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
4051         initialization of R30 offset.  Update offset.  Iterate core
4052         regisers upto X30.  Remove X29, X30 specific code.
4054 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4055             Jiong Wang  <jiong.wang@arm.com>
4057         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
4058         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
4059         (aarch64_register_saved_on_entry): Adjust test.
4061 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4063         * config/aarch64/aarch64.h (machine_function): Move
4064         saved_varargs_size from here...
4065         (aarch64_frame): ... to here.
4067         * config/aarch64/aarch64.c (aarch64_expand_prologue)
4068         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
4069         (aarch64_initial_elimination_offset)
4070         (aarch64_setup_incoming_varargs): Adjust location of
4071         saved_varargs_size.
4073 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4075         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
4076         layout comment.
4078 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
4079             Prachi Godbole  <Prachi.Godbole@imgtec.com>
4081         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
4082         mips32r5 entry to use PROCESSOR_P5600.
4083         * config/mips/mips-tables.opt: Regenerate.
4084         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
4085         * config/mips/mips.c (mips_fmadd_bypass): New function.
4086         (mips_rtx_cost_data): Add costs for p5600.
4087         (mips_issue_rate): Add support for p5600.
4088         (mips_multipass_dfa_lookahead): Likewise.
4089         * config/mips/mips.h (TUNE_P5600): New define.
4090         (TUNE_MACC_CHAINS): Add TUNE_P5600.
4091         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
4092         * config/mips/mips.md: Include p5600.md.
4093         (processor): Add p5600.
4094         * config/mips/p5600.md: New file.
4096 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
4098         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
4099         * config/i386/predicates.md (palignr_operand): New.
4100         Indicates if permutation is suitable for palignr instruction.
4102 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
4104         PR tree-optimization/61319
4105         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
4106         stmt belongs to loop.
4108 2014-06-05  Richard Biener  <rguenther@suse.de>
4110         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
4111         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
4112         (lookup_tmp_var): Adjust.
4113         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
4115 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4117         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
4119 2014-06-05  Marek Polacek  <polacek@redhat.com>
4121         PR c/49706
4122         * doc/invoke.texi: Document -Wlogical-not-parentheses.
4124 2014-06-04  Tom de Vries  <tom@codesourcery.com>
4126         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
4127         CONST_INT.
4129 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
4131         PR tree-optimization/61385
4132         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
4134 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
4136         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
4137         changed to use fatal_error.
4138         (main): Ensure lto_wrapper_cleanup is run atexit.
4140 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
4142         * lra-constraints.c (valid_address_p): Move earlier in file.
4143         (address_eliminator): New structure.
4144         (satisfies_memory_constraint_p): New function.
4145         (satisfies_address_constraint_p): Likewise.
4146         (process_alt_operands, process_address, curr_insn_transform): Use them.
4148 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
4150         * lra-int.h (lra_static_insn_data): Make operand_alternative a
4151         const pointer.
4152         (target_lra_int, default_target_lra_int, this_target_lra_int)
4153         (op_alt_data): Delete.
4154         * lra.h (lra_init): Delete.
4155         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
4156         (init_insn_code_data_once): Remove op_alt_data handling.
4157         (finish_insn_code_data_once): Likewise.
4158         (init_op_alt_data): Delete.
4159         (get_static_insn_data): Initialize operand_alternative to null.
4160         (free_insn_recog_data): Cast operand_alternative before freeing it.
4161         (setup_operand_alternative): Take the operand_alternative as
4162         parameter and assume it isn't already cached in the static
4163         insn data.
4164         (lra_set_insn_recog_data): Update accordingly.
4165         (lra_init): Delete.
4166         * ira.c (ira_init): Don't call lra_init.
4167         * target-globals.h (this_target_lra_int): Declare.
4168         (target_globals): Remove lra_int.
4169         (restore_target_globals): Update accordingly.
4170         * target-globals.c: Don't include lra-int.h.
4171         (default_target_globals, save_target_globals): Remove lra_int.
4173 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
4175         * recog.h (operand_alternative): Convert reg_class, reject,
4176         matched and matches into bitfields.
4177         (preprocess_constraints): New overload.
4178         (preprocess_insn_constraints): New function.
4179         (preprocess_constraints): Take the insn as parameter.
4180         (recog_op_alt): Change into a pointer.
4181         (target_recog): Add x_op_alt.
4182         * recog.c (asm_op_alt): New variable.
4183         (recog_op_alt): Change into a pointer.
4184         (preprocess_constraints): New overload, replacing the old function
4185         definition with one that doesn't use global state.
4186         (preprocess_insn_constraints): New function.
4187         (preprocess_constraints): Use them.  Take the insn as parameter.
4188         Use asm_op_alt for asms.
4189         (recog_init): Free existing x_op_alt entries.
4190         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
4191         pointer const.
4192         (make_early_clobber_and_input_conflicts): Likewise.
4193         (process_bb_node_lives): Pass the insn to process_constraints.
4194         * reg-stack.c (check_asm_stack_operands): Likewise.
4195         (subst_asm_stack_regs): Likewise.
4196         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
4197         * regrename.c (build_def_use): Likewise.
4198         * sched-deps.c (sched_analyze_insn): Likewise.
4199         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
4200         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
4201         (note_invalid_constants): Likewise.
4202         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4203         (ix86_legitimate_combined_insn): Make operand_alternative pointer
4204         const.
4206 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
4208         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
4209         * ira-lives.c (check_and_make_def_conflict): Check for disabled
4210         alternatives.
4211         (make_early_clobber_and_input_conflicts): Likewise.
4212         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4214 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
4216         * recog.h (alternative_class): New function.
4217         (which_op_alt): Return a const recog_op_alt.
4218         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
4219         (subst_asm_stack_regs): Likewise.
4220         * config/arm/arm.c (note_invalid_constants): Likewise.
4221         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
4222         the operand_alternative; use alternative class instead.
4223         * sel-sched.c (get_reg_class): Likewise.
4224         * regrename.c (build_def_use): Likewise.
4225         (hide_operands, restore_operands, record_out_operands): Update type
4226         accordingly.
4228 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
4230         * recog.h (recog_op_alt): Convert to a flat array.
4231         (which_op_alt): New function.
4232         * recog.c (recog_op_alt): Convert to a flat array.
4233         (preprocess_constraints): Update accordingly, grouping all
4234         operands of the same alternative together, rather than the
4235         other way around.
4236         * ira-lives.c (check_and_make_def_conflict): Likewise.
4237         (make_early_clobber_and_input_conflicts): Likewise.
4238         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4239         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
4240         (subst_asm_stack_regs): Likewise.
4241         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
4242         * regrename.c (hide_operands, record_out_operands): Likewise.
4243         (build_def_use): Likewise.
4244         * sel-sched.c (get_reg_class): Likewise.
4245         * config/arm/arm.c (note_invalid_constants): Likewise.
4247 2014-06-04  Jason Merrill  <jason@redhat.com>
4249         PR c++/51253
4250         PR c++/61382
4251         * gimplify.c (gimplify_arg): Non-static.
4252         * gimplify.h: Declare it.
4254 2014-06-04  Richard Biener  <rguenther@suse.de>
4256         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
4257         TREE_PUBLIC and DECL_EXTERNAL decls.
4259 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
4261         * regcprop.c (copyprop_hardreg_forward_1): Account for
4262         HARD_REGNO_CALL_PART_CLOBBERED.
4264 2014-06-04  Richard Biener  <rguenther@suse.de>
4266         * configure.ac: Check whether the underlying type of int64_t
4267         is long or long long.
4268         * configure: Regenerate.
4269         * config.in: Likewise.
4270         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
4271         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
4273 2014-06-04  Richard Biener  <rguenther@suse.de>
4275         PR tree-optimization/60098
4276         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
4277         we hit a kill.
4278         (dse_optimize_stmt): Simplify, now that we found a kill
4279         earlier.
4281 2014-06-04  Richard Biener  <rguenther@suse.de>
4283         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
4284         of accesses with non-invariant address.
4286 2014-06-04  Martin Liska  <mliska@suse.cz>
4288         * cgraph.h (cgraph_make_wrapper): New function introduced.
4289         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
4290         * ipa-inline.h (inline_analyze_function): The function is global.
4291         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
4293 2014-06-04  Martin Liska  <mliska@suse.cz>
4295         * tree.h (private_lookup_attribute_starting): New function.
4296         (lookup_attribute_starting): Likewise.
4297         * tree.c (private_lookup_attribute_starting): Likewise.
4299 2014-06-04  Martin Liska  <mliska@suse.cz>
4301         * cgraph.h (expand_thunk): New argument added.
4302         (address_taken_from_non_vtable_p): New global function.
4303         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
4304         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
4305         * cgraphunit.c (analyze_function): Likewise.
4306         (assemble_thunks_and_aliases): Argument added to call.
4307         (expand_thunk): New argument forces to produce GIMPLE thunk.
4309 2014-06-04  Martin Liska  <mliska@suse.cz>
4311         * coverage.h (coverage_compute_cfg_checksum): Argument added.
4312         * coverage.c (coverage_compute_cfg_checksum): Likewise.
4313         * profile.c (branch_prob): Likewise.
4315 2014-06-04  Martin Jambor  <mjambor@suse.cz>
4317         PR ipa/61340
4318         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
4319         handler for switch on an ipa_ref_use enum.
4320         * ipa-reference.c (analyze_function): Likewise.
4322 2014-06-04  Kai Tietz  <ktietz@redhat.com>
4324         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
4325         from old call-instruction.
4327 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
4329         * config/aarch64/aarch64.c (aarch64_classify_address)
4330         (aarch64_legitimize_reload_address): Support full addressing modes
4331         for vector modes.
4332         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
4333         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
4335 2014-06-03  Andrew Pinski  <apinski@cavium.com>
4337         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
4338         for OP0.
4340 2014-06-03  Andrew Pinski  <apinski@cavium.com>
4342         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
4343         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
4345 2014-06-03  Kai Tietz  <ktietz@redhat.com>
4347         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
4348         for 64-bit ms-abi.
4350 2014-06-03  Dehao Chen  <dehao@google.com>
4352         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
4353         the same loop.
4355 2014-06-03  Marek Polacek  <polacek@redhat.com>
4357         PR c/60439
4358         * doc/invoke.texi: Document -Wswitch-bool.
4359         * function.c (stack_protect_epilogue): Cast controlling expression of
4360         the switch to int.
4361         * gengtype.c (walk_type): Generate switch expression with its
4362         controlling expression cast to int.
4364 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
4366         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
4367         and attiny841.
4368         * config/avr/avr-tables.opt: Regenerate.
4369         * config/avr/t-multilib: Regenerate.
4370         * doc/avr-mmcu.texi: Regenerate.
4372 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
4373             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
4375         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
4376         (ata6617c, ata664251): Add new avr35 devices.
4377         (ata6612c): Add new avr4 device.
4378         (ata6613c, ata6614q): Add new avr5 devices.
4379         * config/avr/avr-tables.opt: Regenerate.
4380         * config/avr/t-multilib: Regenerate.
4381         * doc/avr-mmcu.texi: Regenerate.
4383 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
4385         * gcc/config/aarch64/aarch64-builtins.c
4386         (aarch64_types_binop_ssu_qualifiers): New static data.
4387         (TYPES_BINOP_SSU): Define.
4388         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
4389         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
4390         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
4391         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
4392         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
4393         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
4394         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
4395         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
4396         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
4397         suffix to builtin function name, remove cast.
4398         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
4399         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
4400         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
4402 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
4404         * gcc/config/aarch64/aarch64-builtins.c
4405         (aarch64_types_binop_uus_qualifiers,
4406         aarch64_types_shift_to_unsigned_qualifiers,
4407         aarch64_types_unsigned_shiftacc_qualifiers): Define.
4408         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
4409         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
4410         sqshlu_n, uqshl_n): Update qualifiers.
4411         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
4412         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
4413         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
4414         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
4415         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
4416         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
4417         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
4418         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
4419         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
4420         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
4421         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
4422         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
4423         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
4424         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
4425         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
4426         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
4427         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
4428         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
4429         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
4430         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
4431         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
4432         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
4433         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
4434         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
4435         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
4436         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
4437         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
4439 2014-06-03  Teresa Johnson  <tejohnson@google.com>
4441         * tree-sra.c (modify_function): Record caller nodes after rebuild.
4443 2014-06-02  Jason Merrill  <jason@redhat.com>
4445         PR c++/61020
4446         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
4448 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
4450         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
4451         location == 0.
4453 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
4455         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
4456         New pattern.
4457         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
4458         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
4459         * config/aarch64/iterators.md (REVERSE): New iterator.
4460         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
4461         (rev_op): New int_attribute.
4462         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
4463         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
4464         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
4465         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
4466         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
4467         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
4468         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
4469         Replace temporary __asm__ with __builtin_shuffle.
4471 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
4473         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
4474         mips64r5.
4475         * config/mips/mips-tables.opt: Regenerate.
4476         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
4477         to use mips_isa_rev rather than ISA_MIPS32R2.
4478         * config/mips/mips.h (ISA_MIPS32R3): New define.
4479         (ISA_MIPS32R5): New define.
4480         (ISA_MIPS64R3): New define.
4481         (ISA_MIPS64R5): New define.
4482         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
4483         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
4484         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
4485         and mips64r5.
4486         (MIPS_ISA_SYNCI_SPEC): Likewise.
4487         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
4488         (LINK_SPEC): Added mips32r3 and mips32r5.
4489         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
4490         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
4491         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
4492         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
4493         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
4494         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
4495         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
4497 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
4499         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
4500         options.
4501         * config/mips/mips.opt (mxpa): New option.
4502         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
4503         assembler.
4505 2014-06-03  Martin Jambor  <mjambor@suse.cz>
4507         PR ipa/61160
4508         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
4509         thunks.
4511 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4513         PR tree-optimization/61328
4514         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
4515         initialization from find_bswap_or_nop_1.
4516         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
4517         in source_expr2 before using the size value the function sets. Also
4518         make use of init_symbolic_number () in both the old place and
4519         find_bswap_or_nop_load () to avoid reading uninitialized memory when
4520         doing recursion in the GIMPLE_BINARY_RHS case.
4522 2014-06-03  Richard Biener  <rguenther@suse.de>
4524         PR tree-optimization/61383
4525         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
4526         stmts can't trap.
4528 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
4530         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
4531         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
4532         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
4533         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
4534         in this file.
4535         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
4536         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
4537         * system.h: ...here and make it unconditional.
4538         * target.def (conditional_register_usage): Mention
4539         define_register_constraint instead of old-style constraint macros.
4540         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
4541         * doc/tm.texi: Regenerate.
4542         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
4543         protected by !USE_MD_CONSTRAINTS.
4544         * config/frv/frv.md: Remove quote from old version of documentation.
4545         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
4546         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
4547         CONST_DOUBLE_OK_FOR_LETTER.
4548         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
4550 2014-06-02  Andrew Pinski  <apinski@cavium.com>
4552         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
4553         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
4554         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
4555         file whose name depends on -mabi= and -mbig-endian.
4556         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
4557         Handle LP64 better and handle ilp32 too.
4558         (MULTILIB_OPTIONS): Delete.
4559         (MULTILIB_DIRNAMES): Delete.
4561 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
4563         * expr.h: Remove prototypes of functions defined in builtins.c.
4564         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
4565         Remove prototypes of functions defined in builtins.c.
4566         * builtins.h: Update prototype list to include all exported functions.
4567         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
4568         no_c99_libc_has_function): Move to targhooks.c
4569         (build_string_literal, build_call_expr_loc_array,
4570         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
4571         to tree.c.
4572         (expand_builtin_object_size, fold_builtin_object_size): Make static.
4573         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
4574         no_c99_libc_has_function): Relocate from builtins.c.
4575         * tree.c: Include builtins.h.
4576         (build_call_expr_loc_array, build_call_expr_loc_vec,
4577         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
4578         from builtins.c.
4579         * fold-const.h (fold_fma): Move prototype to builtins.h.
4580         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
4581         * asan.c: Include builtins.h.
4582         * cfgexpand.c: Likewise.
4583         * convert.c: Likewise.
4584         * emit-rtl.c: Likewise.
4585         * except.c: Likewise.
4586         * expr.c: Likewise.
4587         * fold-const.c: Likewise.
4588         * gimple-fold.c: Likewise.
4589         * gimple-ssa-strength-reduction.c: Likewise.
4590         * gimplify.c: Likewise.
4591         * ipa-inline.c: Likewise.
4592         * ipa-prop.c: Likewise.
4593         * lto-streamer-out.c: Likewise.
4594         * stmt.c: Likewise.
4595         * tree-inline.c: Likewise.
4596         * tree-object-size.c: Likewise.
4597         * tree-sra.c: Likewise.
4598         * tree-ssa-ccp.c: Likewise.
4599         * tree-ssa-forwprop.c: Likewise.
4600         * tree-ssa-loop-ivcanon.c: Likewise.
4601         * tree-ssa-loop-ivopts.c: Likewise.
4602         * tree-ssa-math-opts.c: Likewise.
4603         * tree-ssa-reassoc.c: Likewise.
4604         * tree-ssa-threadedge.c: Likewise.
4605         * tree-streamer-in.c: Likewise.
4606         * tree-vect-data-refs.c: Likewise.
4607         * tree-vect-patterns.c: Likewise.
4608         * tree-vect-stmts.c: Likewise.
4609         * config/aarch64/aarch64.c: Likewise.
4610         * config/alpha/alpha.c: Likewise.
4611         * config/arc/arc.c: Likewise.
4612         * config/arm/arm.c: Likewise.
4613         * config/avr/avr.c: Likewise.
4614         * config/bfin/bfin.c: Likewise.
4615         * config/c6x/c6x.c: Likewise.
4616         * config/cr16/cr16.c: Likewise.
4617         * config/cris/cris.c: Likewise.
4618         * config/epiphany/epiphany.c: Likewise.
4619         * config/fr30/fr30.c: Likewise.
4620         * config/frv/frv.c: Likewise.
4621         * config/h8300/h8300.c: Likewise.
4622         * config/i386/i386.c: Likewise.
4623         * config/i386/winnt.c: Likewise.
4624         * config/ia64/ia64.c: Likewise.
4625         * config/iq2000/iq2000.c: Likewise.
4626         * config/lm32/lm32.c: Likewise.
4627         * config/m32c/m32c.c: Likewise.
4628         * config/m32r/m32r.c: Likewise.
4629         * config/m68k/m68k.c: Likewise.
4630         * config/mcore/mcore.c: Likewise.
4631         * config/mep/mep.c: Likewise.
4632         * config/microblaze/microblaze.c: Likewise.
4633         * config/mips/mips.c: Likewise.
4634         * config/mmix/mmix.c: Likewise.
4635         * config/mn10300/mn10300.c: Likewise.
4636         * config/moxie/moxie.c: Likewise.
4637         * config/msp430/msp430.c: Likewise.
4638         * config/nds32/nds32.c: Likewise.
4639         * config/pa/pa.c: Likewise.
4640         * config/pdp11/pdp11.c: Likewise.
4641         * config/picochip/picochip.c: Likewise.
4642         * config/rl78/rl78.c: Likewise.
4643         * config/rs6000/rs6000.c: Likewise.
4644         * config/rx/rx.c: Likewise.
4645         * config/s390/s390.c: Likewise.
4646         * config/score/score.c: Likewise.
4647         * config/sh/sh.c: Likewise.
4648         * config/sparc/sparc.c: Likewise.
4649         * config/spu/spu.c: Likewise.
4650         * config/stormy16/stormy16.c: Likewise.
4651         * config/tilegx/tilegx.c: Likewise.
4652         * config/tilepro/tilepro.c: Likewise.
4653         * config/v850/v850.c: Likewise.
4654         * config/vax/vax.c: Likewise.
4655         * config/xtensa/xtensa.c: Likewise.
4657 2014-06-02  Jeff Law  <law@redhat.com>
4659         PR rtl-optimization/61094
4660         * ree.c (combine_reaching_defs): Do not reextend an insn if it
4661         was marked as do_no_reextend.  If a copy is needed to eliminate
4662         an extension, then mark it as do_not_reextend.
4664 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4666         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
4668 2014-06-02  Richard Henderson  <rth@redhat.com>
4670         PR target/61336
4671         * config/alpha/alpha.c (print_operand_address): Allow symbolic
4672         addresses inside asms.  Use output_operand_lossage instead of
4673         gcc_unreachable.
4675 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
4677         PR target/61239
4678         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
4679         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
4681 2014-06-02  Tom de Vries  <tom@codesourcery.com>
4683         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
4684         case that x has VOIDmode.
4686 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
4688         * varasm.c (copy_constant): Delete function.
4689         (build_constant_desc): Don't call it.
4691 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4693         PR target/61154
4694         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
4695         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
4696         with immediate_operand.
4698 2014-06-02  Andreas Schwab  <schwab@suse.de>
4700         * config/ia64/ia64.c
4701         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
4702         pending_data_specs first.
4704 2014-06-02  Richard Biener  <rguenther@suse.de>
4706         PR tree-optimization/61378
4707         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
4708         valueized_anything.
4710 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
4712         * config/i386/constraints.md (Bw): Rename from 'w'.
4713         (Bz): Rename from 'z'.
4714         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
4716 2014-06-01  Kai Tietz  <ktietz@redhat.com>
4718         PR target/61377
4719         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
4720         * config/i386/i386.md (sibcall_insn_operand): Use Bs
4721         instead of m constraint.
4723 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
4725         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
4726         a separate alternative where the scratch operand 2 is marked as
4727         early clobber.
4729 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
4731         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4732         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
4733         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
4734         and __builtins_arm_get_fpscr.
4735         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
4736         __builtins_arm_get_fpscr.
4737         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
4738         __builtins_arm_ldfpscr.
4739         (arm_atomic_assign_expand_fenv): New function.
4740         * config/arm/vfp.md (set_fpscr): New pattern.
4741         (get_fpscr) : Likewise.
4742         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
4743         VUNSPEC_SET_FPSCR.
4744         * doc/extend.texi (AARCH64 Built-in Functions) : Document
4745         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
4747 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
4749         * asan.c (report_error_func): Add SLOW_P argument, use
4750         BUILT_IN_ASAN_*_N if set.
4751         (build_check_stmt): Likewise.
4752         (instrument_derefs): If T has insufficient alignment,
4753         force same handling as for odd sizes.
4755         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
4756         BUILT_IN_ASAN_REPORT_STORE_N): New.
4757         * asan.c (struct asan_mem_ref): Change access_size type to
4758         HOST_WIDE_INT.
4759         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
4760         update_mem_ref_hash_table): Likewise.
4761         (asan_mem_ref_hasher::hash): Hash in a HWI.
4762         (report_error_func): Change size_in_bytes argument to HWI.
4763         Use *_N builtins if size_in_bytes is larger than 16 or not power of
4764         two.
4765         (build_shadow_mem_access): New function.
4766         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
4767         Handle size_in_bytes not power of two or larger than 16.
4768         (instrument_derefs): Don't give up if size_in_bytes is not
4769         power of two or is larger than 16.
4771 2014-05-30  Kai Tietz  <ktietz@redhat.com>
4773         PR target/60104
4774         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
4775         for sibling-tail-calls.
4776         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
4777         to its use.
4778         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
4779         (sibcall_insn_operand): Add check for sibcall_memory_operand.
4781 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4783         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
4784         * config/avr/avr-tables.opt: Regenerate.
4785         * config/avr/t-multilib: Regenerate.
4786         * doc/avr-mmcu.texi: Regenerate.
4788 2014-05-30  Ian Lance Taylor  <iant@google.com>
4790         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
4791         target("sse").
4793 2014-05-30  Tom de Vries  <tom@codesourcery.com>
4795         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
4796         Redefine as true.
4798 2014-05-30  Tom de Vries  <tom@codesourcery.com>
4800         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
4801         * lra.c (initialize_lra_reg_info_element): Add init of
4802         actual_call_used_reg_set field.
4803         (lra): Call lra_create_live_ranges before lra_inheritance for
4804         -fuse-caller-save.
4805         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
4806         -fuse-caller-save.
4807         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
4808         instead of call_used_reg_set for -fuse-caller-save.
4809         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
4811 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4813         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
4814         to mov_imm.
4815         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
4817 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
4819         * ira.c (ira_get_dup_out_num): Check for output operands at
4820         the start of the loop.  Handle cases where an included alternative
4821         follows an excluded one.
4823 2014-05-29  Mike Stump  <mikestump@comcast.net>
4825         PR debug/61352
4826         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
4827         post ld passes when lto is used.
4829 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
4831         PR rtl-optimization/61325
4832         * lra-constraints.c (process_address): Rename to process_address_1.
4833         (process_address): New function.
4835 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
4837         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
4838         TYPES_BINOPV): New static data.
4839         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
4840         New builtin.
4841         * config/aarch64/aarch64-simd.md (aarch64_ext,
4842         aarch64_im_lane_boundsi): New patterns.
4843         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
4844         patterns for EXT.
4845         (aarch64_evpc_ext): New function.
4847         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
4849         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
4850         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
4851         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
4852         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
4853         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
4855 2014-05-29  Tom de Vries  <tom@codesourcery.com>
4857         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
4859 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
4860             Richard Sandiford  <rdsandiford@googlemail.com>
4862         * arm/iterators.md (shiftable_ops): New code iterator.
4863         (t2_binop0, arith_shift_insn): New code attributes.
4864         * arm/predicates.md (shift_nomul_operator): New predicate.
4865         * arm/arm.md (insn_enabled): Delete.
4866         (enabled): Remove insn_enabled test.
4867         (*arith_shiftsi): Delete.  Replace with ...
4868         (*<arith_shift_insn>_multsi): ... new pattern.
4869         (*<arith_shift_insn>_shiftsi): ... new pattern.
4870         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
4872 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
4873             Tom de Vries  <tom@codesourcery.com>
4875         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
4876         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
4877         clobber.
4878         (mips_split_call): Use POST_CALL_TMP_REG.
4879         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
4881 2014-05-29  Tom de Vries  <tom@codesourcery.com>
4883         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
4884         with #ifdef STACK_REGS.
4886 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
4888         * varasm.c (get_variable_section): Walk aliases.
4889         (place_block_symbol): Walk aliases.
4891 2014-05-28  Tom de Vries  <tom@codesourcery.com>
4893         Revert:
4894         2014-05-28  Tom de Vries  <tom@codesourcery.com>
4896         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
4897         * lra.c (initialize_lra_reg_info_element): Add init of
4898         actual_call_used_reg_set field.
4899         (lra): Call lra_create_live_ranges before lra_inheritance for
4900         -fuse-caller-save.
4901         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
4902         -fuse-caller-save.
4903         * lra-constraints.c (need_for_call_save_p): Use
4904         actual_call_used_reg_set instead of call_used_reg_set for
4905         -fuse-caller-save.
4906         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
4908 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4910         * doc/md.texi: Document that the % constraint character must
4911         be at the beginning of the string.
4912         * genoutput.c (validate_insn_alternatives): Check that '=',
4913         '+' and '%' only appear at the beginning of a constraint.
4914         * ira.c (commutative_constraint_p): Delete.
4915         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
4916         at the start of the string.
4917         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
4918         duplicate '='s.
4919         * config/arm/neon.md (bicdi3_neon): Likewise.
4920         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
4921         (slt_si, sltu_si): Likewise.
4922         * config/vax/vax.md (sbcdi3): Likewise.
4923         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
4924         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
4925         (mul64): Move '%' to beginning of constraint.
4926         * config/arm/arm.md (*xordi3_insn): Likewise.
4927         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
4928         (xorsi3): Likewise.
4930 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4932         * doc/md.texi: Document the restrictions on the "enabled" attribute.
4934 2014-05-28  Jason Merrill  <jason@redhat.com>
4936         PR c++/47202
4937         * cgraph.h (symtab_node::get_comdat_group_id): New.
4938         * cgraphunit.c (analyze_functions): Call it.
4939         * symtab.c (dump_symtab_node): Likewise.
4940         * tree.c (decl_comdat_group_id): New.
4941         * tree.h: Declare it.
4942         * lto-streamer-out.c (write_symbol): Use it.
4943         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
4945 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4947         PR bootstrap/PR61146
4948         * wide-int.cc: Do not include longlong.h when compiling with clang.
4950 2014-05-28  Richard Biener  <rguenther@suse.de>
4952         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
4953         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
4954         (vrp_visit_assignment_or_call): Print less vertical space.
4955         (vrp_visit_stmt): Likewise.
4956         (vrp_visit_phi_node): Likewise.  For a PHI argument with
4957         VR_VARYING range consider recording it as copy.
4959 2014-05-28  Richard Biener  <rguenther@suse.de>
4961         Revert
4962         2014-05-28  Richard Biener  <rguenther@suse.de>
4964         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
4966 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4968         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
4969         sufficiently aligned and an offset is used at the same time.
4970         (expand_expr_real_1): Likewise.
4972 2014-05-28  Richard Biener  <rguenther@suse.de>
4974         PR middle-end/61045
4975         * fold-const.c (fold_comparison): When folding
4976         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
4977         the sign of the remaining constant operand stays the same.
4979 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
4981         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
4982         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
4983         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
4984         to the assembler.
4985         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
4986         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
4987         (m32bit-doubles) Likewise.
4988         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
4989         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
4990         option for RL78.
4992 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4994         * configure.ac ($gcc_cv_ld_clearcap): New test.
4995         * configure: Regenerate.
4996         * config.in: Regenerate.
4997         * config/sol2.opt (mclear-hwcap): New option.
4998         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
4999         * config/sol2-clearcap.map: Moved here from
5000         testsuite/gcc.target/i386/clearcap.map.
5001         * config/sol2-clearcapv2.map: Move here from
5002         gcc.target/i386/clearcapv2.map.
5003         * config/t-sol2 (install): Depend on install-clearcap-map.
5004         (install-clearcap-map): New target.
5005         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
5006         -mclear-hwcap.
5008 2014-05-28  Richard Biener  <rguenther@suse.de>
5010         * hwint.h (*_HALF_WIDE_INT*): Move to ...
5011         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
5012         ... here and remove the rest.
5013         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
5015 2014-05-28  Richard Biener  <rguenther@suse.de>
5017         PR tree-optimization/61335
5018         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
5019         new range fails, drop to varying.
5021 2014-05-28  Olivier Hainque  <hainque@adacore.com>
5023         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
5024         (CPP_SPEC): Add entry for -mcpu=8548.
5025         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
5026         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
5028 2014-05-28  Tom de Vries  <tom@codesourcery.com>
5030         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
5031         * lra.c (initialize_lra_reg_info_element): Add init of
5032         actual_call_used_reg_set field.
5033         (lra): Call lra_create_live_ranges before lra_inheritance for
5034         -fuse-caller-save.
5035         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
5036         -fuse-caller-save.
5037         * lra-constraints.c (need_for_call_save_p): Use
5038         actual_call_used_reg_set instead of call_used_reg_set for
5039         -fuse-caller-save.
5040         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
5042 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
5043             Tom de Vries  <tom@codesourcery.com>
5045         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
5046         to gccoptlist.
5047         (@item -fuse-caller-save): New item.
5049 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
5050             Tom de Vries  <tom@codesourcery.com>
5052         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
5053         OPT_fuse_caller_save.
5055 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
5056             Tom de Vries  <tom@codesourcery.com>
5058         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
5059         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
5060         get_call_reg_set_usage.
5061         * resource.c (mark_set_resources, mark_target_live_regs): Use
5062         get_call_reg_set_usage.
5063         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
5064         field.
5065         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
5066         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
5067         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
5068         * ira-build.c (ira_create_allocno): Init
5069         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
5070         (create_cap_allocno, propagate_allocno_info)
5071         (propagate_some_info_from_allocno)
5072         (copy_info_to_removed_store_destinations): Handle
5073         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
5074         * ira-costs.c (ira_tune_allocno_costs): Use
5075         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
5077 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
5078             Tom de Vries  <tom@codesourcery.com>
5080         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
5081         and function_used_regs_valid fields.
5082         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
5083         find_all_hard_reg_sets.
5084         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
5085         (get_call_reg_set_usage): New function.
5086         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
5087         * regs.h (get_call_reg_set_usage): Declare.
5089 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
5091         PR libgcc/61152
5092         * config/dbx.h (License): Add Runtime Library Exception.
5093         * config/newlib-stdint.h (License): Same.
5094         * config/rtems.h (License): Same
5095         * config/initfini-array.h (License): Same
5096         * config/v850/v850.h (License): Same.
5097         * config/v850/v850-opts.h (License): Same
5098         * config/v850/rtems.h (License): Same.
5100 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
5102         PR target/61044
5103         * doc/extend.texi (Local Labels): Note that label differences are
5104         not supported for AVR.
5106 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
5107             Olivier Hainque  <hainque@adacore.com>
5109         * rtl.h (set_for_reg_notes): Declare.
5110         * emit-rtl.c (set_for_reg_notes): New function.
5111         (set_unique_reg_note): Use it.
5112         * optabs.c (add_equal_note): Likewise
5114 2014-05-27  Andrew Pinski  <apinski@cavium.com>
5116         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
5117         Use <w> for the register in assembly template.
5118         (stack_protect_test): Use the mode of operands[0] for the result.
5119         (stack_protect_test_<mode>): Use <w> for the register
5120         in assembly template.
5122 2014-05-27  DJ Delorie  <dj@redhat.com>
5124         * config/rx/rx.c (add_vector_labels): New.
5125         (rx_output_function_prologue): Call it.
5126         (rx_handle_func_attribute): Don't require empty arguments.
5127         (rx_handle_vector_attribute): New.
5128         (rx_attribute_table): Add "vector" attribute.
5129         * doc/extend.texi (interrupt, vector): Document new/changed
5130         RX-specific attributes.
5132         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
5134 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
5136         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
5137         predicate to detect a negative quotient.
5139 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
5141         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
5142         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
5143         Add X - Y CMP 0 to X CMP Y transformation.
5144         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
5146 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
5148         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
5149         before printing.
5151 2014-05-27  Steve Ellcey  <sellcey@mips.com>
5153         * config/mips/mips.c: Add include of cgraph.h.
5155 2014-05-27  Richard Biener  <rguenther@suse.de>
5157         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
5159 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
5161         PR libgcc/61152
5162         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
5163         * config/arm/arm-cores.def (License): Same.
5164         * config/arm/arm-opts.h (License): Same.
5165         * config/arm/aout.h (License): Same.
5166         * config/arm/bpabi.h (License): Same.
5167         * config/arm/elf.h (License): Same.
5168         * config/arm/linux-elf.h (License): Same.
5169         * config/arm/linux-gas.h (License): Same.
5170         * config/arm/netbsd-elf.h (License): Same.
5171         * config/arm/uclinux-eabi.h (License): Same.
5172         * config/arm/uclinux-elf.h (License): Same.
5173         * config/arm/vxworks.h (License): Same.
5175 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5177         * config/arm/neon.md (neon_bswap<mode>): New pattern.
5178         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
5179         (arm_init_neon_builtins): Handle NEON_BSWAP.
5180         Define required type nodes.
5181         (arm_expand_neon_builtin): Handle NEON_BSWAP.
5182         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
5183         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
5184         * config/arm/iterators.md (VDQHSD): New mode iterator.
5186 2014-05-27  Richard Biener  <rguenther@suse.de>
5188         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
5189         Try using literal operands when comparing value-ranges failed.
5191 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
5193         * ira.c (commutative_operand): Adjust for change to recog_data.
5194         [Missing from previous commit.]
5196 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
5198         * system.h (TEST_BIT): New macro.
5199         * recog.h (alternative_mask): New type.
5200         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
5201         (recog_data_d): Replace alternative_enabled_p array with
5202         enabled_alternatives.
5203         (target_recog): New structure.
5204         (default_target_recog, this_target_recog): Declare.
5205         (get_enabled_alternatives, recog_init): Likewise.
5206         * recog.c (default_target_recog, this_target_recog): New variables.
5207         (get_enabled_alternatives): New function.
5208         (extract_insn): Use it.
5209         (recog_init): New function.
5210         (preprocess_constraints, constrain_operands): Adjust for change to
5211         recog_data.
5212         * postreload.c (reload_cse_simplify_operands): Likewise.
5213         * reload.c (find_reloads): Likewise.
5214         * ira-costs.c (record_reg_classes): Likewise.
5215         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
5216         all alternatives after a disabled one would be skipped.
5217         (ira_implicitly_set_insn_hard_regs): Likewise.
5218         * ira.c (ira_setup_alts): Adjust for change to recog_data.
5219         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
5220         with enabled_alternatives.
5221         * lra.c (free_insn_recog_data): Update accordingly.
5222         (lra_update_insn_recog_data): Likewise.
5223         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
5224         * lra-constraints.c (process_alt_operands): Likewise.  Handle
5225         only_alternative as part of the enabled mask.
5226         * target-globals.h (this_target_recog): Declare.
5227         (target_globals): Add a recog field.
5228         (restore_target_globals): Restore this_target_recog.
5229         * target-globals.c: Include recog.h.
5230         (default_target_globals): Initialize recog field.
5231         (save_target_globals): Likewise.
5232         * reginfo.c (reinit_regs): Call recog_init.
5233         * toplev.c (backend_init_target): Likewise.
5235 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
5237         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
5238         rather than any named insn's code.
5240 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
5242         PR libgcc/61152
5243         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
5244         * config/arm/arm-cores.def (License): Same.
5246 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
5248         * tree.h (decl_comdat_group): Declare.
5249         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
5250         * tree.c (decl_comdat_group): Here.
5252 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
5254         PR rtl-optimization/61222
5255         * combine.c (simplify_shift_const_1): When moving a PLUS outside
5256         the shift, truncate the PLUS operand to the result mode.
5258 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
5260         PR target/61271
5261         * config/i386/i386.c (ix86_rtx_costs)
5262         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
5263         Fix condition.
5265 2014-05-26  Martin Jambor  <mjambor@suse.cz>
5267         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
5268         subreg uses.
5270 2014-05-26  Richard Biener  <rguenther@suse.de>
5272         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
5273         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
5274         Provide specializations.
5275         (wi::int_traits <HOST_WIDE_INT>,
5276         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
5278 2014-05-26  Alan Modra  <amodra@gmail.com>
5280         PR target/61098
5281         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
5282         params and return a bool.  Remove dead code.  Update comment.
5283         Assert we have a const_int source.  Remove bogus code from
5284         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
5285         handling of constants > 2G and reg_equal note, from..
5286         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
5287         return value.  Update comment.  If we can, use a new pseudo
5288         for intermediate calculations.
5289         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
5290         prototype.
5291         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
5292         call to rs6000_emit_set_const in splitter.
5293         (movdi_internal64+2, +3): Likewise.
5295 2014-05-26  Richard Biener  <rguenther@suse.de>
5297         * system.h: Define __STDC_FORMAT_MACROS before
5298         including inttypes.h.
5299         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
5300         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
5301         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
5302         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
5303         HOST_WIDEST_INT_C): Remove.
5304         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
5305         if C99 inttypes.h is not available.
5306         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
5307         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
5308         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
5309         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
5310         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
5311         (struct output_info): Likewise.
5312         (print_statistics): Adjust.
5313         (dump_bitmap_statistics): Likewise.
5314         * bt-load.c (migrate_btr_defs): Print with PRId64.
5315         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
5316         (MAX_SAFE_MULTIPLIER): Adjust.
5317         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
5318         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
5319         dump_cgraph_node): Likewise.
5320         * final.c (dump_basic_block_info): Likewise.
5321         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
5322         * gcov.c (format_gcov): Likewise.
5323         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
5324         for calculation.
5325         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
5326         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
5327         (inline_small_functions, dump_overall_stats, dump_inline_stats):
5328         Use PRId64 for dumping.
5329         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
5330         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
5331         (add_allocno_hard_regs): Adjust.
5332         * loop-doloop.c (doloop_modify): Print using PRId64.
5333         * loop-iv.c (inverse): Compute in uint64_t.
5334         (determine_max_iter, iv_number_of_iterations): Likewise.
5335         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
5336         Print using PRId64.
5337         * lto-streamer-out.c (write_symbol): Use uint64_t.
5338         * mcf.c (CAP_INFINITY): Use int64_t maximum.
5339         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
5340         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
5341         * modulo-sched.c (const_iteration_count): Use int64_t.
5342         (sms_schedule): Dump using PRId64.
5343         * predict.c (dump_prediction): Likewise.
5344         * pretty-print.h (pp_widest_integer): Remove.
5345         * profile.c (get_working_sets, is_edge_inconsistent,
5346         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
5347         * tree-pretty-print.c (pp_double_int): Remove case handling
5348         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
5349         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
5350         and adjust users.
5351         (pass_optimize_bswap::execute): Remove restriction on hosts.
5352         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
5353         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
5354         * tree.c (widest_int_cst_value): Remove.
5355         * tree.h (widest_int_cst_value): Likewise.
5356         * value-prof.c (dump_histogram_value): Print using PRId64.
5357         * gengtype.c (main): Also inject int64_t.
5358         * ggc-page.c (struct max_alignment): Use int64_t.
5359         * alloc-pool.c (struct allocation_object_def): Likewise.
5360         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
5361         for computation.
5362         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
5363         * doc/tm.texi: Regenerated.
5364         * gengtype-lex.l (IWORD): Handle [u]int64_t.
5365         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
5366         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
5367         mmix_output_register_setting): Use [u]int64_t in prototypes.
5368         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
5369         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
5370         mmix_output_octa, mmix_output_shifted_value): Adjust.
5371         (mmix_intval): Adjust.  Remove unreachable case.
5372         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
5374 2014-05-26  Richard Biener  <rguenther@suse.de>
5376         * configure.ac: Drop __int64 type check.  Insist that we
5377         found uint64_t and int64_t.
5378         * hwint.h (HOST_BITS_PER___INT64): Remove.
5379         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
5380         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
5381         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
5382         (HOST_WIDEST_FAST_INT): Remove __int64 case.
5383         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
5384         for dst_q_src_df_rms_cdt.
5385         * configure: Regenerate.
5386         * config.in: Likewise.
5388 2014-05-26  Michael Tautschnig  <mt@debian.org>
5390         PR target/61249
5391         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
5392         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
5394 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5396         PR rtl-optimization/61278
5397         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
5399 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5401         PR rtl-optimization/61220
5402         Part of PR rtl-optimization/61225
5403         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
5404         insn; skip split_edge for a block with only one successor.
5406 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
5408         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
5409         for variables.
5411 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
5413         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
5414         (update_vtable_references): New function.
5415         (function_and_variable_visibility): Rewrite also vtable initializers.
5416         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
5418 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
5420         * ggc.h (ggc_grow): New function.
5421         * ggc-none.c (ggc_grow): New function.
5422         * ggc-page.c (ggc_grow): Likewise.
5424 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
5426         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
5427         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
5428         comdat_can_be_unshared_p, cgraph_externally_visible_p,
5429         varpool_externally_visible_p, can_replace_by_local_alias,
5430         update_visibility_by_resolution_info, function_and_variable_visibility,
5431         pass_data_ipa_function_and_variable_visibility,
5432         make_pass_ipa_function_and_variable_visibility,
5433         whole_program_function_and_variable_visibility,
5434         pass_data_ipa_whole_program_visibility,
5435         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
5436         * cgraph.h (cgraph_local_node_p): Declare.
5437         * ipa-visibility.c: New file.
5438         * Makefile.in (OBJS): Add ipa-visiblity.o
5440 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
5442         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
5443         that var decl is available.
5445 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
5447         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
5448         symtab_node pointer.
5449         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
5450         (find_decls_types_r): Do not walk COMDAT_GROUP.
5451         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
5452         * varasm.c (make_decl_one_only): Use set_comdat_group;
5453         create node if needed.
5454         * ipa-inline-transform.c (save_inline_function_body): Update
5455         way we decl->symtab mapping.
5456         * symtab.c (symtab_hash, hash_node, eq_node
5457         symtab_insert_node_to_hashtable): Remove.
5458         (symtab_register_node): Update.
5459         (symtab_unregister_node): Update.
5460         (symtab_get_node): Reimplement as inline function.
5461         (symtab_add_to_same_comdat_group): Update.
5462         (symtab_dissolve_same_comdat_group_list): Update.
5463         (dump_symtab_base): Update.
5464         (verify_symtab_base): Update.
5465         (symtab_make_decl_local): Update.
5466         (fixup_same_cpp_alias_visibility): Update.
5467         (symtab_nonoverwritable_alias): Update.
5468         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
5469         * ipa.c (update_visibility_by_resolution_info): UPdate.
5470         * bb-reorder.c: Include cgraph.h
5471         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
5472         with comdat groups.
5473         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
5474         * cgraph.c (cgraph_get_create_node): Update.
5475         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
5476         and comdat_group_.
5477         (symtab_get_node): Make inline.
5478         (symtab_insert_node_to_hashtable): Remove.
5479         (symtab_can_be_discarded): Update.
5480         (decl_comdat_group): New function.
5481         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
5482         Update.
5483         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
5484         comdat group name.
5485         (read_comdat_group): New function.
5486         (input_node, input_varpool_node): Use it.
5487         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
5488         comdat groups.
5489         * mips.c (mips_start_unique_function): Likewise.
5490         (ix86_code_end): Likewise.
5491         (rs6000_code_end): Likweise.
5492         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
5494 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
5496         * gengtype-state.c (fatal_reading_state): Bring offline.
5497         * optabs.c (widening_optab_handler): Bring offline.
5498         * optabs.h (widening_optab_handler): Likewise.
5499         * final.c (get_attr_length_1): Likewise.
5501 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
5503         * sched-int.h (sd_iterator_cond): Manually tail recurse.
5505 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
5507         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
5508         (ppc440-compare): Include shift with dot.
5509         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
5510         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
5511         without dot.
5512         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
5513         without dot.
5514         (e6500_sfx2): Include it.
5515         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
5516         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
5517         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
5518         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
5519         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
5520         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
5521         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
5522         *lshiftrt_internal1le, *lshiftrt_internal1be,
5523         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
5524         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
5525         *rotldi3_internal10le, *rotldi3_internal10be,
5526         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
5527         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
5528         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
5529         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
5530         define_insns): Use type "shift" in the appropriate alternatives.
5532 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
5534         * config/rs6000/rs6000.md (type): Add "logical".  Delete
5535         "fast_compare".
5536         (dot): Adjust comment.
5537         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
5538         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
5539         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
5540         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
5541         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
5542         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
5543         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
5544         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
5546         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
5547         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
5548         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
5549         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
5550         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
5551         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
5552         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
5553         * config/rs6000/8540.md (ppc8540_su): Adjust.
5554         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
5555         cell-cmp-microcoded): Adjust.
5556         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
5557         * config/rs6000/e500mc.md (e500mc_su): Adjust.
5558         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
5559         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
5560         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
5561         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
5562         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
5563         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
5564         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
5565         Adjust.
5566         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
5567         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
5568         Adjust.  Adjust comment.
5569         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
5570         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
5572 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
5574         * config/rs6000/rs6000.md (type): Add "add".
5575         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
5576         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
5577         define_insns): Use it.
5578         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
5580         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
5581         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
5582         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
5583         * config/rs6000/601.md (ppc601-integer): Adjust.
5584         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
5585         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
5586         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
5587         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
5588         * config/rs6000/8540.md (ppc8540_su): Adjust.
5589         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
5590         cell-cmp-microcoded): Adjust.
5591         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
5592         * config/rs6000/e500mc.md (e500mc_su): Adjust.
5593         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
5594         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
5595         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
5596         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
5597         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
5598         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
5599         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
5600         Adjust.
5601         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
5602         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
5603         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
5604         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
5606 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
5608         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
5609         "delayed_compare", "var_delayed_compare".
5610         (var_shift): New attribute.
5611         (cell_micro): Adjust.
5612         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
5613         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
5614         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
5615         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
5616         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
5617         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
5618         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
5619         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
5620         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
5621         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
5622         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
5623         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
5624         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
5625         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
5626         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
5627         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
5628         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
5629         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
5630         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
5631         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
5632         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
5633         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
5634         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
5635         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
5636         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
5638         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
5639         * config/rs6000/440.md (ppc440-integer): Adjust.
5640         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
5641         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
5642         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
5643         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
5644         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
5645         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
5646         * config/rs6000/8540.md (ppc8540_su): Adjust.
5647         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
5648         cell-cmp-microcoded): Adjust.
5649         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
5650         * config/rs6000/e500mc.md (e500mc_su): Adjust.
5651         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
5652         e500mc64_delayed): Adjust.
5653         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
5654         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
5655         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
5656         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
5657         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
5658         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
5659         power6-delayed-compare, power6-var-delayed-compare): Adjust.
5660         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
5661         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
5662         Adjust comment.
5663         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
5664         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
5666 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
5668         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
5669         (bits): New mode_attr.
5670         (idiv_ldiv): Delete mode_attr.
5671         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
5672         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
5673         rs6000_adjust_priority, is_nonpipeline_insn,
5674         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
5676         * config/rs6000/40x.md (ppc403-idiv): Adjust.
5677         * config/rs6000/440.md (ppc440-idiv): Adjust.
5678         * config/rs6000/476.md (ppc476-idiv): Adjust.
5679         * config/rs6000/601.md (ppc601-idiv): Adjust.
5680         * config/rs6000/603.md (ppc603-idiv): Adjust.
5681         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
5682         ppc620-ldiv): Adjust.
5683         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
5684         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
5685         * config/rs6000/8540.md (ppc8540_divide): Adjust.
5686         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
5687         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
5688         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
5689         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
5690         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
5691         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
5692         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
5693         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
5694         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
5695         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
5696         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
5697         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
5698         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
5699         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
5700         * config/rs6000/titan.md (titan_fxu_div): Adjust.
5702 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
5704         * config/rs6000/rs6000.md (type): Delete "insert_word",
5705         "insert_dword".  Add "insert".
5706         (size): Update comment.
5707         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
5708         insn_must_be_first_in_group): Adjust.
5709         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
5710         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
5711         *insvsi_internal6, insvdi_internal): Adjust.
5713         * config/rs6000/40x.md (ppc403-integer): Adjust.
5714         * config/rs6000/440.md (ppc440-integer): Adjust.
5715         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
5716         * config/rs6000/601.md (ppc601-integer): Adjust.
5717         * config/rs6000/603.md (ppc603-integer): Adjust.
5718         * config/rs6000/6xx.md (ppc604-integer): Adjust.
5719         * config/rs6000/7450.md (ppc7450-integer): Adjust.
5720         * config/rs6000/7xx.md (ppc750-integer): Adjust.
5721         * config/rs6000/8540.md (ppc8540_su): Adjust.
5722         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
5723         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
5724         * config/rs6000/e500mc.md (e500mc_su): Adjust.
5725         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
5726         * config/rs6000/e5500.md (e5500_sfx): Adjust.
5727         * config/rs6000/e6500.md (e6500_sfx): Adjust.
5728         * config/rs6000/mpc.md (mpccore-integer): Adjust.
5729         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
5730         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
5731         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
5732         * config/rs6000/power7.md (power7-integer): Adjust.
5733         * config/rs6000/power8.md (power8-1cyc): Adjust.
5734         * config/rs6000/rs64.md (rs64a-integer): Adjust.
5735         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
5737 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
5739         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
5740         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
5741         (size): New attribute.
5742         (dot): New attribute.
5743         (cell_micro): Adjust.
5744         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
5745         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
5746         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
5747         umuldi3_highpart): Adjust.
5748         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
5749         rs6000_adjust_priority, is_nonpipeline_insn,
5750         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
5752         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
5753         ppc405-imul3): Adjust.
5754         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
5755         * config/rs6000/476.md (ppc476-imul): Adjust.
5756         * config/rs6000/601.md (ppc601-imul): Adjust.
5757         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
5758         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
5759         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
5760         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
5761         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
5762         Adjust.
5763         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
5764         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
5765         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
5766         cell-imul): Adjust.
5767         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
5768         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
5769         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
5770         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
5771         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
5772         * config/rs6000/mpc.md (mpccore-imul): Adjust.
5773         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
5774         power4-lmul, power4-imul, power4-imul3): Adjust.
5775         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
5776         power5-lmul, power5-imul, power5-imul3): Adjust.
5777         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
5778         power6-lmul, power6-imul, power6-imul3): Adjust.
5779         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
5780         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
5782         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
5783         rs64a-lmul): Adjust.
5784         * config/rs6000/titan.md (titan_imul): Adjust.
5786 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
5788         * config/rs6000/rs6000.md (type): Add new value "halfmul".
5789         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
5790         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
5791         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
5792         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
5793         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
5794         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
5795         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
5796         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
5797         * config/rs6000/titan.md: Delete nonsensical comment.
5798         (titan_imul): Add type imul3.
5799         (titan_mulhw): Remove type imul3; add type halfmul.
5801 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
5803         * config/rs6000/rs6000.md (type): Reorder, reformat.
5805 2014-05-23  Martin Jambor  <mjambor@suse.cz>
5807         PR tree-optimization/53787
5808         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
5809         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
5810         analysis_done, update all uses.
5811         * ipa-prop.c: Include domwalk.h
5812         (param_analysis_info): Removed.
5813         (param_aa_status): New type.
5814         (ipa_bb_info): Likewise.
5815         (func_body_info): Likewise.
5816         (ipa_get_bb_info): New function.
5817         (aa_overwalked): Likewise.
5818         (find_dominating_aa_status): Likewise.
5819         (parm_bb_aa_status_for_bb): Likewise.
5820         (parm_preserved_before_stmt_p): Changed to use new param AA info.
5821         (load_from_unmodified_param): Accept func_body_info as a parameter
5822         instead of parms_ainfo.
5823         (parm_ref_data_preserved_p): Changed to use new param AA info.
5824         (parm_ref_data_pass_through_p): Likewise.
5825         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
5826         (compute_complex_assign_jump_func): Changed to use new param AA info.
5827         (compute_complex_ancestor_jump_func): Likewise.
5828         (ipa_compute_jump_functions_for_edge): Likewise.
5829         (ipa_compute_jump_functions): Removed.
5830         (ipa_compute_jump_functions_for_bb): New function.
5831         (ipa_analyze_indirect_call_uses): Likewise, moved variable
5832         declarations down.
5833         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
5834         and info, moved variable declarations down.
5835         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
5836         node and info.
5837         (ipa_analyze_stmt_uses): Likewise.
5838         (ipa_analyze_params_uses): Removed.
5839         (ipa_analyze_params_uses_in_bb): New function.
5840         (ipa_analyze_controlled_uses): Likewise.
5841         (free_ipa_bb_info): Likewise.
5842         (analysis_dom_walker): New class.
5843         (ipa_analyze_node): Handle node-specific forbidden analysis,
5844         initialize and free func_body_info, use dominator walker.
5845         (ipcp_modif_dom_walker): New class.
5846         (ipcp_transform_function): Create and free func_body_info, use
5847         ipcp_modif_dom_walker, moved a lot of functionality there.
5849 2014-05-23  Marek Polacek  <polacek@redhat.com>
5850             Jakub Jelinek  <jakub@redhat.com>
5852         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
5853         * gcc.c (sanitize_spec_function): Likewise.
5854         * convert.c (convert_to_integer): Include "ubsan.h".  Add
5855         floating-point to integer instrumentation.
5856         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
5857         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
5858         SANITIZE_NONDEFAULT.
5859         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
5860         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
5861         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
5862         * ubsan.c: Include "realmpfr.h" and "dfp.h".
5863         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
5864         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
5865         float/double/long double.
5866         (ubsan_instrument_float_cast): New function.
5867         * ubsan.h (ubsan_instrument_float_cast): Declare.
5869 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
5871         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
5872         predicate.
5873         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
5874         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
5875         Adjust for tailcalling through registers.
5876         * config/aarch64/aarch64.h (enum reg_class): New caller save
5877         register class.
5878         (REG_CLASS_NAMES): Likewise.
5879         (REG_CLASS_CONTENTS): Likewise.
5880         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
5881         Allow tailcalling without decls.
5883 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
5885         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
5886         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
5888         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
5889         gsi, and variables v_* to v*.
5891 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5893         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
5895 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
5897         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
5898         * omp-low.c: Update accordingly.
5900         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
5901         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
5902         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
5903         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
5904         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
5905         GF_OMP_TARGET_KIND_UPDATE.
5907         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
5908         Explicitly enumerate the expected region types.
5910 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5912         PR other/56955
5913         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
5914         documentation; the old documentation didn't clearly state the
5915         constraints on the contents of the pointed-to storage.
5917 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
5919         Fix bootstrap error on ia64
5920         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
5921         Return default value.
5923 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5925         PR tree-optimization/54733
5926         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
5927         (CMPNOP): Define.
5928         (find_bswap_or_nop_load): New.
5929         (find_bswap_1): Renamed to ...
5930         (find_bswap_or_nop_1): This. Also add support for memory source.
5931         (find_bswap): Renamed to ...
5932         (find_bswap_or_nop): This. Also add support for memory source and
5933         detection of bitwise operations equivalent to load in target
5934         endianness.
5935         (execute_optimize_bswap): Likewise. Also move its leading comment back
5936         in place and split statement transformation into ...
5937         (bswap_replace): This.
5939 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
5941         PR rtl-optimization/61215
5942         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
5943         simplify_gen_subreg until final substitution.
5945 2014-05-23  Alan Modra  <amodra@gmail.com>
5947         PR target/61231
5948         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
5949         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
5950         Use "Y" constraint rather than "m".
5952 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
5954         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
5955         define.
5956         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
5957         New function declaration.
5958         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
5959         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
5960         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
5961         (aarch64_init_builtins) : Initialize builtins
5962         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
5963         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
5964         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
5965         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
5966         and __builtins_aarch64_set_fpsr.
5967         (aarch64_atomic_assign_expand_fenv): New function.
5968         * config/aarch64/aarch64.md (set_fpcr): New pattern.
5969         (get_fpcr) : Likewise.
5970         (set_fpsr) : Likewise.
5971         (get_fpsr) : Likewise.
5972         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
5973          and UNSPECV_SET_FPSR.
5974         * doc/extend.texi (AARCH64 Built-in Functions) : Document
5975         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
5976         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
5978 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
5980         PR rtl-optimization/60969
5981         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
5982         constraints.  Set up mem cost for NO_REGS case.
5984 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
5986         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
5988 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
5990         * config/darwin.c: Include "lto-section-names.h".
5991         (LTO_SEGMENT_NAME): Don't define.
5992         * config/i386/winnt.c: Include "lto-section-names.h".
5993         * lto-streamer.c: Include "lto-section-names.h".
5994         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
5995         * lto-wrapper.c: Include "lto-section-names.h".
5996         (LTO_SECTION_NAME_PREFIX): Don't define.
5997         * lto-section-names.h: New file.
5998         * cgraphunit.c: Include "lto-section-names.h".
6000 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
6002         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
6004 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
6006         PR target/61208
6007         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
6009 2014-05-22  Nick Clifton  <nickc@redhat.com>
6011         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
6013 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
6015         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
6016         -> (T)A transformation to integer types.
6018 2014-05-22  Teresa Johnson  <tejohnson@google.com>
6020         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
6021         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
6022         (gcov_rewrite): Use gcov_nonruntime_assert.
6023         (gcov_open): Ditto.
6024         (gcov_write_words): Ditto.
6025         (gcov_write_length): Ditto.
6026         (gcov_read_words): Use gcov_nonruntime_assert, and remove
6027         gcc_assert from IN_LIBGCOV code.
6028         (gcov_read_summary): Use gcov_error to flag profile corruption.
6029         (gcov_sync): Use gcov_nonruntime_assert.
6030         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
6031         (gcov_histo_index): Use gcov_nonruntime_assert.
6032         (static void gcov_histogram_merge): Ditto.
6033         (compute_working_sets): Ditto.
6034         * gcov-io.h (gcov_nonruntime_assert): Define.
6035         (gcov_error): Define for !IN_LIBGCOV
6037 2014-05-22  Richard Biener  <rguenther@suse.de>
6039         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6040         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
6041         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
6042         and deallocation site.
6043         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6044         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
6045         passing through the incoming points-to set.
6046         (handle_lhs_call): Use flags argument instead of recomputing it.
6047         (find_func_aliases_for_call): Call handle_lhs_call with proper
6048         call return flags.
6050 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
6052         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
6053         all padding bits in REAL_VALUE_TYPE are cleared.
6055 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
6057         Cleanup and improve multipass_dfa_lookahead_guard
6058         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
6059         (core2i7_first_cycle_multipass_begin,)
6060         (core2i7_first_cycle_multipass_issue,)
6061         (core2i7_first_cycle_multipass_backtrack): Update signature.
6062         * config/ia64/ia64.c
6063         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
6064         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
6065         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
6066         hook definition.
6067         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
6068         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
6069         values.
6070         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
6071         return values.
6072         * doc/tm.texi: Regenerate.
6073         * doc/tm.texi.in
6074         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
6075         * haifa-sched.c (ready_try): Make signed to allow negative values.
6076         (rebug_ready_list_1): Update.
6077         (choose_ready): Simplify.
6078         (sched_extend_ready_list): Update.
6080 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
6082         Remove IA64 speculation tweaking flags
6083         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
6084         speculation tuning flags.
6085         (msched-prefer-non-data-spec-insns,)
6086         (msched-prefer-non-control-spec-insns): Obsolete options.
6087         * haifa-sched.c (choose_ready): Remove handling of
6088         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
6089         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
6090         and PREFER_NON_DATA_SPEC.
6091         * sel-sched.c (process_spec_exprs): Remove handling of
6092         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
6094 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
6096         Improve scheduling debug output
6097         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
6098         (advance_one_cycle): Update.
6099         (schedule_insn, queue_to_ready): Add debug printouts.
6100         (debug_ready_list_1): New static function.
6101         (debug_ready_list): Update.
6102         (max_issue): Add debug printouts.
6103         (dump_insn_stream): New static function.
6104         (schedule_block): Use it.  Also better indent printouts.
6106 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
6108         Fix sched_insn debug counter
6109         * haifa-sched.c (schedule_insn): Update.
6110         (struct haifa_saved_data): Add nonscheduled_insns_begin.
6111         (save_backtrack_point, restore_backtrack_point): Update.
6112         (first_nonscheduled_insn): New static function.
6113         (queue_to_ready, choose_ready): Use it.
6114         (schedule_block): Init nonscheduled_insns_begin.
6115         (sched_emit_insn): Update.
6118 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
6120         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
6121         to GENERAL_REGS.
6122         (aarch64_secondary_reload) : LikeWise.
6123         (aarch64_class_max_nregs) : Remove CORE_REGS.
6124         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
6125         (REG_CLASS_NAMES) : Likewise.
6126         (REG_CLASS_CONTENTS) : LikeWise.
6127         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
6129 2014-05-21  Guozhi Wei  <carrot@google.com>
6131         PR target/61202
6132         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
6133         constraint.
6134         (vqdmulhq_n_s16): Likewise.
6136 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
6138         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
6140 2014-05-21  Marek Polacek  <polacek@redhat.com>
6142         PR sanitizer/61272
6143         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
6145 2014-05-21  Martin Jambor  <mjambor@suse.cz>
6147         * doc/invoke.texi (Optimize Options): Document parameters
6148         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
6149         ipa-cp-array-index-hint-bonus.
6151 2014-05-21  Mark Wielaard  <mjw@redhat.com>
6153         PR debug/16063
6154         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
6155         version >= 3 or not strict DWARF.
6156         * langhooks.h (struct lang_hooks_for_types): Add
6157         enum_underlying_base_type.
6158         * langhooks.c (lhd_enum_underlying_base_type): New function.
6159         * gcc/langhooks.h (struct lang_hooks_for_types): Add
6160         enum_underlying_base_type.
6161         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
6162         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
6163         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
6165 2014-05-21  Richard Biener  <rguenther@suse.de>
6167         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
6169 2014-05-21  John Marino  <gnugcc@marino.st>
6171         * config.gcc (*-*-dragonfly*): New target.
6172         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
6173         * configure: Regenerate.
6174         * config/dragonfly-stdint.h: New.
6175         * config/dragonfly.h: New.
6176         * config/dragonfly.opt: New.
6177         * config/i386/dragonfly.h: New.
6178         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
6180 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6182         * tree.def (VOID_CST): New.
6183         * tree-core.h (TI_VOID): New.
6184         * tree.h (void_node): New.
6185         * tree.c (tree_node_structure_for_code, tree_code_size)
6186         (iterative_hash_expr): Handle VOID_CST.
6187         (build_common_tree_nodes): Initialize void_node.
6189 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
6191         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
6192         functions.
6193         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
6195         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
6196         more places.
6198         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
6199         flag_reorder_blocks_and_partition.
6200         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
6202 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
6204         PR target/54236
6205         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
6206         constraints.
6207         (*addc_r_t): Add new insn_and_split.
6209 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
6211         PR middle-end/61252
6212         * omp-low.c (handle_simd_reference): New function.
6213         (lower_rec_input_clauses): Use it.  Defer adding reference
6214         initialization even for reduction without placeholder if in simd,
6215         handle it properly later on.
6217 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
6219         PR tree-optimization/60899
6220         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
6221         assume all static symbols will have definition wile parsing and
6222         check the do have definition later in compilation; check that
6223         variable referring symbol will be output before concluding that
6224         reference is safe; be conservative for referring local statics;
6225         be more precise about when comdat is output in other partition.
6227 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
6229         PR bootstrap/60984
6230         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
6231         parameter.
6232         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
6233         (ipa_inline): Loop inline_to_all_callers until no more aliases
6234         are removed.
6236 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
6238         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
6239         set writeonly flag only for vars actually written to.
6241 2014-05-20  Dehao Chen  <dehao@google.com>
6243         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
6244         and callee count to get clone count.
6245         * tree-inline.c (expand_call_inline): Use callee count instead of bb
6246         count in copy_body.
6248 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
6250         PR rtl-optimization/61243
6251         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
6253 2014-05-20  Xinliang David Li  <davidxl@google.com>
6255         * cgraphunit.c (walk_polymorphic_call_targets): Add
6256         dbgcnt and fopt-info support.
6257         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
6258         * ipa-devirt.c (ipa_devirt): Ditto.
6259         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
6260         * ipa.c (walk_polymorphic_call_targets): Ditto.
6261         * gimple-fold.c (fold_gimple_assign): Ditto.
6262         (gimple_fold_call): Ditto.
6263         * dbgcnt.def: New counter.
6265 2014-05-20  DJ Delorie  <dj@redhat.com>
6267         * config/msp430/msp430.md (split): Don't allow subregs when
6268         splitting SImode adds.
6269         (andneghi): Fix subtraction logic.
6270         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
6272 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
6274         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
6275         symbols.
6276         * except.c (switch_to_exception_section, resolve_unique_section,
6277         get_named_text_section, default_function_rodata_section,
6278         align_variable, get_block_for_decl, default_section_type_flags):
6279         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
6280         * symtab.c (symtab_add_to_same_comdat_group,
6281         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
6282         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
6283         Likewise.
6284         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
6285         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
6286         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
6287         (c6x_function_in_section_p): Likewise.
6288         * config/darwin.c (machopic_select_section): Likewise.
6289         * config/arm/arm.c (arm_function_in_section_p): Likewise.
6290         * config/mips/mips.c (mips_function_rodata_section): Likewise.
6291         * config/mep/mep.c (mep_select_section): LIkewise.
6292         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
6294 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
6296         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
6297         EH region of calls to pure functions that can throw an exception.
6298         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
6299         (copy_reference_ops_from_call): Also copy the EH region of the call if
6300         it can throw an exception.
6302 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6304         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
6305         nested VEC_SELECTs that are inverses of each other.
6307 2014-05-20  Richard Biener  <rguenther@suse.de>
6309         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
6310         (extract_and_process_scc_for_name): not here.
6311         (cond_dom_walker::before_dom_children): Only process
6312         stmts that end the BB in interesting ways.
6313         (run_scc_vn): Mark param uses as visited.
6315 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6317         * config/arm/arm.md (arith_shiftsi): Do not predicate for
6318         arm_restrict_it.
6320 2014-05-20  Nick Clifton  <nickc@redhat.com>
6322         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
6323         (msp430_gimplify_va_arg_expr): New function.
6324         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
6326         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
6327         operand 0 in order to prevent confusion about the number of
6328         registers involved.
6330 2014-05-20  Richard Biener  <rguenther@suse.de>
6332         PR tree-optimization/61221
6333         * tree-ssa-pre.c (el_to_update): Remove.
6334         (eliminate_dom_walker::before_dom_children): Handle released
6335         VDEFs by value-numbering them to the associated VUSE.  Update
6336         stmt immediately for substituted call address.
6337         (eliminate): Remove delayed stmt updating code.
6338         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
6339         possibly late re-numbered vuses.
6340         (vn_reference_lookup_2): Adjust.
6341         (vn_reference_lookup_pieces): Likewise.
6342         (vn_reference_lookup): Likewise.
6344 2014-05-20  Richard Biener  <rguenther@suse.de>
6346         * config.gcc: Remove need_64bit_hwint.
6347         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
6348         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
6349         it to be true.
6350         * config.in: Regenerate.
6351         * configure: Likewise.
6353 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
6355         * doc/extend.texi: Create Label Attributes section,
6356         move all label attributes into it and reference it.
6358 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
6360         * arm.c (thumb1_reorg): When scanning backwards skip anything
6361         that's not a proper insn.
6363 2014-05-19  Richard Biener  <rguenther@suse.de>
6365         PR tree-optimization/61221
6366         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6367         Do nothing for unreachable blocks.
6368         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
6369         Improve unreachability detection.
6371 2014-05-19  Richard Biener  <rguenther@suse.de>
6373         PR tree-optimization/61209
6374         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
6376 2014-05-19  Nick Clifton  <nickc@redhat.com>
6378         * except.c (init_eh): Fix computation of builtin setjmp buffer
6379         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
6381 2014-05-19  Richard Biener  <rguenther@suse.de>
6383         PR tree-optimization/61184
6384         * tree-vrp.c (is_negative_overflow_infinity): Use
6385         TREE_OVERFLOW_P and do that check first.
6386         (is_positive_overflow_infinity): Likewise.
6387         (is_overflow_infinity): Likewise.
6388         (vrp_operand_equal_p): Properly treat operands with
6389         differing overflow as not equal.
6391 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
6393         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
6394         shift simplification where it was intended.
6396 2014-05-19  Christian Bruel  <christian.bruel@st.com>
6398         PR target/61195
6399         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
6401 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
6403         PR target/61084
6404         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
6405         than wide_int.
6407 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
6409         * reg-notes.def (CROSSING_JUMP): Likewise.
6410         * rtl.h (rtx_def): Update comment for jump flag.
6411         (CROSSING_JUMP_P): Define.
6412         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
6413         of a REG_CROSSING_JUMP note.
6414         * cfghooks.c (tidy_fallthru_edges): Likewise.
6415         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
6416         * emit-rtl.c (try_split): Likewise.
6417         * haifa-sched.c (sched_create_recovery_edges): Likewise.
6418         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
6419         * jump.c (redirect_jump_2): Likewise.
6420         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
6421         (relax_delay_slots): Likewise.
6422         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
6423         (bbit_di): Likewise.
6424         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
6425         * config/sh/sh.md (jump_compact): Likewise.
6426         * bb-reorder.c (rotate_loop): Likewise.
6427         (pass_duplicate_computed_gotos::execute): Likewise.
6428         (add_reg_crossing_jump_notes): Rename to...
6429         (update_crossing_jump_flags): ...this.
6430         (pass_partition_blocks::execute): Update accordingly.
6432 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
6434         * tree.h: Remove extraneous template <>.
6436 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
6438         * ipa.c (symtab_remove_unreachable_nodes): Remove
6439         symbol from comdat group if its body was eliminated.
6440         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
6441         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
6442         (symtab_unregister_node): ... this one.
6443         (verify_symtab_base): More strict checking of comdats.
6444         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
6446 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
6448         * tree-pass.h (make_pass_ipa_comdats): New pass.
6449         * timevar.def (TV_IPA_COMDATS): New timevar.
6450         * passes.def (pass_ipa_comdats): Add.
6451         * Makefile.in (OBJS): Add ipa-comdats.o
6452         * ipa-comdats.c: New file.
6454 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
6456         * ipa.c (update_visibility_by_resolution_info): New function.
6457         (function_and_variable_visibility): Use it.
6459 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
6461         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
6462         New functions.
6463         (FOR_EACH_DEFINED_SYMBOL): New macro.
6464         (varpool_first_static_initializer, varpool_next_static_initializer,
6465         varpool_first_defined_variable, varpool_next_defined_variable):
6466         Fix comments.
6467         (symtab_in_same_comdat_p): Correctly deal with inline functions.
6469 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
6471         * ggc-page.c (ggc_handle_finalizers): Add comment.
6473 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
6475         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
6476         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
6477         (ggc_internal_cleared_alloc): Likewise.
6478         * ggc-page.c (finalizer): New class.
6479         (vec_finalizer): Likewise.
6480         (globals::finalizers): New member.
6481         (globals::vec_finalizers): Likewise.
6482         (ggc_internal_alloc): Record the finalizer if any for the block being
6483         allocated.
6484         (ggc_handle_finalizers): New function.
6485         (ggc_collect): Call ggc_handle_finalizers.
6486         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
6487         finalizer.
6488         (ggc_internal_cleared_alloc): Likewise.
6489         (finalize): New function.
6490         (need_finalization_p): Likewise.
6491         (ggc_alloc): Install the type's destructor as the finalizer if it
6492         might do something.
6493         (ggc_cleared_alloc): Likewise.
6494         (ggc_vec_alloc): Likewise.
6495         (ggc_cleared_vec_alloc): Likewise.
6497 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
6499         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
6501 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
6503         * alias.c (record_alias_subset): Adjust.
6504         * bitmap.c (bitmap_element_allocate): Likewise.
6505         (bitmap_gc_alloc_stat): Likewise.
6506         * cfg.c (init_flow): Likewise.
6507         (alloc_block): Likewise.
6508         (unchecked_make_edge): Likewise.
6509         * cfgloop.c (alloc_loop): Likewise.
6510         (flow_loops_find): Likewise.
6511         (rescan_loop_exit): Likewise.
6512         * cfgrtl.c (init_rtl_bb_info): Likewise.
6513         * cgraph.c (insert_new_cgraph_node_version): Likewise.
6514         (cgraph_allocate_node): Likewise.
6515         (cgraph_create_edge_1): Likewise.
6516         (cgraph_allocate_init_indirect_info): Likewise.
6517         * cgraphclones.c (cgraph_clone_edge): Likewise.
6518         * cgraphunit.c (add_asm_node): Likewise.
6519         (init_lowered_empty_function): Likewise.
6520         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
6521         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
6522         (alpha_use_linkage): Likewise.
6523         * config/arc/arc.c (arc_init_machine_status): Likewise.
6524         * config/arm/arm.c (arm_init_machine_status): Likewise.
6525         * config/avr/avr.c (avr_init_machine_status): Likewise.
6526         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6527         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
6528         * config/cris/cris.c (cris_init_machine_status): Likewise.
6529         * config/darwin.c (machopic_indirection_name): Likewise.
6530         (darwin_build_constant_cfstring): Likewise.
6531         (darwin_enter_string_into_cfstring_table): Likewise.
6532         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
6533         * config/frv/frv.c (frv_init_machine_status): Likewise.
6534         * config/i386/i386.c (get_dllimport_decl): Likewise.
6535         (ix86_init_machine_status): Likewise.
6536         (assign_386_stack_local): Likewise.
6537         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
6538         (i386_pe_maybe_record_exported_symbol): Likewise.
6539         (i386_pe_record_stub): Likewise.
6540         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6541         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6542         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6543         (m32c_note_pragma_address): Likewise.
6544         * config/mep/mep.c (mep_init_machine_status): Likewise.
6545         (mep_note_pragma_flag): Likewise.
6546         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6547         (mips16_local_alias): Likewise.
6548         (mips_init_machine_status): Likewise.
6549         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6550         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
6551         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
6552         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
6553         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
6554         * config/pa/pa.c (pa_init_machine_status): Likewise.
6555         (pa_get_deferred_plabel): Likewise.
6556         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
6557         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
6558         (rs6000_init_machine_status): Likewise.
6559         (output_toc): Likewise.
6560         * config/s390/s390.c (s390_init_machine_status): Likewise.
6561         * config/score/score.c (score_output_external): Likewise.
6562         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6563         * config/spu/spu.c (spu_init_machine_status): Likewise.
6564         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
6565         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
6566         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6567         * coverage.c (coverage_end_function): Likewise.
6568         * dbxout.c (dbxout_init): Likewise.
6569         * doc/gty.texi: Don't mention variable_size attribute.
6570         * dwarf2cfi.c (new_cfi): Adjust.
6571         (new_cfi_row): Likewise.
6572         (copy_cfi_row): Likewise.
6573         (create_cie_data): Likewise.
6574         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
6575         (new_loc_descr): Likewise.
6576         (find_AT_string_in_table): Likewise.
6577         (add_addr_table_entry): Likewise.
6578         (new_die): Likewise.
6579         (add_var_loc_to_decl): Likewise.
6580         (clone_die): Likewise.
6581         (clone_as_declaration): Likewise.
6582         (break_out_comdat_types): Likewise.
6583         (new_loc_list): Likewise.
6584         (add_loc_descr_to_each): Likewise.
6585         (add_location_or_const_value_attribute): Likewise.
6586         (add_linkage_name): Likewise.
6587         (lookup_filename): Likewise.
6588         (dwarf2out_var_location): Likewise.
6589         (new_line_info_table): Likewise.
6590         (dwarf2out_init): Likewise.
6591         (mem_loc_descriptor): Likewise.
6592         (loc_descriptor): Likewise.
6593         (add_const_value_attribute): Likewise.
6594         (tree_add_const_value_attribute): Likewise.
6595         (comp_dir_string): Likewise.
6596         (dwarf2out_vms_debug_main_pointer): Likewise.
6597         (string_cst_pool_decl): Likewise.
6598         * emit-rtl.c (set_mem_attrs): Likewise.
6599         (get_reg_attrs): Likewise.
6600         (start_sequence): Likewise.
6601         (init_emit): Likewise.
6602         (init_emit_regs): Likewise.
6603         * except.c (init_eh_for_function): Likewise.
6604         (gen_eh_region): Likewise.
6605         (gen_eh_region_catch): Likewise.
6606         (gen_eh_landing_pad): Likewise.
6607         (add_call_site): Likewise.
6608         * function.c (add_frame_space): Likewise.
6609         (insert_temp_slot_address): Likewise.
6610         (assign_stack_temp_for_type): Likewise.
6611         (get_hard_reg_initial_val): Likewise.
6612         (allocate_struct_function): Likewise.
6613         (prepare_function_start): Likewise.
6614         (types_used_by_var_decl_insert): Likewise.
6615         * gengtype.c (variable_size_p): Remove function.
6616         (enum alloc_quantity): Remove enum.
6617         (write_typed_alloc_def): Remove function.
6618         (write_typed_struct_alloc_def): Likewise.
6619         (write_typed_typedef_alloc_def): Likewise.
6620         (write_typed_alloc_defns): Likewise.
6621         (main): Adjust.
6622         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
6623         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
6624         * ggc.h (ggc_alloc): new function.
6625         (ggc_cleared_alloc): Likewise.
6626         (ggc_vec_alloc): Template on type of vector element, and remove
6627         element size argument.
6628         (ggc_cleared_vec_alloc): Likewise.
6629         * gimple.c (gimple_build_omp_for): Adjust.
6630         (gimple_copy): Likewise.
6631         * ipa-cp.c (get_replacement_map): Likewise.
6632         (find_aggregate_values_for_callers_subset): Likewise.
6633         (known_aggs_to_agg_replacement_list): Likewise.
6634         * ipa-devirt.c (get_odr_type): Likewise.
6635         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
6636         (read_agg_replacement_chain): Likewise.
6637         * loop-iv.c (get_simple_loop_desc): Likewise.
6638         * lto-cgraph.c (input_node_opt_summary): Likewise.
6639         * lto-section-in.c (lto_new_in_decl_state): Likewise.
6640         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
6641         (input_eh_region): Likewise.
6642         (input_eh_lp): Likewise.
6643         (input_cfg): Likewise.
6644         * optabs.c (set_optab_libfunc): Likewise.
6645         (init_tree_optimization_optabs): Likewise.
6646         (set_conv_libfunc): Likewise.
6647         * passes.c (do_per_function_toporder): Likewise.
6648         * rtl.h: Don't use variable_size gty attribute.
6649         * sese.c (if_region_set_false_region): Adjust.
6650         * stringpool.c (gt_pch_save_stringpool): Likewise.
6651         * target-globals.c (save_target_globals): Likewise.
6652         * toplev.c (general_init): Likewise.
6653         * trans-mem.c (record_tm_replacement): Likewise.
6654         (split_bb_make_tm_edge): Likewise.
6655         * tree-cfg.c (move_sese_region_to_fn): Likewise.
6656         * tree-data-ref.h (lambda_vector_new): Likewise.
6657         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
6658         * tree-iterator.c (tsi_link_before): Likewise.
6659         (tsi_link_after): Likewise.
6660         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
6661         * tree-ssa-loop-niter.c (record_estimate): Likewise.
6662         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
6663         * tree-ssa-operands.h: Don't use variable_size gty attribute.
6664         * tree-ssa.c (init_tree_ssa): Adjust.
6665         * tree-ssanames.c (set_range_info): Likewise.
6666         (get_ptr_info): Likewise.
6667         (duplicate_ssa_name_ptr_info): Likewise.
6668         (duplicate_ssa_name_range_info): Likewise.
6669         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
6670         (unpack_ts_fixed_cst_value_fields): Likewise.
6671         * tree.c (build_fixed): Likewise.
6672         (build_real): Likewise.
6673         (build_string): Likewise.
6674         (decl_priority_info): Likewise.
6675         (decl_debug_expr_insert): Likewise.
6676         (decl_value_expr_insert): Likewise.
6677         (decl_debug_args_insert): Likewise.
6678         (type_hash_add): Likewise.
6679         (build_omp_clause): Likewise.
6680         * ubsan.c (decl_for_type_insert): Likewise.
6681         * varasm.c (get_unnamed_section): Likewise.
6682         (get_noswitch_section): Likewise.
6683         (get_section): Likewise.
6684         (get_block_for_section): Likewise.
6685         (create_block_symbol): Likewise.
6686         (build_constant_desc): Likewise.
6687         (create_constant_pool): Likewise.
6688         (force_const_mem): Likewise.
6689         (record_tm_clone_pair): Likewise.
6690         * varpool.c (varpool_create_empty_node): Likewise.
6692 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
6694         * dwarf2out.c (tree_add_const_value_attribute): Call
6695         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
6696         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
6697         instead of ggc_internal_<x>alloc_stat.
6698         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
6699         (ggc_realloc): Likewise.
6700         * ggc-none.c (ggc_internal_alloc): Likewise.
6701         (ggc_internal_cleared_alloc): Likewise.
6702         * ggc-page.c: Likewise.
6703         * ggc.h (ggc_internal_alloc_stat): Likewise.
6704         (ggc_internal_alloc): Remove macro.
6705         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
6706         (ggc_internal_cleared_alloc): Remove macro.
6707         (GGC_RESIZEVEC): Adjust.
6708         (ggc_resizevar): Remove macro.
6709         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
6710         (ggc_internal_cleared_vec_alloc_stat): Likewise.
6711         (ggc_internal_vec_cleared_alloc): Remove macro.
6712         (ggc_alloc_atomic_stat): Drop _stat suffix.
6713         (ggc_alloc_atomic): Remove macro.
6714         (ggc_alloc_cleared_atomic): Remove macro.
6715         (ggc_alloc_string_stat): Drop _stat suffix.
6716         (ggc_alloc_string): Remove macro.
6717         (ggc_alloc_rtx_def_stat): Adjust.
6718         (ggc_alloc_tree_node_stat): Likewise.
6719         (ggc_alloc_cleared_tree_node_stat): Likewise.
6720         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
6721         (ggc_alloc_cleared_simd_clone_stat): Likewise.
6722         * gimple.c (gimple_build_omp_for): Likewise.
6723         (gimple_copy): Likewise.
6724         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
6725         * toplev.c (realloc_for_line_map): Adjust.
6726         * tree-data-ref.h (lambda_vector_new): Likewise.
6727         * tree-phinodes.c (allocate_phi_node): Likewise.
6728         * tree.c (grow_tree_vec_stat): Likewise.
6729         * vec.h (va_gc::reserve): Adjust.
6731 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
6733         * config/microblaze/microblaze.c (break_handler): New Declaration.
6734         (microblaze_break_function_p,microblaze_is_break_handler): New.
6735         (compute_frame_size): Use microblaze_break_function_p.
6736         Add the test of break_handler.
6737         (microblaze_function_prologue) : Add the test of variable
6738         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
6739         (microblaze_function_epilogue) : Add the test of break_handler.
6740         (microblaze_globalize_label) : Add the test of break_handler.
6741         Check the name by BREAK_HANDLER_NAME.
6743         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
6745         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
6746         microblaze_is_break_handler test.
6747         (call_internal1,call_value_intern): Use microblaze_break_function_p.
6748         Use SYMBOL_REF_DECL.
6750         * config/microblaze/microblaze-protos.h
6751         (microblaze_break_function_p,microblaze_is_break_handler):
6752         New Declaration.
6754         * doc/extend.texi (MicroBlaze break_handler Functions): Document
6755         new MicroBlaze break_handler functions.
6757 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
6759         * doc/extend.texi (Size of an asm): Move node text according
6760         to its @menu entry position.
6762 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
6764         PR tree-optimization/61140
6765         PR tree-optimization/61150
6766         PR tree-optimization/61197
6767         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
6769 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
6771         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
6773 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
6775         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
6776         __SIZEOF_INT128__ is defined.
6778 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
6780         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
6781         (rs6000_delegitimize_address): Use it.
6783 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
6785         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
6786         inplace argument.  Store the new address in the original MEM when true.
6787         * emit-rtl.c (change_address_1): Likewise.
6788         (adjust_address_1, adjust_automodify_address_1, offset_address):
6789         Update accordingly.
6790         * rtl.h (plus_constant): Add an inplace argument.
6791         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
6792         when true.  Avoid generating (plus X (const_int 0)).
6793         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
6794         in-place.  Pass true to plus_constant.
6795         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
6797 2014-05-16  Dehao Chen  <dehao@google.com>
6799         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
6801 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
6803         PR target/54089
6804         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
6805         patterns.
6806         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
6808 2014-05-16  Dehao Chen  <dehao@google.com>
6810         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
6811         optimize_function_for_size_p.
6812         * regs.h (REG_FREQ_FROM_BB): Likewise.
6814 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
6816         PR target/51244
6817         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
6818         negt_reg_operand cases.
6819         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
6820         predicate.
6821         * config/sh/predicates.md (cbranch_treg_value): Simplify.
6823 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
6825         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
6826         target variants.
6828 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
6830         Revert:
6831         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
6833         * tree-cfg.c (dump_function_to_file): Dump the return type of
6834         functions, in a line to itself before the function body, mimicking
6835         the layout of a C function.
6837 2014-05-16  Dehao Chen  <dehao@google.com>
6839         * cfghooks.c (make_forwarder_block): Use direct computation to
6840         get fall-through edge's count and frequency.
6842 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
6844         * config/arc/arc.c (arc_init): Fix typo in error message.
6845         * config/i386/i386.c (ix86_expand_builtin): Likewise.
6846         (split_stack_prologue_scratch_regno): Likewise.
6847         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
6848         word from error message.
6850 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6852         * ira-costs.c: Fix typo in comment.
6854 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
6856         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
6858 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
6860         * varpool.c (dump_varpool_node): Dump write-only flag.
6861         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
6862         write-only flag.
6863         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
6864         write-only variables.
6865         * ipa.c (process_references): New function.
6866         (set_readonly_bit): New function.
6867         (set_writeonly_bit): New function.
6868         (clear_addressable_bit): New function.
6869         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
6870         fix handling of aliases.
6871         * cgraph.h (struct varpool_node): Add writeonly flag.
6873 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
6875         PR rtl-optimization/60969
6876         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
6877         Calculate costs for this case.
6879 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
6881         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
6882         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
6884 2014-05-16  Richard Biener  <rguenther@suse.de>
6886         PR tree-optimization/61194
6887         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
6888         bool patterns ending in a COND_EXPR.
6890 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6892         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
6894 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6896         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
6897         where we were unable to cost an RTX.
6899 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6901         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
6902         HIGH, LO_SUM.
6904 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6905             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6907         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
6909 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6910             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6912         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
6913         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
6915 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6916             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6918         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
6919         operators.
6921 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6922             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6924         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
6925         DIV/MOD.
6927 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6928             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6930         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
6931         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
6933 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6934             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6936         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
6937         rotates and shifts.
6939 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6940             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6942         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
6943         ZERO_EXTEND and SIGN_EXTEND better.
6945 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6946             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6948         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
6949         logical operations.
6951 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6952             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6954         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
6955         costs when costing loads and stores to memory.
6957 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6958             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
6960         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
6961         for SET RTX.
6963 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6965         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
6967 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6968             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6970         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
6971         to...
6972         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
6973         well formed.
6974         (aarch64_rtx_mult_cost): New.
6975         (aarch64_rtx_costs): Use it, refactor as appropriate.
6977 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6978             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6980         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
6981         emit instructions, return number of instructions which would
6982         be emitted.
6983         (aarch64_add_constant): Update call to aarch64_build_constant.
6984         (aarch64_output_mi_thunk): Likewise.
6985         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
6986         a CONST_DOUBLE.
6988 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6990         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
6991         (TARGET_RTX_COSTS): Call it.
6993 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
6995         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
6996         (cortexa57_vector_cost): Likewise.
6997         (cortexa57_tunings): Use them.
6999 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
7001         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
7002         (cpu_addrcost_table): Use it.
7003         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
7004         (aarch64_address_cost): Rewrite using aarch64_classify_address,
7005         move it.
7007 2014-05-16  Richard Biener  <rguenther@suse.de>
7009         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
7010         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
7011         (visit_phi): Ignore edges marked as not executable.
7012         (class cond_dom_walker): New.
7013         (cond_dom_walker::before_dom_children): Value-number
7014         control statements and mark successor edges as not
7015         executable if possible.
7016         (run_scc_vn): First walk all control statements in
7017         dominator order, marking edges as not executable.
7018         * tree-inline.c (copy_edges_for_bb): Be not confused
7019         about random edge flags.
7021 2014-05-16  Richard Biener  <rguenther@suse.de>
7023         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
7025 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
7027         PR target/61193
7028         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
7029         (__TM_simple_begin): Use it.
7030         (__TM_begin): Likewise.
7032 2014-05-15  Martin Jambor  <mjambor@suse.cz>
7034         PR ipa/61085
7035         * ipa-prop.c (update_indirect_edges_after_inlining): Check
7036         type_preserved flag when the indirect edge is polymorphic.
7038 2014-05-15  Martin Jambor  <mjambor@suse.cz>
7040         PR tree-optimization/61090
7041         * tree-sra.c (sra_modify_expr): Pass the current gsi to
7042         build_ref_for_model.
7044 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7046         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
7047         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
7049 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
7051         PR tree-optimization/61158
7052         * fold-const.c (fold_binary_loc): If X is zero-extended and
7053         shiftc >= prec, make sure zerobits is all ones instead of
7054         invoking undefined behavior.
7056 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7058         * regcprop.h: New file.
7059         * regcprop.c (skip_debug_insn_p): New decl.
7060         (replace_oldest_value_reg): Check skip_debug_insn_p.
7061         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
7062         * shrink-wrap.c: Include regcprop.h.
7063         (prepare_shrink_wrap): Call
7064         copyprop_hardreg_forward_bb_without_debug_insn.
7066 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7068         * shrink-wrap.h: Update comment.
7069         * shrink-wrap.c: Update comment.
7070         (next_block_for_reg): Rename to live_edge_for_reg.
7071         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
7072         (move_insn_for_shrink_wrap): Split live_edge.
7073         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
7075 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
7077         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
7078         Delete.
7079         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
7080         * config/sparc/sparc.md (fptype_ut699): New attribute.
7081         (in_branch_delay): Return false if -mfix-ut699 is specified and
7082         fptype_ut699 is set to single.
7083         (truncdfsf2): Add fptype_ut699 attribute.
7084         (fix_truncdfsi2): Likewise.
7085         (floatsisf2): Change fptype attribute.
7086         (fix_truncsfsi2): Likewise.
7087         (negtf2_notv9): Delete.
7088         (negtf2_v9): Likewise.
7089         (negtf2_hq): New instruction.
7090         (negtf2): New instruction and splitter.
7091         (negdf2_notv9): Rewrite.
7092         (abstf2_notv9): Delete.
7093         (abstf2_hq_v9): Likewise.
7094         (abstf2_v9): Likewise.
7095         (abstf2_hq): New instruction.
7096         (abstf2): New instruction and splitter.
7097         (absdf2_notv9): Rewrite.
7099 2014-05-14  Cary Coutant  <ccoutant@google.com>
7101         PR debug/61013
7102         * opts.c (common_handle_option): Don't special-case "-g".
7103         (set_debug_level): Default to at least level 2 with "-g".
7105 2014-05-14  DJ Delorie  <dj@redhat.com>
7107         * config/msp430/msp430.c (msp430_builtin): Add
7108         MSP430_BUILTIN_DELAY_CYCLES.
7109         (msp430_init_builtins): Register void __delay_cycles(long long).
7110         (msp430_builtin_decl): Add it.
7111         (cg_magic_constant): New.
7112         (msp430_expand_delay_cycles): New.
7113         (msp430_expand_builtin): Call it.
7114         (msp430_print_operand_raw): Change integer printing from "int" to
7115         HOST_WIDE_INT.
7116         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
7117         (delay_cycles_start): New.
7118         (delay_cycles_end): New.
7119         (delay_cycles_32): New.
7120         (delay_cycles_32x): New.
7121         (delay_cycles_16): New.
7122         (delay_cycles_16x): New.
7123         (delay_cycles_2): New.
7124         (delay_cycles_1): New.
7125         * doc/extend.texi: Document __delay_cycles().
7127 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
7129         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
7130         length attribute computation.
7132 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
7134         PR debug/61188
7135         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
7137 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
7139         PR target/61084
7140         * config/sparc/sparc.md: Fix types of low and high in DI constant
7141         splitter.  Use gen_int_mode in some other splitters.
7143 2014-05-14  Martin Jambor  <mjambor@suse.cz>
7145         PR ipa/60897
7146         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
7148 2014-05-14  James Norris  <jnorris@codesourcery.com>
7150         * omp-low.c (expand_parallel_call): Remove shadow variable.
7151         (expand_omp_taskreg): Likewise.
7153 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
7155         * common/config/i386/i386-common.c
7156         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
7157         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
7158         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
7159         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
7160         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
7161         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
7162         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
7163         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
7164         xsavecintrin.h, xsavesintrin.h.
7165         (x86_64-*-*): Ditto.
7166         * config/i386/clflushoptintrin.h: New.
7167         * config/i386/xsavecintrin.h: Ditto.
7168         * config/i386/xsavesintrin.h: Ditto.
7169         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
7170         (bit_XSAVES): Ditto.
7171         (bit_XSAVES): Ditto.
7172         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
7173         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
7174         -mno-clflushopt.
7175         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7176         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
7177         OPTION_MASK_ISA_XSAVES.
7178         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
7179         -mxsavec, -mxsaves.
7180         (PTA_CLFLUSHOPT) Define.
7181         (PTA_XSAVEC): Ditto.
7182         (PTA_XSAVES): Ditto.
7183         (ix86_option_override_internal): Handle new options.
7184         (ix86_valid_target_attribute_inner_p): Ditto.
7185         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
7186         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
7187         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
7188         (bdesc_special_args): Add __builtin_ia32_xsaves,
7189         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
7190         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
7191         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
7192         (ix86_expand_builtin): Handle new builtins.
7193         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
7194         (TARGET_CLFLUSHOPT_P): Ditto.
7195         (TARGET_XSAVEC): Ditto.
7196         (TARGET_XSAVEC_P): Ditto.
7197         (TARGET_XSAVES): Ditto.
7198         (TARGET_XSAVES_P): Ditto.
7199         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
7200         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
7201         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
7202         (ANY_XRSTOR): New.
7203         (ANY_XRSTOR64): Ditto.
7204         (xrstor): Ditto.
7205         (xrstor): Change into <xrstor>.
7206         (xrstor_rex64): Change into <xrstor>_rex64.
7207         (xrstor64): Change into <xrstor>64
7208         (clflushopt): New.
7209         * config/i386/i386.opt (mclflushopt): New.
7210         (mxsavec): Ditto.
7211         (mxsaves): Ditto.
7212         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
7213         xsavecintrin.h.
7214         * doc/invoke.texi: Document new options.
7216 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
7218         PR rtl-optimization/60866
7219         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
7220         Default it to -1.  Pass it down to init_simplejump_data.
7221         (init_simplejump_data): New parameter old_seqno.  Pass it down
7222         to get_seqno_for_a_jump.
7223         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
7224         initializing new jump seqno as a last resort.  Add comment.
7225         (sel_redirect_edge_and_branch): Save old seqno of the conditional
7226         jump and pass it down to sel_init_new_insn.
7227         (sel_redirect_edge_and_branch_force): Likewise.
7229 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
7231         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
7232         shifted values to avoid build warning.
7234 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
7236         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
7237         * cfgrtl.c (rtl_merge_blocks): Fix comment.
7238         (cfg_layout_merge_blocks): Likewise.
7239         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
7241 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
7243         PR rtl-optimization/60901
7244         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
7245         bb predecessor belongs to the same scheduling region.  Adjust comment.
7247 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
7249         * doc/sourcebuild.texi: (dfp_hw): Document.
7250         (p8vector_hw): Likewise.
7251         (powerpc_eabi_ok): Likewise.
7252         (powerpc_elfv2): Likewise.
7253         (powerpc_htm_ok): Likewise.
7254         (ppc_recip_hw): Likewise.
7255         (vsx_hw): Likewise.
7257 2014-05-13  Cary Coutant  <ccoutant@google.com>
7259         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
7261 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
7263         * gengtype-parse.c (require3): Eliminate in favor of...
7264         (require4): New.
7265         (require_template_declaration): Update to support optional single *
7266         on a type.
7268         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
7269         (create_user_defined_type): Handle a single level of explicit
7270         pointerness within template arguments.
7271         (struct write_types_data): Add field "kind".
7272         (filter_type_name): Handle "*" character.
7273         (write_user_func_for_structure_ptr): Require a write_types_data
7274         rather than just a prefix string, so that we can look up the kind
7275         of the wtd and use it as an index into wrote_user_func_for_ptr,
7276         ensuring that such functions are written at most once.  Support
7277         subclasses by invoking the marking function of the ultimate base class.
7278         (write_user_func_for_structure_body): Require a write_types_data
7279         rather than just a prefix string, so that we can pass this to
7280         write_user_func_for_structure_ptr.
7281         (write_func_for_structure): Likewise.
7282         (ggc_wtd): Add initializer of new "kind" field.
7283         (pch_wtd): Likewise.
7285         * gengtype.h (enum write_types_kinds): New.
7286         (struct type): Add field wrote_user_func_for_ptr to the "s"
7287         union member.
7289 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
7291         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
7292         instead of const_binop.
7293         (fold_binary_loc): Likewise.
7295 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
7297         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
7298         calculation to match get_ref_base_and_extent.
7300 2014-05-13  Catherine Moore  <clm@codesourcery.com>
7301             Sandra Loosemore  <sandra@codesourcery.com>
7303         * configure.ac: Fix assembly for explicit JALR relocation check.
7304         * configure: Regenerate.
7306 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7308         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
7309         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
7310         Remove associated type declarations and initialisations.
7311         (arm_expand_neon_builtin): Likewise.
7312         (neon_emit_pair_result_insn): Delete.
7313         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
7314         * config/arm/neon.md (neon_vtrn<mode>): Delete.
7315         (neon_vzip<mode>): Likewise.
7316         (neon_vuzp<mode>): Likewise.
7318 2014-05-13  Richard Biener  <rguenther@suse.de>
7320         PR ipa/60973
7321         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
7322         it needs revisiting whether the call still may be tail-called.
7324 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
7326         * rtl.def (SYMBOL_REF): Remove middle "0" field.
7327         * rtl.h (block_symbol): Reduce number of fields to 2.
7328         (rtx_def): Add u2.symbol_ref_flags.
7329         (SYMBOL_REF_FLAGS): Use it.
7330         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
7331         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
7332         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
7333         Lower index of SYMBOL_REF_DATA.
7334         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
7335         Print SYMBOL_REF_FLAGS at the same time.
7336         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
7338 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
7340         * rtl.def (VAR_LOCATION): Remove "i" field.
7341         * rtl.h (rtx_def): Add u2.var_location_status.
7342         (PAT_VAR_LOCATION_STATUS): Use it.
7343         (gen_rtx_VAR_LOCATION): Declare.
7344         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
7345         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
7346         * var-tracking.c (emit_note_insn_var_location): Remove casts.
7348 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
7350         * rtl.def (scratch): Fix outdated comment and remove "0" field.
7351         * gengtype.c (adjust_field_rtx_def): Update accordingly.
7353 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
7355         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
7356         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
7357         * rtl.h (rtx_def): Add insn_uid to u2 field.
7358         (RTX_FLAG_CHECK8): Delete in favor of...
7359         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
7360         (INSN_DELETED_P): Update accordingly.
7361         (INSN_UID): Use u2.insn_uid.
7362         (INSN_CHAIN_CODE_P): Define.
7363         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
7364         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
7365         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
7366         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
7367         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
7368         indices accordingly.
7369         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
7370         Update indices for insn-chain rtxes.
7371         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
7372         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
7373         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
7374         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
7375         * combine.c (try_combine): Likewise.
7376         * ira.c (setup_prohibited_mode_move_regs): Likewise.
7378 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
7380         * rtl.def (REG): Remove middle field.
7381         * rtl.h (rtx_def): Add orignal_regno to u2.
7382         (ORIGINAL_REGNO): Use it instead of field 1.
7383         (REG_ATTRS): Lower field index accordingly.
7384         * gengtype.c (adjust_field_rtx_def): Remove handling of
7385         ORIGINAL_REGNO.  Move REG_ATTRS index down.
7386         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
7387         code that prints the REGNO.
7389 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
7391         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
7392         GENERATOR_FILE.
7394 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
7396         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
7398 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
7400         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
7401         (alloc_iv): Lower base expressions containing ADDR_EXPR.
7403 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
7405         * config/aarch64/aarch64-protos.h
7406         (aarch64_hard_regno_caller_save_mode): New prototype.
7407         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
7408         New function.
7409         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
7411 2014-05-13  Christian Bruel  <christian.bruel@st.com>
7413         * target.def (mode_switching): New hook vector.
7414         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
7415         (mode_exit, modepriority_to_mode): Likewise.
7416         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
7417         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
7418         * target.h: Include tm.h and hard-reg-set.h.
7419         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
7420         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
7421         * doc/tm.texi Regenerate.
7422         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
7423         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
7424         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
7425         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
7426         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
7427         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
7428         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
7429         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
7430         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
7431         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
7432         (ix86_emit_mode_set): Hookify.
7433         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
7434         Delete.
7435         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
7436         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
7437         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
7438         (epiphany_mode_priority_to_mode): Remove declaration.
7439         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
7440         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
7441         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
7442         Likewise.
7443         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
7444         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
7445         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
7447 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
7449         PR target/61060
7450         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
7451         is const0_rtx, return immediately.  Don't test count == 0 when
7452         it is always true.
7454 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7456         * Makefile.in: add shrink-wrap.o.
7457         * config/i386/i386.c: include "shrink-wrap.h"
7458         * function.c: Likewise.
7459         (requires_stack_frame_p, next_block_for_reg,
7460         move_insn_for_shrink_wrap, prepare_shrink_wrap,
7461         dup_block_and_redirect): Move to shrink-wrap.c
7462         (thread_prologue_and_epilogue_insns): Extract three code segments
7463         as functions in shrink-wrap.c
7464         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
7465         shrink-wrap.h
7466         * shrink-wrap.c: New file.
7467         * shrink-wrap.h: New file.
7469 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
7471         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
7472         reference to Solaris.
7474 2014-05-12  Mike Stump  <mikestump@comcast.net>
7476         PR other/31778
7477         * genattrtab.c (filename): Add.
7478         (convert_set_attr_alternative): Improve error message.
7479         (check_defs): Restore read_md_filename for error messages.
7480         (gen_insn): Save filename.
7482 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
7484         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
7485         -fno-local-ivars and -fivar-visibility.
7486         * c-family/c.opt: Make -Wshadow also implicitly enable
7487         -Wshadow-ivar.
7489 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
7491         * doc/tm.texi: Remove reference to deleted macro.
7492         * doc/tm.texi.in: Likewise.
7494 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7496         PR target/60991
7497         * config/avr/avr.c (avr_out_store_psi): Use correct constant
7498         to restore Y.
7500 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
7502         PR libgcc/61152
7503         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
7504         * config/arm/aout.h (License): Same.
7505         * config/arm/bpabi.h (License): Same.
7506         * config/arm/elf.h (License): Same.
7507         * config/arm/linux-elf.h (License): Same.
7508         * config/arm/linux-gas.h (License): Same.
7509         * config/arm/netbsd-elf.h (License): Same.
7510         * config/arm/uclinux-eabi.h (License): Same.
7511         * config/arm/uclinux-elf.h (License): Same.
7512         * config/arm/vxworks.h (License): Same.
7514 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
7516         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
7517         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
7518         number of operands to 3.
7519         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
7520         * tree-nested.c (convert_nonlocal_omp_clauses,
7521         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
7522         * gimplify.c (gimplify_scan_omp_clauses): Handle
7523         OMP_CLAUSE_LINEAR_STMT.
7524         * omp-low.c (lower_rec_input_clauses): Fix typo.
7525         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
7526         cast between Fortran boolean_type_node and C _Bool if
7527         needed.
7529 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
7531         PR tree-optimization/61136
7532         * wide-int.h (multiple_of_p): Define a version that doesn't return
7533         the quotient.
7534         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
7535         integer_zerop/const_binop pair.
7536         (multiple_of_p): Likewise, converting both operands to widest_int
7537         precision.
7539 2014-05-09  Teresa Johnson  <tejohnson@google.com>
7541         * cgraphunit.c (analyze_functions): Use correct dump file.
7543 2014-05-09  Florian Weimer  <fweimer@redhat.com>
7545         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
7546         expand_used_vars.
7547         (stack_protect_return_slot_p): New function.
7548         (expand_used_vars): Call stack_protect_decl_p and
7549         stack_protect_return_slot_p for -fstack-protector-strong.
7551 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
7552         Andrew Haley <aph@redhat.com>
7553         Richard Sandiford <rdsandiford@googlemail.com>
7555         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
7556         pages.
7558 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
7560         PR middle-end/61111
7561         * fold-const.c (fold_binary_loc): Changed width of mask.
7563 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
7565         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
7566         unsigned int initializers for regno_in, regno_out.
7568 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
7570         PR target/61055
7571         * config/avr/avr.md (cc): Add new attribute set_vzn.
7572         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
7573         Set cc insn attribute to set_vzn instead of set_zn for alternatives
7574         with INC, DEC or NEG.
7575         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
7576         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
7577         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
7579 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7581         Revert:
7582         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7584         * wide-int.cc (UTItype): Define.
7585         (UDWtype): Define for appropriate W_TYPE_SIZE.
7587 2014-05-09  Richard Biener  <rguenther@suse.de>
7589         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
7590         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
7591         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
7592         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
7593         ssa_propagate): Adjust.
7595 2014-05-08  Jeff Law  <law@redhat.com>
7597         PR tree-optimization/61009
7598         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
7599         tri-state rather than a boolean.  When a block is too big to
7600         thread through, inform caller via negative return value.
7601         (thread_across_edge): If a block was too big for normal threading,
7602         then it's too big for a joiner too, so remove temporary equivalences
7603         and return immediately.
7605 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7606             Matthias Klose  <doko@ubuntu.com>
7608         PR driver/61106
7609         * optc-gen.awk: Fix option handling for -Wunused-parameter.
7611 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
7613         PR target/59952
7614         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
7616 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
7618         PR target/61092
7619         * config/alpha/alpha.c: Include gimple-iterator.h.
7620         (alpha_gimple_fold_builtin): New function.  Move
7621         ALPHA_BUILTIN_UMULH folding from ...
7622         (alpha_fold_builtin): ... here.
7623         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
7625 2014-05-08  Wei Mi  <wmi@google.com>
7627         PR target/58066
7628         * config/i386/i386.c (ix86_compute_frame_layout): Update
7629         preferred_stack_boundary for call, expanded from tls descriptor.
7630         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
7631         to depend on SP register.
7632         (*tls_local_dynamic_base_32_gnu): Ditto.
7633         (*tls_local_dynamic_32_once): Ditto.
7634         (tls_global_dynamic_64_<mode>): Set
7635         ix86_tls_descriptor_calls_expanded_in_cfun.
7636         (tls_local_dynamic_base_64_<mode>): Ditto.
7637         (tls_global_dynamic_32): Set
7638         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
7639         to depend on SP register.
7640         (tls_local_dynamic_base_32): Ditto.
7642 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7644         * config/arm/arm_neon.h: Update comment.
7645         * config/arm/neon-docgen.ml: Delete.
7646         * config/arm/neon-gen.ml: Delete.
7647         * doc/arm-neon-intrinsics.texi: Update comment.
7649 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7651         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
7652         and v4sf versions.
7653         (vand, vorr, veor, vorn, vbic): Remove.
7654         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
7655         iterator.
7656         (neon_vsub_unspec): Likewise.
7657         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
7659 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7661         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
7662         (vadd_s16): Likewise.
7663         (vadd_s32): Likewise.
7664         (vadd_f32): Likewise.
7665         (vadd_u8): Likewise.
7666         (vadd_u16): Likewise.
7667         (vadd_u32): Likewise.
7668         (vadd_s64): Likewise.
7669         (vadd_u64): Likewise.
7670         (vaddq_s8): Likewise.
7671         (vaddq_s16): Likewise.
7672         (vaddq_s32): Likewise.
7673         (vaddq_s64): Likewise.
7674         (vaddq_f32): Likewise.
7675         (vaddq_u8): Likewise.
7676         (vaddq_u16): Likewise.
7677         (vaddq_u32): Likewise.
7678         (vaddq_u64): Likewise.
7679         (vmul_s8): Likewise.
7680         (vmul_s16): Likewise.
7681         (vmul_s32): Likewise.
7682         (vmul_f32): Likewise.
7683         (vmul_u8): Likewise.
7684         (vmul_u16): Likewise.
7685         (vmul_u32): Likewise.
7686         (vmul_p8): Likewise.
7687         (vmulq_s8): Likewise.
7688         (vmulq_s16): Likewise.
7689         (vmulq_s32): Likewise.
7690         (vmulq_f32): Likewise.
7691         (vmulq_u8): Likewise.
7692         (vmulq_u16): Likewise.
7693         (vmulq_u32): Likewise.
7694         (vsub_s8): Likewise.
7695         (vsub_s16): Likewise.
7696         (vsub_s32): Likewise.
7697         (vsub_f32): Likewise.
7698         (vsub_u8): Likewise.
7699         (vsub_u16): Likewise.
7700         (vsub_u32): Likewise.
7701         (vsub_s64): Likewise.
7702         (vsub_u64): Likewise.
7703         (vsubq_s8): Likewise.
7704         (vsubq_s16): Likewise.
7705         (vsubq_s32): Likewise.
7706         (vsubq_s64): Likewise.
7707         (vsubq_f32): Likewise.
7708         (vsubq_u8): Likewise.
7709         (vsubq_u16): Likewise.
7710         (vsubq_u32): Likewise.
7711         (vsubq_u64): Likewise.
7712         (vand_s8): Likewise.
7713         (vand_s16): Likewise.
7714         (vand_s32): Likewise.
7715         (vand_u8): Likewise.
7716         (vand_u16): Likewise.
7717         (vand_u32): Likewise.
7718         (vand_s64): Likewise.
7719         (vand_u64): Likewise.
7720         (vandq_s8): Likewise.
7721         (vandq_s16): Likewise.
7722         (vandq_s32): Likewise.
7723         (vandq_s64): Likewise.
7724         (vandq_u8): Likewise.
7725         (vandq_u16): Likewise.
7726         (vandq_u32): Likewise.
7727         (vandq_u64): Likewise.
7728         (vorr_s8): Likewise.
7729         (vorr_s16): Likewise.
7730         (vorr_s32): Likewise.
7731         (vorr_u8): Likewise.
7732         (vorr_u16): Likewise.
7733         (vorr_u32): Likewise.
7734         (vorr_s64): Likewise.
7735         (vorr_u64): Likewise.
7736         (vorrq_s8): Likewise.
7737         (vorrq_s16): Likewise.
7738         (vorrq_s32): Likewise.
7739         (vorrq_s64): Likewise.
7740         (vorrq_u8): Likewise.
7741         (vorrq_u16): Likewise.
7742         (vorrq_u32): Likewise.
7743         (vorrq_u64): Likewise.
7744         (veor_s8): Likewise.
7745         (veor_s16): Likewise.
7746         (veor_s32): Likewise.
7747         (veor_u8): Likewise.
7748         (veor_u16): Likewise.
7749         (veor_u32): Likewise.
7750         (veor_s64): Likewise.
7751         (veor_u64): Likewise.
7752         (veorq_s8): Likewise.
7753         (veorq_s16): Likewise.
7754         (veorq_s32): Likewise.
7755         (veorq_s64): Likewise.
7756         (veorq_u8): Likewise.
7757         (veorq_u16): Likewise.
7758         (veorq_u32): Likewise.
7759         (veorq_u64): Likewise.
7760         (vbic_s8): Likewise.
7761         (vbic_s16): Likewise.
7762         (vbic_s32): Likewise.
7763         (vbic_u8): Likewise.
7764         (vbic_u16): Likewise.
7765         (vbic_u32): Likewise.
7766         (vbic_s64): Likewise.
7767         (vbic_u64): Likewise.
7768         (vbicq_s8): Likewise.
7769         (vbicq_s16): Likewise.
7770         (vbicq_s32): Likewise.
7771         (vbicq_s64): Likewise.
7772         (vbicq_u8): Likewise.
7773         (vbicq_u16): Likewise.
7774         (vbicq_u32): Likewise.
7775         (vbicq_u64): Likewise.
7776         (vorn_s8): Likewise.
7777         (vorn_s16): Likewise.
7778         (vorn_s32): Likewise.
7779         (vorn_u8): Likewise.
7780         (vorn_u16): Likewise.
7781         (vorn_u32): Likewise.
7782         (vorn_s64): Likewise.
7783         (vorn_u64): Likewise.
7784         (vornq_s8): Likewise.
7785         (vornq_s16): Likewise.
7786         (vornq_s32): Likewise.
7787         (vornq_s64): Likewise.
7788         (vornq_u8): Likewise.
7789         (vornq_u16): Likewise.
7790         (vornq_u32): Likewise.
7791         (vornq_u64): Likewise.
7793 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7795         * wide-int.cc (UTItype): Define.
7796         (UDWtype): Define for appropriate W_TYPE_SIZE.
7798 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
7800         PR tree-optimization/59100
7801         * tree-ssa-phiopt.c: Include tree-inline.h.
7802         (neutral_element_p, absorbing_element_p): New functions.
7803         (value_replacement): Handle conditional binary operations with a
7804         neutral or absorbing element.
7806 2014-05-08  Richard Biener  <rguenther@suse.de>
7808         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
7809         folding the expression.
7810         (valueize_expr): Remove.
7811         (visit_reference_op_load): Do not valueize the result of
7812         vn_get_expr_for.
7813         (simplify_binary_expression): Likewise.
7814         (simplify_unary_expression): Likewise.
7816 2014-05-08  Richard Biener  <rguenther@suse.de>
7818         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
7819         looking at TYPE_ARG_TYPES.
7821 2014-05-08  Richard Biener  <rguenther@suse.de>
7823         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
7824         pointer propagation special-case.
7826 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
7828         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
7829         core part of address expressions.
7831 2014-05-08  Alan Modra  <amodra@gmail.com>
7833         PR target/60737
7834         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
7835         loads and stores when -mno-strict-align at any alignment.
7836         (expand_block_clear): Similarly.  Also correct calculation of
7837         instruction count.
7839 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7841         PR middle-end/39246
7842         * tree-complex.c (expand_complex_move): Keep line info when expanding
7843         complex move.
7844         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
7845         of complex expression. Use new argument to display correct location
7846         for values coming from phi statement.
7847         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
7848         (warn_uninitialized_phi): Pass location of phi argument to
7849         warn_uninit.
7850         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
7851         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
7853 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
7855         * config/rs6000/predicates.md (indexed_address_mem): New.
7856         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
7857         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
7858         fpstore_ux, fpstore_u.
7859         (sign_extend, indexed, update): New.
7860         (cell_micro): Adjust.
7861         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
7862         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
7863         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
7864         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
7865         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
7866         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
7867         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
7868         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
7869         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
7870         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
7871         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
7872         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
7873         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
7874         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
7875         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
7877         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
7878         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
7879         *vsx_extract_<mode>_store): Adjust.
7880         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
7881         is_cracked_insn, insn_must_be_first_in_group,
7882         insn_must_be_last_in_group): Adjust.
7884         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
7885         Adjust.
7886         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
7887         ppc440-fpstore): Adjust.
7888         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
7889         ppc476-fpstore): Adjust.
7890         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
7891         ppc601-fpstore): Adjust.
7892         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
7893         Adjust.
7894         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
7895         Adjust.
7896         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
7897         ppc7450-fpstore): Adjust.
7898         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
7899         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
7900         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
7901         Adjust.
7902         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
7903         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
7904         cell-fpstore, cell-fpstore-update): Adjust.
7905         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
7906         ppce300c3_store, ppce300c3_fpstore): Adjust.
7907         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
7908         e500mc_fpstore): Adjust.
7909         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
7910         e500mc64_store, e500mc64_fpstore): Adjust.
7911         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
7912         e5500_fpstore): Adjust.
7913         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
7914         e6500_fpstore): Adjust.
7915         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
7916         Adjust.
7917         * config/rs6000/power4.md (power4-load, power4-load-ext,
7918         power4-load-ext-update, power4-load-ext-update-indexed,
7919         power4-load-update-indexed, power4-load-update, power4-fpload,
7920         power4-fpload-update, power4-store, power4-store-update,
7921         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
7922         Adjust.
7923         * config/rs6000/power5.md (power5-load, power5-load-ext,
7924         power5-load-ext-update, power5-load-ext-update-indexed,
7925         power5-load-update-indexed, power5-load-update, power5-fpload,
7926         power5-fpload-update, power5-store, power5-store-update,
7927         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
7928         Adjust.
7929         * config/rs6000/power6.md (power6-load, power6-load-ext,
7930         power6-load-update, power6-load-update-indexed,
7931         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
7932         power6-fpload-update, power6-store, power6-store-update,
7933         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
7934         Adjust.
7935         * config/rs6000/power7.md (power7-load, power7-load-ext,
7936         power7-load-update, power7-load-update-indexed,
7937         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
7938         power7-fpload-update, power7-store, power7-store-update,
7939         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
7940         Adjust.
7941         * config/rs6000/power8.md (power8-load, power8-load-update,
7942         power8-load-ext, power8-load-ext-update, power8-fpload,
7943         power8-fpload-update, power8-store, power8-store-update-indexed,
7944         power8-fpstore, power8-fpstore-update): Adjust.
7945         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
7946         Adjust.
7947         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
7948         titan_lsu_store, titan_lsu_fpstore): Adjust.
7949         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
7951 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
7953         PR target/60884
7954         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
7955         unrolled byte insns.  Emit address increments after move insns.
7957 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
7959         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
7960         const_gimple, rather than a gimple.
7961         (gimple_call_builtin_p): Likewise, for the three variants.
7963         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
7964         (gimple_call_builtin_p): Likewise, for the three variants.
7966 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
7968         PR tree-optimization/61095
7969         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
7971 2014-05-07  Richard Biener  <rguenther@suse.de>
7973         PR tree-optimization/61034
7974         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
7975         (maybe_skip_until): Use translate to take into account
7976         lattices when trying to do disambiguations.
7977         (get_continuation_for_phi_1): Likewise.
7978         (get_continuation_for_phi): Adjust for added translate arguments.
7979         (walk_non_aliased_vuses): Likewise.
7980         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
7981         (walk_non_aliased_vuses): Likewise.
7982         (call_may_clobber_ref_p_1): Declare.
7983         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
7984         calls.  Stop early if we are only supposed to disambiguate.
7985         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
7987 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
7989         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
7990         Emit an error when the function has arguments.
7992 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
7994         * cfgloop.h (unswitch_loops): Remove.
7995         * doc/passes.texi: Remove references to loop-unswitch.c
7996         * timevar.def (TV_LOOP_UNSWITCH): Remove.
7998 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
8000         * tree-vect-data-refs.c (vect_grouped_load_supported): New
8001         check for loads group of length 3.
8002         (vect_permute_load_chain): New permutations for loads group of
8003         length 3.
8004         * tree-vect-stmts.c (vect_model_load_cost): Change cost
8005         of vec_perm_shuffle for the new permutations.
8007 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
8009         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
8010         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
8011         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
8012         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
8013         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
8014         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
8015         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
8016         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
8018 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
8020         * loop-unswitch.c: Delete.
8022 2014-05-07  Richard Biener  <rguenther@suse.de>
8024         * config.gcc: Always set need_64bit_hwint to yes.
8026 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
8028         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
8029         of using optimize_size.
8031 2014-05-06  Mike Stump  <mikestump@comcast.net>
8033         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
8035 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
8037         * config/i386/sse.md (*mov<mode>_internal)
8038         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
8039         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
8040         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
8041         (*<code><mode>3, *andnot<mode>3<mask_name>)
8042         (<mask_codefor><code><mode>3<mask_name>): Only consider
8043         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
8045 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
8047         Revert:
8048         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
8050         * lra-constraints.c (valid_address_p): Move earlier in file.
8051         Add a constraint argument to the address_info version.
8052         (satisfies_memory_constraint_p): New function.
8053         (satisfies_address_constraint_p): Likewise.
8054         (process_alt_operands, curr_insn_transform): Use them.
8055         (process_address): Pass the constraint to valid_address_p when
8056         checking address operands.
8058 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
8060         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
8061         to their respective blocks.  Fix inadvertent use of "node".
8063 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
8065         * emit-rtl.c (init_derived_machine_modes): New functionm, split
8066         out from...
8067         (init_emit_once): ...here.
8068         * rtl.h (init_derived_machine_modes): Declare.
8069         * toplev.c (do_compile): Call it even if no_backend.
8071 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
8072             Mike Stump  <mikestump@comcast.net>
8073             Richard Sandiford  <rdsandiford@googlemail.com>
8074             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8076         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
8077         (rtx_equal_for_memref_p): Update comment.
8078         (adjust_offset_for_component_ref): Use wide-int interfaces.
8079         * builtins.c (get_object_alignment_2): Likewise.
8080         (c_readstr): Likewise.
8081         (target_char_cast): Add comment.
8082         (determine_block_size): Use wide-int interfaces.
8083         (expand_builtin_signbit): Likewise.
8084         (fold_builtin_int_roundingfn): Likewise.
8085         (fold_builtin_bitop): Likewise.
8086         (fold_builtin_bswap): Likewise.
8087         (fold_builtin_logarithm): Use signop.
8088         (fold_builtin_pow): Likewise.
8089         (fold_builtin_memory_op): Use wide-int interfaces.
8090         (fold_builtin_object_size): Likewise.
8091         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
8092         nb_iterations_estimate.
8093         (record_niter_bound): Use wide-int interfaces.
8094         (get_estimated_loop_iterations_int): Likewise.
8095         (get_estimated_loop_iterations): Likewise.
8096         (get_max_loop_iterations): Likewise.
8097         * cfgloop.h: Include wide-int.h.
8098         (struct nb_iter_bound): Change bound to widest_int.
8099         (struct loop): Change nb_iterations_upper_bound and
8100         nb_iterations_estimate to widest_int.
8101         (record_niter_bound): Switch to use widest_int.
8102         (get_estimated_loop_iterations): Likewise.
8103         (get_max_loop_iterations): Likewise.
8104         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
8105         update for wide-int.
8106         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
8107         * combine.c (try_combine): Likewise.
8108         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
8109         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
8110         interfaces.
8111         (aarch64_float_const_representable_p): Likewise.
8112         * config/arc/arc.c: Include wide-int.h.
8113         (arc_can_use_doloop_p): Use wide-int interfaces.
8114         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
8115         (vfp3_const_double_index): Likewise.
8116         * config/avr/avr.c (avr_out_round): Likewise.
8117         (avr_fold_builtin): Likewise.
8118         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
8119         (bfin_can_use_doloop_p): Likewise.
8120         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
8121         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
8122         * config/i386/i386.c: Include wide-int.h.
8123         (ix86_data_alignment): Use wide-int interfaces.
8124         (ix86_local_alignment): Likewise.
8125         (ix86_emit_swsqrtsf): Update real_from_integer.
8126         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
8127         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
8128         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
8129         (zero_constant): Likewise.
8130         (input_operand): Likewise.
8131         (splat_input_operand): Likewise.
8132         (non_logical_cint_operand): Change const_double to const_wide_int.
8133         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
8134         (easy_altivec_constant): Remove comment.
8135         (paired_expand_vector_init): Use CONSTANT_P.
8136         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
8137         (rs6000_emit_move): Update checks.
8138         (rs6000_aggregate_candidate): Use wide-int interfaces.
8139         (rs6000_expand_ternop_builtin): Likewise.
8140         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
8141         (rs6000_assemble_integer): Likewise.
8142         (rs6000_hash_constant): Likewise.
8143         (output_toc): Likewise.
8144         (rs6000_rtx_costs): Likewise.
8145         (rs6000_emit_swrsqrt); Update call to real_from_integer.
8146         * config/rs6000/rs6000-c.c: Include wide-int.h.
8147         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
8148         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
8149         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
8150         Handle CONST_WIDE_INT.
8151         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
8152         Use tree_fits_uhwi_p.
8153         * config/sparc/sparc.c: Include wide-int.h.
8154         (sparc_fold_builtin): Use wide-int interfaces.
8155         * config/vax/vax.c: Include wide-int.h.
8156         (vax_float_literal): Use real_from_integer.
8157         * coretypes.h (struct hwivec_def): New.
8158         (hwivec): New.
8159         (const_hwivec): New.
8160         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
8161         (equiv_constant): Handle CONST_WIDE_INT.
8162         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
8163         (cselib_hash_rtx): Handle CONST_WIDE_INT.
8164         * dbxout.c (stabstr_U): Use wide-int interfaces.
8165         (dbxout_type): Update to use cst_fits_shwi_p.
8166         * defaults.h (LOG2_BITS_PER_UNIT): Define.
8167         (TARGET_SUPPORTS_WIDE_INT): Add default.
8168         * dfp.c: Include wide-int.h.
8169         (decimal_real_to_integer2): Use wide-int interfaces and rename to
8170         decimal_real_to_integer.
8171         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
8172         decimal_real_to_integer.
8173         * doc/generic.texi (Constant expressions): Update for wide_int.
8174         * doc/rtl.texi (const_double): Likewise.
8175         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
8176         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
8177         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
8178         (REAL_VALUE_FROM_INT): Remove.
8179         (TARGET_SUPPORTS_WIDE_INT): New.
8180         * doc/tm.texi: Regenerate.
8181         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
8182         * double-int.h: Include wide-int.h.
8183         (struct wi::int_traits): New.
8184         * dwarf2out.c (get_full_len): New.
8185         (dw_val_equal_p): Add case dw_val_class_wide_int.
8186         (size_of_loc_descr): Likewise.
8187         (output_loc_operands): Likewise.
8188         (insert_double): Remove.
8189         (insert_wide_int): New.
8190         (add_AT_wide): New.
8191         (print_die): Add case dw_val_class_wide_int.
8192         (attr_checksum): Likewise.
8193         (attr_checksum_ordered): Likewise.
8194         (same_dw_val_p): Likewise.
8195         (size_of_die): Likewise.
8196         (value_format): Likewise.
8197         (output_die): Likewise.
8198         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
8199         Use wide-int.
8200         (clz_loc_descriptor): Use wide-int interfaces.
8201         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
8202         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
8203         (round_up_to_align): Use wide-int interfaces.
8204         (field_byte_offset): Likewise.
8205         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
8206         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
8207         CONST_DOUBLE handling.  Use wide-int interfaces.
8208         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
8209         (gen_enumeration_type_die): Use add_AT_wide.
8210         (hash_loc_operands): Add case dw_val_class_wide_int.
8211         (compare_loc_operands): Likewise.
8212         * dwarf2out.h: Include wide-int.h.
8213         (wide_int_ptr): New.
8214         (enum dw_val_class): Add dw_val_class_wide_int.
8215         (struct dw_val_struct): Add val_wide.
8216         * emit-rtl.c (const_wide_int_htab): New.
8217         (const_wide_int_htab_hash): New.
8218         (const_wide_int_htab_eq): New.
8219         (lookup_const_wide_int): New.
8220         (const_double_htab_hash): Use wide-int interfaces.
8221         (const_double_htab_eq): Likewise.
8222         (rtx_to_double_int): Conditionally compile for wide-int.
8223         (immed_double_int_const): Rename to immed_wide_int_const and
8224         update for wide-int.
8225         (immed_double_const): Conditionally compile for wide-int.
8226         (init_emit_once): Use wide-int interfaces.
8227         * explow.c (plus_constant): Likewise.
8228         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
8229         (lshift_value): Use wide-int interfaces.
8230         (expand_mult): Likewise.
8231         (choose_multiplier): Likewise.
8232         (expand_smod_pow2): Likewise.
8233         (make_tree): Likewise.
8234         * expr.c (convert_modes): Consolidate handling of constants.
8235         Use wide-int interfaces.
8236         (emit_group_load_1): Add note.
8237         (store_expr): Update comment.
8238         (get_inner_reference): Use wide-int interfaces.
8239         (expand_constructor): Update comment.
8240         (expand_expr_real_2): Use wide-int interfaces.
8241         (expand_expr_real_1): Likewise.
8242         (reduce_to_bit_field_precision): Likewise.
8243         (const_vector_from_tree): Likewise.
8244         * final.c: Include wide-int-print.h.
8245         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
8246         * fixed-value.c: Include wide-int.h.
8247         (fixed_from_string): Use wide-int interfaces.
8248         (fixed_to_decimal): Likewise.
8249         (fixed_convert_from_real): Likewise.
8250         (real_convert_from_fixed): Likewise.
8251         * fold-const.h (mem_ref_offset): Return an offset_int.
8252         (div_if_zero_remainder): Remove code parameter.
8253         * fold-const.c (div_if_zero_remainder): Remove code parameter.
8254         Use wide-int interfaces.
8255         (may_negate_without_overflow_p): Use wide-int interfaces.
8256         (negate_expr_p): Likewise.
8257         (fold_negate_expr): Likewise.
8258         (int_const_binop_1): Likewise.
8259         (const_binop): Likewise.
8260         (fold_convert_const_int_from_int): Likewise.
8261         (fold_convert_const_int_from_real): Likewise.
8262         (fold_convert_const_int_from_fixed): Likewise.
8263         (fold_convert_const_fixed_from_int): Likewise.
8264         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
8265         (sign_bit_p): Use wide-int interfaces.
8266         (make_range_step): Likewise.
8267         (build_range_check): Likewise.  Pass an integer of the correct type
8268         instead of using integer_one_node.
8269         (range_predecessor): Pass an integer of the correct type instead
8270         of using integer_one_node.
8271         (range_successor): Likewise.
8272         (merge_ranges): Likewise.
8273         (unextend): Use wide-int interfaces.
8274         (extract_muldiv_1): Likewise.
8275         (fold_div_compare): Likewise.
8276         (fold_single_bit_test): Likewise.
8277         (fold_sign_changed_comparison): Likewise.
8278         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
8279         (fold_plusminus_mult_expr): Use wide-int interfaces.
8280         (native_encode_int): Likewise.
8281         (native_interpret_int): Likewise.
8282         (fold_unary_loc): Likewise.
8283         (pointer_may_wrap_p): Likewise.
8284         (size_low_cst): Likewise.
8285         (mask_with_tz): Likewise.
8286         (fold_binary_loc): Likewise.
8287         (fold_ternary_loc): Likewise.
8288         (multiple_of_p): Likewise.
8289         (tree_call_nonnegative_warnv_p): Update calls to
8290         tree_int_cst_min_precision and real_from_integer.
8291         (fold_negate_const): Use wide-int interfaces.
8292         (fold_abs_const): Likewise.
8293         (fold_relational_const): Use tree_int_cst_lt.
8294         (round_up_loc): Use wide-int interfaces.
8295         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
8296         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
8297         * gengtype.c: Remove include of double-int.h.
8298         (do_typedef): Use wide-int interfaces.
8299         (open_base_files): Add wide-int.h.
8300         (main): Add offset_int and widest_int typedefs.
8301         * gengtype-lex.l: Handle "^".
8302         (CXX_KEYWORD): Add "static".
8303         * gengtype-parse.c (require3): New.
8304         (require_template_declaration): Handle constant template arguments
8305         and nested templates.
8306         * gengtype-state.c: Don't include "double-int.h".
8307         * genpreds.c (write_one_predicate_function): Update comment.
8308         (write_tm_constrs_h): Add check for hval and lval use in
8309         CONST_WIDE_INT.
8310         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
8311         (add_to_sequence): Likewise.
8312         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
8313         and const_double_operand.
8314         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
8315         interfaces.
8316         * gimple-fold.c (get_base_constructor): Likewise.
8317         (fold_array_ctor_reference): Likewise.
8318         (fold_nonarray_ctor_reference): Likewise.
8319         (fold_const_aggregate_ref_1): Likewise.
8320         (gimple_val_nonnegative_real_p): Likewise.
8321         (gimple_fold_indirect_ref): Likewise.
8322         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
8323         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
8324         (struct slsr_cand_d): Change index to be widest_int.
8325         (struct incr_info_d): Change incr to be widest_int.
8326         (alloc_cand_and_find_basis): Use wide-int interfaces.
8327         (slsr_process_phi): Likewise.
8328         (backtrace_base_for_ref): Likewise.  Return a widest_int.
8329         (restructure_reference): Take a widest_int instead of a double_int.
8330         (slsr_process_ref): Use wide-int interfaces.
8331         (create_mul_ssa_cand): Likewise.
8332         (create_mul_imm_cand): Likewise.
8333         (create_add_ssa_cand): Likewise.
8334         (create_add_imm_cand): Take a widest_int instead of a double_int.
8335         (slsr_process_add): Use wide-int interfaces.
8336         (slsr_process_cast): Likewise.
8337         (slsr_process_copy): Likewise.
8338         (dump_candidate): Likewise.
8339         (dump_incr_vec): Likewise.
8340         (replace_ref): Likewise.
8341         (cand_increment): Likewise.  Return a widest_int.
8342         (cand_abs_increment): Likewise.
8343         (replace_mult_candidate): Take a widest_int instead of a double_int.
8344         (replace_unconditional_candidate): Use wide-int interfaces.
8345         (incr_vec_index): Take a widest_int instead of a double_int.
8346         (create_add_on_incoming_edge): Likewise.
8347         (create_phi_basis): Use wide-int interfaces.
8348         (replace_conditional_candidate): Likewise.
8349         (record_increment): Take a widest_int instead of a double_int.
8350         (record_phi_increments): Use wide-int interfaces.
8351         (phi_incr_cost): Take a widest_int instead of a double_int.
8352         (lowest_cost_path): Likewise.
8353         (total_savings): Likewise.
8354         (analyze_increments): Use wide-int interfaces.
8355         (ncd_with_phi): Take a widest_int instead of a double_int.
8356         (ncd_of_cand_and_phis): Likewise.
8357         (nearest_common_dominator_for_cands): Likewise.
8358         (insert_initializers): Use wide-int interfaces.
8359         (all_phi_incrs_profitable): Likewise.
8360         (replace_one_candidate): Likewise.
8361         (replace_profitable_candidates): Likewise.
8362         * godump.c: Include wide-int-print.h.
8363         (go_output_typedef): Use wide-int interfaces.
8364         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
8365         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
8366         (build_loop_iteration_domains): Likewise.
8367         * hooks.h: Include wide-int.h rather than double-int.h.
8368         (hook_bool_dint_dint_uint_bool_true): Delete.
8369         (hook_bool_wint_wint_uint_bool_true): Declare.
8370         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
8371         (hook_bool_wint_wint_uint_bool_true): New.
8372         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
8373         interfaces.
8374         (ubsan_expand_si_overflow_mul_check): Likewise.
8375         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
8376         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
8377         (get_ancestor_addr_info): Likewise.
8378         (ipa_modify_call_arguments): Likewise.
8379         * loop-doloop.c (doloop_modify): Likewise.
8380         (doloop_optimize): Likewise.
8381         * loop-iv.c (iv_number_of_iterations): Likewise.
8382         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
8383         (unroll_loop_constant_iterations): Likewise.
8384         (decide_unroll_runtime_iterations): Likewise.
8385         (unroll_loop_runtime_iterations): Likewise.
8386         (decide_peel_simple): Likewise.
8387         (decide_unroll_stupid): Likewise.
8388         * lto-streamer-in.c (streamer_read_wi): Add.
8389         (input_cfg): Use wide-int interfaces.
8390         (lto_input_tree_1): Likewise.
8391         * lto-streamer-out.c (streamer_write_wi): Add.
8392         (hash_tree): Use wide-int interfaces.
8393         (output_cfg): Likewise.
8394         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
8395         (GTFILES): Add wide-int.h and signop.h.
8396         (TAGS): Look for .cc files too.
8397         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
8398         * optabs.c (expand_subword_shift): Likewise.
8399         (expand_doubleword_shift): Likewise.
8400         (expand_absneg_bit): Likewise.
8401         (expand_copysign_absneg): Likewise.
8402         (expand_copysign_bit): Likewise.
8403         * postreload.c (reload_cse_simplify_set): Likewise.
8404         * predict.c (predict_iv_comparison): Likewise.
8405         * pretty-print.h: Include wide-int-print.h.
8406         (pp_wide_int) New.
8407         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
8408         * print-tree.c: Include wide-int-print.h.
8409         (print_node_brief): Use wide-int interfaces.
8410         (print_node): Likewise.
8411         * read-rtl.c (validate_const_wide_int): New.
8412         (read_rtx_code): Add CONST_WIDE_INT case.
8413         * real.c: Include wide-int.h.
8414         (real_to_integer2): Delete.
8415         (real_to_integer): New function, returning a wide_int.
8416         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
8417         (ten_to_ptwo): Update call to real_from_integer.
8418         (real_digit): Likewise.
8419         * real.h: Include signop.h, wide-int.h and insn-modes.h.
8420         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
8421         (REAL_VALUE_TO_INT): Delete.
8422         (real_to_integer): Declare a wide-int form.
8423         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
8424         * recog.c (const_int_operand): Improve comment.
8425         (const_scalar_int_operand): New.
8426         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
8427         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
8428         (split_double): Likewise.
8429         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
8430         (rtx_size): Likewise.
8431         (rtx_alloc_stat_v): New.
8432         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
8433         (cwi_output_hex): New.
8434         (iterative_hash_rtx): Handle CONST_WIDE_INT.
8435         (cwi_check_failed_bounds): New.
8436         * rtl.def (CONST_WIDE_INT): New.
8437         * rtl.h: Include <utility> and wide-int.h.
8438         (struct hwivec_def): New.
8439         (CWI_GET_NUM_ELEM): New.
8440         (CWI_PUT_NUM_ELEM): New.
8441         (struct rtx_def): Add num_elem and hwiv.
8442         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
8443         (CASE_CONST_UNIQUE): Likewise.
8444         (CASE_CONST_ANY): Likewise.
8445         (CONST_SCALAR_INT_P): Likewise.
8446         (CONST_WIDE_INT_P): New.
8447         (CWI_ELT): New.
8448         (HWIVEC_CHECK): New.
8449         (cwi_check_failed_bounds): New.
8450         (CWI_ELT): New.
8451         (HWIVEC_CHECK): New.
8452         (CONST_WIDE_INT_VEC) New.
8453         (CONST_WIDE_INT_NUNITS) New.
8454         (CONST_WIDE_INT_ELT) New.
8455         (rtx_mode_t): New type.
8456         (wi::int_traits <rtx_mode_t>): New.
8457         (wi::shwi): New.
8458         (wi::min_value): New.
8459         (wi::max_value): New.
8460         (rtx_alloc_v) New.
8461         (const_wide_int_alloc): New.
8462         (immed_wide_int_const): New.
8463         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
8464         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
8465         * signop.h: New file.
8466         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
8467         (simplify_const_unary_operation): Use wide-int interfaces.
8468         (simplify_binary_operation_1): Likewise.
8469         (simplify_const_binary_operation): Likewise.
8470         (simplify_const_relational_operation): Likewise.
8471         (simplify_immed_subreg): Likewise.
8472         * stmt.c (expand_case): Likewise.
8473         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
8474         signop rather than a bool.
8475         * stor-layout.c (layout_type): Use wide-int interfaces.
8476         (initialize_sizetypes): Update calls to
8477         set_min_and_max_values_for_integral_type.
8478         (set_min_and_max_values_for_integral_type): Take a signop rather
8479         than a bool.  Use wide-int interfaces.
8480         (fixup_signed_type): Update accordingly.  Remove
8481         HOST_BITS_PER_DOUBLE_INT limit.
8482         (fixup_unsigned_type): Likewise.
8483         * system.h (STATIC_CONSTANT_P): New.
8484         (STATIC_ASSERT): New.
8485         * target.def (can_use_doloop_p): Take widest_ints rather than
8486         double_ints.
8487         * target.h: Include wide-int.h rather than double-int.h.
8488         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
8489         than double_ints.
8490         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
8491         rather than INT_CST_LT_UNSIGNED.
8492         (can_use_doloop_if_innermost): Take widest_ints rather than
8493         double_ints.
8494         * tree-affine.c: Include wide-int-print.h.
8495         (double_int_ext_for_comb): Delete.
8496         (wide_int_ext_for_comb): New.
8497         (aff_combination_zero): Use wide-int interfaces.
8498         (aff_combination_const): Take a widest_int instead of a double_int.
8499         (aff_combination_elt): Use wide-int interfaces.
8500         (aff_combination_scale): Take a widest_int instead of a double_int.
8501         (aff_combination_add_elt): Likewise.
8502         (aff_combination_add_cst): Likewise.
8503         (aff_combination_add): Use wide-int interfaces.
8504         (aff_combination_convert): Likewise.
8505         (tree_to_aff_combination): Likewise.
8506         (add_elt_to_tree): Take a widest_int instead of a double_int.
8507         (aff_combination_to_tree): Use wide-int interfaces.
8508         (aff_combination_remove_elt): Likewise.
8509         (aff_combination_add_product): Take a widest_int instead of
8510         a double_int.
8511         (aff_combination_mult): Use wide-int interfaces.
8512         (aff_combination_expand): Likewise.
8513         (double_int_constant_multiple_p): Delete.
8514         (wide_int_constant_multiple_p): New.
8515         (aff_combination_constant_multiple_p): Take a widest_int pointer
8516         instead of a double_int pointer.
8517         (print_aff): Use wide-int interfaces.
8518         (get_inner_reference_aff): Take a widest_int pointer
8519         instead of a double_int pointer.
8520         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
8521         * tree-affine.h: Include wide-int.h.
8522         (struct aff_comb_elt): Change type of coef to widest_int.
8523         (struct affine_tree_combination): Change type of offset to widest_int.
8524         (double_int_ext_for_comb): Delete.
8525         (wide_int_ext_for_comb): New.
8526         (aff_combination_const): Use widest_int instead of double_int.
8527         (aff_combination_scale): Likewise.
8528         (aff_combination_add_elt): Likewise.
8529         (aff_combination_constant_multiple_p): Likewise.
8530         (get_inner_reference_aff): Likewise.
8531         (aff_comb_cannot_overlap_p): Likewise.
8532         (aff_combination_zero_p): Use wide-int interfaces.
8533         * tree.c: Include tree.h.
8534         (init_ttree): Use make_int_cst.
8535         (tree_code_size): Removed code for INTEGER_CST case.
8536         (tree_size): Add INTEGER_CST case.
8537         (make_node_stat): Update comment.
8538         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
8539         (build_int_cst_type): Use wide-int interfaces.
8540         (double_int_to_tree): Likewise.
8541         (double_int_fits_to_tree_p): Delete.
8542         (force_fit_type_double): Delete.
8543         (force_fit_type): New.
8544         (int_cst_hash_hash): Use wide-int interfaces.
8545         (int_cst_hash_eq): Likewise.
8546         (build_int_cst_wide): Delete.
8547         (wide_int_to_tree): New.
8548         (cache_integer_cst): Use wide-int interfaces.
8549         (build_low_bits_mask): Likewise.
8550         (cst_and_fits_in_hwi): Likewise.
8551         (real_value_from_int_cst): Likewise.
8552         (make_int_cst_stat): New.
8553         (integer_zerop): Use wide_int interfaces.
8554         (integer_onep): Likewise.
8555         (integer_all_onesp): Likewise.
8556         (integer_pow2p): Likewise.
8557         (integer_nonzerop): Likewise.
8558         (tree_log2): Likewise.
8559         (tree_floor_log2): Likewise.
8560         (tree_ctz): Likewise.
8561         (int_size_in_bytes): Likewise.
8562         (mem_ref_offset): Return an offset_int rather than a double_int.
8563         (build_type_attribute_qual_variant): Use wide_int interfaces.
8564         (type_hash_eq): Likewise
8565         (tree_int_cst_equal): Likewise.
8566         (tree_int_cst_lt): Delete.
8567         (tree_int_cst_compare): Likewise.
8568         (tree_fits_shwi_p): Use wide_int interfaces.
8569         (tree_fits_uhwi_p): Likewise.
8570         (tree_int_cst_sign_bit): Likewise.
8571         (tree_int_cst_sgn): Likewise.
8572         (tree_int_cst_min_precision): Take a signop rather than a bool.
8573         (simple_cst_equal): Use wide_int interfaces.
8574         (compare_tree_int): Likewise.
8575         (iterative_hash_expr): Likewise.
8576         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
8577         INT_CST_LT.
8578         (get_type_static_bounds): Use wide_int interfaces.
8579         (tree_int_cst_elt_check_failed): New.
8580         (build_common_tree_nodes): Reordered to set prec before filling in
8581         value.
8582         (int_cst_value): Check cst_and_fits_in_hwi.
8583         (widest_int_cst_value): Use wide_int interfaces.
8584         (upper_bound_in_type): Likewise.
8585         (lower_bound_in_type): Likewise.
8586         (num_ending_zeros): Likewise.
8587         (drop_tree_overflow): Likewise.
8588         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
8589         (gen_conditions_for_pow_cst_base): Likewise.
8590         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
8591         (group_case_labels_stmt): Use wide-int interfaces.
8592         (verify_gimple_assign_binary): Likewise.
8593         (print_loop): Likewise.
8594         * tree-chrec.c (tree_fold_binomial): Likewise.
8595         * tree-core.h (struct tree_base): Add int_length.
8596         (struct tree_int_cst): Change rep of value.
8597         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
8598         (dr_may_alias_p): Likewise.
8599         (max_stmt_executions_tree): Likewise.
8600         * tree.def (INTEGER_CST): Update comment.
8601         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
8602         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
8603         * tree-dump.c: Include wide-int.h and wide-int-print.h.
8604         (dequeue_and_dump): Use wide-int interfaces.
8605         * tree.h: Include wide-int.h.
8606         (NULL_TREE): Moved to earlier loc in file.
8607         (TREE_INT_CST_ELT_CHECK): New.
8608         (tree_int_cst_elt_check_failed): New.
8609         (TYPE_SIGN): New.
8610         (TREE_INT_CST): Delete.
8611         (TREE_INT_CST_LOW): Use wide-int interfaces.
8612         (TREE_INT_CST_HIGH): Delete.
8613         (TREE_INT_CST_NUNITS): New.
8614         (TREE_INT_CST_EXT_NUNITS): Likewise.
8615         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
8616         (TREE_INT_CST_ELT): Likewise.
8617         (INT_CST_LT): Delete.
8618         (tree_int_cst_elt_check): New (two forms).
8619         (type_code_size): Update comment.
8620         (make_int_cst_stat, make_int_cst): New.
8621         (tree_to_double_int): Delete.
8622         (double_int_fits_to_tree_p): Delete.
8623         (force_fit_type_double): Delete.
8624         (build_int_cstu): Replace with out-of-line function.
8625         (build_int_cst_wide): Delete.
8626         (tree_int_cst_lt): Define inline.
8627         (tree_int_cst_le): New.
8628         (tree_int_cst_compare): Define inline.
8629         (tree_int_cst_min_precision): Take a signop rather than a bool.
8630         (wi::int_traits <const_tree>): New.
8631         (wi::int_traits <tree>): New.
8632         (wi::extended_tree): New.
8633         (wi::int_traits <wi::extended_tree>): New.
8634         (wi::to_widest): New.
8635         (wi::to_offset): New.
8636         (wi::fits_to_tree_p): New.
8637         (wi::min_value): New.
8638         (wi::max_value): New.
8639         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
8640         (copy_tree_body_r): Likewise.
8641         * tree-object-size.c (compute_object_offset): Likewise.
8642         (addr_object_size): Likewise.
8643         * tree-predcom.c: Include wide-int-print.h.
8644         (struct dref_d): Change type of offset to widest_int.
8645         (dump_dref): Call wide-int printer.
8646         (aff_combination_dr_offset): Use wide-int interfaces.
8647         (determine_offset): Take a widest_int pointer rather than a
8648         double_int pointer.
8649         (split_data_refs_to_components): Use wide-int interfaces.
8650         (suitable_component_p): Likewise.
8651         (order_drefs): Likewise.
8652         (add_ref_to_chain): Likewise.
8653         (valid_initializer_p): Likewise.
8654         (determine_roots_comp): Likewise.
8655         * tree-pretty-print.c: Include wide-int-print.h.
8656         (dump_generic_node): Use wide-int interfaces.
8657         * tree-sra.c (sra_ipa_modify_expr): Likewise.
8658         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
8659         (move_fixed_address_to_symbol): Likewise.
8660         (move_hint_to_base): Likewise.
8661         (move_pointer_to_base): Likewise.
8662         (move_variant_to_index): Likewise.
8663         (most_expensive_mult_to_index): Likewise.
8664         (addr_to_parts): Likewise.
8665         (copy_ref_info): Likewise.
8666         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
8667         (indirect_refs_may_alias_p): Likewise.
8668         (stmt_kills_ref_p_1): Likewise.
8669         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
8670         * tree-ssa-ccp.c: Update comment at top of file.  Include
8671         wide-int-print.h.
8672         (struct prop_value_d): Change type of mask to widest_int.
8673         (extend_mask): New function.
8674         (dump_lattice_value): Use wide-int interfaces.
8675         (get_default_value): Likewise.
8676         (set_constant_value): Likewise.
8677         (set_value_varying): Likewise.
8678         (valid_lattice_transition): Likewise.
8679         (set_lattice_value): Likewise.
8680         (value_to_double_int): Delete.
8681         (value_to_wide_int): New.
8682         (get_value_from_alignment): Use wide-int interfaces.
8683         (get_value_for_expr): Likewise.
8684         (do_dbg_cnt): Likewise.
8685         (ccp_finalize): Likewise.
8686         (ccp_lattice_meet): Likewise.
8687         (bit_value_unop_1): Use widest_ints rather than double_ints.
8688         (bit_value_binop_1): Likewise.
8689         (bit_value_unop): Use wide-int interfaces.
8690         (bit_value_binop): Likewise.
8691         (bit_value_assume_aligned): Likewise.
8692         (evaluate_stmt): Likewise.
8693         (ccp_fold_stmt): Likewise.
8694         (visit_cond_stmt): Likewise.
8695         (ccp_visit_stmt): Likewise.
8696         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
8697         (constant_pointer_difference): Likewise.
8698         (associate_pointerplus): Likewise.
8699         (combine_conversions): Likewise.
8700         * tree-ssa-loop.h: Include wide-int.h.
8701         (struct tree_niter_desc): Change type of max to widest_int.
8702         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
8703         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
8704         (remove_redundant_iv_tests): Likewise.
8705         (canonicalize_loop_induction_variables): Likewise.
8706         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
8707         (constant_multiple_of): Take a widest_int pointer instead of
8708         a double_int pointer.
8709         (get_computation_aff): Use wide-int interfaces.
8710         (ptr_difference_cost): Likewise.
8711         (difference_cost): Likewise.
8712         (get_loop_invariant_expr_id): Likewise.
8713         (get_computation_cost_at): Likewise.
8714         (iv_elimination_compare_lt): Likewise.
8715         (may_eliminate_iv): Likewise.
8716         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
8717         instead of double_int.
8718         (max_loop_iterations): Likewise.
8719         (max_stmt_executions): Likewise.
8720         (estimated_stmt_executions): Likewise.
8721         * tree-ssa-loop-niter.c: Include wide-int-print.h.
8722         (split_to_var_and_offset): Use wide-int interfaces.
8723         (determine_value_range): Likewise.
8724         (bound_difference_of_offsetted_base): Likewise.
8725         (bounds_add): Take a widest_int instead of a double_int.
8726         (number_of_iterations_ne_max): Use wide-int interfaces.
8727         (number_of_iterations_ne): Likewise.
8728         (number_of_iterations_lt_to_ne): Likewise.
8729         (assert_loop_rolls_lt): Likewise.
8730         (number_of_iterations_lt): Likewise.
8731         (number_of_iterations_le): Likewise.
8732         (number_of_iterations_cond): Likewise.
8733         (number_of_iterations_exit): Likewise.
8734         (finite_loop_p): Likewise.
8735         (derive_constant_upper_bound_assign): Likewise.
8736         (derive_constant_upper_bound): Return a widest_int.
8737         (derive_constant_upper_bound_ops): Likewise.
8738         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
8739         (record_estimate): Take a widest_int rather than a double_int.
8740         (record_nonwrapping_iv): Use wide-int interfaces.
8741         (double_int_cmp): Delete.
8742         (wide_int_cmp): New.
8743         (bound_index): Take a widest_int rather than a double_int.
8744         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
8745         (maybe_lower_iteration_bound): Likewise.
8746         (estimate_numbers_of_iterations_loop): Likewise.
8747         (estimated_loop_iterations): Take a widest_int pointer than than
8748         a double_int pointer.
8749         (estimated_loop_iterations_int): Use wide-int interfaces.
8750         (max_loop_iterations): Take a widest_int pointer than than
8751         a double_int pointer.
8752         (max_loop_iterations_int): Use wide-int interfaces.
8753         (max_stmt_executions): Take a widest_int pointer than than
8754         a double_int pointer.
8755         (estimated_stmt_executions): Likewise.
8756         (n_of_executions_at_most): Use wide-int interfaces.
8757         (scev_probably_wraps_p): Likewise.
8758         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
8759         to real_to_integer.
8760         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
8761         interfaces.
8762         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
8763         double_ints.  Adjust for trailing_wide_ints <3> representation.
8764         (set_nonzero_bits): Likewise.
8765         (get_range_info): Return wide_ints rather than double_ints.
8766         Adjust for trailing_wide_ints <3> representation.
8767         (get_nonzero_bits): Likewise.
8768         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
8769         representation.
8770         * tree-ssanames.h (struct range_info_def): Replace min, max and
8771         nonzero_bits with a trailing_wide_ints <3>.
8772         (set_range_info): Use wide_int_refs rather than double_ints.
8773         (set_nonzero_bits): Likewise.
8774         (get_range_info): Return wide_ints rather than double_ints.
8775         (get_nonzero_bits): Likewise.
8776         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
8777         * tree-ssa-pre.c (phi_translate_1): Likewise.
8778         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
8779         (acceptable_pow_call): Likewise.
8780         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
8781         interfaces.
8782         (vn_reference_fold_indirect): Likewise.
8783         (vn_reference_maybe_forwprop_address): Likewise.
8784         (valueize_refs_1): Likewise.
8785         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
8786         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
8787         tree_int_cst_lt and tree_int_cst_le.
8788         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
8789         interfaces.
8790         (streamer_alloc_tree): Likewise.
8791         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
8792         (streamer_write_tree_header): Likewise.
8793         (streamer_write_integer_cst): Likewise.
8794         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
8795         (build_constructors): Likewise.
8796         (array_value_type): Likewise.
8797         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
8798         (vect_check_gather): Likewise.
8799         * tree-vect-generic.c (build_replicated_const): Likewise.
8800         (expand_vector_divmod): Likewise.
8801         * tree-vect-loop.c (vect_transform_loop): Likewise.
8802         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
8803         (vect_do_peeling_for_alignment): Likewise.
8804         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
8805         * tree-vrp.c: Include wide-int.h.
8806         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
8807         (extract_range_from_assert): Use wide-int interfaces.
8808         (vrp_int_const_binop): Likewise.
8809         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
8810         double_int pointers.
8811         (ranges_from_anti_range): Use wide-int interfaces.
8812         (quad_int_cmp): Delete.
8813         (quad_int_pair_sort): Likewise.
8814         (extract_range_from_binary_expr_1): Use wide-int interfaces.
8815         (extract_range_from_unary_expr_1): Likewise.
8816         (adjust_range_with_scev): Likewise.
8817         (masked_increment): Take and return wide_ints rather than double_ints.
8818         (register_edge_assert_for_2): Use wide-int interfaces.
8819         (check_array_ref): Likewise.
8820         (search_for_addr_array): Likewise.
8821         (maybe_set_nonzero_bits): Likewise.
8822         (union_ranges): Pass an integer of the correct type instead of
8823         using integer_one_node.
8824         (intersect_ranges): Likewise.
8825         (simplify_truth_ops_using_ranges): Likewise.
8826         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
8827         (range_fits_type_p): Likewise.
8828         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
8829         a bool.
8830         (simplify_conversion_using_ranges): Use wide-int interfaces.
8831         (simplify_float_conversion_using_ranges): Likewise.
8832         (vrp_finalize): Likewise.
8833         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
8834         (gimple_stringops_transform): Likewise.
8835         * varasm.c (decode_addr_const): Likewise.
8836         (const_hash_1): Likewise.
8837         (const_rtx_hash_1): Likewise
8838         (output_constant): Likewise.
8839         (array_size_for_constructor): Likewise.
8840         (output_constructor_regular_field): Likewise.
8841         (output_constructor_bitfield): Likewise.
8842         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
8843         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
8844         GENERATOR_FILEs.
8845         * gencheck.c: Define BITS_PER_UNIT.
8846         * wide-int.cc: New.
8847         * wide-int.h: New.
8848         * wide-int-print.cc: New.
8849         * wide-int-print.h: New.
8851 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8853         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
8855 2014-05-06  Richard Biener  <rguenther@suse.de>
8857         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
8858         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
8859         (TODO_verify_all): Adjust.
8860         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
8861         TODO_verify_stmts and TODO_verify_rtl_sharing.
8862         * bb-reorder.c: Likewise.
8863         * cfgexpand.c: Likewise.
8864         * cprop.c: Likewise.
8865         * cse.c: Likewise.
8866         * function.c: Likewise.
8867         * fwprop.c: Likewise.
8868         * gcse.c: Likewise.
8869         * gimple-ssa-isolate-paths.c: Likewise.
8870         * gimple-ssa-strength-reduction.c: Likewise.
8871         * ipa-split.c: Likewise.
8872         * loop-init.c: Likewise.
8873         * loop-unroll.c: Likewise.
8874         * lower-subreg.c: Likewise.
8875         * modulo-sched.c: Likewise.
8876         * postreload-gcse.c: Likewise.
8877         * predict.c: Likewise.
8878         * recog.c: Likewise.
8879         * sched-rgn.c: Likewise.
8880         * store-motion.c: Likewise.
8881         * tracer.c: Likewise.
8882         * trans-mem.c: Likewise.
8883         * tree-call-cdce.c: Likewise.
8884         * tree-cfg.c: Likewise.
8885         * tree-cfgcleanup.c: Likewise.
8886         * tree-complex.c: Likewise.
8887         * tree-eh.c: Likewise.
8888         * tree-emutls.c: Likewise.
8889         * tree-if-conv.c: Likewise.
8890         * tree-into-ssa.c: Likewise.
8891         * tree-loop-distribution.c: Likewise.
8892         * tree-object-size.c: Likewise.
8893         * tree-parloops.c: Likewise.
8894         * tree-pass.h: Likewise.
8895         * tree-sra.c: Likewise.
8896         * tree-ssa-ccp.c: Likewise.
8897         * tree-ssa-copy.c: Likewise.
8898         * tree-ssa-copyrename.c: Likewise.
8899         * tree-ssa-dce.c: Likewise.
8900         * tree-ssa-dom.c: Likewise.
8901         * tree-ssa-dse.c: Likewise.
8902         * tree-ssa-forwprop.c: Likewise.
8903         * tree-ssa-ifcombine.c: Likewise.
8904         * tree-ssa-loop-ch.c: Likewise.
8905         * tree-ssa-loop-ivcanon.c: Likewise.
8906         * tree-ssa-loop.c: Likewise.
8907         * tree-ssa-math-opts.c: Likewise.
8908         * tree-ssa-phiopt.c: Likewise.
8909         * tree-ssa-phiprop.c: Likewise.
8910         * tree-ssa-pre.c: Likewise.
8911         * tree-ssa-reassoc.c: Likewise.
8912         * tree-ssa-sink.c: Likewise.
8913         * tree-ssa-strlen.c: Likewise.
8914         * tree-ssa-tail-merge.c: Likewise.
8915         * tree-ssa-uncprop.c: Likewise.
8916         * tree-switch-conversion.c: Likewise.
8917         * tree-tailcall.c: Likewise.
8918         * tree-vect-generic.c: Likewise.
8919         * tree-vectorizer.c: Likewise.
8920         * tree-vrp.c: Likewise.
8921         * tsan.c: Likewise.
8922         * var-tracking.c: Likewise.
8923         * bt-load.c: Likewise.
8924         * cfgcleanup.c: Likewise.
8925         * combine-stack-adj.c: Likewise.
8926         * combine.c: Likewise.
8927         * compare-elim.c: Likewise.
8928         * config/epiphany/resolve-sw-modes.c: Likewise.
8929         * config/i386/i386.c: Likewise.
8930         * config/mips/mips.c: Likewise.
8931         * config/s390/s390.c: Likewise.
8932         * config/sh/sh_treg_combine.cc: Likewise.
8933         * config/sparc/sparc.c: Likewise.
8934         * dce.c: Likewise.
8935         * dse.c: Likewise.
8936         * final.c: Likewise.
8937         * ifcvt.c: Likewise.
8938         * mode-switching.c: Likewise.
8939         * passes.c: Likewise.
8940         * postreload.c: Likewise.
8941         * ree.c: Likewise.
8942         * reg-stack.c: Likewise.
8943         * regcprop.c: Likewise.
8944         * regrename.c: Likewise.
8945         * web.c: Likewise.
8947 2014-05-06  Richard Biener  <rguenther@suse.de>
8949         PR middle-end/61070
8950         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
8951         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
8953 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
8955         PR ipa/60965
8956         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
8958 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
8959             Tom de Vries  <tom@codesourcery.com>
8961         * target.def (call_fusage_contains_non_callee_clobbers): New
8962         DEFHOOKPOD.
8963         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
8964         Hooks to @menu.
8965         (@node Miscellaneous Register Hooks): New node.
8966         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
8967         * doc/tm.texi: Regenerate.
8969 2014-05-05  Marek Polacek  <polacek@redhat.com>
8971         PR driver/61065
8972         * opts.c (common_handle_option): Call error_at instead of warning_at.
8974 2014-05-05  Richard Biener  <rguenther@suse.de>
8976         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
8977         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
8978         under the TODO_verify_il umbrella.
8980 2014-05-05  Richard Biener  <rguenther@suse.de>
8982         * passes.c (execute_function_todo): Move TODO_verify_flow under
8983         the TODO_verify_ul umbrella.
8985 2014-05-05  Richard Biener  <rguenther@suse.de>
8987         PR middle-end/61010
8988         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
8989         X & CST away from a CST that is the mask of a mode.
8991 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8993         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
8994         int argument to enum machine_mode.
8995         (picochip_class_max_nregs): Ditto.
8996         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
8997         (picochip_class_max_nregs): Ditto.
8999 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9001         * target.def: Add new target hook.
9002         * doc/tm.texi: Regenerate.
9003         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
9004         * targhooks.c (default_keep_leaf_when_profiled): New function.
9006         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
9007         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
9009 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
9011         PR tree-optimization/60363
9012         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
9013         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
9014         (update_destination_phis): New parameter.
9015         (create_edge_and_update_destination_phis): Ditto.
9016         (ssa_fix_duplicate_block_edges): Pass new arguments.
9017         (thread_single_edge): Ditto.
9019 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
9021         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
9022         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
9023         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
9024         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
9025         Use RS6000_BTM_HARD_FLOAT.
9026         (BU_MISC_2): Likewise.
9027         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
9028         RS6000_BTM_HARD_FLOAT.
9029         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
9030         is explicitly used.
9031         (rs6000_invalid_builtin): Add hard floating builtin support.
9032         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
9033         hard float builtins.
9034         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
9036 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
9038         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
9039         Add missing function* argument.
9041 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
9043         * lra-constraints.c (valid_address_p): Move earlier in file.
9044         Add a constraint argument to the address_info version.
9045         (satisfies_memory_constraint_p): New function.
9046         (satisfies_address_constraint_p): Likewise.
9047         (process_alt_operands, curr_insn_transform): Use them.
9048         (process_address): Pass the constraint to valid_address_p when
9049         checking address operands.
9051 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
9053         * config/mips/mips.c (mips_isa_rev): New variable.
9054         (mips_set_architecture): Set it.
9055         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
9056         from mips_isa_rev.
9057         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
9058         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
9059         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
9060         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
9061         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
9062         conditions in terms of mips_isa_rev.
9063         (mips_isa_rev): Declare.
9065 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
9067         * config/sh/sh-mem.cc: Use tabs instead of spaces.
9068         (prob_unlikely, prob_likely): Make variables const.
9070 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
9072         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
9074 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
9076         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
9078 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
9080         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
9081         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
9082         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
9083         functions.
9084         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
9085         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
9086         sh_pass_in_reg_p.
9087         Replace usage of ROUND_REG with sh_round_reg.
9088         Use CEIL instead of ROUND_ADVANCE.
9090 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
9092         PR target/61026
9093         * config/sh/sh.c: Include stdlib headers before everything else.
9095 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
9097         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
9098         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
9099         (gimplify_adjust_omp_clauses): Simd region is never
9100         directly nested in combined parallel.  Instead, for linear
9101         with copyin/copyout, if in combined for simd loop, make decl
9102         firstprivate/lastprivate on OMP_FOR.
9103         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
9104         expand_omp_for_static_chunk): When setting endvar, also set
9105         fd->loop.v to the same value.
9107 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
9109         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
9111 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
9113         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
9114         expression.
9116 2014-05-02  Marek Polacek  <polacek@redhat.com>
9118         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
9120 2014-05-02  Kito Cheng  <kito@0xlab.org>
9122         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
9123         to a C expression marco.
9124         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
9125         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
9126         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
9127         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
9128         HONOR_REG_ALLOC_ORDER.
9129         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
9131 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9133         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
9135 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9137         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
9139 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
9141         * tree-if-conv.c (is_cond_scalar_reduction): New function.
9142         (convert_scalar_cond_reduction): Likewise.
9143         (predicate_scalar_phi): Add recognition and transformation
9144         of simple conditioanl reduction to be vectorizable.
9146 2014-05-01  Marek Polacek  <polacek@redhat.com>
9148         PR c/43245
9149         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
9151 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
9153         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
9154         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
9155         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
9156         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
9157         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
9158         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
9159         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
9160         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
9162 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
9164         * config/arc/arc.opt (mlra): Move comment above option name
9165         to avoid mis-parsing as language options.
9167 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9169         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
9170         * config/sol2.h: ... here.
9171         * config/sol2-10.h: Remove.
9173         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
9174         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
9175         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
9176         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
9177         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
9178         * config/sol2.h: ... here.
9179         (SECTION_NAME_FORMAT): Don't redefine.
9180         (STARTFILE_ARCH32_SPEC): Rename to ...
9181         (STARTFILE_ARCH_SPEC): ... this.
9182         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
9183         * config/sparc/sol2.h: ... here.
9184         (SECTION_NAME_FORMAT): Don't undef.
9185         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
9186         (SUBTARGET_EXTRA_SPECS): Remove.
9187         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
9189         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
9190         (MD_STARTFILE_PREFIX): Remove.
9191         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
9192         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
9193         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
9194         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
9195         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
9196         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
9197         * config/i386/sol2.h: ... here.
9198         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
9199         * config/i386/sol2-bi.h: Remove.
9200         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
9201         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
9203         * config/i386/t-sol2-64: Rename to ...
9204         * config/i386/t-sol2: ... this.
9205         * config/sparc/t-sol2-64: Rename to ...
9206         * config/sparc/t-sol2: ... this.
9208         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
9209         sol2_tm_file_head, sol2_tm_file_tail.
9210         Include ${cpu_type}/sol2.h before sol2.h.
9211         Remove sol2-10.h.
9212         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
9213         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
9214         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
9215         Reflect i386/t-sol2-64 renaming.
9216         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
9217         Reflect sparc/t-sol2-64 renaming.
9219 2014-04-30  Richard Biener  <rguenther@suse.de>
9221         * passes.c (execute_function_todo): Move TODO_verify_stmts
9222         and TODO_verify_ssa under the TODO_verify_il umbrella.
9223         * tree-ssa.h (verify_ssa): Adjust prototype.
9224         * tree-ssa.c (verify_ssa): Add parameter to tell whether
9225         we should verify SSA operands.
9226         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
9227         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
9228         whether we should verify whether not throwing stmts have EH info.
9229         * graphite-scop-detection.c (create_sese_edges): Adjust.
9230         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
9231         * tree-eh.c (lower_try_finally_switch): Do not add the
9232         default case label twice.
9234 2014-04-30  Marek Polacek  <polacek@redhat.com>
9236         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
9237         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
9238         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
9239         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
9241 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
9243         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
9244         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
9245         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
9246         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
9247         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
9248         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
9249         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
9250         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
9252 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
9254         * tree-cfg.c (dump_function_to_file): Dump the return type of
9255         functions, in a line to itself before the function body, mimicking
9256         the layout of a C function.
9258 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
9260         PR tree-optimization/60971
9261         * tree-tailcall.c (process_assignment): Reject conversions which
9262         reduce precision.
9264 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
9266         * calls.c (initialize_argument_information): Always treat
9267         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
9268         (expand_call): Likewise.
9269         (emit_library_call_calue_1): Likewise.
9270         * expr.c (PUSH_ARGS_REVERSED): Do not define.
9271         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
9272         code accordingly.
9274 2014-04-29  Nick Clifton  <nickc@redhat.com>
9276         * config/msp430/msp430.md (umulsidi): Fix typo.
9277         (mulhisi3): Enable even inside interrupt handlers.
9278         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
9279         bigger return address pushed in large mode.
9281 2014-04-29  Nick Clifton  <nickc@redhat.com>
9283         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
9284         (arc_init_reg_tables): Use a machine_mode enum to iterate over
9285         available modes.
9286         * config/m32r/m32r.c (init_reg_tables): Likewise.
9287         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
9288         enum to hold the modes.
9290 2014-04-29  Richard Biener  <rguenther@suse.de>
9292         * dominance.c (free_dominance_info): Add overload with
9293         function parameter.
9294         (dom_info_state): Likewise.
9295         (dom_info_available_p): Likewise.
9296         * basic-block.h (free_dominance_info, dom_info_state,
9297         dom_info_available_p): Declare overloads.
9298         * passes.c (execute_function_todo): Verify that verifiers
9299         don't change dominator info state.  Drop dominator info
9300         for IPA pass invocations.
9301         * cgraph.c (release_function_body): Restore asserts that
9302         dominator information is released.
9304 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
9306         * doc/invoke.texi: Fix typo.
9307         * tree-vrp.c: Fix typos.
9308         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
9310 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
9312         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
9314 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
9316         * config/aarch64/aarch64-builtins.c
9317         (aarch64_types_storestruct_lane_qualifiers): New.
9318         (TYPES_STORESTRUCT_LANE): Likewise.
9319         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
9320         (st3_lane): Likewise.
9321         (st4_lane): Likewise.
9322         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
9323         (vec_store_lanesci_lane<mode>): Likewise.
9324         (vec_store_lanesxi_lane<mode>): Likewise.
9325         (aarch64_st2_lane<VQ:mode>): Likewise.
9326         (aarch64_st3_lane<VQ:mode>): Likewise.
9327         (aarch64_st4_lane<VQ:mode>): Likewise.
9328         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
9329         * config/aarch64/arm_neon.h
9330         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
9331         use new macro arguments.
9332         (__ST3_LANE_FUNC): Likewise.
9333         (__ST4_LANE_FUNC): Likewise.
9334         * config/aarch64/iterators.md (V_TWO_ELEM): New.
9335         (V_THREE_ELEM): Likewise.
9336         (V_FOUR_ELEM): Likewise.
9338 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
9340         * doc/gimple.texi: Replace the description of the now-defunct
9341         union gimple_statement_d with a diagram showing the
9342         gimple_statement_base class hierarchy and its relationships to
9343         the GSS_ and GIMPLE_ enums.
9345 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
9347         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
9348         * config/aarch64/aarch64.c
9349         (aarch64_cannot_change_mode_class): Weaken conditions.
9350         (aarch64_modes_tieable_p): New.
9351         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
9353 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
9355         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
9356         (loadsync_<mode>): Change mode.
9357         (load_quadpti, store_quadpti): New.
9358         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
9359         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
9361 2014-04-28  Martin Jambor  <mjambor@suse.cz>
9363         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
9364         same alias type as the original statement.
9365         (subreplacement_assignment_data): New type.
9366         (handle_unscalarized_data_in_subtree): New type of parameter,
9367         generate new memory accesses with same alias type as the original
9368         statement.
9369         (load_assign_lhs_subreplacements): Likewise.
9370         (sra_modify_constructor_assign): Generate new memory accesses with
9371         same alias type as the original statement.
9373 2014-04-28  Richard Biener  <rguenther@suse.de>
9375         * tree-pass.h (TODO_verify_il): Define.
9376         (TODO_verify_all): Complete properly.
9377         * passes.c (execute_function_todo): Move existing loop-closed
9378         SSA verification under TODO_verify_il.
9379         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
9380         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
9381         Fix tree sharing issue.
9383 2014-04-28  Richard Biener  <rguenther@suse.de>
9385         PR middle-end/60092
9386         * builtins.def (DEF_C11_BUILTIN): Add.
9387         (BUILT_IN_ALIGNED_ALLOC): Likewise.
9388         * coretypes.h (enum function_class): Add function_c11_misc.
9389         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9390         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
9391         (call_may_clobber_ref_p_1): Likewise.
9392         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9393         (mark_all_reaching_defs_necessary_1): Likewise.
9394         (propagate_necessity): Likewise.
9395         (eliminate_unnecessary_stmts): Likewise.
9396         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
9398 2014-04-28  Richard Biener  <rguenther@suse.de>
9400         * tree-vrp.c (vrp_var_may_overflow): Remove.
9401         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
9402         with overflow immediately bump to one before that value and
9403         let iteration figure out overflow status.
9405 2014-04-28  Richard Biener  <rguenther@suse.de>
9407         * configure.ac: Do valgrind header checks unconditionally.
9408         Add --enable-valgrind-annotations.
9409         * system.h: Guard valgrind header inclusion with
9410         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
9411         * alloc-pool.c (pool_alloc, pool_free): Use
9412         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
9413         to guard possibly dead code.
9414         * config.in: Regenerated.
9415         * configure: Likewise.
9417 2014-04-28  Jeff Law  <law@redhat.com>
9419         PR tree-optimization/60902
9420         * tree-ssa-threadedge.c
9421         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
9422         over real defs when invalidating outputs from statements that do not
9423         produce useful outputs for threading.
9425 2014-04-28  Richard Biener  <rguenther@suse.de>
9427         PR tree-optimization/60979
9428         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
9429         SCOPs that end in a block with a successor with abnormal
9430         predecessors.
9432 2014-04-28  Richard Biener  <rguenther@suse.de>
9434         * tree-pass.h (execute_pass_list): Adjust prototype.
9435         * passes.c (pass_manager::execute_early_local_passes): Adjust.
9436         (do_per_function): Change callback signature, push all actual
9437         work to the callbals.
9438         (do_per_function_toporder): Likewise.
9439         (execute_function_dump): Adjust.
9440         (execute_function_todo): Likewise.
9441         (clear_last_verified): Likewise.
9442         (verify_curr_properties): Likewise.
9443         (update_properties_after_pass): Likewise.
9444         (execute_pass_list_1): Split out from ...
9445         (execute_pass_list): ... here.  Adjust.
9446         (execute_ipa_pass_list): Likewise.
9447         * cgraphunit.c (cgraph_add_new_function): Adjust.
9448         (analyze_function): Likewise.
9449         (expand_function): Likewise.
9450         * cgraph.c (release_function_body): Free dominance info
9451         here instead of asserting it was magically freed elsewhere.
9453 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
9455         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
9456         * configure: Regenerate.
9457         * config/sparc/sparc.opt (muser-mode): New option.
9458         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
9459         for LEON3.
9460         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
9461         * doc/invoke.texi (SPARC options): Document -muser-mode.
9463 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
9465         * cselib.c (find_slot_memmode): Delete.
9466         (cselib_hasher): Change compare_type to a struct.
9467         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
9468         constants.
9469         (preserve_constants_and_equivs): Adjust for new compare_type.
9470         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
9471         (wrap_constant): Delete.
9472         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
9474 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
9476         * doc/install.texi (Building with profile feedback): Remove
9477         outdated sentence.
9479 2014-04-26  Tom de Vries  <tom@codesourcery.com>
9481         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
9482         array accesses.
9484 2014-04-25  Cary Coutant  <ccoutant@google.com>
9486         PR debug/60929
9487         * dwarf2out.c (should_move_die_to_comdat): A type definition
9488         can contain a subprogram definition, but don't move it to a
9489         comdat unit.
9490         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
9491         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
9492         from original DIE.
9493         (clone_tree_hash): Rename to...
9494         (clone_tree_partial): ...this; change callers.  Copy
9495         DW_TAG_subprogram DIEs as declarations.
9496         (copy_decls_walk): Don't copy children of a declaration into a
9497         type unit.
9499 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
9501         PR target/60969
9502         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
9503         alternative 12.
9505 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
9507         * config/arm/predicates.md (call_insn_operand): Add long_call check.
9508         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
9509         reg for long_call.
9510         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
9511         restriction.
9513 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9515         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
9517 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9519         PR tree-optimization/60930
9520         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
9521         creating a multiply candidate by folding two constant
9522         multiplicands when the result overflows.
9524 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
9526         PR tree-optimization/60960
9527         * tree-vect-generic.c (expand_vector_operation): Only call
9528         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
9530 2014-04-25  Tom de Vries  <tom@codesourcery.com>
9532         * expr.c (clobber_reg_mode): New function.
9533         * expr.h (clobber_reg): New function.
9535 2014-04-25  Tom de Vries  <tom@codesourcery.com>
9537         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
9538         clobbers.
9540 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
9541             Tom de Vries  <tom@codesourcery.com>
9543         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
9544         handle.
9545         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
9546         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
9547         new argument to find_all_hard_reg_sets call.
9549 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9551         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
9552         Use HOST_WIDE_INT_C for mask literal.
9553         (aarch_rev16_shleft_mask_imm_p): Likewise.
9555 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
9557         PR target/60941
9558         * config/sparc/sparc.md (ashlsi3_extend): Delete.
9560 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
9562         PR preprocessor/56540
9563         * config/i386/i386-c.c (ix86_target_macros): Define
9564         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
9566 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9568         * configure.ac (tga_func): Remove.
9569         (LIB_TLS_SPEC): Remove.
9570         * configure: Regenerate.
9571         * config.in: Regenerate.
9572         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
9574 2014-04-25  Richard Biener  <rguenther@suse.de>
9576         PR ipa/60912
9577         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
9578         call stmt use/clobber sets during stmt walk instead of
9579         walking the possibly incomplete set of caller edges.
9581 2014-04-25  Richard Biener  <rguenther@suse.de>
9583         PR ipa/60911
9584         * passes.c (apply_ipa_transforms): Inline into only caller ...
9585         (execute_one_pass): ... here.  Properly bring in function
9586         bodies for nodes we want to apply IPA transforms to.
9588 2014-04-24  Cong Hou  <congh@google.com>
9590         PR tree-optimization/60896
9591         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
9592         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
9593         (vect_mark_pattern_stmts): Set the def type of all statements in
9594         PATTERN_DEF_SEQ as vect_internal_def.
9596 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9598         * doc/extend.texi (PowerPC Built-in Functions): Document new
9599         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
9600         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
9602         * config/rs6000/predicates.md (const_0_to_3_operand): New
9603         predicate to match 0..3 integer constants.
9605         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
9606         to support adding miscellaneous builtin functions.
9607         (BU_DFP_MISC_2): Likewise.
9608         (BU_P7_MISC_1): Likewise.
9609         (BU_P7_MISC_2): Likewise.
9610         (BU_P8V_MISC_3): Likewise.
9611         (BU_MISC_1): Likewise.
9612         (BU_MISC_2): Likewise.
9613         (DIVWE): Add extended divide builtin functions.
9614         (DIVWEO): Likewise.
9615         (DIVWEU): Likewise.
9616         (DIVWEUO): Likewise.
9617         (DIVDE): Likewise.
9618         (DIVDEO): Likewise.
9619         (DIVDEU): Likewise.
9620         (DIVDEUO): Likewise.
9621         (DXEX): Add decimal floating-point builtin functions.
9622         (DXEXQ): Likewise.
9623         (DDEDPD): Likewise.
9624         (DDEDPDQ): Likewise.
9625         (DENBCD): Likewise.
9626         (DENBCDQ): Likewise.
9627         (DIEX): Likewise.
9628         (DIEXQ): Likewise.
9629         (DSCLI): Likewise.
9630         (DSCLIQ): Likewise.
9631         (DSCRI): Likewise.
9632         (DSCRIQ): Likewise.
9633         (CDTBCD): Add new BCD builtin functions.
9634         (CBCDTD): Likewise.
9635         (ADDG6S): Likewise.
9636         (BCDADD): Likewise.
9637         (BCDADD_LT): Likewise.
9638         (BCDADD_EQ): Likewise.
9639         (BCDADD_GT): Likewise.
9640         (BCDADD_OV): Likewise.
9641         (BCDSUB): Likewise.
9642         (BCDSUB_LT): Likewise.
9643         (BCDSUB_EQ): Likewise.
9644         (BCDSUB_GT): Likewise.
9645         (BCDSUB_OV): Likewise.
9646         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
9647         (UNPACK_TD): Likewise.
9648         (PACK_TF): Likewise.
9649         (UNPACK_TF): Likewise.
9650         (UNPACK_TF_0): Likewise.
9651         (UNPACK_TF_1): Likewise.
9652         (PACK_V1TI): Likewise.
9653         (UNPACK_V1TI): Likewise.
9655         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
9656         support for decimal floating point builtin functions.
9657         (rs6000_expand_ternop_builtin): Add checks for the new builtin
9658         functions that take constant arguments.
9659         (rs6000_invalid_builtin): Add decimal floating point builtin support.
9660         (rs6000_init_builtins): Setup long double, _Decimal64, and
9661         _Decimal128 types for new builtin functions.
9662         (builtin_function_type): Set the unsigned flags appropriately for
9663         the new builtin functions.
9664         (rs6000_opt_masks): Add support for decimal floating point builtin
9665         functions.
9667         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
9668         floating point builtin functions.
9669         (RS6000_BTM_COMMON): Likewise.
9670         (RS6000_BTI_long_double): Likewise.
9671         (RS6000_BTI_dfloat64): Likewise.
9672         (RS6000_BTI_dfloat128): Likewise.
9673         (long_double_type_internal_node): Likewise.
9674         (dfloat64_type_internal_node): Likewise.
9675         (dfloat128_type_internal_node): Likewise.
9677         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
9678         2.07 bcd arithmetic instructions.
9679         (UNSPEC_BCDSUB): Likewise.
9680         (UNSPEC_BCD_OVERFLOW): Likewise.
9681         (UNSPEC_BCD_ADD_SUB): Likewise.
9682         (bcd_add_sub): Likewise.
9683         (BCD_TEST): Likewise.
9684         (bcd<bcd_add_sub>): Likewise.
9685         (bcd<bcd_add_sub>_test): Likewise.
9686         (bcd<bcd_add_sub>_test2): Likewise.
9687         (bcd<bcd_add_sub>_<code>): Likewise.
9688         (peephole2 for combined bcd ops): Likewise.
9690         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
9691         decimal floating point builtin functions.
9692         (UNSPEC_DENBCD): Likewise.
9693         (UNSPEC_DXEX): Likewise.
9694         (UNSPEC_DIEX): Likewise.
9695         (UNSPEC_DSCLI): Likewise.
9696         (UNSPEC_DSCRI): Likewise.
9697         (D64_D128): Likewise.
9698         (dfp_suffix): Likewise.
9699         (dfp_ddedpd_<mode>): Likewise.
9700         (dfp_denbcd_<mode>): Likewise.
9701         (dfp_dxex_<mode>): Likewise.
9702         (dfp_diex_<mode>): Likewise.
9703         (dfp_dscli_<mode>): Likewise.
9704         (dfp_dscri_<mode>): Likewise.
9706         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
9707         builtin functions.
9708         (UNSPEC_CDTBCD): Likewise.
9709         (UNSPEC_CBCDTD): Likewise.
9710         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
9711         (UNSPEC_DIVEO): Likewise.
9712         (UNSPEC_DIVEU): Likewise.
9713         (UNSPEC_DIVEUO): Likewise.
9714         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
9715         pack/unpack 128-bit types.
9716         (UNSPEC_PACK_128BIT): Likewise.
9717         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
9718         (udiv<mode>3): Use idiv_ldiv mode attribute.
9719         (div<mode>3): Likewise.
9720         (addg6s): Add new BCD builtin functions.
9721         (cdtbcd): Likewise.
9722         (cbcdtd): Likewise.
9723         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
9724         (div_extend): Likewise.
9725         (div<div_extend>_<mode>"): Likewise.
9726         (FP128_64): Add support for new builtin functions to pack/unpack
9727         128-bit types.
9728         (unpack<mode>): Likewise.
9729         (unpacktf_0): Likewise.
9730         (unpacktf_1): Likewise.
9731         (unpack<mode>_dm): Likewise.
9732         (unpack<mode>_nodm): Likewise.
9733         (pack<mode>): Likewise.
9734         (unpackv1ti): Likewise.
9735         (packv1ti): Likewise.
9737 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
9739         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
9740         is disabled.
9742 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
9744         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
9745         * gimplify.c (omp_is_private): Change last argument's type to int.
9746         Only diagnose lastprivate if the simd argument is 1, only diagnose
9747         linear if the simd argument is 2.
9748         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
9749         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
9750         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
9751         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
9752         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
9753         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
9754         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
9755         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
9756         * tree-nested.c (convert_nonlocal_omp_clauses,
9757         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
9759 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
9761         PR target/60822
9762         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
9763         operand 1.
9765 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
9767         * flag-types.h (enum ivar_visibility): Add.
9769 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
9771         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
9772         function * argument.
9774 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
9776         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
9778 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
9779             Tom de Vries  <tom@codesourcery.com>
9781         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
9782         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
9783         reg-note.
9784         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
9785         * emit-rtl.c (try_split): Same.
9787 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
9788             Tom de Vries  <tom@codesourcery.com>
9790         * common.opt (fuse-caller-save): New option.
9792 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
9794         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
9795         elements for big-endian.
9797 2014-04-24  Richard Biener  <rguenther@suse.de>
9799         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
9800         during TER and instead use the sepops interface for expanding
9801         non-GIMPLE_SINGLE_RHS.
9803 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9805         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
9806         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
9808 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9810         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
9811         assembler 64-bit option.
9812         * configure: Regenerate.
9814 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9816         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
9817         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
9818         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
9819         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
9820         (TARGET_CRYPTO): Take TARGET_SIMD into account.
9822 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9824         * config/aarch64/aarch64-builtins.c
9825         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
9826         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
9827         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
9828         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
9829         builtins.
9830         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
9831         (Vrevsuff): New mode attribute.
9833 2014-04-24  Terry Guo  <terry.guo@arm.com>
9835         * config/arm/arm.h (machine_function): Define variable
9836         after_arm_reorg here.
9837         * config/arm/arm.c (after_arm_reorg): Remove the definition.
9838         (arm_split_constant): Update the way to access variable
9839         after_arm_reorg.
9840         (arm_reorg): Ditto.
9841         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
9843 2014-04-23  Tom de Vries  <tom@codesourcery.com>
9845         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
9847 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
9849         * is-a.h: Update comments to reflect the following changes to the
9850         "pointerness" of the API, making the template parameter match the
9851         return type, allowing use of is-a.h with typedefs of pointers.
9852         (is_a_helper::cast): Return a T rather then a pointer to a T, so
9853         that the return type matches the parameter to the is_a_helper.
9854         (as_a): Likewise.
9855         (dyn_cast): Likewise.
9857         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
9858         pointer from the is-a.h API.
9860         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
9861         (is_a_helper <cgraph_node *>::test): ...this, matching change to
9862         is-a.h API.
9863         (is_a_helper <varpool_node>::test): Likewise, convert to...
9864         (is_a_helper <varpool_node *>::test): ...this.
9866         (varpool_first_variable): Update for removal of implicit pointer
9867         from the is-a.h API.
9868         (varpool_next_variable): Likewise.
9869         (varpool_first_static_initializer): Likewise.
9870         (varpool_next_static_initializer): Likewise.
9871         (varpool_first_defined_variable): Likewise.
9872         (varpool_next_defined_variable): Likewise.
9873         (cgraph_first_defined_function): Likewise.
9874         (cgraph_next_defined_function): Likewise.
9875         (cgraph_first_function): Likewise.
9876         (cgraph_next_function): Likewise.
9877         (cgraph_first_function_with_gimple_body): Likewise.
9878         (cgraph_next_function_with_gimple_body): Likewise.
9879         (cgraph_alias_target): Likewise.
9880         (varpool_alias_target): Likewise.
9881         (cgraph_function_or_thunk_node): Likewise.
9882         (varpool_variable_node): Likewise.
9883         (symtab_real_symbol_p): Likewise.
9884         * cgraphunit.c (referred_to_p): Likewise.
9885         (analyze_functions): Likewise.
9886         (handle_alias_pairs): Likewise.
9887         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9888         * gimple-ssa.h (gimple_vuse_op): Likewise.
9889         (gimple_vdef_op): Likewise.
9890         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
9891         * gimple.c (gimple_build_asm_1): Likewise.
9892         (gimple_build_try): Likewise.
9893         (gimple_build_resx): Likewise.
9894         (gimple_build_eh_dispatch): Likewise.
9895         (gimple_build_omp_for): Likewise.
9896         (gimple_omp_for_set_clauses): Likewise.
9898         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
9899         (is_a_helper <gimple_statement_asm *>::test): ...this.
9900         (is_a_helper <gimple_statement_bind>::test): Convert to...
9901         (is_a_helper <gimple_statement_bind *>::test): ...this.
9902         (is_a_helper <gimple_statement_call>::test): Convert to...
9903         (is_a_helper <gimple_statement_call *>::test): ...this.
9904         (is_a_helper <gimple_statement_catch>::test): Convert to...
9905         (is_a_helper <gimple_statement_catch *>::test): ...this.
9906         (is_a_helper <gimple_statement_resx>::test): Convert to...
9907         (is_a_helper <gimple_statement_resx *>::test): ...this.
9908         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
9909         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
9910         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
9911         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
9912         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
9913         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
9914         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
9915         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
9916         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
9917         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
9918         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
9919         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
9920         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
9921         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
9922         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
9923         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
9924         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
9925         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
9926         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
9927         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
9928         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
9929         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
9930         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
9931         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
9932         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
9933         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
9934         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
9935         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
9936         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
9937         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
9938         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
9939         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
9940         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
9941         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
9942         (is_a_helper <gimple_statement_phi>::test): Convert to...
9943         (is_a_helper <gimple_statement_phi *>::test): ...this.
9944         (is_a_helper <gimple_statement_transaction>::test): Convert to...
9945         (is_a_helper <gimple_statement_transaction *>::test): ...this.
9946         (is_a_helper <gimple_statement_try>::test): Convert to...
9947         (is_a_helper <gimple_statement_try *>::test): ...this.
9948         (is_a_helper <gimple_statement_wce>::test): Convert to...
9949         (is_a_helper <gimple_statement_wce *>::test): ...this.
9950         (is_a_helper <const gimple_statement_asm>::test): Convert to...
9951         (is_a_helper <const gimple_statement_asm *>::test): ...this.
9952         (is_a_helper <const gimple_statement_bind>::test): Convert to...
9953         (is_a_helper <const gimple_statement_bind *>::test): ...this.
9954         (is_a_helper <const gimple_statement_call>::test): Convert to...
9955         (is_a_helper <const gimple_statement_call *>::test): ...this.
9956         (is_a_helper <const gimple_statement_catch>::test): Convert to...
9957         (is_a_helper <const gimple_statement_catch *>::test): ...this.
9958         (is_a_helper <const gimple_statement_resx>::test): Convert to...
9959         (is_a_helper <const gimple_statement_resx *>::test): ...this.
9960         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
9961         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
9962         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
9963         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
9964         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
9965         Convert to...
9966         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
9967         ...this.
9968         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
9969         Convert to...
9970         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
9971         ...this.
9972         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
9973         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
9974         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
9975         to...
9976         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
9977         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
9978         to...
9979         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
9980         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
9981         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
9982         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
9983         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
9984         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
9985         to...
9986         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
9987         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
9988         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
9989         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
9990         to...
9991         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
9992         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
9993         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
9994         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
9995         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
9996         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
9997         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
9998         (is_a_helper <const gimple_statement_phi>::test): Convert to...
9999         (is_a_helper <const gimple_statement_phi *>::test): ...this.
10000         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
10001         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
10002         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
10003         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
10004         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
10005         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
10006         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
10007         to...
10008         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
10009         ...this.
10010         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
10011         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
10013         (gimple_use_ops): Update for removal of implicit pointer from the
10014         is-a.h API.
10015         (gimple_set_use_ops): Likewise.
10016         (gimple_vuse): Likewise.
10017         (gimple_vdef): Likewise.
10018         (gimple_vuse_ptr): Likewise.
10019         (gimple_vdef_ptr): Likewise.
10020         (gimple_set_vuse): Likewise.
10021         (gimple_set_vdef): Likewise.
10022         (gimple_omp_return_set_lhs): Likewise.
10023         (gimple_omp_return_lhs): Likewise.
10024         (gimple_omp_return_lhs_ptr): Likewise.
10025         (gimple_call_fntype): Likewise.
10026         (gimple_call_set_fntype): Likewise.
10027         (gimple_call_set_internal_fn): Likewise.
10028         (gimple_call_use_set): Likewise.
10029         (gimple_call_clobber_set): Likewise.
10030         (gimple_bind_vars): Likewise.
10031         (gimple_bind_set_vars): Likewise.
10032         (gimple_bind_body_ptr): Likewise.
10033         (gimple_bind_set_body): Likewise.
10034         (gimple_bind_add_stmt): Likewise.
10035         (gimple_bind_block): Likewise.
10036         (gimple_bind_set_block): Likewise.
10037         (gimple_asm_ninputs): Likewise.
10038         (gimple_asm_noutputs): Likewise.
10039         (gimple_asm_nclobbers): Likewise.
10040         (gimple_asm_nlabels): Likewise.
10041         (gimple_asm_input_op): Likewise.
10042         (gimple_asm_input_op_ptr): Likewise.
10043         (gimple_asm_output_op): Likewise.
10044         (gimple_asm_output_op_ptr): Likewise.
10045         (gimple_asm_set_output_op): Likewise.
10046         (gimple_asm_clobber_op): Likewise.
10047         (gimple_asm_set_clobber_op): Likewise.
10048         (gimple_asm_label_op): Likewise.
10049         (gimple_asm_set_label_op): Likewise.
10050         (gimple_asm_string): Likewise.
10051         (gimple_catch_types): Likewise.
10052         (gimple_catch_types_ptr): Likewise.
10053         (gimple_catch_handler_ptr): Likewise.
10054         (gimple_catch_set_types): Likewise.
10055         (gimple_catch_set_handler): Likewise.
10056         (gimple_eh_filter_types): Likewise.
10057         (gimple_eh_filter_types_ptr): Likewise.
10058         (gimple_eh_filter_failure_ptr): Likewise.
10059         (gimple_eh_filter_set_types): Likewise.
10060         (gimple_eh_filter_set_failure): Likewise.
10061         (gimple_eh_must_not_throw_fndecl): Likewise.
10062         (gimple_eh_must_not_throw_set_fndecl): Likewise.
10063         (gimple_eh_else_n_body_ptr): Likewise.
10064         (gimple_eh_else_e_body_ptr): Likewise.
10065         (gimple_eh_else_set_n_body): Likewise.
10066         (gimple_eh_else_set_e_body): Likewise.
10067         (gimple_try_eval_ptr): Likewise.
10068         (gimple_try_cleanup_ptr): Likewise.
10069         (gimple_try_set_eval): Likewise.
10070         (gimple_try_set_cleanup): Likewise.
10071         (gimple_wce_cleanup_ptr): Likewise.
10072         (gimple_wce_set_cleanup): Likewise.
10073         (gimple_phi_capacity): Likewise.
10074         (gimple_phi_num_args): Likewise.
10075         (gimple_phi_result): Likewise.
10076         (gimple_phi_result_ptr): Likewise.
10077         (gimple_phi_set_result): Likewise.
10078         (gimple_phi_arg): Likewise.
10079         (gimple_phi_set_arg): Likewise.
10080         (gimple_resx_region): Likewise.
10081         (gimple_resx_set_region): Likewise.
10082         (gimple_eh_dispatch_region): Likewise.
10083         (gimple_eh_dispatch_set_region): Likewise.
10084         (gimple_omp_critical_name): Likewise.
10085         (gimple_omp_critical_name_ptr): Likewise.
10086         (gimple_omp_critical_set_name): Likewise.
10087         (gimple_omp_for_clauses): Likewise.
10088         (gimple_omp_for_clauses_ptr): Likewise.
10089         (gimple_omp_for_set_clauses): Likewise.
10090         (gimple_omp_for_collapse): Likewise.
10091         (gimple_omp_for_index): Likewise.
10092         (gimple_omp_for_index_ptr): Likewise.
10093         (gimple_omp_for_set_index): Likewise.
10094         (gimple_omp_for_initial): Likewise.
10095         (gimple_omp_for_initial_ptr): Likewise.
10096         (gimple_omp_for_set_initial): Likewise.
10097         (gimple_omp_for_final): Likewise.
10098         (gimple_omp_for_final_ptr): Likewise.
10099         (gimple_omp_for_set_final): Likewise.
10100         (gimple_omp_for_incr): Likewise.
10101         (gimple_omp_for_incr_ptr): Likewise.
10102         (gimple_omp_for_set_incr): Likewise.
10103         (gimple_omp_for_pre_body_ptr): Likewise.
10104         (gimple_omp_for_set_pre_body): Likewise.
10105         (gimple_omp_parallel_clauses): Likewise.
10106         (gimple_omp_parallel_clauses_ptr): Likewise.
10107         (gimple_omp_parallel_set_clauses): Likewise.
10108         (gimple_omp_parallel_child_fn): Likewise.
10109         (gimple_omp_parallel_child_fn_ptr): Likewise.
10110         (gimple_omp_parallel_set_child_fn): Likewise.
10111         (gimple_omp_parallel_data_arg): Likewise.
10112         (gimple_omp_parallel_data_arg_ptr): Likewise.
10113         (gimple_omp_parallel_set_data_arg): Likewise.
10114         (gimple_omp_task_clauses): Likewise.
10115         (gimple_omp_task_clauses_ptr): Likewise.
10116         (gimple_omp_task_set_clauses): Likewise.
10117         (gimple_omp_task_child_fn): Likewise.
10118         (gimple_omp_task_child_fn_ptr): Likewise.
10119         (gimple_omp_task_set_child_fn): Likewise.
10120         (gimple_omp_task_data_arg): Likewise.
10121         (gimple_omp_task_data_arg_ptr): Likewise.
10122         (gimple_omp_task_set_data_arg): Likewise.
10123         (gimple_omp_taskreg_clauses): Likewise.
10124         (gimple_omp_taskreg_clauses_ptr): Likewise.
10125         (gimple_omp_taskreg_set_clauses): Likewise.
10126         (gimple_omp_taskreg_child_fn): Likewise.
10127         (gimple_omp_taskreg_child_fn_ptr): Likewise.
10128         (gimple_omp_taskreg_set_child_fn): Likewise.
10129         (gimple_omp_taskreg_data_arg): Likewise.
10130         (gimple_omp_taskreg_data_arg_ptr): Likewise.
10131         (gimple_omp_taskreg_set_data_arg): Likewise.
10132         (gimple_omp_task_copy_fn): Likewise.
10133         (gimple_omp_task_copy_fn_ptr): Likewise.
10134         (gimple_omp_task_set_copy_fn): Likewise.
10135         (gimple_omp_task_arg_size): Likewise.
10136         (gimple_omp_task_arg_size_ptr): Likewise.
10137         (gimple_omp_task_set_arg_size): Likewise.
10138         (gimple_omp_task_arg_align): Likewise.
10139         (gimple_omp_task_arg_align_ptr): Likewise.
10140         (gimple_omp_task_set_arg_align): Likewise.
10141         (gimple_omp_single_clauses): Likewise.
10142         (gimple_omp_single_clauses_ptr): Likewise.
10143         (gimple_omp_single_set_clauses): Likewise.
10144         (gimple_omp_target_clauses): Likewise.
10145         (gimple_omp_target_clauses_ptr): Likewise.
10146         (gimple_omp_target_set_clauses): Likewise.
10147         (gimple_omp_target_child_fn): Likewise.
10148         (gimple_omp_target_child_fn_ptr): Likewise.
10149         (gimple_omp_target_set_child_fn): Likewise.
10150         (gimple_omp_target_data_arg): Likewise.
10151         (gimple_omp_target_data_arg_ptr): Likewise.
10152         (gimple_omp_target_set_data_arg): Likewise.
10153         (gimple_omp_teams_clauses): Likewise.
10154         (gimple_omp_teams_clauses_ptr): Likewise.
10155         (gimple_omp_teams_set_clauses): Likewise.
10156         (gimple_omp_sections_clauses): Likewise.
10157         (gimple_omp_sections_clauses_ptr): Likewise.
10158         (gimple_omp_sections_set_clauses): Likewise.
10159         (gimple_omp_sections_control): Likewise.
10160         (gimple_omp_sections_control_ptr): Likewise.
10161         (gimple_omp_sections_set_control): Likewise.
10162         (gimple_omp_for_set_cond): Likewise.
10163         (gimple_omp_for_cond): Likewise.
10164         (gimple_omp_atomic_store_set_val): Likewise.
10165         (gimple_omp_atomic_store_val): Likewise.
10166         (gimple_omp_atomic_store_val_ptr): Likewise.
10167         (gimple_omp_atomic_load_set_lhs): Likewise.
10168         (gimple_omp_atomic_load_lhs): Likewise.
10169         (gimple_omp_atomic_load_lhs_ptr): Likewise.
10170         (gimple_omp_atomic_load_set_rhs): Likewise.
10171         (gimple_omp_atomic_load_rhs): Likewise.
10172         (gimple_omp_atomic_load_rhs_ptr): Likewise.
10173         (gimple_omp_continue_control_def): Likewise.
10174         (gimple_omp_continue_control_def_ptr): Likewise.
10175         (gimple_omp_continue_set_control_def): Likewise.
10176         (gimple_omp_continue_control_use): Likewise.
10177         (gimple_omp_continue_control_use_ptr): Likewise.
10178         (gimple_omp_continue_set_control_use): Likewise.
10179         (gimple_transaction_body_ptr): Likewise.
10180         (gimple_transaction_label): Likewise.
10181         (gimple_transaction_label_ptr): Likewise.
10182         (gimple_transaction_set_body): Likewise.
10183         (gimple_transaction_set_label): Likewise.
10185         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
10186         * ipa-inline-analysis.c (inline_write_summary): Likewise.
10187         * ipa-ref.c (ipa_record_reference): Likewise.
10188         * ipa-reference.c (analyze_function): Likewise.
10189         (ipa_reference_write_optimization_summary): Likewise.
10190         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
10191         (address_taken_from_non_vtable_p): Likewise.
10192         (comdat_can_be_unshared_p_1): Likewise.
10193         * lto-cgraph.c (lto_output_ref): Likewise.
10194         (add_references): Likewise.
10195         (compute_ltrans_boundary): Likewise.
10196         (output_symtab): Likewise.
10197         (input_ref): Likewise.
10198         (input_cgraph_1): Likewise.
10199         (output_cgraph_opt_summary): Likewise.
10200         * lto-streamer-out.c (lto_output): Likewise.
10201         (output_symbol_p): Likewise.
10202         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
10203         (lsei_start_function_in_partition): Likewise.
10204         (lsei_next_variable_in_partition): Likewise.
10205         (lsei_start_variable_in_partition): Likewise.
10206         * symtab.c (insert_to_assembler_name_hash): Likewise.
10207         (unlink_from_assembler_name_hash): Likewise.
10208         (symtab_unregister_node): Likewise.
10209         (symtab_remove_node): Likewise.
10210         (dump_symtab_node): Likewise.
10211         (verify_symtab_base): Likewise.
10212         (verify_symtab_node): Likewise.
10213         (symtab_make_decl_local): Likewise.
10214         (symtab_alias_ultimate_target): Likewise.
10215         (symtab_resolve_alias): Likewise.
10216         (symtab_get_symbol_partitioning_class): Likewise.
10217         * tree-phinodes.c (allocate_phi_node): Likewise.
10218         (reserve_phi_args_for_new_edge): Likewise.
10219         (remove_phi_args): Likewise.
10220         * varpool.c (varpool_node_for_asm): Likewise.
10221         (varpool_remove_unreferenced_decls): Likewise.
10223 2014-04-23  Jeff Law  <law@redhat.com>
10225         PR tree-optimization/60902
10226         * tree-ssa-threadedge.c
10227         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
10228         invalidate outputs from statements that do not produce useful
10229         outputs for threading.
10231 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
10233         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
10234         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
10235         machine descriptions for Stack Smashing Protector.
10237 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
10239         * aarch64.md (<optab>_rol<mode>3): New pattern.
10240         (<optab>_rolsi3_uxtw): Likewise.
10241         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
10243 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
10245         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
10246         (arm_cortex_a12_tune): Likewise.
10248 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10250         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
10252 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10254         * config/arm/arm.md (arm_rev16si2): New pattern.
10255         (arm_rev16si2_alt): Likewise.
10256         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
10258 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10260         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
10261         (rev16<mode>2_alt): Likewise.
10262         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
10263         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
10264         (aarch_rev16_shleft_mask_imm_p): Likewise.
10265         (aarch_rev16_p_1): Likewise.
10266         (aarch_rev16_p): Likewise.
10267         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
10268         (aarch_rev16_shright_mask_imm_p): Likewise.
10269         (aarch_rev16_shleft_mask_imm_p): Likewise.
10271 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10273         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
10274         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
10275         rev cost.
10276         (cortex_a53_extra_costs): Likewise.
10277         (cortex_a57_extra_costs): Likewise.
10278         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
10279         (cortexa7_extra_costs): Likewise.
10280         (cortexa8_extra_costs): Likewise.
10281         (cortexa12_extra_costs): Likewise.
10282         (cortexa15_extra_costs): Likewise.
10283         (v7m_extra_costs): Likewise.
10284         (arm_new_rtx_costs): Handle BSWAP.
10286 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10288         * config/arm/arm.c (cortexa8_extra_costs): New table.
10289         (arm_cortex_a8_tune): New tuning struct.
10290         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
10292 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10294         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
10296 2014-04-23  Richard Biener  <rguenther@suse.de>
10298         * Makefile.in (OBJS): Remove loop-unswitch.o.
10299         * tree-pass.h (make_pass_rtl_unswitch): Remove.
10300         * passes.def (pass_rtl_unswitch): Likewise.
10301         * loop-init.c (gate_rtl_unswitch): Likewise.
10302         (rtl_unswitch): Likewise.
10303         (pass_data_rtl_unswitch): Likewise.
10304         (pass_rtl_unswitch): Likewise.
10305         (make_pass_rtl_unswitch): Likewise.
10306         * rtl.h (reversed_condition): Likewise.
10307         (compare_and_jump_seq): Likewise.
10308         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
10309         and make static.
10310         * loop-unroll.c (compare_and_jump_seq): Likewise.
10312 2014-04-23  Richard Biener  <rguenther@suse.de>
10314         PR tree-optimization/60903
10315         * tree-ssa-loop-im.c (analyze_memory_references): Remove
10316         commented code block.
10317         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
10318         loop flags to newly created BBs and edges.
10320 2014-04-23  Nick Clifton  <nickc@redhat.com>
10322         * config/msp430/msp430.c (msp430_handle_option): Move function
10323         to msp430-common.c
10324         (msp430_option_override): Simplify mcu and mcpu option handling.
10325         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
10326         support for -mhwmult command line option.
10327         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
10328         -mhwmult command line option.
10329         (msp430_hwmult_enabled): Delete.
10330         (msp43o_output_labelref): Add support for -mhwmult command line option.
10331         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
10332         (umulsidi3): Likewise.
10333         * config/msp430/msp430.opt (mmcu): Add Report attribute.
10334         (mcpu, mlarge, msmall): Likewise.
10335         (mhwmult): New option.
10336         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
10337         prototype.
10338         (msp430_is_f5_mcu): Remove prototype.
10339         (msp430_use_f5_series_hwmult): Add prototype.
10340         * config/msp430/msp430-opts.h: New file.
10341         * common/config/msp430: New directory.
10342         * common/config/msp430/msp430-common.c: New file.
10343         * config.gcc (msp430): Remove target_has_targetm_common.
10344         * doc/invoke.texi: Document -mhwmult command line option.
10346 2014-04-23  Nick Clifton  <nickc@redhat.com>
10348         * config/i386/cygwin.h (ENDFILE_SPEC): Include
10349         default-manifest.o if it can be found in the search path.
10350         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
10352 2014-04-23  Terry Guo  <terry.guo@arm.com>
10354         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
10356 2014-04-23  Richard Biener  <rguenther@suse.de>
10358         PR middle-end/60895
10359         * tree-inline.c (declare_return_variable): Use mark_addressable.
10361 2014-04-23  Richard Biener  <rguenther@suse.de>
10363         PR middle-end/60891
10364         * loop-init.c (loop_optimizer_init): Make sure to apply
10365         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
10367 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
10369         PR sanitizer/60275
10370         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
10371         New options.
10372         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
10373         if flag_sanitize_undefined_trap_on_error.
10374         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
10375         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
10376         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
10377         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
10378         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
10379         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
10380         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
10381         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
10382         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
10383         * ubsan.c (ubsan_instrument_unreachable): Return
10384         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
10385         (ubsan_expand_null_ifn): Emit __builtin_trap ()
10386         if flag_sanitize_undefined_trap_on_error and
10387         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
10388         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
10389         instrument_bool_enum_load): Emit __builtin_trap () if
10390         flag_sanitize_undefined_trap_on_error and
10391         __builtin_handle_*_abort () if !flag_sanitize_recover.
10392         * doc/invoke.texi (-fsanitize-recover,
10393         -fsanitize-undefined-trap-on-error): Document.
10395 2014-04-22  Christian Bruel  <christian.bruel@st.com>
10397         * config/sh/sh.md (mov<mode>): Replace movQIHI.
10398          Force immediates to SImode.
10400 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
10402         * config/nios2/nios2.md (UNSPEC_ROUND): New.
10403         (lroundsfsi2): New.
10404         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
10405         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
10406         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
10407         (nios2_fpu_insn): Add entry for round.
10408         (N2FPU_NO_ERRNO_P): Define.
10409         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
10410         flag_errno_math.
10411         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
10413 2014-04-22  Richard Henderson  <rth@redhat.com>
10415         * config/aarch64/aarch64 (addti3, subti3): New expanders.
10416         (add<GPI>3_compare0): Remove leading * from name.
10417         (add<GPI>3_carryin): Likewise.
10418         (sub<GPI>3_compare0): Likewise.
10419         (sub<GPI>3_carryin): Likewise.
10420         (<su_optab>mulditi3): New expander.
10421         (multi3): New expander.
10422         (madd<GPI>): Remove leading * from name.
10424 2014-04-22  Martin Jambor  <mjambor@suse.cz>
10426         * cgraphclones.c (cgraph_function_versioning): Copy
10427         ipa_transforms_to_apply instead of asserting it is empty.
10429 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
10431         PR target/60868
10432         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
10433         on count_exp to get mode.
10435 2014-04-22  Andrew Pinski  <apinski@cavium.com>
10437         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10438         Handle TLS for ILP32.
10439         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
10440         (tlsie_small_<mode>): this and handle PTR.
10441         (tlsie_small_sidi): New pattern.
10442         (tlsle_small): Change to an expand to handle ILP32.
10443         (tlsle_small_<mode>): New pattern.
10444         (tlsdesc_small): Rename to ...
10445         (tlsdesc_small_<mode>): this and handle PTR.
10447 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10449         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
10451 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
10453         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
10454         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
10455         (aarch64_types_signed_poly_qualifiers): Likewise.
10456         (aarch64_types_unsigned_signed_qualifiers): Likewise.
10457         (aarch64_types_poly_signed_qualifiers): Likewise.
10458         (TYPES_REINTERP_SS): Type macro added.
10459         (TYPES_REINTERP_SU): Likewise.
10460         (TYPES_REINTERP_SP): Likewise.
10461         (TYPES_REINTERP_US): Likewise.
10462         (TYPES_REINTERP_PS): Likewise.
10463         (aarch64_fold_builtin): New expression folding added.
10464         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
10465         Declarations removed.
10466         (REINTERP_SS): Declarations added.
10467         (REINTERP_US): Likewise.
10468         (REINTERP_PS): Likewise.
10469         (REINTERP_SU): Likewise.
10470         (REINTERP_SP): Likewise.
10471         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
10472         (vreinterpretq_p8_f64): Likewise.
10473         (vreinterpret_p16_f64): Likewise.
10474         (vreinterpretq_p16_f64): Likewise.
10475         (vreinterpret_f32_f64): Likewise.
10476         (vreinterpretq_f32_f64): Likewise.
10477         (vreinterpret_f64_f32): Likewise.
10478         (vreinterpret_f64_p8): Likewise.
10479         (vreinterpret_f64_p16): Likewise.
10480         (vreinterpret_f64_s8): Likewise.
10481         (vreinterpret_f64_s16): Likewise.
10482         (vreinterpret_f64_s32): Likewise.
10483         (vreinterpret_f64_s64): Likewise.
10484         (vreinterpret_f64_u8): Likewise.
10485         (vreinterpret_f64_u16): Likewise.
10486         (vreinterpret_f64_u32): Likewise.
10487         (vreinterpret_f64_u64): Likewise.
10488         (vreinterpretq_f64_f32): Likewise.
10489         (vreinterpretq_f64_p8): Likewise.
10490         (vreinterpretq_f64_p16): Likewise.
10491         (vreinterpretq_f64_s8): Likewise.
10492         (vreinterpretq_f64_s16): Likewise.
10493         (vreinterpretq_f64_s32): Likewise.
10494         (vreinterpretq_f64_s64): Likewise.
10495         (vreinterpretq_f64_u8): Likewise.
10496         (vreinterpretq_f64_u16): Likewise.
10497         (vreinterpretq_f64_u32): Likewise.
10498         (vreinterpretq_f64_u64): Likewise.
10499         (vreinterpret_s64_f64): Likewise.
10500         (vreinterpretq_s64_f64): Likewise.
10501         (vreinterpret_u64_f64): Likewise.
10502         (vreinterpretq_u64_f64): Likewise.
10503         (vreinterpret_s8_f64): Likewise.
10504         (vreinterpretq_s8_f64): Likewise.
10505         (vreinterpret_s16_f64): Likewise.
10506         (vreinterpretq_s16_f64): Likewise.
10507         (vreinterpret_s32_f64): Likewise.
10508         (vreinterpretq_s32_f64): Likewise.
10509         (vreinterpret_u8_f64): Likewise.
10510         (vreinterpretq_u8_f64): Likewise.
10511         (vreinterpret_u16_f64): Likewise.
10512         (vreinterpretq_u16_f64): Likewise.
10513         (vreinterpret_u32_f64): Likewise.
10514         (vreinterpretq_u32_f64): Likewise.
10516 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
10518         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
10519         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
10520         (vreinterpret_p8_s8): Likewise.
10521         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
10522         (vreinterpret_p8_s16): Likewise.
10523         (vreinterpret_p8_s32): Likewise.
10524         (vreinterpret_p8_s64): Likewise.
10525         (vreinterpret_p8_f32): Likewise.
10526         (vreinterpret_p8_u8): Likewise.
10527         (vreinterpret_p8_u16): Likewise.
10528         (vreinterpret_p8_u32): Likewise.
10529         (vreinterpret_p8_u64): Likewise.
10530         (vreinterpret_p8_p16): Likewise.
10531         (vreinterpretq_p8_s8): Likewise.
10532         (vreinterpretq_p8_s16): Likewise.
10533         (vreinterpretq_p8_s32): Likewise.
10534         (vreinterpretq_p8_s64): Likewise.
10535         (vreinterpretq_p8_f32): Likewise.
10536         (vreinterpretq_p8_u8): Likewise.
10537         (vreinterpretq_p8_u16): Likewise.
10538         (vreinterpretq_p8_u32): Likewise.
10539         (vreinterpretq_p8_u64): Likewise.
10540         (vreinterpretq_p8_p16): Likewise.
10541         (vreinterpret_p16_s8): Likewise.
10542         (vreinterpret_p16_s16): Likewise.
10543         (vreinterpret_p16_s32): Likewise.
10544         (vreinterpret_p16_s64): Likewise.
10545         (vreinterpret_p16_f32): Likewise.
10546         (vreinterpret_p16_u8): Likewise.
10547         (vreinterpret_p16_u16): Likewise.
10548         (vreinterpret_p16_u32): Likewise.
10549         (vreinterpret_p16_u64): Likewise.
10550         (vreinterpret_p16_p8): Likewise.
10551         (vreinterpretq_p16_s8): Likewise.
10552         (vreinterpretq_p16_s16): Likewise.
10553         (vreinterpretq_p16_s32): Likewise.
10554         (vreinterpretq_p16_s64): Likewise.
10555         (vreinterpretq_p16_f32): Likewise.
10556         (vreinterpretq_p16_u8): Likewise.
10557         (vreinterpretq_p16_u16): Likewise.
10558         (vreinterpretq_p16_u32): Likewise.
10559         (vreinterpretq_p16_u64): Likewise.
10560         (vreinterpretq_p16_p8): Likewise.
10561         (vreinterpret_f32_s8): Likewise.
10562         (vreinterpret_f32_s16): Likewise.
10563         (vreinterpret_f32_s32): Likewise.
10564         (vreinterpret_f32_s64): Likewise.
10565         (vreinterpret_f32_u8): Likewise.
10566         (vreinterpret_f32_u16): Likewise.
10567         (vreinterpret_f32_u32): Likewise.
10568         (vreinterpret_f32_u64): Likewise.
10569         (vreinterpret_f32_p8): Likewise.
10570         (vreinterpret_f32_p16): Likewise.
10571         (vreinterpretq_f32_s8): Likewise.
10572         (vreinterpretq_f32_s16): Likewise.
10573         (vreinterpretq_f32_s32): Likewise.
10574         (vreinterpretq_f32_s64): Likewise.
10575         (vreinterpretq_f32_u8): Likewise.
10576         (vreinterpretq_f32_u16): Likewise.
10577         (vreinterpretq_f32_u32): Likewise.
10578         (vreinterpretq_f32_u64): Likewise.
10579         (vreinterpretq_f32_p8): Likewise.
10580         (vreinterpretq_f32_p16): Likewise.
10581         (vreinterpret_s64_s8): Likewise.
10582         (vreinterpret_s64_s16): Likewise.
10583         (vreinterpret_s64_s32): Likewise.
10584         (vreinterpret_s64_f32): Likewise.
10585         (vreinterpret_s64_u8): Likewise.
10586         (vreinterpret_s64_u16): Likewise.
10587         (vreinterpret_s64_u32): Likewise.
10588         (vreinterpret_s64_u64): Likewise.
10589         (vreinterpret_s64_p8): Likewise.
10590         (vreinterpret_s64_p16): Likewise.
10591         (vreinterpretq_s64_s8): Likewise.
10592         (vreinterpretq_s64_s16): Likewise.
10593         (vreinterpretq_s64_s32): Likewise.
10594         (vreinterpretq_s64_f32): Likewise.
10595         (vreinterpretq_s64_u8): Likewise.
10596         (vreinterpretq_s64_u16): Likewise.
10597         (vreinterpretq_s64_u32): Likewise.
10598         (vreinterpretq_s64_u64): Likewise.
10599         (vreinterpretq_s64_p8): Likewise.
10600         (vreinterpretq_s64_p16): Likewise.
10601         (vreinterpret_u64_s8): Likewise.
10602         (vreinterpret_u64_s16): Likewise.
10603         (vreinterpret_u64_s32): Likewise.
10604         (vreinterpret_u64_s64): Likewise.
10605         (vreinterpret_u64_f32): Likewise.
10606         (vreinterpret_u64_u8): Likewise.
10607         (vreinterpret_u64_u16): Likewise.
10608         (vreinterpret_u64_u32): Likewise.
10609         (vreinterpret_u64_p8): Likewise.
10610         (vreinterpret_u64_p16): Likewise.
10611         (vreinterpretq_u64_s8): Likewise.
10612         (vreinterpretq_u64_s16): Likewise.
10613         (vreinterpretq_u64_s32): Likewise.
10614         (vreinterpretq_u64_s64): Likewise.
10615         (vreinterpretq_u64_f32): Likewise.
10616         (vreinterpretq_u64_u8): Likewise.
10617         (vreinterpretq_u64_u16): Likewise.
10618         (vreinterpretq_u64_u32): Likewise.
10619         (vreinterpretq_u64_p8): Likewise.
10620         (vreinterpretq_u64_p16): Likewise.
10621         (vreinterpret_s8_s16): Likewise.
10622         (vreinterpret_s8_s32): Likewise.
10623         (vreinterpret_s8_s64): Likewise.
10624         (vreinterpret_s8_f32): Likewise.
10625         (vreinterpret_s8_u8): Likewise.
10626         (vreinterpret_s8_u16): Likewise.
10627         (vreinterpret_s8_u32): Likewise.
10628         (vreinterpret_s8_u64): Likewise.
10629         (vreinterpret_s8_p8): Likewise.
10630         (vreinterpret_s8_p16): Likewise.
10631         (vreinterpretq_s8_s16): Likewise.
10632         (vreinterpretq_s8_s32): Likewise.
10633         (vreinterpretq_s8_s64): Likewise.
10634         (vreinterpretq_s8_f32): Likewise.
10635         (vreinterpretq_s8_u8): Likewise.
10636         (vreinterpretq_s8_u16): Likewise.
10637         (vreinterpretq_s8_u32): Likewise.
10638         (vreinterpretq_s8_u64): Likewise.
10639         (vreinterpretq_s8_p8): Likewise.
10640         (vreinterpretq_s8_p16): Likewise.
10641         (vreinterpret_s16_s8): Likewise.
10642         (vreinterpret_s16_s32): Likewise.
10643         (vreinterpret_s16_s64): Likewise.
10644         (vreinterpret_s16_f32): Likewise.
10645         (vreinterpret_s16_u8): Likewise.
10646         (vreinterpret_s16_u16): Likewise.
10647         (vreinterpret_s16_u32): Likewise.
10648         (vreinterpret_s16_u64): Likewise.
10649         (vreinterpret_s16_p8): Likewise.
10650         (vreinterpret_s16_p16): Likewise.
10651         (vreinterpretq_s16_s8): Likewise.
10652         (vreinterpretq_s16_s32): Likewise.
10653         (vreinterpretq_s16_s64): Likewise.
10654         (vreinterpretq_s16_f32): Likewise.
10655         (vreinterpretq_s16_u8): Likewise.
10656         (vreinterpretq_s16_u16): Likewise.
10657         (vreinterpretq_s16_u32): Likewise.
10658         (vreinterpretq_s16_u64): Likewise.
10659         (vreinterpretq_s16_p8): Likewise.
10660         (vreinterpretq_s16_p16): Likewise.
10661         (vreinterpret_s32_s8): Likewise.
10662         (vreinterpret_s32_s16): Likewise.
10663         (vreinterpret_s32_s64): Likewise.
10664         (vreinterpret_s32_f32): Likewise.
10665         (vreinterpret_s32_u8): Likewise.
10666         (vreinterpret_s32_u16): Likewise.
10667         (vreinterpret_s32_u32): Likewise.
10668         (vreinterpret_s32_u64): Likewise.
10669         (vreinterpret_s32_p8): Likewise.
10670         (vreinterpret_s32_p16): Likewise.
10671         (vreinterpretq_s32_s8): Likewise.
10672         (vreinterpretq_s32_s16): Likewise.
10673         (vreinterpretq_s32_s64): Likewise.
10674         (vreinterpretq_s32_f32): Likewise.
10675         (vreinterpretq_s32_u8): Likewise.
10676         (vreinterpretq_s32_u16): Likewise.
10677         (vreinterpretq_s32_u32): Likewise.
10678         (vreinterpretq_s32_u64): Likewise.
10679         (vreinterpretq_s32_p8): Likewise.
10680         (vreinterpretq_s32_p16): Likewise.
10681         (vreinterpret_u8_s8): Likewise.
10682         (vreinterpret_u8_s16): Likewise.
10683         (vreinterpret_u8_s32): Likewise.
10684         (vreinterpret_u8_s64): Likewise.
10685         (vreinterpret_u8_f32): Likewise.
10686         (vreinterpret_u8_u16): Likewise.
10687         (vreinterpret_u8_u32): Likewise.
10688         (vreinterpret_u8_u64): Likewise.
10689         (vreinterpret_u8_p8): Likewise.
10690         (vreinterpret_u8_p16): Likewise.
10691         (vreinterpretq_u8_s8): Likewise.
10692         (vreinterpretq_u8_s16): Likewise.
10693         (vreinterpretq_u8_s32): Likewise.
10694         (vreinterpretq_u8_s64): Likewise.
10695         (vreinterpretq_u8_f32): Likewise.
10696         (vreinterpretq_u8_u16): Likewise.
10697         (vreinterpretq_u8_u32): Likewise.
10698         (vreinterpretq_u8_u64): Likewise.
10699         (vreinterpretq_u8_p8): Likewise.
10700         (vreinterpretq_u8_p16): Likewise.
10701         (vreinterpret_u16_s8): Likewise.
10702         (vreinterpret_u16_s16): Likewise.
10703         (vreinterpret_u16_s32): Likewise.
10704         (vreinterpret_u16_s64): Likewise.
10705         (vreinterpret_u16_f32): Likewise.
10706         (vreinterpret_u16_u8): Likewise.
10707         (vreinterpret_u16_u32): Likewise.
10708         (vreinterpret_u16_u64): Likewise.
10709         (vreinterpret_u16_p8): Likewise.
10710         (vreinterpret_u16_p16): Likewise.
10711         (vreinterpretq_u16_s8): Likewise.
10712         (vreinterpretq_u16_s16): Likewise.
10713         (vreinterpretq_u16_s32): Likewise.
10714         (vreinterpretq_u16_s64): Likewise.
10715         (vreinterpretq_u16_f32): Likewise.
10716         (vreinterpretq_u16_u8): Likewise.
10717         (vreinterpretq_u16_u32): Likewise.
10718         (vreinterpretq_u16_u64): Likewise.
10719         (vreinterpretq_u16_p8): Likewise.
10720         (vreinterpretq_u16_p16): Likewise.
10721         (vreinterpret_u32_s8): Likewise.
10722         (vreinterpret_u32_s16): Likewise.
10723         (vreinterpret_u32_s32): Likewise.
10724         (vreinterpret_u32_s64): Likewise.
10725         (vreinterpret_u32_f32): Likewise.
10726         (vreinterpret_u32_u8): Likewise.
10727         (vreinterpret_u32_u16): Likewise.
10728         (vreinterpret_u32_u64): Likewise.
10729         (vreinterpret_u32_p8): Likewise.
10730         (vreinterpret_u32_p16): Likewise.
10731         (vreinterpretq_u32_s8): Likewise.
10732         (vreinterpretq_u32_s16): Likewise.
10733         (vreinterpretq_u32_s32): Likewise.
10734         (vreinterpretq_u32_s64): Likewise.
10735         (vreinterpretq_u32_f32): Likewise.
10736         (vreinterpretq_u32_u8): Likewise.
10737         (vreinterpretq_u32_u16): Likewise.
10738         (vreinterpretq_u32_u64): Likewise.
10739         (vreinterpretq_u32_p8): Likewise.
10740         (vreinterpretq_u32_p16): Likewise.
10742 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
10744         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
10745         Pattern extended.
10746         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
10747         (sqabs): Likewise.
10748         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
10749         (vqnegd_s64): Likewise.
10750         (vqabs_s64): Likewise.
10751         (vqabsd_s64): Likewise.
10753 2014-04-22  Richard Henderson  <rth@redhat.com>
10755         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
10756         computation to the top of the loop.
10758 2014-04-22  Renlin  <renlin.li@arm.com>
10759             Jiong Wang  <jiong.wang@arm.com>
10761         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
10762         * config/aarch64/aarch64.c (aarch64_layout_frame)
10763         (aarch64_initial_elimination_offset): Likewise.
10765 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10767         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
10768         Fix indentation.
10770 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
10772         * machmode.h (bitwise_mode_for_mode): Declare.
10773         * stor-layout.h (bitwise_type_for_mode): Likewise.
10774         * stor-layout.c (bitwise_mode_for_mode): New function.
10775         (bitwise_type_for_mode): Likewise.
10776         * builtins.c (fold_builtin_memory_op): Use it instead of
10777         int_mode_for_mode and build_nonstandard_integer_type.
10779 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10781         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
10782         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
10783         (*-*-solaris2*): Simplify.
10784         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
10785         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
10786         *-*-solaris2.9* handling.
10788         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
10789         as bug.
10790         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
10791         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
10792         handling, simplify.
10793         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
10794         * configure: Regenerate.
10796         * config/i386/sol2-9.h: Remove.
10798         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
10799         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
10800         Remove Solaris 9 references.
10802 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
10804         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
10805         (floatuns<GPI:mode><GPF:mode>2): Remove.
10806         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
10807         and floatuns conversions.
10808         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
10809         and floatuns conversions.
10810         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
10811         (w1,w2): New mode attributes for inequal width conversions.
10813 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
10815         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
10816         the output asm format.
10818 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
10820         * config/aarch64/aarch64-simd.md
10821         (aarch64_cm<optab>di): Always split.
10822         (*aarch64_cm<optab>di): New.
10823         (aarch64_cmtstdi): Always split.
10824         (*aarch64_cmtstdi): New.
10826 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
10828         PR tree-optimization/60823
10829         * omp-low.c (ipa_simd_modify_function_body): Go through
10830         all SSA_NAMEs and for those refering to vector arguments
10831         which are going to be replaced adjust SSA_NAME_VAR and,
10832         if it is a default definition, change it into a non-default
10833         definition assigned at the beginning of function from new_decl.
10834         (ipa_simd_modify_stmt_ops): Rewritten.
10835         * tree-dfa.c (set_ssa_default_def): When removing default def,
10836         check for NULL loc instead of NULL *loc.
10838 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10840         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
10841         restrictions on core registers for DImode values in Thumb2.
10843 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
10845         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
10846         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
10848 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
10850         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
10851         (*iordi_notzesidi_di): Likewise.
10852         (*iordi_notsesidi_di): Likewise.
10854 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
10856         * config/arm/arm-protos.h (tune_params): New struct members.
10857         * config/arm/arm.c: Initialise tune_params per processor.
10858         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
10859         for speed, based on new tune_params.
10861 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
10863         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
10864         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
10865         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
10866         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
10867         * config/aarch64/arm_neon.h (vrnd_f64): Added.
10868         (vrnda_f64): Likewise.
10869         (vrndi_f64): Likewise.
10870         (vrndm_f64): Likewise.
10871         (vrndn_f64): Likewise.
10872         (vrndp_f64): Likewise.
10873         (vrndx_f64): Likewise.
10875 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10877         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
10878         GET_MODE_SIZE argument is enum machine_mode.
10880 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
10882         PR target/60910
10883         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
10884         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
10886 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
10888         PR middle-end/60281
10889         * asan.c (asan_emit_stack_protection): Force the base to align to
10890         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
10891         appropriate bits if STRICT_ALIGNMENT.
10892         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
10893         when asan is on.
10894         (expand_used_vars): Leave a space in the stack frame for alignment
10895         if STRICT_ALIGNMENT.
10897 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
10899         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
10900         than a gimple.
10901         (gimple_store_p): Likewise.
10902         (gimple_assign_load_p): Likewise.
10903         (gimple_assign_cast_p): Likewise.
10904         (gimple_clobber_p): Likewise.
10906         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
10907         rather than a gimple.
10908         (gimple_assign_cast_p): Likewise.
10910 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10912         PR target/60735
10913         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
10914         If mode is DDmode and TARGET_E500_DOUBLE allow move.
10916         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
10917         more debug information for E500 if -mdebug=reg.
10919 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
10921         PR target/60909
10922         * config/i386/i386.c (ix86_expand_builtin)
10923         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
10924         register for target RTX.
10925         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
10927 2014-04-18  Cong Hou  <congh@google.com>
10929         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
10930         the widen-mult pattern by handling two operands with different sizes,
10931         and operands whose size is smaller than half of the result type.
10933 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
10935         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
10936         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
10937         (do_estimate_edge_time): Compute it.
10938         * ipa-inline.c (want_inline_small_function_p): Bypass
10939         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
10941 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
10943         * ipa-inline.c (spec_rem): New static variable.
10944         (dump_overall_stats): New function.
10945         (dump_inline_stats): New function.
10947 2014-04-18  Richard Henderson  <rth@redhat.com>
10949         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
10950         to GET_MODE_SIZE, not a reg_class_t.
10952 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10954         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
10955         (vsx_xxmrglw_<mode>): Likewise.
10957 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
10959         PR target/60876
10960         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
10961         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
10962         (rs6000_init_hard_regno_mode_ok): Likewise.
10964 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
10966         * ipa-inline.c (inline_small_functions): Account only non-cold
10967         functions.
10968         * doc/invoke.texi (inline-unit-growth): Update documentation.
10970 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
10972         * config/rs6000/rs6000.md (addti3, subti3): New.
10974 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
10976         PR target/60863
10977         * config/i386/i386.c (ix86_expand_clear): Remove outdated
10978         comment.  Check optimize_insn_for_size_p instead of
10979         optimize_insn_for_speed_p.
10981 2014-04-17  Martin Jambor  <mjambor@suse.cz>
10983         * gimple-iterator.c (gsi_start_edge): New function.
10984         * gimple-iterator.h (gsi_start_edge): Declare.
10985         * tree-sra.c (single_non_eh_succ): New function.
10986         (disqualify_ops_if_throwing_stmt): Renamed to
10987         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
10988         having one non-EH successor BB.
10989         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
10990         generate loads into replacements.
10991         (sra_modify_assign): Likewise and and also use the simple path for
10992         such statements.
10993         (sra_modify_function_body): Commit statements on edges.
10995 2014-04-17  Richard Biener  <rguenther@suse.de>
10997         PR middle-end/60849
10998         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
10999         comparison results and add clarifying comment.
11001 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
11003         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
11004         (blank_mode): Initialize it.
11005         (emit_mode_size_inline, emit_mode_nunits_inline,
11006         emit_mode_inner_inline): New functions.
11007         (emit_insn_modes_h): Call them and surround their output with
11008         #if GCC_VERSION >= 4001 ... #endif.
11009         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
11010         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
11011         mode_* arrays if the argument is __builtin_constant_p.
11012         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
11013         is enum machine_mode.
11015 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
11017         * passes.c (opt_pass::execute): Adjust.
11018         (pass_manager::execute_pass_mode_switching): Likewise.
11019         (early_local_passes::execute): Likewise.
11020         (execute_one_pass): Pass cfun to the pass's execute method.
11021         * tree-pass.h (opt_pass::execute): Add function * argument.
11022         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
11023         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
11024         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
11025         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
11026         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
11027         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
11028         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
11029         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
11030         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
11031         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
11032         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
11033         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
11034         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
11035         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
11036         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
11037         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
11038         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
11039         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
11040         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
11041         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11042         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
11043         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
11044         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
11045         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11046         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11047         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
11048         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
11049         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
11050         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
11051         Adjust.
11053 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
11055         * passes.c (opt_pass::gate): Take function * argument.
11056         (gate_all_early_local_passes): Merge into
11057         (early_local_passes::gate): this.
11058         (gate_all_early_optimizations): Merge into
11059         (all_early_optimizations::gate): this.
11060         (gate_all_optimizations): Mege into
11061         (all_optimizations::gate): this.
11062         (gate_all_optimizations_g): Merge into
11063         (all_optimizations_g::gate): this.
11064         (gate_rest_of_compilation): Mege into
11065         (rest_of_compilation::gate): this.
11066         (gate_postreload): Merge into
11067         (postreload::gate): this.
11068         (dump_one_pass): Pass cfun to the pass's gate method.
11069         (execute_ipa_summary_passes): Likewise.
11070         (execute_one_pass): Likewise.
11071         (ipa_write_summaries_2): Likewise.
11072         (ipa_write_optimization_summaries_1): Likewise.
11073         (ipa_read_summaries_1): Likewise.
11074         (ipa_read_optimization_summaries_1): Likewise.
11075         (execute_ipa_stmt_fixups): Likewise.
11076         * tree-pass.h (opt_pass::gate): Add function * argument.
11077         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
11078         combine-stack-adj.c, combine.c, compare-elim.c,
11079         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
11080         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
11081         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
11082         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
11083         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
11084         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
11085         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
11086         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
11087         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
11088         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
11089         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
11090         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
11091         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
11092         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
11093         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11094         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11095         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
11096         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
11097         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
11098         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11099         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11100         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
11101         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
11102         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
11103         var-tracking.c, vtable-verify.c, web.c: Adjust.
11105 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
11107         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
11108         * configure: Regenerate.
11110 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
11112         * passes.c (dump_one_pass): don't check pass->has_gate.
11113         (execute_ipa_summary_passes): Likewise.
11114         (execute_one_pass): Likewise.
11115         (ipa_write_summaries_2): Likewise.
11116         (ipa_write_optimization_summaries_1): Likewise.
11117         (ipa_read_optimization_summaries_1): Likewise.
11118         (execute_ipa_stmt_fixups): Likewise.
11119         * tree-pass.h (pass_data::has_gate): Remove.
11120         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
11121         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
11122         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
11123         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
11124         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
11125         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
11126         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
11127         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
11128         gimple-low.c, gimple-ssa-isolate-paths.c,
11129         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
11130         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
11131         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
11132         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
11133         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
11134         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
11135         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
11136         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
11137         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
11138         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
11139         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
11140         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11141         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11142         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
11143         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
11144         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
11145         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11146         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11147         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
11148         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
11149         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
11150         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
11151         Adjust.
11153 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
11155         * pass_manager.h (pass_manager::register_dump_files_1): Remove
11156         declaration.
11157         * passes.c (pass_manager::register_dump_files_1): Merge into
11158         (pass_manager::register_dump_files): this, and remove its handling of
11159         properties since the pass always has the properties anyway.
11160         (pass_manager::pass_manager): Adjust.
11162 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
11164         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
11165         * passes.c (pass_manager::register_dump_files_1): Remove dead code
11166         dealing with properties.
11167         (pass_manager::register_dump_files): Adjust.
11169 2014-03-20  Mark Wielaard  <mjw@redhat.com>
11171         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
11172         then represent the bound as normal constant value.
11174 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
11176         PR target/60847
11177         Forward port from 4.8 branch
11178         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
11180         * config/i386/bmiintrin.h (_blsi_u32): New.
11181         (_blsi_u64): Ditto.
11182         (_blsr_u32): Ditto.
11183         (_blsr_u64): Ditto.
11184         (_blsmsk_u32): Ditto.
11185         (_blsmsk_u64): Ditto.
11186         (_tzcnt_u32): Ditto.
11187         (_tzcnt_u64): Ditto.
11189 2014-04-17  Kito Cheng  <kito@0xlab.org>
11191         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
11193 2014-04-17  Richard Biener  <rguenther@suse.de>
11195         PR middle-end/60849
11196         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
11197         boolean results for comparisons.
11199 2014-04-17  Richard Biener  <rguenther@suse.de>
11201         PR tree-optimization/60836
11202         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
11203         initial PHI args to be gimple values.
11205 2014-04-17  Richard Biener  <rguenther@suse.de>
11207         PR tree-optimization/60841
11208         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
11209         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
11210         of stmts to SLP build.
11211         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
11212         (vect_analyze_slp): Likewise.
11213         (vect_analyze_slp_instance): Likewise.
11214         (vect_build_slp_tree): Limit overall SLP tree growth.
11215         * tree-vectorizer.h (vect_analyze_data_refs,
11216         vect_analyze_slp): Adjust prototypes.
11218 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
11220         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
11221         Silvermont.
11223 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
11225         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
11226         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
11227         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
11228         for TARGET_SLOW_PSHUFB
11230 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
11232         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
11233         * config/i386/i386.c (intel_cost): Ditto.
11235 2014-04-17  Joey Ye  <joey.ye@arm.com>
11237         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
11239 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
11241         * opts.c (common_handle_option): Disable -fipa-reference coorectly
11242         with -fuse-profile.
11244 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
11246         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
11247         (type_all_derivations_known_p): New predicate.
11248         (type_all_ctors_visible_p): New predicate.
11249         (type_possibly_instantiated_p): New predicate.
11250         (get_odr_type): Compute all_derivations_known.
11251         (dump_odr_type): Dump the flag.
11252         (maybe_record_type): Cleanup.
11253         (record_target_from_binfo): Add bases_to_consider array;
11254         record bases for types w/o instances and skip CXX destructor.
11255         (possible_polymorphic_call_targets_1): Add bases_to_consider
11256         and consider_construction parameters; check if type may have instance.
11257         (get_polymorphic_call_info): Set maybe_in_construction to true
11258         when we know nothing.
11259         (record_targets_from_bases): Skip CXX destructors; they are
11260         never called for types in construction.
11261         (possible_polymorphic_call_targets): Do not record target when
11262         type may not have instance.
11264 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
11266         PR ipa/60854
11267         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
11268         external aliases alive, too.
11270 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
11272         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
11273         definition.
11275 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
11277         * final.c (compute_alignments): Do not apply loop alignment to a block
11278         falling through to the exit.
11280 2014-04-16  Catherine Moore  <clm@codesourcery.com>
11282         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
11283         Adjust constraints for microMIPS store patterns.
11285 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
11287         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
11289 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
11291         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
11292         (append_use): Run at -O0.
11293         (append_vdef): Likewise.
11294         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
11295         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
11297 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
11299         PR tree-optimization/60844
11300         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
11301         (propagate_op_to_single_use, remove_visited_stmt_chain,
11302         linearize_expr, repropagate_negates, reassociate_bb): Use it
11303         instead of gsi_remove.
11305 2014-04-16  Martin Jambor  <mjambor@suse.cz>
11307         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
11308         ipa_transforms_to_apply.
11309         (cgraph_function_versioning): Assert that old_node has empty
11310         ipa_transforms_to_apply.
11311         * trans-mem.c (ipa_tm_create_version): Likewise.
11312         * tree-inline.c (tree_function_versioning): Do not duplicate
11313         ipa_transforms_to_apply.
11315 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11317         PR target/60817
11318         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
11319         x86_64-*-* cases.
11320         Pass necessary as flags on 64-bit Solaris/x86.
11321         Use lowercase relocs for x86_64-*-*.
11322         * configure: Regenerate.
11324 2014-04-15  Jan Hubicka  <jh@suse.cz>
11326         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
11327         (maybe_record_node, likely_target_p): Use it.
11329 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11331         PR target/60839
11332         Revert following patch
11334         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11336         PR target/60735
11337         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
11338         software floating point or no floating point registers, do not
11339         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
11340         in GPRs that occurs after we tested for GPRs that would never be
11341         true.
11343         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
11344         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
11345         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
11346         specifically allow DDmode, since that does not use the SPE SIMD
11347         instructions.
11349 2014-03-21  Mark Wielaard  <mjw@redhat.com>
11351         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
11352         as unsigned or int depending on type and value used.
11354 2014-04-15  Richard Biener  <rguenther@suse.de>
11356         PR rtl-optimization/56965
11357         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
11358         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
11359         ... here.
11360         * alias.c (true_dependence_1): Do not call
11361         nonoverlapping_component_refs_p.
11362         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
11363         nonoverlapping_component_refs_p.
11364         (indirect_refs_may_alias_p): Likewise.
11366 2014-04-15  Teresa Johnson  <tejohnson@google.com>
11368         * cfg.c (dump_bb_info): Fix flags check.
11369         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
11371 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11373         PR rtl-optimization/60663
11374         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
11375         avoid 0 cost.
11377 2014-04-15  Richard Biener  <rguenther@suse.de>
11379         * lto-streamer.h (LTO_major_version): Bump to 4.
11381 2014-04-15  Richard Biener  <rguenther@suse.de>
11383         * common.opt (lto_partition_model): New enum.
11384         (flto-partition=): Merge separate options with a single with argument,
11385         add -flto-partition=one support.
11386         * flag-types.h (enum lto_partition_model): Declare.
11387         * opts.c (finish_options): Remove duplicate -flto-partition=
11388         option check.
11389         * lto-wrapper.c (run_gcc): Adjust.
11391 2014-04-15  Richard Biener  <rguenther@suse.de>
11393         * alias.c (ncr_compar): New function.
11394         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
11396 2014-04-15  Richard Biener  <rguenther@suse.de>
11398         * alias.c (record_component_aliases): Do not walk BINFOs.
11400 2014-04-15  Richard Biener  <rguenther@suse.de>
11402         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11403         Add struct function argument and adjust.
11404         (find_func_aliases_for_call): Likewise.
11405         (find_func_aliases): Likewise.
11406         (find_func_clobbers): Likewise.
11407         (intra_create_variable_infos): Likewise.
11408         (compute_points_to_sets): Likewise.
11409         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
11411 2014-04-15  Richard Biener  <rguenther@suse.de>
11413         * tree.c (iterative_hash_expr): Use enum tree_code_class
11414         to store TREE_CODE_CLASS.
11415         (tree_block): Likewise.
11416         (tree_set_block): Likewise.
11417         * tree.h (fold_build_pointer_plus_loc): Use
11418         convert_to_ptrofftype_loc.
11420 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
11422         PR plugins/59335
11423         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
11424         added in 4.9.
11426 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
11428         * cfgloop.h (struct loop): Move force_vectorize down.
11429         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
11430         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
11431         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
11432         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
11433         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
11434         * tree-core.h (enum annot_expr_kind): Add new kind values.
11435         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
11436         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
11437         kinds.
11438         * tree.def (ANNOTATE_EXPR): Tweak comment.
11440 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
11442         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
11443         cxa_pure_virtual).
11445 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
11447         * tree.h (TYPE_IDENTIFIER): Declare.
11448         * tree.c (subrange_type_for_debug_p): Use it.
11449         * godump.c (go_format_type): Likewise.
11450         * dwarf2out.c (is_cxx_auto, modified_type_die,
11451         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
11452         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
11454 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
11456         PR lto/60820
11457         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
11459 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
11461         * config/i386/i386.c (examine_argument): Return bool.  Return true if
11462         parameter should be passed in memory.
11463         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
11464         (construct_container): Update calls to examine_argument.
11465         (function_arg_advance_64): Ditto.
11466         (return_in_memory_32): Merge with ix86_return_in_memory.
11467         (return_in_memory_64): Ditto.
11468         (return_in_memory_ms_64): Ditto.
11470 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
11472         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
11473         * coverage.c (coverage_compute_profile_id): Handle externally visible
11474         symbols.
11476 2014-04-14  Martin Jambor  <mjambor@suse.cz>
11478         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
11479         DECL_DISREGARD_INLINE_LIMITS functions.
11481 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
11483         PR target/60827
11484         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
11486 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
11488         PR target/60827
11489         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
11490         optimize_insn_for_speed_p instead of
11491         optimize_function_for_speed_p.
11493 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
11495         * doc/invoke.texi (free): Document AArch64.
11497 2014-04-14  Richard Biener  <rguenther@suse.de>
11499         PR tree-optimization/60042
11500         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
11501         (insert_into_preds_of_block): Do not prevent PHI insertion
11502         for REFERENCE exprs here ...
11503         (eliminate_dom_walker::before_dom_children): ... but prevent
11504         their use here under similar conditions when applied to the
11505         IL after PRE optimizations.
11507 2014-04-14  Richard Biener  <rguenther@suse.de>
11509         * passes.def: Move early points-to after early SRA.
11511 2014-04-14  Richard Biener  <rguenther@suse.de>
11513         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
11514         check for which sign-changes we allow when forwarding
11515         a converted value into a switch.
11517 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
11519         * stor-layout.c (place_field): Finalize non-constant offset for the
11520         field, if any.
11522 2014-04-14  Richard Biener  <rguenther@suse.de>
11524         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
11525         as argument.
11526         (expand_switch_using_bit_tests_p): Likewise.
11527         (process_switch): Compute and pass on speed_p based on the
11528         switch stmt.
11529         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
11530         optimize_bb_for_speed_p.
11532 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
11534         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
11535         * function.h (struct function): Rename has_force_vect_loops into
11536         has_force_vectorize_loops.
11537         * lto-streamer-in.c (input_cfg): Adjust for renaming.
11538         (input_struct_function_base): Likewise.
11539         * lto-streamer-out.c (output_cfg): Likewise.
11540         (output_struct_function_base): Likewise.
11541         * omp-low.c (expand_omp_simd): Likewise.
11542         * tree-cfg.c (move_sese_region_to_fn): Likewise.
11543         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
11544         (version_loop_for_if_conversion): Likewise.
11545         (tree_if_conversion): Likewise.
11546         (main_tree_if_conversion): Likewise.
11547         (gate_tree_if_conversion): Likewise.
11548         * tree-inline.c (copy_loops): Likewise.
11549         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
11550         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
11551         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
11552         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
11553         * tree-vectorizer.c (vectorize_loops): Likewise.
11554         * tree-vectorizer.h (unlimited_cost_model): Likewise.
11556 2014-04-14  Richard Biener  <rguenther@suse.de>
11558         PR lto/60720
11559         * lto-streamer-out.c (wrap_refs): New function.
11560         (lto_output): Wrap symbol references in global initializes in
11561         type-preserving MEM_REFs.
11563 2014-04-14  Christian Bruel  <christian.bruel@st.com>
11565         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
11567 2014-04-14  Christian Bruel  <christian.bruel@st.com>
11569         * config/sh/sh.md (setmemqi): New expand pattern.
11570         * config/sh/sh.h (CLEAR_RATIO): Define.
11571         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
11572         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
11574 2014-04-14  Richard Biener  <rguenther@suse.de>
11576         PR middle-end/55022
11577         * fold-const.c (negate_expr_p): Don't negate directional rounding
11578         division.
11579         (fold_negate_expr): Likewise.
11581 2014-04-14  Richard Biener  <rguenther@suse.de>
11583         PR tree-optimization/59817
11584         PR tree-optimization/60453
11585         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
11586         recursion to catch all CHRECs in the scalar evolution and restrict
11587         the predicate for the remains appropriately.
11589 2014-04-12  Catherine Moore  <clm@codesourcery.com>
11591         * config/mips/constraints.md: Add new register constraint "kb".
11592         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
11593         (*movhi_internal): Likewise.
11594         (*movqi_internal): Likewise.
11595         * config/mips/mips.h (M16_STORE_REGS): New register class.
11596         (REG_CLASS_NAMES): Add M16_STORE_REGS.
11597         (REG_CLASS_CONTENTS): Likewise.
11598         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
11600 2014-04-11  Tobias Burnus  <burnus@net-b.de>
11602         PR c/60194
11603         * doc/invoke.texi (-Wformat-signedness): Document it.
11604         (Wformat=2): Mention that this enables -Wformat-signedness.
11606 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
11608         * common/config/epiphany/epiphany-common.c
11609         (epiphany_option_optimization_table): Enable section anchors by
11610         default at -O1 or higher.
11611         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
11612         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
11613         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
11614         carries no extra cost.
11615         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
11616         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
11617         * config/epiphany/predicates.md (memclob_operand): New predicate.
11618         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
11619         Use memclob_operand predicate and X constraint for operand 3.
11621 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
11623         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
11624         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
11625         its operands.
11627 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
11629         PR rtl-optimization/60651
11630         * mode-switching.c (optimize_mode_switching): Make sure to emit
11631         sets of a lower numbered entity before sets of a higher numbered
11632         entity to a mode of the same or lower priority.
11633         When creating a seginfo for a basic block that starts with a code
11634         label, move the insertion point past the code label.
11635         (new_seginfo): Document and enforce requirement that
11636         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
11637         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
11638         * doc/tm.texi: Regenerate.
11640 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
11642         PR target/60811
11643         * config/arc/arc.c (arc_save_restore): Fix assert typo.
11645 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
11647         * BASE-VER: Set to 4.10.0.
11649 2014-04-11  Tobias Burnus  <burnus@net-b.de>
11651         PR other/59055
11652         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
11653         * doc/gcc.texi (Service): Update description in the @menu
11654         * doc/invoke.texi (Option Summary): Remove misplaced and
11655         duplicated @menu.
11657 2014-04-11  Steve Ellcey  <sellcey@mips.com>
11658             Jakub Jelinek  <jakub@redhat.com>
11660         PR middle-end/60556
11661         * expr.c (convert_move): Use emit_store_flag_force instead of
11662         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
11663         argument to it.
11665 2014-04-11  Richard Biener  <rguenther@suse.de>
11667         PR middle-end/60797
11668         * varasm.c (assemble_alias): Avoid endless error reporting
11669         recursion by setting TREE_ASM_WRITTEN.
11671 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11673         * config/s390/s390.md: Add a splitter for NOT rtx.
11675 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
11677         PR rtl-optimization/60663
11678         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
11680 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
11681             Jakub Jelinek  <jakub@redhat.com>
11683         PR lto/60567
11684         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
11685         flag from decl_node to node.
11687 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11689         PR debug/60655
11690         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
11691         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
11692         ameliorating the cases where it can be.
11694 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
11696         Revert
11697         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
11699         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
11700         (loadsync_<mode>): Change mode.
11701         (load_quadpti, store_quadpti): New.
11702         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
11703         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
11704         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
11706 2014-04-09  Cong Hou  <congh@google.com>
11708         PR testsuite/60773
11709         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
11710         documentation.
11712 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11714         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
11715         instead of vnor to exploit possible fusion opportunity in the
11716         future.
11717         (altivec_expand_vec_perm_const_le): Likewise.
11719 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
11721         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
11722         (loadsync_<mode>): Change mode.
11723         (load_quadpti, store_quadpti): New.
11724         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
11725         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
11727 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
11729         PR target/60763
11730         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
11731         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
11732         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
11734 2014-04-08  Richard Biener  <rguenther@suse.de>
11736         PR middle-end/60706
11737         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
11738         a 64bit widest int print double-int similar to on HWI64 hosts.
11740 2014-04-08  Richard Biener  <rguenther@suse.de>
11742         PR tree-optimization/60785
11743         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
11744         default defs properly.
11746 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
11748         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
11749         (Weffc++): Likewise.
11751 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
11753         * ipa-devirt.c (maybe_record_node): When node is not recorded,
11754         set completep to false rather than true.
11756 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
11758         PR target/60504
11759         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
11760         ARM_TARGET2_DWARF_FORMAT.
11762 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
11764         PR target/60609
11765         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
11766         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
11767         ADDR_DIFF_VEC.
11769 2014-04-07  Richard Biener  <rguenther@suse.de>
11771         PR tree-optimization/60766
11772         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
11773         (may_eliminate_iv): Convert cand_value_at result to desired type.
11775 2014-04-07  Jason Merrill  <jason@redhat.com>
11777         PR c++/60731
11778         * common.opt (-fno-gnu-unique): Add.
11779         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
11781 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11783         * haifa-sched.c: Fix outdated function reference and minor
11784         grammar errors in introductory comment.
11786 2014-04-07  Richard Biener  <rguenther@suse.de>
11788         PR middle-end/60750
11789         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
11790         for noreturn calls.
11791         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
11793 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
11795         PR debug/55794
11796         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
11797         size accounting for thunks.
11798         (pa_asm_output_mi_thunk): Use final_start_function() and
11799         final_end_function() to output function start and end directives.
11801 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
11803         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
11804         device specific ISA/ feature information. Remove short_sp and
11805         errata_skip ds.  Add avr_device_specific_features enum to have device
11806         specific info.
11807         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
11808         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
11809         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
11810         updated device specific info.
11811         * config/avr/avr-mcus.def: Merge device specific details to
11812         dev_attribute field.
11813         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
11814         errata_skip.
11815         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
11816         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
11817         assembler if RMW isa supported by current device.
11818         * config/avr/genmultilib.awk: Update as device info structure changed.
11819         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
11821 2014-04-04  Cong Hou  <congh@google.com>
11823         PR tree-optimization/60656
11824         * tree-vect-stmts.c (supportable_widening_operation):
11825         Fix a bug that elements in a vector with vect_used_by_reduction
11826         property are incorrectly reordered when the operation on it is not
11827         consistant with the one in reduction operation.
11829 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
11831         PR rtl-optimization/60155
11832         * gcse.c (record_set_data): New function.
11833         (single_set_gcse): New function.
11834         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
11835         (hoist_code): Likewise.
11836         (get_pressure_class_and_nregs): Likewise.
11838 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
11840         * explow.c (probe_stack_range): Emit a final optimization blockage.
11842 2014-04-04  Anthony Green  <green@moxielogic.com>
11844         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
11845         typos.
11847 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
11849         PR ipa/59626
11850         * lto-cgraph.c (input_overwrite_node): Check that partitioning
11851         flags are set only during streaming.
11852         * ipa.c (process_references, walk_polymorphic_call_targets,
11853         symtab_remove_unreachable_nodes): Drop bodies of always inline
11854         after early inlining.
11855         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
11857 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
11858         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11860         PR debug/60655
11861         * dwarf2out.c (const_ok_for_output_1): Reject expressions
11862         containing a NOT.
11864 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11866         PR bootstrap/60743
11867         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
11868         duration.
11869         (cortex_a53_fdivd): Likewise.
11871 2014-04-04  Martin Jambor  <mjambor@suse.cz>
11873         PR ipa/60640
11874         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
11875         Adjust all callers.
11876         * cgraph.c (clone_of_p): Also return true if thunks match.
11877         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
11878         cgraph_function_or_thunk_node and an obsolete comment.
11879         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
11880         file.
11881         (build_function_decl_skip_args): Likewise.
11882         (set_new_clone_decl_and_node_flags): New function.
11883         (duplicate_thunk_for_node): Likewise.
11884         (redirect_edge_duplicating_thunks): Likewise.
11885         (cgraph_clone_node): New parameter args_to_skip, pass it to
11886         redirect_edge_duplicating_thunks which is called instead of
11887         cgraph_redirect_edge_callee.
11888         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
11889         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
11891 2014-04-04  Jeff Law  <law@redhat.com>
11893         PR target/60657
11894         * config/arm/predicates.md (const_int_I_operand): New predicate.
11895         (const_int_M_operand): Similarly.
11896         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
11897         const_int_operand.
11898         (insv_t2, extv_reg, extzv_t2): Likewise.
11899         (load_multiple_with_writeback): Similarly for const_int_I_operand.
11900         (pop_multiple_with_writeback_and_return): Likewise.
11901         (vfp_pop_multiple_with_writeback): Likewise
11903 2014-04-04  Richard Biener  <rguenther@suse.de>
11905         PR ipa/60746
11906         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
11907         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
11908         non-GIMPLE_LABELs.
11909         * gimplify.h (gimple_add_tmp_var_fn): Declare.
11910         * gimplify.c (gimple_add_tmp_var_fn): New function.
11911         * gimple-expr.h (create_tmp_reg_fn): Declare.
11912         * gimple-expr.c (create_tmp_reg_fn): New function.
11913         * gimple-low.c (record_vars_into): Don't change cfun.
11914         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
11915         code generation without cfun.
11917 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
11919         PR bootstrap/60719
11920         * Makefile.in (install-driver): Fix shell scripting.
11922 2014-04-03  Cong Hou  <congh@google.com>
11924         PR tree-optimization/60505
11925         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
11926         threshold of number of iterations below which no vectorization
11927         will be done.
11928         * tree-vect-loop.c (new_loop_vec_info):
11929         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
11930         * tree-vect-loop.c (vect_analyze_loop_operations):
11931         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
11932         * tree-vect-loop.c (vect_transform_loop):
11933         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
11934         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
11935         of iterations of the loop and see if we should build the epilogue.
11937 2014-04-03  Richard Biener  <rguenther@suse.de>
11939         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
11940         (streamer_tree_cache_create): Adjust.
11941         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
11942         to allow optional nodes array.
11943         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
11944         (streamer_tree_cache_append): Likewise.
11945         (streamer_tree_cache_create): Create nodes array optionally
11946         as specified by parameter.
11947         * lto-streamer-out.c (create_output_block): Avoid maintaining
11948         the node array in the writer cache.
11949         (DFS_write_tree): Remove assertion.
11950         (produce_asm_for_decls): Free the out decl state hash table early.
11951         * lto-streamer-in.c (lto_data_in_create): Adjust for
11952         streamer_tree_cache_create prototype change.
11954 2014-04-03  Richard Biener  <rguenther@suse.de>
11956         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
11957         set TREE_CHAIN to NULL_TREE.
11959 2014-04-03  Richard Biener  <rguenther@suse.de>
11961         PR tree-optimization/60740
11962         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
11963         over all GIMPLE_COND operands.
11965 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
11967         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
11968         (Weffc++): Remove Scott's numbering, merge lists and reference
11969         Wnon-virtual-dtor.
11971 2014-04-03  Nick Clifton  <nickc@redhat.com>
11973         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
11974         properly.
11976 2014-04-03  Martin Jambor  <mjambor@suse.cz>
11978         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
11979         mention gcc_unreachable before failing.
11980         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
11981         removed symbols.
11983 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
11985         PR ipa/60659
11986         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
11987         inconsistent code and instead mark the context inconsistent.
11988         (possible_polymorphic_call_targets): For inconsistent contexts
11989         return empty complete list.
11991 2014-04-02  Anthony Green  <green@moxielogic.com>
11993         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
11994         (extendqisi2, extendhisi2): Define.
11995         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
11996         (WCHAR_TYPE): Change to unsigned int.
11998 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12000         PR tree-optimization/60733
12001         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
12002         insertion point for PHI candidates to be the end of the feeding
12003         block for the PHI argument.
12005 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
12007         PR rtl-optimization/60650
12008         * lra-constraints.c (process_alt_operands): Decrease reject for
12009         earlyclobber matching.
12011 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12013         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
12015 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12017         * config/spu/spu.c (pad_bb): Do not crash when the last
12018         insn is CODE_FOR_blockage.
12020 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12022         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
12023         lies outside the target mode.
12025 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12027         PR target/60735
12028         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
12029         software floating point or no floating point registers, do not
12030         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
12031         in GPRs that occurs after we tested for GPRs that would never be
12032         true.
12034         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
12035         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
12036         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
12037         specifically allow DDmode, since that does not use the SPE SIMD
12038         instructions.
12040 2014-04-02  Richard Biener  <rguenther@suse.de>
12042         PR middle-end/60729
12043         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
12044         MODE_INTs.  Properly use negv_optab.
12045         (expand_abs): Likewise.
12047 2014-04-02  Richard Biener  <rguenther@suse.de>
12049         PR bootstrap/60719
12050         * Makefile.in (install-driver): Guard extra installs with special
12051         names properly.
12053 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12055         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12056         Document vec_vgbbd.
12058 2014-04-01  Richard Henderson  <rth@redhat.com>
12060         PR target/60704
12061         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
12062         alternative enabled before register allocation.
12064 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
12066         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
12067         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
12068         typo.
12069         (nios2_large_got_address): Remove unneeded 'sym' parameter.
12070         (nios2_got_address): Update nios2_large_got_address call site.
12071         (nios2_delegitimize_address): New function.
12072         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
12073         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
12074         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
12076 2014-04-01  Martin Husemann  <martin@duskware.de>
12078         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
12079         for -mabi=32.
12081 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
12083         PR rtl-optimization/60604
12084         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
12085         check from register_operand.
12086         (register_operand): Redefine in terms of general_operand.
12087         (nonmemory_operand): Use register_operand for the non-constant cases.
12089 2014-04-01  Richard Biener  <rguenther@suse.de>
12091         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
12093 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12095         * doc/invoke.texi (mapp-regs): Clarify.
12097 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
12099         * config/i386/avx512fintrin.h (__v32hi): Define type.
12100         (__v64qi): Likewise.
12101         (_mm512_set1_epi8): Define.
12102         (_mm512_set1_epi16): Define.
12103         (_mm512_set4_epi32): Define.
12104         (_mm512_set4_epi64): Define.
12105         (_mm512_set4_pd): Define.
12106         (_mm512_set4_ps): Define.
12107         (_mm512_setr4_epi64): Define.
12108         (_mm512_setr4_epi32): Define.
12109         (_mm512_setr4_pd): Define.
12110         (_mm512_setr4_ps): Define.
12111         (_mm512_setzero_epi32): Define.
12113 2014-03-31  Martin Jambor  <mjambor@suse.cz>
12115         PR middle-end/60647
12116         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
12117         callsite_arguments_match_p.  Updated all callers.  Also check types of
12118         corresponding formal parameters and actual arguments.
12119         (not_all_callers_have_enough_arguments_p) Renamed to
12120         some_callers_have_mismatched_arguments_p.
12122 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
12124         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
12126 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
12128         PR target/60034
12129         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
12130         section anchor.
12132 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
12134         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
12135         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
12136         Split out
12137         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
12138         Use FMAMODE_NOVF512 mode iterator.
12139         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
12140         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
12141         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
12142         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
12143         Split out
12144         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
12145         Use VF_128_256 mode iterator.
12146         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
12147         Ditto.
12149 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
12151         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
12152         static chain if needed.
12154 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
12156         PR target/60697
12157         * lra-constraints.c (index_part_to_reg): New.
12158         (process_address): Use it.
12160 2014-03-27  Jeff Law  <law@redhat.com>
12161             Jakub Jelinek  <jakub@redhat.com>
12163         PR target/60648
12164         * expr.c (do_tablejump): Use simplify_gen_binary rather than
12165         gen_rtx_{PLUS,MULT} to build up the address expression.
12167         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
12168         creating non-canonical RTL.
12170 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
12172         PR ipa/60243
12173         * ipa-inline.c (want_inline_small_function_p): Short circuit large
12174         functions; reorganize to make cheap checks first.
12175         (inline_small_functions): Do not estimate growth when dumping;
12176         it is expensive.
12177         * ipa-inline.h (inline_summary): Add min_size.
12178         (growth_likely_positive): New function.
12179         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
12180         (set_cond_stmt_execution_predicate): Cleanup.
12181         (estimate_edge_size_and_time): Compute min_size.
12182         (estimate_calls_size_and_time): Likewise.
12183         (estimate_node_size_and_time): Likewise.
12184         (inline_update_overall_summary): Update min_size.
12185         (do_estimate_edge_time): Likewise.
12186         (do_estimate_edge_size): Update.
12187         (do_estimate_edge_hints): Update.
12188         (growth_likely_positive): New function.
12190 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
12192         PR target/60693
12193         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
12194         also if addr has VOIDmode.
12196 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12198         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
12199         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
12200         Declare extern.
12201         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
12202         instructions as well as AdvancedSIMD loads.
12204 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12206         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
12207         Use crypto_aese type.
12208         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
12209         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
12210         crypto_aese, crypto_aesmc.  Move to types.md.
12211         * config/arm/types.md (crypto_aes): Split into crypto_aese,
12212         crypto_aesmc.
12213         * config/arm/iterators.md (crypto_type): Likewise.
12215 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
12217         * cgraph.c: Include expr.h and tree-dfa.h.
12218         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
12219         remove LHS.
12221 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
12223         PR target/60675
12224         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
12225         regs from checking multi-reg pseudos.
12227 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12229         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
12231 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12233         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
12234         if it would clobber the stack pointer, even temporarily.
12236 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
12238         * mode-switching.c: Make small adjustments to the top comment.
12240 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
12242         * config/rs6000/constraints.md (wD constraint): New constraint to
12243         match the constant integer to get the top DImode/DFmode out of a
12244         vector in a VSX register.
12246         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
12247         match the constant integer to get the top DImode/DFmode out of a
12248         vector in a VSX register.
12250         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
12251         for ISA 2.07.
12253         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12254         vbpermq builtins.
12256         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
12257         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
12259         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
12260         Optimize vec_extract of 64-bit values, where the value being
12261         extracted is in the top word, where we can use scalar
12262         instructions.  Add direct move and store support.  Combine the big
12263         endian/little endian vector select load support into a single insn.
12264         (vsx_extract_<mode>_internal1): Likewise.
12265         (vsx_extract_<mode>_internal2): Likewise.
12266         (vsx_extract_<mode>_load): Likewise.
12267         (vsx_extract_<mode>_store): Likewise.
12268         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
12269         combined into vsx_extract_<mode>_load.
12270         (vsx_extract_<mode>_one_le): Likewise.
12272         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
12273         define the top 64-bit vector element.
12275         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
12276         constraint.
12278         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12279         Document vec_vbpermq builtin.
12281         PR target/60672
12282         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
12283         enable use of xxsldwi and xxpermdi builtin functions.
12284         (vec_xxpermdi): Likewise.
12286         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12287         Document use of vec_xxsldwi and vec_xxpermdi builtins.
12289 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
12291         PR rtl-optimization/60650
12292         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
12293         first_p.  Use it.
12294         (find_spills_for): New.
12295         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
12296         Spill all pseudos on the second iteration.
12298 2014-03-27  Marek Polacek  <polacek@redhat.com>
12300         PR c/50347
12301         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
12302         types.
12304 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12306         * config/s390/s390.c (s390_can_use_return_insn): Check for
12307         call-saved FPRs on 31 bit.
12309 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
12311         PR middle-end/60682
12312         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
12313         if they need regimplification, just drop them instead of
12314         calling gimple_regimplify_operands on them.
12316 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12318         PR target/60580
12319         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
12320         (aarch64_frame_pointer_required): Adjust logic.
12321         (aarch64_can_eliminate): Adjust logic.
12322         (aarch64_override_options_after_change): Adjust logic.
12324 2014-03-27  Dehao Chen  <dehao@google.com>
12326         * ipa-inline.c (early_inliner): Update node's inline info.
12328 2014-03-26  Dehao Chen  <dehao@google.com>
12330         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
12331         compiler inserted conditional jumps for NAN float check.
12333 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
12335         * ubsan.h (ubsan_create_data): Change second argument's type
12336         to const location_t *.
12337         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
12338         _("<unknown>").
12339         (ubsan_create_data): Change second argument to const location_t *PLOC.
12340         Create Loc field whenever PLOC is non-NULL.
12341         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
12342         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
12343         callers.
12345         PR other/59545
12346         * real.c (real_to_integer2): Change type of low to UHWI.
12348 2014-03-26  Tobias Burnus  <burnus@net-b.de>
12350         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
12351         (CILK_SELF_SPECS): New define.
12352         (driver_self_specs): Use it.
12354 2014-03-26  Richard Biener  <rguenther@suse.de>
12356         * tree-pretty-print.c (percent_K_format): Implement special
12357         case for LTO and its stripped down BLOCK tree.
12359 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
12361         PR sanitizer/60636
12362         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
12364         * tree-vrp.c (simplify_internal_call_using_ranges): If only
12365         one range is range_int_cst_p, but not both, at least optimize
12366         addition/subtraction of 0 and multiplication by 0 or 1.
12367         * gimple-fold.c (gimple_fold_call): Fold
12368         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
12369         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
12370         INTEGER_CSTs, try to fold at least x * 0 and y - y.
12372 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
12374         PR rtl-optimization/60452
12375         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
12376         <case REG>: Return 1 for invalid offsets from the frame pointer.
12378 2014-03-26  Marek Polacek  <polacek@redhat.com>
12380         PR c/37428
12381         * doc/extend.texi (C Extensions): Mention variable-length arrays in
12382         a structure/union.
12384 2014-03-26  Marek Polacek  <polacek@redhat.com>
12386         PR c/39525
12387         * doc/extend.texi (Designated Inits): Describe what happens to omitted
12388         field members.
12390 2014-03-26  Marek Polacek  <polacek@redhat.com>
12392         PR other/59545
12393         * ira-color.c (update_conflict_hard_regno_costs): Perform the
12394         multiplication in unsigned type.
12396 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
12398         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
12400 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
12402         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
12404 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
12406         PR ipa/60315
12407         * cif-code.def (UNREACHABLE) New code.
12408         * ipa-inline.c (inline_small_functions): Skip edges to
12409         __builtlin_unreachable.
12410         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
12411         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
12412         predicate to __bulitin_unreachable.
12413         (set_cond_stmt_execution_predicate): Fix issue when
12414         invert_tree_comparison returns ERROR_MARK.
12415         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
12416         propagate to inline clones.
12417         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
12418         to unreachable.
12419         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
12420         * cgraphclones.c (cgraph_clone_node): If call destination is already
12421         ureachable, do not redirect it back.
12422         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
12423         unreachable.
12425 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
12427         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
12428         Do not modify inline clones.
12430 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
12432         * config/i386/i386.md (general_sext_operand): New mode attr.
12433         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
12434         don't generate (sign_extend (const_int)).
12435         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
12436         operands[2].  Use We constraint instead of <i> and
12437         <general_sext_operand> predicate instead of <general_operand>.
12438         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
12439         * config/i386/constraints.md (We): New constraint.
12440         * config/i386/predicates.md (x86_64_sext_operand,
12441         sext_operand): New predicates.
12443 2014-03-25  Martin Jambor  <mjambor@suse.cz>
12445         PR ipa/60600
12446         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
12447         inconsistent devirtualizations to __builtin_unreachable.
12449 2014-03-25  Marek Polacek  <polacek@redhat.com>
12451         PR c/35449
12452         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
12454 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
12456         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
12457         order of elements for big-endian.
12459 2014-03-25  Richard Biener  <rguenther@suse.de>
12461         PR middle-end/60635
12462         * gimplify-me.c (gimple_regimplify_operands): Update the
12463         re-gimplifed stmt.
12465 2014-03-25  Martin Jambor  <mjambor@suse.cz>
12467         PR ipa/59176
12468         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
12469         (lto_output_varpool_node): Likewise.
12470         (input_overwrite_node): Likewise.
12471         (input_varpool_node): Likewise.
12473 2014-03-25  Richard Biener  <rguenther@suse.de>
12475         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
12476         (run_gcc): Likewise.
12478 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
12480         * combine.c (simplify_compare_const): Add MODE argument.
12481         Handle mode_width 0 as very large mode_width.
12482         (try_combine, simplify_comparison): Adjust callers.
12484         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
12485         type to avoid signed integer overflow.
12486         * explow.c (plus_constant): Likewise.
12488 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12490         * doc/generic.texi: Correct typos.
12492 2014-03-24  Tobias Burnus  <burnus@net-b.de>
12494         * doc/invoke.texi (-flto): Expand section about
12495         using static libraries with LTO.
12497 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12499         PR rtl-optimization/60501
12500         * optabs.def (addptr3_optab): New optab.
12501         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
12502         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
12503         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
12505         * lra.c (emit_add3_insn): Use the addptr pattern if available.
12507         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
12509 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
12511         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
12512         _mm512_set1_pd.
12514         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
12515         (_mm256_undefined_ps): Define.
12516         (_mm256_undefined_pd): Define.
12517         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
12518         (_mm_undefined_pd): Define.
12519         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
12520         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
12521         (_mm512_undefined_ps): Define.
12522         (_mm512_undefined_pd): Define.
12523         Use _mm*_undefined_*.
12524         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
12526 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
12528         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
12529         (lshr_simd): DI mode added.
12530         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
12531         (aarch64_ushr_simddi): Likewise.
12532         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
12533         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
12534         (vshrd_n_u64): Likewise.
12536 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12538         * Makefile.in (s-macro_list): Depend on cc1.
12540 2014-03-23  Teresa Johnson  <tejohnson@google.com>
12542         * ipa-utils.c (ipa_print_order): Use specified dump file.
12544 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
12546         PR rtl-optimization/60601
12547         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
12549         * gcc.c (eval_spec_function): Initialize save_growing_value.
12551 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
12553         PR sanitizer/60613
12554         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
12555         code == MINUS_EXPR, never swap op0 with op1.
12557         * toplev.c (init_local_tick): Avoid signed integer multiplication
12558         overflow.
12559         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
12560         shift by first operand's bitsize.
12562 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
12564         PR target/60610
12565         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
12566         redefine to 1 or 0.
12567         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
12568         TARGET_ISA_64BIT_P(x).
12570 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12572         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
12573         pattern for vector nor instead of subtract from splat(-1).
12574         (altivec_expand_vec_perm_const_le): Likewise.
12576 2014-03-21  Richard Henderson  <rth@twiddle.net>
12578         PR target/60598
12579         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
12580         related insns after epilogue_completed.
12582 2014-03-21  Martin Jambor  <mjambor@suse.cz>
12584         PR ipa/59176
12585         * cgraph.h (symtab_node): New flag body_removed.
12586         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
12587         when removing bodies.
12588         * symtab.c (dump_symtab_base): Dump body_removed flag.
12589         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
12590         had their bodies removed.
12592 2014-03-21  Martin Jambor  <mjambor@suse.cz>
12594         PR ipa/60419
12595         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
12596         in the border.
12598 2014-03-21  Richard Biener  <rguenther@suse.de>
12600         PR tree-optimization/60577
12601         * tree-core.h (struct tree_base): Document nothrow_flag use
12602         in DECL_NONALIASED.
12603         * tree.h (DECL_NONALIASED): New.
12604         (may_be_aliased): Adjust.
12605         * coverage.c (build_var): Set DECL_NONALIASED.
12607 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
12609         * expr.c (expand_expr_real_1): Remove outdated comment.
12611 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
12613         PR middle-end/60597
12614         * ira.c (adjust_cleared_regs): Call copy_rtx on
12615         *reg_equiv[REGNO (loc)].src_p before passing it to
12616         simplify_replace_fn_rtx.
12618         PR target/60568
12619         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
12620         into CONST, put pic register as first operand of PLUS.  Use
12621         gen_const_mem for both 32-bit and 64-bit PIC got loads.
12623 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12625         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
12627 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
12629         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
12630         around for store forwarding issue in the FPU on the UT699.
12631         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
12632         loads and operations if -mfix-ut699 is specified.
12633         (divtf3_hq): Tweak attribute.
12634         (sqrttf2_hq): Likewise.
12636 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
12638         * calls.c (store_one_arg): Remove incorrect const qualification on the
12639         type of the temporary.
12640         * cfgexpand.c (expand_return): Likewise.
12641         * expr.c (expand_constructor): Likewise.
12642         (expand_expr_real_1): Likewise.
12644 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12646         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
12647         of parts.
12649 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
12651         PR target/60039
12652         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
12654 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
12656         * config/arm/aarch-common-protos.h
12657         (alu_cost_table): Fix spelling of "extend".
12658         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
12660 2014-03-19  Richard Biener  <rguenther@suse.de>
12662         PR middle-end/60553
12663         * tree-core.h (tree_type_common): Re-order pointer members
12664         to reduce recursion depth during GC walks.
12666 2014-03-19  Marek Polacek  <polacek@redhat.com>
12668         PR sanitizer/60569
12669         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
12670         before accessing it.
12672 2014-03-19  Richard Biener  <rguenther@suse.de>
12674         PR lto/59543
12675         * lto-streamer-in.c (input_function): In WPA stage do not drop
12676         debug stmts.
12678 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
12680         PR tree-optimization/60559
12681         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
12682         with build_zero_cst assignment.
12684 2014-03-18  Kai Tietz  <ktietz@redhat.com>
12686         PR rtl-optimization/56356
12687         * sdbout.c (sdbout_parms): Verify that parms'
12688         incoming argument is valid.
12689         (sdbout_reg_parms): Likewise.
12691 2014-03-18  Richard Henderson  <rth@redhat.com>
12693         PR target/60562
12694         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
12695         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
12696         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
12698 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
12700         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
12701         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
12702         Italicize plugin event names in description.  Explain that
12703         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
12704         Remind that no GCC functions should be called after PLUGIN_FINISH.
12705         Explain what pragmas with expansion are.
12707 2014-03-18  Martin Liska  <mliska@suse.cz>
12709         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
12710         gimple call statement is update.
12711         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
12712         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
12714 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
12716         PR sanitizer/60557
12717         * ubsan.c (ubsan_instrument_unreachable): Call
12718         initialize_sanitizer_builtins.
12719         (ubsan_pass): Likewise.
12721         PR sanitizer/60535
12722         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
12723         varpool_finalize_decl instead of rest_of_decl_compilation.
12725 2014-03-18  Richard Biener  <rguenther@suse.de>
12727         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
12728         by using bitmap_and_compl instead of bitmap_and_compl_into.
12729         (df_rd_transfer_function): Likewise.
12731 2014-03-18  Richard Biener  <rguenther@suse.de>
12733         * doc/lto.texi (fresolution): Fix typo.
12735 2014-03-18  Richard Biener  <rguenther@suse.de>
12737         * doc/invoke.texi (flto): Update for changes in 4.9.
12739 2014-03-18  Richard Biener  <rguenther@suse.de>
12741         * doc/loop.texi: Remove section on the removed lambda framework.
12742         Update loop docs with recent changes in preserving loop structure.
12744 2014-03-18  Richard Biener  <rguenther@suse.de>
12746         * doc/lto.texi (-fresolution): Document.
12748 2014-03-18  Richard Biener  <rguenther@suse.de>
12750         * doc/contrib.texi: Adjust my name.
12752 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
12754         PR ipa/58721
12755         * internal-fn.c: Include diagnostic-core.h.
12756         (expand_BUILTIN_EXPECT): New function.
12757         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
12758         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
12759         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
12760         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
12761         IFN_BUILTIN_EXPECT.
12762         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
12763         Revert 3 argument __builtin_expect code.
12764         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
12765         * gimple-fold.c (gimple_fold_call): Likewise.
12766         * tree.h (fold_builtin_expect): New prototype.
12767         * builtins.c (build_builtin_expect_predicate): Add predictor
12768         argument, if non-NULL, create 3 argument __builtin_expect.
12769         (fold_builtin_expect): No longer static.  Add ARG2 argument,
12770         pass it through to build_builtin_expect_predicate.
12771         (fold_builtin_2): Adjust caller.
12772         (fold_builtin_3): Handle BUILT_IN_EXPECT.
12773         * internal-fn.def (BUILTIN_EXPECT): New.
12775 2014-03-18  Tobias Burnus  <burnus@net-b.de>
12777         PR ipa/58721
12778         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
12779         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
12780         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
12782 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
12784         PR ipa/58721
12785         * predict.c (combine_predictions_for_bb): Fix up formatting.
12786         (expr_expected_value_1, expr_expected_value): Add predictor argument,
12787         fill what it points to if non-NULL.
12788         (tree_predict_by_opcode): Adjust caller, use the predictor.
12789         * predict.def (PRED_COMPARE_AND_SWAP): Add.
12791 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
12793         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
12794         proper constant for the store mode.
12796 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
12798         * symtab.c (change_decl_assembler_name): Fix transparent alias
12799         chain construction.
12801 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
12803         * config/aarch64/aarch64.c: Correct the comments about the
12804         aarch64 stack layout.
12806 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
12808         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
12809         check for GF_OMP_FOR_KIND_FOR.
12811 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12813         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
12814         ymm and zmm register names.
12816 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
12818         PR target/60516
12819         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
12820         note creation for the 2010-08-31 changes.
12822 2014-03-17  Marek Polacek  <polacek@redhat.com>
12824         PR middle-end/60534
12825         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
12826         as -fno-tree-loop-vectorize.
12827         (expand_omp_simd): Likewise.
12829 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
12831         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
12832         (eligible_for_call_delay): New prototype.
12833         * config/sparc/sparc.c (tls_call_delay): Rename into...
12834         (eligible_for_call_delay): ...this.  Return false if the instruction
12835         cannot be put in the delay slot of a branch.
12836         (eligible_for_restore_insn): Simplify.
12837         (eligible_for_return_delay): Return false if the instruction cannot be
12838         put in the delay slot of a branch and simplify.
12839         (eligible_for_sibcall_delay): Return false if the instruction cannot be
12840         put in the delay slot of a branch.
12841         * config/sparc/sparc.md (fix_ut699): New attribute.
12842         (tls_call_delay): Delete.
12843         (in_call_delay): Reimplement.
12844         (eligible_for_sibcall_delay): Rename into...
12845         (in_sibcall_delay): ...this.
12846         (eligible_for_return_delay): Rename into...
12847         (in_return_delay): ...this.
12848         (in_branch_delay): Reimplement.
12849         (in_uncond_branch_delay): Delete.
12850         (in_annul_branch_delay): Delete.
12852 2014-03-14  Richard Henderson  <rth@redhat.com>
12854         PR target/60525
12855         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
12856         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
12857         (*floathi<X87MODEF>2_i387_with_temp): Remove.
12858         (floathi splitters): Remove.
12859         (float<SWI48x>xf2): New pattern.
12860         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
12861         code that tried to handle DImode for 32-bit, but which was excluded
12862         by the pattern's condition.  Drop allocation of stack temporary.
12863         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
12864         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
12865         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
12866         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
12867         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
12868         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
12869         (*float<SWI48><MODEF>2_sse_interunit): Remove.
12870         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
12871         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
12872         (*float<SWI48x><X87MODEF>2_i387): Remove.
12873         (all float _with_temp splitters): Remove.
12874         (*float<SWI48x><MODEF>2_i387): New pattern.
12875         (*float<SWI48><MODEF>2_sse): New pattern.
12876         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
12877         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
12879 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
12880             Marek Polacek  <polacek@redhat.com>
12882         PR middle-end/60484
12883         * common.opt (dump_base_name_prefixed): New Variable.
12884         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
12885         if x_dump_base_name_prefixed is already set, set it at the end.
12887 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
12889         PR rtl-optimization/60508
12890         * lra-constraints.c (get_reload_reg): Add new parameter
12891         in_subreg_p.
12892         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
12893         Pass the new parameter values.
12895 2014-03-14  Richard Biener  <rguenther@suse.de>
12897         * common.opt: Revert unintented changes from r205065.
12898         * opts.c: Likewise.
12900 2014-03-14  Richard Biener  <rguenther@suse.de>
12902         PR middle-end/60518
12903         * cfghooks.c (split_block): Properly adjust all loops the
12904         block was a latch of.
12906 2014-03-14  Martin Jambor  <mjambor@suse.cz>
12908         PR lto/60461
12909         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
12910         and simplify it.
12912 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
12914         PR target/59396
12915         * config/avr/avr.c (avr_set_current_function): Pass function name
12916         through default_strip_name_encoding before sanity checking instead
12917         of skipping the first char of the assembler name.
12919 2014-03-13  Richard Henderson  <rth@redhat.com>
12921         PR debug/60438
12922         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
12923         (ix86_force_to_memory, ix86_free_from_memory): Remove.
12924         * config/i386/i386-protos.h: Likewise.
12925         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
12926         in the expander instead of a splitter.
12927         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
12928         any possibility of requiring a memory.
12929         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
12930         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
12931         (fp branch splitters): Update for ix86_split_fp_branch.
12932         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
12933         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
12934         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
12935         (*fop_<MODEF>_2_i387): Remove f/r alternative.
12936         (*fop_<MODEF>_3_i387): Likewise.
12937         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
12938         (splitters for the fop_* register patterns): Remove.
12939         (fscalexf4_i387): Rename from *fscalexf4_i387.
12940         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
12942 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
12944         PR tree-optimization/59779
12945         * tree-dfa.c (get_ref_base_and_extent): Use double_int
12946         type for bitsize and maxsize instead of HOST_WIDE_INT.
12948 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
12950         PR rtl-optimization/57320
12951         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
12952         the CFG after thread_prologue_and_epilogue_insns.
12954 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
12956         PR rtl-optimization/57189
12957         * lra-constraints.c (process_alt_operands): Disfavor spilling
12958         vector pseudos.
12960 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
12962         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
12964 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
12966         PR tree-optimization/59025
12967         PR middle-end/60418
12968         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
12969         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
12971 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
12973         PR target/60486
12974         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
12975         calls of avr_out_plus_1.
12977 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
12979         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
12980         BB's single pred and update the father loop's latch info later.
12982 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12984         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
12985         (VEC_M): Likewise.
12986         (VEC_N): Likewise.
12987         (VEC_R): Likewise.
12988         (VEC_base): Likewise.
12989         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
12990         registers, we need to swap double words in little endian mode.
12992         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
12993         to be a container mode for 128-bit integer operations added in ISA
12994         2.07.  Unlike TImode and PTImode, the preferred register set is
12995         the Altivec/VMX registers for the 128-bit operations.
12997         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
12998         declarations.
12999         (rs6000_split_128bit_ok_p): Likewise.
13001         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
13002         macros for creating ISA 2.07 normal and overloaded builtin
13003         functions with 3 arguments.
13004         (BU_P8V_OVERLOAD_3): Likewise.
13005         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
13006         for use as overloaded functions.
13007         (VPERM_1TI_UNS): Likewise.
13008         (VSEL_1TI): Likewise.
13009         (VSEL_1TI_UNS): Likewise.
13010         (ST_INTERNAL_1ti): Likewise.
13011         (LD_INTERNAL_1ti): Likewise.
13012         (XXSEL_1TI): Likewise.
13013         (XXSEL_1TI_UNS): Likewise.
13014         (VPERM_1TI): Likewise.
13015         (VPERM_1TI_UNS): Likewise.
13016         (XXPERMDI_1TI): Likewise.
13017         (SET_1TI): Likewise.
13018         (LXVD2X_V1TI): Likewise.
13019         (STXVD2X_V1TI): Likewise.
13020         (VEC_INIT_V1TI): Likewise.
13021         (VEC_SET_V1TI): Likewise.
13022         (VEC_EXT_V1TI): Likewise.
13023         (EQV_V1TI): Likewise.
13024         (NAND_V1TI): Likewise.
13025         (ORC_V1TI): Likewise.
13026         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
13027         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
13028         overloaded builtin.
13029         (VADDUQM): Likewise.
13030         (VSUBCUQ): Likewise.
13031         (VADDEUQM): Likewise.
13032         (VADDECUQ): Likewise.
13033         (VSUBEUQM): Likewise.
13034         (VSUBECUQ): Likewise.
13036         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
13037         __int128_t and __uint128_t types.
13038         (__uint128_type): Likewise.
13039         (altivec_categorize_keyword): Add support for vector __int128_t,
13040         vector __uint128_t, vector __int128, and vector unsigned __int128
13041         as a container type for TImode operations that need to be done in
13042         VSX/Altivec registers.
13043         (rs6000_macro_to_expand): Likewise.
13044         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
13045         to support 128-bit integer instructions vaddcuq, vadduqm,
13046         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
13047         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
13049         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
13050         for V1TImode, and set up preferences to use VSX/Altivec registers.
13051         Setup VSX reload handlers.
13052         (rs6000_debug_reg_global): Likewise.
13053         (rs6000_init_hard_regno_mode_ok): Likewise.
13054         (rs6000_preferred_simd_mode): Likewise.
13055         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
13056         (easy_altivec_constant): Likewise.
13057         (output_vec_const_move): Likewise.
13058         (rs6000_expand_vector_set): Convert V1TImode set and extract to
13059         simple move.
13060         (rs6000_expand_vector_extract): Likewise.
13061         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
13062         addressing.
13063         (rs6000_const_vec): Add support for V1TImode.
13064         (rs6000_emit_le_vsx_load): Swap double words when loading or
13065         storing TImode/V1TImode.
13066         (rs6000_emit_le_vsx_store): Likewise.
13067         (rs6000_emit_le_vsx_move): Likewise.
13068         (rs6000_emit_move): Add support for V1TImode.
13069         (altivec_expand_ld_builtin): Likewise.
13070         (altivec_expand_st_builtin): Likewise.
13071         (altivec_expand_vec_init_builtin): Likewise.
13072         (altivec_expand_builtin): Likewise.
13073         (rs6000_init_builtins): Add support for V1TImode type.  Add
13074         support for ISA 2.07 128-bit integer builtins.  Define type names
13075         for the VSX/Altivec vector types.
13076         (altivec_init_builtins): Add support for overloaded vector
13077         functions with V1TImode type.
13078         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
13079         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
13080         external function.
13081         (rs6000_split_128bit_ok_p): Likewise.
13082         (rs6000_handle_altivec_attribute): Create V1TImode from vector
13083         __int128_t and vector __uint128_t.
13085         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
13086         and mode attributes.
13087         (VSX_M): Likewise.
13088         (VSX_M2): Likewise.
13089         (VSm): Likewise.
13090         (VSs): Likewise.
13091         (VSr): Likewise.
13092         (VSv): Likewise.
13093         (VS_scalar): Likewise.
13094         (VS_double): Likewise.
13095         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
13097         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
13098         we support the ISA 2.07 128-bit integer arithmetic instructions.
13099         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
13100         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
13101         and TImode types for use with the builtin functions.
13102         (V1TI_type_node): Likewise.
13103         (unsigned_V1TI_type_node): Likewise.
13104         (intTI_type_internal_node): Likewise.
13105         (uintTI_type_internal_node): Likewise.
13107         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
13108         128-bit builtin functions.
13109         (UNSPEC_VADDEUQM): Likewise.
13110         (UNSPEC_VADDECUQ): Likewise.
13111         (UNSPEC_VSUBCUQ): Likewise.
13112         (UNSPEC_VSUBEUQM): Likewise.
13113         (UNSPEC_VSUBECUQ): Likewise.
13114         (VM): Add V1TImode to vector mode iterators.
13115         (VM2): Likewise.
13116         (VI_unit): Likewise.
13117         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
13118         (altivec_vaddcuq): Likewise.
13119         (altivec_vsubuqm): Likewise.
13120         (altivec_vsubcuq): Likewise.
13121         (altivec_vaddeuqm): Likewise.
13122         (altivec_vaddecuq): Likewise.
13123         (altivec_vsubeuqm): Likewise.
13124         (altivec_vsubecuq): Likewise.
13126         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
13127         mode iterators.
13128         (BOOL_128): Likewise.
13129         (BOOL_REGS_OUTPUT): Likewise.
13130         (BOOL_REGS_OP1): Likewise.
13131         (BOOL_REGS_OP2): Likewise.
13132         (BOOL_REGS_UNARY): Likewise.
13133         (BOOL_REGS_AND_CR0): Likewise.
13135         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
13136         128-bit integer builtin support.
13137         (vec_vadduqm): Likewise.
13138         (vec_vaddecuq): Likewise.
13139         (vec_vaddeuqm): Likewise.
13140         (vec_vsubecuq): Likewise.
13141         (vec_vsubeuqm): Likewise.
13142         (vec_vsubcuq): Likewise.
13143         (vec_vsubuqm): Likewise.
13145         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13146         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
13147         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
13148         128-bit integer add/subtract to ISA 2.07.
13150 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
13152         * config/arc/arc.c (arc_predicate_delay_insns):
13153         Fix third argument passed to conditionalize_nonjump.
13155 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
13157         * config/aarch64/aarch64-builtins.c
13158         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
13159         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
13160         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
13161         instead of __builtin_lfloor.
13162         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
13164 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
13166         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
13167         (tree_ssa_ifcombine_bb_1): New function.
13168         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
13169         is an empty forwarder block to then_bb or vice versa and then_bb
13170         and else_bb are effectively swapped.
13172 2014-03-12  Christian Bruel  <christian.bruel@st.com>
13174         PR target/60264
13175         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
13176         REG_CFA_DEF_CFA note.
13177         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
13178         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
13180 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13182         PR tree-optimization/60454
13183         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
13185 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13187         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
13188         Do not define target_cpu_default2 to generic.
13189         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
13190         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
13191         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
13193 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
13194             Marc Glisse  <marc.glisse@inria.fr>
13196         PR tree-optimization/60502
13197         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
13198         instead of build_low_bits_mask.
13200 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
13202         PR middle-end/60482
13203         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
13204         if there are multiple uses, but op doesn't live on E edge.
13205         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
13206         clobber stmts before __builtin_unreachable.
13208 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
13210         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
13211         hard_frame_pointer_rtx.
13212         * cse.c (cse_insn): Remove volatile check.
13213         * cselib.c (cselib_process_insn): Likewise.
13214         * dse.c (scan_insn): Likewise.
13216 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
13218         * config/arc/arc.c (conditionalize_nonjump): New function,
13219         broken out of ...
13220         (arc_ifcvt): ... this.
13221         (arc_predicate_delay_insns): Use it.
13223 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
13225         * config/arc/predicates.md (extend_operand): During/after reload,
13226         allow const_int_operand.
13227         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
13228         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
13229         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
13230         to "i".
13231         (umulsi3_highpart_i): Likewise.
13233 2014-03-11  Richard Biener  <rguenther@suse.de>
13235         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
13236         Add asserts to guard possible wrong-code bugs.
13238 2014-03-11  Richard Biener  <rguenther@suse.de>
13240         PR tree-optimization/60429
13241         PR tree-optimization/60485
13242         * tree-ssa-structalias.c (set_union_with_increment): Properly
13243         take into account all fields that overlap the shifted vars.
13244         (do_sd_constraint): Likewise.
13245         (do_ds_constraint): Likewise.
13246         (get_constraint_for_ptr_offset): Likewise.
13248 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
13250         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
13251         (nios2_compute_frame_layout):
13252         Add calculation of cfun->machine->fp_save_offset.
13253         (nios2_expand_prologue): Correct setting of frame pointer register
13254         in prologue.
13255         (nios2_expand_epilogue): Update recovery of stack pointer from
13256         frame pointer accordingly.
13257         (nios2_initial_elimination_offset): Update calculation of offset
13258         for eliminating to HARD_FRAME_POINTER_REGNUM.
13260 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
13262         PR ipa/60457
13263         * ipa.c (symtab_remove_unreachable_nodes): Don't call
13264         cgraph_get_create_node on VAR_DECLs.
13266 2014-03-10  Richard Biener  <rguenther@suse.de>
13268         PR middle-end/60474
13269         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
13271 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
13273         * config/vms/vms.opt (vms_float_format): New variable.
13275 2014-03-08  Tobias Burnus  <burnus@net-b.de>
13277         * doc/invoke.texi (-fcilkplus): Update implementation status.
13279 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
13280             Richard Biener  <rguenther@suse.de>
13282         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
13283         consistently accross all TUs.
13284         (run_gcc): Enable -fshort-double automatically at link at link-time
13285         and disallow override.
13287 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
13289         PR target/58271
13290         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
13291         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
13292         if they can't be used.
13294 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13296         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
13297         for Solaris 11/x86 ld.
13298         * configure: Regenerate.
13300 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13302         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
13303         (LIB_TLS_SPEC): Save as ld_tls_libs.
13304         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
13305         (HAVE_AS_IX86_TLSLDM): New test.
13306         * configure, config.in: Regenerate.
13307         * config/i386/i386.c (legitimize_tls_address): Fall back to
13308         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
13309         cannot support TLS_MODEL_LOCAL_DYNAMIC.
13310         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
13311         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
13313 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
13315         * common.opt (fira-loop-pressure): Mark as optimization.
13317 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
13319         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
13320         an OpenMP mappable type.
13322 2014-03-06  Matthias Klose  <doko@ubuntu.com>
13324         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
13325         MULTILIB_OSDIRNAMES is not defined.
13327 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
13328             Meador Inge  <meadori@codesourcery.com>
13330         PR target/58595
13331         * config/arm/arm.c (arm_tls_symbol_p): Remove.
13332         (arm_legitimize_address): Call legitimize_tls_address for any
13333         arm_tls_referenced_p expression, handle constant addend.  Call it
13334         before testing for !TARGET_ARM.
13335         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
13337 2014-03-06  Richard Biener  <rguenther@suse.de>
13339         PR middle-end/60445
13340         PR lto/60424
13341         PR lto/60427
13342         Revert
13343         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
13345         * tree-streamer.c (record_common_node): Assert we don't record
13346         nodes with type double.
13347         (preload_common_node): Skip type double, complex double and double
13348         pointer since it is now frontend dependent due to fshort-double option.
13350 2014-03-06  Richard Biener  <rguenther@suse.de>
13352         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
13353         or -fno-lto is specified and the linker has full plugin support.
13354         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
13355         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
13356         * lto-wrapper.c (merge_and_complain): Merge compile-time
13357         optimization levels.
13358         (run_gcc): And pass it through to the link options.
13360 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
13362         PR debug/60381
13363         Revert:
13364         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
13365         PR debug/59992
13366         * cselib.c (remove_useless_values): Skip to avoid quadratic
13367         behavior if the condition moved from...
13368         (cselib_process_insn): ... here holds.
13370 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
13372         PR plugins/59335
13373         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
13374         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
13376         PR plugins/59335
13377         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
13378         (TM_H): Add x86-tune.def.
13380 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13382         * config/aarch64/aarch64.c (generic_tunings):
13383         Use cortexa57_extra_costs.
13385 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
13387         PR lto/60404
13388         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
13389         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
13390         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
13391         cost for in_lto_p.
13393 2014-03-04  Heiher  <r@hev.cc>
13395         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
13396         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
13398 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
13400         * config/i386/predicates.md (const2356_operand): Change to ...
13401         (const2367_operand): ... this.
13402         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
13403         const2367_operand.
13404         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
13405         (*avx512pf_scatterpf<mode>sf): Ditto.
13406         (avx512pf_scatterpf<mode>df): Ditto.
13407         (*avx512pf_scatterpf<mode>df_mask): Ditto.
13408         (*avx512pf_scatterpf<mode>df): Ditto.
13409         * config/i386/i386.c (ix86_expand_builtin): Update
13410         incorrect hint operand error message.
13412 2014-03-04  Richard Biener  <rguenther@suse.de>
13414         * lto-section-in.c (lto_get_section_data): Fix const cast.
13416 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
13418         * tree-streamer.c (record_common_node): Assert we don't record
13419         nodes with type double.
13420         (preload_common_node): Skip type double, complex double and double
13421         pointer since it is now frontend dependent due to fshort-double option.
13423 2014-03-04  Richard Biener  <rguenther@suse.de>
13425         PR lto/60405
13426         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
13427         (lto_input_toplevel_asms): Likewise.
13428         * lto-section-in.c (lto_get_section_data): Instead do it here
13429         for every section.
13431 2014-03-04  Richard Biener  <rguenther@suse.de>
13433         PR tree-optimization/60382
13434         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
13435         dead PHIs a reduction.
13437 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
13439         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
13440         hint value.
13441         (_mm_prefetch): Move out of GCC target("sse") pragma.
13442         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
13443         GCC target("prfchw") pragma.
13444         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
13445         for locality <= 2.
13446         * config/i386/i386.c (ix86_option_override_internal): Enable
13447         -mprfchw with -mprefetchwt1.
13449 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
13451         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
13452         Mark as varying.
13454 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
13456         * opts.h (CL_PCH_IGNORE): Define.
13457         * targhooks.c (option_affects_pch_p):
13458         Return false for options that have CL_PCH_IGNORE set.
13459         * opt-functions.awk: Process PchIgnore.
13460         * doc/options.texi: Document PchIgnore.
13462         * config/arc/arc.opt (misize): Add PchIgnore property.
13464 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13466         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
13467         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
13468         constraint on constants to permit them being loaded into
13469         GENERAL_REGS or BASE_REGS.
13471 2014-03-03  Nick Clifton  <nickc@redhat.com>
13473         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
13474         anti-cacnonical alternatives.
13475         (negandhi3_real): New pattern.
13476         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
13478 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13480         * config/avr/avr-mcus.def: Remove atxmega16x1.
13481         * config/avr/avr-tables.opt: Regenerate.
13482         * config/avr/t-multilib: Regenerate.
13483         * doc/avr-mmcu.texi: Regenerate.
13485 2014-03-03  Tobias Grosser  <tobias@grosser.es>
13486             Mircea Namolaru  <mircea.namolaru@inria.fr>
13488         PR tree-optimization/58028
13489         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
13490         scalar dimensions.
13492 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13494         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
13495         not handled by recognizers.
13497 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
13499         PR middle-end/60175
13500         * function.c (expand_function_end): Don't emit
13501         clobber_return_register sequence if clobber_after is a BARRIER.
13502         * cfgexpand.c (construct_exit_block): Append instructions before
13503         return_label to prev_bb.
13505 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13507         * config/rs6000/constraints.md: Document reserved use of "wc".
13509 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
13511         PR ipa/60150
13512         * ipa.c (function_and_variable_visibility): When dissolving comdat
13513         group, also set all symbols to local.
13515 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
13517         PR ipa/60306
13519         Revert:
13520         2013-12-14  Jan Hubicka  <jh@suse.cz>
13521         PR middle-end/58477
13522         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
13524 2014-03-02  Jon Beniston  <jon@beniston.com>
13526         PR bootstrap/48230
13527         PR bootstrap/50927
13528         PR bootstrap/52466
13529         PR target/46898
13530         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
13531           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
13532         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
13533         (simple_return, *simple_return): New patterns
13534         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
13535         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
13537 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
13539         * dwarf2out.c (gen_subprogram_die): Tidy.
13541 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
13543         PR target/60071
13544         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
13545         (*mov_t_msb_neg_negc): ... this new insn.
13547 2014-02-28  Jason Merrill  <jason@redhat.com>
13549         PR c++/58678
13550         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
13551         function.
13553 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
13555         PR c++/60314
13556         * dwarf2out.c (decltype_auto_die): New static.
13557         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
13558         (gen_type_die_with_usage): Handle 'decltype(auto)'.
13559         (is_cxx_auto): Likewise.
13561 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
13563         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
13564         we are not using general regs only.
13566 2014-02-28  Richard Biener  <rguenther@suse.de>
13568         PR target/60280
13569         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
13570         previous fix and only allow to remove trivial pre-headers
13571         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
13572         (remove_forwarder_block): Properly update the latch of a loop.
13574 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
13576         PR debug/59992
13577         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
13578         (cselib_preserved_hash_table): New.
13579         (preserve_constants_and_equivs): Move preserved vals to it.
13580         (cselib_find_slot): Look it up first.
13581         (cselib_init): Initialize it.
13582         (cselib_finish): Release it.
13583         (dump_cselib_table): Dump it.
13585 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
13587         PR debug/59992
13588         * cselib.c (remove_useless_values): Skip to avoid quadratic
13589         behavior if the condition moved from...
13590         (cselib_process_insn): ... here holds.
13592 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
13594         PR debug/57232
13595         * var-tracking.c (vt_initialize): Apply the same condition to
13596         preserve the CFA base value.
13598 2014-02-28  Joey Ye  <joey.ye@arm.com>
13600         PR target/PR60169
13601         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
13602         if reload in progress or completed.
13604 2014-02-28  Tobias Burnus  <burnus@net-b.de>
13606         PR middle-end/60147
13607         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
13608         NAMELIST_DECL.
13610 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
13612         * doc/tm.texi.in (Condition Code Status): Update documention for
13613         relative locations of cc0-setter and cc0-user.
13615 2014-02-27  Jeff Law  <law@redhat.com>
13617         PR rtl-optimization/52714
13618         * combine.c (try_combine): When splitting an unrecognized PARALLEL
13619         into two independent simple sets, if I3 is a jump, ensure the
13620         pattern we place into I3 is a (set (pc) ...).
13622 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
13623             Jeff Law  <law@redhat.com>
13625         PR rtl-optimization/49847
13626         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
13627         are in different blocks.
13628         * doc/tm.texi (Condition Code Status): Update documention for
13629         relative locations of cc0-setter and cc0-user.
13631 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
13633         PR target/59222
13634         * lra.c (lra_emit_add): Check SUBREG too.
13636 2014-02-27  Andreas Schwab  <schwab@suse.de>
13638         * config/m68k/m68k.c (m68k_option_override): Disable
13639         -flive-range-shrinkage for classic m68k.
13640         (m68k_override_options_after_change): Likewise.
13642 2014-02-27  Marek Polacek  <polacek@redhat.com>
13644         PR middle-end/59223
13645         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
13646         -Wmaybe-uninitialized.
13648 2014-02-27  Alan Modra  <amodra@gmail.com>
13650         PR target/57936
13651         * reload1.c (emit_input_reload_insns): When reload_override_in,
13652         set old to rl->in_reg when rl->in_reg is a subreg.
13654 2014-02-26  Richard Biener  <rguenther@suse.de>
13656         PR bootstrap/60343
13657         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
13659 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
13661         * common/config/i386/predicates.md (const1256_operand): Remove.
13662         (const2356_operand): New.
13663         (const_1_to_2_operand): Remove.
13664         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
13665         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
13666         (*avx512pf_gatherpf<mode>sf): Ditto.
13667         (avx512pf_gatherpf<mode>df): Ditto.
13668         (*avx512pf_gatherpf<mode>df_mask): Ditto.
13669         (*avx512pf_gatherpf<mode>df): Ditto.
13670         (avx512pf_scatterpf<mode>sf): Ditto.
13671         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
13672         (*avx512pf_scatterpf<mode>sf): Ditto.
13673         (avx512pf_scatterpf<mode>df): Ditto.
13674         (*avx512pf_scatterpf<mode>df_mask): Ditto.
13675         (*avx512pf_scatterpf<mode>df): Ditto.
13676         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
13678 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
13680         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
13681         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
13682         (_mm512_mask_testn_epi64_mask): Move to ...
13683         * config/i386/avx512cdintrin.h: Here.
13684         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
13685         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
13686         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
13687         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
13688         TARGET_AVX512F from TARGET_AVX512CD.
13690 2014-02-26  Richard Biener  <rguenther@suse.de>
13692         PR ipa/60327
13693         * ipa.c (walk_polymorphic_call_targets): Properly guard
13694         call to inline_update_overall_summary.
13696 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
13698         PR target/60280
13699         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
13700         and latches only if requested.  Fix latch if it is removed.
13701         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
13702         LOOPS_HAVE_PREHEADERS.
13704 2014-02-25  Andrew Pinski  <apinski@cavium.com>
13706         * builtins.c (expand_builtin_thread_pointer): Create a new target
13707         when the target is NULL.
13709 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
13711         PR rtl-optimization/60317
13712         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
13713         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
13714         * lra-assigns.c: Include params.h.
13715         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
13716         other reload pseudos considerations.
13718 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13720         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
13721         to use canonical form for nor<mode>3.
13723 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13725         PR target/55426
13726         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
13727         conversions.
13729 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
13731         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
13732         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
13733         (ix86_handle_option): Handle OPT_mprefetchwt1.
13734         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
13735         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13736         PREFETCHWT1 CPUID.
13737         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13738         OPTION_MASK_ISA_PREFETCHWT1.
13739         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
13740         (PTA_PREFETCHWT1): New.
13741         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
13742         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
13743         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
13744         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
13745         (*prefetch_avx512pf_<mode>_: Change into ...
13746         (*prefetch_prefetchwt1_<mode>: This.
13747         * config/i386/i386.opt (mprefetchwt1): New.
13748         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
13749         (_mm_prefetch): Handle intent to write.
13750         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
13752 2014-02-25  Richard Biener  <rguenther@suse.de>
13754         PR middle-end/60291
13755         * emit-rtl.c (mem_attrs_htab): Remove.
13756         (mem_attrs_htab_hash): Likewise.
13757         (mem_attrs_htab_eq): Likewise.
13758         (set_mem_attrs): Always allocate new mem-attrs when something changed.
13759         (init_emit_once): Do not allocate mem_attrs_htab.
13761 2014-02-25  Richard Biener  <rguenther@suse.de>
13763         PR lto/60319
13764         * lto-opts.c (lto_write_options): Output non-explicit conservative
13765         -fwrapv, -fno-trapv and -fno-strict-overflow.
13766         * lto-wrapper.c (merge_and_complain): Handle merging those options.
13767         (run_gcc): And pass them through.
13769 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
13771         * sel-sched.c (calculate_new_fences): New parameter ptime.
13772         Calculate it as a maximum over all fence cycles.
13773         (sel_sched_region_2): Adjust the call to calculate_new_fences.
13774         Print the final schedule timing when sched_verbose.
13776 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
13778         PR rtl-optimization/60292
13779         * sel-sched.c (fill_vec_av_set): Do not reset target availability
13780         bit fot the fence instruction.
13782 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
13784         * calls.h: Fix typo in comment.
13786 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
13788         * config/pa/pa.c (pa_output_move_double): Don't valididate when
13789         adjusting offsetable addresses.
13791 2014-02-24  Guozhi Wei  <carrot@google.com>
13793         * sparseset.h (sparseset_pop): Fix the wrong index.
13795 2014-02-24  Walter Lee  <walt@tilera.com>
13797         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
13798         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
13799         triplet.
13800         * common/config/tilegx/tilegx-common.c
13801         (TARGET_DEFAULT_TARGET_FLAGS): Define.
13802         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
13803         (LINK_SPEC): Ditto.
13804         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
13805         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
13806         (tilegx_gimplify_va_arg_expr): Handle big endian.
13807         (tilegx_expand_unaligned_load): Ditto.
13808         (tilegx_expand_unaligned_store): Ditto.
13809         (TARGET_RETURN_IN_MSB): New.
13810         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
13811         (TARGET_ENDIAN_DEFAULT): New.
13812         (TARGET_BIG_ENDIAN): Handle big endian.
13813         (BYTES_BIG_ENDIAN): Ditto.
13814         (WORDS_BIG_ENDIAN): Ditto.
13815         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
13816         (ENDIAN_SPEC): New.
13817         (EXTRA_SPECS): New.
13818         * config/tilegx/tilegx.md (extv): Handle big endian.
13819         (extzv): Ditto.
13820         (insn_st<n>): Ditto.
13821         (insn_st<n>_add<bitsuffix>): Ditto.
13822         (insn_stnt<n>): Ditto.
13823         (insn_stnt<n>_add<bitsuffix>):Ditto.
13824         (vec_interleave_highv8qi): Handle big endian.
13825         (vec_interleave_highv8qi_be): New.
13826         (vec_interleave_highv8qi_le): New.
13827         (insn_v1int_h): Handle big endian.
13828         (vec_interleave_lowv8qi): Handle big endian.
13829         (vec_interleave_lowv8qi_be): New.
13830         (vec_interleave_lowv8qi_le): New.
13831         (insn_v1int_l): Handle big endian.
13832         (vec_interleave_highv4hi): Handle big endian.
13833         (vec_interleave_highv4hi_be): New.
13834         (vec_interleave_highv4hi_le): New.
13835         (insn_v2int_h): Handle big endian.
13836         (vec_interleave_lowv4hi): Handle big endian.
13837         (vec_interleave_lowv4hi_be): New.
13838         (vec_interleave_lowv4hi_le): New.
13839         (insn_v2int_l): Handle big endian.
13840         (vec_interleave_highv2si): Handle big endian.
13841         (vec_interleave_highv2si_be): New.
13842         (vec_interleave_highv2si_le): New.
13843         (insn_v4int_h): Handle big endian.
13844         (vec_interleave_lowv2si): Handle big endian.
13845         (vec_interleave_lowv2si_be): New.
13846         (vec_interleave_lowv2si_le): New.
13847         (insn_v4int_l): Handle big endian.
13848         * config/tilegx/tilegx.opt (mbig-endian): New option.
13849         (mlittle-endian): New option.
13850         * doc/install.texi: Document tilegxbe-linux.
13851         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
13853 2014-02-24  Martin Jambor  <mjambor@suse.cz>
13855         PR ipa/60266
13856         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
13857         there are no parameter descriptors.
13859 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
13861         PR rtl-optimization/60268
13862         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
13863         initialization to ...
13864         (sched_rgn_init): ... here.
13865         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
13867 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
13869         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
13870         names.
13872 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
13874         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
13875         definition.
13877 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
13879         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
13880         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
13882 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
13884         * config/microblaze/predicates.md: Add cmp_op predicate.
13885         * config/microblaze/microblaze.md: Add branch_compare instruction
13886         which uses cmp_op predicate and emits cmp insn before branch.
13887         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
13888         to microblaze_expand_conditional_branch and consolidate logic.
13889         (microblaze_expand_conditional_branch): emit branch_compare
13890         insn instead of handling cmp op separate from branch insn.
13892 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13894         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
13895         to permit subregs.
13897 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13899         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
13900         define_insn with define_expand and new define_insn
13901         *altivec_lve<VI_char>x_internal.
13902         (altivec_stve<VI_char>x): Replace define_insn with define_expand
13903         and new define_insn *altivec_stve<VI_char>x_internal.
13904         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
13905         prototype.
13906         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
13907         lve*x built-ins.
13908         (altivec_expand_stvex_be): New function.
13910 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
13912         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
13913         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
13914         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
13915         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
13917 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
13919         PR target/60298
13920         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
13921         instead of emit_move_insn.
13923 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13925         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
13926         vspltw with vsldoi.
13927         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
13928         gen_altivec_vsumsws.
13930 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13932         * config/rs6000/altivec.md (altivec_lvxl): Rename as
13933         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
13934         (altivec_lvxl_<mode>): New define_expand incorporating
13935         -maltivec=be semantics where needed.
13936         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
13937         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
13938         semantics where needed.
13939         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
13940         (altivec_stvx_<mode>): New define_expand incorporating
13941         -maltivec=be semantics where needed.
13942         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
13943         VM2 iterator instead of V4SI.
13944         (altivec_stvxl_<mode>): New define_expand incorporating
13945         -maltivec=be semantics where needed.
13946         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
13947         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
13948         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
13949         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
13950         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
13951         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
13952         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
13953         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
13954         ALTIVEC_BUILTIN_STVXL.
13955         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
13956         (altivec_expand_stvx_be): Likewise.
13957         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
13958         (altivec_expand_lvx_be): Likewise.
13959         (altivec_expand_stvx_be): Likewise.
13960         (altivec_expand_builtin): Add cases for
13961         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
13962         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
13963         (altivec_init_builtins): Add definitions for
13964         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
13965         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
13967 2014-02-21  Catherine Moore  <clm@codesourcery.com>
13969         * doc/invoke.texi (mvirt, mno-virt): Document.
13970         * config/mips/mips.opt (mvirt): New option.
13971         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
13973 2014-02-21  Richard Biener  <rguenther@suse.de>
13975         PR tree-optimization/60276
13976         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
13977         (STMT_VINFO_MIN_NEG_DIST): New macro.
13978         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
13979         STMT_VINFO_MIN_NEG_DIST.
13980         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
13981         made for negative dependence distances still hold.
13983 2014-02-21  Richard Biener  <rguenther@suse.de>
13985         PR middle-end/60291
13986         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
13987         DECL_INITIAL for globals not in the current function context.
13989 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
13991         PR tree-optimization/56490
13992         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
13993         * tree-ssa-uninit.c: Include params.h.
13994         (compute_control_dep_chain): Add num_calls argument, return false
13995         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
13996         num_calls to recursive call.
13997         (find_predicates): Change dep_chain into normal array,
13998         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
13999         variable and adjust compute_control_dep_chain caller.
14000         (find_def_preds): Likewise.
14002 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
14004         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
14005         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
14007 2014-02-21  Nick Clifton  <nickc@redhat.com>
14009         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
14010         (pushhi1): Likewise.
14011         (popqi1): Add mode to pre_dec.
14012         (pophi1): Likewise.
14014 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
14016         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
14017         mode for mask of V8SFmode permutation.
14019 2014-02-20  Richard Henderson  <rth@redhat.com>
14021         PR c++/60272
14022         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
14023         a new pseudo for OLDVAL.
14025 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
14027         PR target/57896
14028         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
14029         gen_reg_rtx if d->testing_p.
14030         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
14031         if d->testing_p and we will certainly return true.
14032         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
14033         if d->testing_p.
14035 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
14037         * emit-rtl.c (gen_reg_rtx): Assert that
14038         crtl->emit.regno_pointer_align_length is non-zero.
14040 2014-02-20  Richard Henderson  <rth@redhat.com>
14042         PR c++/60272
14043         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
14044         on failure the store back into EXPECT.
14046 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
14047             Sandra Loosemore  <sandra@codesourcery.com>
14049         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
14050         * config/nios2/nios2.c (nios2_function_profiler): Add
14051         -fPIC (flag_pic == 2) support.
14052         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
14053         (nios2_large_offset_p): New function.
14054         (nios2_unspec_reloc_p): Move up position, update to use
14055         nios2_large_offset_p.
14056         (nios2_unspec_address): Remove function.
14057         (nios2_unspec_offset): New function.
14058         (nios2_large_got_address): New function.
14059         (nios2_got_address): Add large offset support.
14060         (nios2_legitimize_tls_address): Update usage of removed and new
14061         functions.
14062         (nios2_symbol_binds_local_p): New function.
14063         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
14064         (nios2_legitimize_address): Update to use nios2_large_offset_p.
14065         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
14066         (nios2_print_operand): Merge H/L processing, add hiadj/lo
14067         processing for (const (unspec ...)).
14068         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
14070 2014-02-20  Richard Biener  <rguenther@suse.de>
14072         * tree-cfg.c (replace_uses_by): Mark altered BBs before
14073         doing the substitution.
14074         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
14076 2014-02-20  Martin Jambor  <mjambor@suse.cz>
14078         PR ipa/55260
14079         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
14080         info when checking whether lattices are bottom.
14082 2014-02-20  Richard Biener  <rguenther@suse.de>
14084         PR middle-end/60221
14085         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
14086         regions at -O0.
14088 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
14090         PR ipa/58555
14091         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
14092         parameter specifying the scaling.
14093         (inline_call): Update.
14094         (want_inline_recursively): Guard division by zero.
14095         (recursive_inlining): Update.
14096         * ipa-inline.h (clone_inlined_nodes): Update.
14098 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
14100         PR target/60204
14101         * config/i386/i386.c (classify_argument): Pass structures of size
14102         64 bytes or less in register.
14104 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
14105             Kirill Yukhin  <kirill.yukhin@intel.com>
14107         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
14108         (_mm_rcp28_round_ss): Ditto.
14109         (_mm_rsqrt28_round_sd): Ditto.
14110         (_mm_rsqrt28_round_ss): Ditto.
14111         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
14112         (_mm_rcp14_round_ss): Ditto.
14113         (_mm_rsqrt14_round_sd): Ditto.
14114         (_mm_rsqrt14_round_ss): Ditto.
14115         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
14116         the first input operand, get rid of match_dup.
14117         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
14118         attribute to sse.
14119         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
14120         Ditto.
14121         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
14122         operand as the first input operand, set type attribute.
14123         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
14124         Set type attribute.
14125         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
14126         operand as the first input operand, set type attribute.
14128 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14130         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
14131         bit of zero.
14133 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
14135         PR target/60207
14136         * config/i386/i386.c (construct_container): Remove TFmode check
14137         for X86_64_INTEGER_CLASS.
14139 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
14141         PR target/59794
14142         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
14143         only when -Wpsabi is enabled.
14145 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
14147          PR target/59799
14148         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
14149         passing arrays in registers are the same as for structs, so remove the
14150         special case for them.
14152 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
14154         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
14155         destination type, extract only the valid bits if the source type is not
14156         integral and has a different mode.
14158 2014-02-19  Richard Biener  <rguenther@suse.de>
14160         PR ipa/60243
14161         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
14162         for all calls.
14164 2014-02-19  Richard Biener  <rguenther@suse.de>
14166         PR ipa/60243
14167         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
14168         (ipa_modify_call_arguments): Emit an argument load explicitely and
14169         preserve virtual SSA form there and for the replacement call.
14170         Do not update SSA form nor free dominance info.
14172 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
14174         * ipa.c (function_and_variable_visibility): Also clear WEAK
14175         flag when disolving COMDAT_GROUP.
14177 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
14179         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
14180         * ipa-prop.c (ipa_set_jf_known_type): Return early when
14181         not devirtualizing.
14182         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
14183         do more sanity checks.
14184         (detect_type_change): Return true when giving up early.
14185         (compute_complex_assign_jump_func): Fix type parameter of
14186         ipa_set_ancestor_jf.
14187         (compute_complex_ancestor_jump_func): Likewise.
14188         (update_jump_functions_after_inlining): Fix updating of
14189         ancestor function.
14190         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
14192 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
14194         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
14195         inline clones when edge disappears.
14197 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14199         PR target/60203
14200         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
14201         Split 64-bit moves into 2 patterns.  Do not allow the use of
14202         direct move for TDmode in little endian, since the decimal value
14203         has little endian bytes within a word, but the 64-bit pieces are
14204         ordered in a big endian fashion, and normal subreg's of TDmode are
14205         not allowed.
14206         (mov<mode>_64bit_dm): Likewise.
14207         (movtd_64bit_nodm): Likewise.
14209 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
14211         PR tree-optimization/60174
14212         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
14213         statement of an SSA_NAME that occurs in an abnormal PHI node.
14215 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
14217         PR sanitizer/60142
14218         * final.c (SEEN_BB): Remove.
14219         (SEEN_NOTE, SEEN_EMITTED): Renumber.
14220         (final_scan_insn): Don't force_source_line on second
14221         NOTE_INSN_BASIC_BLOCK.
14223 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
14225         PR target/60205
14226         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
14227         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
14228         (type_natural_mode): Warn ABI change when %zmm register is not
14229         available for AVX512F vector value passing.
14231 2014-02-18  Kai Tietz  <ktietz@redhat.com>
14233         PR target/60193
14234         * config/i386/i386.c (ix86_expand_prologue): Use value in
14235         rax register as displacement when restoring %r10 or %rax.
14236         Fix wrong offset when restoring both registers.
14238 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
14240         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
14241         assertion with conditional return.
14243 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
14244             Uros Bizjak  <ubizjak@gmail.com>
14246         PR driver/60233
14247         * config/i386/driver-i386.c (host_detect_local_cpu): If
14248         YMM state is not saved by the OS, also clear has_f16c.  Move
14249         CPUID 0x80000001 handling before YMM state saving checking.
14251 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
14253         PR rtl-optimization/58960
14254         * haifa-sched.c (alloc_global_sched_pressure_data): New,
14255         factored out from ...
14256         (sched_init): ... here.
14257         (free_global_sched_pressure_data): New, factored out from ...
14258         (sched_finish): ... here.
14259         * sched-int.h (free_global_sched_pressure_data): Declare.
14260         * sched-rgn.c (nr_regions_initial): New static global.
14261         (haifa_find_rgns): Initialize it.
14262         (schedule_region): Disable sched-pressure for the newly
14263         generated regions.
14265 2014-02-17  Richard Biener  <rguenther@suse.de>
14267         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
14268         release SSA defs of pattern stmts.
14270 2014-02-17  Richard Biener  <rguenther@suse.de>
14272         * tree-inline.c (expand_call_inline): Release the virtual
14273         operand defined by the call we are about to inline.
14275 2014-02-17  Richard Biener  <rguenther@suse.de>
14277         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
14279 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
14280             Ilya Tocar  <ilya.tocar@intel.com>
14282         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
14283         arguments order in builtin.
14284         (_mm512_permutexvar_epi64): Ditto.
14285         (_mm512_mask_permutexvar_epi64): Ditto
14286         (_mm512_maskz_permutexvar_epi32): Ditto
14287         (_mm512_permutexvar_epi32): Ditto
14288         (_mm512_mask_permutexvar_epi32): Ditto
14290 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14292         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
14293         (p8_vmrgow): Likewise.
14295 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14297         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
14298         endian targets.
14300 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
14302         PR target/60203
14303         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
14304         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
14305         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
14306         using direct move instructions on ISA 2.07.  Also adjust
14307         instruction length for 64-bit.
14308         (mov<mode>_64bit, TFmode/TDmode): Likewise.
14309         (mov<mode>_32bit, TFmode/TDmode): Likewise.
14311 2014-02-15  Alan Modra  <amodra@gmail.com>
14313         PR target/58675
14314         PR target/57935
14315         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
14316         find_replacement on parts of insn rtl that might be reloaded.
14318 2014-02-15  Richard Biener  <rguenther@suse.de>
14320         PR tree-optimization/60183
14321         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
14322         (tree_ssa_phiprop): Calculate and free post-dominators.
14324 2014-02-14  Jeff Law  <law@redhat.com>
14326         PR rtl-optimization/60131
14327         * ree.c (get_extended_src_reg): New function.
14328         (combine_reaching_defs): Use it rather than assuming location of REG.
14329         (find_and_remove_re): Verify first operand of extension is
14330         a REG before adding the insns to the copy list.
14332 2014-02-14  Roland McGrath  <mcgrathr@google.com>
14334         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
14335         * configure: Regenerated.
14336         * config.in: Regenerated.
14337         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
14338         instead of ASM_SHORT.
14340 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
14341             Richard Earnshaw  <rearnsha@arm.com>
14343         PR rtl-optimization/59535
14344         * lra-constraints.c (process_alt_operands): Encourage alternative
14345         when unassigned pseudo class is superset of the alternative class.
14346         (inherit_reload_reg): Don't inherit when optimizing for code size.
14347         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
14348         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
14349         modes not less than 4 for Thumb1.
14351 2014-02-14  Kyle McMartin  <kyle@redhat.com>
14353         PR pch/60010
14354         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
14356 2014-02-14  Richard Biener  <rguenther@suse.de>
14358         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
14359         (get_frame_arg): Drop the assert with langhook types_compatible_p.
14360         Do not strip INDIRECT_REFs.
14362 2014-02-14  Richard Biener  <rguenther@suse.de>
14364         PR lto/60179
14365         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
14366         DECL_FUNCTION_SPECIFIC_TARGET.
14367         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
14368         * tree-streamer-out.c (pack_ts_target_option): Remove.
14369         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
14370         (write_ts_function_decl_tree_pointers): Do not stream
14371         DECL_FUNCTION_SPECIFIC_TARGET.
14372         * tree-streamer-in.c (unpack_ts_target_option): Remove.
14373         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
14374         (lto_input_ts_function_decl_tree_pointers): Do not stream
14375         DECL_FUNCTION_SPECIFIC_TARGET.
14377 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
14379         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
14380         (get_initial_def_for_induction, vectorizable_induction): Ignore
14381         debug stmts when looking for exit_phi.
14382         (vectorizable_live_operation): Fix up condition.
14384 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
14386         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
14387         nreverse() because it changes the content of original tree list.
14389 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
14391         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
14392         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
14394 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
14396         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
14397         GNU coding standards.
14399 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
14401         PR debug/60152
14402         * dwarf2out.c (gen_subprogram_die): Don't call
14403         add_calling_convention_attribute if subr_die is old_die.
14405 2014-02-13  Sharad Singhai  <singhai@google.com>
14407         * doc/optinfo.texi: Fix order of nodes.
14409 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
14411         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
14412         operands[2], not operands[3].
14414 2014-02-13  Richard Biener  <rguenther@suse.de>
14416         PR bootstrap/59878
14417         * doc/install.texi (ISL): Update recommended version to 0.12.2,
14418         mention the possibility of an in-tree build.
14419         (CLooG): Update recommended version to 0.18.1, mention the
14420         possibility of an in-tree build and clarify that the ISL
14421         bundled with CLooG does not work.
14423 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
14425         PR target/43546
14426         * expr.c (compress_float_constant): If x is a hard register,
14427         extend into a pseudo and then move to x.
14429 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14431         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
14432         caused by bad second argument to warning_at() with -mhotpatch and
14433         nested functions (e.g. with gfortran).
14435 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
14437         * opts.c (option_name): Remove "enabled by default" rider.
14439 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
14441         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
14443 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
14444             Uros Bizjak  <ubizjak@gmail.com>
14446         PR target/60151
14447         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
14448         * configure: Regenerated.
14450 2014-02-12  Richard Biener  <rguenther@suse.de>
14452         * vec.c (vec_prefix::calculate_allocation): Move as
14453         inline variant to vec.h.
14454         (vec_prefix::calculate_allocation_1): New out-of-line version.
14455         * vec.h (vec_prefix::calculate_allocation_1): Declare.
14456         (vec_prefix::m_has_auto_buf): Rename to ...
14457         (vec_prefix::m_using_auto_storage): ... this.
14458         (vec_prefix::calculate_allocation): Inline the easy cases
14459         and dispatch to calculate_allocation_1 which doesn't need the
14460         prefix address.
14461         (va_heap::reserve): Use gcc_checking_assert.
14462         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
14463         m_using_auto_storage.
14464         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
14465         member and adjust.
14466         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
14467         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
14468         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
14470 2014-02-12  Richard Biener  <rguenther@suse.de>
14472         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
14473         when we found a dependence.
14475 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
14477         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
14478         common code...
14479         (maybe_fold_stmt): ... into this new function.
14480         * omp-low.c (lower_omp): Update comment.
14482         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
14483         last use.
14485         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
14486         dereference.
14488 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
14490         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
14491         identifiers in comments.
14492         (cortexa53_extra_costs): Likewise.
14493         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
14494         (cortexa7_extra_costs): Likewise.
14495         (cortexa12_extra_costs): Likewise.
14496         (cortexa15_extra_costs): Likewise.
14497         (v7m_extra_costs): Likewise.
14499 2014-02-12  Richard Biener  <rguenther@suse.de>
14501         PR middle-end/60092
14502         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
14503         of posix_memalign being successful.
14504         (lower_stmt): Restrict lowering of posix_memalign to when
14505         -ftree-bit-ccp is enabled.
14507 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14509         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
14510         arg_loc.
14511         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
14513 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
14515         PR rtl-optimization/60116
14516         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
14517         other_insn once the combination has been validated.
14519 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
14521         PR lto/59468
14522         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
14523         and wrapper.
14524         * ipa-devirt.c: Include demangle.h
14525         (odr_violation_reported): New static variable.
14526         (add_type_duplicate): Update odr_violations.
14527         (maybe_record_node): Add completep parameter; update it.
14528         (record_target_from_binfo): Add COMPLETEP parameter;
14529         update it as needed.
14530         (possible_polymorphic_call_targets_1): Likewise.
14531         (struct polymorphic_call_target_d): Add nonconstruction_targets;
14532         rename FINAL to COMPLETE.
14533         (record_targets_from_bases): Sanity check we found the binfo;
14534         fix COMPLETEP updating.
14535         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
14536         parameter, fix computing of COMPLETEP.
14537         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
14538         at LTO time do demangling.
14539         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
14540         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
14541         parameter.
14542         (gimple_get_virt_method_for_binfo): Likewise.
14543         * gimple-fold.h (gimple_get_virt_method_for_binfo,
14544         gimple_get_virt_method_for_vtable): Update prototypes.
14546 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
14548         PR target/49008
14549         * genautomata.c (add_presence_absence): Fix typo with
14550         {final_}presence_list.
14552 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14554         PR target/60137
14555         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
14556         for VSX/Altivec vectors that land in GPR registers.
14558 2014-02-11  Richard Henderson  <rth@redhat.com>
14559             Jakub Jelinek  <jakub@redhat.com>
14561         PR debug/59776
14562         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
14563         around drhs if type conversion to lacc->type is not useless.
14565 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14567         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
14568         tuning struct.
14569         (cortex-a57.cortex-a53): Likewise.
14570         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
14572 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14574         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
14575         arm_restrict_it.
14577 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
14579         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
14580         add_options_for_arm_vfp3.
14582 2014-02-11  Jeff Law  <law@redhat.com>
14584         PR middle-end/54041
14585         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
14586         object with an undesirable mode.
14588 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14590         PR libgomp/60107
14591         * config/i386/sol2-9.h: New file.
14592         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
14593         *-*-solaris2.9*): Use it.
14595 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
14597         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
14598         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
14600 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
14602         * config/microblaze/microblaze.c: Extend mcpu version format
14604 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
14606         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
14608 2014-02-10  Richard Henderson  <rth@redhat.com>
14610         PR target/59927
14611         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
14612         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
14613         ms-abi vs -mno-accumulate-outgoing-args.
14614         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
14615         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
14616         respect to ms-abi.
14618 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14620         PR middle-end/60080
14621         * cfgexpand.c (expand_asm_operands): Attach source location to
14622         ASM_INPUT rtx objects.
14623         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
14625 2014-02-10  Nick Clifton  <nickc@redhat.com>
14627         * config/mn10300/mn10300.c (popcount): New function.
14628         (mn10300_expand_prologue): Include saved registers in stack usage
14629         count.
14631 2014-02-10  Jeff Law  <law@redhat.com>
14633         PR middle-end/52306
14634         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
14635         when changing the SET_DEST of a prior insn to avoid an input reload.
14637 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14639         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
14640         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
14641         -mcall-openbsd, or -mcall-linux.
14642         (CC1_ENDIAN_BIG_SPEC): Remove.
14643         (CC1_ENDIAN_LITTLE_SPEC): Remove.
14644         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
14645         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
14646         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
14647         and %cc1_endian_default.
14648         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
14650 2014-02-10  Richard Biener  <rguenther@suse.de>
14652         PR tree-optimization/60115
14653         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
14654         MEM_REF handling.  Properly verify that the accesses are not
14655         out of the objects bound.
14657 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14659         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
14660         coretex to cortex.
14662 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
14664         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
14665         proper constants and fix formatting.
14666         (possible_polymorphic_call_targets): Fix formatting.
14668 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
14669             Ilya Tocar  <ilya.tocar@intel.com>
14671         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
14672         (_mm512_loadu_epi32): Renamed into...
14673         (_mm512_loadu_si512): This.
14674         (_mm512_storeu_epi32): Renamed into...
14675         (_mm512_storeu_si512): This.
14676         (_mm512_maskz_ceil_ps): Removed.
14677         (_mm512_maskz_ceil_pd): Ditto.
14678         (_mm512_maskz_floor_ps): Ditto.
14679         (_mm512_maskz_floor_pd): Ditto.
14680         (_mm512_floor_round_ps): Ditto.
14681         (_mm512_floor_round_pd): Ditto.
14682         (_mm512_ceil_round_ps): Ditto.
14683         (_mm512_ceil_round_pd): Ditto.
14684         (_mm512_mask_floor_round_ps): Ditto.
14685         (_mm512_mask_floor_round_pd): Ditto.
14686         (_mm512_mask_ceil_round_ps): Ditto.
14687         (_mm512_mask_ceil_round_pd): Ditto.
14688         (_mm512_maskz_floor_round_ps): Ditto.
14689         (_mm512_maskz_floor_round_pd): Ditto.
14690         (_mm512_maskz_ceil_round_ps): Ditto.
14691         (_mm512_maskz_ceil_round_pd): Ditto.
14692         (_mm512_expand_pd): Ditto.
14693         (_mm512_expand_ps): Ditto.
14694         * config/i386/i386.c (ix86_builtins): Remove
14695         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
14696         (bdesc_args): Ditto.
14697         * config/i386/predicates.md (const1256_operand): New.
14698         (const_1_to_2_operand): Ditto.
14699         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
14700         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
14701         (*avx512pf_gatherpf<mode>sf): Ditto.
14702         (avx512pf_gatherpf<mode>df): Ditto.
14703         (*avx512pf_gatherpf<mode>df_mask): Ditto.
14704         (*avx512pf_gatherpf<mode>df): Ditto.
14705         (avx512pf_scatterpf<mode>sf): Ditto.
14706         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
14707         (*avx512pf_scatterpf<mode>sf): Ditto.
14708         (avx512pf_scatterpf<mode>df): Ditto.
14709         (*avx512pf_scatterpf<mode>df_mask): Ditto.
14710         (*avx512pf_scatterpf<mode>df): Ditto.
14711         (avx512f_expand<mode>): Removed.
14712         (<shift_insn><mode>3<mask_name>): Change predicate type.
14714 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
14716         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
14717         not at the end of datarefs vector use ordered_remove to avoid
14718         reordering datarefs vector.
14720         PR c/59984
14721         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
14722         mark local addressable non-static vars as GOVD_PRIVATE
14723         instead of GOVD_LOCAL.
14724         * omp-low.c (lower_omp_for): Move gimple_bind_vars
14725         and BLOCK_VARS of gimple_bind_block to new_stmt rather
14726         than copying them.
14728         PR middle-end/60092
14729         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
14730         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
14731         assume_aligned or alloc_align attributes.
14732         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
14733         arguments.  Handle also assume_aligned and alloc_align attributes.
14734         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
14735         calls to functions with assume_aligned or alloc_align attributes.
14736         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
14738 2014-02-08  Terry Guo  <terry.guo@arm.com>
14740         * doc/invoke.texi: Document ARM -march=armv7e-m.
14742 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
14744         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
14745         flag on __cilkrts_rethrow builtin.
14747         PR ipa/60026
14748         * ipa-cp.c (determine_versionability): Fail at -O0
14749         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
14750         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
14752         Revert:
14753         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
14755         PR ipa/60026
14756         * tree-inline.c (copy_forbidden): Fail for
14757         __attribute__((optimize (0))) functions.
14759 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
14761         * varpool.c: Include pointer-set.h.
14762         (varpool_remove_unreferenced_decls): Variables in other partitions
14763         will not be output; be however careful to not lose information
14764         about partitioning.
14766 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
14768         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
14769         lookup in the vtable constructor.
14771 2014-02-07  Jeff Law  <law@redhat.com>
14773         PR target/40977
14774         * config/m68k/m68k.md (ashldi_extsi): Turn into a
14775         define_insn_and_split.
14777         * ipa-inline.c (inline_small_functions): Fix typos.
14779 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
14781         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
14782         (s390_can_use_return_insn): Declare.
14783         * config/s390/s390.h (EPILOGUE_USES): Define.
14784         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
14785         instructions.
14786         (s390_chunkify_start): Handle return JUMP_LABELs.
14787         (s390_early_mach): Emit a main_pool instruction on the entry edge.
14788         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
14789         (s390_can_use_return_insn): New functions.
14790         (s390_fix_long_loop_prediction): Handle conditional returns.
14791         (TARGET_SET_UP_BY_PROLOGUE): Define.
14792         * config/s390/s390.md (ANY_RETURN): New code iterator.
14793         (*creturn, *csimple_return, return, simple_return): New patterns.
14795 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
14797         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
14798         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
14799         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
14800         REG_CFA_RESTORE list when deciding not to restore a register.
14802 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
14804         * config/s390/s390.c: Include tree-pass.h and context.h.
14805         (s390_early_mach): New function, split out from...
14806         (s390_emit_prologue): ...here.
14807         (pass_data_s390_early_mach): New pass structure.
14808         (pass_s390_early_mach): New class.
14809         (s390_option_override): Create and register early_mach pass.
14810         Move to end of file.
14812 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
14814         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
14815         to match for the exit block.
14817 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14819         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
14820         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
14821         Reject misaligned operands.
14823 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14825         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
14827 2014-02-07  Richard Biener  <rguenther@suse.de>
14829         PR middle-end/60092
14830         * gimple-low.c (lower_builtin_posix_memalign): New function.
14831         (lower_stmt): Call it to lower posix_memalign in a way
14832         to make alignment info accessible.
14834 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
14836         PR c++/60082
14837         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
14838         __builtin_setjmp_receiver.
14840 2014-02-07  Richard Biener  <rguenther@suse.de>
14842         PR middle-end/60092
14843         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
14844         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
14845         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14846         Handle BUILT_IN_POSIX_MEMALIGN.
14847         (find_func_clobbers): Likewise.
14848         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
14849         (call_may_clobber_ref_p_1): Likewise.
14851 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
14853         PR ipa/59918
14854         * ipa-devirt.c (record_target_from_binfo): Remove overactive
14855         sanity check.
14857 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
14859         PR ipa/59469
14860         * lto-cgraph.c (lto_output_node): Use
14861         symtab_get_symbol_partitioning_class.
14862         (lto_output_varpool_node): likewise.
14863         (symtab_get_symbol_partitioning_class): Move here from
14864         lto/lto-partition.c
14865         * cgraph.h (symbol_partitioning_class): Likewise.
14866         (symtab_get_symbol_partitioning_class): Declare.
14868 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
14870         * ggc.h (ggc_internal_cleared_alloc): New macro.
14871         * vec.h (vec_safe_copy): Handle memory stats.
14872         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
14873         * target-globals.c (save_target_globals): Likewise.
14875 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
14877         PR target/60077
14878         * expr.c (emit_move_resolve_push): Export; be bit more selective
14879         on when to clear alias set.
14880         * expr.h (emit_move_resolve_push): Declare.
14881         * function.h (struct function): Add tail_call_marked.
14882         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
14883         * config/i386/i386-protos.h (ix86_expand_push): Remove.
14884         * config/i386/i386.md (TImode move expander): De not call
14885         ix86_expand_push.
14886         (FP push expanders): Preserve memory attributes.
14887         * config/i386/sse.md (push<mode>1): Remove.
14888         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
14889         (ix86_expand_push): Remove.
14890         * config/i386/mmx.md (push<mode>1): Remove.
14892 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
14894         PR rtl-optimization/60030
14895         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
14896         lopart with paradoxical subreg before shifting it up by hprec.
14898 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14900         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
14901         Remove extra newline at end of file.
14902         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
14903         (arm_issue_rate): Handle cortexa57.
14904         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
14905         (cortex-a57.cortex-a53): Likewise.
14907 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
14909         PR target/59575
14910         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
14911         don't record in REG_FRAME_RELATED_EXPR registers not set in that
14912         bitmask.
14913         (arm_expand_prologue): Adjust all callers.
14914         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
14915         info, registers also at the lowest numbered registers side.  Use
14916         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
14917         XEXP.
14919         PR debug/59992
14920         * var-tracking.c (adjust_mems): Before adding a SET to
14921         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
14923 2014-02-06  Alan Modra  <amodra@gmail.com>
14925         PR target/60032
14926         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
14927         change SDmode to DDmode when lra_in_progress.
14929 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
14931         PR middle-end/59150
14932         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
14933         free_data_ref on the dr first, and before goto again also set dr
14934         to the next dr.  For simd_lane_access, free old datarefs[i] before
14935         overwriting it.  For get_vectype_for_scalar_type failure, don't
14936         free_data_ref if simd_lane_access.
14938         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
14940         PR target/60062
14941         * tree.h (opts_for_fn): New inline function.
14942         (opt_for_fn): Define.
14943         * config/i386/i386.c (ix86_function_regparm): Use
14944         opt_for_fn (decl, optimize) instead of optimize.
14946 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14948         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
14949         for SYMBOL_REF in large memory model.
14951 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14953         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
14954         and crypto support.
14955         (cortex-a57): Likewise.
14956         (cortex-a57.cortex-a53): Likewise.
14958 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
14959             Kugan Vivekanandarajah  <kuganv@linaro.org>
14961         * config/arm/arm.c (arm_vector_alignment_reachable): Check
14962         unaligned_access.
14963         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
14965 2014-02-06  Richard Biener  <rguenther@suse.de>
14967         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
14968         set_loop_copy and initialize_original_copy_tables.
14970 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
14972         * config/aarch64/aarch64-simd.md
14973         (aarch64_ashr_simddi): Change QI to SI.
14975 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
14976             Jakub Jelinek  <jakub@redhat.com>
14978         PR middle-end/60013
14979         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
14980         of the dataflow.
14982 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14984         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
14985         CODE_FOR_altivec_vpku[hw]um to
14986         CODE_FOR_altivec_vpku[hw]um_direct.
14987         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
14988         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
14989         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
14990         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
14992 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14994         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
14995         generation for -maltivec=be.
14996         (altivec_vsumsws): Simplify redundant test.
14998 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15000         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
15001         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
15002         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
15003         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
15004         gen_altivec_vpkuwum.
15005         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
15006         BYTES_BIG_ENDIAN.
15007         (altivec_vpks<VI_char>ss): Likewise.
15008         (altivec_vpks<VI_char>us): Likewise.
15009         (altivec_vpku<VI_char>us): Likewise.
15010         (altivec_vpku<VI_char>um): Likewise.
15011         (altivec_vpku<VI_char>um_direct): New (copy of
15012         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
15013         internal use).
15014         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
15015         target is little endian and -maltivec=be is not specified.
15016         (*altivec_vupkhs<VU_char>_direct): New (copy of
15017         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
15018         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
15019         target is little endian and -maltivec=be is not specified.
15020         (*altivec_vupkls<VU_char>_direct): New (copy of
15021         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
15022         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
15023         little endian and -maltivec=be is not specified.
15024         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
15025         little endian and -maltivec=be is not specified.
15027 2014-02-05  Richard Henderson  <rth@redhat.com>
15029         PR debug/52727
15030         * combine-stack-adj.c: Revert r206943.
15031         * sched-int.h (struct deps_desc): Add last_args_size.
15032         * sched-deps.c (init_deps): Initialize it.
15033         (sched_analyze_insn): Add OUTPUT dependencies between insns that
15034         contain REG_ARGS_SIZE notes.
15036 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
15038         * lto-cgraph.c (asm_nodes_output): Make global.
15039         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
15040         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
15041         (driver_handle_option): Handle OPT_fwpa.
15043 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
15045         PR ipa/59947
15046         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
15047         a comment typo and formatting issue.  If odr_hash hasn't been
15048         created, return vNULL and set *completep to false.
15050         PR middle-end/57499
15051         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
15052         bb with no successors.
15054 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
15056         PR target/59718
15057         * doc/invoke.texi (-march): Clarify documentation for ARM.
15058         (-mtune): Likewise.
15059         (-mcpu): Likewise.
15061 2014-02-05  Richard Biener  <rguenther@suse.de>
15063         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
15064         when not vectorizing because of too many alias checks.
15065         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15066         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
15068 2014-02-05  Nick Clifton  <nickc@redhat.com>
15070         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
15071         accept extended registers in any mode when compiling for the MN10300.
15073 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
15075         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
15076         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
15077         sanitization attributes.
15078         (can_inline_edge_p): Likewise.
15079         (sanitize_attrs_match_for_inline_p): New function.
15081 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
15083         * ipa-prop.c (detect_type_change): Shor circuit testing of
15084         type changes on THIS pointer.
15086 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
15088         PR target/59777
15089         * config/pa/pa.c (legitimize_tls_address): Return original address
15090         if not passed a SYMBOL_REF rtx.
15091         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
15092         addresses.
15093         (pa_emit_move_sequence): Simplify TLS source operands.
15094         (pa_legitimate_constant_p): Reject all TLS constants.
15095         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
15096         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
15098 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
15100         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
15101         groups when we know they are controlled by LTO.
15102         * varasm.c (default_binds_local_p_1): If object is in other partition,
15103         it will be resolved locally.
15105 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15107         * config/host-linux.c (linux_gt_pch_use_address): Don't
15108         use SSIZE_MAX because it is not always defined.
15110 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
15112         PR bootstrap/59913
15113         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
15114         threshold for pseudo splitting.
15115         (update_ebb_live_info): Process call argument hard registers and
15116         hard registers from insn definition too.
15117         (max_small_class_regs_num): New constant.
15118         (inherit_in_ebb): Update live hard regs through EBBs.  Update
15119         reloads_num only for small register classes.  Don't split for
15120         outputs of jumps.
15122 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
15124         PR ipa/60058
15125         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
15126         is non-null.
15128 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
15130         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
15131         visibility is safe.
15133 2014-02-04  Marek Polacek  <polacek@redhat.com>
15135         * gdbinit.in (pel): Define.
15137 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15139         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
15140         behavior.
15142 2014-02-04  Richard Biener  <rguenther@suse.de>
15144         PR lto/59723
15145         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
15146         in function context local.
15147         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
15148         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
15149         similar to LTO_imported_decl_ref.
15151 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
15153         PR tree-optimization/60002
15154         * cgraphclones.c (build_function_decl_skip_args): Clear
15155         DECL_LANG_SPECIFIC.
15157         PR tree-optimization/60023
15158         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
15159         false to gsi_replace.
15160         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
15161         has been in some EH region and vec_stmt could throw, add
15162         vec_stmt into the same EH region.
15163         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
15164         has no lhs, ignore it.
15165         * internal-fn.c (expand_MASK_LOAD): Likewise.
15167         PR ipa/60026
15168         * tree-inline.c (copy_forbidden): Fail for
15169         __attribute__((optimize (0))) functions.
15171         PR other/58712
15172         * omp-low.c (simd_clone_struct_copy): If from->inbranch
15173         is set, copy one less argument.
15174         (expand_simd_clones): Don't subtract clone_info->inbranch
15175         from simd_clone_struct_alloc argument.
15177         PR rtl-optimization/57915
15178         * recog.c (simplify_while_replacing): If all unary/binary/relational
15179         operation arguments are constant, attempt to simplify those.
15181         PR middle-end/59261
15182         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
15183         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
15185 2014-02-04  Richard Biener  <rguenther@suse.de>
15187         PR tree-optimization/60012
15188         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
15189         TBAA disambiguation to all DDRs.
15191 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15193         PR target/59788
15194         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
15195         (LINK_SPEC): Use it for -shared, -shared-libgcc.
15197 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
15199         PR ipa/59882
15200         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
15202 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
15204         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
15205         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
15207 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
15209         PR ipa/59831
15210         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
15211         to figure out targets of polymorphic calls with known decl.
15212         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15213         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
15214         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
15215         (get_polymorphic_call_info): ... here.
15216         (get_polymorphic_call_info_from_invariant): New function.
15218 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
15220         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
15221         lookup via vtable pointer; check for type consistency
15222         and turn inconsitent facts into UNREACHABLE.
15223         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15224         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
15225         type inconsistent querries; return UNREACHABLE instead.
15227 2014-02-03  Richard Henderson  <rth@twiddle.net>
15229         PR tree-opt/59924
15230         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
15231         already processed this node.
15232         (normalize_one_pred_1): Pass along mark_set.
15233         (normalize_one_pred): Create and destroy a pointer_set_t.
15234         (normalize_one_pred_chain): Likewise.
15236 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
15238         PR gcov-profile/58602
15239         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
15241 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
15243         PR ipa/59831
15244         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
15245         -fno-devirtualize; try to devirtualize by the knowledge of
15246         virtual table pointer given by aggregate propagation.
15247         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15248         (ipa_print_node_jump_functions): Dump also offset that
15249         is relevant for polymorphic calls.
15250         (determine_known_aggregate_parts): Add arg_type parameter; use it
15251         instead of determining the type from pointer type.
15252         (ipa_compute_jump_functions_for_edge): Update call of
15253         determine_known_aggregate_parts.
15254         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
15255         (gimple_get_virt_method_for_binfo): ... here; simplify using
15256         vtable_pointer_value_to_vtable.
15257         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
15258         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
15259         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
15260         (vtable_pointer_value_to_vtable): Break out from ...; handle also
15261         POINTER_PLUS_EXPR.
15262         (vtable_pointer_value_to_binfo): ... here.
15263         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
15265 2014-02-03  Teresa Johnson  <tejohnson@google.com>
15267         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
15268         redef of outer loop index variable.
15270 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
15272         PR c++/53017
15273         PR c++/59211
15274         * doc/extend.texi (Function Attributes): Typo.
15276 2014-02-03  Cong Hou  <congh@google.com>
15278         PR tree-optimization/60000
15279         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
15280         if the vectorized statement is a store.  A store statement can only
15281         appear at the end of pattern statements.
15283 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
15285         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
15286         (ix86_option_override_internal): Default long double to 64-bit for
15287         32-bit Bionic and to 128-bit for 64-bit Bionic.
15289         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
15290         TARGET_LONG_DOUBLE_128 is true.
15291         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
15293         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
15294         (mlong-double-64): Negate -mlong-double-128.
15295         (mlong-double-128): New option.
15297         * config/i386/i386-c.c (ix86_target_macros): Define
15298         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
15300         * doc/invoke.texi: Document -mlong-double-128.
15302 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
15304         PR rtl-optimization/60024
15305         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
15307 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
15309         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
15311 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
15313         PR rtl-optimization/57662
15314         * sel-sched.c (code_motion_path_driver): Do not mark already not
15315         existing blocks in the visiting bitmap.
15317 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
15319         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
15320         on the insn being emitted.
15322 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
15323             Will Deacon  <will.deacon@arm.com>
15325         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
15327 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15329         * config/arm/arm-tables.opt: Regenerate.
15331 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15333         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
15334         for vector types other than V16QImode.
15335         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
15336         define_expand, and call altivec_expand_vec_perm_le when producing
15337         code with little endian element order.
15338         (*altivec_vperm_<mode>_internal): New insn having previous
15339         behavior of altivec_vperm_<mode>.
15340         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
15341         altivec_expand_vec_perm_le when producing code with little endian
15342         element order.
15343         (*altivec_vperm_<mode>_uns_internal): New insn having previous
15344         behavior of altivec_vperm_<mode>_uns.
15346 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15348         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
15349         (altivec_vsumsws): Add handling for -maltivec=be with a little
15350         endian target.
15351         (altivec_vsumsws_direct): New.
15352         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
15353         gen_altivec_vsumsws.
15355 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
15357         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
15358         vtable_pointer_value_to_binfo): New functions.
15359         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
15360         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
15362 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
15364         * config/nios2/nios2.md (load_got_register): Initialize GOT
15365         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
15366         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
15368 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
15370         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
15371         preserverd by passthrough, do not propagate the type.
15373 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
15375         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
15376         (mips_atomic_assign_expand_fenv): New function.
15377         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
15379 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
15381         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
15382         (__builtin_mips_set_fcsr): Likewise.
15383         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
15384         MIPS_USI_FTYPE_VOID.
15385         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
15386         (mips16_expand_set_fcsr): Likewise.
15387         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
15388         (mips16_set_fcsr_stub): Likewise.
15389         (mips16_get_fcsr_one_only_stub): New class.
15390         (mips16_set_fcsr_one_only_stub): Likewise.
15391         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
15392         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
15393         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
15394         (hard_float): New availability predicate.
15395         (mips_builtins): Add get_fcsr and set_fcsr.
15396         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
15397         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
15398         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
15399         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
15400         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
15401         patterns.
15403 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
15405         * config/mips/mips.c (mips_one_only_stub): New class.
15406         (mips_need_mips16_rdhwr_p): Replace with...
15407         (mips16_rdhwr_stub): ...this new variable.
15408         (mips16_stub_call_address): New function.
15409         (mips16_rdhwr_one_only_stub): New class.
15410         (mips_expand_thread_pointer): Use mips16_stub_call_address.
15411         (mips_output_mips16_rdhwr): Delete.
15412         (mips_finish_stub): New function.
15413         (mips_code_end): Use it to handle rdhwr stubs.
15415 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
15417         PR target/60017
15418         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
15419         when calculating size of integer atomic types.
15421 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
15423         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
15425 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
15427         PR tree-optimization/60003
15428         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
15429         * profile.c (branch_prob): Use gimple_call_builtin_p
15430         to check for BUILT_IN_SETJMP_RECEIVER.
15431         * tree-inline.c (copy_bb): Call notice_special_calls.
15433 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
15435         PR bootstrap/59985
15436         * lra-constraints.c (process_alt_operands): Update reload_sum only
15437         on the first pass.
15439 2014-01-31  Richard Henderson  <rth@redhat.com>
15441         PR middle-end/60004
15442         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
15443         until after else_eh is processed.
15445 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
15447         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
15448         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
15449         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
15450         in smmintrin.h, remove them.
15451         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
15452         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
15453         * config/i386/i386.md (ROUND_SAE): Fix value.
15454         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
15455         (const48_operand): New.
15456         * config/i386/subst.md (round), (round_expand): Use
15457         const_4_or_8_to_11_operand.
15458         (round_saeonly), (round_saeonly_expand): Use const48_operand.
15460 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
15462         * config/i386/constraints.md (Yk): Swap meaning with k.
15463         * config/i386/i386.md (movhi_internal): Change Yk to k.
15464         (movqi_internal): Ditto.
15465         (*k<logic><mode>): Ditto.
15466         (*andhi_1): Ditto.
15467         (*andqi_1): Ditto.
15468         (kandn<mode>): Ditto.
15469         (*<code>hi_1): Ditto.
15470         (*<code>qi_1): Ditto.
15471         (kxnor<mode>): Ditto.
15472         (kortestzhi): Ditto.
15473         (kortestchi): Ditto.
15474         (kunpckhi): Ditto.
15475         (*one_cmplhi2_1): Ditto.
15476         (*one_cmplqi2_1): Ditto.
15477         * config/i386/sse.md (): Change k to Yk.
15478         (avx512f_load<mode>_mask): Ditto.
15479         (avx512f_blendm<mode>): Ditto.
15480         (avx512f_store<mode>_mask): Ditto.
15481         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
15482         (avx512f_storedqu<mode>_mask): Ditto.
15483         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
15484         Ditto.
15485         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
15486         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
15487         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
15488         (avx512f_maskcmp<mode>3): Ditto.
15489         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
15490         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
15491         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
15492         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
15493         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
15494         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
15495         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
15496         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
15497         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
15498         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
15499         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
15500         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
15501         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
15502         (vec_extract_lo_<mode>_maskm): Ditto.
15503         (vec_extract_hi_<mode>_maskm): Ditto.
15504         (avx512f_vternlog<mode>_mask): Ditto.
15505         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
15506         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
15507         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
15508         (avx512f_<code>v8div16qi2_mask): Ditto.
15509         (avx512f_<code>v8div16qi2_mask_store): Ditto.
15510         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
15511         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
15512         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
15513         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
15514         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
15515         (*avx512pf_gatherpf<mode>df_mask): Ditto.
15516         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
15517         (*avx512pf_scatterpf<mode>df_mask): Ditto.
15518         (avx512cd_maskb_vec_dupv8di): Ditto.
15519         (avx512cd_maskw_vec_dupv16si): Ditto.
15520         (avx512f_vpermi2var<mode>3_maskz): Ditto.
15521         (avx512f_vpermi2var<mode>3_mask): Ditto.
15522         (avx512f_vpermi2var<mode>3_mask): Ditto.
15523         (avx512f_vpermt2var<mode>3_maskz): Ditto.
15524         (*avx512f_gathersi<mode>): Ditto.
15525         (*avx512f_gathersi<mode>_2): Ditto.
15526         (*avx512f_gatherdi<mode>): Ditto.
15527         (*avx512f_gatherdi<mode>_2): Ditto.
15528         (*avx512f_scattersi<mode>): Ditto.
15529         (*avx512f_scatterdi<mode>): Ditto.
15530         (avx512f_compress<mode>_mask): Ditto.
15531         (avx512f_compressstore<mode>_mask): Ditto.
15532         (avx512f_expand<mode>_mask): Ditto.
15533         * config/i386/subst.md (mask): Change k to Yk.
15534         (mask_scalar_merge): Ditto.
15535         (sd): Ditto.
15537 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
15539         * doc/extend.texi (Vector Extensions): Document ?: in C++.
15541 2014-01-31  Richard Biener  <rguenther@suse.de>
15543         PR middle-end/59990
15544         * builtins.c (fold_builtin_memory_op): Make sure to not
15545         use a floating-point mode or a boolean or enumeral type for
15546         the copy operation.
15548 2014-01-30  DJ Delorie  <dj@redhat.com>
15550         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
15551         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
15552         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
15553         whenever main() has an epilogue.
15555 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15557         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
15558         unused variable "field".
15559         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
15560         (vsx_mergeh_<mode>): Likewise.
15561         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
15562         (altivec_vmrghh): Likewise.
15563         (altivec_vmrghw): Likewise.
15564         (altivec_vmrglb): Likewise.
15565         (altivec_vmrglh): Likewise.
15566         (altivec_vmrglw): Likewise.
15567         (altivec_vspltb): Add missing uses.
15568         (altivec_vsplth): Likewise.
15569         (altivec_vspltw): Likewise.
15570         (altivec_vspltsf): Likewise.
15572 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
15574         PR target/59923
15575         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
15576         frame related instructions.
15578 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
15580         PR rtl-optimization/59959
15581         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
15582         any reload of register whose subreg is invalid.
15584 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
15586         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
15587         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
15588         Add missing return type - void.
15590 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15592         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
15593         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
15594         remove element index adjustment for endian (now handled in vsx.md
15595         and altivec.md).
15596         (altivec_expand_vec_perm_const): Use
15597         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
15598         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
15599         (vsx_xxspltw_<mode>): Adjust element index for little endian.
15600         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
15601         define_expand and a new define_insn *altivec_vspltb_internal;
15602         adjust for -maltivec=be on a little endian target.
15603         (altivec_vspltb_direct): New.
15604         (altivec_vsplth): Divide into a define_expand and a new
15605         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
15606         little endian target.
15607         (altivec_vsplth_direct): New.
15608         (altivec_vspltw): Divide into a define_expand and a new
15609         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
15610         little endian target.
15611         (altivec_vspltw_direct): New.
15612         (altivec_vspltsf): Divide into a define_expand and a new
15613         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
15614         a little endian target.
15616 2014-01-30  Richard Biener  <rguenther@suse.de>
15618         PR tree-optimization/59993
15619         * tree-ssa-forwprop.c (associate_pointerplus): Check we
15620         can propagate form the earlier stmt and avoid the transform
15621         when the intermediate result is needed.
15623 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
15625         * README.Portability: Fix typo.
15627 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
15629         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
15630         comparison_operator with ordered_comparison_operator.
15632 2014-01-30  Nick Clifton  <nickc@redhat.com>
15634         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
15635         Rename to mn10300_store_multiple_regs.
15636         * config/mn10300/mn10300.c: Likewise.
15637         * config/mn10300/mn10300.md (store_movm): Fix typo: call
15638         store_multiple_regs.
15639         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
15640         Call mn10300_store_multiple_regs.
15642 2014-01-30  Nick Clifton  <nickc@redhat.com>
15643             DJ Delorie  <dj@redhat.com>
15645         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
15646         %fp 2 to keep registers after it properly word-aligned.
15647         (rl78_alloc_physical_registers_umul): Handle the case where both
15648         input operands are the same.
15650 2014-01-30  Richard Biener  <rguenther@suse.de>
15652         PR tree-optimization/59903
15653         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
15654         check properly.
15656 2014-01-30  Jason Merrill  <jason@redhat.com>
15658         PR c++/59633
15659         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
15661         PR c++/59645
15662         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
15664 2014-01-30  Richard Biener  <rguenther@suse.de>
15666         PR tree-optimization/59951
15667         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
15669 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
15671         PR target/59784
15672         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
15673         SFmode to DFmode case.
15675 2014-01-29  DJ Delorie  <dj@redhat.com>
15677         * config/msp430/msp430.opt (-minrt): New.
15678         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
15679         if -minrt given.
15680         (ENDFILE_SPEC): Likewise.
15682 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
15684         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
15685         (estimate_function_body_sizes): Use it.
15687 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
15689         PR c++/58561
15690         * dwarf2out.c (is_cxx_auto): New.
15691         (is_base_type): Use it.
15692         (gen_type_die_with_usage): Likewise.
15694 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15696         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
15697         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
15698         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
15699         -maltivec=be with LE targets.
15700         (vsx_mergeh_<mode>): Likewise.
15701         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
15702         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
15703         (altivec_vmrghb): Replace with define_expand and new
15704         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
15705         (altivec_vmrghb_direct): New define_insn.
15706         (altivec_vmrghh): Replace with define_expand and new
15707         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
15708         (altivec_vmrghh_direct): New define_insn.
15709         (altivec_vmrghw): Replace with define_expand and new
15710         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
15711         (altivec_vmrghw_direct): New define_insn.
15712         (*altivec_vmrghsf): Adjust for endianness.
15713         (altivec_vmrglb): Replace with define_expand and new
15714         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
15715         (altivec_vmrglb_direct): New define_insn.
15716         (altivec_vmrglh): Replace with define_expand and new
15717         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
15718         (altivec_vmrglh_direct): New define_insn.
15719         (altivec_vmrglw): Replace with define_expand and new
15720         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
15721         (altivec_vmrglw_direct): New define_insn.
15722         (*altivec_vmrglsf): Adjust for endianness.
15723         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
15724         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
15725         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
15726         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
15727         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
15728         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
15729         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
15730         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
15732 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15734         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
15735         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
15736         whitespace.
15738 2014-01-29  Richard Biener  <rguenther@suse.de>
15740         PR tree-optimization/58742
15741         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
15742         associate_pointerplus_align.
15743         (associate_pointerplus_diff): New function.
15744         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
15745         and associate_pointerplus_diff.
15747 2014-01-29  Richard Biener  <rguenther@suse.de>
15749         * lto-streamer.h (LTO_major_version): Bump to 3.
15750         (LTO_minor_version): Reset to 0.
15752 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
15754         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
15755         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
15756         (arm_file_start): Generate correct asm header for armv7ve.
15757         * config/arm/bpabi.h: Add multilib support for armv7ve.
15758         * config/arm/driver-arm.c: Change the architectures of cortex-a7
15759         and cortex-a15 to armv7ve.
15760         * config/arm/t-aprofile: Add multilib support for armv7ve.
15761         * doc/invoke.texi: Document -march=armv7ve.
15763 2014-01-29  Richard Biener  <rguenther@suse.de>
15765         PR tree-optimization/58742
15766         * tree-ssa-forwprop.c (associate_plusminus): Return true
15767         if we changed sth, defer EH cleanup to ...
15768         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
15769         (simplify_mult): New function.
15771 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
15773         PR middle-end/59917
15774         PR tree-optimization/59920
15775         * tree.c (build_common_builtin_nodes): Remove
15776         __builtin_setjmp_dispatcher initialization.
15777         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
15778         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
15779         instead of gsi_after_labels + manually skipping debug stmts.
15780         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
15781         ignore bbs with IFN_ABNORMAL_DISPATCHER.
15782         * tree-inline.c (copy_edges_for_bb): Remove
15783         can_make_abnormal_goto argument, instead add abnormal_goto_dest
15784         argument.  Ignore computed_goto_p stmts.  Don't call
15785         make_abnormal_goto_edges.  If a call might need abnormal edges
15786         for non-local gotos, see if it already has an edge to
15787         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
15788         with true argument, don't do anything then, otherwise add
15789         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
15790         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
15791         caller.
15792         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
15793         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
15794         (lower_stmt): Don't set data->calls_builtin_setjmp.
15795         (lower_builtin_setjmp): Adjust comment.
15796         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
15797         * tree-cfg.c (found_computed_goto): Remove.
15798         (factor_computed_gotos): Remove.
15799         (make_goto_expr_edges): Return bool, true for computed gotos.
15800         Don't call make_abnormal_goto_edges.
15801         (build_gimple_cfg): Don't set found_computed_goto, don't call
15802         factor_computed_gotos.
15803         (computed_goto_p): No longer static.
15804         (make_blocks): Don't set found_computed_goto.
15805         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
15806         (make_edges): If make_goto_expr_edges returns true, push bb
15807         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
15808         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
15809         vector.  Record mapping between bbs and OpenMP regions if there
15810         are any, adjust make_gimple_omp_edges caller.  Call
15811         handle_abnormal_edges.
15812         (make_abnormal_goto_edges): Remove.
15813         * tree-cfg.h (make_abnormal_goto_edges): Remove.
15814         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
15815         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
15816         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
15817         * internal-fn.def (ABNORMAL_DISPATCHER): New.
15818         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
15819         filling *region also set *region_idx to (*region)->entry->index.
15821         PR other/58712
15822         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
15823         For REGs set ORIGINAL_REGNO.
15825 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
15827         * doc/md.texi: Mention that a target shouldn't implement
15828         vec_widen_(s|u)mul_even/odd pair if it is less efficient
15829         than hi/lo pair.
15831 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
15833         PR tree-optimization/59594
15834         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
15835         a copy of the datarefs vector rather than the vector itself.
15837 2014-01-28  Jason Merrill  <jason@redhat.com>
15839         PR c++/53756
15840         * dwarf2out.c (auto_die): New static.
15841         (gen_type_die_with_usage): Handle C++1y 'auto'.
15842         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
15843         on definition.
15845 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
15847         PR target/59672
15848         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
15849         (SPEC_X32): Likewise.
15850         (SPEC_64): Likewise.
15851         * config/i386/i386.c (ix86_option_override_internal): Turn off
15852         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
15853         for TARGET_16BIT.
15854         (x86_file_start): Output .code16gcc for TARGET_16BIT.
15855         * config/i386/i386.h (TARGET_16BIT): New macro.
15856         (TARGET_16BIT_P): Likewise.
15857         * config/i386/i386.opt: Add m16.
15858         * doc/invoke.texi: Document -m16.
15860 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
15862         PR preprocessor/59935
15863         * input.c (location_get_source_line): Bail out on when line number
15864         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
15866 2014-01-28  Richard Biener  <rguenther@suse.de>
15868         PR tree-optimization/58742
15869         * tree-ssa-forwprop.c (associate_plusminus): Handle
15870         pointer subtraction of the form (T)(P + A) - (T)P.
15872 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15874         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
15875         at const_int_cost.
15877 2014-01-28  Richard Biener  <rguenther@suse.de>
15879         Revert
15880         2014-01-28  Richard Biener  <rguenther@suse.de>
15882         PR rtl-optimization/45364
15883         PR rtl-optimization/59890
15884         * var-tracking.c (local_get_addr_clear_given_value): Handle
15885         already cleared slot.
15886         (val_reset): Handle not allocated local_get_addr_cache.
15887         (vt_find_locations): Use post-order on the inverted CFG.
15889 2014-01-28  Richard Biener  <rguenther@suse.de>
15891         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
15893 2014-01-28  Richard Biener  <rguenther@suse.de>
15895         PR rtl-optimization/45364
15896         PR rtl-optimization/59890
15897         * var-tracking.c (local_get_addr_clear_given_value): Handle
15898         already cleared slot.
15899         (val_reset): Handle not allocated local_get_addr_cache.
15900         (vt_find_locations): Use post-order on the inverted CFG.
15902 2014-01-28  Alan Modra  <amodra@gmail.com>
15904         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
15905         * configure.ac <recursive call for build != host>: Define
15906         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
15907         and LD_FOR_BUILD too.
15908         * configure: Regenerate.
15910 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
15912         * config/i386/i386.c (get_builtin_code_for_version): Separate
15913         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
15914         Broadwell from Haswell.
15916 2014-01-27  Steve Ellcey  <sellcey@mips.com>
15918         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
15919         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
15920         * config/mips/mips.c (mips_option_override): Change setting
15921         of TARGET_DSP.
15922         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
15923         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
15924         Change from Mask to Var.
15926 2014-01-27  Jeff Law  <law@redhat.com>
15928         * ipa-inline.c (inline_small_functions): Fix typo.
15930 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
15932         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
15933         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
15934         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
15935         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
15936         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
15937         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
15938         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
15939         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
15940         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
15941         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
15942         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
15943         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
15944         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
15945         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
15946         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
15947         (_mm512_storeu_epi64): Ditto.
15948         (_mm512_cmpge_epi32_mask): Ditto.
15949         (_mm512_cmpge_epu32_mask): Ditto.
15950         (_mm512_cmpge_epi64_mask): Ditto.
15951         (_mm512_cmpge_epu64_mask): Ditto.
15952         (_mm512_cmple_epi32_mask): Ditto.
15953         (_mm512_cmple_epu32_mask): Ditto.
15954         (_mm512_cmple_epi64_mask): Ditto.
15955         (_mm512_cmple_epu64_mask): Ditto.
15956         (_mm512_cmplt_epi32_mask): Ditto.
15957         (_mm512_cmplt_epu32_mask): Ditto.
15958         (_mm512_cmplt_epi64_mask): Ditto.
15959         (_mm512_cmplt_epu64_mask): Ditto.
15960         (_mm512_cmpneq_epi32_mask): Ditto.
15961         (_mm512_cmpneq_epu32_mask): Ditto.
15962         (_mm512_cmpneq_epi64_mask): Ditto.
15963         (_mm512_cmpneq_epu64_mask): Ditto.
15964         (_mm512_expand_pd): Ditto.
15965         (_mm512_expand_ps): Ditto.
15966         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
15967         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
15968         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
15969         * config/i386/i386.c (ix86_builtins): Add
15970         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
15971         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
15972         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
15973         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
15974         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
15975         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
15976         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
15977         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
15978         IX86_BUILTIN_PMOVUSQW512_MEM.
15979         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
15980         __builtin_ia32_pmovsqd512mem_mask,
15981         __builtin_ia32_pmovqd512mem_mask,
15982         __builtin_ia32_pmovusqw512mem_mask,
15983         __builtin_ia32_pmovsqw512mem_mask,
15984         __builtin_ia32_pmovqw512mem_mask,
15985         __builtin_ia32_pmovusdw512mem_mask,
15986         __builtin_ia32_pmovsdw512mem_mask,
15987         __builtin_ia32_pmovdw512mem_mask,
15988         __builtin_ia32_pmovqb512mem_mask,
15989         __builtin_ia32_pmovusqb512mem_mask,
15990         __builtin_ia32_pmovsqb512mem_mask,
15991         __builtin_ia32_pmovusdb512mem_mask,
15992         __builtin_ia32_pmovsdb512mem_mask,
15993         __builtin_ia32_pmovdb512mem_mask.
15994         (bdesc_args): Add __builtin_ia32_expanddf512,
15995         __builtin_ia32_expandsf512.
15996         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
15997         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
15998         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
15999         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
16000         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
16001         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
16002         (avx512f_<code>v8div16qi2_mask_store): This.
16003         (avx512f_expand<mode>): New.
16005 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
16007         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
16008         New.
16009         (_mm512_mask_prefetch_i64gather_pd): Ditto.
16010         (_mm512_prefetch_i32scatter_pd): Ditto.
16011         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
16012         (_mm512_prefetch_i64scatter_pd): Ditto.
16013         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
16014         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
16015         (_mm512_mask_prefetch_i64gather_ps): Ditto.
16016         (_mm512_prefetch_i32scatter_ps): Ditto.
16017         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
16018         (_mm512_prefetch_i64scatter_ps): Ditto.
16019         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
16020         * config/i386/i386-builtin-types.def: Define
16021         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
16022         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
16023         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
16024         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
16025         IX86_BUILTIN_SCATTERPFQPD.
16026         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
16027         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
16028         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
16029         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
16030         __builtin_ia32_scatterpfqps.
16031         (ix86_expand_builtin): Expand new built-ins.
16032         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
16033         fix memory access data type.
16034         (*avx512pf_gatherpf<mode>_mask): Ditto.
16035         (*avx512pf_gatherpf<mode>): Ditto.
16036         (avx512pf_scatterpf<mode>): Ditto.
16037         (*avx512pf_scatterpf<mode>_mask): Ditto.
16038         (*avx512pf_scatterpf<mode>): Ditto.
16039         (GATHER_SCATTER_SF_MEM_MODE): New.
16040         (avx512pf_gatherpf<mode>df): Ditto.
16041         (*avx512pf_gatherpf<mode>df_mask): Ditto.
16042         (*avx512pf_scatterpf<mode>df): Ditto.
16044 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
16046         PR bootstrap/59934
16047         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
16048         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
16049         reached.
16051 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
16053         * common/config/arm/arm-common.c
16054         (arm_rewrite_mcpu): Handle multiple names.
16055         * config/arm/arm.h
16056         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
16058 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
16060         * gimple-builder.h (create_gimple_tmp): Delete.
16062 2014-01-27  Christian Bruel  <christian.bruel@st.com>
16064         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
16065         words comparisons.
16067 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
16069         * config/pa/pa.md (call): Generate indirect long calls to non-local
16070         functions when outputing 32-bit code.
16071         (call_value): Likewise except for special call to buggy powf function.
16073         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
16074         portable runtime and PIC indirect calls.
16075         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
16076         and PIC call sequences.  Use ldo instead of blr to set return register
16077         in PIC call sequence.
16079 2014-01-25  Walter Lee  <walt@tilera.com>
16081         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
16082         avoid clobbering a live register.
16084 2014-01-25  Walter Lee  <walt@tilera.com>
16086         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
16087         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
16088         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
16089         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
16091 2014-01-25  Walter Lee  <walt@tilera.com>
16093         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
16094         arguments on even registers.
16095         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
16096         STACK_BOUNDARY.
16097         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
16098         (BIGGEST_ALIGNMENT): Ditto.
16099         (BIGGEST_FIELD_ALIGNMENT): Ditto.
16101 2014-01-25  Walter Lee  <walt@tilera.com>
16103         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
16104         insns before bundling.
16105         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
16107 2014-01-25  Walter Lee  <walt@tilera.com>
16109         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
16110         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
16111         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
16113 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
16115         * config/mips/constraints.md (kl): Delete.
16116         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
16117         define expands, using...
16118         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
16119         instructions for MIPS16.
16120         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
16121         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
16123 2014-01-25  Walter Lee  <walt@tilera.com>
16125         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
16126         (clzdi2): Ditto.
16127         (ffsdi2): Ditto.
16129 2014-01-25  Walter Lee  <walt@tilera.com>
16131         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
16132         (TARGET_EXPAND_TO_RTL_HOOK): Define.
16134 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
16136         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
16137         Handle XOR.
16139 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
16141         * print-rtl.c (in_call_function_usage): New var.
16142         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
16143         EXPR_LIST mode as mode and not as reg note name.
16145         PR middle-end/59561
16146         * cfgloopmanip.c (copy_loop_info): If
16147         loop->warned_aggressive_loop_optimizations, make sure
16148         the flag is set in target loop too.
16150 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
16152         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
16153         flag_cilkplus.
16154         * builtins.def: Likewise.
16155         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
16156         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
16157         * ira.c (ira_setup_eliminable_regset): Likewise.
16158         * omp-low.c (gate_expand_omp): Likewise.
16159         (execute_lower_omp): Likewise.
16160         (diagnose_sb_0): Likewise.
16161         (gate_diagnose_omp_blocks): Likewise.
16162         (simd_clone_clauses_extract): Likewise.
16163         (gate): Likewise.
16165 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16167         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
16168         correction for little endian...
16169         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
16170         here.
16172 2014-01-24  Jeff Law  <law@redhat.com>
16174         PR tree-optimization/59919
16175         * tree-vrp.c (find_assert_locations_1): Do not register asserts
16176         for non-returning calls.
16178 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
16180         * common/config/aarch64/aarch64-common.c
16181         (aarch64_rewrite_mcpu): Handle multiple names.
16182         * config/aarch64/aarch64.h
16183         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
16185 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
16187         * input.c (add_file_to_cache_tab): Handle the case where fopen
16188         returns NULL.
16190 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
16192         PR target/59929
16193         * config/i386/i386.md (pushsf splitter): Get stack adjustment
16194         from push operand if code of push isn't PRE_DEC.
16196 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
16198         PR target/59909
16199         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16200         -mquad-memory-atomic.  Update -mquad-memory documentation to say
16201         it is only used for non-atomic loads/stores.
16203         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
16204         -mquad-memory or -mquad-memory-atomic switches.
16206         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
16207         -mquad-memory-atomic to ISA 2.07 support.
16209         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
16210         to separate support of normal quad word memory operations (ldq, stq)
16211         from the atomic quad word memory operations.
16213         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16214         support to separate non-atomic quad word operations from atomic
16215         quad word operations.  Disable non-atomic quad word operations in
16216         little endian mode so that we don't have to swap words after the
16217         load and before the store.
16218         (quad_load_store_p): Add comment about atomic quad word support.
16219         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
16220         options printed with -mdebug=reg.
16222         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
16223         -mquad-memory-atomic as the test for whether we have quad word
16224         atomic instructions.
16225         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
16226         or -mp8-vector are used, allow byte/half-word atomic operations.
16228         * config/rs6000/sync.md (load_lockedti): Insure that the address
16229         is a proper indexed or indirect address for the lqarx instruction.
16230         On little endian systems, swap the hi/lo registers after the lqarx
16231         instruction.
16232         (load_lockedpti): Use indexed_or_indirect_operand predicate to
16233         insure the address is valid for the lqarx instruction.
16234         (store_conditionalti): Insure that the address is a proper indexed
16235         or indirect address for the stqcrx. instruction.  On little endian
16236         systems, swap the hi/lo registers before doing the stqcrx.
16237         instruction.
16238         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
16239         insure the address is valid for the stqcrx. instruction.
16241         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
16242         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
16243         type of quad memory support is available.
16245 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
16247         PR regression/59915
16248         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
16249         there is a danger of looping.
16251 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
16253         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16254         force flag_ira_loop_pressure if set via command line.
16256 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
16258         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
16259         (ashr_simd): New builtin handling DI mode.
16260         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
16261         (aarch64_sshr_simddi): New match pattern.
16262         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
16263         (vshrd_n_s64): Likewise.
16264         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
16266 2014-01-23  Nick Clifton  <nickc@redhat.com>
16268         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
16269         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
16270         favour of mcu specific scripts.
16271         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
16272         430x multilibs.
16274 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
16275             Alex Velenko  <Alex.Velenko@arm.com>
16277         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
16278         (vaddv_s16): Likewise.
16279         (vaddv_s32): Likewise.
16280         (vaddv_u8): Likewise.
16281         (vaddv_u16): Likewise.
16282         (vaddv_u32): Likewise.
16283         (vaddvq_s8): Likewise.
16284         (vaddvq_s16): Likewise.
16285         (vaddvq_s32): Likewise.
16286         (vaddvq_s64): Likewise.
16287         (vaddvq_u8): Likewise.
16288         (vaddvq_u16): Likewise.
16289         (vaddvq_u32): Likewise.
16290         (vaddvq_u64): Likewise.
16291         (vaddv_f32): Likewise.
16292         (vaddvq_f32): Likewise.
16293         (vaddvq_f64): Likewise.
16294         (vmaxv_f32): Likewise.
16295         (vmaxv_s8): Likewise.
16296         (vmaxv_s16): Likewise.
16297         (vmaxv_s32): Likewise.
16298         (vmaxv_u8): Likewise.
16299         (vmaxv_u16): Likewise.
16300         (vmaxv_u32): Likewise.
16301         (vmaxvq_f32): Likewise.
16302         (vmaxvq_f64): Likewise.
16303         (vmaxvq_s8): Likewise.
16304         (vmaxvq_s16): Likewise.
16305         (vmaxvq_s32): Likewise.
16306         (vmaxvq_u8): Likewise.
16307         (vmaxvq_u16): Likewise.
16308         (vmaxvq_u32): Likewise.
16309         (vmaxnmv_f32): Likewise.
16310         (vmaxnmvq_f32): Likewise.
16311         (vmaxnmvq_f64): Likewise.
16312         (vminv_f32): Likewise.
16313         (vminv_s8): Likewise.
16314         (vminv_s16): Likewise.
16315         (vminv_s32): Likewise.
16316         (vminv_u8): Likewise.
16317         (vminv_u16): Likewise.
16318         (vminv_u32): Likewise.
16319         (vminvq_f32): Likewise.
16320         (vminvq_f64): Likewise.
16321         (vminvq_s8): Likewise.
16322         (vminvq_s16): Likewise.
16323         (vminvq_s32): Likewise.
16324         (vminvq_u8): Likewise.
16325         (vminvq_u16): Likewise.
16326         (vminvq_u32): Likewise.
16327         (vminnmv_f32): Likewise.
16328         (vminnmvq_f32): Likewise.
16329         (vminnmvq_f64): Likewise.
16331 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
16333         * config/aarch64/aarch64-simd.md
16334         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
16335         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
16336         (*aarch64_mul3_elt<mode>): Likewise.
16337         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
16338         (*aarch64_mul3_elt_to_64v2df): Likewise.
16339         (*aarch64_mla_elt<mode>): Likewise.
16340         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
16341         (*aarch64_mls_elt<mode>): Likewise.
16342         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
16343         (*aarch64_fma4_elt<mode>): Likewise.
16344         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
16345         (*aarch64_fma4_elt_to_64v2df): Likewise.
16346         (*aarch64_fnma4_elt<mode>): Likewise.
16347         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
16348         (*aarch64_fnma4_elt_to_64v2df): Likewise.
16349         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
16350         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
16351         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
16352         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
16353         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
16354         (aarch64_sqdmull_lane<mode>_internal): Likewise.
16355         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
16357 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
16359         * config/aarch64/aarch64-simd.md
16360         (aarch64_be_checked_get_lane<mode>): New define_expand.
16361         * config/aarch64/aarch64-simd-builtins.def
16362         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
16363         New builtin definition.
16364         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
16365         Use new safe be builtin.
16367 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
16369         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
16370         New define_insn.
16371         (aarch64_be_st1<mode>): Likewise.
16372         (aarch_ld1<VALL:mode>): Define_expand modified.
16373         (aarch_st1<VALL:mode>): Likewise.
16374         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
16375         (UNSPEC_ST1): Likewise.
16377 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
16379         * config/microblaze/microblaze.md: Add trap insn and attribute
16381 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
16383         PR preprocessor/58580
16384         * input.h (location_get_source_line): Take an additional line_size
16385         parameter.
16386         (void diagnostics_file_cache_fini): Declare new function.
16387         * input.c (struct fcache): New type.
16388         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
16389         New static constants.
16390         (diagnostic_file_cache_init, total_lines_num)
16391         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
16392         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
16393         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
16394         (get_next_line, read_next_line, goto_next_line, read_line_num):
16395         New static function definitions.
16396         (diagnostic_file_cache_fini): New function.
16397         (location_get_source_line): Take an additional output line_len
16398         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
16399         read_line_num.
16400         * diagnostic.c (diagnostic_finish): Call
16401         diagnostic_file_cache_fini.
16402         (adjust_line): Take an additional input parameter for the length
16403         of the line, rather than calculating it with strlen.
16404         (diagnostic_show_locus): Adjust the use of
16405         location_get_source_line and adjust_line with respect to their new
16406         signature.  While displaying a line now, do not stop at the first
16407         null byte.  Rather, display the zero byte as a space and keep
16408         going until we reach the size of the line.
16409         * Makefile.in: Add vec.o to OBJS-libcommon
16411 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
16412             Ilya Tocar  <ilya.tocar@intel.com>
16414         * config/i386/avx512fintrin.h (_mm512_kmov): New.
16415         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
16416         (__builtin_ia32_kmov16): Ditto.
16417         * config/i386/i386.md (UNSPEC_KMOV): New.
16418         (kmovw): Ditto.
16420 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
16422         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
16423         (_mm512_storeu_si512): Ditto.
16425 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
16427         PR target/52125
16428         * rtl.h (get_referenced_operands): Declare.
16429         * recog.c (get_referenced_operands): New function.
16430         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
16431         operands have been referenced when recording LO_SUM references.
16433 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
16435         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
16437 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
16439         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
16440         Enable for generic and recent AMD targets.
16442 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
16444         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
16445         ARG_SIZE note when adjustment was eliminated.
16447 2014-01-22  Jeff Law  <law@redhat.com>
16449         PR tree-optimization/59597
16450         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
16451         in file.  Accept new argument REGISTERING and use it to modify
16452         dump output appropriately.
16453         (register_jump_thread): Corresponding changes.
16454         (mark_threaded_blocks): Reinstate code to cancel unprofitable
16455         thread paths involving joiner blocks.  Add code to dump cancelled
16456         jump threading paths.
16458 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
16460         PR rtl-optimization/59477
16461         * lra-constraints.c (inherit_in_ebb): Process call for living hard
16462         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
16464 2014-01-22  Tom Tromey  <tromey@redhat.com>
16466         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
16467         PARAMS.
16468         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
16470 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
16472         PR rtl-optimization/59896
16473         * lra-constraints.c (process_alt_operands): Check unused note for
16474         matched operands of insn with no output reloads.
16476 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
16478         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
16479         (mips_move_from_gpr_cost): Likewise.
16481 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
16483         PR rtl-optimization/59858
16484         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
16485         ira_class_hard_regs_num.
16486         (process_alt_operands): Increase reject for dying matched operand.
16488 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
16490         PR target/59003
16491         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
16492         smaller than size, perform several stores or loads and stores
16493         at dst + count - size to store or copy all of size bytes, rather
16494         than just last modesize bytes.
16496 2014-01-20  DJ Delorie  <dj@redhat.com>
16498         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
16499         that CLOBBERs are REGs before propogating their values.
16501 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
16503         PR middle-end/59789
16504         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
16505         (cgraph_inline_failed_type): New function.
16506         * cgraph.h (DEFCIFCODE): Add type.
16507         (cgraph_inline_failed_type_t): New enum.
16508         (cgraph_inline_failed_type): New prototype.
16509         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
16510         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
16511         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
16512         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
16513         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
16514         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
16515         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
16516         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
16517         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
16518         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
16519         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
16520         OPTIMIZATION_MISMATCH.
16521         * tree-inline.c (expand_call_inline): Emit errors during
16522         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
16524 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
16526         PR target/59685
16527         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
16528         mode attribute in insn output.
16530 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
16532         * output.h (output_constant): Delete.
16533         * varasm.c (output_constant): Make private.
16535 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
16537         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
16539 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
16541         PR middle-end/59860
16542         * tree.h (fold_builtin_strcat): New prototype.
16543         * builtins.c (fold_builtin_strcat): No longer static.  Add len
16544         argument, if non-NULL, don't call c_strlen.  Optimize
16545         directly into __builtin_memcpy instead of __builtin_strcpy.
16546         (fold_builtin_2): Adjust fold_builtin_strcat caller.
16547         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
16549 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
16551         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
16552         for SImode_address_operand operands, having only a REG argument.
16554 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16556         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
16557         loader name using mbig-endian.
16558         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
16560 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
16562         * doc/invoke.texi (-march): Clarify documentation for AArch64.
16563         (-mtune): Likewise.
16564         (-mcpu): Likewise.
16566 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
16568         * config/aarch64/aarch64-protos.h
16569         (aarch64_cannot_change_mode_class_ptr): Declare.
16570         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
16571         aarch64_cannot_change_mode_class_ptr): New.
16572         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
16573         backend hook aarch64_cannot_change_mode_class.
16575 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
16577         * common/config/aarch64/aarch64-common.c
16578         (aarch64_handle_option): Don't handle any option order logic here.
16579         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
16580         selected_cpu, warn on architecture version mismatch.
16581         (aarch64_override_options): Fix parsing order for option strings.
16583 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16584             Iain Sandoe  <iain@codesourcery.com>
16586         PR bootstrap/59496
16587         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
16588         warning.  Amend comment to reflect current functionality.
16590 2014-01-20  Richard Biener  <rguenther@suse.de>
16592         PR middle-end/59860
16593         * builtins.c (fold_builtin_strcat): Remove case better handled
16594         by tree-ssa-strlen.c.
16596 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
16598         * config/aarch64/aarch64.opt
16599         (mcpu, march, mtune): Make case-insensitive.
16601 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
16603         PR target/59880
16604         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
16605         if operands[1] is a REG or ZERO_EXTEND of a REG.
16607 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
16609         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
16611 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
16613         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
16614         long non-pic millicode calls.
16616 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16618         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
16620 2014-01-19  Kito Cheng  <kito@0xlab.org>
16622         * builtins.c (expand_movstr): Check movstr expand done or fail.
16624 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
16625             H.J. Lu  <hongjiu.lu@intel.com>
16627         PR target/59379
16628         * config/i386/i386.md (*lea<mode>): Zero-extend return register
16629         to DImode for zero-extended addresses.
16631 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
16633         PR rtl-optimization/57763
16634         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
16635         on the new indirect jump_insn and increment LABEL_NUSES (label).
16637 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
16639         PR bootstrap/59580
16640         PR bootstrap/59583
16641         * config.gcc (x86_archs): New variable.
16642         (x86_64_archs): Likewise.
16643         (x86_cpus): Likewise.
16644         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
16645         --with-arch/--with-cpu= options.
16646         Support --with-arch=/--with-cpu={nehalem,westmere,
16647         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
16649 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
16651         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
16652         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
16654 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
16656         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
16658 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
16660         PR target/58944
16661         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
16662         clear cpp_get_options (parse_in)->warn_unused_macros for
16663         ix86_target_macros_internal with cpp_define.
16665 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
16667         * jump.c (delete_related_insns): Keep (use (insn))s.
16668         * reorg.c (redundant_insn): Check for barriers too.
16670 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
16672         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
16674 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
16676         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
16677         call to $$dyncall when TARGET_LONG_CALLS is true.
16679 2014-01-17  Jeff Law  <law@redhat.com>
16681         * ree.c (combine_set_extension): Temporarily disable test for
16682         changing number of hard registers.
16684 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
16686         PR middle-end/58125
16687         * ipa-inline-analysis.c (inline_free_summary):
16688         Do not free summary of aliases.
16690 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
16692         PR middle-end/59706
16693         * gimplify.c (gimplify_expr): Use create_tmp_var
16694         instead of create_tmp_var_raw.  If cond doesn't have
16695         integral type, don't add the IFN_ANNOTATE builtin at all.
16697 2014-01-17  Martin Jambor  <mjambor@suse.cz>
16699         PR ipa/59736
16700         * ipa-cp.c (prev_edge_clone): New variable.
16701         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
16702         Also resize prev_edge_clone vector.
16703         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
16704         (ipcp_edge_removal_hook): New function.
16705         (ipcp_driver): Register ipcp_edge_removal_hook.
16707 2014-01-17  Andrew Pinski  <apinski@cavium.com>
16708             Steve Ellcey  <sellcey@mips.com>
16710         PR target/59462
16711         * config/mips/mips.c (mips_print_operand): Check operand mode instead
16712         of operator mode.
16714 2014-01-17  Jeff Law  <law@redhat.com>
16716         PR middle-end/57904
16717         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
16718         so that pass_ccp runs first.
16720 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
16722         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
16723         (ix86_adjust_cost): Use !TARGET_XXX.
16724         (do_reorder_for_imul): Likewise.
16725         (swap_top_of_ready_list): Likewise.
16726         (ix86_sched_reorder): Likewise.
16728 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
16730         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16731         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
16732         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
16733         (intel_memset): New.  Duplicate slm_memset.
16734         (intel_cost): New.  Duplicate slm_cost.
16735         (m_INTEL): New macro.
16736         (processor_target_table): Add "intel".
16737         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
16738         with PROCESSOR_INTEL for "intel".
16739         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
16740         PROCESSOR_SILVERMONT.
16741         (ix86_issue_rate): Likewise.
16742         (ix86_adjust_cost): Likewise.
16743         (ia32_multipass_dfa_lookahead): Likewise.
16744         (swap_top_of_ready_list): Likewise.
16745         (ix86_sched_reorder): Likewise.
16746         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
16747         instead of TARGET_OPT_AGU.
16748         * config/i386/i386.h (TARGET_INTEL): New.
16749         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
16750         (processor_type): Add PROCESSOR_INTEL.
16751         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
16752         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
16754 2014-01-17  Marek Polacek  <polacek@redhat.com>
16756         PR c/58346
16757         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
16758         size is zero.
16760 2014-01-17  Richard Biener  <rguenther@suse.de>
16762         PR tree-optimization/46590
16763         * opts.c (default_options_table): Add entries for
16764         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
16765         all enabled at -O1 but not for -Og.
16766         * common.opt (fbranch-count-reg): Remove Init(1).
16767         (fmove-loop-invariants): Likewise.
16768         (ftree-pta): Likewise.
16770 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
16772         * config/i386/i386.c (ix86_data_alignment): For compatibility with
16773         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
16774         decls to at least the GCC 4.8 used alignments.
16776         PR fortran/59440
16777         * tree-nested.c (convert_nonlocal_reference_stmt,
16778         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
16779         of GIMPLE_BIND stmts, adjust associated decls.
16781 2014-01-17  Richard Biener  <rguenther@suse.de>
16783         PR tree-optimization/46590
16784         * vec.h (vec<>::bseach): New member function implementing
16785         binary search according to C89 bsearch.
16786         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
16787         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
16788         bitmap pointer again.  Make accesses_in_loop a flat array.
16789         (mem_ref_obstack): New global.
16790         (outermost_indep_loop): Adjust for mem_ref->stored changes.
16791         (mark_ref_stored): Likewise.
16792         (ref_indep_loop_p_2): Likewise.
16793         (set_ref_stored_in_loop): New helper function.
16794         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
16795         (memref_free): Adjust.
16796         (record_mem_ref_loc): Simplify.
16797         (gather_mem_refs_stmt): Adjust.
16798         (sort_locs_in_loop_postorder_cmp): New function.
16799         (analyze_memory_references): Sort accesses_in_loop after
16800         loop postorder number.
16801         (find_ref_loc_in_loop_cmp): New function.
16802         (for_all_locs_in_loop): Find relevant cluster of locs in
16803         accesses_in_loop and iterate without recursion.
16804         (execute_sm): Avoid uninit warning.
16805         (struct ref_always_accessed): Simplify.
16806         (ref_always_accessed::operator ()): Likewise.
16807         (ref_always_accessed_p): Likewise.
16808         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
16809         loop postorder numbers here.
16810         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
16811         numbers.
16813 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
16815         PR c++/57945
16816         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
16817         on decls for which assemble_alias has been called.
16819 2014-01-17  Nick Clifton  <nickc@redhat.com>
16821         * config/msp430/msp430.opt: (mcpu): New option.
16822         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
16823         (msp430_option_override): Parse target_cpu.  If the MCU name
16824         matches a generic string, clear target_mcu.
16825         (msp430_attr): Allow numeric interrupt values up to 63.
16826         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
16827         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
16828         option.
16829         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
16830         Add mcpu matches.
16831         * config/msp430/msp430.md (popm): Use %J rather than %I.
16832         (addsi3): Use msp430_nonimmediate_operand for operand 2.
16833         (addhi_cy_i): Use immediate_operand for operand 2.
16834         * doc/invoke.texi: Document -mcpu option.
16836 2014-01-17  Richard Biener  <rguenther@suse.de>
16838         PR rtl-optimization/38518
16839         * df.h (df_analyze_loop): Declare.
16840         * df-core.c: Include cfgloop.h.
16841         (df_analyze_1): Split out main part of df_analyze.
16842         (df_analyze): Adjust.
16843         (loop_inverted_post_order_compute): New function.
16844         (loop_post_order_compute): Likewise.
16845         (df_analyze_loop): New function avoiding whole-function
16846         postorder computes.
16847         * loop-invariant.c (find_defs): Use df_analyze_loop.
16848         (find_invariants): Adjust.
16849         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
16851 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16853         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
16854         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
16856 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
16858         * ipa-ref.c (ipa_remove_stmt_references): Fix references
16859         traversal when removing references.
16861 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
16863         PR ipa/59775
16864         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
16866 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
16868         PR middle-end/56791
16869         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
16870         pushing a reload for an autoinc when we had previously reloaded an
16871         inner part of the address.
16873 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
16875         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
16876         field.
16877         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
16878         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
16879         when not giving up or versioning for alias only because of
16880         loop->safelen.
16881         (vect_analyze_data_ref_dependences): Set to true.
16882         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
16883         is a GIMPLE_PHI.
16884         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
16885         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
16886         to the condition.
16888         PR middle-end/58344
16889         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
16891         PR target/59839
16892         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
16893         operand 0 predicate for gathers, use a new pseudo as subtarget.
16895 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
16897         PR middle-end/59609
16898         * lra-constraints.c (process_alt_operands): Add printing debug info.
16899         Check absence of input/output reloads for matched operands too.
16901 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
16903         PR rtl-optimization/59835
16904         * ira.c (ira_init_register_move_cost): Increase cost for
16905         impossible modes.
16907 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
16909         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
16911 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
16913         PR target/59780
16914         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
16915         non-register objects.  Use gen_(high/low)part more consistently.
16916         Fix assertions.
16918 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
16920         PR target/59844
16921         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
16922         endian support, remove tests for WORDS_BIG_ENDIAN.
16923         (p8_mfvsrd_3_<mode>): Likewise.
16924         (reload_gpr_from_vsx<mode>): Likewise.
16925         (reload_gpr_from_vsxsf): Likewise.
16926         (p8_mfvsrd_4_disf): Likewise.
16928 2014-01-16  Richard Biener  <rguenther@suse.de>
16930         PR rtl-optimization/46590
16931         * lcm.c (compute_antinout_edge): Use postorder iteration.
16932         (compute_laterin): Use inverted postorder iteration.
16934 2014-01-16  Nick Clifton  <nickc@redhat.com>
16936         PR middle-end/28865
16937         * varasm.c (output_constant): Return the number of bytes actually
16938         emitted.
16939         (output_constructor_array_range): Update the field size with the
16940         number of bytes emitted by output_constant.
16941         (output_constructor_regular_field): Likewise.  Also do not
16942         complain if the total number of bytes emitted is now greater
16943         than the expected fieldpos.
16944         * output.h (output_constant): Update prototype and descriptive comment.
16946 2014-01-16  Marek Polacek  <polacek@redhat.com>
16948         PR middle-end/59827
16949         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
16950         it is error_mark_node.
16952 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
16954         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
16955         VALID_AVX256_REG_OR_OI_MODE.
16957 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
16959         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
16960         current procedure should be profiled.
16962 2014-01-15  Andrew Pinski  <apinski@cavium.com>
16964         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
16965         of moving from/to the STACK_REG register class.
16967 2014-01-15  Richard Henderson  <rth@redhat.com>
16969         PR debug/54694
16970         * reginfo.c (global_regs_decl): Globalize.
16971         * rtl.h (global_regs_decl): Declare.
16972         * ira.c (do_reload): Diagnose frame_pointer_needed and it
16973         reserved via global_regs.
16975 2014-01-15  Teresa Johnson  <tejohnson@google.com>
16977         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
16979 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
16981         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
16982         and vmulosh rather than call gen_vec_widen_smult_*.
16983         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
16984         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
16985         (vec_widen_smult_even_v16qi): Likewise.
16986         (vec_widen_umult_even_v8hi): Likewise.
16987         (vec_widen_smult_even_v8hi): Likewise.
16988         (vec_widen_umult_odd_v16qi): Likewise.
16989         (vec_widen_smult_odd_v16qi): Likewise.
16990         (vec_widen_umult_odd_v8hi): Likewise.
16991         (vec_widen_smult_odd_v8hi): Likewise.
16992         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
16993         vmuloub rather than call gen_vec_widen_umult_*.
16994         (vec_widen_umult_lo_v16qi): Likewise.
16995         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
16996         vmulosb rather than call gen_vec_widen_smult_*.
16997         (vec_widen_smult_lo_v16qi): Likewise.
16998         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
16999         rather than call gen_vec_widen_umult_*.
17000         (vec_widen_umult_lo_v8hi): Likewise.
17001         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
17002         rather than call gen_vec_widen_smult_*.
17003         (vec_widen_smult_lo_v8hi): Likewise.
17005 2014-01-15  Jeff Law  <law@redhat.com>
17007         PR tree-optimization/59747
17008         * ree.c (find_and_remove_re): Properly handle case where a second
17009         eliminated extension requires widening a copy created for elimination
17010         of a prior extension.
17011         (combine_set_extension): Ensure that the number of hard regs needed
17012         for a destination register does not change when we widen it.
17014 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17016         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
17017         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
17018         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
17019         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
17020         (avr-*-rtems*): Likewise.
17021         (bfin*-rtems*): Likewise.
17022         (moxie-*-rtems*): Likewise.
17023         (h8300-*-rtems*): Likewise.
17024         (i[34567]86-*-rtems*): Likewise.
17025         (lm32-*-rtems*): Likewise.
17026         (m32r-*-rtems*): Likewise.
17027         (m68k-*-rtems*): Likewise.
17028         (microblaze*-*-rtems*): Likewise.
17029         (mips*-*-rtems*): Likewise.
17030         (powerpc-*-rtems*): Likewise.
17031         (sh-*-rtems*): Likewise.
17032         (sparc-*-rtems*): Likewise.
17033         (sparc64-*-rtems*): Likewise.
17034         (v850-*-rtems*): Likewise.
17035         (m32c-*-rtems*): Likewise.
17037 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
17039         PR rtl-optimization/59511
17040         * ira.c (ira_init_register_move_cost): Use memory costs for some
17041         cases of register move cost calculations.
17042         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
17043         instead of BB frequency.
17044         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
17045         * lra-assigns.c (find_hard_regno_for): Ditto.
17047 2014-01-15  Richard Biener  <rguenther@suse.de>
17049         PR tree-optimization/59822
17050         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
17051         (vectorizable_load): Use it to hoist defs of uses of invariant
17052         loads out of the loop.
17054 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
17055             Kugan Vivekanandarajah  <kuganv@linaro.org>
17057         PR target/59695
17058         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
17059         truncation.
17061 2014-01-15  Richard Biener  <rguenther@suse.de>
17063         PR rtl-optimization/59802
17064         * lcm.c (compute_available): Use inverted postorder to seed
17065         the initial worklist.
17067 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17069         PR target/59803
17070         * config/s390/s390.c (s390_preferred_reload_class): Don't return
17071         ADDR_REGS for invalid symrefs in non-PIC code.
17073 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
17075         PR other/58712
17076         * builtins.c (determine_block_size): Initialize *probable_max_size
17077         even if len_rtx is CONST_INT.
17079 2014-01-14  Andrew Pinski  <apinski@cavium.com>
17081         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
17082         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
17083         (cortexa53_tunings): Likewise.
17084         (aarch64_sched_issue_rate): New function.
17085         (TARGET_SCHED_ISSUE_RATE): Define.
17087 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
17089         * ira-costs.c (find_costs_and_classes): Add missed
17090         ira_init_register_move_cost_if_necessary.
17092 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
17094         PR target/59787
17095         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
17097 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
17099         PR target/59794
17100         * config/i386/i386.c (type_natural_mode): Add a bool parameter
17101         to indicate if type is used for function return value.  Warn ABI
17102         change if the vector mode isn't available for function return value.
17103         (ix86_function_arg_advance): Pass false to type_natural_mode.
17104         (ix86_function_arg): Likewise.
17105         (ix86_gimplify_va_arg): Likewise.
17106         (function_arg_32): Don't warn ABI change.
17107         (ix86_function_value): Pass true to type_natural_mode.
17108         (ix86_return_in_memory): Likewise.
17109         (ix86_struct_value_rtx): Removed.
17110         (TARGET_STRUCT_VALUE_RTX): Likewise.
17112 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
17114         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
17115         converting a conditional jump into a conditional return.
17117 2014-01-14  Richard Biener  <rguenther@suse.de>
17119         PR tree-optimization/58921
17120         PR tree-optimization/59006
17121         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
17122         hoisting invariant stmts.
17123         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
17124         invariant loads on the preheader edge if possible.
17126 2014-01-14  Joey Ye  <joey.ye@arm.com>
17128         * doc/plugin.texi (Building GCC plugins): Update to C++.
17130 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
17132         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
17133         (_mm_rcp28_round_ss): Ditto.
17134         (_mm_rsqrt28_round_sd): Ditto.
17135         (_mm_rsqrt28_round_ss): Ditto.
17136         (_mm_rcp28_sd): Ditto.
17137         (_mm_rcp28_ss): Ditto.
17138         (_mm_rsqrt28_sd): Ditto.
17139         (_mm_rsqrt28_ss): Ditto.
17140         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
17141         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
17142         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
17143         (IX86_BUILTIN_RCP28SD): Ditto.
17144         (IX86_BUILTIN_RCP28SS): Ditto.
17145         (IX86_BUILTIN_RSQRT28SD): Ditto.
17146         (IX86_BUILTIN_RSQRT28SS): Ditto.
17147         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
17148         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
17149         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
17150         (ix86_expand_special_args_builtin): Expand new FTYPE.
17151         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
17152         (srcp14<mode>): Make insn unary.
17153         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
17154         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
17155         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
17156         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
17157         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
17158         Fix rounding: make it SAE only.
17159         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
17160         Ditto.
17161         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
17162         Ditto.
17163         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
17164         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
17165         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
17166         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
17167         (round_saeonly_mask_scalar_operand4): Ditto.
17168         (round_saeonly_mask_scalar_op3): Ditto.
17169         (round_saeonly_mask_scalar_op4): Ditto.
17171 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17173         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17174         Implement -maltivec=be for vec_insert and vec_extract.
17176 2014-01-10  DJ Delorie  <dj@redhat.com>
17178         * config/msp430/msp430.md (call_internal): Don't allow memory
17179         references with SP as the base register.
17180         (call_value_internal): Likewise.
17181         * config/msp430/constraints.md (Yc): New.  For memory references
17182         that don't use SP as a base register.
17184         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
17185         "an integer without a # prefix"
17186         * config/msp430/msp430.md (epilogue_helper): Use it.
17188 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
17190         PR target/59617
17191         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
17192         AVX512F gather builtins.
17193         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
17194         on gather decls with INTEGER_TYPE masktype.
17195         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
17196         directly into the builtin rather than hoisting it before loop.
17198         PR tree-optimization/59387
17199         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
17200         (scev_const_prop): If folded_casts and type has undefined overflow,
17201         use force_gimple_operand instead of force_gimple_operand_gsi and
17202         for each added stmt if it is assign with
17203         arith_code_with_undefined_signed_overflow, call
17204         rewrite_to_defined_overflow.
17205         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
17206         gimple-fold.h instead.
17207         (arith_code_with_undefined_signed_overflow,
17208         rewrite_to_defined_overflow): Moved to ...
17209         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
17210         rewrite_to_defined_overflow): ... here.  No longer static.
17211         Include gimplify-me.h.
17212         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
17213         rewrite_to_defined_overflow): New prototypes.
17215 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17217         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
17219 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
17221         * builtins.c (get_object_alignment_2): Minor tweak.
17222         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
17224 2014-01-13  Christian Bruel  <christian.bruel@st.com>
17226         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
17227         optimized non constant lengths.
17229 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
17231         PR libgomp/59194
17232         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
17233         load as __atomic_load_N if possible.
17235 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
17237         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
17238         target parameter.
17239         (rs6000_expand_builtin): Adjust call.
17241 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
17243         PR target/58115
17244         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
17245         * config/rs6000/rs6000.c: Include target-globals.h.
17246         (rs6000_set_current_function): Instead of doing target_reinit
17247         unconditionally, use save_target_globals_default_opts and
17248         restore_target_globals.
17250         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
17251         FPSCR.
17252         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
17253         (rs6000_expand_builtin): Handle mffs and mtfsf.
17254         (rs6000_init_builtins): Define mffs and mtfsf.
17255         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
17256         (rs6000_mffs): New pattern.
17257         (rs6000_mtfsf): New pattern.
17259 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
17261         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
17262         Start narrowing with START.  Apply candidate-use pair
17263         and check overall cost in narrowing.
17264         (iv_ca_prune): Pass new argument.
17266 2014-01-10  Jeff Law  <law@redhat.com>
17268         PR middle-end/59743
17269         * ree.c (combine_reaching_defs): Ensure the defining statement
17270         occurs before the extension when optimizing extensions with
17271         different source and destination hard registers.
17273 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
17275         PR ipa/58585
17276         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
17277         vtables into the type inheritance graph.
17279 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
17281         PR rtl-optimization/59754
17282         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
17283         modes in the REGNO != REGNO case.
17285 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17287         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
17289 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
17291         PR tree-optimization/59745
17292         * tree-predcom.c (tree_predictive_commoning_loop): Call
17293         free_affine_expand_cache if giving up because components is NULL.
17295         * target-globals.c (save_target_globals): Allocate < 4KB structs using
17296         GC in payload of target_globals struct instead of allocating them on
17297         the heap and the larger structs separately using GC.
17298         * target-globals.h (struct target_globals): Make regs, hard_regs,
17299         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
17300         of GTY((skip)) and change type to void *.
17301         (reset_target_globals): Cast loads from those fields to corresponding
17302         types.
17304 2014-01-10  Steve Ellcey  <sellcey@mips.com>
17306         PR plugins/59335
17307         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
17308         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
17309         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
17311 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
17313         PR target/59744
17314         * aarch64-modes.def (CC_Zmode): New flags mode.
17315         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
17316         represents an equality.
17317         (aarch64_get_condition_code): Handle CC_Zmode.
17318         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
17320 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17322         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
17323         extraction in good case.
17325 2014-01-10  Richard Biener  <rguenther@suse.de>
17327         PR tree-optimization/59374
17328         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
17329         checking after SLP discovery.  Mark stmts not participating
17330         in any SLP instance properly.
17332 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17334         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
17335         when handling a SET rtx.
17337 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17339         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
17340         (cortex-a57): Likewise.
17341         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
17343 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17345         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
17346         non-iwmmxt builtins.
17348 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
17350         PR ipa/58252
17351         PR ipa/59226
17352         * ipa-devirt.c record_target_from_binfo): Take as argument
17353         stack of binfos and lookup matching one for virtual inheritance.
17354         (possible_polymorphic_call_targets_1): Update.
17356 2014-01-10  Huacai Chen  <chenhc@lemote.com>
17358         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
17359         kernel strings for Loongson-2E/2F/3A.
17361 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
17363         PR middle-end/59670
17364         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
17365         is_gimple_call before calling gimple_call_internal_p.
17367 2014-01-09  Steve Ellcey  <sellcey@mips.com>
17369         * Makefile.in (TREE_FLOW_H): Remove.
17370         (TREE_SSA_H): Add file names from tree-flow.h.
17371         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
17372         * tree.h: Remove tree-flow.h reference.
17373         * hash-table.h: Remove tree-flow.h reference.
17374         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
17375         reference with tree-ssa-loop.h.
17377 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17379         * doc/invoke.texi: Add -maltivec={be,le} options, and document
17380         default element-order behavior for -maltivec.
17381         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
17382         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
17383         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
17384         when targeting big endian, at least for now.
17385         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
17387 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
17389         PR middle-end/47735
17390         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
17391         var satisfies use_register_for_decl, just take into account type
17392         alignment, rather than decl alignment.
17394         PR tree-optimization/59622
17395         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
17396         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
17397         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
17398         Don't devirtualize for inplace at all.  For targets.length () == 1,
17399         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
17401 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
17403         * config/i386/i386.md (cpu): Remove the unused btver1.
17405 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
17407         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
17409 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
17411         PR target/58115
17412         * tree-core.h (struct target_globals): New forward declaration.
17413         (struct tree_target_option): Add globals field.
17414         * tree.h (TREE_TARGET_GLOBALS): Define.
17415         (prepare_target_option_nodes_for_pch): New prototype.
17416         * target-globals.h (struct target_globals): Define even if
17417         !SWITCHABLE_TARGET.
17418         * tree.c (prepare_target_option_node_for_pch,
17419         prepare_target_option_nodes_for_pch): New functions.
17420         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
17421         * config/i386/i386.c: Include target-globals.h.
17422         (ix86_set_current_function): Instead of doing target_reinit
17423         unconditionally, use save_target_globals_default_opts and
17424         restore_target_globals.
17426 2014-01-09  Richard Biener  <rguenther@suse.de>
17428         PR tree-optimization/59715
17429         * tree-cfg.h (split_critical_edges): Declare.
17430         * tree-cfg.c (split_critical_edges): Export.
17431         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
17433 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
17435         * cfgexpand.c (expand_stack_vars): Optionally disable
17436         asan stack protection.
17437         (expand_used_vars): Likewise.
17438         (partition_stack_vars): Likewise.
17439         * asan.c (asan_emit_stack_protection): Optionally disable
17440         after return stack usage.
17441         (instrument_derefs): Optionally disable memory access instrumentation.
17442         (instrument_builtin_call): Likewise.
17443         (instrument_strlen_call): Likewise.
17444         (asan_protect_global): Optionally disable global variables protection.
17445         * doc/invoke.texi: Added doc for new options.
17446         * params.def: Added new options.
17447         * params.h: Likewise.
17449 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
17451         PR rtl-optimization/59724
17452         * ifcvt.c (cond_exec_process_if_block): Don't call
17453         flow_find_head_matching_sequence with 0 longest_match.
17454         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
17455         non-active insns if !stop_after.
17456         (try_head_merge_bb): Revert 2014-01-07 changes.
17458 2014-01-08  Jeff Law  <law@redhat.com>
17460         * ree.c (get_sub_rtx): New function, extracted from...
17461         (merge_def_and_ext): Here.
17462         (combine_reaching_defs): Use get_sub_rtx.
17464 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
17466         * cgraph.h (varpool_variable_node): Do not choke on null node.
17468 2014-01-08  Catherine Moore  <clm@codesourcery.com>
17470         * config/mips/mips.md (simple_return): Attempt to use JRC
17471         for microMIPS.
17472         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
17474 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
17476         PR rtl-optimization/59137
17477         * reorg.c (steal_delay_list_from_target): Call update_block for
17478         elided insns.
17479         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
17481 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17483         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17484         two duplicate entries.
17486 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
17488         Revert:
17489         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
17491         * config/mips/mips.c (mips_truncated_op_cost): New function.
17492         (mips_rtx_costs): Adjust test for BADDU.
17493         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
17495         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
17497         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
17498         (*baddu_si): ...this new pattern.
17500 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
17502         PR ipa/59722
17503         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
17505 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17507         PR middle-end/57748
17508         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
17509         inner_reference_p.
17510         (expand_expr, expand_normal): Adjust.
17511         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
17512         inner_reference_p. Use inner_reference_p to expand inner references.
17513         (store_expr): Adjust.
17514         * cfgexpand.c (expand_call_stmt): Adjust.
17516 2014-01-08  Rong Xu  <xur@google.com>
17518         * gcov-io.c (gcov_var): Move from gcov-io.h.
17519         (gcov_position): Ditto.
17520         (gcov_is_error): Ditto.
17521         (gcov_rewrite): Ditto.
17522         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
17523         only part to libgcc/libgcov.h.
17525 2014-01-08  Marek Polacek  <polacek@redhat.com>
17527         PR middle-end/59669
17528         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
17530 2014-01-08  Marek Polacek  <polacek@redhat.com>
17532         PR sanitizer/59667
17533         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
17535 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
17537         PR rtl-optimization/59649
17538         * stor-layout.c (get_mode_bounds): For BImode return
17539         0 and STORE_FLAG_VALUE.
17541 2014-01-08  Richard Biener  <rguenther@suse.de>
17543         PR middle-end/59630
17544         * gimple.h (is_gimple_builtin_call): Remove.
17545         (gimple_builtin_call_types_compatible_p): New.
17546         (gimple_call_builtin_p): New overload.
17547         * gimple.c (is_gimple_builtin_call): Remove.
17548         (validate_call): Rename to ...
17549         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
17550         check return types.
17551         (validate_type): New static function.
17552         (gimple_call_builtin_p): New overload and adjust.
17553         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
17554         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
17555         (gimple_fold_stmt_to_constant_1): Likewise.
17556         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
17558 2014-01-08  Richard Biener  <rguenther@suse.de>
17560         PR middle-end/59471
17561         * gimplify.c (gimplify_expr): Gimplify register-register type
17562         VIEW_CONVERT_EXPRs to separate stmts.
17564 2014-01-07  Jeff Law  <law@redhat.com>
17566         PR middle-end/53623
17567         * ree.c (combine_set_extension): Handle case where source
17568         and destination registers in an extension insn are different.
17569         (combine_reaching_defs): Allow source and destination registers
17570         in extension to be different under limited circumstances.
17571         (add_removable_extension): Remove restriction that the
17572         source and destination registers in the extension are the same.
17573         (find_and_remove_re): Emit a copy from the extension's
17574         destination to its source after the defining insn if
17575         the source and destination registers are different.
17577         PR middle-end/59285
17578         * ifcvt.c (merge_if_block): If we are merging a block with more than
17579         one successor with a block with no successors, remove any BARRIER
17580         after the second block.
17582 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
17584         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
17586 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
17588         PR target/59652
17589         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
17590         for 14-bit register offsets when INT14_OK_STRICT is false.
17592 2014-01-07  Roland Stigge  <stigge@antcom.de>
17593             Michael Meissner  <meissner@linux.vnet.ibm.com>
17595         PR 57386/target
17596         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
17597         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
17599 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
17601         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
17602         -mcpu.
17604 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
17606         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
17607         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
17608         rtx is const0_rtx or not.
17610 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
17612         PR target/58115
17613         * target-globals.c (save_target_globals): Remove this_fn_optab
17614         handling.
17615         * toplev.c: Include optabs.h.
17616         (target_reinit): Temporarily restore the global options if another
17617         set of options are in force.
17619 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
17621         PR rtl-optimization/58668
17622         * cfgcleanup.c (flow_find_cross_jump): Don't count
17623         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
17624         to determine what is counted.
17625         (flow_find_head_matching_sequence): Use active_insn_p to determine
17626         what is counted.
17627         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
17628         counting change.
17629         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
17630         determine what is counted.
17632         PR tree-optimization/59643
17633         * tree-predcom.c (split_data_refs_to_components): If one dr is
17634         read and one write, determine_offset fails and the write isn't
17635         in the bad component, just put the read into the bad component.
17637 2014-01-07  Mike Stump  <mikestump@comcast.net>
17638             Jakub Jelinek  <jakub@redhat.com>
17640         PR pch/59436
17641         * tree-core.h (struct tree_optimization_option): Change optabs
17642         type from unsigned char * to void *.
17643         * optabs.c (init_tree_optimization_optabs): Adjust
17644         TREE_OPTIMIZATION_OPTABS initialization.
17646 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
17648         PR target/59644
17649         * config/i386/i386.h (struct machine_function): Add
17650         no_drap_save_restore field.
17651         * config/i386/i386.c (ix86_save_reg): Use
17652         !cfun->machine->no_drap_save_restore instead of
17653         crtl->stack_realign_needed.
17654         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
17655         this function clears frame_pointer_needed.  Set
17656         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
17657         and DRAP reg is needed.
17659 2014-01-06  Marek Polacek  <polacek@redhat.com>
17661         PR c/57773
17662         * doc/implement-c.texi: Mention that other integer types are
17663         permitted as bit-field types in strictly conforming mode.
17665 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
17667         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
17668         is newly allocated.
17670 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
17672         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
17674 2014-01-06  Martin Jambor  <mjambor@suse.cz>
17676         PR ipa/59008
17677         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
17678         to int.
17679         * ipa-prop.c (ipa_print_node_params): Fix indentation.
17681 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
17683         PR debug/59350
17684         PR debug/59510
17685         * var-tracking.c (add_stores): Preserve the value of the source even if
17686         we don't record the store.
17688 2014-01-06  Terry Guo  <terry.guo@arm.com>
17690         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
17692 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
17694         PR bootstrap/59541
17695         * config/darwin.c (darwin_function_section): Adjust return values to
17696         correspond to optimisation changes made in r206070.
17698 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
17700         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
17701         from prefetch_block tune setting.
17702         (nocona_cost): Correct size of prefetch block to 64.
17704 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17706         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
17707         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
17708         used to save the static chain register in the computation of the offset
17709         from which the FP registers need to be restored.
17711 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
17713         PR tree-optimization/59519
17714         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
17715         ICE if get_current_def (current_new_name) is already non-NULL, as long
17716         as it is a phi result of some other phi in *new_exit_bb that has
17717         the same argument.
17719         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
17720         or vmovdqu* for misaligned_operand.
17721         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
17722         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
17723         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
17724         aligned_mem for AVX512F masked aligned load and store builtins and for
17725         non-temporal moves.
17727 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
17729         PR tree-optimization/59651
17730         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
17731         Address range for negative step should be added by TYPE_SIZE_UNIT.
17733 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
17735         * config/m68k/m68k.c (handle_move_double): Handle pushes with
17736         overlapping registers also for registers other than the stack pointer.
17738 2014-01-03  Marek Polacek  <polacek@redhat.com>
17740         PR other/59661
17741         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
17742         __builtin_FILE.
17744 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
17746         PR target/59625
17747         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
17748         asm goto as jump.
17750         * config/i386/i386.md (MODE_SIZE): New mode attribute.
17751         (push splitter): Use <P:MODE_SIZE> instead of
17752         GET_MODE_SIZE (<P:MODE>mode).
17753         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
17754         (mov -1, reg peephole2): Likewise.
17755         * config/i386/sse.md (*mov<mode>_internal,
17756         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
17757         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
17758         *<code><mode>3, *andnot<mode>3<mask_name>,
17759         <mask_codefor><code><mode>3<mask_name>): Likewise.
17760         * config/i386/subst.md (mask_mode512bit_condition,
17761         sd_mask_mode512bit_condition): Likewise.
17763 2014-01-02  Xinliang David Li  <davidxl@google.com>
17765         PR tree-optimization/59303
17766         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
17767         (dump_predicates): Better output format.
17768         (pred_equal_p): New function.
17769         (is_neq_relop_p): Ditto.
17770         (is_neq_zero_form_p): Ditto.
17771         (pred_expr_equal_p): Ditto.
17772         (pred_neg_p): Ditto.
17773         (simplify_pred): Ditto.
17774         (simplify_preds_2): Ditto.
17775         (simplify_preds_3): Ditto.
17776         (simplify_preds_4): Ditto.
17777         (simplify_preds): Ditto.
17778         (push_pred): Ditto.
17779         (push_to_worklist): Ditto.
17780         (get_pred_info_from_cmp): Ditto.
17781         (is_degenerated_phi): Ditto.
17782         (normalize_one_pred_1): Ditto.
17783         (normalize_one_pred): Ditto.
17784         (normalize_one_pred_chain): Ditto.
17785         (normalize_preds): Ditto.
17786         (normalize_cond_1): Remove function.
17787         (normalize_cond): Ditto.
17788         (is_gcond_subset_of): Ditto.
17789         (is_subset_of_any): Ditto.
17790         (is_or_set_subset_of): Ditto.
17791         (is_and_set_subset_of): Ditto.
17792         (is_norm_cond_subset_of): Ditto.
17793         (pred_chain_length_cmp): Ditto.
17794         (convert_control_dep_chain_into_preds): Type change.
17795         (find_predicates): Ditto.
17796         (find_def_preds): Ditto.
17797         (destroy_predicates_vecs): Ditto.
17798         (find_matching_predicates_in_rest_chains): Ditto.
17799         (use_pred_not_overlap_with_undef_path_pred): Ditto.
17800         (is_pred_expr_subset): Ditto.
17801         (is_pred_chain_subset_of): Ditto.
17802         (is_included_in): Ditto.
17803         (is_superset_of): Ditto.
17805 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
17807         Update copyright years.
17809 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
17811         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
17812         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
17813         config/arc/arc.md, config/arc/arc.opt,
17814         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
17815         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
17816         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
17817         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
17818         config/linux-protos.h, config/linux.c, config/winnt-c.c,
17819         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
17820         vtable-verify.c, vtable-verify.h: Use the standard form for the
17821         copyright notice.
17823 2014-01-02  Tobias Burnus  <burnus@net-b.de>
17825         * gcc.c (process_command): Update copyright notice dates.
17826         * gcov-dump.c: Ditto.
17827         * gcov.c: Ditto.
17828         * doc/cpp.texi: Bump @copying's copyright year.
17829         * doc/cppinternals.texi: Ditto.
17830         * doc/gcc.texi: Ditto.
17831         * doc/gccint.texi: Ditto.
17832         * doc/gcov.texi: Ditto.
17833         * doc/install.texi: Ditto.
17834         * doc/invoke.texi: Ditto.
17836 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17838         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
17840 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
17842         * config/i386/sse.md (*mov<mode>_internal): Guard
17843         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
17845         PR rtl-optimization/59647
17846         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
17847         new_rtx into UNSIGNED_FLOAT rtxes.
17849 Copyright (C) 2014 Free Software Foundation, Inc.
17851 Copying and distribution of this file, with or without modification,
17852 are permitted in any medium without royalty provided the copyright
17853 notice and this notice are preserved.