Update changed bit when constraint set changes
[official-gcc.git] / gcc / ChangeLog
blob320f186477f530864e41764c4780c0594577d92b
1 2013-12-03  Xinliang David Li  <davidxl@google.com>
3         * tree-ssa-structalias.c (constraint_set_union): Change return type
4         from void to bool.
5         (merge_node_constraints): Ditto.
6         (unify_nodes): Update changed set when constraints set changes.
8 2013-12-04  H.J. Lu  <hongjiu.lu@intel.com>
10         * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
11         -fsanitize=address.
12         * configure: Regenerated.
14         * gdbasan.in: New file.
16 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
18         PR rtl-optimization/58726
19         * combine.c (force_to_mode): Fix comment typo.  Don't destructively
20         modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
22 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
23             Uros Bizjak  <ubizjak@gmail.com>
25         PR target/59163
26         * config/i386/i386.c (ix86_legitimate_combined_insn): If for
27         !TARGET_AVX there is misaligned MEM operand with vector mode
28         and get_attr_ssememalign is 0, return false.
29         (ix86_expand_special_args_builtin): Add get_pointer_alignment
30         computed alignment and for non-temporal loads/stores also
31         at least GET_MODE_ALIGNMENT as MEM_ALIGN.
32         * config/i386/sse.md
33         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
34         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35         <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
36         <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
37         sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
38         sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
39         *vec_interleave_highv2df, *vec_interleave_lowv2df,
40         *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
41         sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
42         sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
43         sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
44         sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
45         sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
46         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
47         * config/i386/i386.md (ssememalign): New define_attr.
49 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
51         PR tree-optimization/59355
52         * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
53         * opts.c (common_handle_option): Fix comment spelling.
55 2013-12-04  Yufeng Zhang  <yufeng.zhang@arm.com>
57         * gimple-ssa-strength-reduction.c: Include tree-affine.h.
58         (name_expansions): New static variable.
59         (alt_base_map): Ditto.
60         (get_alternative_base): New function.
61         (find_basis_for_candidate): For CAND_REF, optionally call
62         find_basis_for_base_expr with the returned value from
63         get_alternative_base.
64         (record_potential_basis): Add new parameter 'base' of type 'tree';
65         add an assertion of non-NULL base; use base to set node->base_expr.
66         (alloc_cand_and_find_basis): Update; call record_potential_basis
67         for CAND_REF with the returned value from get_alternative_base.
68         (replace_refs): Dump details on the replacing.
69         (execute_strength_reduction): Call pointer_map_create for
70         alt_base_map; call free_affine_expand_cache with &name_expansions.
72 2013-12-03  Wei Mi  <wmi@google.com>
74         PR rtl-optimization/59020
75         * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
76         (sched_analyze_insn): Call try_group_insn.
77         (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
78         * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
79         (group_insns_for_macro_fusion): Removed.
80         (sched_init): Remove calling group_insns_for_macro_fusion.
82 2013-12-03  Peter Bergner  <bergner@vnet.ibm.com>
84         * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
85         typo in macro name.
86         (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
88 2013-12-03  Vladimir Makarov  <vmakarov@redhat.com>
90         * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
91         LR_REGNUM.
92         (aarch64_can_eliminate): Don't check elimination source when
93         frame_pointer_required is false.
95 2013-12-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
97         * config/avr/avr.c (avr_option_override): Warn if asked to generate
98         position independent code.
99         * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
101 2013-12-03   H.J. Lu  <hongjiu.lu@intel.com>
103         PR target/59363
104         * config/i386/i386.c (emit_memset): Adjust destination address
105         after gen_strset.
106         (expand_setmem_epilogue): Likewise.
108 2013-12-03  Marek Polacek  <polacek@redhat.com>
110         PR middle-end/56344
111         * calls.c (expand_call): Disallow passing huge arguments by value.
113 2013-12-03  Jakub Jelinek  <jakub@redhat.com>
115         PR tree-optimization/59362
116         * tree-object-size.c (object_sizes): Change into array of
117         vec<unsigned HOST_WIDE_INT>.
118         (compute_builtin_object_size): Check computed bitmap for
119         non-NULL instead of object_sizes.  Call safe_grow on object_sizes
120         vector if new SSA_NAMEs appeared.
121         (init_object_sizes): Check computed bitmap for non-NULL.
122         Call safe_grow on object_sizes elements instead of initializing
123         it with XNEWVEC.
124         (fini_object_sizes): Call release on object_sizes elements, don't
125         set it to NULL.
127         PR middle-end/59011
128         * gimplify.c (nonlocal_vla_vars): New variable.
129         (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
130         nonlocal_vla_vars chain.
131         (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
132         if outer_bind has DECL_INITIAL (current_function_decl) block.
134         PR target/58864
135         * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
136         New functions.
137         * expr.h (struct saved_pending_stack_adjust): New type.
138         (save_pending_stack_adjust, restore_pending_stack_adjust): New
139         prototypes.
140         * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
141         and get_last_insn before do_pending_stack_adjust, call
142         restore_pending_stack_adjust after delete_insns_since.
143         * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
144         before calling emit_conditional_move.
145         * expmed.c (expand_sdiv_pow2): Likewise.
146         * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
148 2013-12-02  Jeff Law  <law@redhat.com>
150         PR tree-optimization/59322
151         * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
152         Remove code which copied jump threading paths.
154 2013-12-02  Sriraman Tallam  <tmsriram@google.com>
156         PR target/58944
157         * config/i386/i386.opt (ix86_arch_string): Mark this variable
158         for saving in cl_target_option.
159         (ix86_tune_string): Ditto.
160         (ix86_cmodel): Ditto.
161         (ix86_abi): Ditto.
162         (ix86_asm_dialect): Ditto.
163         (ix86_branch_cost): Ditto.
164         (ix86_dump_tunes): Ditto.
165         (ix86_force_align_arg_pointer): Ditto.
166         (ix86_force_drap): Ditto.
167         (ix86_incoming_stack_boundary_arg): Ditto.
168         (ix86_pmode): Ditto.
169         (ix86_preferred_stack_boundary_arg): Ditto.
170         (ix86_recip_name): Ditto.
171         (ix86_regparm): Ditto.
172         (ix86_section_threshold): Ditto.
173         (ix86_sse2avx): Ditto.
174         (ix86_stack_protector_guard): Ditto.
175         (ix86_stringop_alg): Ditto.
176         (ix86_tls_dialect): Ditto.
177         (ix86_tune_ctrl_string): Ditto.
178         (ix86_tune_memcpy_strategy): Ditto.
179         (ix86_tune_memset_strategy): Ditto.
180         (ix86_tune_no_default): Ditto.
181         (ix86_veclibabi_type): Ditto.
182         * config/i386/i386.c (function_specific_save): Save the above
183         variables in gcc_options to cl_target_option.
184         (function_specific_restore): Do the reverse done in
185         function_specific_save.
186         (ix86_valid_target_attribute_tree): Change ix86_arch_string
187         and ix86_tune_string to use the opts structure.
188         (ix86_option_override_internal):Change
189         ix86_incoming_stack_boundary_arg to
190         opts->x_ix86_incoming_stack_boundary_arg
192 2013-12-02  Joern Rennecke  <joern.rennecke@embecosm.com>
194         * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
195         in #ifndef IN_LIBGCC2 / #endif.
197 2013-12-02  Jakub Jelinek  <jakub@redhat.com>
199         PR tree-optimization/59358
200         * tree-vrp.c (union_ranges): To check for the partially overlapping
201         ranges or adjacent ranges, also compare *vr0max with vr1max.
203 2013-12-02  Sterling Augustine  <saugustine@google.com>
205         * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
206         when there isn't a skeleton die.
208 2013-12-02  Marek Polacek  <polacek@redhat.com>
210         PR sanitizer/59353
211         * doc/invoke.texi: Document -fsanitize=return.
213 2013-12-02  Tobias Burnus  <burnus@net-b.de>
214             Manuel López-Ibáñez  <manu@gcc.gnu.org>
216         PR middle-end/59257
217         * doc/invoke.texi: Add missing @opindex.
218         (-fsanitize=): Use @gcctabopt instead of @itemize.
220 2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
222         Fix C++0x memory model for unaligned fields in packed, aligned(4)
223         structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
224         targets like arm-none-eabi.
225         * expr.c (expand_assignment): Handle normal fields like bit regions.
227 2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
229         PR target/58115
230         * function.c (invoke_set_current_function_hook): Call
231         targetm.set_current_function after setting this_fn_optabs.
233 2013-12-02  Richard Biener  <rguenther@suse.de>
235         PR tree-optimization/59139
236         * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
237         code in get_val_for.
238         (get_val_for): Use gcc_checking_asserts.
240 2013-12-02  Richard Biener  <rguenther@suse.de>
242         PR middle-end/59199
243         * tree-ssa-operands.c (opf_implicit): Remove.
244         (opf_address_taken): New flag.
245         (get_expr_operands): Remove early out, pass down opf_address_taken for
246         ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
247         (get_indirect_ref_operands): Rename to ...
248         (get_mem_ref_operands): ... this.
249         (get_asm_expr_operands): Rename to ...
250         (get_asm_stmt_operands): ... this.
252 2013-12-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
254         * ipa-inline.c (check_callers): Add missed pointer de-reference.
256 2013-12-02  Eric Botcazou  <ebotcazou@adacore.com>
258         PR tree-optimization/59356
259         * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
260         offset computation using the precision of the index type.
262 2013-12-02  Yvan Roux  <yvan.roux@linaro.org>
264         PR target/58785
265         * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
266         when rclass is GENERAL_REGS.
268 2013-12-02 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
270         * loop-unroll.c (decide_unroll_constant_iterations): Check macro
271         TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
273 2013-12-01  Eric Botcazou  <ebotcazou@adacore.com>
275         * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
276         identifier node.
278 2013-12-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
280         * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
282 2013-11-30  Paulo Matos  <pmatos@broadcom.com>
283             Eric Botcazou  <ebotcazou@adacore.com>
285         * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
286         as applied to nonzero_sign_valid when last_set_mode has less precision
287         than mode.
289 2013-11-30  Tobias Burnus  <burnus@net-b.de>
291         PR sanitizer/59275
292         * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
293         environment variable and link to a list with flags.
294         (-fsanitize=thread): Ditto and update link.
296 2013-11-29  Vladimir Makarov  <vmakarov@redhat.com>
298         PR rtl-optimization/59340
299         * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
301         Revert
302         2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
304         * lra.c (lra): Set lra_in_progress before check_rtl call.
305         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
306         adding clobber regs when LRA is running.
308 2013-11-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
310         PR target/59289
311         * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
313 2013-11-29  Richard Biener  <rguenther@suse.de>
315         PR middle-end/59208
316         * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
317         free_stmt_operands, update_stmt_operands): Add struct function
318         argument.
319         * tree-ssa-operands.c: Remove uses of cfun, propagate struct
320         function argument from fini_ssa_operands, verify_ssa_operands,
321         free_stmt_operands and update_stmt_operands everywhere.
322         * tree-ssanames.h (release_ssa_name_fn): New.
323         (release_ssa_name): Inline wrapper around release_ssa_name_fn.
324         * tree-ssanames.c (release_ssa_name): Rename to ...
325         (release_ssa_name_fn): ... this and add struct function argument.
326         * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
327         (update_stmt_fn): New function.
328         * tree-cfg.c (move_block_to_fn): Adjust.
329         * tree-if-conv.c (free_bb_predicate): Likewise.
330         * tree-ssa.c (verify_ssa): Likewise.
331         (delete_tree_ssa): Likewise.
332         * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
333         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
334         update_stmt_fn instead of update_stmt.
336 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
338         * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
339         for LRA.
341 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
343         * config/arm/arm.md (store_minmaxsi): Use only when
344         optimize_function_for_size_p.
346 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
347             Yury Gribov  <y.gribov@samsung.com>
349         PR sanitizer/59063
350         * config/gnu-user.h: Removed old code for setting up sanitizer libs.
351         * gcc.c: Using libsanitizer spec instead of explicit libs.
353 2013-11-29  Ilya Enkovich  <ilya.enkovich@intel.com>
355         Reverted:
356         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
357         * cgraph.h (varpool_node): Add need_bounds_init field.
358         * lto-cgraph.c (lto_output_varpool_node): Output
359         need_bounds_init value.
360         (input_varpool_node): Read need_bounds_init value.
361         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
363         Reverted:
364         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
365         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
366         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
367         (gen_type_die_with_usage): Skip pointer bounds.
368         (dwarf2out_global_decl): Likewise.
370         Reverted:
371         2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
372         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
373         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
374         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
375         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
376         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
377         (gimple_call_with_bounds_p): New.
378         (gimple_call_set_with_bounds): New.
379         (gimple_call_num_nobnd_args): Remove.
380         (gimple_call_nobnd_arg): Remove.
381         * tree.h (CALL_WITH_BOUNDS_P): New.
382         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
384         Reverted:
385         2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
386         * common.opt (fcheck-pointer-bounds): Move to ...
387         * c-family/c.opt: ... here.
388         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
389         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
390         * langhooks.h (lang_hooks): Remove chkp_supported field.
391         * toplev.c (process_options): Remove chkp_supported check.
393         Reverted:
394         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
395         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
396         * tree.h (POINTER_BOUNDS_P): New.
397         (BOUNDED_TYPE_P): New.
398         (BOUNDED_P): New.
399         (pointer_bounds_type_node): New.
400         * tree.c (build_common_tree_nodes): Initialize
401         pointer_bounds_type_node.
402         * gimple.h (gimple_call_get_nobnd_arg_index): New.
403         (gimple_call_num_nobnd_args): New.
404         (gimple_call_nobnd_arg): New.
405         (gimple_return_retbnd): New.
406         (gimple_return_set_retbnd): New
407         * gimple.c (gimple_build_return): Increase number of ops
408         for return statement.
409         (gimple_call_get_nobnd_arg_index): New.
410         * gimple-pretty-print.c (dump_gimple_return): Print second op.
412         Reverted:
413         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
414         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
415         with "chkp ctor" and "bnd_legacy" attributes.
416         * gimplify.c (gimplify_init_constructor): Avoid infinite
417         loop during gimplification of bounds initializer.
419         Reverted:
420         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
421         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
422         (handle_bnd_legacy): New.
423         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
424         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
425         attributes.
427         Reverted:
428         2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
429         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
430         (BT_FN_PTR_CONST_PTR): New.
431         (BT_FN_CONST_PTR_CONST_PTR): New.
432         (BT_FN_PTR_CONST_PTR_SIZE): New.
433         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
434         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
435         (BT_FN_VOID_CONST_PTR_SIZE): New.
436         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
437         * chkp-builtins.def: New.
438         * builtins.def: include chkp-builtins.def.
439         (DEF_CHKP_BUILTIN): New.
440         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
441         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
442         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
443         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
444         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
445         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
446         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
447         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
448         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
449         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
450         * common.opt (fcheck-pointer-bounds): New.
451         * toplev.c (process_options): Check Pointer Bounds Checker is
452         supported.
453         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
455         Reverted:
456         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
457         * target.def (builtin_chkp_function): New.
458         (chkp_bound_type): New.
459         (chkp_bound_mode): New.
460         (fn_abi_va_list_bounds_size): New.
461         (load_bounds_for_arg): New.
462         (store_bounds_for_arg): New.
463         * targhooks.h (default_load_bounds_for_arg): New.
464         (default_store_bounds_for_arg): New.
465         (default_fn_abi_va_list_bounds_size): New.
466         (default_chkp_bound_type): New.
467         (default_chkp_bound_mode): New.
468         (default_builtin_chkp_function): New.
469         * targhooks.c (default_load_bounds_for_arg): New.
470         (default_store_bounds_for_arg): New.
471         (default_fn_abi_va_list_bounds_size): New.
472         (default_chkp_bound_type): New.
473         (default_chkp_bound_mode); New.
474         (default_builtin_chkp_function): New.
475         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
476         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
477         (TARGET_STORE_BOUNDS_FOR_ARG): New.
478         (TARGET_BUILTIN_CHKP_FUNCTION): New.
479         (TARGET_CHKP_BOUND_TYPE): New.
480         (TARGET_CHKP_BOUND_MODE): New.
481         * doc/tm.texi: Regenerated.
482         * langhooks.h (lang_hooks): Add chkp_supported field.
483         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
484         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
486         Reverted:
487         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
488         * config/i386/constraints.md (B): New.
489         (Ti): New.
490         (Tb): New.
491         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
492         * config/i386/i386-modes.def (BND32): New.
493         (BND64): New.
494         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
495         * config/i386/i386.c (isa_opts): Add mmpx.
496         (regclass_map): Add bound registers.
497         (dbx_register_map): Likewise.
498         (dbx64_register_map): Likewise.
499         (svr4_dbx_register_map): Likewise.
500         (PTA_MPX): New.
501         (ix86_option_override_internal): Support MPX ISA.
502         (ix86_conditional_register_usage): Support bound registers.
503         (print_reg): Likewise.
504         (ix86_code_end): Add MPX bnd prefix.
505         (output_set_got): Likewise.
506         (ix86_output_call_insn): Likewise.
507         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
508         (ix86_print_operand_punct_valid_p): Likewise.
509         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
510         UNSPEC_BNDMK_ADDR.
511         (ix86_class_likely_spilled_p): Add bound regs support.
512         (ix86_hard_regno_mode_ok): Likewise.
513         (x86_order_regs_for_local_alloc): Likewise.
514         (ix86_bnd_prefixed_insn_p): New.
515         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
516         (FIXED_REGISTERS): Add bound registers.
517         (CALL_USED_REGISTERS): Likewise.
518         (REG_ALLOC_ORDER): Likewise.
519         (HARD_REGNO_NREGS): Likewise.
520         (TARGET_MPX): New.
521         (VALID_BND_REG_MODE): New.
522         (FIRST_BND_REG): New.
523         (LAST_BND_REG): New.
524         (reg_class): Add BND_REGS.
525         (REG_CLASS_NAMES): Likewise.
526         (REG_CLASS_CONTENTS): Likewise.
527         (BND_REGNO_P): New.
528         (ANY_BND_REG_P): New.
529         (BNDmode): New.
530         (HI_REGISTER_NAMES): Add bound registers.
531         * config/i386/i386.md (UNSPEC_BNDMK): New.
532         (UNSPEC_BNDMK_ADDR): New.
533         (UNSPEC_BNDSTX): New.
534         (UNSPEC_BNDLDX): New.
535         (UNSPEC_BNDLDX_ADDR): New.
536         (UNSPEC_BNDCL): New.
537         (UNSPEC_BNDCU): New.
538         (UNSPEC_BNDCN): New.
539         (UNSPEC_MPX_FENCE): New.
540         (BND0_REG): New.
541         (BND1_REG): New.
542         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
543         (length_immediate): Likewise.
544         (prefix_0f): Likewise.
545         (memory): Likewise.
546         (prefix_rep): Check for bnd prefix.
547         (length_nobnd): New.
548         (length): Use length_nobnd if specified.
549         (BND): New.
550         (bnd_ptr): New.
551         (BNDCHECK): New.
552         (bndcheck): New.
553         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
554         (*jcc_2): Likewise.
555         (jump): Likewise.
556         (simple_return_internal): Likewise.
557         (simple_return_pop_internal): Likewise.
558         (*indirect_jump): Add MPX bnd prefix.
559         (*tablejump_1): Likewise.
560         (simple_return_internal_long): Likewise.
561         (simple_return_indirect_internal): Likewise.
562         (<mode>_mk): New.
563         (*<mode>_mk): New.
564         (mov<mode>): New.
565         (*mov<mode>_internal_mpx): New.
566         (<mode>_<bndcheck>): New.
567         (*<mode>_<bndcheck>): New.
568         (<mode>_ldx): New.
569         (*<mode>_ldx): New.
570         (<mode>_stx): New.
571         (*<mode>_stx): New.
572         * config/i386/predicates.md (lea_address_operand): Rename to...
573         (address_no_seg_operand): ... this.
574         (address_mpx_no_base_operand): New.
575         (address_mpx_no_index_operand): New.
576         (bnd_mem_operator): New.
577         * config/i386/i386.opt (mmpx): New.
578         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
579         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
581         Reverted:
582         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
583         * mode-classes.def (MODE_POINTER_BOUNDS): New.
584         * tree.def (POINTER_BOUNDS_TYPE): New.
585         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
586         (POINTER_BOUNDS_MODE): New.
587         (make_pointer_bounds_mode): New.
588         * machmode.h (POINTER_BOUNDS_MODE_P): New.
589         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
590         (layout_type): Support POINTER_BOUNDS_TYPE.
591         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
592         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
593         (type_contains_placeholder_1): Likewise.
594         * tree.h (POINTER_BOUNDS_TYPE_P): New.
595         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
596         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
598 2013-11-29  Richard Biener  <rguenther@suse.de>
600         PR middle-end/59338
601         * tree-cfg.c (verify_expr): Restrict bounds verification of
602         BIT_FIELD_REF arguments to non-aggregate typed base objects.
604 2013-11-29  Richard Biener  <rguenther@suse.de>
606         PR tree-optimization/59334
607         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
608         in previous commit.
610 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
611             Richard Biener  <rguenther@suse.de>
613         PR lto/59326
614         * omp-low.c (simd_clone_create): Return NULL if for definition
615         !cgraph_function_with_gimple_body_p (old_node).  Call cgraph_get_body
616         before calling cgraph_function_versioning.
617         (expand_simd_clones): Look for "omp declare simd" attribute first.
618         Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
619         Punt if node->global.inlined_to.
620         (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
621         Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
622         * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
624 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
626         PR lto/59326
627         * tree-core.h (enum omp_clause_schedule_kind): Add
628         OMP_CLAUSE_SCHEDULE_LAST.
629         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
630         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
631         (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
632         (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
633         * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
634         (DFS_write_tree_body): Handle OMP_CLAUSE.
635         * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
636         (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
637         (write_ts_omp_clause_tree_pointers): New function.
638         (streamer_write_tree_body): Call it for OMP_CLAUSE.
639         (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
640         * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
641         (unpack_value_fields): Call it for OMP_CLAUSE.
642         (streamer_alloc_tree): Handle OMP_CLAUSE.
643         (lto_input_ts_omp_clause_tree_pointers): New function.
644         (streamer_read_tree_body): Call it for OMP_CLAUSE.
646 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
648         * doc/implement-c.texi: Document C11 implementation-defined
649         behavior.  Refer to -ffp-contract=fast for contraction behavior.
650         * doc/invoke.texi (-std=c99, std=c11): Update description of
651         completeness.
652         (-std=gnu99): Don't mention as future default.
653         (-std=gnu11): Mention as intended future default.
654         * doc/standards.texi: Update descriptions of C99 and C11 support.
655         Limit statement about C99 facilities for freestanding
656         implementations to some platforms only.
658 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
660         PR middle-end/59327
661         * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
663 2013-11-28  Vladimir Makarov  <vmakarov@redhat.com>
665         PR target/57293
666         * ira.h (ira_setup_eliminable_regset): Remove parameter.
667         * ira.c (ira_setup_eliminable_regset): Ditto.  Add
668         SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
669         Don't call lra_init_elimination.
670         (ira): Call ira_setup_eliminable_regset without arguments.
671         * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
672         from ira_setup_eliminable_regset call.
673         * gcse.c (calculate_bb_reg_pressure): Ditto.
674         * haifa-sched.c (sched_init): Ditto.
675         * lra.h (lra_init_elimination): Remove the prototype.
676         * lra-int.h (lra_insn_recog_data): New member sp_offset.  Move
677         used_insn_alternative upper.
678         (lra_eliminate_regs_1): Add one more parameter.
679         (lra-eliminate): Ditto.
680         * lra.c (lra_invalidate_insn_data): Set sp_offset.
681         (setup_sp_offset): New.
682         (lra_process_new_insns): Call setup_sp_offset.
683         (lra): Add argument to lra_eliminate calls.
684         * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
685         (get_equiv_with_elimination): New.
686         (process_addr_reg): Call get_equiv_with_elimination instead of
687         get_equiv_substitution.
688         (equiv_address_substitution): Ditto.
689         (loc_equivalence_change_p): Ditto.
690         (loc_equivalence_callback, lra_constraints): Ditto.
691         (curr_insn_transform): Ditto.  Print the sp offset
692         (process_alt_operands): Prevent stack pointer reloads.
693         (lra_constraints): Remove one argument from lra_eliminate call.
694         Move it up.  Mark used hard regs bfore it.  Use
695         get_equiv_with_elimination instead of get_equiv_substitution.
696         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
697         assert for param values combination.  Use sp offset.  Add argument
698         to lra_eliminate_regs_1 calls.
699         (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
700         (curr_sp_change): New static var.
701         (mark_not_eliminable): Add parameter.  Update curr_sp_change.
702         Don't prevent elimination to sp if we can calculate its change.
703         Pass the argument to mark_not_eliminable calls.
704         (eliminate_regs_in_insn): Add a parameter.  Use sp offset.  Add
705         argument to lra_eliminate_regs_1 call.
706         (update_reg_eliminate): Move calculation of hard regs for spill
707         lower.  Switch off lra_in_progress temporarily to generate regs
708         involved into elimination.
709         (lra_init_elimination): Rename to init_elimination.  Make it
710         static.  Set up insn sp offset, check the offsets at the end of BBs.
711         (process_insn_for_elimination): Add parameter.  Pass its value to
712         eliminate_regs_in_insn.
713         (lra_eliminate): : Add parameter.  Pass its value to
714         process_insn_for_elimination.  Add assert for param values
715         combination.  Call init_elimination.  Don't update offsets in
716         equivalence substitutions.
717         * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
718         for created stack slot.
719         (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
720         onto stack slot.
722 2013-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
724         * config/arm/iterators.md (vrint_conds): New int attribute.
725         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
726         (smax<mode>3): Likewise.
727         (smin<mode>3): Likewise.
729 2013-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
731         * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
732         * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
733         * tree-ssanames.h (set_range_info): Add range_type argument.
734         (duplicate_ssa_name_range_info): Likewise.
735         * tree-ssanames.c (set_range_info): Take the range type as argument
736         and store it in SSA_NAME_ANTI_RANGE_P.
737         (duplicate_ssa_name_range_info): Likewise.
738         (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
739         (set_nonzero_bits): Update call to set_range_info.
740         (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
741         * tree-ssa-copy.c (fini_copy_prop): Likewise.
742         * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
743         (vrp_finalize): Likewise, passing anti-ranges directly.
745 2013-11-28  Richard Biener  <rguenther@suse.de>
747         PR tree-optimization/59330
748         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
749         and fix delayed marking of free calls not necessary.
751 2013-11-28  Andrew MacLeod  <amacleod@redhat.com>
753         * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
754         is_gimple_reg_type.
755         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
757 2013-11-28  Terry Guo  <terry.guo@arm.com>
759         * config/arm/arm.c (v7m_extra_costs): New table.
760         (arm_v7m_tune): Use it.
762 2013-11-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
764         * config/sol2.h (TIME_LIBRARY): Define.
766 2013-11-28  Richard Biener  <rguenther@suse.de>
768         PR lto/59323
769         * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
770         CONST_DECLs in function context are not indexable.
772 2013-11-28  Chung-Ju Wu  <jasonwucj@gmail.com>
774         * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
775         not optimized for size.
777 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
779         * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
780         fields.
781         (expand_stack_vars): For -fsanitize=address, use (and set initially)
782         data->asan_base as base for vars and update asan_alignb.
783         (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
784         Pass them to asan_emit_stack_protection.
785         * asan.c (asan_detect_stack_use_after_return): New variable.
786         (asan_emit_stack_protection): Add pbase and alignb arguments.
787         Implement use after return sanitization.
788         * asan.h (asan_emit_stack_protection): Adjust prototype.
789         (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
791 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
793         * common.opt: Introduced a new option -fsimd-cost-model.
794         * doc/invoke.texi: Introduced a new openmp-simd warning and
795         a new -fsimd-cost-model option.
796         * tree-vectorizer.h (unlimited_cost_model): Interface updated
797         to rely on the particular loop info.
798         * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
799         (vect_peeling_hash_choose_best_peeling): Ditto.
800         (vect_enhance_data_refs_alignment): Ditto.
801         * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
802         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
803         plus added openmp-simd warining.
805 2013-11-27   H.J. Lu  <hongjiu.lu@intel.com>
807         PR rtl-optimization/59311
808         * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
809         * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
811 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
813         * var-tracking.c (track_expr_p): Do not track declarations for parts
814         of tracked parameters.
815         (add_stores): Do not track values for tracked parameters passed in
816         multiple locations.
817         (vt_get_decl_and_offset): Handle PARALLEL.
818         (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
820 2013-11-27  Jeff Law  <law@redhat.com>
822         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
823         clobber the loop structure thread_block was unsuccessful.  If
824         thread_block was unsuccessful, cleanup appropriately.
826 2013-11-27  Chen Liqin <liqin.gcc@gmail.com>
828         * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
829         (score_char_to_class): Likewise.
831 2013-11-27  Kenneth Zadeck  <zadeck@naturalbridge.com>
833         * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
834         the overflow bit set.
836 2013-11-27  Richard Biener  <rguenther@suse.de>
838         PR middle-end/58723
839         * cgraphbuild.c (build_cgraph_edges): Do not build edges
840         for internal calls.
841         (rebuild_cgraph_edges): Likewise.
842         * ipa-inline-analysis.c (estimate_function_body_sizes):
843         Skip internal calls.
844         * tree-inline.c (estimate_num_insns): Estimate size of internal
845         calls as 0.
846         (gimple_expand_calls_inline): Do not try inline-expanding
847         internal calls.
848         * lto-streamer-in.c (input_cfg): Stream loop safelen,
849         force_vect and simduid.
850         (input_struct_function_base): Stream has_force_vect_loops
851         and has_simduid_loops.
852         (input_function): Adjust.
853         * lto-streamer-out.c (output_cfg): Stream loop safelen,
854         force_vect and simduid.
855         (output_struct_function_base): Stream has_force_vect_loops
856         and has_simduid_loops.
858 2013-11-27  Kai Tietz  <ktietz@redhat.com>
860         * config/i386/winnt.c (i386_pe_section_type_flags): Use const
861         pointer cast.
863 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
865         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
866         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
868 2013-11-27  Marek Polacek  <polacek@redhat.com>
870         PR sanitizer/59306
871         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
872         instead of walk_gimple_op.
873         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
875 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
876             Jakub Jelinek  <jakub@redhat.com>
878         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
879         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
880         (struct cgraph_node): Add simdclone and simd_clones fields.
881         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
882         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
883         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
884         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
885         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
886         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
887         * doc/tm.texi: Regenerated.
888         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
889         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
890         attribute is present.
891         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
892         (simd_clone_vector_of_formal_parm_types): New function.
893         (simd_clone_struct_alloc, simd_clone_struct_copy,
894         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
895         simd_clone_compute_base_data_type, simd_clone_mangle,
896         simd_clone_create, simd_clone_adjust_return_type,
897         create_tmp_simd_array, simd_clone_adjust_argument_types,
898         simd_clone_init_simd_arrays): New functions.
899         (struct modify_stmt_info): New type.
900         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
901         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
902         functions.
903         (pass_data_omp_simd_clone): New variable.
904         (pass_omp_simd_clone): New class.
905         (make_pass_omp_simd_clone): New function.
906         * passes.def (pass_omp_simd_clone): New.
907         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
908         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
909         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
910         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
911         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
912         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
913         * tree-vect-data-refs.c: Include cgraph.h.
914         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
915         and find_data_references_in_bb, if find_data_references_in_stmt
916         fails, still allow calls to #pragma omp declare simd functions
917         in #pragma omp simd loops unless they contain data references among
918         the call arguments or in lhs.
919         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
920         calls with no lhs.
921         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
922         without lhs.
923         * tree-vectorizer.h (enum stmt_vec_info_type): Add
924         call_simd_clone_vec_info_type.
925         (struct _stmt_vec_info): Add simd_clone_fndecl field.
926         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
927         * tree-vect-stmts.c: Include tree-ssa-loop.h,
928         tree-scalar-evolution.h and cgraph.h.
929         (vectorizable_call): Handle calls without lhs.  Assert
930         !stmt_can_throw_internal instead of failing for it.  Don't update
931         EH stuff.
932         (struct simd_call_arg_info): New.
933         (vectorizable_simd_clone_call): New function.
934         (vect_transform_stmt): Call it.
935         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
936         calls without lhs.
937         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
938         if cgraph_function_with_gimple_body_p is true.
940 2013-11-27  Tom de Vries  <tom@codesourcery.com>
941             Marc Glisse  <marc.glisse@inria.fr>
943         PR middle-end/59037
944         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
945         BIT_FIELD_REF.
946         * gimple-fold.c (gimple_fold_indirect_ref): Same.
947         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
948         out-of-bounds.
950 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
952         PR middle-end/59138
953         * expr.c (emit_group_store): Don't write past the end of the structure.
954         (store_bit_field): Fix formatting.
956 2013-11-27  Richard Biener  <rguenther@suse.de>
958         PR tree-optimization/59288
959         * tree-vect-loop.c (get_initial_def_for_induction): Do not
960         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
962 2013-11-27  Marek Polacek  <polacek@redhat.com>
964         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
965         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
966         rather than ADDR_EXPRs.
968 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
970         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
972 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
974         * gengtype.c (struct seen_tag): New.
975         (already_seen_tag): New.
976         (mark_tag_as_seen): New.
977         (walk_subclasses): Support having multiple subclasses using the
978         same tag by tracking which tags have already been seen, and using
979         this to avoid adding duplicate cases to the "switch" statement.
980         The call to already_seen_tag introduces an O(N^2) when running
981         gengtype on N, the number of tags, due to the repeated linear
982         search, but currently max(N) is relatively small (the number of
983         GSS codes, which is 26).
984         (walk_type): Pass in a seen_tag for use by the walk_subclasses
985         recursion.
987         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
988         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
989         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
990         GIMPLE_OMP_RETURN happens to share the data layout of
991         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
992         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
993         underlying GSS value from GSS_OMP_PARALLEL to
994         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
995         not directly related; they merely share in-memory layout.
996         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
997         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
999         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
1000         Rename to...
1001         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
1002         ...these.
1003         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
1004         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
1005         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
1006         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
1007         ...these.
1009         * gimple.h (gimple_statement_resx): New subclass of
1010         gimple_statement_eh_ctrl, with the invariant that
1011         stmt->code == GIMPLE_RESX.
1012         (gimple_statement_eh_dispatch): New subclass of
1013         gimple_statement_eh_ctrl, with the invariant that
1014         stmt->code == GIMPLE_EH_DISPATH.
1016         (gimple_statement_omp_parallel): The existing class expressed
1017         a layout (GSS_OMP_PARALLEL), but the codes with that layout
1018         are not all related, so it makes more sense for this class to
1019         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
1020         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
1021         rename the existing gimple_statement_omp_parallel class to...
1022         (gimple_statement_omp_parallel_layout): ...this, expressing
1023         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
1024         (gimple_statement_omp_taskreg): New subclass of
1025         gimple_statement_omp_parallel_layout, expressing the invariant
1026         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
1027         as used by the various gimple_omp_taskreg_ accessors.
1028         (gimple_statement_omp_parallel): Reintroduce this class, this time
1029         as a subclass of gimple_statement_omp_taskreg to express the
1030         invariant stmt->code == GIMPLE_OMP_PARALLEL.
1031         (gimple_statement_omp_target) New class, subclassing
1032         gimple_statement_omp_parallel_layout, to express the invariant
1033         stmt->code == GIMPLE_OMP_TARGET.
1034         (gimple_statement_omp_task): Update to inherit from
1035         gimple_statement_omp_taskreg rather than
1036         gimple_statement_omp_parallel.
1038         (gimple_statement_omp_single): Rename to...
1039         (gimple_statement_omp_single_layout): ...this, expressing the
1040         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
1041         (gimple_statement_omp_single): ...and reintroduce this name as
1042         a subclass of gimple_statement_omp_single_layout, expressing
1043         the invariant that code == GIMPLE_OMP_SINGLE.
1044         (gimple_statement_omp_teams): New class, subclassing
1045         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
1047         (gimple_statement_omp_atomic_store): Rename to...
1048         (gimple_statement_omp_atomic_store_layout): ...this, expressing
1049         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
1050         (gimple_statement_omp_atomic_store): ...and reintroduce this
1051         name as a subclass of gimple_statement_omp_atomic_store_layout
1052         with code == GIMPLE_OMP_ATOMIC_STORE.
1053         (gimple_statement_omp_return): New class, subclassing
1054         gimple_statement_omp_atomic_store_layout for the code
1055         GIMPLE_OMP_RETURN.
1057         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
1058         (is_a_helper <gimple_statement_resx>::test): New.
1059         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
1060         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
1061         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1062         (is_a_helper <gimple_statement_omp_return>::test): New.
1063         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
1064         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
1065         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1066         GIMPLE_OMP_TARGET.
1067         (is_a_helper <gimple_statement_omp_target>::test): New.
1068         (is_a_helper <gimple_statement_omp_single>::test): Only check
1069         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1070         (is_a_helper <gimple_statement_omp_teams>::test): New.
1072         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
1073         (is_a_helper <const gimple_statement_resx>::test): New.
1074         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
1075         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
1076         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1077         (is_a_helper <const gimple_statement_omp_return>::test): New.
1078         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
1079         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
1080         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1081         GIMPLE_OMP_TARGET.
1082         (is_a_helper <const gimple_statement_omp_target>::test): New.
1083         (is_a_helper <const gimple_statement_omp_single>::test): Only
1084         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1085         (is_a_helper <const gimple_statement_omp_teams>::test): New.
1087         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
1088         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
1089         gimple_statement_omp_atomic_store with downcasts to
1090         gimple_statement_omp_return, thus requiring that the code be
1091         GIMPLE_OMP_RETURN.
1092         (gimple_resx_region, gimple_resx_set_region): Replace bogus
1093         downcasts to gimple_statement_eh_ctrl with downcasts to
1094         gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
1095         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
1096         Replace bogus downcasts to const gimple_statement_eh_ctrl with
1097         downcasts to gimple_statement_eh_dispatch, thus requiring that
1098         the code be GIMPLE_EH_DISPATCH.
1099         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
1100         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
1101         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
1102         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
1103         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
1104         gimple_statement_omp_parallel with downcasts to
1105         gimple_statement_omp_taskreg, thus requiring that the code be
1106         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
1107         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
1108         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
1109         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
1110         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
1111         gimple_omp_target_set_data_arg): Replace bogus downcasts to
1112         gimple_statement_omp_parallel with downcasts to
1113         gimple_statement_omp_target, thus requiring that the code be
1114         GIMPLE_OMP_TARGET.
1115         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
1116         gimple_omp_teams_set_clauses): Replace bogus downcasts to
1117         gimple_statement_omp_single with downcasts to
1118         gimple_statement_omp_teams, thus requiring that the code be
1119         GIMPLE_OMP_TEAMS.
1121         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
1122         gimple_statement_resx.
1123         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
1124         gimple_statement_eh_dispatch.
1126 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
1128         PR tree-optimization/59014
1129         * tree-vrp.c (register_edge_assert_for_1): Don't look
1130         through conversions from non-integral types or through
1131         narrowing conversions.
1133         PR target/59229
1134         * config/i386/i386.c (device_alg): Fix up formatting.
1135         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
1136         similarly to count && count < epilogue_size_needed.  Fix up
1137         comment typo.
1138         * builtins.c (determine_block_size): Fix comment typo.
1140         PR sanitizer/59258
1141         * ubsan.c (ubsan_source_location): Don't add any location
1142         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
1143         (ubsan_create_data): Strip block info from LOC.
1145         PR middle-end/59273
1146         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1147         if there isn't optab handler for the corresponding vector PLUS_EXPR.
1149         PR rtl-optimization/59166
1150         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1151         DF_REF_LOC in validate_change call.
1152         (split_live_ranges_for_shrink_wrap): Likewise.
1154         PR middle-end/59150
1155         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1156         of references to constant size types in simd loops, defer emitting
1157         initializer for the new_var, emit it later on only if not using
1158         SIMD arrays for it.
1160         PR middle-end/59152
1161         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1162         for the inner loop if collapse_bb is non-NULL.
1163         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1165 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
1167         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1168         a constant immediate before force_reg.
1170 2013-11-26  Richard Biener  <rguenther@suse.de>
1172         PR tree-optimization/59245
1173         * tree-vrp.c (set_value_range): Assert that we don't have
1174         overflowed constants (but our infinities).
1175         (set_value_range_to_value): Drop all overflow flags.
1176         (vrp_visit_phi_node): Likewise.
1177         (vrp_visit_assignment_or_call): Use set_value_range_to_value
1178         to set a constant range.
1180 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1182         PR target/59290
1183         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1184         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1185         for zero_extend case.
1187 2013-11-26   H.J. Lu  <hongjiu.lu@intel.com>
1189         PR bootstrap/55552
1190         * configure.ac (install_gold_as_default): New.  Set to yes for
1191         --disable-ld or --enable-gold=default.
1192         (gcc_cv_ld_gold_srcdir): New.
1193         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
1194         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1195         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1196         * configure: Regenerated.
1198         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1199         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1200         (original) [collect-ld && -fuse-ld=bfd]: Set to
1201         $ORIGINAL_LD_BFD_FOR_TARGET.
1202         (original) [collect-ld && -fuse-ld=gold]: Set to
1203         $ORIGINAL_LD_GOLD_FOR_TARGET.
1204         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1205         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1207 2013-11-26  Terry Guo  <terry.guo@arm.com>
1209         * config/arm/arm.c (require_pic_register): Handle high pic base
1210         register for thumb-1.
1211         (arm_load_pic_register): Also initialize high pic base register.
1212         * doc/invoke.texi: Update documentation for option -mpic-register.
1214 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
1216         PR target/58314
1217         PR target/50751
1218         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1219         Prefix function names with 'sh_'.  Make them non-static.
1220         * config/sh/sh-protos.h (sh_disp_addr_displacement,
1221         sh_max_mov_insn_displacement): Add declarations.
1222         * config/sh/constraints.md (Q): Reject QImode.
1223         (Sdd): Use match_code "mem".
1224         (Snd): Fix erroneous matching of non-memory operands.
1225         * config/sh/predicates.md (short_displacement_mem_operand): New
1226         predicate.
1227         (general_movsrc_operand): Disallow PC relative QImode loads.
1228         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1229         (*movqi, *movhi): Merge both insns into...
1230         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
1231         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
1232         on the operand types.
1234 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
1236         * config/epiphany/epiphany.c (epiphany_expand_prologue):
1237         Remove unused variable save_config.
1238         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1239         assert.
1241 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1243         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1244         using other intrinsics.
1245         (vtbx3_<psu>8): Likewise.
1247 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1249         * config/aarch64/aarch64-builtins.c
1250         (aarch64_types_bsl_p_qualifiers): New.
1251         (aarch64_types_bsl_s_qualifiers): Likewise.
1252         (aarch64_types_bsl_u_qualifiers): Likewise.
1253         (TYPES_BSL_P): Likewise.
1254         (TYPES_BSL_S): Likewise.
1255         (TYPES_BSL_U): Likewise.
1256         (BUILTIN_VALLDIF): Likewise.
1257         (BUILTIN_VDQQH): Likewise.
1258         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1259         * config/aarch64/aarch64-simd.md
1260         (aarch64_simd_bsl<mode>_internal): Handle more modes.
1261         (aarch64_simd_bsl<mode>): Likewise.
1262         * config/aarch64/arm_neon.h
1263         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1264         * config/aarch64/iterators.md (VALLDIF): New.
1265         (Vbtype): Handle more modes.
1267 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1269         * config/aarch64/aarch64-builtins.c
1270         (aarch64_type_qualifiers): Add qualifier_poly.
1271         (aarch64_build_scalar_type): Also build Poly types.
1272         (aarch64_build_vector_type): Likewise.
1273         (aarch64_build_type): Likewise.
1274         (aarch64_build_signed_type): New.
1275         (aarch64_build_unsigned_type): Likewise.
1276         (aarch64_build_poly_type): Likewise.
1277         (aarch64_init_simd_builtins): Also handle Poly types.
1279 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1281         * config/aarch64/aarch64-builtins.c
1282         (VAR1): Use new naming scheme for aarch64_builtins.
1283         (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
1285 2013-11-26  Richard Biener  <rguenther@suse.de>
1287         PR tree-optimization/59287
1288         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1289         Remove no longer necessary special-casing of union accesses.
1291 2013-11-26  Richard Biener  <rguenther@suse.de>
1293         * pretty-print.c (output_buffer::~output_buffer): Really
1294         free the obstacks.
1296 2013-11-25  Jeff Law  <law@redhat.com>
1298         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1299         invalidate loop information.
1301 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1303         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1305 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1307         PR target/53976
1308         PR target/59243
1309         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1310         comments.
1311         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1312         previously visited basic blocks before recursing instead of only one
1313         basic block.
1315 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1317         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1318         * config/aarch64/aarch64-cores.def (cortex-a53):
1319         Use cortexa53 tuning struct.
1321 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
1323         PR bootstrap/59260
1324         * fold-const.c: Include hash-table.h.
1326 2013-11-25  Marek Polacek  <polacek@redhat.com>
1328         PR sanitizer/59258
1329         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1331 2013-11-25  Richard Biener  <rguenther@suse.de>
1333         * tree-dfa.c: Remove unused convert.h include.
1335 2013-11-25  Terry Guo  <terry.guo@arm.com>
1337         * doc/invoke.texi (-mslow-flash-data): Document new option.
1338         * config/arm/arm.opt (mslow-flash-data): New option.
1339         * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
1340         Declare it.
1341         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1342         are disabled.
1343         (arm_disable_literal_pool): Declare it.
1344         * config/arm/arm.c (arm_disable_literal_pool): New variable.
1345         (arm_option_override): Handle new option.
1346         (thumb2_legitimate_address_p): Don't allow symbol references when
1347         literal pools are disabled.
1348         (arm_max_const_double_inline_cost): New function.
1349         * config/arm/arm.md (types.md): Include it before ...
1350         (use_literal_pool): New attribute.
1351         (enabled): Use new attribute.
1352         (split pattern): Replace symbol+offset with MOVW/MOVT.
1354 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1356         PR bootstrap/59279
1357         Revert previous commit.
1359 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1361         * jump.c (reset_insn_reg_label_operand_notes): New function,
1362         split out from ...
1363         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
1364         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1365         split out from ...
1366         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
1367         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1368         expensive CFG cleanup is called for.
1369         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1370         (cfg_layout_finalize): Delete dead jump tables before re-building
1371         the insns chain.
1372         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1373         basic blocks, not before.
1374         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1376         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1377         insns chain of a scheduling extended basic block, they cannot appear
1378         there in cfglayout mode.
1380 2013-11-24  Tobias Burnus  <burnus@net-b.de>
1382         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1384 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1386         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1387         for little endian.
1389 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1391         * graphite-sese-to-poly.c: Don't include extra "expr.h".
1393 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1395         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1397 2013-11-23  David Edelson  <dje.gcc@gmail.com>
1398             Andrew Dixie  <andrewd@gentrack.com>
1400         PR target/33704
1401         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1402         (COLLECT_SHARED_FINI_FUNC): Define.
1404         * collect2.c (aix_shared_initname): Declare.
1405         (aix_shared_fininame): Declare.
1406         (symkind): Add SYM_AIXI and SYM_AIXD.
1407         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1408         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1409         (aixlazy_flag): Parse.
1410         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1411         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1413 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
1415         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1416         (rs6000_xcoff_select_section): Place decls with stricter alignment
1417         into named sections.
1418         (rs6000_xcoff_unique_section): Allow unique sections for
1419         uninitialized data with strict alignment.
1421 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
1423         PR tree-optimization/59154
1424         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1425         rhs1 of a cast and new_op is invariant, fold_convert it.
1426         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1427         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1429 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
1431         PR target/56788
1432         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1433         Declare as MULTI_ARG_1_SF instruction.
1434         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1435         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1436         from *xop_vmfrcz_<mode>.
1437         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1438         to merge scalar result with __A.
1439         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1440         result with __A.
1442 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1444         * gimplify.h (recalculate_side_effects): Delete.
1445         * gimplify.c (recalculate_side_effects): Make static and add comment.
1447 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1449         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1450         for the destination of a define_peephole2.  Likewise register_operand
1451         rather than arith_reg_operand.  Remove constraints from
1452         define_peephole2s.
1454 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1456         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1457         Delete.
1458         (mn10300_store_multiple_operation_p): Declare.
1459         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1460         Rename to...
1461         (mn10300_store_multiple_operation_p): ...this and remove mode
1462         argument.
1463         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1464         Define.
1466 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1468         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1469         (pop_multiple_operation): Delete.
1470         (analyze_push_multiple_operation): Declare.
1471         (analyze_pop_multiple_operation): Declare.
1472         * config/bfin/bfin.c (push_multiple_operation): Rename to...
1473         (analyze_push_multiple_operation): ...this and remove mode argument.
1474         (pop_multiple_operation): Rename to...
1475         (analyze_pop_multiple_operation): ...this and remove mode argument.
1476         * config/bfin/predicates.md (push_multiple_operation): Define.
1477         (pop_multiple_operation): Likewise.
1479 2013-11-23  Alan Modra  <amodra@gmail.com>
1481         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1483 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1485         PR sanitizer/59061
1486         * common.opt (static-liblsan): Add.
1487         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1488         Define.
1489         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
1490         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1491         SANITIZE_RETURN.
1492         * opts.c (common_handle_option): Handle -fsanitize=leak.
1493         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1494         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1495         (LIBUBSAN_EARLY_SPEC): Remove.
1496         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1497         (SANITIZER_SPEC): Add -fsanitize=leak handling.
1498         (sanitize_spec_function): Handle %sanitize(leak).
1499         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1501 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
1502             Jakub Jelinek  <jakub@redhat.com>
1504         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1505         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1506         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
1507         (ipa_modify_formal_parameters): Adjust caller.  Remove
1508         synth_parm_prefix argument.  Use operator enum instead of bit fields.
1509         Add assert for properly handling vector of references.  Handle
1510         creating brand new parameters.
1511         (ipa_modify_call_arguments): Use operator enum instead of bit
1512         fields.
1513         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
1514         used.
1515         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1516         New functions.
1517         (ipa_dump_param_adjustments): Rename reduction to new_decl.
1518         Use operator enum instead of bit fields.
1519         * ipa-prop.h (enum ipa_parm_op): New.
1520         (struct ipa_parm_adjustment): New field op.  Rename reduction
1521         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1522         and copy_param.
1523         (ipa_modify_formal_parameters): Remove last argument.
1524         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1525         ipa_get_adjustment_candidate): New prototypes.
1526         * tree-sra.c (turn_representatives_into_adjustments): Use operator
1527         enum.  Set arg_prefix.
1528         (get_adjustment_for_base): Use operator enum.
1529         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1530         ipa-prop.c.
1531         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1532         (ipa_sra_modify_function_body): Same.  No longer static.
1533         (sra_ipa_reset_debug_stmts): Use operator enum.
1534         (modify_function): Do not pass prefix argument.
1536 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1538         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1539         (ubsan_pass): Ignore clobber stmts.
1541         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1542         * opts.c (common_handle_option): Add -fsanitize=return.
1543         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1544         or it into SANITIZE_UNDEFINED.
1546         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1547         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1548         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1549         Don't instrument accesses to VAR_DECLs which are known to fit
1550         into their bounds and the vars are known to have shadow bytes
1551         indicating allowed access.
1552         (asan_dynamic_init_call): New function.
1553         (asan_add_global): If vnode->dynamically_initialized,
1554         set __has_dynamic_init to 1 instead of 0.
1555         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1556         * asan.h (asan_dynamic_init_call): New prototype.
1557         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1559 2013-11-22  Martin Jambor  <mjambor@suse.cz>
1561         PR rtl-optimization/10474
1562         * ira.c (interesting_dest_for_shprep_1): New function.
1563         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1564         also check parallels.
1566 2013-11-22  Jeff Law  <law@redhat.com>
1568         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1569         NULL for RHS, which we used to invalidate equivalences.
1570         (record_temporary_equivalences_from_phis): New bitmap arguments
1571         and a boolean indicating if we have passed a backedge.  If we
1572         have passed a backedge, then set the appropriate bit in the
1573         bitmaps for the SRC & DEST of PHIs creating equivalences.
1574         (invalidate_equivalences, dummy_simplify): New functions.
1575         (cond_arg_set_in_b): Remove.
1576         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1577         arguments and a boolean indicating if we have passed a backedge.
1578         If we have passed a backedge, then perform invalidations as needed.
1579         (thread_around_empty_blocks): If we have seen a backedge, then
1580         use the dummy simplify routine.
1581         (thread_through_normal_block): Likewise.  Pass bitmaps and
1582         backedge status to children.  Do not pessimize so much when
1583         traversing backedges in the CFG.
1584         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1585         If we have seen a backedge, then use the dummy simplify routine.
1586         Do not pessimize so much when traversing backedges.
1588 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
1590         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1591         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1593 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
1595         * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
1596         PTA_PCLMUL and PTA_RDRND for Silvermont.
1597         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1598         for Silvermont.
1600         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1602 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1604         * hooks.h (hook_uint_mode_0): Add Prototype.
1605         * hooks.c (hook_uint_mode_0): New default function.
1606         * target.def (atomic_align_for_mode): New target hook.
1607         * tree.c (build_atomic_base): Add alignment override parameter.
1608         (build_common_tree_nodes): Use atomic alignment override.
1609         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1610         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1612 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1614         * gimple.h: Remove all includes.
1615         (recalculate_side_effects): Move prototype to gimplify.h.
1616         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1617         * gengtype.c (open_base_files): Add gimple.h include list.
1618         * gimplify.h (recalculate_side_effects): Relocate prototype here.
1619         * gimple.c: Adjust include list.
1620         (recalculate_side_effects): Move to gimplify.c.
1621         * gimplify.c: Adjust include list.
1622         (recalculate_side_effects): Relocate from gimple.c.
1623         * alias.c: Add required include files removed from gimple.h.
1624         * asan.c: Likewise.
1625         * builtins.c: Likewise.
1626         * calls.c: Likewise.
1627         * cfgexpand.c: Likewise.
1628         * cfgloop.c: Likewise.
1629         * cfgloopmanip.c: Likewise.
1630         * cgraphbuild.c: Likewise.
1631         * cgraph.c: Likewise.
1632         * cgraphclones.c: Likewise.
1633         * cgraphunit.c: Likewise.
1634         * cilk-common.c: Likewise.
1635         * data-streamer.c: Likewise.
1636         * data-streamer-in.c: Likewise.
1637         * data-streamer-out.c: Likewise.
1638         * dse.c: Likewise.
1639         * dwarf2out.c: Likewise.
1640         * emit-rtl.c: Likewise.
1641         * except.c: Likewise.
1642         * expr.c: Likewise.
1643         * fold-const.c: Likewise.
1644         * function.c: Likewise.
1645         * gimple-builder.c: Likewise.
1646         * gimple-expr.c: Likewise.
1647         * gimple-fold.c: Likewise.
1648         * gimple-iterator.c: Likewise.
1649         * gimple-low.c: Likewise.
1650         * gimple-pretty-print.c: Likewise.
1651         * gimple-ssa-isolate-paths.c: Likewise.
1652         * gimple-ssa-strength-reduction.c: Likewise.
1653         * gimple-streamer-in.c: Likewise.
1654         * gimple-streamer-out.c: Likewise.
1655         * gimple-walk.c: Likewise.
1656         * gimplify-me.c: Likewise.
1657         * graphite-blocking.c: Likewise.
1658         * graphite.c: Likewise.
1659         * graphite-clast-to-gimple.c: Likewise.
1660         * graphite-dependences.c: Likewise.
1661         * graphite-interchange.c: Likewise.
1662         * graphite-optimize-isl.c: Likewise.
1663         * graphite-poly.c: Likewise.
1664         * graphite-scop-detection.c: Likewise.
1665         * graphite-sese-to-poly.c: Likewise.
1666         * internal-fn.c: Likewise.
1667         * ipa.c: Likewise.
1668         * ipa-cp.c: Likewise.
1669         * ipa-devirt.c: Likewise.
1670         * ipa-inline-analysis.c: Likewise.
1671         * ipa-inline.c: Likewise.
1672         * ipa-profile.c: Likewise.
1673         * ipa-prop.c: Likewise.
1674         * ipa-pure-const.c: Likewise.
1675         * ipa-reference.c: Likewise.
1676         * ipa-split.c: Likewise.
1677         * ipa-utils.c: Likewise.
1678         * langhooks.c: Likewise.
1679         * lto-cgraph.c: Likewise.
1680         * lto-compress.c: Likewise.
1681         * lto-opts.c: Likewise.
1682         * lto-section-in.c: Likewise.
1683         * lto-section-out.c: Likewise.
1684         * lto-streamer.c: Likewise.
1685         * lto-streamer-in.c: Likewise.
1686         * lto-streamer-out.c: Likewise.
1687         * omp-low.c: Likewise.
1688         * opts-global.c: Likewise.
1689         * passes.c: Likewise.
1690         * predict.c: Likewise.
1691         * profile.c: Likewise.
1692         * sese.c: Likewise.
1693         * stmt.c: Likewise.
1694         * stor-layout.c: Likewise.
1695         * symtab.c: Likewise.
1696         * targhooks.c: Likewise.
1697         * toplev.c: Likewise.
1698         * tracer.c: Likewise.
1699         * trans-mem.c: Likewise.
1700         * tree-affine.c: Likewise.
1701         * tree.c: Likewise.
1702         * tree-call-cdce.c: Likewise.
1703         * tree-cfg.c: Likewise.
1704         * tree-cfgcleanup.c: Likewise.
1705         * tree-chrec.c: Likewise.
1706         * tree-complex.c: Likewise.
1707         * tree-data-ref.c: Likewise.
1708         * tree-dfa.c: Likewise.
1709         * tree-eh.c: Likewise.
1710         * tree-emutls.c: Likewise.
1711         * tree-if-conv.c: Likewise.
1712         * tree-inline.c: Likewise.
1713         * tree-into-ssa.c: Likewise.
1714         * tree-loop-distribution.c: Likewise.
1715         * tree-nested.c: Likewise.
1716         * tree-nrv.c: Likewise.
1717         * tree-object-size.c: Likewise.
1718         * tree-outof-ssa.c: Likewise.
1719         * tree-parloops.c: Likewise.
1720         * tree-phinodes.c: Likewise.
1721         * tree-predcom.c: Likewise.
1722         * tree-pretty-print.c: Likewise.
1723         * tree-profile.c: Likewise.
1724         * tree-scalar-evolution.c: Likewise.
1725         * tree-sra.c: Likewise.
1726         * tree-ssa-address.c: Likewise.
1727         * tree-ssa-alias.c: Likewise.
1728         * tree-ssa.c: Likewise.
1729         * tree-ssa-ccp.c: Likewise.
1730         * tree-ssa-coalesce.c: Likewise.
1731         * tree-ssa-copy.c: Likewise.
1732         * tree-ssa-copyrename.c: Likewise.
1733         * tree-ssa-dce.c: Likewise.
1734         * tree-ssa-dom.c: Likewise.
1735         * tree-ssa-dse.c: Likewise.
1736         * tree-ssa-forwprop.c: Likewise.
1737         * tree-ssa-ifcombine.c: Likewise.
1738         * tree-ssa-live.c: Likewise.
1739         * tree-ssa-loop.c: Likewise.
1740         * tree-ssa-loop-ch.c: Likewise.
1741         * tree-ssa-loop-im.c: Likewise.
1742         * tree-ssa-loop-ivcanon.c: Likewise.
1743         * tree-ssa-loop-ivopts.c: Likewise.
1744         * tree-ssa-loop-manip.c: Likewise.
1745         * tree-ssa-loop-niter.c: Likewise.
1746         * tree-ssa-loop-prefetch.c: Likewise.
1747         * tree-ssa-loop-unswitch.c: Likewise.
1748         * tree-ssa-math-opts.c: Likewise.
1749         * tree-ssanames.c: Likewise.
1750         * tree-ssa-operands.c: Likewise.
1751         * tree-ssa-phiopt.c: Likewise.
1752         * tree-ssa-phiprop.c: Likewise.
1753         * tree-ssa-pre.c: Likewise.
1754         * tree-ssa-propagate.c: Likewise.
1755         * tree-ssa-reassoc.c: Likewise.
1756         * tree-ssa-sccvn.c: Likewise.
1757         * tree-ssa-sink.c: Likewise.
1758         * tree-ssa-strlen.c: Likewise.
1759         * tree-ssa-structalias.c: Likewise.
1760         * tree-ssa-tail-merge.c: Likewise.
1761         * tree-ssa-ter.c: Likewise.
1762         * tree-ssa-threadedge.c: Likewise.
1763         * tree-ssa-threadupdate.c: Likewise.
1764         * tree-ssa-uncprop.c: Likewise.
1765         * tree-ssa-uninit.c: Likewise.
1766         * tree-stdarg.c: Likewise.
1767         * tree-streamer.c: Likewise.
1768         * tree-streamer-in.c: Likewise.
1769         * tree-streamer-out.c: Likewise.
1770         * tree-switch-conversion.c: Likewise.
1771         * tree-tailcall.c: Likewise.
1772         * tree-vect-data-refs.c: Likewise.
1773         * tree-vect-generic.c: Likewise.
1774         * tree-vect-loop.c: Likewise.
1775         * tree-vect-loop-manip.c: Likewise.
1776         * tree-vectorizer.c: Likewise.
1777         * tree-vect-patterns.c: Likewise.
1778         * tree-vect-slp.c: Likewise.
1779         * tree-vect-stmts.c: Likewise.
1780         * tree-vrp.c: Likewise.
1781         * tsan.c: Likewise.
1782         * ubsan.c: Likewise.
1783         * value-prof.c: Likewise.
1784         * varpool.c: Likewise.
1785         * var-tracking.c: Likewise.
1786         * vtable-verify.c: Likewise.
1787         * config/darwin.c: Likewise.
1788         * config/aarch64/aarch64-builtins.c: Likewise.
1789         * config/aarch64/aarch64.c: Likewise.
1790         * config/alpha/alpha.c: Likewise.
1791         * config/i386/i386.c: Likewise.
1792         * config/i386/winnt.c: Likewise.
1793         * config/ia64/ia64.c: Likewise.
1794         * config/m32c/m32c.c: Likewise.
1795         * config/mep/mep.c: Likewise.
1796         * config/mips/mips.c: Likewise.
1797         * config/rs6000/rs6000.c: Likewise.
1798         * config/s390/s390.c: Likewise.
1799         * config/sh/sh.c: Likewise.
1800         * config/sparc/sparc.c: Likewise.
1801         * config/spu/spu.c: Likewise.
1802         * config/stormy16/stormy16.c: Likewise.
1803         * config/tilegx/tilegx.c: Likewise.
1804         * config/tilepro/tilepro.c: Likewise.
1805         * config/xtensa/xtensa.c: Likewise.
1807 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
1809         PR target/59216
1810         * arm.md (negdi_extendsidi): Fix invalid split.
1812 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
1814         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1815         (vmov_n_f64): Likewise.
1816         (vmov_n_p8): Likewise.
1817         (vmov_n_p16): Likewise.
1818         (vmov_n_s8): Likewise.
1819         (vmov_n_s16): Likewise.
1820         (vmov_n_s32): Likewise.
1821         (vmov_n_s64): Likewise.
1822         (vmov_n_u8): Likewise.
1823         (vmov_n_u16): Likewise.
1824         (vmov_n_u32): Likewise.
1825         (vmov_n_u64): Likewise.
1826         (vmovq_n_f32): Likewise.
1827         (vmovq_n_f64): Likewise.
1828         (vmovq_n_p8): Likewise.
1829         (vmovq_n_p16): Likewise.
1830         (vmovq_n_s8): Likewise.
1831         (vmovq_n_s16): Likewise.
1832         (vmovq_n_s32): Likewise.
1833         (vmovq_n_s64): Likewise.
1834         (vmovq_n_u8): Likewise.
1835         (vmovq_n_u16): Likewise.
1836         (vmovq_n_u32): Likewise.
1837         (vmovq_n_u64): Likewise.
1839 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1841         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1842         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1843         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1844         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1845         and also change to float UNSPEC.
1846         (reduc_maxmin_uns>_<mode>): Remove V2DI.
1847         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1848         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1849         result access for big-endian.
1850         (__LANE0): New macro used to fix up lane access of 'across-lanes'
1851         intrinsics for big-endian.
1852         * config/aarch64/iterators.md (VDQV): Add V2DI.
1853         (VDQV_S): New.
1854         (vp): New mode attribute.
1856 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1858         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1859         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1860         big-endian.
1862 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1864         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1865         for big-endian element order.
1866         (aarch64_simd_vec_setv2di): Likewise.
1867         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1868         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1869         (vec_extract): Expand using aarch64_get_lane.
1870         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1872 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1874         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1875         and stores to be ABI compliant.
1877 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1879         * input.h (input_line): Remove.
1880         (input_filename): Likewise.
1881         (in_system_header): Likewise.
1882         * tree.h (EXPR_LOC_OR_HERE): Remove.
1883         * config/bfin/bfin.c (output_file_start): Remove use of
1884         input_filename macro.
1885         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1886         * gimplify.c (internal_get_tmp_var): Likewise.
1887         EXPR_LOC_OR_HERE macro.
1888         (shortcut_cond_expr): Likewise.
1889         * tree-diagnostic.c (diagnostic_report_current_function): Remove
1890         use of input_filename macro.
1891         * tree.c (get_file_function_name): Likewise.
1893 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
1895         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1897 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1899         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1900         (same sized) elements even if the type of the CONSTRUCTOR has
1901         vector mode and target is a REG.
1903 2013-11-22  Richard Biener  <rguenther@suse.de>
1905         Revert
1906         2013-11-21  Richard Biener  <rguenther@suse.de>
1908         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1909         nb_iterations_upper_bound by one.
1911 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1913         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
1914         for Silvermont.
1916         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
1917         core-avx-i, core-avx2 and slm.
1919 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
1921         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1923 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
1925         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1926         (stzx_24_<mode>): Likewise mra_operand.
1928 2013-11-22  Jeff Law  <law@redhat.com>
1930         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1931         (thread_block_1): Do not cancel jump threads which go from
1932         inside a loop, through the header, then back inside the loop.
1933         (bb_ends_with_multiway_branch): New function.
1934         (thread_through_all_blocks): Handle threading cases which start
1935         in a loop through the loop header to a point in the loop.
1937         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1938         jump thread path properly.
1940 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
1942         * vec.h (auto_vec): New class.
1943         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1944         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1945         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1946         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1947         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1948         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1949         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1950         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1951         appropriate instead of vec for local variables.
1953 2013-11-21  Teresa Johnson  <tejohnson@google.com>
1955         PR target/59233
1956         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1957         not understood by old_insns_match_p.
1959 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
1961         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1962         little endian change.
1963         (vec_pack_sfix_trunc_v2df): Likewise.
1964         (vec_pack_ufix_trunc_v2df): Likewise.
1965         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1966         double checking of endianness.
1968 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1970         * tree-vect-generic.c (optimize_vector_constructor): New function.
1971         (expand_vector_operations_1): Call it.
1973 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
1975         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1976         ix86_zero_extend_to_Pmode where appropriate.
1977         (ix86_expand_builtin): Ditto.
1979 2013-11-21  Cary Coutant  <ccoutant@google.com>
1981         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1982         (add_linkage_name): Don't add linkage name for -g1.
1983         (decls_for_scope): Process subblocks for -g1.
1984         (dwarf2out_source_line): Output line tables for -g1.
1985         (dwarf2out_finish): Likewise.
1986         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1987         unused scopes for -g1.
1988         * opts.c (common_handle_option): Handle -g same as -g2.
1989         * doc/invoke.texi: Update description for -g1.
1991 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
1993         * doc/extend.texi: Document htm builtins.
1995 2013-11-21  Jeff Law  <law@redhat.com>
1997         PR tree-optimization/59221
1998         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1999         temporary equivalences when threading through joiner blocks.
2001 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
2003         PR rtl-optimization/55950
2004         * real.c (real_sqrt): Remove function.
2005         * real.h (real_sqrt): Remove prototype.
2006         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
2007         SQRT using real_sqrt.
2009 2013-11-21  Richard Biener  <rguenther@suse.de>
2011         PR tree-optimization/59058
2012         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
2013         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
2014         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
2015         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
2016         (NITERS_KNOWN_P): Fold into ...
2017         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
2018         (LOOP_VINFO_PEELING_FOR_NITER): Add.
2019         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2020         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2021         (vect_do_peeling_for_alignment): Re-use precomputed niter
2022         instead of re-emitting it.
2023         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2024         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2025         * tree-vect-loop.c (vect_get_loop_niters): Use
2026         number_of_latch_executions.
2027         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
2028         (vect_analyze_loop_form): Simplify.
2029         (vect_analyze_loop_operations): Move epilogue peeling code ...
2030         (vect_analyze_loop_2): ... here and adjust it to compute
2031         LOOP_VINFO_PEELING_FOR_NITER.
2032         (vect_estimate_min_profitable_iters): Use
2033         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2034         (vect_build_loop_niters): Emit on the preheader.
2035         (vect_generate_tmps_on_preheader): Likewise.
2036         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
2037         of recomputing it.  Adjust.
2039 2013-11-21  Richard Biener  <rguenther@suse.de>
2041         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2042         LOC_LINE): Remove wrappers and fix all users.
2043         (struct _loop_vec_info): Remove loop_line_number member.
2044         (LOOP_VINFO_LOC): Remove.
2045         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
2046         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
2047         and LOC_LINE.
2049 2013-11-21  Richard Biener  <rguenther@suse.de>
2051         * tree-ssa-forwprop.c (simplify_vce): New function.
2052         (ssa_forward_propagate_and_combine): Call it.
2054 2013-11-21  Richard Biener  <rguenther@suse.de>
2056         * tree-vect-loop-manip.c (vect_build_loop_niters,
2057         vect_generate_tmps_on_preheader): Move ...
2058         * tree-vect-loop.c (vect_build_loop_niters,
2059         vect_generate_tmps_on_preheader): ... here and simplify.
2060         (vect_transform_loop): Call them here and pass down results
2061         to consumers.
2062         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
2063         Get niter variables from caller.
2064         (vect_do_peeling_for_alignment): Likewise.
2065         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
2066         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2067         Adjust prototypes.
2069 2013-11-21  Richard Biener  <rguenther@suse.de>
2071         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2072         nb_iterations_upper_bound by one.
2074 2013-11-21  Richard Biener  <rguenther@suse.de>
2076         PR tree-optimization/59058
2077         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
2078         (build_size_arg_loc): Apply niter adjustment here.
2079         (generate_memset_builtin): Adjust.
2080         (generate_memcpy_builtin): Likewise.
2081         (classify_partition): Do not use number_of_exit_cond_executions
2082         but record whether niter needs to be adjusted.
2084 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
2086         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
2087         could throw.
2089 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
2091         PR target/53976
2092         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
2093         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
2094         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
2095         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
2096         sh_optimize_sett_clrt pass.o to extra_objs.
2098 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
2100         * cfg.c (dump_edge_info): Remove redundant comment.
2101         * cfgcleanup.c (outgoing_edges_match): Reword reference to
2102         EXIT_BLOCK_PTR in comment.
2103         (try_optimize_cfg): Likewise.
2104         * cfgrtl.c (last_bb_in_partition): Likewise.
2105         * cgraph.c (cgraph_node_cannot_return): Likewise.
2106         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2107         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2108         * ipa-split.c (consider_split): Likewise.
2109         * profile.c (find_spanning_tree): Likewise.
2110         * sched-int.h (common_sched_info_def.add_block): Likewise.
2111         * dominance.c (calc_dfs_tree_nonrec): Reword references in
2112         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
2113         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
2114         in comments to now removed ENTRY_BLOCK_PTR macro.
2115         (tree_forwarder_block_p): Reword reference in comment to
2116         EXIT_BLOCK_PTR.
2117         * tree-inline.c (copy_cfg_body): Reword references in comments to
2118         now removed ENTRY_BLOCK_PTR macro.
2119         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2120         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
2121         a comma to the comment to clarify the meaning.
2123 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
2125         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
2126         Move to gimplify.c.
2127         (free_gimplify_stack): Add prototype.
2128         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
2129         (struct gimplify_ctx): Relocate here.
2130         (gimplify_ctxp): Make static.
2131         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
2132         list of struct gimplify_ctx.
2133         (push_gimplify_context): Add default parameters and allocate a struct
2134         from the pool.
2135         (pop_gimplify_context): Free a struct back to the pool.
2136         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2137         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2138         use a local 'struct gimplify_ctx'.
2139         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2140         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2141         Likewise.
2142         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2143         lower_omp_ordered, lower_omp_critical, lower_omp_for,
2144         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2145         lower_omp_teams, execute_lower_omp): Likewise.
2146         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2147         * tree-inline.c (optimize_inline_calls): Likewise.
2149 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2151         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2152         (vsx_extract_<mode>): Likewise.
2153         (*vsx_extract_<mode>_one_le): New LE variant on
2154         *vsx_extract_<mode>_zero.
2155         (vsx_extract_v4sf): Adjust for little endian.
2157 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
2159         PR rtl-optimization/59133
2160         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
2161         new pseudos.
2162         (lra_create_new_reg_with_unique_value): Pass new argument value.
2163         (lra_emit_add, lra_emit_move): Ditto.
2164         * lra-constraints.c (in_class_p): Add check for move for a new insn.
2165         (change_class): Rename to lra_change_class.  Move to lra-int.h.
2166         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2167         change_class.
2168         (process_addr_reg, process_addr): Ditto.
2169         (curr_insn_transform): Ditto.  Add check on old pseudo for
2170         optional reload.
2171         * lra-int.h (lra_get_regno_hard_regno): Move below.
2172         (lra_change_class): Renamed change_class from lra.c.
2174 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
2176         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2177         the children of a NULL pointer.
2179 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
2181         * lra.c (lra): Set lra_in_progress before check_rtl call.
2182         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2183         adding clobber regs when LRA is running.
2185 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
2187         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2188         restriction for ISA_MIPS32R2.
2189         (ISA_HAS_LXC1_SXC1): New macro.
2190         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2191         (ISA_HAS_NMADD4_NMSUB4): Likewise.
2192         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2193         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2194         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2195         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2196         (*<ANYF:storex>_<P:mode>): Likewise.
2198 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
2200         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2201         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2202         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2203         * config/mips/mips.md (recip_condition): Remove mode attribute.
2204         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2205         <recip_condition>.
2206         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2208 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2210         PR target/59207
2211         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2212         Make sure neg2_ovf is set before being used.
2214 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
2216         * plugin.def: Add comment about register_callback and
2217         invoke_plugin_callbacks_full.
2219         * plugin.c (register_callback, invoke_plugin_callbacks_full):
2220         Handle PLUGIN_INCLUDE_FILE event.
2222 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2224         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2225         allow subregs of TDmode in FPRs of smaller size in little-endian.
2226         (rs6000_split_multireg_move): When splitting an access to TDmode
2227         in FPRs, do not use simplify_gen_subreg.
2229 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
2231         PR middle-end/21718
2232         * real.c: Remove comment about decimal string conversion and
2233         rounding errors.
2234         (real_from_string): Use MPFR to convert nonzero decimal constant
2235         to REAL_VALUE_TYPE.
2237 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2239         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2240         endianness of the D registers for the legacy encodings.
2242 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
2244         PR rtl-optimization/54300
2245         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2246         outputs in a single-set are killed from the value chains.
2248 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2250         * cgraph.h (varpool_node): Add need_bounds_init field.
2251         * lto-cgraph.c (lto_output_varpool_node): Output
2252         need_bounds_init value.
2253         (input_varpool_node): Read need_bounds_init value.
2254         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2256 2013-11-20  Jan Hubicka  <jh@suse.cz>
2258         * opts.c (finish_options): Imply -ffat-lto-objects with
2259         -fno-use-linker-plugin.
2260         * common.opt (fuse-linker-plugin): Add var.
2262 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2264         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2265         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2266         (gen_type_die_with_usage): Skip pointer bounds.
2267         (dwarf2out_global_decl): Likewise.
2269 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2271         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2272         from all insns.
2274 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
2276         PR target/57756
2277         * config/i386/i386.c (ix86_option_override_internal): Add missed
2278         argument prefix for 'ix86_fpmath'.
2279         * config/i386/ssemath.h: Add missed definition of
2280         TARGET_FPMATH_DEFAULT_P macros.
2282 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2283             Mike Stump  <mikestump@comcast.net>
2284             Richard Sandiford  <rdsandiford@googlemail.com>
2286         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2287         instead of TREE_INT_CST_LOW, in cases where there is a protecting
2288         tree_fits_shwi_p or tree_fits_uhwi_p.
2289         * builtins.c (fold_builtin_powi): Likewise.
2290         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2291         Likewise.
2292         * dbxout.c (dbxout_symbol): Likewise.
2293         * expr.c (expand_expr_real_1): Likewise.
2294         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2295         (fold_binary_loc): Likewise.
2296         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2297         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2298         * omp-low.c (lower_omp_for_lastprivate): Likewise.
2299         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2300         * stor-layout.c (compute_record_mode): Likewise.
2301         * tree-cfg.c (verify_expr): Likewise.
2302         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2303         * tree-pretty-print.c (dump_array_domain): Likewise.
2304         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2305         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2306         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2307         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2308         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2309         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2310         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2311         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2312         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2313         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2314         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2315         (create_variable_info_for_1): Likewise.
2316         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2317         (vect_verify_datarefs_alignment): Likewise.
2318         (vect_analyze_data_ref_accesses): Likewise.
2319         (vect_prune_runtime_alias_test_list): Likewise.
2320         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2322 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2324         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2325         overflow.  Use tree_to_shwi.
2327 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2329         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2330         HOST_WIDE_INTs when folding (x >> c) << c.
2332 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2333             Dominik Vogt  <vogt@linux.vnet.ibm.com>
2335         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2336         int comparisons with an out of range condition code.
2337         (s390_optimize_nonescaping_tx): Skip empty BBs.
2338         Generate the new tbegin RTX when removing the FPR clobbers (with
2339         two SETs).
2340         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
2341         result before doing the retry calculations.
2342         (s390_init_builtins): Make tbegin "returns_twice" and tabort
2343         "noreturn".
2344         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2345         the TDB setting part of an tbegin.
2346         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2347         ("tx_assist"): Set unused argument to an immediate zero instead of
2348         loading zero into a GPR and pass it as argument.
2349         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2350         Remove inline and related attributes.
2351         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2352         (__TM_is_illegal, __TM_is_footprint_exceeded)
2353         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2355 2013-11-20  Richard Biener  <rguenther@suse.de>
2357         PR lto/59035
2358         * lto-opts.c (lto_write_options): Write defaults only if
2359         they were not explicitely specified.  Also write
2360         -ffp-contract default.
2361         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2362         conservatively.
2363         (run_gcc): Pass through -ffp-contract.
2365 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2367         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2369 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2371         * gcc/config/aarch64/aarch64-builtins.c
2372         (aarch64_simd_itype): Remove.
2373         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2374         (VAR1): Use qualifiers.
2375         (aarch64_build_scalar_type): New.
2376         (aarch64_build_vector_type): Likewise.
2377         (aarch64_build_type): Likewise.
2378         (aarch64_init_simd_builtins): Refactor, remove special cases,
2379         consolidate main loop.
2380         (aarch64_simd_expand_args): Likewise.
2382 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
2384         PR c/53001
2385         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2387 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
2389         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2391 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2393         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2394         to "vec<>" instances.
2395         (build_pretty_printer): Register the vec<>* prettyprinter.
2397 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2399         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2400         (GdbSubprinter.handles_type): New.
2401         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2402         (GdbSubprinterRegex): New subclass of GdbSubprinter.
2403         (GdbPrettyPrinters.add_printer): Remove in favor of...
2404         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2405         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2406         (GdbPrettyPrinters.__call__): Update search for subprinter
2407         to use handles_type method.
2408         (build_pretty_printer): Update registration of subprinters to
2409         use the new API above, supporting multiple spelling of each type,
2410         and allowing for future regex-based subprinters.
2412 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2414         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2415         V16QI vector splat case for little endian.
2417 2013-11-19  Jeff Law  <law@redhat.com>
2419         * tree-ssa-threadedge.c (thread_across_edge): After threading
2420         through a joiner, allow threading a normal block requiring duplication.
2422         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2423         jump threading requests that would muck up the loop structures.
2425         * tree-ssa-threadupdate.c: Fix trailing whitespace.
2426         * tree-ssa-threadupdate.h: Likewise.
2428 2013-11-19  Mike Stump  <mikestump@comcast.net>
2430         * gdbinit.in: Add pmz to print out mpz values.
2432 2013-11-20  Jan Hubicka  <jh@suse.cz>
2434         * common.opt (ffat-lto-objects): Disable by default.
2435         * doc/invoke.texi (fat-lto-objects): Update documentation.
2436         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2438 2013-11-19  Martin Jambor  <mjambor@suse.cz>
2440         PR rtl-optimization/59099
2441         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2442         here.
2443         (ira): Move init_reg_equiv and call to
2444         split_live_ranges_for_shrink_wrap up, remove analyses around call
2445         to find_moveable_pseudos.
2447 2013-11-20  Alan Modra  <amodra@gmail.com>
2449         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2450         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2451         to strict alignment on older processors when little-endian.
2452         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2453         for ELFv2.
2455 2013-11-19  Teresa Johnson  <tejohnson@google.com>
2457         * common/config/i386/i386-common.c: Enable
2458         -freorder-blocks-and-partition at -O2 and up for x86.
2459         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2460         * opts.c (finish_options): Only warn if
2461         -freorder-blocks-and-partition was set on command line.
2463 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
2465         * final.c (final_scan_insn): Emit a label for the split
2466         cold function part.  Label name is formed by suffixing
2467         the original function name with "cold".
2469 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2471         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2472         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2473         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2474         (EXIT_BLOCK_PTR_FOR_FN): ...this.
2475         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2476         cfun be explicit.
2477         (EXIT_BLOCK_PTR): Likewise.
2478         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2479         (FOR_ALL_BB_FN): Update for renaming of
2480         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2482         * cfg.c (init_flow): Likewise.
2483         (check_bb_profile): Likewise.
2484         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2485         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2486         * cfghooks.c (account_profile_record): Likewise.
2487         * cfgloop.c (init_loops_structure): Likewise.
2488         * cgraphbuild.c (record_eh_tables): Likewise.
2489         (compute_call_stmt_bb_frequency): Likewise.
2490         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2491         * lto-streamer-in.c (input_cfg): Likewise.
2492         * predict.c (maybe_hot_frequency_p): Likewise.
2493         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2494         * tree-inline.c (initialize_cfun): Likewise.
2495         (copy_cfg_body): Likewise.
2496         (copy_body): Likewise.
2497         (tree_function_versioning): Likewise.
2499         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2500         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2501         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2502         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2503         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2504         (connect_traces): Likewise.
2505         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2506         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2507         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2508         macro.
2509         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2510         EXIT_BLOCK_PTR.
2511         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2512         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2513         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2514         (rotate_loop): Likewise.
2515         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2516         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2517         EXIT_BLOCK_PTR.
2518         (alloc_aux_for_edges): Likewise.
2519         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2520         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2521         EXIT_BLOCK_PTR.
2522         (compact_blocks): Likewise.
2523         (clear_edges): Likewise.
2524         * cfganal.c (single_pred_before_succ_order): Remove usage of
2525         ENTRY_BLOCK_PTR macro.
2526         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2527         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2528         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2529         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2530         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2531         EXIT_BLOCK_PTR.
2532         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2533         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2534         EXIT_BLOCK_PTR.
2535         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2536         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2537         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2538         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2539         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2540         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2541         EXIT_BLOCK_PTR.
2542         (print_edge_list): Likewise.
2543         (create_edge_list): Likewise.
2544         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2545         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2546         EXIT_BLOCK_PTR.
2547         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2548         macro.
2549         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2550         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2551         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2552         (try_optimize_cfg): Likewise.
2553         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2554         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2555         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2556         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2557         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2558         (try_forward_edges): Likewise.
2559         (try_simplify_condjump): Likewise.
2560         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2561         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2562         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2563         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2564         EXIT_BLOCK_PTR.
2565         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2566         (expand_gimple_tailcall): Likewise.
2567         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2568         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2569         (tidy_fallthru_edges): Likewise.
2570         (verify_flow_info): Likewise.
2571         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2572         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2573         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2574         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2575         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2576         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2577         (get_loop_body_in_dom_order): Likewise.
2578         (get_loop_body): Likewise.
2579         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2580         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2581         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2582         macro.
2583         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2584         (fix_bb_placement): Likewise.
2585         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2586         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2587         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2588         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2589         EXIT_BLOCK_PTR.
2590         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2591         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2592         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2593         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2594         macro.
2595         (fixup_fallthru_exit_predecessor): Remove uses of macros:
2596         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2597         (fixup_reorder_chain): Likewise.
2598         (relink_block_chain): Likewise.
2599         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2600         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2601         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2602         (force_one_exit_fallthru): Likewise.
2603         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2604         EXIT_BLOCK_PTR.
2605         (rtl_verify_edges): Likewise.
2606         (commit_edge_insertions): Likewise.
2607         (commit_one_edge_insertion): Likewise.
2608         (rtl_split_edge): Likewise.
2609         (force_nonfallthru_and_redirect): Likewise.
2610         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2611         (skip_insns_after_block): Likewise.
2612         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2613         EXIT_BLOCK_PTR.
2614         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2615         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2616         EXIT_BLOCK_PTR.
2617         (contains_no_active_insn_p): Likewise.
2618         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2619         (entry_of_function): Likewise.
2620         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2621         (fixup_new_cold_bb): Likewise.
2622         (patch_jump_insn): Likewise.
2623         (try_redirect_by_replacing_jump): Likewise.
2624         (block_label): Likewise.
2625         (could_fall_through): Likewise.
2626         (can_fallthru): Likewise.
2627         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2628         ENTRY_BLOCK_PTR macro.
2629         (rebuild_cgraph_edges): Likewise.
2630         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2631         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2632         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2633         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2634         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2635         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2636         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2637         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2638         macro.
2639         (reg_nonzero_bits_for_combine): Likewise.
2640         (set_nonzero_bits_and_sign_copies): Likewise.
2641         (combine_instructions): Likewise.
2642         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2643         EXIT_BLOCK_PTR.
2644         (bypass_conditional_jumps): Likewise.
2645         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2646         (find_implicit_sets): Likewise.
2647         (cprop_jump): Likewise.
2648         * cse.c (cse_cc_succs): Likewise.
2649         (cse_find_path): Likewise.
2650         * df-problems.c (df_lr_confluence_0): Likewise.
2651         * df-scan.c (df_entry_block_defs_collect): Remove usage of
2652         ENTRY_BLOCK_PTR macro.
2653         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2654         * dominance.c (iterate_fix_dominators): Remove usage of
2655         ENTRY_BLOCK_PTR macro.
2656         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2657         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2658         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2659         EXIT_BLOCK_PTR.
2660         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2661         macro.
2662         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2663         EXIT_BLOCK_PTR.
2664         * domwalk.c (cmp_bb_postorder): Likewise.
2665         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2666         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2667         macro.
2668         (sjlj_emit_function_enter): Likewise.
2669         * final.c (compute_alignments): Likewise.
2670         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2671         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2672         (reposition_prologue_and_epilogue_notes): Remove usage of
2673         EXIT_BLOCK_PTR macro.
2674         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2675         EXIT_BLOCK_PTR.
2676         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2677         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2678         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2679         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2680         (compute_code_hoist_vbeinout): Likewise.
2681         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2682         (pre_expr_reaches_here_p_work): Likewise.
2683         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2684         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2685         EXIT_BLOCK_PTR.
2686         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2687         ENTRY_BLOCK_PTR macro.
2688         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2689         macro.
2690         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2691         ENTRY_BLOCK_PTR macro.
2692         * graphite-scop-detection.c (build_scops): Likewise.
2693         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2694         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2695         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2696         macro.
2697         (unlink_bb_notes): Likewise.
2698         (create_check_block_twin): Likewise.
2699         (init_before_recovery): Likewise.
2700         (sched_extend_bb): Likewise.
2701         (priority): Likewise.
2702         * hw-doloop.c (reorder_loops): Likewise.
2703         (discover_loop): Likewise.
2704         * ifcvt.c (dead_or_predicable): Remove uses of macros:
2705         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2706         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2707         (block_has_only_trap): Likewise.
2708         (cond_exec_find_if_block): Likewise.
2709         (merge_if_block): Likewise.
2710         * ipa-inline-analysis.c (param_change_prob): Remove usage of
2711         ENTRY_BLOCK_PTR macro.
2712         (record_modified): Likewise.
2713         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2714         EXIT_BLOCK_PTR macro.
2715         (local_pure_const): Likewise.
2716         * ipa-split.c (split_function): Remove uses of macros:
2717         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2718         (find_split_points): Likewise.
2719         (consider_split): Likewise.
2720         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2721         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2722         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2723         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2724         * ira-emit.c (entered_from_non_parent_p): Remove usage of
2725         ENTRY_BLOCK_PTR macro.
2726         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2727         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2728         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2729         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2730         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2731         macro.
2732         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2733         EXIT_BLOCK_PTR.
2734         (compute_farthest): Likewise.
2735         (compute_available): Likewise.
2736         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2737         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2738         EXIT_BLOCK_PTR.
2739         (compute_earliest): Likewise.
2740         (compute_antinout_edge): Likewise.
2741         * loop-iv.c (simplify_using_initial_values): Remove usage of
2742         ENTRY_BLOCK_PTR macro.
2743         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2744         macro.
2745         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2746         macro.
2747         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2748         macro.
2749         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2750         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2751         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2752         macro.
2753         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2754         macro.
2755         * lto-streamer-out.c (output_cfg): Likewise.
2756         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2757         EXIT_BLOCK_PTR.
2758         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2759         * mode-switching.c (optimize_mode_switching): Likewise.
2760         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2761         * modulo-sched.c (rest_of_handle_sms): Likewise.
2762         (canon_loop): Likewise.
2763         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2764         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2765         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2766         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2767         macro.
2768         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2769         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2770         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2771         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2772         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2773         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2774         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2775         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2776         (gimple_predict_edge): Likewise.
2777         (probably_never_executed): Likewise.
2778         * profile.c (find_spanning_tree): Remove uses of macros:
2779         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2780         (branch_prob): Likewise.
2781         (compute_branch_probabilities): Likewise.
2782         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2783         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2784         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2785         (set_bb_counts): Likewise.
2786         (correct_negative_edge_counts): Likewise.
2787         (get_exec_counts): Likewise.
2788         (instrument_values): Likewise.
2789         (instrument_edges): Likewise.
2790         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2791         EXIT_BLOCK_PTR.
2792         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2793         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2794         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2795         (reg_to_stack): Likewise.
2796         * regs.h (REG_N_SETS): Likewise.
2797         * reload.c (find_dummy_reload): Likewise.
2798         (combine_reloads): Likewise.
2799         (push_reload): Likewise.
2800         * reload1.c (has_nonexceptional_receiver): Remove usage of
2801         EXIT_BLOCK_PTR macro.
2802         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2803         macro.
2804         (find_basic_block): Likewise.
2805         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2806         (schedule_ebbs): Likewise.
2807         * sched-int.h (sel_sched_p): Likewise.
2808         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2809         macro.
2810         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2811         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2812         EXIT_BLOCK_PTR.
2813         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2814         (extend_rgns): Likewise.
2815         (find_single_block_region): Likewise.
2816         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2817         ENTRY_BLOCK_PTR macro.
2818         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2819         (sel_create_recovery_block): Likewise.
2820         (bb_ends_ebb_p): Likewise.
2821         (sel_bb_end): Likewise.
2822         (sel_bb_head): Likewise.
2823         (free_lv_sets): Likewise.
2824         (init_lv_sets): Likewise.
2825         (tidy_control_flow): Likewise.
2826         (maybe_tidy_empty_bb): Likewise.
2827         * sel-sched-ir.h (_succ_iter_cond): Likewise.
2828         (_succ_iter_start): Likewise.
2829         (sel_bb_empty_or_nop_p): Likewise.
2830         (get_loop_exit_edges_unique_dests): Likewise.
2831         (inner_loop_header_p): Likewise.
2832         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2833         (find_block_for_bookkeeping): Likewise.
2834         * store-motion.c (remove_reachable_equiv_notes): Likewise.
2835         (insert_store): Likewise.
2836         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2837         ENTRY_BLOCK_PTR macro.
2838         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2839         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2840         (gate_tm_init): Likewise.
2841         (tm_region_init): Likewise.
2842         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2843         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2844         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2845         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2846         EXIT_BLOCK_PTR.
2847         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2848         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2849         EXIT_BLOCK_PTR.
2850         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2851         macro.
2852         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2853         EXIT_BLOCK_PTR.
2854         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2855         macro.
2856         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2857         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2858         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2859         (build_gimple_cfg): Likewise.
2860         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2861         (gimple_can_merge_blocks_p): Likewise.
2862         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2863         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2864         * tree-complex.c (update_parameter_components): Remove usage of
2865         ENTRY_BLOCK_PTR macro.
2866         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2867         EXIT_BLOCK_PTR macro.
2868         * tree-inline.c (tree_function_versioning): Remove uses of macros:
2869         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2870         (delete_unreachable_blocks_update_callgraph): Likewise.
2871         (initialize_cfun): Likewise.
2872         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2873         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2874         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2875         * tree-into-ssa.c (update_ssa): Likewise.
2876         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2877         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2878         (rewrite_into_ssa): Likewise.
2879         (rewrite_debug_stmt_uses): Likewise.
2880         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2881         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2882         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2883         ENTRY_BLOCK_PTR macro.
2884         * tree-scalar-evolution.h (block_before_loop): Likewise.
2885         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2886         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2887         EXIT_BLOCK_PTR.
2888         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2889         macro.
2890         (propagate_dereference_distances): Remove uses of macros:
2891         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2892         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2893         macro.
2894         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2895         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2896         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2897         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2898         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2899         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2900         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2901         (mark_control_dependent_edges_necessary): Remove uses of macros:
2902         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2903         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2904         ENTRY_BLOCK_PTR macro.
2905         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2906         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2907         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2908         (calculate_live_on_exit): Likewise.
2909         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2910         (loe_visit_block): Likewise.
2911         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
2912         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2913         (live_on_entry): Likewise.
2914         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
2915         EXIT_BLOCK_PTR macro.
2916         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
2917         ENTRY_BLOCK_PTR macro.
2918         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2919         (bound_difference): Likewise.
2920         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2921         of EXIT_BLOCK_PTR macro.
2922         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2923         of ENTRY_BLOCK_PTR macro.
2924         * tree-ssa-math-opts.c (register_division_in): Likewise.
2925         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2926         * tree-ssa-pre.c (compute_avail): Likewise.
2927         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2928         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2929         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2930         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2931         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2932         EXIT_BLOCK_PTR.
2933         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2934         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2935         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2936         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2937         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2938         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2939         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2940         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2941         (find_pdom): Likewise.
2942         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2943         * tree-stdarg.c (reachable_at_most_once): Likewise.
2944         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2945         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2946         (eliminate_tail_call): Likewise.
2947         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2948         macro.
2949         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2950         * var-tracking.c (vt_initialize): Remove uses of macros:
2951         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2952         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2953         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2954         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2955         EXIT_BLOCK_PTR.
2956         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2957         macro.
2958         * config/bfin/bfin.c (hwloop_optimize): Likewise.
2959         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2960         of EXIT_BLOCK_PTR macro.
2961         * config/arm/arm.c (require_pic_register): Remove usage of
2962         ENTRY_BLOCK_PTR macro.
2963         (arm_r3_live_at_start_p): Likewise.
2964         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2965         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2966         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2967         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2968         ENTRY_BLOCK_PTR macro.
2969         * config/i386/i386.c (ix86_count_insn): Likewise.
2970         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2971         (ix86_pad_short_function): Likewise.
2972         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2973         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2974         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2975         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2976         (ix86_expand_epilogue): Likewise.
2977         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2978         (ia64_expand_prologue): Likewise.
2980 2013-11-19  Catherine Moore  <clm@codesourcery.com>
2982         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2983         * config/mips/mips.opt (mfix-rm7000): New option.
2984         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2985         * config/mips/mips.c (mips_reorg_process_insns): Disable
2986         noreorder for TARGET_FIX_RM7000.
2988 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
2990         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2992 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2994         * config/arm/arm.c (arm_new_rtx_costs):
2995         Handle narrow mode add-shifts properly.
2996         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2997         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2998         Declare extern.
3000 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
3002         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
3004 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3006         * config/rs6000/vector.md ("mov<mode>"): Do not call
3007         rs6000_emit_le_vsx_move to move into or out of GPRs.
3008         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
3009         source and destination are not GPR hard regs.
3011 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3013         * basic-block.h (n_edges_for_function): Rename macro to...
3014         (n_edges_for_fn): ...this.
3015         (n_edges): Eliminate macro as work towards making uses of
3016         cfun be explicit.
3018         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
3019         to "n_edges_for_fn".
3021         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
3022         (clear_edges): Likewise.
3023         (free_edge): Likewise.
3024         * cfghooks.c (dump_flow_info): Likewise.
3025         * cprop.c (is_too_expensive): Likewise.
3026         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3027         * gcse.c (is_too_expensive): Likewise.
3028         (prune_insertions_deletions): Likewise.
3029         * mcf.c (create_fixup_graph): Likewise.
3030         * sched-rgn.c (haifa_find_rgns): Likewise.
3031         * tree-cfg.c (gimple_dump_cfg): Likewise.
3032         * var-tracking.c (variable_tracking_main_1): Likewise.
3034 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3036         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
3037         length lines.
3039 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3041         * config/aarch64/aarch64.md
3042         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
3044 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3046         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
3048 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
3050         * varasm.c (align_variable): Give error instead of warning for
3051         unsupported alignment.
3052         (assemble_noswitch_variable): Likewise.
3054 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
3056         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
3057         cb_file_change.
3059 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
3061         * loop-doloop.c (doloop_optimize_loops): Remove unused
3062         loop iterator argument from FOR_EACH_LOOP.
3064 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3066         Convert gimple types from a union to C++ inheritance.
3067         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
3068         * coretypes.h (union gimple_statement_d): Remove declaration.
3069         (gimple): Convert from being a "union gimple_statement_d *"
3070         to a "struct gimple_statement_base *".
3071         (const_gimple): Likewise (with "const").
3072         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
3073         (ggc_alloc_cleared_gimple_statement_stat): ...this.
3074         * gimple-pretty-print.c (debug): Change parameter from a
3075         "gimple_statement_d &" to a "gimple_statement_base &".
3076         (debug): Change parameter from a "gimple_statement_d *" to
3077         a "gimple_statement_base *".
3078         * gimple-pretty-print.h (debug): Update declarations as above.
3079         * gimple.c (gimple_alloc_stat): Update for renaming of
3080         ggc_alloc_cleared_gimple_statement_d_stat to
3081         ggc_alloc_cleared_gimple_statement_stat.
3082         * gimple.h: Include "is-a.h" for use by is_a_helper
3083         specializations in followup autogenerated patch.
3084         (struct gimple statement_base): Make this type usable as a base
3085         class by adding "desc", "tag" and "variable_size" to GTY, thus
3086         using opting-in to gengtype's support for simple inheritance.
3087         (gimple_statement_with_ops_base): Convert to a subclass of
3088         gimple_statement_base, dropping initial "gsbase" field.  Note that
3089         this type is abstract, with no GSS_ value, and thus no GTY tag value.
3090         (gimple_statement_with_ops): Convert to a subclass of
3091         gimple_statement_with_ops_base, dropping initial "opbase" field.
3092         Add tag value to GTY marking.  Update marking of op field to
3093         reflect how num_ops field is accessed via inheritance.
3094         (gimple_statement_with_memory_ops_base): Convert to a subclass of
3095         gimple_statement_with_ops_base, dropping initial "opbase" field.
3096         Add tag value to GTY marking.
3097         (gimple_statement_with_memory_ops): Convert to a subclass of
3098         public gimple_statement_with_memory_ops_base, dropping initial
3099         "membase" field.  Add tag value to GTY marking.  Update marking
3100         of op field to reflect how num_ops field is accessed via inheritance.
3101         (gimple_statement_call): Analogous changes that also update the
3102         marking of the "u" union.
3103         (gimple_statement_omp): Convert to a subclass of
3104         gimple_statement_base, dropping initial "gsbase" field, adding
3105         tag value to GTY marking.
3106         (gimple_statement_bind): Likewise.
3107         (gimple_statement_catch): Likewise.
3108         (gimple_statement_eh_filter): Likewise.
3109         (gimple_statement_eh_else): Likewise.
3110         (gimple_statement_eh_mnt): Likewise.
3111         (gimple_statement_phi): Likewise.
3112         (gimple_statement_eh_ctrl): Likewise.
3113         (gimple_statement_try): Likewise.
3114         (gimple_statement_wce): Likewise.
3115         (gimple_statement_asm): Convert to a subclass of
3116         gimple_statement_with_memory_ops_base, dropping initial
3117         "membase" field, adding tag value to GTY marking, and updating
3118         marking of op field.
3119         (gimple_statement_omp_critical): Convert to a subclass of
3120         gimple_statement_omp, dropping initial "omp" field, adding tag
3121         value to GTY marking.
3122         (gimple_statement_omp_for): Likewise.
3123         (gimple_statement_omp_parallel): Likewise.
3124         (gimple_statement_omp_task): Convert to a subclass of
3125         gimple_statement_omp_parallel, dropping initial "par" field,
3126         adding tag value to GTY marking.
3127         (gimple_statement_omp_sections): Convert to a subclass of
3128         gimple_statement_omp, dropping initial "omp" field, adding
3129         tag value to GTY marking.
3130         (gimple_statement_omp_continue): Convert to a subclass of
3131         gimple_statement_base, dropping initial "gsbase" field, adding
3132         tag value to GTY marking.
3133         (gimple_statement_omp_single): Convert to a subclass of
3134         gimple_statement_omp, dropping initial "omp" field, adding
3135         tag value to GTY marking.
3136         (gimple_statement_omp_atomic_load): Convert to a subclass of
3137         gimple_statement_base, dropping initial "gsbase" field, adding
3138         tag value to GTY marking.
3139         (gimple_statement_omp_atomic_store): Convert to a subclass of
3140         gimple_statement_base, dropping initial "gsbase" field, adding
3141         tag value to GTY marking.
3142         (gimple_statement_transaction): Convert to a subclass of
3143         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3144         field, adding tag value to GTY marking.
3145         (union gimple_statement_d): Remove.
3146         * system.h (CONST_CAST_GIMPLE): Update to use
3147         "struct gimple_statement_base *" rather than
3148         "union gimple_statement_d *".
3149         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3150         gimple_statement_d to gimple_statement_base.
3152         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3153         (gimple_set_use_ops): Port from union to usage of as_a.
3154         (gimple_set_vuse): Likewise.
3155         (gimple_set_vdef): Likewise.
3156         (gimple_call_internal_fn): Port from union to a static_cast,
3157         given that the type has already been asserted.
3158         (gimple_omp_body_ptr): Port from unchecked union usage to
3159         a static_cast.
3160         (gimple_omp_set_body): Likewise.
3162         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3163         gimple types to a true class hierarchy.
3164         (update_call_edge_frequencies): Likewise.
3165         (gsi_insert_seq_nodes_before): Likewise.
3166         (gsi_insert_seq_nodes_after): Likewise.
3167         (gsi_split_seq_after): Likewise.
3168         (gsi_set_stmt): Likewise.
3169         (gsi_split_seq_before): Likewise.
3170         (gsi_remove): Likewise.
3171         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3172         (gsi_next): Likewise.
3173         (gsi_prev): Likewise.
3174         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3175         * gimple-ssa.h (gimple_vuse_op): Likewise.
3176         (gimple_vdef_op): Likewise.
3177         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3178         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3179         * gimple.c (gimple_set_code): Likewise.
3180         (gimple_alloc_stat): Likewise.
3181         (gimple_set_subcode): Likewise.
3182         (gimple_build_call_internal_1): Likewise.
3183         (gimple_check_failed): Likewise.
3184         (gimple_call_flags): Likewise.
3185         (gimple_set_bb): Likewise.
3186         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3187         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3188         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3189         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3190         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3191         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3192         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3193         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3194         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3195         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3196         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3197         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3198         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3199         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3200         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3201         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3202         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3203         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3204         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3205         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3206         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3207         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3208         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3209         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3210         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3211         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3212         Likewise.
3213         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3214         Likewise.
3215         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3216         Likewise.
3217         (is_a_helper <const gimple_statement_omp_atomic_store>
3218         (const_gimple)): Likewise.
3219         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3220         Likewise.
3221         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3222         Likewise.
3223         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3224         Likewise.
3225         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3226         Likewise.
3227         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3228         Likewise.
3229         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3230         Likewise.
3231         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3232         Likewise.
3233         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3234         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3235         Likewise.
3236         (gimple_seq_last): Update for conversion of gimple types to a true
3237         class hierarchy.
3238         (gimple_seq_set_last): Likewise.
3239         (gimple_code): Likewise.
3240         (gimple_bb): Likewise.
3241         (gimple_block): Likewise.
3242         (gimple_set_block): Likewise.
3243         (gimple_location): Likewise.
3244         (gimple_location_ptr): Likewise.
3245         (gimple_set_location): Likewise.
3246         (gimple_no_warning_p): Likewise.
3247         (gimple_set_no_warning): Likewise.
3248         (gimple_set_visited): Likewise.
3249         (gimple_visited_p): Likewise.
3250         (gimple_set_plf): Likewise.
3251         (gimple_plf): Likewise.
3252         (gimple_set_uid): Likewise.
3253         (gimple_uid): Likewise.
3254         (gimple_init_singleton): Likewise.
3255         (gimple_modified_p): Likewise.
3256         (gimple_set_modified): Likewise.
3257         (gimple_expr_code): Likewise.
3258         (gimple_has_volatile_ops): Likewise.
3259         (gimple_set_has_volatile_ops): Likewise.
3260         (gimple_omp_subcode): Likewise.
3261         (gimple_omp_set_subcode): Likewise.
3262         (gimple_omp_return_set_nowait): Likewise.
3263         (gimple_omp_section_set_last): Likewise.
3264         (gimple_omp_parallel_set_combined_p): Likewise.
3265         (gimple_omp_atomic_set_need_value): Likewise.
3266         (gimple_omp_atomic_set_seq_cst): Likewise.
3267         (gimple_num_ops): Likewise.
3268         (gimple_set_num_ops): Likewise.
3269         (gimple_assign_nontemporal_move_p): Likewise.
3270         (gimple_assign_set_nontemporal_move): Likewise.
3271         (gimple_assign_rhs_code): Likewise.
3272         (gimple_assign_set_rhs_code): Likewise.
3273         (gimple_call_internal_p): Likewise.
3274         (gimple_call_with_bounds_p): Likewise.
3275         (gimple_call_set_with_bounds): Likewise.
3276         (gimple_call_set_tail): Likewise.
3277         (gimple_call_tail_p): Likewise.
3278         (gimple_call_set_return_slot_opt): Likewise.
3279         (gimple_call_return_slot_opt_p): Likewise.
3280         (gimple_call_set_from_thunk): Likewise.
3281         (gimple_call_from_thunk_p): Likewise.
3282         (gimple_call_set_va_arg_pack): Likewise.
3283         (gimple_call_va_arg_pack_p): Likewise.
3284         (gimple_call_set_nothrow): Likewise.
3285         (gimple_call_set_alloca_for_var): Likewise.
3286         (gimple_call_alloca_for_var_p): Likewise.
3287         (gimple_call_copy_flags): Likewise.
3288         (gimple_cond_code): Likewise.
3289         (gimple_cond_set_code): Likewise.
3290         (gimple_cond_make_false): Likewise.
3291         (gimple_cond_make_true): Likewise.
3292         (gimple_asm_volatile_p): Likewise.
3293         (gimple_asm_set_volatile): Likewise.
3294         (gimple_asm_set_input): Likewise.
3295         (gimple_asm_input_p): Likewise.
3296         (gimple_try_kind): Likewise.
3297         (gimple_try_set_kind): Likewise.
3298         (gimple_try_catch_is_cleanup): Likewise.
3299         (gimple_try_set_catch_is_cleanup): Likewise.
3300         (gimple_wce_cleanup_eh_only): Likewise.
3301         (gimple_wce_set_cleanup_eh_only): Likewise.
3302         (gimple_debug_bind_p): Likewise.
3303         (gimple_debug_source_bind_p): Likewise.
3304         (gimple_omp_for_set_kind): Likewise.
3305         (gimple_omp_for_set_combined_p): Likewise.
3306         (gimple_omp_for_set_combined_into_p): Likewise.
3307         (gimple_omp_target_set_kind): Likewise.
3308         (gimple_transaction_subcode): Likewise.
3309         (gimple_transaction_set_subcode): Likewise.
3310         (gimple_predict_predictor): Likewise.
3311         (gimple_predict_set_predictor): Likewise.
3312         (gimple_predict_outcome): Likewise.
3313         (gimple_predict_set_outcome): Likewise.
3314         (gimple_transaction_set_label): Likewise.
3315         (gimple_transaction_set_body): Likewise.
3316         (gimple_transaction_label_ptr): Likewise.
3317         (gimple_transaction_label): Likewise.
3318         (gimple_transaction_body_ptr): Likewise.
3319         (gimple_omp_continue_set_control_use): Likewise.
3320         (gimple_omp_continue_control_use_ptr): Likewise.
3321         (gimple_omp_continue_control_use): Likewise.
3322         (gimple_omp_continue_set_control_def): Likewise.
3323         (gimple_omp_continue_control_def_ptr): Likewise.
3324         (gimple_omp_continue_control_def): Likewise.
3325         (gimple_omp_atomic_load_rhs_ptr): Likewise.
3326         (gimple_omp_atomic_load_rhs): Likewise.
3327         (gimple_omp_atomic_load_set_rhs): Likewise.
3328         (gimple_omp_atomic_load_lhs_ptr): Likewise.
3329         (gimple_omp_atomic_load_lhs): Likewise.
3330         (gimple_omp_atomic_load_set_lhs): Likewise.
3331         (gimple_omp_atomic_store_val_ptr): Likewise.
3332         (gimple_omp_atomic_store_val): Likewise.
3333         (gimple_omp_atomic_store_set_val): Likewise.
3334         (gimple_omp_for_cond): Likewise.
3335         (gimple_omp_for_set_cond): Likewise.
3336         (gimple_omp_sections_set_control): Likewise.
3337         (gimple_omp_sections_control_ptr): Likewise.
3338         (gimple_omp_sections_control): Likewise.
3339         (gimple_omp_sections_set_clauses): Likewise.
3340         (gimple_omp_sections_clauses_ptr): Likewise.
3341         (gimple_omp_sections_clauses): Likewise.
3342         (gimple_omp_teams_set_clauses): Likewise.
3343         (gimple_omp_teams_clauses_ptr): Likewise.
3344         (gimple_omp_teams_clauses): Likewise.
3345         (gimple_omp_target_set_data_arg): Likewise.
3346         (gimple_omp_target_data_arg_ptr): Likewise.
3347         (gimple_omp_target_data_arg): Likewise.
3348         (gimple_omp_target_set_child_fn): Likewise.
3349         (gimple_omp_target_child_fn_ptr): Likewise.
3350         (gimple_omp_target_child_fn): Likewise.
3351         (gimple_omp_target_set_clauses): Likewise.
3352         (gimple_omp_target_clauses_ptr): Likewise.
3353         (gimple_omp_target_clauses): Likewise.
3354         (gimple_omp_single_set_clauses): Likewise.
3355         (gimple_omp_single_clauses_ptr): Likewise.
3356         (gimple_omp_single_clauses): Likewise.
3357         (gimple_omp_task_set_arg_align): Likewise.
3358         (gimple_omp_task_arg_align_ptr): Likewise.
3359         (gimple_omp_task_arg_align): Likewise.
3360         (gimple_omp_task_set_arg_size): Likewise.
3361         (gimple_omp_task_arg_size_ptr): Likewise.
3362         (gimple_omp_task_arg_size): Likewise.
3363         (gimple_omp_task_set_copy_fn): Likewise.
3364         (gimple_omp_task_copy_fn_ptr): Likewise.
3365         (gimple_omp_task_copy_fn): Likewise.
3366         (gimple_omp_task_set_data_arg): Likewise.
3367         (gimple_omp_task_data_arg_ptr): Likewise.
3368         (gimple_omp_task_data_arg): Likewise.
3369         (gimple_omp_task_set_child_fn): Likewise.
3370         (gimple_omp_task_child_fn_ptr): Likewise.
3371         (gimple_omp_task_child_fn): Likewise.
3372         (gimple_omp_task_set_clauses): Likewise.
3373         (gimple_omp_task_clauses_ptr): Likewise.
3374         (gimple_omp_task_clauses): Likewise.
3375         (gimple_omp_parallel_set_data_arg): Likewise.
3376         (gimple_omp_parallel_data_arg_ptr): Likewise.
3377         (gimple_omp_parallel_data_arg): Likewise.
3378         (gimple_omp_parallel_set_child_fn): Likewise.
3379         (gimple_omp_parallel_child_fn_ptr): Likewise.
3380         (gimple_omp_parallel_child_fn): Likewise.
3381         (gimple_omp_parallel_set_clauses): Likewise.
3382         (gimple_omp_parallel_clauses_ptr): Likewise.
3383         (gimple_omp_parallel_clauses): Likewise.
3384         (gimple_omp_for_set_pre_body): Likewise.
3385         (gimple_omp_for_pre_body_ptr): Likewise.
3386         (gimple_omp_for_set_incr): Likewise.
3387         (gimple_omp_for_incr_ptr): Likewise.
3388         (gimple_omp_for_incr): Likewise.
3389         (gimple_omp_for_set_final): Likewise.
3390         (gimple_omp_for_final_ptr): Likewise.
3391         (gimple_omp_for_final): Likewise.
3392         (gimple_omp_for_set_initial): Likewise.
3393         (gimple_omp_for_initial_ptr): Likewise.
3394         (gimple_omp_for_initial): Likewise.
3395         (gimple_omp_for_set_index): Likewise.
3396         (gimple_omp_for_index_ptr): Likewise.
3397         (gimple_omp_for_index): Likewise.
3398         (gimple_omp_for_collapse): Likewise.
3399         (gimple_omp_for_set_clauses): Likewise.
3400         (gimple_omp_for_clauses_ptr): Likewise.
3401         (gimple_omp_for_clauses): Likewise.
3402         (gimple_omp_critical_set_name): Likewise.
3403         (gimple_omp_critical_name_ptr): Likewise.
3404         (gimple_omp_critical_name): Likewise.
3405         (gimple_eh_dispatch_set_region): Likewise.
3406         (gimple_eh_dispatch_region): Likewise.
3407         (gimple_resx_set_region): Likewise.
3408         (gimple_resx_region): Likewise.
3409         (gimple_phi_set_arg): Likewise.
3410         (gimple_phi_arg): Likewise.
3411         (gimple_phi_set_result): Likewise.
3412         (gimple_phi_result_ptr): Likewise.
3413         (gimple_phi_result): Likewise.
3414         (gimple_phi_num_args): Likewise.
3415         (gimple_phi_capacity): Likewise.
3416         (gimple_wce_set_cleanup): Likewise.
3417         (gimple_wce_cleanup_ptr): Likewise.
3418         (gimple_try_set_cleanup): Likewise.
3419         (gimple_try_set_eval): Likewise.
3420         (gimple_try_cleanup_ptr): Likewise.
3421         (gimple_try_eval_ptr): Likewise.
3422         (gimple_eh_else_set_e_body): Likewise.
3423         (gimple_eh_else_set_n_body): Likewise.
3424         (gimple_eh_else_e_body_ptr): Likewise.
3425         (gimple_eh_else_n_body_ptr): Likewise.
3426         (gimple_eh_must_not_throw_set_fndecl): Likewise.
3427         (gimple_eh_must_not_throw_fndecl): Likewise.
3428         (gimple_eh_filter_set_failure): Likewise.
3429         (gimple_eh_filter_set_types): Likewise.
3430         (gimple_eh_filter_failure_ptr): Likewise.
3431         (gimple_eh_filter_types_ptr): Likewise.
3432         (gimple_eh_filter_types): Likewise.
3433         (gimple_catch_set_handler): Likewise.
3434         (gimple_catch_set_types): Likewise.
3435         (gimple_catch_handler_ptr): Likewise.
3436         (gimple_catch_types_ptr): Likewise.
3437         (gimple_catch_types): Likewise.
3438         (gimple_asm_string): Likewise.
3439         (gimple_asm_set_label_op): Likewise.
3440         (gimple_asm_label_op): Likewise.
3441         (gimple_asm_set_clobber_op): Likewise.
3442         (gimple_asm_clobber_op): Likewise.
3443         (gimple_asm_set_output_op): Likewise.
3444         (gimple_asm_output_op_ptr): Likewise.
3445         (gimple_asm_output_op): Likewise.
3446         (gimple_asm_set_input_op): Likewise.
3447         (gimple_asm_input_op_ptr): Likewise.
3448         (gimple_asm_input_op): Likewise.
3449         (gimple_asm_nlabels): Likewise.
3450         (gimple_asm_nclobbers): Likewise.
3451         (gimple_asm_noutputs): Likewise.
3452         (gimple_asm_ninputs): Likewise.
3453         (gimple_bind_set_block): Likewise.
3454         (gimple_bind_block): Likewise.
3455         (gimple_bind_add_seq): Likewise.
3456         (gimple_bind_add_stmt): Likewise.
3457         (gimple_bind_set_body): Likewise.
3458         (gimple_bind_body_ptr): Likewise.
3459         (gimple_bind_append_vars): Likewise.
3460         (gimple_bind_set_vars): Likewise.
3461         (gimple_bind_vars): Likewise.
3462         (gimple_call_clobber_set): Likewise.
3463         (gimple_call_use_set): Likewise.
3464         (gimple_call_set_internal_fn): Likewise.
3465         (gimple_call_set_fntype): Likewise.
3466         (gimple_call_fntype): Likewise.
3467         (gimple_omp_return_lhs_ptr): Likewise.
3468         (gimple_omp_return_lhs): Likewise.
3469         (gimple_omp_return_set_lhs): Likewise.
3470         (gimple_omp_taskreg_set_data_arg): Likewise.
3471         (gimple_omp_taskreg_data_arg_ptr): Likewise.
3472         (gimple_omp_taskreg_data_arg): Likewise.
3473         (gimple_omp_taskreg_set_child_fn): Likewise.
3474         (gimple_omp_taskreg_child_fn_ptr): Likewise.
3475         (gimple_omp_taskreg_child_fn): Likewise.
3476         (gimple_omp_taskreg_set_clauses): Likewise.
3477         (gimple_omp_taskreg_clauses_ptr): Likewise.
3478         (gimple_omp_taskreg_clauses): Likewise.
3479         (gimple_vuse): Likewise.
3480         (gimple_vdef): Likewise.
3481         (gimple_vuse_ptr): Likewise.
3482         (gimple_vdef_ptr): Likewise.
3483         * tree-inline.c (copy_debug_stmt): Likewise.
3484         * tree-phinodes.c (make_phi_node): Likewise.
3486         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3487         (is_a_helper <gimple_statement_with_ops>::test): New.
3488         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3489         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3491         * gimple-streamer-in.c (input_gimple_stmt): Port from union
3492         access to use of as_a.
3493         * gimple.c (gimple_build_asm_1): Likewise.
3494         (gimple_build_try): Likewise.  Also, return a specific subclass
3495         rather than just gimple.
3496         (gimple_build_resx): Port from union access to use of as_a.
3497         (gimple_build_eh_dispatch): Likewise.
3498         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
3499         now that gengtype no longer provides a typed allocator function.
3500         (gimple_copy): Likewise.
3501         * gimple.h (gimple_build_try): Return a specific subclass rather
3502         than just gimple.
3503         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3504         with subclass access by making use of new return type of
3505         gimple_build_try.
3506         * tree-phinodes.c: (allocate_phi_node): Return a
3507         "gimple_statement_phi *" rather than just a gimple.
3508         (resize_phi_node): Likewise.
3509         (make_phi_node): Replace union access with subclass access by
3510         making use of new return type of allocate_phi_node.
3511         (reserve_phi_args_for_new_edge): Replace union access with as_a.
3512         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3513         than just a gimple.
3514         (remove_phi_args): Update for change to remove_phi_arg_num.
3516         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3517         code field to reflect inheritance, rather than embedding of
3518         the base gimple type.
3520 2013-11-19  Richard Biener  <rguenther@suse.de>
3522         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3523         and destructor and make fel_next a member function.
3524         (fel_next): Transform into ...
3525         (loop_iterator::next): ... this.
3526         (fel_init): Transform into ...
3527         (loop_iterator::loop_iterator): ... this.
3528         (loop_iterator::~loop_iterator): New.
3529         (FOR_EACH_LOOP): Remove loop-iterator argument.
3530         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3531         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3532         graphite-clast-to-gimple.c, graphite-scop-detection.c,
3533         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3534         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3535         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3536         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3537         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3538         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3539         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3540         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3541         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3542         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
3543         FOR_EACH_LOOP_BREAK with break.
3545 2013-11-19  Richard Biener  <rguenther@suse.de>
3547         PR tree-optimization/59164
3548         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3549         Uncomment assert.
3550         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3551         whether we can create an epilogue loop to reflect thecases where
3552         we create one.
3554 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
3556         * graphite-sese-to-poly.c: Include expr.h.
3558 2013-11-19  Richard Biener  <rguenther@suse.de>
3560         PR middle-end/58956
3561         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3562         loads into stmts that may clobber it.
3564 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
3566         * cgraphunit.c (symtab_terminator): New variable.
3567         (queued_nodes): Renamed from first.  Use symtab_terminator as
3568         initializer.
3569         (analyze_functions): Adjust accordingly.
3570         (cgraph_process_new_functions): Return void.
3571         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3573 2013-11-19  Marek Polacek  <polacek@redhat.com>
3575         * opts.c (common_handle_option): Add -fsanitize=null option.
3576         Turn off -fdelete-null-pointer-checks option when doing the
3577         NULL pointer checking.
3578         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3579         * tree-pass.h (make_pass_ubsan): Declare.
3580         (make_pass_sanopt): Declare.
3581         * timevar.def (TV_TREE_UBSAN): New timevar.
3582         * passes.def: Add pass_sanopt and pass_ubsan.
3583         * ubsan.h (ubsan_null_ckind): New enum.
3584         (ubsan_mismatch_data): New struct.
3585         (ubsan_expand_null_ifn): Declare.
3586         (ubsan_create_data): Adjust declaration.
3587         (ubsan_type_descriptor): Likewise.
3588         * asan.c: Include "ubsan.h".
3589         (pass_data_sanopt): New pass.
3590         (execute_sanopt): New function.
3591         (gate_sanopt): Likewise.
3592         (make_pass_sanopt): Likewise.
3593         (class pass_sanopt): New class.
3594         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3595         gimple-iterator.h and cfgloop.h.
3596         (PROB_VERY_UNLIKELY): Define.
3597         (tree_type_map_hash): New function.
3598         (ubsan_type_descriptor): Add new parameter.
3599         Improve type name generation.
3600         (ubsan_create_data): Add new parameter.  Add pointer data into
3601         ubsan structure.
3602         (ubsan_expand_null_ifn): New function.
3603         (instrument_member_call): Likewise.
3604         (instrument_mem_ref): Likewise.
3605         (instrument_null): Likewise.
3606         (ubsan_pass): Likewise.
3607         (gate_ubsan): Likewise.
3608         (make_pass_ubsan): Likewise.
3609         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3610         (class pass_ubsan): New class.
3611         (pass_data_ubsan): New pass.
3612         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3613         * internal-fn.c (expand_UBSAN_NULL): New function.
3614         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3615         even when !flag_toplevel_reorder.
3616         * internal-fn.def (UBSAN_NULL): New.
3618 2013-11-19  Jan Hubicka  <jh@suse.cz>
3620         * cgraph.c (cgraph_create_indirect_edge): Use
3621         get_polymorphic_call_info.
3622         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3623         maybe_in_construction and maybe_derived_type.
3624         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3625         (ipa_dummy_polymorphic_call_context): New global var.
3626         (possible_polymorphic_call_targets): Add context paramter.
3627         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3628         (possible_polymorphic_call_target_p): Likewise.
3629         (get_polymorphic_call_info): New function.
3630         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3631         (add_type_duplicate): Remove forgotten debug output.
3632         (method_class_type): Add sanity check.
3633         (maybe_record_node): Add FINALP parameter.
3634         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3635         by info by get_binfo_at_offset.
3636         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3637         parameters; pass them to record-binfo.
3638         (polymorphic_call_target_d): Add context and FINAL.
3639         (polymorphic_call_target_hasher::hash): Hash context.
3640         (polymorphic_call_target_hasher::equal): Compare context.
3641         (free_polymorphic_call_targets_hash):
3642         (get_class_context): New function.
3643         (contains_type_p): New function.
3644         (get_polymorphic_call_info): New function.
3645         (walk_bases): New function.
3646         (possible_polymorphic_call_targets): Add context parameter; honnor it.
3647         (dump_possible_polymorphic_call_targets): Dump context.
3648         (possible_polymorphic_call_target_p): Add context.
3649         (update_type_inheritance_graph): Update comment.s
3650         (ipa_set_jf_known_type): Assert that compoentn type is known.
3651         (ipa_note_param_call): Do not tamper with offsets.
3652         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3653         outer type.
3654         (update_indirect_edges_after_inlining): Likewise.
3655         (ipa_write_indirect_edge_info): Stream new fields.
3656         (ipa_read_indirect_edge_info): Stream in new fields.
3658 2013-11-19  Jan Hubicka  <jh@suse.cz>
3660         * tree-pretty-print.c (dump_generic_node): Print class type of
3661         OBJ_TYPE_REF.
3663 2013-11-19  Joey Ye  <joey.ye@arm.com>
3665         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3666         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3667         for new option.
3668         * config/arm/arm.c (arm_option_override): By default disable
3669         -marm-pic-data-is-text-relative.
3670         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3671         (arm_assemble_integer): Likewise.
3672         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3673         New macro to initialize -marm-pic-data-is-text-relative.
3675 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
3677         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3678         (address_cost_data): New field.
3679         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3680         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
3682 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
3684         * config/aarch64/aarch64.md: Remove v8type from all insns.
3686 2013-11-19  Richard Biener  <rguenther@suse.de>
3688         PR tree-optimization/57517
3689         * tree-predcom.c (combinable_refs_p): Verify the combination
3690         is always executed when the refs are.
3692 2013-11-19  Jeff Law  <law@redhat.com>
3694         * tree-ssa-threadupdate.c: Include ssa-iterators.h
3695         (copy_phi_arg_into_existing_phi): New function.
3696         (any_remaining_duplicated_blocks): Likewise.
3697         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3698         blocks on a jump threading path.
3700         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
3701         thread through a joiner which has the latch edge.
3703 2013-11-19  Jan Hubicka  <jh@suse.cz>
3705         * md.texi (setmem): Document new parameter.
3706         * optabs.c (maybe_gen_insn): Support 9 operands.
3707         * builtins.c (determine_block_size): Add probable_max_size;
3708         support anti-ranges.
3709         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3710         probable_max_size.
3711         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3712         emit_block_move, clear_storage_hints, set_storage_via_setmem):
3713         Likewise.
3714         * expr.h (emit_block_move_hints, clear_storage_hints,
3715         set_storage_via_setmem): Update prototype.
3716         * i386.md (setmem, movmem patterns): Add 9th operand.
3717         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3718         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3719         argument; pass it to decide_alg.
3721 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3723         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3724         (n_basic_blocks_for_fn): ...this.
3726         (n_basic_blocks): Eliminate macro as work towards making uses of
3727         cfun be explicit.
3729         * cfgloop.c (init_loops_structure): Update for renaming of
3730         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3731         * graph.c (draw_cfg_nodes_no_loops): Likewise.
3732         * ipa-utils.c (ipa_merge_profiles): Likewise.
3733         * lto-streamer-in.c (make_new_block): Likewise.
3734         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3735         (dump_function_to_file): Likewise.
3737         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3738         macro with "n_basic_blocks_for_fn (cfun)".
3739         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3740         (duplicate_computed_gotos): Likewise.
3741         (reorder_basic_blocks): Likewise.
3742         * bt-load.c (augment_live_range): Likewise.
3743         * cfg.c (expunge_block): Likewise.
3744         (compact_blocks): Likewise.
3745         * cfganal.c (single_pred_before_succ_order): Likewise.
3746         (compute_idf): Likewise.
3747         (flow_dfs_compute_reverse_init): Likewise.
3748         (pre_and_rev_post_order_compute): Likewise.
3749         (pre_and_rev_post_order_compute_fn): Likewise.
3750         (inverted_post_order_compute): Likewise.
3751         (post_order_compute): Likewise.
3752         (print_edge_list): Likewise.
3753         (find_unreachable_blocks): Likewise.
3754         (mark_dfs_back_edges): Likewise.
3755         * cfgcleanup.c (try_optimize_cfg): Likewise.
3756         (try_forward_edges): Likewise.
3757         * cfghooks.c (dump_flow_info): Likewise.
3758         * cfgloop.c (verify_loop_structure): Likewise.
3759         (get_loop_body): Likewise.
3760         (flow_loops_find): Likewise.
3761         * cfgloopmanip.c (add_loop): Likewise.
3762         (remove_path): Likewise.
3763         (find_path): Likewise.
3764         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3765         (rtl_verify_bb_layout): Likewise.
3766         (entry_of_function): Likewise.
3767         (rtl_create_basic_block): Likewise.
3768         * coverage.c (coverage_compute_cfg_checksum): Likewise.
3769         * cprop.c (one_cprop_pass): Likewise.
3770         (is_too_expensive): Likewise.
3771         * df-core.c (df_compute_cfg_image): Likewise.
3772         (df_compact_blocks): Likewise.
3773         (df_worklist_dataflow_doublequeue): Likewise.
3774         * dominance.c (calculate_dominance_info): Likewise.
3775         (calc_dfs_tree): Likewise.
3776         (calc_dfs_tree_nonrec): Likewise.
3777         (init_dom_info): Likewise.
3778         * domwalk.c (cmp_bb_postorder): Likewise.
3779         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3780         (generate_setjmp_warnings): Likewise.
3781         * fwprop.c (build_single_def_use_links): Likewise.
3782         * gcse.c (is_too_expensive): Likewise.
3783         (one_code_hoisting_pass): Likewise.
3784         (one_pre_gcse_pass): Likewise.
3785         * graphite.c (graphite_initialize): Likewise.
3786         * haifa-sched.c (haifa_sched_init): Likewise.
3787         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3788         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3789         * ira-build.c (ira_build): Likewise.
3790         * lcm.c (compute_nearerout): Likewise.
3791         (compute_available): Likewise.
3792         (compute_laterin): Likewise.
3793         (compute_antinout_edge): Likewise.
3794         * lra-lives.c (lra_create_live_ranges): Likewise.
3795         * lra.c (has_nonexceptional_receiver): Likewise.
3796         * mcf.c (create_fixup_graph): Likewise.
3797         * profile.c (branch_prob): Likewise.
3798         * reg-stack.c (convert_regs_2): Likewise.
3799         * regrename.c (regrename_analyze): Likewise.
3800         * reload1.c (has_nonexceptional_receiver): Likewise.
3801         * reorg.c (dbr_schedule): Likewise.
3802         * sched-deps.c (sched_deps_init): Likewise.
3803         * sched-ebb.c (schedule_ebbs): Likewise.
3804         * sched-rgn.c (extend_regions): Likewise.
3805         (schedule_insns): Likewise.
3806         (sched_rgn_init): Likewise.
3807         (extend_rgns): Likewise.
3808         (haifa_find_rgns): Likewise.
3809         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3810         (sel_recompute_toporder): Likewise.
3811         * sel-sched.c (run_selective_scheduling): Likewise.
3812         * store-motion.c (one_store_motion_pass): Likewise.
3813         (remove_reachable_equiv_notes): Likewise.
3814         * tracer.c (tracer): Likewise.
3815         (tail_duplicate): Likewise.
3816         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3817         (dump_cfg_stats): Likewise.
3818         (gimple_dump_cfg): Likewise.
3819         (create_bb): Likewise.
3820         (build_gimple_cfg): Likewise.
3821         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3822         * tree-inline.c (optimize_inline_calls): Likewise.
3823         (fold_marked_statements): Likewise.
3824         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3825         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3826         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3827         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3828         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3829         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3830         * tree-ssa-pre.c (do_pre): Likewise.
3831         (init_pre): Likewise.
3832         (compute_avail): Likewise.
3833         * tree-ssa-reassoc.c (init_reassoc): Likewise.
3834         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3835         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3836         (init_worklist): Likewise.
3837         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3838         * var-tracking.c (variable_tracking_main_1): Likewise.
3839         (vt_find_locations): Likewise.
3840         (vt_stack_adjustments): Likewise.
3841         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3842         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3844 2013-11-18  Jan Hubicka  <jh@suse.cz>
3846         * profile.c (compute_branch_probabilities): Do not sanity check
3847         run_max.
3849 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3851         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3852         GET_MODE_PRECISION.
3853         * fold-const.c (fold_single_bit_test_into_sign_test)
3854         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3856 2013-11-18  Teresa Johnson  <tejohnson@google.com>
3858         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3859         cfglayout after bb reordering.
3860         * passes.def: Move compgotos before bb reordering since it goes into
3861         cfglayout.
3863 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
3865         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3866         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3867         static.
3868         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3869         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3870         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3871         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3872         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3873         Remove all_lto_gen_passes.
3874         * passes.c (pass_manager::dump_passes): Remove its use.
3875         (pass_manager::register_pass): Likewise.
3876         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3877         (pass_manager::pass_manager): Don't initialize or use it.
3878         (write_lto): New static function.
3879         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3880         instead of using all_lto_gen_passes.
3881         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3882         pass_ipa_lto_finish_out): Delete.
3883         * tree-pass.h (make_pass_ipa_lto_gimple_out,
3884         make_pass_ipa_lto_finish_out): Don't declare.
3886 2013-11-18  Jeff Law  <law@redhat.com>
3888         * tree-ssa-threadupdate.c (redirection_data): Record two
3889         duplicated blocks instead of just one.
3890         (local_info): Explain why we don't create a template for the
3891         second duplicated block in a thread path.
3892         (create_block_for_threading): Accept argument indicating array
3893         index into redirection_data to store its result.
3894         (lookup_redirection_data): Initialize both duplicate blocks.
3895         (ssa_create_duplicates): If a jump threading path needs multiple
3896         blocks duplicated, then duplicate them.
3897         (ssa_fix_duplicate_block_edges): Corresponding changes.
3898         (ssa_fixup_template_block, thread_single_edge):  Likewise.
3900 2013-11-18  Marek Polacek  <polacek@redhat.com>
3902         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3904 2013-11-18  Andrew Pinski <apinski@cavium.com>
3905             Steve Ellcey  <sellcey@mips.com>
3907         PR target/56552
3908         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
3909         type restriction from equality_operator on conditonal move.
3910         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
3911         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
3913 2013-11-18  Jeff Law  <law@redhat.com>
3915         * tree-ssa-threadupdate.c: Fix file block comment.
3916         Fix minor indention issue.
3918 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
3920         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3921         ix86_address_subreg_operand.  Move subreg checks to
3922         ix86_validate_address_register.  Move address override check to
3923         ix86_legitimate_address_p.
3924         (ix86_validate_address_register): New function.
3925         (ix86_legitimate_address_p): Call ix86_validate_address_register
3926         to validate base and index registers.  Add address override check
3927         from ix86_decompose_address.
3928         (ix86_decompose_address): Remove.
3930 2013-11-18  Richard Biener  <rguenther@suse.de>
3932         PR tree-optimization/59125
3933         PR tree-optimization/54570
3934         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3935         is not complete do not treat component-references with offset zero
3936         but different fields as equal.
3937         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3938         (compute_object_sizes): Apply TLC.  Propagate the constant
3939         results into all uses and fold their stmts.
3940         * passes.def (pass_all_optimizations): Move pass_object_sizes
3941         after the first pass_forwprop and before pass_fre.
3943 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3945         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3946         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3947         (tree_ctz): Remove cast to unsigned type.
3948         * builtins.c (fold_builtin_memory_op): Likewise.
3949         * dwarf2out.c (descr_info_loc): Likewise.
3950         * godump.c (go_output_typedef): Likewise.
3951         * omp-low.c (expand_omp_simd): Likewise.
3952         * stor-layout.c (excess_unit_span): Likewise.
3953         * tree-object-size.c (addr_object_size): Likewise.
3954         * tree-sra.c (analyze_all_variable_accesses): Likewise.
3955         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3956         (simplify_rotate): Likewise.
3957         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3958         (handle_pointer_plus): Likewise.
3959         * tree-switch-conversion.c (check_range): Likewise.
3960         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3961         * tsan.c (instrument_builtin_call): Likewise.
3962         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3963         * trans-mem.c (tm_log_add): Likewise.
3964         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3965         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3966         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3967         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3969 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3971         * tree.h (host_integerp, tree_low_cst): Delete.
3972         * tree.c (host_integerp, tree_low_cst): Delete.
3974 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3976         * expr.h: Update comments to refer to tree_to_[su]hwi rather
3977         than tree_low_cst.
3978         * fold-const.c (fold_binary_loc): Likewise.
3979         * expr.c (store_constructor): Use tree_to_uhwi rather than
3980         tree_low_cst.
3981         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3982         * stmt.c (emit_case_dispatch_table): Likewise.
3983         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3985 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3987         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3988         config/aarch64/aarch64.c, config/alpha/predicates.md,
3989         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3990         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3991         config/mep/mep-pragma.c, config/mips/mips.c,
3992         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3993         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3994         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3995         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3996         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3997         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3998         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3999         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
4000         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
4001         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
4003 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4005         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
4006         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
4007         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
4008         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
4009         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
4010         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
4011         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
4012         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
4013         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
4014         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
4015         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
4017 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4019         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
4020         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
4022 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4024         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
4025         than host_integerp.
4027 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4029         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
4030         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
4031         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
4032         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
4033         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4034         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
4035         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
4036         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
4037         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
4038         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
4039         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
4040         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
4041         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
4042         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
4043         tree_fits_uhwi_p throughout.
4045 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4047         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
4048         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
4049         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
4050         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
4051         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
4052         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
4053         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
4054         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
4055         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
4056         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4057         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
4058         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
4059         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4060         throughout.
4062 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4064         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
4065         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
4067 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4069         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
4070         flag if it kills its address, not its post-increment.
4072 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
4074         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4075         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4076         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4077         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4078         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4079         (gimple_call_with_bounds_p): New.
4080         (gimple_call_set_with_bounds): New.
4081         (gimple_call_num_nobnd_args): Remove.
4082         (gimple_call_nobnd_arg): Remove.
4083         * tree.h (CALL_WITH_BOUNDS_P): New.
4084         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4086 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
4088         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
4089         (symtab_node_name): Rename to symtab_node::name.
4090         (cgraph_node_asm_name): Remove.
4091         (varpool_node_asm_name): Remove.
4092         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
4093         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
4094         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
4095         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
4096         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
4098 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4100         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
4101         * config/arm/arm.c (arm_cortex_a53_tune): New.
4102         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
4104 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4106         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
4107         (case ${target}): Add bdver4.
4108         * config/i386/bdver3.md: Add bdver4.
4109         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4110         -march=native recognize bdver4 processors.
4111         * config/i386/i386-c.c (ix86_target_macros_internal): Add
4112         bdver4 def_and_undef
4113         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
4114         (m_BDVER4): New definition.
4115         (m_AMD_MULTIPLE): Includes m_BDVER4.
4116         (processor_target_table): Add bdver4 entry.
4117         (static const char *const cpu_names): Add bdver4 entry.
4118         (software_prefetching_beneficial_p): Add bdver3.
4119         (ix86_option_override_internal): Add bdver4 instruction sets.
4120         (ix86_issue_rate): Add bdver4.
4121         (ix86_adjust_cost): Add bdver4.
4122         (ia32_multipass_dfa_lookahead): Add bdver4.
4123         (enum processor_model): Add M_AMDFAM15H_BDVER4.
4124         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
4125         (has_dispatch): Add bdver4.
4126         * config/i386/i386.h (TARGET_BDVER4): New definition.
4127         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
4128         (enum processor_type): Add PROCESSOR_BDVER4.
4129         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
4130         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
4131         * doc/extend.texi: Add details about bdver4.
4132         * doc/invoke.texi: Add details about bdver4. Add
4133         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
4135 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4137         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4138         sdmode_stack_slot also in little-endian mode.
4140 2013-11-17  Jan Hubicka  <jh@suse.cz>
4142         * doc/md.texi (setmem, movstr): Update documentation.
4143         * builtins.c (determine_block_size): New function.
4144         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4145         (expand_builtin_memset_args): Use it and pass it to
4146         set_storage_via_setmem.
4147         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4148         parameters; update call to expander.
4149         (emit_block_move_hints): Add min_size/max_size parameters.
4150         (clear_storage_hints): Likewise.
4151         (set_storage_via_setmem): Likewise.
4152         (clear_storage): Update.
4153         * expr.h (emit_block_move_hints, clear_storage_hints,
4154         set_storage_via_setmem): Update prototypes.
4155         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4156         (ix86_expand_movmem, ix86_expand_setmem): Remove.
4157         (ix86_expand_movmem, ix86_expand_setmem): Remove.
4158         * i386.md (movmem, setmem): Pass parameters.
4160 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
4162         PR target/59153
4163         * config/i386/i386.c (ix86_address_subreg_operand): Do not
4164         reject non-integer subregs.
4165         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4166         Move check for invalid x32 constant addresses ...
4167         (ix86_legitimate_address_p): ... here.
4169 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4171         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4172         parameter and use it in REG_FRAME_RELATED_EXPR note.
4173         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4174         parameter.
4175         (rs6000_emit_prologue): Likewise, but for little endian VSX
4176         stores, pass the source register of the store instead.
4178 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
4180         * gimple.h: Reorder prototypes to match .c declaration order, and
4181         remove protyotypes for functions not in gimple.c.
4182         (LABEL): Move to tree-into-ssa.c.
4183         * gimple.c: Remove unused prototypes.
4184         (get_base_address): Move to tree.c.
4185         * tree.c (get_base_address): Relocate from gimple.c.
4186         * builtins.h (validate_gimple_arglist): Add prototype.
4187         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4188         * cfgexpand.h: New File.
4189         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4190         * tree.h (build_addr): Move to tree-nested.h.
4191         * tree-nested.h: New File.
4192         (build_addr, lower_nested_functions, insert_field_into_struct): Add
4193         prototypes.
4194         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4195         * ipa-inline-analysis.c: Include cfgexpand.h.
4196         * cgraphunit.c: Include tree-nested.h.
4197         * omp-low.c: Likewise.
4198         * tree-parloops.c: Likewise.
4199         * gimple-low.h: Likewise.
4200         * tree-profile.h: Likewise.
4201         * expr.c: Include cfgexpand.h.
4202         * tree-affine.c: Likewise.
4203         * tree-ssa.c: Likewise.
4204         * tree-ssa-loop-im.c: Include trans-mem.h.
4205         * tree-ssa-tail-merge.c: Likewise.
4206         * value-prof.c: Include builtins.h and tree-nested.h.
4207         * tree-into-ssa.c (LABEL): Define here.
4209 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
4211         * config/arc/arc.c (arc_predicate_delay_insns): New function.
4212         (pass_data_arc_predicate_delay_insns): New pass_data instance.
4213         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4214         (make_pass_arc_predicate_delay_insns): New function.
4215         (arc_init): Register pass_arc_predicate_delay_insns if
4216         flag_delayed_branch is active.
4218 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
4220         * config/arc/constraints.md (Rcq): Simplify register number test.
4222 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4224         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4226 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
4228         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4229         is null.
4231 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4233         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4234         * gimple-pretty-print.c (dump_omp_for): Add case for
4235         GF_OMP_FOR_KIND_CILKSIMD.
4236         * gimple.h (enum gf_mask): Restructure entries to add
4237         GF_OMP_FOR_KIND_CILKSIMD.
4238         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4239         (gimplify_omp_for): Handle CILK_SIMD.
4240         (gimplify_expr): Add ccase for CILK_SIMD.
4241         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4242         (build_outer_var_ref): Same.
4243         (check_omp_nesting_restrictions): Same.
4244         (lower_rec_input_clauses): Same.
4245         (lower_lastprivate_clauses): Same.
4246         (expand_omp_for): Same.
4247         (execute_expand_omp): Check flag_enable_cilkplus.
4248         (execute_lower_omp): Same.
4249         (diagnose_sb_0): Handle CILK_SIMD.
4250         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4251         (setjmp_or_longjmp_p): New.
4252         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4253         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4254         * tree.def: Add tree code for CILK_SIMD.
4256 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4258         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4259         Remove.
4260         (altivec_vperm_<mode>): Revert earlier little endian change.
4261         (*altivec_vperm_<mode>_internal): Remove.
4262         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4263         (*altivec_vperm_<mode>_uns_internal): Remove.
4264         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4266 2013-11-15  Jeff Law  <law@redhat.com>
4268         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4269         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
4270         * gimple-ssa-isolate-paths.c
4271         (find_implicit_erroneous_behaviour): Corresponding changes.
4272         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4273         (find_explicit_erroneous_behaviour): Likewise.
4275 2013-11-15  Jeff Law  <law@redhat.com>
4277         * ifcvt.c (find_cond_trap): Properly handle case where
4278         trap_bb == else_bb.
4280 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
4282         * configure: Regenerate.
4284 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
4286         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4287         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4288         where it is incorrect or missing.
4290 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
4292         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4293         host_integerp test.
4294         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4295         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4296         constant.
4297         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4298         pair with a TREE_CODE test and TREE_INT_CST_LOW.
4299         * tree-vect-generic.c (expand_vector_divmod): Likewise.
4301 2013-11-15  Richard Biener  <rguenther@suse.de>
4303         PR tree-optimization/50262
4304         * tree-ssa-alias.h (struct pt_solution): Split
4305         vars_contains_global into vars_contains_nonlocal,
4306         vars_contains_escaped and vars_contains_escaped_heap.
4307         * tree-ssa-structalias.c (label_visit): Expand comment.
4308         (handle_lhs_call): Adjust comment.
4309         (set_uids_in_ptset): Set the new flags appropriately.
4310         (pt_solution_set): Adjust.
4311         (pt_solution_set_var): Likewise.
4312         (pt_solution_ior_into): Likewise.
4313         (pt_solution_includes_global): Likewise.
4314         (pt_solutions_intersect_1): Optimize escaped handling.
4315         (compute_points_to_sets): Remove heap variable globalization.
4316         (ipa_escaped_pt): Adjust initializer.
4317         (pass_data_ipa_pta): Do not run TODO_update_ssa.
4318         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4319         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4321 2013-11-15  Richard Biener  <rguenther@suse.de>
4323         * tree-loop-distribution.c (tree_loop_distribution): Make sure
4324         to distribute all stores.
4326 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4328         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4330 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
4332         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4333         * configure.ac: Determine target_header_dir earlier.
4334         (--with-glibc-version): New configure option.
4335         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4336         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4337         * configure: Regenerate.
4338         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4339         native toolchains for default.
4340         (--with-glibc-version): Document.
4342 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
4344         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4346 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
4348         * lto-streamer-in.c (input function): Call cgraph_create_node if
4349         cgraph_get_node failed.
4351 2013-11-14   Olivier Hainque  <hainque@adacore.com>
4353         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4354         defer allocation of DECL_IGNORED_P variables at toplevel unless really
4355         small.  Factorize size threshold computation from the existing one.
4356         (expand_used_vars): Refine comment.
4358 2013-11-14  Cong Hou  <congh@google.com>
4360         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4361         address field as it can be obtained from dr.  Rename the struct.
4362         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4363         steps of data references during sort.
4364         (vect_prune_runtime_alias_test_list): Adjust with the change to
4365         struct dr_with_seg_len.
4366         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4367         Adjust with the change to struct dr_with_seg_len.
4369 2013-11-14  Jeff Law  <law@redhat.com>
4371         PR middle-end/59127
4372         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4373         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4374         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4375         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4376         edges, then ignore it.  If the statement exhibiting erroneous
4377         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4378         then we can not optimize.
4379         (find_explicit_erroneous_behaviour): Likewise.
4381 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
4383         * gimplify-me.h:  New file.  Add prototypes.
4384         * gimplify.h: Don't include gimple.h.
4385         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4386         Relocate from gimple.h.
4387         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4388         is_gimple_sizepos): Move to gimplify.h.
4389         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4390         (enum gsi_iterator_update): Move to gimple-iterator.h.
4391         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4392         * gimplify-me.c: New File.
4393         (force_gimple_operand_1, force_gimple_operand,
4394         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4395         gimple_regimplify_operands): Relocate from gimplify.c.
4396         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4397         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4398         gimple_regimplify_operands): Move to gimplify-me.c.
4399         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4400         from gimple.h.
4401         * Makefile.in (OBJS): Add gimplify-me.o
4402         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4403         required.
4404         * cfgloopmanip.c: Likewise.
4405         * cgraphunit.c: Likewise.
4406         * cilk-common.c: Likewise.
4407         * fold-const.c: Likewise.
4408         * function.c: Likewise.
4409         * gimple-expr.c: Likewise.
4410         * gimple-fold.c: Likewise.
4411         * gimple-ssa-strength-reduction.c: Likewise.
4412         * gimple.c: Likewise.
4413         * graphite-clast-to-gimple.c: Likewise.
4414         * graphite-sese-to-poly.c: Likewise.
4415         * ipa-prop.c: Likewise.
4416         * ipa-split.c: Likewise.
4417         * ipa.c: Likewise.
4418         * langhooks.c: Likewise.
4419         * omp-low.c: Likewise.
4420         * sese.c: Likewise.
4421         * stor-layout.c: Likewise.
4422         * targhooks.c: Likewise.
4423         * trans-mem.c: Likewise.
4424         * tree-affine.c: Likewise.
4425         * tree-cfg.c: Likewise.
4426         * tree-cfgcleanup.c: Likewise.
4427         * tree-complex.c: Likewise.
4428         * tree-if-conv.c: Likewise.
4429         * tree-inline.c: Likewise.
4430         * tree-loop-distribution.c: Likewise.
4431         * tree-nested.c: Likewise.
4432         * tree-parloops.c: Likewise.
4433         * tree-predcom.c: Likewise.
4434         * tree-profile.c: Likewise.
4435         * tree-scalar-evolution.c: Likewise.
4436         * tree-sra.c: Likewise.
4437         * tree-ssa-address.c: Likewise.
4438         * tree-ssa-ccp.c: Likewise.
4439         * tree-ssa-dce.c: Likewise.
4440         * tree-ssa-forwprop.c: Likewise.
4441         * tree-ssa-ifcombine.c: Likewise.
4442         * tree-ssa-loop-im.c: Likewise.
4443         * tree-ssa-loop-ivopts.c: Likewise.
4444         * tree-ssa-loop-manip.c: Likewise.
4445         * tree-ssa-loop-niter.c: Likewise.
4446         * tree-ssa-loop-prefetch.c: Likewise.
4447         * tree-ssa-loop-unswitch.c: Likewise.
4448         * tree-ssa-math-opts.c: Likewise.
4449         * tree-ssa-phiopt.c: Likewise.
4450         * tree-ssa-phiprop.c: Likewise.
4451         * tree-ssa-pre.c: Likewise.
4452         * tree-ssa-propagate.c: Likewise.
4453         * tree-ssa-reassoc.c: Likewise.
4454         * tree-ssa-sccvn.c: Likewise.
4455         * tree-ssa-strlen.c: Likewise.
4456         * tree-ssa.c: Likewise.
4457         * tree-switch-conversion.c: Likewise.
4458         * tree-tailcall.c: Likewise.
4459         * tree-vect-data-refs.c: Likewise.
4460         * tree-vect-generic.c: Likewise.
4461         * tree-vect-loop-manip.c: Likewise.
4462         * tree-vect-loop.c: Likewise.
4463         * tree-vect-patterns.c: Likewise.
4464         * tree-vect-stmts.c: Likewise.
4465         * tree.c: Likewise.
4466         * tsan.c: Likewise.
4467         * value-prof.c: Likewise.
4468         * config/aarch64/aarch64.c: Likewise.
4469         * config/alpha/alpha.c: Likewise.
4470         * config/darwin.c: Likewise.
4471         * config/i386/i386.c: Likewise.
4472         * config/ia64/ia64.c: Likewise.
4473         * config/mep/mep.c: Likewise.
4474         * config/mips/mips.c: Likewise.
4475         * config/rs6000/rs6000.c: Likewise.
4476         * config/s390/s390.c: Likewise.
4477         * config/sh/sh.c: Likewise.
4478         * config/sparc/sparc.c: Likewise.
4479         * config/spu/spu.c: Likewise.
4480         * config/stormy16/stormy16.c: Likewise.
4481         * config/tilegx/tilegx.c: Likewise.
4482         * config/tilepro/tilepro.c: Likewise.
4483         * config/xtensa/xtensa.c: Likewise.
4485 2013-11-14  Diego Novillo  <dnovillo@google.com>
4487         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4489 2013-11-14  Diego Novillo  <dnovillo@google.com>
4491         * tree.h: Include fold-const.h.
4492         (aggregate_value_p): Moved to function.h.
4493         (alloca_call_p): Moved to calls.h.
4494         (allocate_struct_function): Moved to function.h.
4495         (apply_tm_attr): Moved to attribs.h.
4496         (array_at_struct_end_p): Moved to expr.h.
4497         (array_ref_element_size): Moved to tree-dfa.h.
4498         (array_ref_low_bound): Moved to tree-dfa.h.
4499         (array_ref_up_bound): Moved to tree.h.
4500         (assemble_alias): Moved to cgraph.h.
4501         (bit_from_pos): Moved to stor-layout.h.
4502         (build_addr): Moved to tree-nested.h.
4503         (build_duplicate_type): Moved to tree-inline.h.
4504         (build_fold_addr_expr): Moved to fold-const.h.
4505         (build_fold_addr_expr_with_type): Moved to fold-const.h.
4506         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4507         (build_fold_indirect_ref): Moved to fold-const.h.
4508         (build_fold_indirect_ref_loc): Moved to fold-const.h.
4509         (build_personality_function): Moved to tree.h.
4510         (build_range_check): Moved to fold-const.h.
4511         (build_simple_mem_ref): Moved to fold-const.h.
4512         (build_simple_mem_ref_loc): Moved to fold-const.h.
4513         (build_tm_abort_call): Moved to trans-mem.h.
4514         (byte_from_pos): Moved to stor-layout.h.
4515         (call_expr_flags): Moved to calls.h.
4516         (can_move_by_pieces): Moved to expr.h.
4517         (categorize_ctor_elements): Moved to expr.h.
4518         (change_decl_assembler_name): Moved to gcc-symtab.h.
4519         (combine_comparisons): Moved to fold-const.h.
4520         (complete_ctor_at_level_p): Moved to tree.h.
4521         (component_ref_field_offset): Moved to tree-dfa.h.
4522         (compute_builtin_object_size): Moved to tree-object-size.h.
4523         (compute_record_mode): Moved to stor-layout.h.
4524         (constant_boolean_node): Moved to fold-const.h.
4525         (constructor_static_from_elts_p): Moved to varasm.h.
4526         (cxx11_attribute_p): Moved to attribs.h.
4527         (debug_body): Moved to print-tree.h.
4528         (debug_find_tree): Moved to tree-inline.h.
4529         (debug_fold_checksum): Moved to fold-const.h.
4530         (debug_head): Moved to print-tree.h.
4531         (debug_head): Moved to print-tree.h.
4532         (debug_raw): Moved to print-tree.h.
4533         (debug_tree): Moved to print-tree.h.
4534         (debug_vec_tree): Moved to print-tree.h.
4535         (debug_verbose): Moved to print-tree.h.
4536         (debug_verbose): Moved to print-tree.h.
4537         (decl_attributes): Moved to attribs.h.
4538         (decl_binds_to_current_def_p): Moved to varasm.h.
4539         (decl_default_tls_model): Moved to varasm.h.
4540         (decl_replaceable_p): Moved to varasm.h.
4541         (div_if_zero_remainder): Moved to fold-const.h.
4542         (double_int mem_ref_offset): Moved to fold-const.h.
4543         (dump_addr): Moved to print-tree.h.
4544         (element_precision): Moved to machmode.h.
4545         (expand_dummy_function_end): Moved to function.h.
4546         (expand_function_end): Moved to function.h.
4547         (expand_function_start): Moved to function.h.
4548         (expand_label): Moved to stmt.h.
4549         (expr_first): Moved to tree-iterator.h.
4550         (expr_last): Moved to tree-iterator.h.
4551         (finalize_size_functions): Moved to stor-layout.h.
4552         (finish_builtin_struct): Moved to stor-layout.h.
4553         (finish_record_layout): Moved to stor-layout.h.
4554         (fixup_signed_type): Moved to stor-layout.h.
4555         (fixup_unsigned_type): Moved to stor-layout.h.
4556         (flags_from_decl_or_type): Moved to calls.h.
4557         (fold): Moved to fold-const.h.
4558         (fold_abs_const): Moved to fold-const.h.
4559         (fold_binary): Moved to fold-const.h.
4560         (fold_binary_loc): Moved to fold-const.h.
4561         (fold_binary_to_constant): Moved to fold-const.h.
4562         (fold_build1): Moved to fold-const.h.
4563         (fold_build1_initializer_loc): Moved to fold-const.h.
4564         (fold_build1_loc): Moved to fold-const.h.
4565         (fold_build1_stat_loc): Moved to fold-const.h.
4566         (fold_build2): Moved to fold-const.h.
4567         (fold_build2_initializer_loc): Moved to fold-const.h.
4568         (fold_build2_loc): Moved to fold-const.h.
4569         (fold_build2_stat_loc): Moved to fold-const.h.
4570         (fold_build3): Moved to fold-const.h.
4571         (fold_build3_loc): Moved to fold-const.h.
4572         (fold_build3_stat_loc): Moved to fold-const.h.
4573         (fold_build_call_array): Moved to fold-const.h.
4574         (fold_build_call_array_initializer): Moved to fold-const.h.
4575         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4576         (fold_build_call_array_loc): Moved to fold-const.h.
4577         (fold_build_cleanup_point_expr): Moved to fold-const.h.
4578         (fold_convert): Moved to fold-const.h.
4579         (fold_convert_loc): Moved to fold-const.h.
4580         (fold_convertible_p): Moved to fold-const.h.
4581         (fold_defer_overflow_warnings): Moved to fold-const.h.
4582         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4583         (fold_fma): Moved to fold-const.h.
4584         (fold_ignored_result): Moved to fold-const.h.
4585         (fold_indirect_ref): Moved to fold-const.h.
4586         (fold_indirect_ref_1): Moved to fold-const.h.
4587         (fold_indirect_ref_loc): Moved to fold-const.h.
4588         (fold_read_from_constant_string): Moved to fold-const.h.
4589         (fold_real_zero_addition_p): Moved to fold-const.h.
4590         (fold_single_bit_test): Moved to fold-const.h.
4591         (fold_strip_sign_ops): Moved to fold-const.h.
4592         (fold_ternary): Moved to fold-const.h.
4593         (fold_ternary_loc): Moved to fold-const.h.
4594         (fold_unary): Moved to tree-data-ref.h.
4595         (fold_unary_ignore_overflow): Moved to fold-const.h.
4596         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4597         (fold_unary_loc): Moved to fold-const.h.
4598         (fold_unary_to_constant): Moved to fold-const.h.
4599         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4600         (fold_undefer_overflow_warnings): Moved to fold-const.h.
4601         (folding_initializer): Moved to fold-const.h.
4602         (free_temp_slots): Moved to function.h.
4603         (generate_setjmp_warnings): Moved to function.h.
4604         (get_attribute_name): Moved to attribs.h.
4605         (get_identifier): Moved to stringpool.h.
4606         (get_identifier_with_length): Moved to stringpool.h.
4607         (get_inner_reference): Moved to tree.h.
4608         (gimple_alloca_call_p): Moved to calls.h.
4609         (gimplify_parameters): Moved to function.h.
4610         (highest_pow2_factor): Moved to expr.h.
4611         (indent_to): Moved to print-tree.h.
4612         (init_attributes): Moved to attribs.h.
4613         (init_dummy_function_start): Moved to function.h.
4614         (init_function_start): Moved to function.h.
4615         (init_inline_once): Moved to tree-inline.h.
4616         (init_object_sizes): Moved to tree-object-size.h.
4617         (init_temp_slots): Moved to function.h.
4618         (init_tree_optimization_optabs): Moved to optabs.h.
4619         (initialize_sizetypes): Moved to stor-layout.h.
4620         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4621         (initializer_constant_valid_p): Moved to varasm.h.
4622         (int_const_binop): Moved to fold-const.h.
4623         (internal_reference_types): Moved to stor-layout.h.
4624         (invert_tree_comparison): Moved to fold-const.h.
4625         (invert_truthvalue): Moved to fold-const.h.
4626         (invert_truthvalue_loc): Moved to fold-const.h.
4627         (is_tm_ending_fndecl): Moved to trans-mem.h.
4628         (is_tm_may_cancel_outer): Moved to trans-mem.h.
4629         (is_tm_pure): Moved to trans-mem.h.
4630         (is_tm_safe): Moved to trans-mem.h.
4631         (layout_decl): Moved to stor-layout.h.
4632         (layout_type): Moved to stor-layout.h.
4633         (lookup_attribute_spec): Moved to attribs.h.
4634         (make_accum_type): Moved to stor-layout.h.
4635         (make_decl_one_only): Moved to varasm.h.
4636         (make_decl_rtl): Moved to tree.h.
4637         (make_decl_rtl_for_debug): Moved to varasm.h.
4638         (make_fract_type): Moved to stor-layout.h.
4639         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4640         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4641         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4642         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4643         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4644         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4645         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4646         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4647         (make_range): Moved to fold-const.h.
4648         (make_range_step): Moved to fold-const.h.
4649         (make_sat_signed_accum_type): Moved to stor-layout.h.
4650         (make_sat_signed_fract_type): Moved to stor-layout.h.
4651         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4652         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4653         (make_signed_accum_type): Moved to stor-layout.h.
4654         (make_signed_fract_type): Moved to stor-layout.h.
4655         (make_signed_type): Moved to stor-layout.h.
4656         (make_unsigned_accum_type): Moved to stor-layout.h.
4657         (make_unsigned_fract_type): Moved to stor-layout.h.
4658         (make_unsigned_type): Moved to stor-layout.h.
4659         (mark_decl_referenced): Moved to varasm.h.
4660         (mark_referenced): Moved to varasm.h.
4661         (may_negate_without_overflow_p): Moved to fold-const.h.
4662         (maybe_get_identifier): Moved to stringpool.h.
4663         (merge_ranges): Moved to fold-const.h.
4664         (merge_weak): Moved to varasm.h.
4665         (mode_for_size_tree): Moved to stor-layout.h.
4666         (multiple_of_p): Moved to fold-const.h.
4667         (must_pass_in_stack_var_size): Moved to calls.h.
4668         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4669         (native_encode_expr): Moved to fold-const.h.
4670         (native_interpret_expr): Moved to fold-const.h.
4671         (non_lvalue): Moved to fold-const.h.
4672         (non_lvalue_loc): Moved to fold-const.h.
4673         (normalize_offset): Moved to stor-layout.h.
4674         (normalize_rli): Moved to stor-layout.h.
4675         (notice_global_symbol): Moved to varasm.h.
4676         (omit_one_operand): Moved to fold-const.h.
4677         (omit_one_operand_loc): Moved to fold-const.h.
4678         (omit_two_operands): Moved to fold-const.h.
4679         (omit_two_operands_loc): Moved to fold-const.h.
4680         (operand_equal_p): Moved to tree-data-ref.h.
4681         (parse_input_constraint): Moved to stmt.h.
4682         (parse_output_constraint): Moved to stmt.h.
4683         (place_field): Moved to stor-layout.h.
4684         (pop_function_context): Moved to function.h.
4685         (pop_temp_slots): Moved to function.h.
4686         (pos_from_bit): Moved to stor-layout.h.
4687         (preserve_temp_slots): Moved to function.h.
4688         (print_node): Moved to print-tree.h.
4689         (print_node_brief): Moved to print-tree.h.
4690         (print_rtl): Moved to rtl.h.
4691         (process_pending_assemble_externals): Moved to varasm.h.
4692         (ptr_difference_const): Moved to fold-const.h.
4693         (push_function_context): Moved to function.h.
4694         (push_struct_function): Moved to function.h.
4695         (push_temp_slots): Moved to function.h.
4696         (record_tm_replacement): Moved to trans-mem.h.
4697         (relayout_decl): Moved to stor-layout.h.
4698         (resolve_asm_operand_names): Moved to stmt.h.
4699         (resolve_unique_section): Moved to varasm.h.
4700         (rli_size_so_far): Moved to stor-layout.h.
4701         (rli_size_unit_so_far): Moved to stor-layout.h.
4702         (round_down): Moved to fold-const.h.
4703         (round_down_loc): Moved to fold-const.h.
4704         (round_up): Moved to fold-const.h.
4705         (round_up_loc): Moved to fold-const.h.
4706         (set_decl_incoming_rtl): Moved to emit-rtl.h.
4707         (set_decl_rtl): Moved to tree.h.
4708         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4709         (set_user_assembler_name): Moved to varasm.h.
4710         (setjmp_call_p): Moved to calls.h.
4711         (size_binop): Moved to fold-const.h.
4712         (size_binop_loc): Moved to fold-const.h.
4713         (size_diffop): Moved to fold-const.h.
4714         (size_diffop_loc): Moved to fold-const.h.
4715         (size_int_kind): Moved to fold-const.h.
4716         (stack_protect_epilogue): Moved to function.h.
4717         (start_record_layout): Moved to stor-layout.h.
4718         (supports_one_only): Moved to varasm.h.
4719         (swap_tree_comparison): Moved to fold-const.h.
4720         (tm_malloc_replacement): Moved to trans-mem.h.
4721         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4722         (tree build_invariant_address): Moved to fold-const.h.
4723         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4724         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4725         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4726         (tree_expr_nonnegative_p): Moved to fold-const.h.
4727         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4728         (tree_output_constant_def): Moved to varasm.h.
4729         (tree_overlaps_hard_reg_set): Moved to stmt.h.
4730         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4731         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4732         (tree_swap_operands_p): Moved to fold-const.h.
4733         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4734         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4735         (update_alignment_for_field): Moved to stor-layout.h.
4736         (use_register_for_decl): Moved to function.h.
4737         (variable_size): Moved to rtl.h.
4738         (vector_type_mode): Moved to stor-layout.h.
4739         * cgraph.h: Corresponding changes.
4740         * emit-rtl.h: Corresponding changes.
4741         * expr.h: Corresponding changes.
4742         * function.h: Corresponding changes.
4743         * optabs.h: Corresponding changes.
4744         * trans-mem.h: Corresponding changes.
4745         Protect against multiple inclusion.
4746         * tree-inline.h: Corresponding changes.
4747         * tree-iterator.h: Corresponding changes.
4748         * tree-dfa.h: Include expr.h.
4749         * tree-ssanames.h: Include stringpool.h.
4750         * attribs.h: New file.
4751         * calls.h: New file.
4752         * fold-const.h: New file.
4753         * gcc-symtab.h: New file.
4754         * print-rtl.h: New file.
4755         * print-tree.h: New file.
4756         * stmt.h: New file.
4757         * stor-layout.h: New file.
4758         * strinpool.h: New file.
4759         * tree-nested.h: New file
4760         * tree-object-size.h: New file.
4761         * varasm.h: New file.
4763 2013-11-14  Diego Novillo  <dnovillo@google.com>
4765         * alias.c: Include varasm.h.
4766         Include expr.h.
4767         * asan.c: Include calls.h.
4768         Include stor-layout.h.
4769         Include varasm.h.
4770         * attribs.c: Include stringpool.h.
4771         Include attribs.h.
4772         Include stor-layout.h.
4773         * builtins.c: Include stringpool.h.
4774         Include stor-layout.h.
4775         Include calls.h.
4776         Include varasm.h.
4777         Include tree-object-size.h.
4778         * calls.c: Include stor-layout.h.
4779         Include varasm.h.
4780         Include stringpool.h.
4781         Include attribs.h.
4782         * cfgexpand.c: Include stringpool.h.
4783         Include varasm.h.
4784         Include stor-layout.h.
4785         Include stmt.h.
4786         Include print-tree.h.
4787         * cgraph.c: Include varasm.h.
4788         Include calls.h.
4789         Include print-tree.h.
4790         * cgraphclones.c: Include stringpool.h.
4791         Include function.h.
4792         Include emit-rtl.h.
4793         Move inclusion of rtl.h earlier in the file.
4794         * cgraphunit.c: Include varasm.h.
4795         Include stor-layout.h.
4796         Include stringpool.h.
4797         * cilk-common.c: Include stringpool.h.
4798         Include stor-layout.h.
4799         * combine.c: Include stor-layout.h.
4800         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4801         Include stringpool.h.
4802         Include calls.h.
4803         * config/aarch64/aarch64.c: Include stringpool.h.
4804         Include stor-layout.h.
4805         Include calls.h.
4806         Include varasm.h.
4807         * config/alpha/alpha.c: Include stor-layout.h.
4808         Include calls.h.
4809         Include varasm.h.
4810         * config/arc/arc.c: Include varasm.h.
4811         Include stor-layout.h.
4812         Include stringpool.h.
4813         Include calls.h.
4814         * config/arm/arm.c: Include stringpool.h.
4815         Include stor-layout.h.
4816         Include calls.h.
4817         Include varasm.h.
4818         * config/avr/avr-c.c: Include stor-layout.h.
4819         * config/avr/avr-log.c: Include print-tree.h.
4820         * config/avr/avr.c: Include print-tree.h.
4821         Include calls.h.
4822         Include stor-layout.h.
4823         Include stringpool.h.
4824         * config/bfin/bfin.c: Include varasm.h.
4825         Include calls.h.
4826         * config/c6x/c6x.c: Include stor-layout.h.
4827         Include varasm.h.
4828         Include calls.h.
4829         Include stringpool.h.
4830         * config/cr16/cr16.c: Include stor-layout.h.
4831         Include calls.h.
4832         * config/cris/cris.c: Include varasm.h.
4833         Include stor-layout.h.
4834         Include calls.h.
4835         Include stmt.h.
4836         * config/darwin.c: Include stringpool.h.
4837         Include varasm.h.
4838         Include stor-layout.h.
4839         * config/epiphany/epiphany.c: Include stor-layout.h.
4840         Include varasm.h.
4841         Include calls.h.
4842         Include stringpool.h.
4843         * config/fr30/fr30.c: Include stor-layout.h.
4844         Include varasm.h.
4845         * config/frv/frv.c: Include varasm.h.
4846         Include stor-layout.h.
4847         Include stringpool.h.
4848         * config/h8300/h8300.c: Include stor-layout.h.
4849         Include varasm.h.
4850         Include calls.h.
4851         Include stringpool.h.
4852         * config/i386/i386.c: Include stringpool.h.
4853         Include attribs.h.
4854         Include calls.h.
4855         Include stor-layout.h.
4856         Include varasm.h.
4857         * config/i386/winnt-cxx.c: Include stringpool.h.
4858         Include attribs.h.
4859         * config/i386/winnt.c: Include stringpool.h.
4860         Include varasm.h.
4861         * config/ia64/ia64-c.c: Include stringpool.h.
4862         * config/ia64/ia64.c: Include stringpool.h.
4863         Include stor-layout.h.
4864         Include calls.h.
4865         Include varasm.h.
4866         * config/iq2000/iq2000.c: Include stor-layout.h.
4867         Include calls.h.
4868         Include varasm.h.
4869         * config/lm32/lm32.c: Include calls.h.
4870         * config/m32c/m32c.c: Include stor-layout.h.
4871         Include varasm.h.
4872         Include calls.h.
4873         * config/m32r/m32r.c: Include stor-layout.h.
4874         Include varasm.h.
4875         Include stringpool.h.
4876         Include calls.h.
4877         * config/m68k/m68k.c: Include calls.h.
4878         Include stor-layout.h.
4879         Include varasm.h.
4880         * config/mcore/mcore.c: Include stor-layout.h.
4881         Include varasm.h.
4882         Include stringpool.h.
4883         Include calls.h.
4884         * config/mep/mep.c: Include varasm.h.
4885         Include calls.h.
4886         Include stringpool.h.
4887         Include stor-layout.h.
4888         * config/microblaze/microblaze.c: Include varasm.h.
4889         Include stor-layout.h.
4890         Include calls.h.
4891         * config/mips/mips.c: Include varasm.h.
4892         Include stringpool.h.
4893         Include stor-layout.h.
4894         Include calls.h.
4895         * config/mmix/mmix.c: Include varasm.h.
4896         Include stor-layout.h.
4897         Include calls.h.
4898         * config/mn10300/mn10300.c: Include stor-layout.h.
4899         Include varasm.h.
4900         Include calls.h.
4901         * config/moxie/moxie.c: Include stor-layout.h.
4902         Include varasm.h.
4903         Include calls.h.
4904         * config/msp430/msp430.c: Include stor-layout.h.
4905         Include calls.h.
4906         * config/nds32/nds32.c: Include stor-layout.h.
4907         Include varasm.h.
4908         Include calls.h.
4909         * config/pa/pa.c: Include stor-layout.h.
4910         Include stringpool.h.
4911         Include varasm.h.
4912         Include calls.h.
4913         * config/pdp11/pdp11.c: Include stor-layout.h.
4914         Include varasm.h.
4915         Include calls.h.
4916         * config/picochip/picochip.c: Include calls.h.
4917         Include stor-layout.h.
4918         Include stringpool.h.
4919         Include varasm.h.
4920         * config/rl78/rl78.c: Include varasm.h.
4921         Include stor-layout.h.
4922         Include calls.h.
4923         * config/rs6000/rs6000-c.c: Include stor-layout.h.
4924         Include stringpool.h.
4925         * config/rs6000/rs6000.c: Include stringpool.h.
4926         Include stor-layout.h.
4927         Include calls.h.
4928         Include print-tree.h.
4929         Include varasm.h.
4930         * config/rx/rx.c: Include varasm.h.
4931         Include stor-layout.h.
4932         Include calls.h.
4933         * config/s390/s390.c: Include print-tree.h.
4934         Include stringpool.h.
4935         Include stor-layout.h.
4936         Include varasm.h.
4937         Include calls.h.
4938         * config/score/score.c: Include stringpool.h.
4939         Include calls.h.
4940         Include varasm.h.
4941         Include stor-layout.h.
4942         * config/sh/sh-c.c: Include stringpool.h.
4943         Include attribs.h.h.
4944         * config/sh/sh.c: Include stringpool.h.
4945         Include stor-layout.h.
4946         Include calls.h.
4947         Include varasm.h.
4948         * config/sol2-c.c: Include stringpool.h.
4949         Include attribs.h.
4950         * config/sol2-cxx.c: Include stringpool.h.
4951         * config/sol2.c: Include stringpool.h.
4952         Include varasm.h.
4953         * config/sparc/sparc.c: Include stringpool.h.
4954         Include stor-layout.h.
4955         Include calls.h.
4956         Include varasm.h.
4957         * config/spu/spu-c.c: Include stringpool.h.
4958         * config/spu/spu.c: Include stringpool.h.
4959         Include stor-layout.h.
4960         Include calls.h.
4961         Include varasm.h.
4962         * config/stormy16/stormy16.c: Include stringpool.h.
4963         Include stor-layout.h.
4964         Include varasm.h.
4965         Include calls.h.
4966         * config/tilegx/tilegx.c: Include stringpool.h.
4967         Include stor-layout.h.
4968         Include varasm.h.
4969         Include calls.h.
4970         * config/tilepro/tilepro.c: Include stringpool.h.
4971         Include stor-layout.h.
4972         Include varasm.h.
4973         Include calls.h.
4974         * config/v850/v850-c.c: Include stringpool.h.
4975         Include attribs.h.
4976         * config/v850/v850.c: Include stringpool.h.
4977         Include stor-layout.h.
4978         Include varasm.h.
4979         Include calls.h.
4980         * config/vax/vax.c: Include calls.h.
4981         Include varasm.h.
4982         * config/vms/vms.c: Include stringpool.h.
4983         * config/vxworks.c: Include stringpool.h.
4984         * config/xtensa/xtensa.c: Include stringpool.h.
4985         Include stor-layout.h.
4986         Include calls.h.
4987         Include varasm.h.
4988         * convert.c: Include stor-layout.h.
4989         * coverage.c: Include stringpool.h.
4990         Include stor-layout.h.
4991         * dbxout.c: Include varasm.h.
4992         Include stor-layout.h.
4993         * dojump.c: Include stor-layout.h.
4994         * dse.c: Include stor-layout.h.
4995         * dwarf2asm.c: Include stringpool.h.
4996         Include varasm.h.
4997         * dwarf2cfi.c: Include stor-layout.h.
4998         * dwarf2out.c: Include rtl.h.
4999         Include stringpool.h.
5000         Include stor-layout.h.
5001         Include varasm.h.
5002         Include function.h.
5003         Include emit-rtl.h.
5004         Move inclusion of rtl.h earlier in the file.
5005         * emit-rtl.c: Include varasm.h.
5006         * except.c: Include stringpool.h.
5007         Include stor-layout.h.
5008         * explow.c: Include stor-layout.h.
5009         * expmed.c: Include stor-layout.h.
5010         * expr.c: Include stringpool.h.
5011         Include stor-layout.h.
5012         Include attribs.h.
5013         Include varasm.h.
5014         * final.c: Include varasm.h.
5015         * fold-const.c: Include stor-layout.h.
5016         Include calls.h.
5017         Include tree-iterator.h.
5018         * function.c: Include stor-layout.h.
5019         Include varasm.h.
5020         Include stringpool.h.
5021         * genattrtab.c (write_header): Emit includes for varasm.h,
5022         stor-layout.h and calls.h.
5023         * genautomata.c (main): Likewise.
5024         * genemit.c: Likewise.
5025         * genopinit.c: Likewise.
5026         * genoutput.c (output_prologue): Likewise.
5027         * genpeep.c: Likewise.
5028         * genpreds.c (write_insn_preds_c): Likewise.
5029         * gengtype.c (open_base_files): Add stringpool.h.
5030         * gimple-expr.c: Include stringpool.h.
5031         Include stor-layout.h.
5032         * gimple-fold.c: Include stringpool.h.
5033         Include expr.h.
5034         Include stmt.h.
5035         Include stor-layout.h.
5036         * gimple-low.c: Include tree-nested.h.
5037         Include calls.h.
5038         * gimple-pretty-print.c: Include stringpool.h.
5039         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
5040         Include expr.h.
5041         * gimple-walk.c: Include stmt.h.
5042         * gimple.c: Include calls.h.
5043         Include stmt.h.
5044         Include stor-layout.h.
5045         * gimplify.c: Include stringpool.h.
5046         Include calls.h.
5047         Include varasm.h.
5048         Include stor-layout.h.
5049         Include stmt.h.
5050         Include print-tree.h.
5051         Include expr.h.
5052         * gimplify-me.c: Include stmt.h
5053         Include stor-layout.h
5054         * internal-fn.c: Include stor-layout.h.
5055         * ipa-devirt.c: Include print-tree.h.
5056         Include calls.h.
5057         * ipa-inline-analysis.c: Include stor-layout.h.
5058         Include stringpool.h.
5059         Include print-tree.h.
5060         * ipa-inline.c: Include trans-mem.h.
5061         Include calls.h.
5062         * ipa-prop.c: Include expr.h.
5063         Include stor-layout.h.
5064         Include print-tree.h.
5065         * ipa-pure-const.c: Include print-tree.h.
5066         Include calls.h.
5067         * ipa-reference.c: Include calls.h.
5068         * ipa-split.c: Include stringpool.h.
5069         Include expr.h.
5070         Include calls.h.
5071         * ipa.c: Include calls.h.
5072         Include stringpool.h.
5073         * langhooks.c: Include stringpool.h.
5074         Include attribs.h.
5075         * lto-cgraph.c: Include stringpool.h.
5076         * lto-streamer-in.c: Include stringpool.h.
5077         * lto-streamer-out.c: Include stor-layout.h.
5078         Include stringpool.h.
5079         * omp-low.c: Include stringpool.h.
5080         Include stor-layout.h.
5081         Include expr.h.
5082         * optabs.c: Include stor-layout.h.
5083         Include stringpool.h.
5084         Include varasm.h.
5085         * passes.c: Include varasm.h.
5086         * predict.c: Include calls.h.
5087         * print-rtl.c: Include print-tree.h.
5088         * print-tree.c: Include varasm.h.
5089         Include print-rtl.h.
5090         Include stor-layout.h.
5091         * realmpfr.c: Include stor-layout.h.
5092         * reg-stack.c: Include varasm.h.
5093         * sdbout.c: Include varasm.h.
5094         Include stor-layout.h.
5095         * simplify-rtx.c: Include varasm.h.
5096         * stmt.c: Include varasm.h.
5097         Include stor-layout.h.
5098         * stor-layout.c: Include stor-layout.h.
5099         Include stringpool.h.
5100         Include varasm.h.
5101         Include print-tree.h.
5102         * symtab.c: Include rtl.h.
5103         Include print-tree.h.
5104         Include varasm.h.
5105         Include function.h.
5106         Include emit-rtl.h.
5107         * targhooks.c: Include stor-layout.h.
5108         Include varasm.h.
5109         * toplev.c: Include varasm.h.
5110         Include tree-inline.h.
5111         * trans-mem.c: Include calls.h.
5112         Include function.h.
5113         Include rtl.h.
5114         Include emit-rtl.h.
5115         * tree-affine.c: Include expr.h.
5116         * tree-browser.c: Include print-tree.h.
5117         * tree-call-cdce.c: Include stor-layout.h.
5118         * tree-cfg.c: Include trans-mem.h.
5119         Include stor-layout.h.
5120         Include print-tree.h.
5121         * tree-complex.c: Include stor-layout.h.
5122         * tree-data-ref.c: Include expr.h.
5123         * tree-dfa.c: Include stor-layout.h.
5124         * tree-eh.c: Include expr.h.
5125         Include calls.h.
5126         * tree-emutls.c: Include stor-layout.h.
5127         Include varasm.h.
5128         * tree-if-conv.c: Include stor-layout.h.
5129         * tree-inline.c: Include stor-layout.h.
5130         Include calls.h.
5131         * tree-loop-distribution.c: Include stor-layout.h.
5132         * tree-nested.c: Include stringpool.h.
5133         Include stor-layout.h.
5134         * tree-object-size.c: Include tree-object-size.h.
5135         * tree-outof-ssa.c: Include stor-layout.h.
5136         * tree-parloops.c: Include stor-layout.h.
5137         Include tree-nested.h.
5138         * tree-pretty-print.c: Include stor-layout.h.
5139         Include expr.h.
5140         * tree-profile.c: Include varasm.h.
5141         Include tree-nested.h.
5142         * tree-scalar-evolution.c: Include expr.h.
5143         * tree-sra.c: Include stor-layout.h.
5144         * tree-ssa-address.c: Include stor-layout.h.
5145         * tree-ssa-ccp.c: Include stor-layout.h.
5146         * tree-ssa-dce.c: Include calls.h.
5147         * tree-ssa-dom.c: Include stor-layout.h.
5148         * tree-ssa-forwprop.c: Include stor-layout.h.
5149         * tree-ssa-ifcombine.c: Include stor-layout.h.
5150         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5151         * tree-ssa-loop-niter.c: Include calls.h.
5152         Include expr.h.
5153         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5154         * tree-ssa-math-opts.c: Include stor-layout.h.
5155         * tree-ssa-operands.c: Include stmt.h.
5156         Include print-tree.h.
5157         * tree-ssa-phiopt.c: Include stor-layout.h.
5158         * tree-ssa-reassoc.c: Include stor-layout.h.
5159         * tree-ssa-sccvn.c: Include stor-layout.h.
5160         * tree-ssa-sink.c: Include stor-layout.h.
5161         * tree-ssa-strlen.c: Include stor-layout.h.
5162         * tree-ssa-structalias.c: Include stor-layout.h.
5163         Include stmt.h.
5164         * tree-ssa-tail-merge.c: Include stor-layout.h.
5165         Include trans-mem.h.
5166         * tree-ssa-uncprop.c: Include stor-layout.h.
5167         * tree-ssa.c: Include stor-layout.h.
5168         * tree-ssanames.c: Include stor-layout.h.
5169         * tree-streamer-in.c: Include stringpool.h.
5170         * tree-streamer-out.c: Include stor-layout.h.
5171         * tree-switch-conversion.c: Include varasm.h.
5172         Include stor-layout.h.
5173         * tree-tailcall.c: Include stor-layout.h.
5174         * tree-vect-data-refs.c: Include stor-layout.h.
5175         * tree-vect-generic.c: Include stor-layout.h.
5176         * tree-vect-loop.c: Include stor-layout.h.
5177         * tree-vect-patterns.c: Include stor-layout.h.
5178         * tree-vect-slp.c: Include stor-layout.h.
5179         * tree-vect-stmts.c: Include stor-layout.h.
5180         * tree-vectorizer.c: Include stor-layout.h.
5181         * tree-vrp.c: Include stor-layout.h.
5182         Include calls.h.
5183         * tree.c: Include stor-layout.h.
5184         Include calls.h.
5185         Include attribs.h.
5186         Include varasm.h.
5187         * tsan.c: Include expr.h.
5188         * ubsan.c: Include stor-layout.h.
5189         Include stringpool.h.
5190         * value-prof.c: Include tree-nested.h.
5191         Include calls.h.
5192         * var-tracking.c: Include varasm.h.
5193         Include stor-layout.h.
5194         * varasm.c: Include stor-layout.h.
5195         Include stringpool.h.
5196         Include gcc-symtab.h.
5197         Include varasm.h.
5198         * varpool.c: Include varasm.h.
5199         * vmsdbgout.c: Include varasm.h.
5200         * xcoffout.c: Include varasm.h.
5202 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
5204         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5205         use (.&-4) idiom.
5207 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5209         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5211 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5212             Alan Modra  <amodra@gmail.com>
5214         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5215         (RS6000_SAVE_TOC): Remove.
5216         (RS6000_TOC_SAVE_SLOT): New macro.
5217         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5218         (rs6000_parm_start): Use it.
5219         (rs6000_function_arg_advance_1): Likewise.
5220         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5221         (rs6000_emit_epilogue): Likewise.
5222         (rs6000_call_aix): Likewise.
5223         (rs6000_output_function_prologue): Do not save/restore r11
5224         around calling _mcount for ABI_ELFv2.
5226 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5227             Alan Modra  <amodra@gmail.com>
5229         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5230         Add prototype.
5231         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5232         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5233         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5234         (rs6000_function_parms_need_stack): Likewise.
5235         (rs6000_reg_parm_stack_space): Likewise.
5236         (rs6000_function_arg): Do not replace BLKmode by Pmode when
5237         returning a register argument.
5239 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5240             Michael Gschwind  <mkg@us.ibm.com>
5242         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5243         (ALTIVEC_ARG_MAX_RETURN): Likewise.
5244         (FUNCTION_VALUE_REGNO_P): Use them.
5245         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5246         (rs6000_return_in_msb): New function.
5247         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5248         Handle aggregates of up to 16 bytes for ELFv2.
5249         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5251 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5252             Michael Gschwind  <mkg@us.ibm.com>
5254         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5255         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5256         (rs6000_discover_homogeneous_aggregate): Likewise.
5257         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5258         (rs6000_function_arg_advance_1): Likewise.
5259         (rs6000_function_arg): Likewise.
5260         (rs6000_arg_partial_bytes): Likewise.
5261         (rs6000_psave_function_arg): Handle BLKmode arguments.
5263 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5264             Michael Gschwind  <mkg@us.ibm.com>
5266         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5267         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5268         (rs6000_discover_homogeneous_aggregate): Likewise.
5269         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5270         (rs6000_function_arg_advance_1): Likewise.
5271         (rs6000_function_arg): Likewise.
5272         (rs6000_arg_partial_bytes): Likewise.
5273         (rs6000_psave_function_arg): Handle BLKmode arguments.
5275 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5277         * config/rs6000/rs6000.c (machine_function): New member
5278         r2_setup_needed.
5279         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5280         (rs6000_output_mi_thunk): Set r2_setup_needed.
5281         (rs6000_output_function_prologue): Output global entry point
5282         prologue and local entry point marker if needed for ABI_ELFv2.
5283         Output -mprofile-kernel code here.
5284         (output_function_profiler): Do not output -mprofile-kernel
5285         code here; moved to rs6000_output_function_prologue.
5286         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5288         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5289         (rs6000_output_function_entry): Likewise.
5290         (rs6000_assemble_integer): Likewise.
5291         (rs6000_elf_encode_section_info): Likewise.
5292         (rs6000_elf_declare_function_name): Do not create dot symbols
5293         or .opd section for ABI_ELFv2.
5295         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5296         (rs6000_trampoline_init): Likewise.
5297         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5299         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
5300         for function descriptors in ABI_ELFv2.
5302         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5303         on ABI_AIX only, not ABI_ELFv2.
5304         ("*call_value_indirect_aix<mode>"): Likewise.
5305         ("*call_indirect_elfv2<mode>"): New pattern.
5306         ("*call_value_indirect_elfv2<mode>"): Likewise.
5308         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5309         check for function descriptors in ABI_ELFv2.
5310         ("current_file_function_operand"): Likewise.
5312         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5313         (toc): Undefine.
5314         (FUNC_NAME): Define ELFv2 variant.
5315         (JUMP_TARGET): Likewise.
5316         (FUNC_START): Likewise.
5317         (HIDDEN_FUNC): Likewise.
5318         (FUNC_END): Likeiwse.
5320 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5322         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5323         and --with-abi=elfv2.
5324         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5325         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5326         (mabi=elfv2): Likewise.
5327         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5328         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5329         if !RS6000_BI_ARCH.
5330         (ELFv2_ABI_CHECK): New macro.
5331         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5332         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5333         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5334         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5335         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5337         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5338         (debug_stack_info): Likewise.
5339         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5340         (rs6000_legitimize_tls_address): Likewise.
5341         (rs6000_conditional_register_usage): Likewise.
5342         (rs6000_emit_move): Likewise.
5343         (init_cumulative_args): Likewise.
5344         (rs6000_function_arg_advance_1): Likewise.
5345         (rs6000_function_arg): Likewise.
5346         (rs6000_arg_partial_bytes): Likewise.
5347         (rs6000_output_function_entry): Likewise.
5348         (rs6000_assemble_integer): Likewise.
5349         (rs6000_savres_strategy): Likewise.
5350         (rs6000_stack_info): Likewise.
5351         (rs6000_function_ok_for_sibcall): Likewise.
5352         (rs6000_emit_load_toc_table): Likewise.
5353         (rs6000_savres_routine_name): Likewise.
5354         (ptr_regno_for_savres): Likewise.
5355         (rs6000_emit_prologue): Likewise.
5356         (rs6000_emit_epilogue): Likewise.
5357         (rs6000_output_function_epilogue): Likewise.
5358         (output_profile_hook): Likewise.
5359         (output_function_profiler): Likewise.
5360         (rs6000_trampoline_size): Likewise.
5361         (rs6000_trampoline_init): Likewise.
5362         (rs6000_elf_output_toc_section_asm_op): Likewise.
5363         (rs6000_elf_encode_section_info): Likewise.
5364         (rs6000_elf_reloc_rw_mask): Likewise.
5365         (rs6000_elf_declare_function_name): Likewise.
5366         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5367         except that rs6000_compat_align_parm is always assumed false.
5368         (rs6000_gimplify_va_arg): Likewise.
5369         (rs6000_call_aix): Update comment.
5370         (rs6000_sibcall_aix): Likewise.
5371         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5372         Treat ABI_ELFv2 the same as ABI_AIX.
5373         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5374         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5375         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5376         ("load_toc_aix_si"): Likewise.
5377         ("load_toc_aix_di"): Likewise.
5378         ("call"): Likewise.
5379         ("call_value"): Likewise.
5380         ("*call_local_aix<mode>"): Likewise.
5381         ("*call_value_local_aix<mode>"): Likewise.
5382         ("*call_nonlocal_aix<mode>"): Likewise.
5383         ("*call_value_nonlocal_aix<mode>"): Likewise.
5384         ("*call_indirect_aix<mode>"): Likewise.
5385         ("*call_value_indirect_aix<mode>"): Likewise.
5386         ("sibcall"): Likewise.
5387         ("sibcall_value"): Likewise.
5388         ("*sibcall_aix<mode>"): Likewise.
5389         ("*sibcall_value_aix<mode>"): Likewise.
5390         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5391         ("current_file_function_operand"): Likewise.
5393 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5395         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5396         by making use of the fact that for vector / floating point arguments
5397         passed both in VRs/FPRs and in the fixed parameter area, the partial
5398         bytes mechanism is in fact not used.
5400 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5402         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5403         (rs6000_finish_function_arg): Likewise.
5404         (rs6000_function_arg): Use rs6000_psave_function_arg and
5405         rs6000_finish_function_arg to handle both vector and floating
5406         point arguments that are also passed in GPRs / the stack.
5408 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5410         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5411         (USE_ALTIVEC_FOR_ARG_P): Likewise.
5412         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5413         (rs6000_function_arg_advance_1):Likewise.
5414         (rs6000_darwin64_record_arg_recurse): Likewise.
5415         (rs6000_function_arg): Likewise.
5416         (rs6000_arg_partial_bytes): Likewise.
5418 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5420         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5421         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5422         (rs6000_savres_strategy): Likewise.
5423         (rs6000_return_addr): Likewise.
5424         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5425         testing for ABI_V4 (since ABI_DARWIN is impossible here).
5426         (rs6000_emit_prologue): Likewise.
5427         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5428         (rs6000_elf_declare_function_name): Remove duplicated test.
5429         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5430         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5431         ("load_toc_v4_PIC_1_normal"): Likewise.
5432         ("load_toc_v4_PIC_1_476"): Likewise.
5433         ("load_toc_v4_PIC_1b"): Likewise.
5434         ("load_toc_v4_PIC_1b_normal"): Likewise.
5435         ("load_toc_v4_PIC_1b_476"): Likewise.
5436         ("load_toc_v4_PIC_2"): Likewise.
5437         ("load_toc_v4_PIC_3b"): Likewise.
5438         ("load_toc_v4_PIC_3c"): Likewise.
5439         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5440         (RS6000_SAVE_AREA): Likewise.
5441         (FP_ARG_MAX_REG): Likewise.
5442         (RETURN_ADDRESS_OFFSET): Likewise.
5443         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5444         of ABI_AIX.
5445         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5446         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5448 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5450         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5451         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
5452         Create call insn directly instead of via various gen_... routines.
5453         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5454         (rs6000_sibcall_aix): New function.
5455         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5456         (TOC_SAVE_OFFSET_64BIT): Likewise.
5457         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5458         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5459         (AIX_FUNC_DESC_SC_32BIT): Likewise.
5460         (AIX_FUNC_DESC_SC_64BIT): Likewise.
5461         ("call" expander): Call rs6000_call_aix.
5462         ("call_value" expander): Likewise.
5463         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5464         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5465         ("*call_indirect_aix<mode>"): ... by this insn pattern.
5466         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5467         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5468         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5469         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5470         ("*call_nonlocal_aix<mode>"): ... this pattern.
5471         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5472         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5473         ("*call_local_aix<mode>"): New insn pattern.
5474         ("*call_value_local_aix<mode>"): Likewise.
5475         ("sibcall" expander): Call rs6000_sibcall_aix.
5476         ("sibcall_value" expander): Likewise.  Move earlier in file.
5477         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5478         ("*sibcall_aix<mode>"): ... this pattern.
5479         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5480         ("*sibcall_value_aix<mode>"): ... this pattern.
5481         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5482         (rs6000_call_aix): Add prototype.
5483         (rs6000_sibcall_aix): Likewise.
5485 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5487         PR sanitizer/59122
5488         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5489         isn't confused by the artificial decl.
5491 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5493         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5494         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5495         Instead, add USEs of all modified call-saved CR fields to the
5496         insn storing the result to the stack slot, and provide an
5497         appropriate REG_FRAME_RELATED_EXPR for that insn.
5498         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5499         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5501 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5502             Alan Modra  <amodra@gmail.com>
5504         * function.c (assign_parms): Use all.reg_parm_stack_space instead
5505         of re-evaluating REG_PARM_STACK_SPACE target macro.
5506         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
5507         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5508         (assign_parm_find_entry_rtl): Update call.
5509         * calls.c (initialize_argument_information): Update call.
5510         (emit_library_call_value_1): Likewise.
5511         * expr.h (locate_and_pad_parm): Update prototype.
5513 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5515         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5516         arguments.
5518 2013-11-14  DJ Delorie  <dj@redhat.com>
5520         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5521         to 16 bits.
5523 2013-11-14  Jeff Law  <law@redhat.com>
5525         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5526         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5528 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5530         * doc/invoke.texi: Update documentation for AArch64's -mcpu
5531         and -mtune options.
5533 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5535         * config/aarch64/aarch64-cores.def (example-1): Remove.
5536         (example-2): Likewise.
5537         * config/aarch64/aarch64-tune.md: Regenerate.
5538         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5539         (generic_sched): Remove "large", "small".
5540         * config/aarch64/large.md: Delete.
5541         * config/aarch64/small.md: Delete.
5543 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5545         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5546         * config/aarch64/aarch64-tune.md: Regenerate.
5547         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5548         (generic_sched): "no" if we are tuning for cortexa15.
5549         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5550         relative path.
5552 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5554         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5555         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5556         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5557         (all_cores): Use cortexa53 when tuning for "generic".
5558         (aarch64_override_options): Fix comment.
5559         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5560         * config/aarch64/aarch64-generic.md: Delete.
5562 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5564         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5566 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5568         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5569         (generic_rtx_cost_table): Remove.
5570         (aarch64_rtx_costs): Use fields from cpu_cost_table.
5571         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5572         insn_extra_cost.
5573         (cpu_rtx_cost_table): Remove.
5575 2013-11-14  Julian Brown  <julian@codesourcery.com>
5576             Joey Ye  <joey.ye@arm.com>
5578         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5579         (arm_v7m_tune): New.
5580         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5581         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5582         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5583         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5585 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
5587         PR target/57491
5588         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5589         flag setting.
5591 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5592             Uros Bizjak  <ubizjak@gmail.com>
5594         PR target/59101
5595         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5596         operands[2] satisfies_constraint_Z that might have bit 31 set.
5598 2013-11-13  Jeff Law  <law@redhat.com>
5600         PR tree-optimization/59102
5601         * gimple-ssa-isolate-paths.c
5602         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5603         gimple assignment before looking at gimple_assign_lhs.
5605 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5607         * ira.c: Add comment about threads at the top of file.
5609 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5611         * ira-color.c (coalesce_allocnos): Don't allocate and free
5612         sorted_copies.
5614 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5616         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5617         equality for GIMPLE_ASSIGN.
5619 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5621         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5622         function out of ...
5623         (gimple_equal_p): ... here.
5625 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5627         * trans-mem.c (is_tm_ending): New function.
5628         * gimple.h (is_tm_ending): Declare.
5629         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5630         BUILT_IN_TM_COMMIT.
5631         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5633 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5635         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5637 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
5639         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
5640         (struct walk_stmt_info):  Relocate here from gimple.h.
5641         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
5642         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5643         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5644         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5645         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5646         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5647         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5648         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5649         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5650         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5651         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5652         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5653         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5654         (struct walk_stmt_info): Move to gimple-walk.h.
5655         (gimple_seq_set_location): Move to gimple.c
5656         * gimple-walk.c: New File.
5657         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5658         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5659         walk_stmt_load_store_ops): Relocate here from gimple.c.
5660         * gimple-iterator.c: Include gimple-iterator.h.
5661         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5662         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5663         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5664         gimple-walk.c.
5665         (gimple_seq_set_location): Relocate from gimple.h.
5666         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5667         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5668         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5669         * Makefile.in (OBJS): Add gimple-walk.o
5670         * asan.c: Update Include list as required for gimple-iterator.h and
5671         gimple-walk.h.
5672         * cfgexpand.c: Likewise.
5673         * cfgloop.c: Likewise.
5674         * cfgloopmanip.c: Likewise.
5675         * cgraph.c: Likewise.
5676         * cgraphbuild.c: Likewise.
5677         * cgraphunit.c: Likewise.
5678         * gimple-fold.c: Likewise.
5679         * gimple-low.c: Likewise.
5680         * gimple-pretty-print.c: Likewise.
5681         * gimple-ssa-isolate-paths.c: Likewise.
5682         * gimple-ssa-strength-reduction.c: Likewise.
5683         * gimple-streamer-in.c: Likewise.
5684         * gimple-streamer-out.c: Likewise.
5685         * gimplify.c: Likewise.
5686         * graphite-blocking.c: Likewise.
5687         * graphite-clast-to-gimple.c: Likewise.
5688         * graphite-dependences.c: Likewise.
5689         * graphite-interchange.c: Likewise.
5690         * graphite-optimize-isl.c: Likewise.
5691         * graphite-poly.c: Likewise.
5692         * graphite-scop-detection.c: Likewise.
5693         * graphite-sese-to-poly.c: Likewise.
5694         * graphite.c: Likewise.
5695         * ipa-inline-analysis.c: Likewise.
5696         * ipa-profile.c: Likewise.
5697         * ipa-prop.c: Likewise.
5698         * ipa-pure-const.c: Likewise.
5699         * ipa-split.c: Likewise.
5700         * lto-streamer-in.c: Likewise.
5701         * lto-streamer-out.c: Likewise.
5702         * omp-low.c: Likewise.
5703         * predict.c: Likewise.
5704         * profile.c: Likewise.
5705         * sese.c: Likewise.
5706         * tracer.c: Likewise.
5707         * trans-mem.c: Likewise.
5708         * tree-call-cdce.c: Likewise.
5709         * tree-cfg.c: Likewise.
5710         * tree-cfgcleanup.c: Likewise.
5711         * tree-complex.c: Likewise.
5712         * tree-data-ref.c: Likewise.
5713         * tree-dfa.c: Likewise.
5714         * tree-eh.c: Likewise.
5715         * tree-emutls.c: Likewise.
5716         * tree-if-conv.c: Likewise.
5717         * tree-inline.c: Likewise.
5718         * tree-into-ssa.c: Likewise.
5719         * tree-loop-distribution.c: Likewise.
5720         * tree-nested.c: Likewise.
5721         * tree-nrv.c: Likewise.
5722         * tree-object-size.c: Likewise.
5723         * tree-outof-ssa.c: Likewise.
5724         * tree-parloops.c: Likewise.
5725         * tree-predcom.c: Likewise.
5726         * tree-profile.c: Likewise.
5727         * tree-scalar-evolution.c: Likewise.
5728         * tree-sra.c: Likewise.
5729         * tree-ssa-ccp.c: Likewise.
5730         * tree-ssa-coalesce.c: Likewise.
5731         * tree-ssa-copy.c: Likewise.
5732         * tree-ssa-copyrename.c: Likewise.
5733         * tree-ssa-dce.c: Likewise.
5734         * tree-ssa-dom.c: Likewise.
5735         * tree-ssa-dse.c: Likewise.
5736         * tree-ssa-forwprop.c: Likewise.
5737         * tree-ssa-ifcombine.c: Likewise.
5738         * tree-ssa-live.c: Likewise.
5739         * tree-ssa-loop-ch.c: Likewise.
5740         * tree-ssa-loop-im.c: Likewise.
5741         * tree-ssa-loop-ivcanon.c: Likewise.
5742         * tree-ssa-loop-ivopts.c: Likewise.
5743         * tree-ssa-loop-manip.c: Likewise.
5744         * tree-ssa-loop-niter.c: Likewise.
5745         * tree-ssa-loop-prefetch.c: Likewise.
5746         * tree-ssa-loop.c: Likewise.
5747         * tree-ssa-math-opts.c: Likewise.
5748         * tree-ssa-phiopt.c: Likewise.
5749         * tree-ssa-phiprop.c: Likewise.
5750         * tree-ssa-pre.c: Likewise.
5751         * tree-ssa-propagate.c: Likewise.
5752         * tree-ssa-reassoc.c: Likewise.
5753         * tree-ssa-sink.c: Likewise.
5754         * tree-ssa-strlen.c: Likewise.
5755         * tree-ssa-structalias.c: Likewise.
5756         * tree-ssa-tail-merge.c: Likewise.
5757         * tree-ssa-ter.c: Likewise.
5758         * tree-ssa-threadedge.c: Likewise.
5759         * tree-ssa-threadupdate.c: Likewise.
5760         * tree-ssa-uncprop.c: Likewise.
5761         * tree-ssa-uninit.c: Likewise.
5762         * tree-ssa.c: Likewise.
5763         * tree-stdarg.c: Likewise.
5764         * tree-switch-conversion.c: Likewise.
5765         * tree-tailcall.c: Likewise.
5766         * tree-vect-data-refs.c: Likewise.
5767         * tree-vect-generic.c: Likewise.
5768         * tree-vect-loop-manip.c: Likewise.
5769         * tree-vect-loop.c: Likewise.
5770         * tree-vect-patterns.c: Likewise.
5771         * tree-vect-slp.c: Likewise.
5772         * tree-vect-stmts.c: Likewise.
5773         * tree-vectorizer.c: Likewise.
5774         * tree-vrp.c: Likewise.
5775         * tree.c: Likewise.
5776         * tsan.c: Likewise.
5777         * value-prof.c: Likewise.
5778         * vtable-verify.c: Likewise.
5780 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5782         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5783         fix.
5785 2013-11-13  Jeff Law  <law@redhat.com>
5787         * PR middle-end/59119
5788         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5789         function, extracted from gimple_ssa_isolate_erroneous_paths.
5790         (find_explicit_erroneous_behaviour): Similarly.
5791         (insert_trap_and_remove_trailing_statements): Remove statements
5792         in reverse order.
5794 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5796         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5797         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
5798         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5799         looking at INSN_CODE.
5800         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5801         active_insn_p object, respect basic block boundaries.
5802         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5803         follows immediately after the jump table data label.
5804         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5805         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
5806         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5808 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5810         PR ipa/58862
5811         * predict.c (drop_profile): Error is currently too strict.
5812         (handle_missing_profiles): Pass call_count to drop_profile.
5814 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5816         PR ipa/58862
5817         * ipa-inline.c (edge_badness): Fix overflow.
5819 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5821         PR rtl-optimization/59036
5822         * ira-color.c (struct allocno_color_data): Add new members
5823         first_thread_allocno, next_thread_allocno, thread_freq.
5824         (sorted_copies): New static var.
5825         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5826         (allocno_thread_conflict_p, merge_threads)
5827         (form_threads_from_copies, form_threads_from_bucket)
5828         (form_threads_from_colorable_allocno, init_allocno_threads): New
5829         functions.
5830         (bucket_allocno_compare_func): Add comparison by thread frequency
5831         and threads.
5832         (add_allocno_to_ordered_bucket): Rename to
5833         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
5834         (push_only_colorable): Call form_threads_from_bucket.
5835         (color_pass): Call init_allocno_threads.  Use
5836         consideration_allocno_bitmap instead of coloring_allocno_bitmap
5837         for nuillify allocno color data.
5838         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5839         (coalesce_allocnos): Use static sorted copies.
5841 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
5843         * passes.c (execute_todo): Don't call do_per_function if
5844         flags are zero.
5845         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5846         execute_function_dump if dump_file is NULL.
5848 2013-11-13  Martin Jambor  <mjambor@suse.cz>
5850         * cgraph.c (cgraph_get_create_node): Do what
5851         cgraph_get_create_real_symbol_node used to do.
5852         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
5853         call cgraph_get_create_node.
5854         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5855         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5856         cgraph_get_create_node.  Assert we get a node.
5858 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5860         * config/aarch64/aarch64-simd.md (vec_extract): New.
5862 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5864         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5865         the constraint.
5867 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5869         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5870         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5871         or if optimization is enabled.
5872         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5873         require that all the names based on a PARM_DECL or a RESULT_DECL that
5874         isn't ignored for debug info be coalesced.
5876 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5878         * config/c6x/c6x.c: Include "gimple-expr.h".
5880 2013-11-13  Richard Biener  <rguenther@suse.de>
5882         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5883         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5884         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5885         dealing with type mismatches inside component reference chains.
5887 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
5889         PR tree-optimization/59077
5890         * ipa-pure-const.c (better_state): Update *state.
5892 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
5894         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5895         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5896         Update offset calculations.
5898 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5900         PR ada/35998
5901         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5902         for fields.  Do not add the attribute if the size is negative.
5904 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5906         * config/arm/arm.c: Include aarch-cost-tables.h.
5907         (generic_extra_costs): Move from here...
5908         * config/arm/aarch-cost-tables.h: ... To here.  New file.
5910 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5911             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5912             Sergey Lega  <sergey.s.lega@intel.com>
5913             Anna Tikhonova  <anna.tikhonova@intel.com>
5914             Ilya Tocar  <ilya.tocar@intel.com>
5915             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5916             Ilya Verbin  <ilya.verbin@intel.com>
5917             Kirill Yukhin  <kirill.yukhin@intel.com>
5918             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5920         * config/i386/i386.c (ix86_print_operand): Support z-masking.
5921         * config/i386/predicate.md (const_0_to_4_operand): New.
5922         (const_0_to_5_operand): Ditto.
5923         * config/i386/sse.md (UNSPEC_COMPRESS): New.
5924         (UNSPEC_COMPRESS_STORE): Ditto.
5925         (UNSPEC_EXPAND): Ditto.
5926         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5927         (define_mode_attr ssescalarsize): Ditto.
5928         (avx512f_load<mode>_mask): Ditto.
5929         (avx512f_store<mode>_mask): Ditto.
5930         (avx512f_storedqu<mode>_mask): Ditto.
5931         (avx512f_vmcmp<mode>3_mask): Ditto.
5932         (avx512f_fmadd_<mode>_mask): Ditto.
5933         (avx512f_fmadd_<mode>_mask3): Ditto.
5934         (avx512f_fmsub_<mode>_mask): Ditto.
5935         (avx512f_fmsub_<mode>_mask3): Ditto.
5936         (avx512f_fnmadd_<mode>_mask): Ditto.
5937         (avx512f_fnmadd_<mode>_mask3): Ditto.
5938         (avx512f_fnmsub_<mode>_mask): Ditto.
5939         (avx512f_fnmsub_<mode>_mask3): Ditto.
5940         (avx512f_fmaddsub_<mode>_mask): Ditto.
5941         (avx512f_fmaddsub_<mode>_mask3): Ditto.
5942         (avx512f_fmsubadd_<mode>_mask): Ditto.
5943         (avx512f_fmsubadd_<mode>_mask3): Ditto.
5944         (vec_unpacku_float_lo_v16si): Ditto.
5945         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5946         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5947         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5948         (vec_extract_lo_<mode>_maskm): Ditto.
5949         (vec_extract_hi_<mode>_maskm): Ditto.
5950         (avx512f_vternlog<mode>_mask): Ditto.
5951         (avx512f_shufps512_mask): Ditto.
5952         (avx512f_fixupimm<mode>_mask): Ditto.
5953         (avx512f_shufpd512_mask): Ditto.
5954         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5955         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5956         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5957         (ashr<mode>3<mask_name>): Ditto.
5958         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5959         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5960         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5961         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5962         (avx512f_pshufdv3_mask): Ditto.
5963         (avx512f_perm<mode>_mask): Ditto.
5964         (avx512f_vpermi2var<mode>3_mask): Ditto.
5965         (avx512f_vpermt2var<mode>3_mask): Ditto.
5966         (avx512f_compress<mode>_mask): Ditto.
5967         (avx512f_compressstore<mode>_mask): Ditto.
5968         (avx512f_expand<mode>_mask): Ditto.
5969         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5970         to support masking.
5971         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5972         (<plusminus_insn><mode>3<mask_name>): Ditto.
5973         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5974         (mul<mode>3<mask_name>): Ditto.
5975         (*mul<mode>3<mask_name>): Ditto.
5976         (<sse>_div<mode>3<mask_name>): Ditto.
5977         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5978         (<sse>_sqrt<mode>2<mask_name>): Ditto.
5979         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5980         (<code><mode>3<mask_name>/smaxmin): Ditto.
5981         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5982         (*<code><mode>3<mask_name>/smaxmin): Ditto.
5983         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5984         (ufloatv16siv16sf2<mask_name>): Ditto.
5985         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5986         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5987         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5988         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5989         (ufloatv8siv8df<mask_name>): Ditto.
5990         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5991         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5992         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5993         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5994         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5995         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5996         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5997         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5998         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5999         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
6000         (vec_extract_lo_<mode><mask_name>): Ditto.
6001         (vec_extract_hi_<mode><mask_name>): Ditto.
6002         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6003         (avx512f_movddup512<mask_name>): Ditto.
6004         (avx512f_unpcklpd512<mask_name>): Ditto.
6005         (*avx512f_unpcklpd512<mask_name>): Ditto.
6006         (*avx512f_vmscalef<mode>): Ditto.
6007         (avx512f_scalef<mode><mask_name>): Ditto.
6008         (avx512f_getexp<mode><mask_name>): Ditto.
6009         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
6010         (avx512f_rndscale<mode><mask_name>): Ditto.
6011         (avx512f_shufps512_1<mask_name>): Ditto.
6012         (avx512f_shufpd512_1<mask_name>): Ditto.
6013         (<plusminus_insn><mode>3<mask_name>): Ditto.
6014         (*<plusminus_insn><mode>3<mask_name>): Ditto.
6015         (vec_widen_umult_even_v16si<mask_name>): Ditto.
6016         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
6017         (vec_widen_smult_even_v16si<mask_name>): Ditto.
6018         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
6019         (mul<mode>3<mask_name>): Ditto.
6020         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
6021         (<shift_insn><mode>3<mask_name>): Ditto.
6022         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
6023         (avx512f_<rotate><mode><mask_name>): Ditto.
6024         (<code><mode>3<mask_name>/maxmin): Ditto.
6025         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
6026         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
6027         (*andnot<mode>3<mask_name>): Ditto.
6028         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
6029         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
6030         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
6031         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
6032         (vec_set_lo_<mode><mask_name>): Ditto.
6033         (vec_set_hi_<mode><mask_name>): Ditto.
6034         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
6035         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
6036         (avx512f_pshufd_1<mask_name>): Ditto.
6037         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
6038         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
6039         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
6040         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
6041         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
6042         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
6043         (avx512er_exp2<mode><mask_name>): Ditto.
6044         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
6045         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
6046         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
6047         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
6048         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
6049         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
6050         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
6051         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
6052         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
6053         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
6054         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
6055         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
6056         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
6057         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
6058         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
6059         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
6060         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
6061         (avx512f_getmant<mode><mask_name>): Ditto.
6062         (clz<mode>2<mask_name>): Ditto.
6063         (<mask_codefor>conflict<mode><mask_name>): Ditto.
6064         (*srcp14<mode>): Remove visibility.
6065         (*rsqrt14<mode>): Ditto.
6066         (*fma_fmsub_<mode>): Ditto.
6067         (*fma_fnmadd_<mode>): Ditto.
6068         (*avx512f_rndscale<mode>): Ditto.
6069         * config/i386/subst.md: New file.
6071 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
6073         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
6074         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
6075         (atomic_load_explicit, atomic_exchange_explicit)
6076         (atomic_compare_exchange_strong_explicit)
6077         (atomic_compare_exchange_weak_explicit): Use __auto_type to
6078         declare variable initialized with PTR argument.
6080 2013-11-12  Jeff Law  <law@redhat.com>
6082         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
6083         backedge_seen_p.  Set, use and pass it to children appropriately.
6084         (thread_through_normal_block): Similarly.
6085         (thread_across_edge): Similarly.
6087         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
6088         memory references as volatile.
6089         (insert_trap_and_remove_trailing_statements): Fix comment.
6091 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
6093         PR other/58712
6094         * ira-costs.c (record_operand_costs): Check operands number for
6095         the single set.
6097 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6099         PR target/59054
6100         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
6101         constraints that would allow DImode into the traditional Altivec
6102         registers, but cause undesirable code generation when loading 0 as
6103         a constant.
6104         (movdi_internal64): Likewise.
6105         (cmp<mode>_fpr): Do not use %x for CR register output.
6106         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
6107         -mallow-upper-sf debug switches are used.
6109 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
6111         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
6112         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
6113         Relocate prototypes from gimple.h.
6114         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
6115         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
6116         from gimple.h.
6117         * gimple.h: Move some prototypes to gimplify.h.
6118         (gimple_predicate, enum fallback, enum gimplify_status): Move to
6119         gimplify.h.
6120         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
6121         Relocate from gimpify.c.
6122         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6123         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
6124         is_gimple_reg_rhs) Relocate from gimplify.c.
6125         * gimplify.c (mark_addressable): Move to gimple-expr.c.
6126         (gimple_seq_add_stmt_without_update): Move to gimple.c.
6127         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6128         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
6129         is_gimple_reg_rhs): Move to gimple-expr.c.
6130         (should_carry_location_p): Move to gimple.c.
6131         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
6132         to gimple.h.
6133         (annotate_one_with_location, annotate_all_with_location_after,
6134         annotate_all_with_location): Move to gimple.c.
6135         (compare_case_labels, sort_case_labels,
6136         preprocess_case_label_vec_for_gimple): Move to gimple.c.
6137         (rhs_predicate_for): Make static.
6138         (gimplify_assign): Relocate from gimple.c.
6139         * gimple.c (gimplify_assign): Move to gimplify.c.
6140         (gimple_seq_add_stmt_without_update, should_carry_location_p,
6141         annotate_one_with_location, annotate_all_with_location_after,
6142         annotate_all_with_location, compare_case_labels, sort_case_labels,
6143         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6144         * tree.h (unshare_expr, unshare_expr_without_location,
6145         mark_addressable): Move prototypes to gimplify.h.
6146         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6147         tmp_var_id_num
6148         * asan.c: Include gimplify.h rather than gimple.h.
6149         * cfgloopmanip.c: Likewise.
6150         * cgraphunit.c: Likewise.
6151         * cilk-common.c: Likewise.
6152         * dwarf2out.c: Dont include gimple.h.
6153         * fold-const.c: Include gimplify.h rather than gimple.h.
6154         * function.c: Likewise.
6155         * gimple-fold.c: Likewise.
6156         * gimple-ssa-strength-reduction.c: Likewise.
6157         * graphite-clast-to-gimple.c: Likewise.
6158         * graphite-sese-to-poly.c: Likewise.
6159         * ipa-prop.c: Likewise.
6160         * ipa-split.c: Likewise.
6161         * ipa.c: Likewise.
6162         * langhooks.c: Dont include gimple.h.
6163         * loop-init.c: Include gimplify.h rather than gimple.h.
6164         * omp-low.c: Likewise.
6165         * sese.c: Likewise.
6166         * stor-layout.c: Likewise.
6167         * targhooks.c: Likewise.
6168         * trans-mem.c: Likewise.
6169         * tree-affine.c: Likewise.
6170         * tree-cfg.c: Likewise.
6171         * tree-cfgcleanup.c: Likewise.
6172         * tree-complex.c: Likewise.
6173         * tree-if-conv.c: Likewise.
6174         * tree-inline.c: Likewise.
6175         * tree-iterator.c: Likewise.
6176         * tree-loop-distribution.c: Likewise.
6177         * tree-nested.c: Likewise.
6178         * tree-parloops.c: Likewise.
6179         * tree-predcom.c: Likewise.
6180         * tree-profile.c: Likewise.
6181         * tree-scalar-evolution.c: Likewise.
6182         * tree-sra.c: Likewise.
6183         * tree-ssa-address.c: Likewise.
6184         * tree-ssa-ccp.c: Likewise.
6185         * tree-ssa-dce.c: Likewise.
6186         * tree-ssa-forwprop.c: Likewise.
6187         * tree-ssa-ifcombine.c: Likewise.
6188         * tree-ssa-loop-im.c: Likewise.
6189         * tree-ssa-loop-ivopts.c: Likewise.
6190         * tree-ssa-loop-manip.c: Likewise.
6191         * tree-ssa-loop-niter.c: Likewise.
6192         * tree-ssa-loop-prefetch.c: Likewise.
6193         * tree-ssa-loop-unswitch.c: Likewise.
6194         * tree-ssa-math-opts.c: Likewise.
6195         * tree-ssa-phiopt.c: Likewise.
6196         * tree-ssa-phiprop.c: Likewise.
6197         * tree-ssa-pre.c: Likewise.
6198         * tree-ssa-propagate.c: Likewise.
6199         * tree-ssa-reassoc.c: Likewise.
6200         * tree-ssa-sccvn.c: Likewise.
6201         * tree-ssa-strlen.c: Likewise.
6202         * tree-ssa.c: Likewise.
6203         * tree-switch-conversio: Likewise.n.c
6204         * tree-tailcall.c: Likewise.
6205         * tree-vect-data-refs.c: Likewise.
6206         * tree-vect-generic.c: Likewise.
6207         * tree-vect-loop-manip.c: Likewise.
6208         * tree-vect-loop.c: Likewise.
6209         * tree-vect-patterns.c: Likewise.
6210         * tree-vect-stmts.c: Likewise.
6211         * tsan.c: Likewise.
6212         * value-prof.c: Likewise.
6213         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6214         * config/alpha/alpha.c: Likewise.
6215         * config/darwin.c: Likewise.
6216         * config/i386/i386.c: Likewise.
6217         * config/ia64/ia64.c: Likewise.
6218         * config/mep/mep.c: Likewise.
6219         * config/mips/mips.c: Likewise.
6220         * config/rs6000/rs6000.c: Likewise.
6221         * config/s390/s390.c: Likewise.
6222         * config/sh/sh.c: Likewise.
6223         * config/sparc/sparc.c: Likewise.
6224         * config/spu/spu.c: Likewise.
6225         * config/stormy16/stormy16.c: Likewise.
6226         * config/tilegx/tilegx.c: Likewise.
6227         * config/tilepro/tilepro.c: Likewise.
6228         * config/xtensa/xtensa.c: Likewise.
6230 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
6232         * tree.c (grow_tree_vec_stat): New function ...
6233         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6234         and macro front-end.
6236 2013-11-12  Marek Polacek  <polacek@redhat.com>
6238         * final.c (update_alignments): Initialize label to NULL_RTX.
6240 2013-11-12  Jeff Law  <law@redhat.com>
6242         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6243         (insert_trap_and_remove_trailing_statements): New argument OP which
6244         is the NULL pointer.  Emit the trap after the load/store through
6245         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
6246         when trivial to do so.
6247         (isolate_path): Corresponding changes.
6248         (gimple_ssa_isolate_erroneous_path): Likewise.
6250 2013-11-12  Teresa Johnson  <tejohnson@google.com>
6251             Jan Hubicka  <jh@suse.cz>
6253         * predict.c (drop_profile): New function.
6254         (handle_missing_profiles): Ditto.
6255         (counts_to_freqs): Don't overwrite estimated frequencies
6256         when function has no profile counts.
6257         * predict.h (handle_missing_profiles): Declare.
6258         * tree-inline.c (freqs_to_counts): New function.
6259         (copy_cfg_body): Invoke freqs_to_counts as needed.
6260         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6262 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6264         PR target/59088
6265         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6266         Set for m_HASWELL.
6267         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6269 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6271         PR target/59084
6272         * config/i386/i386.c (ix86_option_override_internal): Check
6273         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6274         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6275         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6276         MASK_AVX256_SPLIT_UNALIGNED_STORE.
6278         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6279         Clear m_COREI7_AVX and update comments.
6280         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6282 2013-11-12  Martin Jambor  <mjambor@suse.cz>
6284         PR rtl-optimization/10474
6285         * ira.c (interesting_dest_for_shprep): New function.
6286         (split_live_ranges_for_shrink_wrap): Likewise.
6287         (find_moveable_pseudos): Move calculation of dominance info,
6288         df_analysios and the final anlyses to...
6289         (ira): ...here, call split_live_ranges_for_shrink_wrap.
6291 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
6293         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6294         Handle type conversion.
6296 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
6297             Jan Hubicka  <jh@suse.cz>
6299         * cgraph.c (dump_cgraph_node): Profile dump added.
6300         * cgraph.h (struct cgraph_node): New time profile variable added.
6301         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6302         * gcov-io.h (gcov_type): New profiler type introduced.
6303         * ipa-profile.c (lto_output_node): Streaming for time profile added.
6304         (input_node): Time profiler is read from LTO stream.
6305         * predict.c (maybe_hot_count_p): Hot prediction changed.
6306         * profile.c (instrument_values): New case for time profiler added.
6307         (compute_value_histograms): Read of time profile.
6308         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6309         * tree-profile.c (init_ic_make_global_vars): Time profiler
6310         function added.
6311         (gimple_init_edge_profiler): TP function instrumentation.
6312         (gimple_gen_time_profiler): New.
6313         * value-prof.c (gimple_add_histogram_value): Support for time profiler
6314         added.
6315         (dump_histogram_value): TP type added to dumps.
6316         (visit_hist): More sensitive check that takes TP into account.
6317         (gimple_find_values_to_profile): TP instrumentation.
6318         * value-prof.h (hist_type): New histogram type added.
6319         (struct histogram_value_t): Pointer to struct function added.
6320         * libgcc/Makefile.in: New GCOV merge function for TP added.
6321         * libgcov.c: function_counter variable introduced.
6322         (_gcov_merge_time_profile): New.
6323         (_gcov_time_profiler): New.
6325 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
6326             Jeff Law  <law@redhat.com>
6328         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6329         ao_ref_init_from_ptr_and_size for builtins.
6331 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
6332             H.J. Lu  <hongjiu.lu@intel.com>
6334         PR target/58853
6335         * config/i386/x86-tune.def
6336         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6337         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6338         * config/i386/i386.h
6339         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6340         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
6341         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6342         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6343         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6344         misaligned_prologue_used.  Check that
6345         desired_aling <= epilogue_size_needed.
6347 2013-11-11  Cong Hou  <congh@google.com>
6349         PR tree-optimization/59050
6350         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6352 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6354         PR middle-end/59049
6355         * expmed.c (emit_store_flag): Fail for const-const comparison.
6357 2013-11-11  Tristan Gingold  <gingold@adacore.com>
6358             Eric Botcazou  <ebotcazou@adacore.com>
6360         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6361         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6362         * tree.def (CONSTRUCTOR): Likewise.
6363         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
6364         * gimplify.c (gimplify_init_constructor): Do not clear the object when
6365         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6367 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
6369         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6370         diagnostic_finish.
6372 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6374         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6375         comparisons.
6377 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6379         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6381 2013-11-08  Jeff Law  <law@redhat.com>
6383         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6384         threading paths first, then perform PHI node checks if applicable.
6386 2013-11-10  Karlson2k  <k2k@narod.ru>
6387             Kai Tietz  <ktietz@redhat.com>
6389         PR plugin/52872
6390         * configure.ac: Adding for exported symbols check
6391         and for rdynamic-check executable-extension.
6392         * configure: Regenerated.
6394 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
6396         * mode-switching.c (optimize_mode_switching): Mark block as
6397         nontransparent, if last_mode at block exit is different from no_mode.
6399 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6401         * function.c (NAME__MAIN): Move to...
6402         * cfgexpand.c (NAME__MAIN): ...here.
6404 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
6406         * target.def (can_use_doloop_p): New hook.
6407         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6408         * doc/tm.texi: Regenerate.
6409         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6410         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6411         * hooks.c (hook_bool_dint_dint_uint_true): New function.
6412         * targhooks.h (can_use_doloop_if_innermost): Declare.
6413         * targhooks.c (can_use_doloop_if_innermost): New function.
6414         * target.h: Include double-int.h.
6415         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6416         Remove iteration count, maximum iteration count, loop depth and
6417         enter-at-top inputs from doloop_begin and doloop_end.
6418         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6419         interface.
6420         * config/arc/arc.c (arc_can_use_doloop_p): New function.
6421         (TARGET_CAN_USE_DOLOOP_P): Define.
6422         * config/arm/thumb2.md (doloop_end): Update for new interface.
6423         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6424         * config/bfin/bfin.md (doloop_end): Update for new interface.
6425         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6426         (TARGET_CAN_USE_DOLOOP_P): Define.
6427         * config/c6x/c6x.md (doloop_end): Update for new interface.
6428         * config/ia64/ia64.md (doloop_end): Update for new interface.
6429         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6430         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6431         interface.
6432         * config/mep/mep.c (mep_emit_doloop): Likewise.
6433         (TARGET_CAN_USE_DOLOOP_P): Define.
6434         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6435         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6436         * config/s390/s390.md (doloop_end): Update for new interface.
6437         * config/sh/sh.md (doloop_end): Likewise.
6438         * config/spu/spu.md (doloop_end): Likewise.
6439         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6440         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6441         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6442         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6443         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6444         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6445         interface.
6446         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6448 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
6450         PR other/59055
6451         * doc/extend.texi: Move Cilk Plus Builtins node before Other
6452         Builtins node.
6454 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
6455             Joseph Myers  <joseph@codesourcery.com>
6457         * ginclude/stdatomic.h: New file.
6458         * Makefile.in (USER_H): Add stdatomic.h.
6460 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6462         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6463         comparisons.
6465 2013-11-08  Jeff Law  <law@redhat.com>
6467         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6468         * tree-ssa-threadupdate.c (delete_thread_path): New function.
6469         (ssa_redirect_edges, thread_block_1): Use it.
6470         (thread_through_loop_header, mark_threaded_blocks): Likewise.
6471         (thread_through_all_blocks, register_jump_thread): Likewise.
6472         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6474 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
6476         * config/arm/aarch-common.c
6477         (search_term): New typedef.
6478         (shift_rtx_costs): New array.
6479         (arm_rtx_shift_left_p): New.
6480         (arm_find_sub_rtx_with_search_term): Likewise.
6481         (arm_find_sub_rtx_with_code): Likewise.
6482         (arm_early_load_addr_dep): Add sanity checking.
6483         (arm_no_early_alu_shift_dep): Likewise.
6484         (arm_no_early_alu_shift_value_dep): Likewise.
6485         (arm_no_early_mul_dep): Likewise.
6486         (arm_no_early_store_addr_dep): Likewise.
6488 2013-11-08  Richard Biener  <rguenther@suse.de>
6490         PR tree-optimization/59047
6491         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6493 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
6495         * common.opt (fcheck-pointer-bounds): Move to ...
6496         * c-family/c.opt: ... here.
6497         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6498         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6499         * langhooks.h (lang_hooks): Remove chkp_supported field.
6500         * toplev.c (process_options): Remove chkp_supported check.
6502 2013-11-08  Richard Biener  <rguenther@suse.de>
6504         PR tree-optimization/59038
6505         PR tree-optimization/58955
6506         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6507         previous change.  Handle known dependences correctly.
6509 2013-11-08  Tom de Vries  <tom@codesourcery.com>
6511         * config/rs6000/t-xilinx: Remove duplicate contents.
6513 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
6514             Joseph Myers  <joseph@codesourcery.com>
6516         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6517         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6518         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6519         (struct tree_base): Add atomic_flag field.
6520         * tree.h (TYPE_ATOMIC): New accessor macro.
6521         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6522         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6523         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6524         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6525         * tree.c (set_type_quals): Set TYPE_ATOMIC.
6526         (find_atomic_core_type): New function.
6527         (build_qualified_type): Adjust alignment for qualified types.
6528         (build_atomic_base): New function
6529         (build_common_tree_nodes): Build atomicQI_type_node,
6530         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6531         atomicTI_type_node.
6532         * print-tree.c (print_node): Print atomic qualifier.
6533         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6534         * target.def (atomic_assign_expand_fenv): New hook.
6535         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6536         * doc/tm.texi: Regenerate.
6537         * targhooks.c (default_atomic_assign_expand_fenv): New function.
6538         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6539         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6540         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6541         function type.
6542         * config/i386/i386.c (enum ix86_builtins): Add
6543         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6544         IX86_BUILTIN_FNCLEX.
6545         (bdesc_special_args): Add __builtin_ia32_fnstenv,
6546         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6547         (ix86_expand_builtin): Handle the new built-in functions.
6548         (ix86_atomic_assign_expand_fenv): New function.
6549         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6550         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6551         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6552         (fnstenv, fldenv, fnstsw, fnclex): New insns.
6554 2013-11-07  Steve Ellcey  <sellcey@mips.com>
6556         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6557         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6558         (MULTILIB_DIRNAMES): Add fp64 directory.
6559         (MULTILIB_EXCEPTIONS): Add new exclusions.
6561 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
6563         * gimplify.c (gimple_regimplify_operands): Do not set
6564         SSA_NAME_DEF_STMT.
6565         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6566         (rewrite_close_phi_out_of_ssa): Same.
6567         (rewrite_phi_out_of_ssa): Same.
6568         (rewrite_degenerate_phi): Same.
6569         (handle_scalar_deps_crossing_scop_limits): Same.
6570         * tree-if-conv.c (predicate_scalar_phi): Same.
6571         * tree-parloops.c (create_loads_for_reductions): Same.
6572         (create_final_loads_for_reduction): Same.
6573         (create_loads_and_stores_for_name): Same.
6574         (transform_to_exit_first_loop): Same.
6575         (create_parallel_loop): Same.
6576         * tree-ssa-loop-im.c
6577         (move_computations_dom_walker::before_dom_children): Same.
6578         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6579         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6580         * tree-ssa-propagate.c (substitute_and_fold): Same.
6581         * tree-vect-loop.c (vect_finalize_reduction): Same.
6582         * tree-vect-stmts.c (vectorizable_call): Same.
6584 2013-11-07  Mike Stump  <mikestump@comcast.net>
6586         * config/pdp11/pdp11.c: Include dbxout.h.
6587         * config/picochip/picochip.c: Likewise.
6589 2013-11-07  Cong Hou  <congh@google.com>
6591         PR tree-optimization/56764
6592         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6593         Combine alias checks if it is possible to amortize the runtime
6594         overhead.  Return the number of alias checks after merging.
6595         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6596         Use the function vect_create_cond_for_alias_checks () to check
6597         the number of alias checks.
6599 2013-11-07  Jeff Law  <law@redhat.com>
6601         * varpool.c (ctor_for_folding): Fix typo in comment.
6603 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
6605         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6606         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
6608 2013-11-07  Jeff Law  <law@redhat.com>
6610         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6612         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6613         No longer check if we have __builtin_trap, assume it's available.
6615 2013-11-07  Diego Novillo  <dnovillo@google.com>
6617         * attribs.c (lookup_scoped_attribute_spec): Make static.
6618         (get_attribute_namespace): Likewise.
6619         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6620         (validate_arglist): Move earlier in the file. Make static.
6621         (expand_stack_restore): Move from stmt.c
6622         (expand_stack_save): Move from stmt.c
6623         (rewrite_call_expr_array): Move earlier in the file.
6624         (rewrite_call_expr_valist): Likewise.
6625         * cfgexpand.c: Include hard-reg-set.h before tree.h
6626         Include recog.h.
6627         Include output.h.
6628         (expand_asm_loc): Move from stmt.c.
6629         (n_occurrences): Move from stmt.c.
6630         (check_operand_nalternatives): Move from stmt.c.
6631         (tree_conflicts_with_clobbers_p): Move from stmt.c.
6632         (expand_asm_operands): Move from stmt.c
6633         (expand_asm_stmt): Move from stmt.c
6634         (expand_computed_goto): Move from stmt.c
6635         (expand_goto): Move from stmt.c
6636         (expand_null_return_1): Move from stmt.c
6637         (expand_null_return): Move from stmt.c
6638         (expand_value_return): Move from stmt.c
6639         (expand_return): Move from stmt.c
6640         (expand_main_function): Move from function.c
6641         (stack_protect_prologue): Move from function.c
6642         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6643         (build_function_decl_skip_args): Move from tree.c.
6644         * explow.c (tree_expr_size): Move from tree.c.
6645         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6646         (fields_length): Move from tree.c.
6647         * fold-const.c (size_low_cst): Move from tree.c.
6648         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6649         (tree_expr_nonzero_p): Make static. Move earlier in the file.
6650         (fold_build3_initializer_loc): Remove.
6651         (tree_invalid_nonnegative_warnv_p): Make static.
6652         * function.c (expand_main_function): Move to cfgexpand.c.
6653         (stack_protect_prologue): Move to cfgexpand.c.
6654         (set_insn_locations): Move earlier in the file.
6655         * gimple-fold.c: Include langhooks.h.
6656         (truth_type_for): Move from tree.c.
6657         * print-tree.c (print_vec_tree): Remove.
6658         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6659         (expand_goto): Move to cfgexpand.c.
6660         (n_occurrences): Move to cfgexpand.c.
6661         (expand_asm_loc): Move to cfgexpand.c
6662         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6663         (expand_asm_operands): Move to cfgexpand.c.
6664         (expand_asm_stmt): Move to cfgexpand.c.
6665         (check_operand_nalternatives): Move to cfgexpand.c
6666         (expand_null_return): Move to cfgexpand.c.
6667         (expand_value_return): Move to cfgexpand.c.
6668         (expand_null_return_1): Move to cfgexpand.c.
6669         (expand_return): Move to cfgexpand.c.
6670         (expand_stack_save): Move to builtins.c.
6671         (expand_stack_restore): Move to builtins.c
6672         * symtab.c: Include output.h.
6673         (decl_assembler_name_hash): Move from tree.c.
6674         (decl_assembler_name_equal): Move from tree.c.
6675         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6676         * tree-eh.c (in_array_bounds_p): Move from tree.c.
6677         (range_in_array_bounds_p): Move from tree.c.
6678         * tree-object-size.c (fini_object_sizes): Make static.
6679         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6680         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6681         * tree.c (decl_assembler_name_equal): Move to symtab.c.
6682         (tree_expr_size): Move to explow.c.
6683         (decl_assembler_name_hash): Move to symtab.c.
6684         (real_twop): Remove.
6685         (tree_expr_size): Move to explow.c.
6686         (stabilize_reference_1): Move earlier in the file. Make static.
6687         (omp_remove_redundant_declare_simd_attrs): Remove.
6688         (simple_cst_list_equal): Move earlier in the file. Make static.
6689         (size_low_cst): Move to fold-const.c.
6690         (build_type_no_quals): Remove.
6691         (build_function_type_skip_args): Move to cgraphclones.c.
6692         (build_function_decl_skip_args): Move to cgraphclones.c.
6693         (in_array_bounds_p): Move to tree-eh.c.
6694         (range_in_array_bounds_p): Move to tree-eh.c.
6695         (truth_type_for): Move to gimple-fold.c.
6696         (list_equal_p): Remove.
6697         * tree.h (decl_assembler_name_equal): Remove.
6698         (decl_assembler_name_hash): Remove.
6699         (truth_type_for): Remove.
6700         (build_type_no_quals): Remove.
6701         (build_function_decl_skip_args): Remove.
6702         (in_array_bounds_p): Remove.
6703         (range_in_array_bounds_p): Remove.
6704         (size_low_cst): Remove.
6705         (omp_remove_redundant_declare_simd_attrs): Remove.
6706         (tree_expr_size): Remove.
6707         (fields_length): Remove.
6708         (stabilize_reference_1): Remove.
6709         (expand_goto): Remove.
6710         (expand_stack_save): Remove.
6711         (expand_stack_restore): Remove.
6712         (expand_return): Remove.
6713         (fold_build3_initializer_loc): Remove.
6714         (tree_expr_nonzero_p): Remove.
6715         (tree_invalid_nonnegative_warnv_p): Remove.
6716         (tree_expr_nonzero_warnv_p): Remove.
6717         (fold_builtin_snprintf_chk): Remove.
6718         (validate_arglist): Remove.
6719         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6720         (simple_cst_list_equal): Remove.
6721         (real_twop): Remove.
6722         (expand_main_function): Remove.
6723         (stack_protect_prologue): Remove.
6724         (print_vec_tree): Remove.
6725         (lookup_scoped_attribute_spec): Remove.
6726         (get_attribute_namespace): Remove.
6727         (expand_computed_goto): Remove.
6728         (expand_asm_stmt): Remove.
6729         (list_equal_p): Remove.
6730         (ssa_name_nonnegative_p): Remove.
6731         (fini_object_sizes): Remove.
6732         (addr_expr_of_non_mem_decl_p): Remove.
6733         (is_tm_safe_or_pure): Move to trans-mem.c.
6734         (more_const_call_expr_args_p): Remove.
6735         (save_vtable_map_decl): Remove.
6737 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
6739         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6740         linker plugins, too.
6742         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6743         link to libgomp and its dependencies.
6744         * config/ia64/hpux.h (LIB_SPEC): Likewise.
6745         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6746         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6747         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6749 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
6751         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6752         (determine_value_range): Add loop argument.  Use get_range_info to
6753         improve range.
6754         (bound_difference): Adjust caller.
6756 2013-11-07  Richard Biener  <rguenther@suse.de>
6757             Jakub Jelinek  <jakub@redhat.com>
6759         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6760         latches from header PHI arguments from the latch edge.
6762 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
6764         PR c++/58176
6765         * varasm.c (output_constant): Handle NULLPTR_TYPE.
6767 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6769         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6770         misaligned_prologue_used when it has been set.
6772 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
6773             Jakub Jelinek  <jakub@redhat.com>
6775         PR sanitizer/59029
6776         * asan.c (get_mem_refs_of_builtin_call): Allow
6777         integer literals as addresses in instrumented builtins.
6779 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6781         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6782         Explain why plus_constant is not used.
6784 2013-11-07  Richard Biener  <rguenther@suse.de>
6786         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6787         (canonicalize_value): ... this.  Also handle stripping of
6788         TREE_OVERFLOW.
6789         (get_value, set_lattice_value, get_value_for_expr): Adjust.
6790         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6791         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6793 2013-11-07  Richard Biener  <rguenther@suse.de>
6795         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6797 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6799         PR target/59034
6800         * config/i386/i386.md (push peepholer/splitter): Use Pmode
6801         with stack_pointer_rtx.
6803 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6805         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6806         using operand_equal_p.
6808 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6810         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6811         * tree-affine.c (get_inner_reference_aff): Return base.
6812         * tree-affine.h (get_inner_reference_aff): Change prototype.
6814 2013-11-06  Tobias Burnus  <burnus@net-b.de>
6816         * doc/invoke.texi (Wdate-time): Fix typo.
6818 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6820         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6821         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6822         fp_arith_reg_operand instead of arith_reg_operand.
6824 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6826         * config/sh/sh.md (adddi3): Remove empty constraints.
6827         Remove can_create_pseudo_p and arith_reg_operand check.
6828         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6829         Split before reload.
6831 2013-11-06  Jeff Law  <law@redhat.com>
6832             Tom Tromey  <tromey@redhat.com>
6834         * gdbinit.in: Disable strict type checking.
6836 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
6838         * tree-pass.h (make_pass_live_range_shrinkage): New external.
6839         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6840         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6841         (rest_of_handle_live_range_shrinkage): Ditto
6842         (class pass_live_range_shrinkage): Ditto.
6843         (pass_data_live_range_shrinkage): Ditto.
6844         (make_pass_live_range_shrinkage): Ditto.
6845         * sched-int.h (initialize_live_range_shrinkage): New prototype.
6846         (finish_live_range_shrinkage): Ditto.
6847         * sched-deps.c (create_insn_reg_set): Make void return value.
6848         * passes.def: Add pass_live_range_shrinkage.
6849         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6850         * haifa-sched.c (live_range_shrinkage_p): New.
6851         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6852         New functions.
6853         (rank_for_schedule): Add code for pressure relief through live
6854         range shrinkage.
6855         (schedule_insn): Print more debug info.
6856         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6857         through live range shrinkage.
6858         * doc/invoke.texi (-flive-range-shrinkage): New.
6859         * common.opt (flive-range-shrinkage): New.
6861 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
6863         PR target/59021
6864         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6865         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6866         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6867         RTXes that return in AVX256 register.
6869 2013-11-06  Richard Biener  <rguenther@suse.de>
6871         PR tree-optimization/58653
6872         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6873         (prepare_initializers_chain): Adjust.
6875 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
6877         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6878         (gimple_in_transaction): Use bb_in_transaction.
6879         * basic-block.h (bb_in_transaction): Relocate here and rename.
6880         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6882 2013-11-06  Richard Biener  <rguenther@suse.de>
6884         * tree.c (drop_tree_overflow): New function.
6885         * tree.h (drop_tree_overflow): Declare.
6886         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6887         * tree-vrp.c (range_int_cst_singleton_p): Use
6888         is_overflow_infinity instead of testing TREE_OVERFLOW.
6889         (extract_range_from_assert): Likewise.
6890         (zero_nonzero_bits_from_vr): Likewise.
6891         (extract_range_basic): Likewise.
6892         (register_new_assert_for): Use drop_tree_overflow.
6893         (vrp_visit_phi_node): Likewise.
6895 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6897         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6898         checking for leaf functions without dynamic stack allocation.
6899         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6900         (ia64_expand_prologue): Likewise.
6901         * config/mips/mips.c (mips_expand_prologue): Likewise.
6902         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6903         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6904         (sparc_flat_expand_prologue): Likewise.
6906 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
6908         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
6909         (__ST3_LANE_FUNC): Likewise.
6910         (__ST4_LANE_FUNC): Likewise.
6912 2013-11-06  Nick Clifton  <nickc@redhat.com>
6914         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
6915         name returned by msp430_mcu_name.
6916         (LIB_SPEC): If a -T option has not been specified then set a
6917         default, mcu-specific, linker script.
6918         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6919         * config/msp430/msp430.c (msp430x_names): Likewise.
6920         Alpha sort the names for ease of comparison.
6921         (msp430_mcu_name): New function:  Returns a string suitable for
6922         use as a C preprocessor symbol based upon the name of the MCU
6923         being targeted.
6924         (msp430_option_override): Accept msp430x and msp430xv2 as generic
6925         mcu names.
6926         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6928         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6929         unless it is the last part of a spec substring.
6930         * doc/invoke.texi (Spec Files): Document space insertion
6931         behaviour of %*.
6933 2013-11-06  Christian Bruel  <christian.bruel@st.com>
6935         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6936         Factorize probabilities, Use adjust_address instead of
6937         adjust_automodify_address when possible. Enable for optimize.
6938         (sh_expand_strlen): New function.
6939         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6940         * config/sh/sh.md (strlensi): New pattern.
6941         (UNSPEC_BUILTIN_STRLEN): Define.
6943 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
6945         PR middle-end/58970
6946         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6947         (expand_assignment): If *bitpos is negative, set *offset
6948         and adjust *bitpos, so that it is not negative.
6950 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
6952         * config/i386/bdver3.md : Added two additional decoder units
6953         to support issue rate of 4 and remodeled vector unit.
6954         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6955         architectures is set to 4.
6956         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6957         lookahead is set to 4 for BD architectures.
6959 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6961         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6962         Remove restriction against use of VSX instructions when generating
6963         code for little endian mode.
6965 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6967         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6968         for both big and little endian.
6969         (mulv8hi3): Swap input operands for merge high and merge low
6970         instructions for little endian.
6972 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6974         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6975         define_insn to define_expand that uses even patterns for big
6976         endian and odd patterns for little endian.
6977         (vec_widen_smult_even_v16qi): Likewise.
6978         (vec_widen_umult_even_v8hi): Likewise.
6979         (vec_widen_smult_even_v8hi): Likewise.
6980         (vec_widen_umult_odd_v16qi): Likewise.
6981         (vec_widen_smult_odd_v16qi): Likewise.
6982         (vec_widen_umult_odd_v8hi): Likewise.
6983         (vec_widen_smult_odd_v8hi): Likewise.
6984         (altivec_vmuleub): New define_insn.
6985         (altivec_vmuloub): Likewise.
6986         (altivec_vmulesb): Likewise.
6987         (altivec_vmulosb): Likewise.
6988         (altivec_vmuleuh): Likewise.
6989         (altivec_vmulouh): Likewise.
6990         (altivec_vmulesh): Likewise.
6991         (altivec_vmulosh): Likewise.
6993 2013-11-05  Mike Stump  <mikestump@comcast.net>
6995         * Makefile.in (mostlyclean): Remove c-family objects.
6997 2013-11-05  Ian Lance Taylor  <iant@google.com>
6999         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7000         If possible, add .cfi directives to record change to bx.
7001         * config/i386/i386.c (ix86_emit_cfi): New function.
7002         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7004 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
7006         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
7007         immediately after a label for a tablejump pattern.
7009         * config/arm/arm.c (is_jump_table): Remove.
7010         (create_fix_barrier): Use tablejump_p instead.
7011         (arm_reorg): Likewise.
7012         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
7013         (thumb2_output_casesi): Likewise.
7014         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
7015         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
7016         casesi_shift_media, casesi_load_media): Likewise.
7017         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
7018         * config/microblaze/microblaze.md: Likewise.
7020 2013-11-05  Tobias Burnus  <burnus@net-b.de>
7022         * doc/invoke.texi (-Wdate-time): Document.
7024 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
7026         * double-int.c (lshift_double, rshift_double): Remove
7027         SHIFT_COUNT_TRUNCATED handling.
7029 2013-11-05  Jeff Law  <law@redhat.com>
7031         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
7032         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
7033         * gimple-ssa-isolate-paths.c: New file.
7034         * gimple.c (check_loadstore): New function.
7035         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
7036         Verify OP is in the argument list and the argument corresponding
7037         to OP is a pointer type.  Use operand_equal_p rather than
7038         pointer equality when testing if OP is on the nonnull list.
7039         Use check_loadstore rather than count_ptr_derefs.  Handle
7040         GIMPLE_RETURN statements.
7041         * tree-vrp.c (infer_nonnull_range): Remove.
7042         * gimple.h (infer_nonnull_range): Declare.
7043         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
7044         * passes.def: Add pass_isolate_erroneous_paths.
7045         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
7046         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
7047         * tree-ssa.c (struct count_ptr_d): Remove.
7048         (count_ptr_derefs, count_uses_and_derefs): Remove.
7049         * tree-ssa.h (count_uses_and_derefs): Remove.
7051 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
7053         PR rtl-optimization/58997
7054         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
7055         get_iv_value to be in iv->mode rather than iv->extend_mode.
7056         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
7057         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
7058         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
7059         mode.
7061 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
7063         * gimple.h: Move some prototypes to gimple-expr.h and add to include
7064         list.
7065         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
7066         Move to gimple-expr.h.
7067         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
7068         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
7069         is_gimple_id, virtual_operand_p, is_gimple_addressable,
7070         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
7071         Relocate here.
7072         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
7073         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
7074         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
7075         is_gimple_address, is_gimple_invariant_address,
7076         is_gimple_ip_invariant_address, is_gimple_min_invariant,
7077         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
7078         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
7079         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
7080         gimple_decl_printable_name, useless_type_conversion_p,
7081         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
7082         gimple-expr.[ch].
7083         * gimple-expr.c: New File.
7084         (useless_type_conversion_p, gimple_set_body, gimple_body,
7085         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
7086         gimple_can_coalesce_p, extract_ops_from_tree_1,
7087         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
7088         is_gimple_address, is_gimple_invariant_address,
7089         is_gimple_ip_invariant_address, is_gimple_min_invariant,
7090         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
7091         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
7092         is_gimple_mem_ref_addr): Relocate here.
7093         * Makefile.in (OBJS): Add gimple-expr.o.
7095 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
7097         * gengtype-parse.c (struct_field_seq): Support empty structs.
7099 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
7101         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
7103 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
7105         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
7106         for !TARGET_80387.
7107         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
7108         _SOFT_FLOAT here.
7109         (LONG_DOUBLE_TYPE_SIZE): New define.
7110         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
7112 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
7114         PR c++/58724
7115         * doc/extend.texi [visibility ("visibility_type")]: Add example
7116         about visibility attribute on namespace declaration.
7118 2013-11-05  Richard Biener  <rguenther@suse.de>
7120         PR ipa/58492
7121         * passes.def (all_passes): Start with pass_fixup_cfg again.
7123 2013-11-05  Richard Biener  <rguenther@suse.de>
7125         PR tree-optimization/58955
7126         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
7127         edge direction.
7129 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7131         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
7132         little endian.
7133         (vec_pack_ufix_trunc_v2df): Likewise.
7135 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
7137         PR middle-end/58981
7138         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7139         pattern, instead of word_mode.
7141         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7142         Pmode for size.
7143         (set_storage_via_setmem): Likewise.
7145 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
7147         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7148         gimple.h and the rest of the condition in eliminate_build.
7149         (eliminate_build): Call new routine.
7150         * gimple.h (phi_ssa_name_p): Delete.
7152 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
7154         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7155         case of no prefix and reserving zero slots, because when that's the
7156         case we'll never get here.
7157         * vec.h (va_heap::reserve): Don't try and handle
7158         vec_prefix::calculate_allocation returning zero because that should
7159         never happen.
7161 2013-11-05  Richard Biener  <rguenther@suse.de>
7163         PR middle-end/58941
7164         * tree-dfa.c (get_ref_base_and_extent): Merge common code
7165         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
7166         process trailing array detection before diving into the
7167         view-converted object (and possibly apply some extra offset).
7169 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
7171         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7172         New function.
7173         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7175 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
7177         PR tree-optimization/58958
7178         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7179         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7181 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
7183         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7184         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7186 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
7188         PR tree-optimization/58984
7189         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7190         set *SIZE_P if non-NULL on success.
7191         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7192         callers.
7193         (ipcp_transform_function): Likewise.  Punt if size of access
7194         is different from TYPE_SIZE on v->value's type.
7196 2013-11-05  Tobias Burnus  <burnus@net-b.de>
7198         * doc/invoke.texi (-fopenmp-simd): Document new option.
7199         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7200         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7201         * tree.c (attribute_value_equal): Ditto.
7203 2013-11-04  Wei Mi  <wmi@google.com>
7205         * sched-rgn.c (add_branch_dependences): Keep insns in
7206         a SCHED_GROUP at the end of BB to remain their location.
7208 2013-11-04  Wei Mi  <wmi@google.com>
7210         * config/i386/i386.c (memory_address_length): Extract a part
7211         of code to rip_relative_addr_p.
7212         (rip_relative_addr_p): New Function.
7213         (ix86_macro_fusion_p): Ditto.
7214         (ix86_macro_fusion_pair_p): Ditto.
7215         * config/i386/i386.h: Add new tune features about macro-fusion.
7216         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7217         * doc/tm.texi: Generated.
7218         * doc/tm.texi.in: Ditto.
7219         * haifa-sched.c (try_group_insn): New Function.
7220         (group_insns_for_macro_fusion): Ditto.
7221         (sched_init): Call group_insns_for_macro_fusion.
7222         * target.def: Add two hooks: macro_fusion_p and
7223         macro_fusion_pair_p.
7225 2013-11-04  Kostya Serebryany  <kcc@google.com>
7227         Update to match the changed asan API.
7228         * asan.c (asan_function_start): New function.
7229         (asan_emit_stack_protection): Update the string stored in the
7230         stack red zone to match new API.  Store the PC of the current
7231         function in the red zone.
7232         (asan_global_struct): Update the __asan_global definition to match
7233         the new API.
7234         (asan_add_global): Ditto.
7235         * asan.h (asan_function_start): New prototype.
7236         * final.c (final_start_function): Call asan_function_start.
7237         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7238         to __asan_init_v3.
7240 2013-11-04  Wei Mi  <wmi@google.com>
7242         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7243         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7244         * config/i386/i386.c (ix86_option_override_internal): Ditto.
7245         (ix86_issue_rate): Ditto.
7246         (ix86_adjust_cost): Ditto.
7247         (ia32_multipass_dfa_lookahead): Ditto.
7248         (ix86_sched_init_global): Ditto.
7249         (get_builtin_code_for_version): Ditto.
7250         * config/i386/i386.h (enum target_cpu_default): Ditto.
7251         (enum processor_type): Ditto.
7252         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7254 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7256         PR rtl-optimization/58967
7257         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7258         !lra_in_progress for mode sizes bigger word.
7260 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7262         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7263         arguments to merge instruction for little endian.
7264         (vec_widen_umult_lo_v16qi): Likewise.
7265         (vec_widen_smult_hi_v16qi): Likewise.
7266         (vec_widen_smult_lo_v16qi): Likewise.
7267         (vec_widen_umult_hi_v8hi): Likewise.
7268         (vec_widen_umult_lo_v8hi): Likewise.
7269         (vec_widen_smult_hi_v8hi): Likewise.
7270         (vec_widen_smult_lo_v8hi): Likewise.
7272 2013-11-04  Ian Lance Taylor  <iant@google.com>
7274         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7275         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7276         builtins that take pointers.
7277         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7278         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7279         (run_gcc): Pass -fnon-call-exceptions.
7281 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7283         * optabs.c (expand_vec_perm): Revert one incorrect line from
7284         2013-10-31 change.
7286         PR tree-optimization/58978
7287         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7288         use_stmt by single_imm_use directly.  Only call single_imm_use
7289         on SSA_NAMEs.
7291 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7293         PR rtl-optimization/58968
7294         * lra-spills.c (return_regno_p): New function.
7295         (lra_final_code_change): Use it.
7297 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
7299         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7300         * target.def (float_exceptions_rounding_supported_p): New hook.
7301         * targhooks.c (default_float_exceptions_rounding_supported_p): New
7302         function.
7303         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7304         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7305         New @hook.
7306         * doc/tm.texi: Regenerate.
7307         * config.gcc (powerpc*-*-linux*): Set extra_objs.
7308         * config/rs6000/rs6000-linux.c: New file.
7309         * config/rs6000/rs6000-protos.h
7310         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7311         * config/rs6000/linux.h
7312         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7313         * config/rs6000/linux64.h
7314         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7315         * config/rs6000/t-linux (rs6000-linux.o): New rule.
7316         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7318 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7320         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7321         Replace the define_insn_and_split with a define_insn and two
7322         define_splits, with the split after reload re-permuting the source
7323         register to its original value.
7324         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7325         (*vsx_le_perm_store_v8hi): Likewise.
7326         (*vsx_le_perm_store_v16qi): Likewise.
7328 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7330         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
7331         little endian.
7333 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7335         PR tree-optimization/58946
7336         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7337         bbs with bbinfo[idx].op != NULL before all blocks with
7338         bbinfo[idx].op == NULL.
7340 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
7342         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7343         (avr_dump_double_int_hex): Likewise.
7344         (avr_log_vadump): Remove %D and %X handling.
7345         * config/avr/avr.c (avr_double_int_push_digit): Delete.
7346         (avr_map_op_t): Change map from double_int to unsigned int.
7347         (avr_map_op): Update accordingly.
7348         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7349         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7350         unsigned ints rather than double_ints.
7352 2013-11-03  Marek Polacek  <polacek@redhat.com>
7354         Implement -fsanitize=vla-bound.
7355         * opts.c (common_handle_option): Handle vla-bound.
7356         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7357         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7358         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7360 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7362         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7363         little endian.
7365 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
7367         * config/i386/constraints.md (Ts, Tv): New address constrains.
7368         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7369         constraint for address_no_seg_operand.
7370         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7371         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7372         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7373         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7374         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7375         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7376         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7377         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7378         constraint for vsib_address_operand.
7380 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
7382         * gcse.c (pre_delete): Remove references to regmove from comments.
7383         * recog.c: (validate_replace_rtx_1): Likewise.
7384         * config/rl78/rl78.c: Likewise.
7385         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7386         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7387         * common/config/mmix/mmix-common.c: Likewise.
7389 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
7391         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7392         * gimplify.c (gimplify_compound_lval): Likewise.
7393         * graphite-clast-to-gimple.c (gloog): Likewise.
7394         * graphite-dependences.c (loop_is_parallel_p): Likewise.
7395         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7396         (limit_scop); Likewise.
7397         (build_scops): Likewise.
7398         (dot_scop): Likewise.
7399         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7400         (build_scop_drs): Likewise.
7401         (insert_stmts): Likewise.
7402         (insert_out_of_ssa_copy): Likewise.
7403         (remove_phi): Likewise.
7404         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7405         * hw-doloop.c (discover_loop): Likewise.
7406         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7407         * tree-dfa.c (dump_enumerated_decls): Likewise.
7408         * tree-if-conv.c (if_convertable_loop_p): Likewise.
7409         * tree-inline.c (tree_function_versioning): Likewise.
7410         * tree-loop-distribution.c (build_rdg): Likewise.
7411         (rdg_flag_vertex_and_dependent): Likewise.
7412         (distribute_loop): Likewise.
7413         * tree-parloops.c (loop_parallel_p): Likewise.
7414         (eliminate_local_variables): Likewise.
7415         (separate_decls_in_region): Likewise.
7416         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7417         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7418         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7419         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7420         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7421         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7422         (vectorizable_condition): Likewise.
7424 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
7426         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7427         * configure: Regenerate.
7428         * config/i386/i386.md (*movdi_internal): Change
7429         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7430         (*movdf_internal): Ditto.
7431         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7432         * config/i386/sse.md (vec_concatv2di): Output interunit movq
7433         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7435 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
7437         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7438         after comment.
7440 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7442         Automated part of renaming of symtab_node_base to symtab_node.
7444         Patch autogenerated by rename_symtab.py from
7445         https://github.com/davidmalcolm/gcc-refactoring-scripts
7446         revision 58bb219cc090b2f4516a9297d868c245495ee622
7447         with ChangeLog entry fixed up by hand.
7449         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7450         symtab_node.
7451         (cgraph_node_for_asm): Likewise.
7452         * cgraph.h (symtab_node_base): Likewise.
7453         (cgraph_node): Likewise.
7454         (varpool_node): Likewise.
7455         (is_a_helper <cgraph_node>::test): Likewise.
7456         (is_a_helper <varpool_node>::test): Likewise.
7457         (symtab_nodes): Likewise.
7458         (symtab_register_node): Likewise.
7459         (symtab_unregister_node): Likewise.
7460         (symtab_remove_node): Likewise.
7461         (symtab_get_node): Likewise.
7462         (symtab_node_for_asm): Likewise.
7463         (symtab_node_asm_name): Likewise.
7464         (symtab_node_name): Likewise.
7465         (symtab_insert_node_to_hashtable): Likewise.
7466         (symtab_add_to_same_comdat_group): Likewise.
7467         (symtab_dissolve_same_comdat_group_list): Likewise.
7468         (dump_symtab_node): Likewise.
7469         (debug_symtab_node): Likewise.
7470         (dump_symtab_base): Likewise.
7471         (verify_symtab_node): Likewise.
7472         (verify_symtab_base): Likewise.
7473         (symtab_used_from_object_file_p): Likewise.
7474         (symtab_alias_ultimate_target): Likewise.
7475         (symtab_resolve_alias): Likewise.
7476         (fixup_same_cpp_alias_visibility): Likewise.
7477         (symtab_for_node_and_aliases): Likewise.
7478         (symtab_nonoverwritable_alias): Likewise.
7479         (availability symtab_node_availability): Likewise.
7480         (symtab_semantically_equivalent_p): Likewise.
7481         (fixup_same_cpp_alias_visibility): Likewise.
7482         (symtab_prevail_in_asm_name_hash): Likewise.
7483         (cgraph): Likewise.
7484         (varpool): Likewise.
7485         (varpool_first_variable): Likewise.
7486         (varpool_next_variable): Likewise.
7487         (varpool_first_static_initializer): Likewise.
7488         (varpool_next_static_initializer): Likewise.
7489         (varpool_first_defined_variable): Likewise.
7490         (varpool_next_defined_variable): Likewise.
7491         (cgraph_first_defined_function): Likewise.
7492         (cgraph_next_defined_function): Likewise.
7493         (cgraph_first_function): Likewise.
7494         (cgraph_next_function): Likewise.
7495         (cgraph_first_function_with_gimple_body): Likewise.
7496         (cgraph_next_function_with_gimple_body): Likewise.
7497         (symtab_alias_target): Likewise.
7498         (symtab_real_symbol_p): Likewise.
7499         (symtab_can_be_discarded): Likewise.
7500         * cgraphbuild.c (mark_address): Likewise.
7501         (mark_load): Likewise.
7502         (mark_store): Likewise.
7503         * cgraphunit.c (decide_is_symbol_needed): Likewise.
7504         (first): Likewise.
7505         (enqueue_node): Likewise.
7506         (referred_to_p): Likewise.
7507         (cgraph_process_same_body_aliases): Likewise.
7508         (analyze_functions): Likewise.
7509         (handle_alias_pairs): Likewise.
7510         (output_weakrefs): Likewise.
7511         (compile): Likewise.
7512         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7513         * ipa-inline-analysis.c (inline_write_summary): Likewise.
7514         * ipa-prop.c (remove_described_reference): Likewise.
7515         (try_decrement_rdesc_refcount): Likewise.
7516         (ipa_edge_duplication_hook): Likewise.
7517         * ipa-ref.c (ipa_record_reference): Likewise.
7518         (ipa_maybe_record_reference): Likewise.
7519         (ipa_clone_ref): Likewise.
7520         (ipa_clone_references): Likewise.
7521         (ipa_clone_referring): Likewise.
7522         (ipa_find_reference): Likewise.
7523         (ipa_remove_stmt_references): Likewise.
7524         (ipa_clear_stmts_in_references): Likewise.
7525         * ipa-ref.h (symtab_node_base): Likewise.
7526         (ipa_ref): Likewise.
7527         (ipa_record_reference): Likewise.
7528         (ipa_maybe_record_reference): Likewise.
7529         (ipa_clone_references): Likewise.
7530         (ipa_clone_referring): Likewise.
7531         (ipa_clone_ref): Likewise.
7532         (ipa_find_reference): Likewise.
7533         (ipa_remove_stmt_references): Likewise.
7534         (ipa_clear_stmts_in_references): Likewise.
7535         * ipa-reference.c (ipa_reference_write_optimization_summary):
7536         Likewise.
7537         * ipa.c (enqueue_node): Likewise.
7538         (process_references): Likewise.
7539         (walk_polymorphic_call_targets): Likewise.
7540         (symtab_remove_unreachable_nodes): Likewise.
7541         (address_taken_from_non_vtable_p): Likewise.
7542         (comdat_can_be_unshared_p_1): Likewise.
7543         (comdat_can_be_unshared_p): Likewise.
7544         (can_replace_by_local_alias): Likewise.
7545         (function_and_variable_visibility): Likewise.
7546         * is-a.h: Likewise (within example in comment).
7547         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7548         (lto_symtab_encoder_encode): Likewise.
7549         (lto_symtab_encoder_delete_node): Likewise.
7550         (lto_symtab_encoder_in_partition_p): Likewise.
7551         (lto_set_symtab_encoder_in_partition): Likewise.
7552         (output_refs): Likewise.
7553         (compute_ltrans_boundary): Likewise.
7554         (output_symtab): Likewise.
7555         (input_node): Likewise.
7556         (input_ref): Likewise.
7557         (input_edge): Likewise.
7558         (input_cgraph_1): Likewise.
7559         (input_refs): Likewise.
7560         (output_cgraph_opt_summary): Likewise.
7561         (input_node_opt_summary): Likewise.
7562         (input_cgraph_opt_section): Likewise.
7563         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7564         Likewise.
7565         * lto-streamer-out.c (lto_output): Likewise.
7566         (output_symbol_p): Likewise.
7567         (produce_symtab): Likewise.
7568         * lto-streamer.h (lto_encoder_entry): Likewise.
7569         (lto_free_function_in_decl_state_for_node): Likewise.
7570         (lto_symtab_encoder_encode): Likewise.
7571         (lto_symtab_encoder_delete_node): Likewise.
7572         (lto_symtab_encoder_in_partition_p): Likewise.
7573         (lto_set_symtab_encoder_in_partition): Likewise.
7574         (lto_symtab_encoder_lookup): Likewise.
7575         (lsei_node): Likewise.
7576         (lto_symtab_encoder_deref): Likewise.
7577         * symtab.c (symtab_hash): Likewise.
7578         (assembler_name_hash): Likewise.
7579         (symtab_nodes): Likewise.
7580         (hash_node): Likewise.
7581         (eq_node): Likewise.
7582         (hash_node_by_assembler_name): Likewise.
7583         (eq_assembler_name): Likewise.
7584         (insert_to_assembler_name_hash): Likewise.
7585         (unlink_from_assembler_name_hash): Likewise.
7586         (symtab_prevail_in_asm_name_hash): Likewise.
7587         (symtab_register_node): Likewise.
7588         (symtab_insert_node_to_hashtable): Likewise.
7589         (symtab_unregister_node): Likewise.
7590         (symtab_get_node): Likewise.
7591         (symtab_remove_node): Likewise.
7592         (symtab_initialize_asm_name_hash): Likewise.
7593         (symtab_node_for_asm): Likewise.
7594         (symtab_add_to_same_comdat_group): Likewise.
7595         (symtab_dissolve_same_comdat_group_list): Likewise.
7596         (symtab_node_asm_name): Likewise.
7597         (symtab_node_name): Likewise.
7598         (dump_symtab_base): Likewise.
7599         (dump_symtab_node): Likewise.
7600         (dump_symtab): Likewise.
7601         (debug_symtab_node): Likewise.
7602         (verify_symtab_base): Likewise.
7603         (verify_symtab_node): Likewise.
7604         (verify_symtab): Likewise.
7605         (symtab_used_from_object_file_p): Likewise.
7606         (symtab_node_availability): Likewise.
7607         (symtab_alias_ultimate_target): Likewise.
7608         (fixup_same_cpp_alias_visibility): Likewise.
7609         (symtab_resolve_alias): Likewise.
7610         (symtab_for_node_and_aliases): Likewise.
7611         (symtab_for_node_and_aliases): Likewise.
7612         (symtab_nonoverwritable_alias_1): Likewise.
7613         (symtab_nonoverwritable_alias): Likewise.
7614         (symtab_semantically_equivalent_p): Likewise.
7615         * value-prof.c (init_node_map): Likewise.
7616         * varasm.c (find_decl): Likewise.
7617         * varpool.c (varpool_node_for_asm): Likewise.
7618         (varpool_remove_unreferenced_decls): Likewise.
7620 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7622         Manual part of renaming of symtab_node_base to symtab_node.
7624         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7625         clashes with the preferred name for the base class.
7626         (const_symtab_node): Remove redundant typedef.
7628 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7630         * optabs.c (expand_vec_perm): Avoid vector mode punning
7631         SUBREGs in SET_DEST.
7632         * expmed.c (store_bit_field_1): Likewise.
7633         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7634         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7635         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7636         * config/i386/i386.c (ix86_expand_vector_move_misalign,
7637         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7638         ix86_expand_sse_unpack, ix86_expand_args_builtin,
7639         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7640         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7641         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7642         expand_vec_perm_vpshufb2_vpermq,
7643         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7644         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7645         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7646         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
7647         than *d itself.
7649 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
7651         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7652         Use gcc_unreachable for unhandled modes.  Do not check results of
7653         expand_simple_binop.  If not expanded to target, move the result.
7655 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
7656             Shiva Chen  <shiva0217@gmail.com>
7658         * config.gcc (nds32*-*-*): Add nds32 target.
7659         * config/nds32/nds32.c: New file.
7660         * config/nds32/nds32.h: New file.
7661         * config/nds32/nds32.md: New file.
7662         * config/nds32/constants.md: New file.
7663         * config/nds32/constraints.md: New file.
7664         * config/nds32/iterators.md: New file.
7665         * config/nds32/nds32-doubleword.md: New file.
7666         * config/nds32/nds32-intrinsic.md: New file.
7667         * config/nds32/nds32_intrinsic.h: New file.
7668         * config/nds32/nds32-modes.def: New file.
7669         * config/nds32/nds32-multiple.md: New file.
7670         * config/nds32/nds32.opt: New file.
7671         * config/nds32/nds32-opts.h: New file.
7672         * config/nds32/nds32-protos.h: New file.
7673         * config/nds32/nds32-peephole2.md: New file.
7674         * config/nds32/pipelines.md: New file.
7675         * config/nds32/predicates.md: New file.
7676         * config/nds32/t-mlibs: New file.
7677         * common/config/nds32: New directory and files.
7679         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7680         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7681         * doc/install.texi (Cross-Compiler-Specific Options): Document
7682         --with-nds32-lib for nds32 target.
7683         * doc/extend.texi (Function Attributes, Target Builtins): Document
7684         nds32 specific attributes.
7686 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
7688         * lra-constraints (process_alt_operands): Use the result
7689         elimination register for operand when matching constraints.
7691 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7693         * tree-vrp.c (maybe_set_nonzero_bits): New function.
7694         (remove_range_assertions): Call it.
7696         * tree.c (tree_ctz): New function.
7697         * tree.h (tree_ctz): New prototype.
7698         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7699         first argument from tree to const_tree.
7700         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7701         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7702         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7703         static.
7704         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7705         * tree-vect-loop.c (vect_analyze_loop_operations,
7706         vect_transform_loop): Don't force scalar loop for bound just because
7707         number of iterations is unknown, only do it if it is not known to be
7708         a multiple of vectorization_factor.
7709         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7711         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7712         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
7713         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7714         (set_nonzero_bits, get_nonzero_bits): New prototypes.
7715         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7716         a default def isn't partially constant.
7717         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7718         is known to be partially zero.
7719         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7720         to see if a default def isn't partially constant.
7721         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7722         creation of a range, if VR_RANGE, try to improve nonzero_bits from
7723         the range.
7724         (set_nonzero_bits, get_nonzero_bits): New functions.
7726         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7727         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7728         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7729         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7730         uses but in the condition and ASSERT_EXPR and the other successor of
7731         the predecessor bb is __builtin_unreachable (), set_range_info of the
7732         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7734 2013-10-31  Martin Jambor  <mjambor@suse.cz>
7736         PR rtl-optimization/58934
7737         Revert:
7738         2013-10-30  Martin Jambor  <mjambor@suse.cz>
7739         PR rtl-optimization/10474
7740         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7741         nor df analysis.
7742         (interesting_dest_for_shprep): New function.
7743         (split_live_ranges_for_shrink_wrap): Likewise.
7744         (ira): Calculate dominance info and df analysis. Call
7745         split_live_ranges_for_shrink_wrap.
7747 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
7748             Yury Gribov  <y.gribov@samsung.com>
7750         PR sanitizer/58543
7751         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7752         shadow pointer to avoid clobbering the main one.
7754 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7756         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7758 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7760         PR bootstrap/58933
7761         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
7762         it for calling update_costs_from_allocno.
7763         (assign_hard_reg): Call restore_costs_from_copies only for
7764         !retry_p.  Pass new argument to update_costs_from_copies.
7765         (color_pass): Pass new argument to update_costs_from_copies.
7766         (ira_mark_allocation_change): Ditto.
7768 2013-10-30  Sharad Singhai  <singhai@google.com>
7770         PR middle-end/58134
7771         * opts.c (common_handle_option): Remove deprecated option
7772         -ftree-vectorizer-verbose.
7773         * doc/invoke.texi (Debugging Options): Ditto.
7774         * opts-global.c (handle_common_deferred_options): Ditto.
7775         (dump_remap_tree_vectorizer_verbose): Delete.
7776         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7778 2013-10-30  DJ Delorie  <dj@redhat.com>
7780         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7781         that take no arguments.
7783 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7785         PR other/58545
7786         * reload1.c (update_eliminables_and_spill): New function, broken
7787         out of reload.
7788         (reload): Use it.  Check for frame size change after frame size
7789         alignment, and call update_eliminables_and_spill first if continue-ing.
7791 2013-10-30  Cong Hou  <congh@google.com>
7793         PR target/58762
7794         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7795         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7796         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7798 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
7800         PR rtl-optimization/58369
7801         * reload1.c (compute_reload_subreg_offset): New function.
7802         (choose_reload_regs): Use it to pass endian-correct
7803         offset to subreg_regno_offset.
7805 2013-10-30  Tobias Burnus  <burnus@net-b.de>
7807         PR other/33426
7808         * tree-cfg.c (replace_loop_annotate): Replace warning by
7809         warning_at.
7811 2013-10-30  Jason Merrill  <jason@redhat.com>
7813         * configure.ac (loose_warn): Add -Wno-format if
7814         --disable-build-format-warnings.
7816 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
7818         * cgraphunit.c (analyze_functions): Split symtab_node declarations
7819         onto multiple lines to make things easier for rename_symtab.py.
7821         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7822         (symtab_semantically_equivalent_p): Likewise.
7824 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7826         PR target/58784
7827         * lra.c (check_rtl): Remove address check before LRA work.
7829 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
7831         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7832         POINTER_PLUS_EXPR in the defining statement.
7834 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7836         * regmove.c: Remove.
7837         * tree-pass.h (make_pass_regmove): Remove.
7838         * timevar.def (TV_REGMOVE): Remove.
7839         * passes.def (pass_regmove): Remove.
7840         * opts.c (default_options_table): Remove entry for regmove.
7841         * doc/passes.texi: Remove regmove pass description.
7842         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7843         options.
7844         (-fdump-rtl-regmove): Ditto.
7845         * common.opt (foptimize-register-move, fregmove): Ignore.
7846         * Makefile.in (OBJS): Remove regmove.o.
7847         * regmove.c: Remove.
7848         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7849         and type.
7850         (struct ira_allocno) New member allocno_prefs.
7851         (ALLOCNO_PREFS): New macro.
7852         (ira_prefs, ira_prefs_num): New external vars.
7853         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7854         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7855         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7856         Ditto.
7857         (ira_add_allocno_copy_to_list): Remove prototype.
7858         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7859         (ira_pref_iterator): New type.
7860         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7861         (FOR_EACH_PREF): New macro.
7862         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7863         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
7864         code.
7865         (ira_setup_alts): New function.
7866         (decrease_live_ranges_number): New function.
7867         (ira): Call the above function.
7868         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7869         (ira_create_allocno): Initialize allocno prefs.
7870         (pref_pool, pref_vec): New static vars.
7871         (initiate_prefs, find_allocno_pref, ira_create_pref): New
7872         functions.
7873         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7874         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7875         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7876         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7877         (ira_add_allocno_copy_to_list): Make static.  Rename to
7878         add_allocno_copy_to_list.
7879         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
7880         swap_allocno_copy_ends_if_necessary.
7881         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7882         ira_remove_allocno_prefs.
7883         (ira_flattening): Ditto.
7884         (ira_build): Call initiate_prefs, print_prefs.
7885         (ira_destroy): Call finish_prefs.
7886         * ira-color.c (struct update_cost_record): New.
7887         (struct allocno_color_data): Add new member update_cost_records.
7888         (update_cost_record_pool): New static var.
7889         (init_update_cost_records, get_update_cost_record): New functions.
7890         (free_update_cost_record_list, finish_update_cost_records): Ditto.
7891         (struct update_cost_queue_elem): Add member from.
7892         (initiate_cost_update): Call init_update_cost_records.
7893         (finish_cost_update): Call finish_update_cost_records.
7894         (queue_update_cost, get_next_update_cost): Add new param from.
7895         (Update_allocno_cost, update_costs_from_allocno): New functions.
7896         (update_costs_from_prefs): Ditto.
7897         (update_copy_costs): Rename to update_costs_from_copies.
7898         (restore_costs_from_copies): New function.
7899         (update_conflict_hard_regno_costs): Don't go back.
7900         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
7901         more debug info.
7902         (pop_allocnos): Add priniting more debug info.
7903         (color_allocnos): Remove prefs for conflicting hard regs.
7904         Call update_costs_from_prefs.
7905         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7906         (get_dup_num): Rename, modify, and move to ira.c
7907         (process_regs_for_copy): Add prefs.
7908         (add_insn_allocno_copies): Put src as first arg of
7909         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
7910         * ira-costs.c (record_reg_classes): Modify and move code into
7911         record_operands_costs.
7912         (find_costs_and_classes): Create prefs for the hard reg of small
7913         reg class.
7914         (process_bb_node_for_hard_reg_moves): Add prefs.
7916 2013-10-30  Richard Biener  <rguenther@suse.de>
7918         PR middle-end/57100
7919         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7920         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7921         as worker for ...
7922         (pre_and_rev_post_order_compute): ... which now wraps it.
7923         * graph.c (draw_cfg_nodes_no_loops): Use
7924         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7925         on cfun.
7927 2013-10-30  Christian Bruel  <christian.bruel@st.com>
7929         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7930         (sh_expand_cmpstr): Handle known align and schedule improvements.
7931         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7932         * config/sh/sh.md (cmpstrnsi): New pattern.
7934 2013-10-30  Martin Jambor  <mjambor@suse.cz>
7936         PR rtl-optimization/10474
7937         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7938         nor df analysis.
7939         (interesting_dest_for_shprep): New function.
7940         (split_live_ranges_for_shrink_wrap): Likewise.
7941         (ira): Calculate dominance info and df analysis. Call
7942         split_live_ranges_for_shrink_wrap.
7944 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7946         PR target/58854
7947         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7949 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7951         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7952         * tree.h (POINTER_BOUNDS_P): New.
7953         (BOUNDED_TYPE_P): New.
7954         (BOUNDED_P): New.
7955         (pointer_bounds_type_node): New.
7956         * tree.c (build_common_tree_nodes): Initialize
7957         pointer_bounds_type_node.
7958         * gimple.h (gimple_call_get_nobnd_arg_index): New.
7959         (gimple_call_num_nobnd_args): New.
7960         (gimple_call_nobnd_arg): New.
7961         (gimple_return_retbnd): New.
7962         (gimple_return_set_retbnd): New
7963         * gimple.c (gimple_build_return): Increase number of ops
7964         for return statement.
7965         (gimple_call_get_nobnd_arg_index): New.
7966         * gimple-pretty-print.c (dump_gimple_return): Print second op.
7968 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7970         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7971         with "chkp ctor" and "bnd_legacy" attributes.
7972         * gimplify.c (gimplify_init_constructor): Avoid infinite
7973         loop during gimplification of bounds initializer.
7975 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7977         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7978         (handle_bnd_legacy): New.
7979         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7980         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7981         attributes.
7983 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7985         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7986         (BT_FN_PTR_CONST_PTR): New.
7987         (BT_FN_CONST_PTR_CONST_PTR): New.
7988         (BT_FN_PTR_CONST_PTR_SIZE): New.
7989         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7990         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7991         (BT_FN_VOID_CONST_PTR_SIZE): New.
7992         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7993         * chkp-builtins.def: New.
7994         * builtins.def: include chkp-builtins.def.
7995         (DEF_CHKP_BUILTIN): New.
7996         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7997         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7998         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7999         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
8000         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
8001         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
8002         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
8003         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
8004         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
8005         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
8006         * common.opt (fcheck-pointer-bounds): New.
8007         * toplev.c (process_options): Check Pointer Bounds Checker is
8008         supported.
8009         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
8011 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8013         * target.def (builtin_chkp_function): New.
8014         (chkp_bound_type): New.
8015         (chkp_bound_mode): New.
8016         (fn_abi_va_list_bounds_size): New.
8017         (load_bounds_for_arg): New.
8018         (store_bounds_for_arg): New.
8019         * targhooks.h (default_load_bounds_for_arg): New.
8020         (default_store_bounds_for_arg): New.
8021         (default_fn_abi_va_list_bounds_size): New.
8022         (default_chkp_bound_type): New.
8023         (default_chkp_bound_mode): New.
8024         (default_builtin_chkp_function): New.
8025         * targhooks.c (default_load_bounds_for_arg): New.
8026         (default_store_bounds_for_arg): New.
8027         (default_fn_abi_va_list_bounds_size): New.
8028         (default_chkp_bound_type): New.
8029         (default_chkp_bound_mode); New.
8030         (default_builtin_chkp_function): New.
8031         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
8032         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8033         (TARGET_STORE_BOUNDS_FOR_ARG): New.
8034         (TARGET_BUILTIN_CHKP_FUNCTION): New.
8035         (TARGET_CHKP_BOUND_TYPE): New.
8036         (TARGET_CHKP_BOUND_MODE): New.
8037         * doc/tm.texi: Regenerated.
8038         * langhooks.h (lang_hooks): Add chkp_supported field.
8039         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
8040         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
8042 2013-10-29  Andrew Pinski <apinski@cavium.com>
8044         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
8045         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
8046         fails, combining the branches anyways.
8047         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
8048         increases the number of combinings.
8049         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
8051 2013-10-29  Mike Stump  <mikestump@comcast.net>
8053         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
8054         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
8055         (make_vector_mode): Increase namebuf to 16.
8056         (emit_insn_modes_h): When processing BImode, don't
8057         also match partial int modes.
8058         (emit_class_narrowest_mode): Likewise.
8060         * config/bfin/bfin-modes.def: Add precision to PDI.
8061         * config/m32c/m32c-modes.def: Add precision to PSI.
8062         * config/msp430/msp430-modes.def: Add precision to PSI.
8063         * config/rs6000/rs6000-modes.def: Add precision to PTI.
8064         * config/sh/sh-modes.def: Add precision to PSI and PDI.
8066 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
8068         PR target/54236
8069         * config/sh/sh.md (*addc): Rename existing variations to ...
8070         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
8071         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
8072         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
8073         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
8075 2013-10-29  Teresa Johnson  <tejohnson@google.com>
8077         PR ipa/58862
8078         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
8079         insanities when updating probabilities.
8081 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8083         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
8084         prettyprinter for cgraph_node to reflect the conversion of the
8085         symtable types to a C++ class hierarchy: it now *is* a
8086         symtab_node_base, rather than having one (named "symbol").
8088 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
8090         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
8091         __cilkrts_pop_frame.  If matched, then return true for built-in
8092         function name.
8093         (expand_builtin): Added BUILT_IN_CILK_DETACH and
8094         BUILT_IN_CILK_POP_FRAME case.
8095         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
8096         (lhs_cilk_detect_spawn): Likewise.
8097         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
8098         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
8099         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
8100         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
8101         (LANG_HOOKS_CILKPLUS): Likewise.
8102         * tree.h (CILK_SPAWN_FN): Likewise.
8103         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
8104         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
8105         (OBJS): Added cilk-common.o.
8106         (BUILTINS_DEF): Added cilk-builtins.def.
8107         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
8108         (lhd_cilk_detect_spawn): Likewise.
8109         * langhooks.h (lang_hooks_for_cilkplus): New struct.
8110         (struct lang_hooks): Added new field called "cilkplus."
8111         * cilk-common.c: New file.
8112         * cilk.h: Likewise.
8113         * cilk-builtins.def: Likewise.
8114         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
8115         "__cilk" macro and set it to 200.
8116         * function.h (struct function::cilk_frame_decl): New field.
8117         (struct function::is_cilk_function): Likewise.
8118         (struct function::calls_cilk_spawn): Likewise.
8119         * gimplify.c (gimplify_call_expr): Added a check if the function call
8120         being gimplified is a spawn detach point.  If so, then add pop_frame
8121         and detach function calls.
8122         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
8123         for gimplifying _Cilk_spawn and _Cilk_sync statements.
8124         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
8125         function.  If so, added a _Cilk_sync and gimplified it.
8126         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
8127         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
8128         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
8129         spawner function.
8130         (can_inline_edge_p): Prevent inling of spawnee function.
8131         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
8132         for functions that use Cilk keywords.
8133         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
8134         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
8135         CILK_SYNC_STMT cases.
8136         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8137         trees.
8138         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8139         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8140         * passes.texi (Cilk Keywords): New section that describes the compiler
8141         code changes for handling Cilk Keywords.
8143 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8145         Patch autogenerated by refactor_symtab.py from
8146         https://github.com/davidmalcolm/gcc-refactoring-scripts
8147         revision 58bb219cc090b2f4516a9297d868c245495ee622
8149         * asan.c (asan_finish_file): Update for conversion of symtab types to
8150         a true class hierarchy.
8151         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8152         * cgraph.c (cgraph_get_body): Likewise.
8153         (cgraph_get_create_real_symbol_node): Likewise.
8154         (verify_cgraph_node): Likewise.
8155         (verify_edge_corresponds_to_fndecl): Likewise.
8156         (verify_edge_count_and_frequency): Likewise.
8157         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8158         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8159         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8160         (cgraph_node_cannot_return): Likewise.
8161         (cgraph_set_pure_flag_1): Likewise.
8162         (cgraph_set_const_flag_1): Likewise.
8163         (cgraph_set_nothrow_flag_1): Likewise.
8164         (cgraph_make_node_local_1): Likewise.
8165         (cgraph_for_node_and_aliases): Likewise.
8166         (cgraph_for_node_thunks_and_aliases): Likewise.
8167         (cgraph_node_can_be_local_p): Likewise.
8168         (cgraph_node_cannot_be_local_p_1): Likewise.
8169         (cgraph_function_body_availability): Likewise.
8170         (dump_cgraph_node): Likewise.
8171         (cgraph_rtl_info): Likewise.
8172         (cgraph_mark_address_taken_node): Likewise.
8173         (cgraph_remove_node): Likewise.
8174         (cgraph_release_function_body): Likewise.
8175         (cgraph_update_edges_for_call_stmt_node): Likewise.
8176         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8177         (cgraph_make_edge_direct): Likewise.
8178         (cgraph_resolve_speculation): Likewise.
8179         (cgraph_speculative_call_info): Likewise.
8180         (cgraph_turn_edge_to_speculative): Likewise.
8181         (cgraph_create_edge_1): Likewise.
8182         (cgraph_set_call_stmt): Likewise.
8183         (cgraph_node_for_asm): Likewise.
8184         (cgraph_add_thunk): Likewise.
8185         (cgraph_same_body_alias): Likewise.
8186         (cgraph_create_function_alias): Likewise.
8187         (cgraph_create_node): Likewise.
8188         (cgraph_create_empty_node): Likewise.
8189         (record_function_versions): Likewise.
8190         (used_from_object_file_p): Likewise.
8191         * cgraph.h (symtab_can_be_discarded): Likewise.
8192         (symtab_real_symbol_p): Likewise.
8193         (cgraph_mark_force_output_node): Likewise.
8194         (cgraph_edge_recursive_p): Likewise.
8195         (symtab_alias_target): Likewise.
8196         (varpool_all_refs_explicit_p): Likewise.
8197         (varpool_can_remove_if_no_refs): Likewise.
8198         (cgraph_only_called_directly_or_aliased_p): Likewise.
8199         (cgraph_next_function_with_gimple_body): Likewise.
8200         (cgraph_first_function_with_gimple_body): Likewise.
8201         (cgraph_function_with_gimple_body_p): Likewise.
8202         (cgraph_next_function): Likewise.
8203         (cgraph_first_function): Likewise.
8204         (cgraph_next_defined_function): Likewise.
8205         (cgraph_first_defined_function): Likewise.
8206         (varpool_next_defined_variable): Likewise.
8207         (varpool_first_defined_variable): Likewise.
8208         (varpool_next_static_initializer): Likewise.
8209         (varpool_first_static_initializer): Likewise.
8210         (varpool_next_variable): Likewise.
8211         (varpool_first_variable): Likewise.
8212         (varpool_node_name): Likewise.
8213         (varpool): Likewise.
8214         (cgraph): Likewise.
8215         (is_a_helper <varpool_node>::test): Likewise.
8216         (is_a_helper <cgraph_node>::test): Likewise.
8217         (varpool_variable_node): Likewise.
8218         (cgraph_function_or_thunk_node): Likewise.
8219         (varpool_alias_target): Likewise.
8220         (cgraph_alias_target): Likewise.
8221         (cgraph_node_name): Likewise.
8222         (varpool_node_asm_name): Likewise.
8223         (cgraph_node_asm_name): Likewise.
8224         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8225         (cgraph_rebuild_references): Likewise.
8226         (rebuild_cgraph_edges): Likewise.
8227         (record_eh_tables): Likewise.
8228         (build_cgraph_edges): Likewise.
8229         (mark_store): Likewise.
8230         (mark_load): Likewise.
8231         (mark_address): Likewise.
8232         (record_type_list): Likewise.
8233         (record_reference): Likewise.
8234         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8235         (cgraph_materialize_clone): Likewise.
8236         (cgraph_function_versioning): Likewise.
8237         (cgraph_copy_node_for_versioning): Likewise.
8238         (update_call_expr): Likewise.
8239         (cgraph_find_replacement_node): Likewise.
8240         (cgraph_create_virtual_clone): Likewise.
8241         (cgraph_clone_node): Likewise.
8242         * cgraphunit.c (compile): Likewise.
8243         (output_weakrefs): Likewise.
8244         (output_in_order): Likewise.
8245         (expand_function): Likewise.
8246         (assemble_thunks_and_aliases): Likewise.
8247         (expand_thunk): Likewise.
8248         (mark_functions_to_output): Likewise.
8249         (handle_alias_pairs): Likewise.
8250         (analyze_functions): Likewise.
8251         (walk_polymorphic_call_targets): Likewise.
8252         (varpool_finalize_decl): Likewise.
8253         (process_function_and_variable_attributes): Likewise.
8254         (cgraph_process_same_body_aliases): Likewise.
8255         (analyze_function): Likewise.
8256         (cgraph_add_new_function): Likewise.
8257         (cgraph_finalize_function): Likewise.
8258         (referred_to_p): Likewise.
8259         (cgraph_reset_node): Likewise.
8260         (cgraph_process_new_functions): Likewise.
8261         (enqueue_node): Likewise.
8262         (decide_is_symbol_needed): Likewise.
8263         * coverage.c (coverage_compute_profile_id): Likewise.
8264         * dbxout.c (dbxout_expand_expr): Likewise.
8265         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8266         (reference_to_unused): Likewise.
8267         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8268         * gimplify.c (unvisit_body): Likewise.
8269         (unshare_body): Likewise.
8270         * ipa-cp.c (ipcp_generate_summary): Likewise.
8271         (ipcp_decision_stage): Likewise.
8272         (identify_dead_nodes): Likewise.
8273         (decide_whether_version_node): Likewise.
8274         (decide_about_value): Likewise.
8275         (perhaps_add_new_callers): Likewise.
8276         (create_specialized_node): Likewise.
8277         (update_profiling_info): Likewise.
8278         (ipcp_propagate_stage): Likewise.
8279         (estimate_local_effects): Likewise.
8280         (good_cloning_opportunity_p): Likewise.
8281         (devirtualization_time_bonus): Likewise.
8282         (propagate_constants_accross_call): Likewise.
8283         (initialize_node_lattices): Likewise.
8284         (ipcp_cloning_candidate_p): Likewise.
8285         (determine_versionability): Likewise.
8286         (print_all_lattices): Likewise.
8287         (print_lattice): Likewise.
8288         (ipcp_discover_new_direct_edges): Likewise.
8289         * ipa-devirt.c (ipa_devirt): Likewise.
8290         (likely_target_p): Likewise.
8291         (update_type_inheritance_graph): Likewise.
8292         (possible_polymorphic_call_target_p): Likewise.
8293         (dump_possible_polymorphic_call_targets): Likewise.
8294         (devirt_variable_node_removal_hook): Likewise.
8295         (record_binfo): Likewise.
8296         (maybe_record_node): Likewise.
8297         (build_type_inheritance_graph): Likewise.
8298         * ipa-inline-analysis.c (inline_write_summary): Likewise.
8299         (inline_generate_summary): Likewise.
8300         (inline_analyze_function): Likewise.
8301         (do_estimate_growth): Likewise.
8302         (simple_edge_hints): Likewise.
8303         (estimate_node_size_and_time): Likewise.
8304         (estimate_edge_devirt_benefit): Likewise.
8305         (compute_inline_parameters): Likewise.
8306         (estimate_function_body_sizes): Likewise.
8307         (compute_bb_predicates): Likewise.
8308         (initialize_inline_failed): Likewise.
8309         (dump_inline_summary): Likewise.
8310         (dump_inline_edge_summary): Likewise.
8311         * ipa-inline-transform.c (inline_transform): Likewise.
8312         (preserve_function_body_p): Likewise.
8313         (save_inline_function_body): Likewise.
8314         (inline_call): Likewise.
8315         (clone_inlined_nodes): Likewise.
8316         (can_remove_node_now_p): Likewise.
8317         (can_remove_node_now_p_1): Likewise.
8318         * ipa-inline.c (early_inliner): Likewise.
8319         (early_inline_small_functions): Likewise.
8320         (inline_always_inline_functions): Likewise.
8321         (ipa_inline): Likewise.
8322         (flatten_function): Likewise.
8323         (inline_small_functions): Likewise.
8324         (speculation_useful_p): Likewise.
8325         (recursive_inlining): Likewise.
8326         (update_caller_keys): Likewise.
8327         (reset_edge_caches): Likewise.
8328         (update_edge_key): Likewise.
8329         (edge_badness): Likewise.
8330         (relative_time_benefit): Likewise.
8331         (want_inline_self_recursive_call_p): Likewise.
8332         (want_inline_small_function_p): Likewise.
8333         (want_early_inline_function_p): Likewise.
8334         (num_calls): Likewise.
8335         (can_early_inline_edge_p): Likewise.
8336         (can_inline_edge_p): Likewise.
8337         (report_inline_failed_reason): Likewise.
8338         * ipa-profile.c (ipa_profile): Likewise.
8339         (ipa_propagate_frequency): Likewise.
8340         (ipa_propagate_frequency_1): Likewise.
8341         (ipa_profile_generate_summary): Likewise.
8342         * ipa-prop.c (ipcp_transform_function): Likewise.
8343         (read_replacements_section): Likewise.
8344         (ipa_prop_read_section): Likewise.
8345         (ipa_modify_call_arguments): Likewise.
8346         (ipa_print_node_params): Likewise.
8347         (propagate_controlled_uses): Likewise.
8348         (update_indirect_edges_after_inlining): Likewise.
8349         (remove_described_reference): Likewise.
8350         (ipa_make_edge_direct_to_target): Likewise.
8351         (ipa_analyze_node): Likewise.
8352         (ipa_analyze_params_uses): Likewise.
8353         (ipa_compute_jump_functions): Likewise.
8354         (ipa_get_callee_param_type): Likewise.
8355         (ipa_print_node_jump_functions): Likewise.
8356         (ipa_initialize_node_params): Likewise.
8357         (ipa_populate_param_decls): Likewise.
8358         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8359         (write_agg_replacement_chain): Likewise.
8360         (ipa_write_node_info): Likewise.
8361         (ipa_edge_duplication_hook): Likewise.
8362         (try_decrement_rdesc_refcount): Likewise.
8363         * ipa-pure-const.c (propagate_nothrow): Likewise.
8364         (propagate_pure_const): Likewise.
8365         (pure_const_read_summary): Likewise.
8366         (pure_const_write_summary): Likewise.
8367         (analyze_function): Likewise.
8368         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8369         (ipa_ref_referring_ref_list): Likewise.
8370         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8371         (ipa_remove_stmt_references): Likewise.
8372         (ipa_find_reference): Likewise.
8373         (ipa_dump_referring): Likewise.
8374         (ipa_dump_references): Likewise.
8375         (ipa_record_reference): Likewise.
8376         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8377         (ipa_reference_write_optimization_summary): Likewise.
8378         (write_node_summary_p): Likewise.
8379         (propagate): Likewise.
8380         (read_write_all_from_decl): Likewise.
8381         (generate_summary): Likewise.
8382         (analyze_function): Likewise.
8383         (propagate_bits): Likewise.
8384         (ipa_reference_get_not_written_global): Likewise.
8385         (ipa_reference_get_not_read_global): Likewise.
8386         * ipa-split.c (execute_split_functions): Likewise.
8387         (split_function): Likewise.
8388         * ipa-utils.c (ipa_merge_profiles): Likewise.
8389         (dump_cgraph_node_set): Likewise.
8390         (ipa_reverse_postorder): Likewise.
8391         (ipa_edge_within_scc): Likewise.
8392         (ipa_get_nodes_in_cycle): Likewise.
8393         (ipa_free_postorder_info): Likewise.
8394         (ipa_reduced_postorder): Likewise.
8395         (searchc): Likewise.
8396         (recursive_call_p): Likewise.
8397         * ipa.c (ipa_cdtor_merge): Likewise.
8398         (record_cdtor_fn): Likewise.
8399         (function_and_variable_visibility): Likewise.
8400         (varpool_externally_visible_p): Likewise.
8401         (cgraph_externally_visible_p): Likewise.
8402         (comdat_can_be_unshared_p): Likewise.
8403         (comdat_can_be_unshared_p_1): Likewise.
8404         (address_taken_from_non_vtable_p): Likewise.
8405         (ipa_discover_readonly_nonaddressable_vars): Likewise.
8406         (symtab_remove_unreachable_nodes): Likewise.
8407         (walk_polymorphic_call_targets): Likewise.
8408         (process_references): Likewise.
8409         (enqueue_node): Likewise.
8410         (has_addr_references_p): Likewise.
8411         (cgraph_non_local_node_p_1): Likewise.
8412         * is-a.h (varpool_analyze_node): Likewise.
8413         * lto-cgraph.c (input_symtab): Likewise.
8414         (merge_profile_summaries): Likewise.
8415         (input_cgraph_1): Likewise.
8416         (input_edge): Likewise.
8417         (input_varpool_node): Likewise.
8418         (input_node): Likewise.
8419         (input_overwrite_node): Likewise.
8420         (compute_ltrans_boundary): Likewise.
8421         (output_refs): Likewise.
8422         (lto_output_varpool_node): Likewise.
8423         (lto_output_node): Likewise.
8424         (reachable_from_other_partition_p): Likewise.
8425         (referenced_from_other_partition_p): Likewise.
8426         (lto_output_edge): Likewise.
8427         (output_node_opt_summary): Likewise.
8428         (add_node_to): Likewise.
8429         (reachable_from_this_partition_p): Likewise.
8430         (lto_set_symtab_encoder_in_partition): Likewise.
8431         (lto_symtab_encoder_in_partition_p): Likewise.
8432         (lto_set_symtab_encoder_encode_initializer): Likewise.
8433         (lto_symtab_encoder_encode_initializer_p): Likewise.
8434         (lto_set_symtab_encoder_encode_body): Likewise.
8435         (lto_symtab_encoder_encode_body_p): Likewise.
8436         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8437         Likewise.
8438         * lto-streamer-in.c (lto_read_body): Likewise.
8439         (fixup_call_stmt_edges): Likewise.
8440         (fixup_call_stmt_edges_1): Likewise.
8441         * lto-streamer-out.c (produce_symtab): Likewise.
8442         (output_symbol_p): Likewise.
8443         (write_symbol): Likewise.
8444         (lto_output): Likewise.
8445         (copy_function): Likewise.
8446         (output_function): Likewise.
8447         * passes.c (function_called_by_processed_nodes_p): Likewise.
8448         (ipa_write_optimization_summaries): Likewise.
8449         (ipa_write_summaries): Likewise.
8450         (do_per_function_toporder): Likewise.
8451         (do_per_function): Likewise.
8452         (dump_passes): Likewise.
8453         * symtab.c (symtab_semantically_equivalent_p): Likewise.
8454         (symtab_nonoverwritable_alias): Likewise.
8455         (symtab_nonoverwritable_alias_1): Likewise.
8456         (symtab_for_node_and_aliases): Likewise.
8457         (symtab_resolve_alias): Likewise.
8458         (fixup_same_cpp_alias_visibility): Likewise.
8459         (symtab_alias_ultimate_target): Likewise.
8460         (symtab_used_from_object_file_p): Likewise.
8461         (verify_symtab_base): Likewise.
8462         (dump_symtab_base): Likewise.
8463         (symtab_node_name): Likewise.
8464         (symtab_node_asm_name): Likewise.
8465         (symtab_dissolve_same_comdat_group_list): Likewise.
8466         (symtab_add_to_same_comdat_group): Likewise.
8467         (symtab_unregister_node): Likewise.
8468         (symtab_insert_node_to_hashtable): Likewise.
8469         (symtab_register_node): Likewise.
8470         (unlink_from_assembler_name_hash): Likewise.
8471         (insert_to_assembler_name_hash): Likewise.
8472         (eq_assembler_name): Likewise.
8473         (hash_node_by_assembler_name): Likewise.
8474         (eq_node): Likewise.
8475         (hash_node): Likewise.
8476         * toplev.c (wrapup_global_declaration_2): Likewise.
8477         * trans-mem.c (ipa_tm_execute): Likewise.
8478         (ipa_tm_transform_clone): Likewise.
8479         (ipa_tm_transform_transaction): Likewise.
8480         (ipa_tm_transform_calls_redirect): Likewise.
8481         (ipa_tm_insert_gettmclone_call): Likewise.
8482         (ipa_tm_insert_irr_call): Likewise.
8483         (ipa_tm_create_version): Likewise.
8484         (ipa_tm_create_version_alias): Likewise.
8485         (ipa_tm_mark_forced_by_abi_node): Likewise.
8486         (ipa_tm_mark_force_output_node): Likewise.
8487         (ipa_tm_diagnose_tm_safe): Likewise.
8488         (ipa_tm_mayenterirr_function): Likewise.
8489         (ipa_tm_scan_irr_function): Likewise.
8490         (ipa_tm_note_irrevocable): Likewise.
8491         (ipa_tm_scan_calls_clone): Likewise.
8492         (get_cg_data): Likewise.
8493         * tree-eh.c (tree_could_trap_p): Likewise.
8494         * tree-emutls.c (ipa_lower_emutls): Likewise.
8495         (create_emultls_var): Likewise.
8496         (lower_emutls_function_body): Likewise.
8497         (gen_emutls_addr): Likewise.
8498         (emutls_decl): Likewise.
8499         (new_emutls_decl): Likewise.
8500         * tree-inline.c (tree_function_versioning): Likewise.
8501         (optimize_inline_calls): Likewise.
8502         (expand_call_inline): Likewise.
8503         (estimate_num_insns): Likewise.
8504         (copy_bb): Likewise.
8505         (delete_unreachable_blocks_update_callgraph): Likewise.
8506         * tree-nested.c (gimplify_all_functions): Likewise.
8507         (create_nesting_tree): Likewise.
8508         (check_for_nested_with_variably_modified): Likewise.
8509         * tree-pretty-print.c (dump_function_header): Likewise.
8510         * tree-profile.c (tree_profiling): Likewise.
8511         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8512         (modify_function): Likewise.
8513         (convert_callers): Likewise.
8514         (convert_callers_for_node): Likewise.
8515         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8516         (associate_varinfo_to_alias): Likewise.
8517         (create_variable_info_for): Likewise.
8518         (get_constraint_for_ssa_var): Likewise.
8519         * tree-vectorizer.c (increase_alignment): Likewise.
8520         * tree.c (find_decls_types_in_var): Likewise.
8521         (find_decls_types_in_node): Likewise.
8522         (free_lang_data_in_decl): Likewise.
8523         * value-prof.c (gimple_ic_transform): Likewise.
8524         (gimple_ic): Likewise.
8525         (check_ic_target): Likewise.
8526         (init_node_map): Likewise.
8527         * varasm.c (decl_binds_to_current_def_p): Likewise.
8528         (default_binds_local_p_1): Likewise.
8529         (dump_tm_clone_pairs): Likewise.
8530         (assemble_alias): Likewise.
8531         (find_decl): Likewise.
8532         (mark_decl_referenced): Likewise.
8533         * varpool.c (varpool_for_node_and_aliases): Likewise.
8534         (varpool_extra_name_alias): Likewise.
8535         (varpool_create_variable_alias): Likewise.
8536         (add_new_static_var): Likewise.
8537         (varpool_finalize_named_section_flags): Likewise.
8538         (varpool_remove_unreferenced_decls): Likewise.
8539         (enqueue_node): Likewise.
8540         (varpool_assemble_decl): Likewise.
8541         (assemble_aliases): Likewise.
8542         (varpool_analyze_node): Likewise.
8543         (cgraph_variable_initializer_availability): Likewise.
8544         (varpool_add_new_variable): Likewise.
8545         (ctor_for_folding): Likewise.
8546         (dump_varpool_node): Likewise.
8547         (varpool_remove_initializer): Likewise.
8548         (varpool_remove_node): Likewise.
8549         (varpool_node_for_decl): Likewise.
8550         (varpool_create_empty_node): Likewise.
8551         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8552         (ix86_get_function_versions_dispatcher): Likewise.
8554 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8556         * cgraph.h (symtab_node_base): Convert to a class;
8557         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8558         chain_next/prev from symtab_node_def.
8559         (cgraph_node): Inherit from symtab_node; add GTY option
8560         tag ("SYMTAB_FUNCTION").
8561         (varpool_node): Inherit from symtab_node; add GTY option
8562         tag ("SYMTAB_VARIABLE").
8563         (symtab_node_def): Remove.
8564         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8565         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8566         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8567         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8569         * ipa-ref.h (symtab_node_def): Drop.
8570         (symtab_node): Change underlying type from symtab_node_def to
8571         symtab_node_base.
8572         (const_symtab_node): Likwise.
8574         * is-a.h: Update examples in comment.
8576         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8577         (assembler_name_hash): Likewise.
8579 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
8581         * doc/tree-ssa.texi (gimple_phi_result): Document.
8582         (gimple_phi_num_args, gimple_phi_arg): Likewise.
8583         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8584         (PHI_RESULT, PHI_NUM_ARGS): Remove.
8585         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8587 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8589         * expr.h: Revert change and include tree-core.h.
8590         * rtl.h: Revert change and don't include tree-core.h.
8592 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8594         * config/darwin.c: Include gimple.h.
8595         * config/i386/winnt.c: Likewise.
8597 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
8599         PR tree-optimization/19831
8600         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8602 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8604         * tree-outof-ssa.h: Remove include files.
8605         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8606         * expr.c: Likewise.
8607         * tree-ssa-coalesce.c: Likewise.
8608         * cfgexpand.c: Likewise.
8609         * tree-ssa-ter.c: Likewise.
8610         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8611         * lto-streamer.h: Likewise.
8612         * cgraphbuild.c: Add gimple.h to include list.
8613         * data-streamer-in.c: Likewise.
8614         * ipa-cp.c: Likewise.
8615         * tree-streamer.c: Likewise.
8616         * lto-compress.c: Likewise.
8617         * ipa-reference.c: Likewise.
8618         * data-streamer-out.c: Likewise.
8619         * lto-cgraph.c: Likewise.
8620         * cgraphclones.c: Likewise.
8621         * ipa-utils.c: Likewise.
8622         * data-streamer.c: Likewise.
8623         * ipa-split.c: Likewise.
8624         * lto-section-in.c: Likewise.
8625         * tree-streamer-out.c: Likewise.
8626         * ipa-prop.c: Likewise.
8627         * tree-streamer-in.c: Likewise.
8628         * symtab.c: Likewise.
8629         * opts-global.c: Likewise.
8630         * lto-opts.c: Likewise.
8631         * lto-section-out.c: Likewise.
8632         * lto-streamer.c: Likewise.
8633         * rtl.h: Add tree-core.h to include list.
8634         * expr.h: Remove tree-core.h from include list.
8635         * gimple.h: Likewise.
8636         * ipa-utils.h: Likewise.
8637         * streamer-hooks.h: Likewise.
8638         * streamer-hooks.c: Include input.h.
8640 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8642         * config/arm/arm.c (cortexa7_extra_costs): New table.
8643         (arm_cortex_a7_tune): New.
8644         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8646 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
8648         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8650 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8652         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8653         to use autogenerated markers for a class-hierarchy, every class
8654         must have a GTY marker.
8655         * gengtype.h (struct type): Add linked list of subclasses to
8656         the "s" member of the union.
8657         (add_subclass): New decl.
8658         * gengtype-state.c (read_state_struct_type): Set up subclass
8659         linked list.
8660         * gengtype.c (get_ultimate_base_class): New.
8661         (add_subclass): New.
8662         (new_structure): Set up subclass linked list.
8663         (set_gc_used_type): Propagate usage information to subclasses.
8664         (output_mangled_typename): Use get_ultimate_base_class.
8665         (walk_subclasses): Use the subclass linked list, avoiding an
8666         O(N^2) when writing out all types.
8667         (walk_type): Issue an error if the base class is missing a tag,
8668         rather than generating bogus C code.  Add a gcc_unreachable
8669         default case, in case people omit tags from concrete subclasses,
8670         or get the values wrong.
8671         (write_func_for_structure): Issue an error for subclasses for
8672         which the base doesn't have a "desc", since otherwise the
8673         autogenerated routines for the base would silently fail to visit
8674         any subclass fields.
8675         (write_root): Use get_ultimate_base_class, tweaking constness of
8676         tp to match that function's signature.
8678 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8680         * doc/gty.texi (GTY Options): Add note about inheritance to
8681         description of desc and tag.
8682         (Inheritance and GTY): New.
8684 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8686         * gengtype-parse.c (opts_have): Drop "static" so that
8687         we can use this from gengtype.c.
8688         * gengtype.c (set_gc_used_type): Mark any base class as used;
8689         update field traversal to visit inherited fields.
8690         (output_mangled_typename):  Convert references to classes within
8691         an inheritance hierarchy to reference the ultimate base class,
8692         since only it will have gt_ functions.
8693         (get_string_option): New.
8694         (walk_subclasses): New.
8695         (walk_type): Treat GTY structs that have a "desc" as being the
8696         root of an inheritance hierarchy.  Generate a switch on it
8697         within the marking function which walks all subclasses, adding
8698         cases for them via walk_subclasses.  For subclasses, visit all
8699         fields of the type (including inherited ones).
8700         (write_func_for_structure): Don't write fns for subclasses, only
8701         for the ultimate base class within an inheritance hierarchy.
8702         Subclasses-marking will be handled by the base class marking functions.
8703         (write_types): Likewise.
8704         (write_local_func_for_structure): Likewise.
8705         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8706         a "tag" option (and are thus concrete subclasses).
8707         (write_root): Use the marker function for the ultimate base class.
8708         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8709         (opts_have): Add declaration.
8711 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
8713         * lra-spills.c (lra_final_code_change): Remove useless move insns
8714         originated from moves of pseudos.
8716 2013-10-28  Jeff Law  <law@redhat.com>
8718         * lower-subreg.c (resolve_simple_move): Fix comment typo.
8720 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
8722         * df-scan.c (df_collection_rec): Adjust.
8723         (copy_defs): New constant.
8724         (copy_uses): Likewise.
8725         (copy_eq_uses): Likewise.
8726         (copy_mw): Likewise.
8727         (copy_all): Likewise.
8728         (df_insn_rescan): Adjust.
8729         (df_notes_rescan): Likewise.
8730         (df_swap_refs): Likewise.
8731         (df_sort_and_compress_refs): Likewise.
8732         (df_sort_and_compress_mws): Likewise.
8733         (df_install_refs): Likewise.
8734         (df_install_mws): Likewise.
8735         (df_refs_add_to_chains): Add flags parameter controlling which vectors
8736         are coppied.
8737         (df_bb_refs_record): Adjust.
8738         (df_record_entry_block_defs): Likewise.
8739         (df_record_exit_block_defs): Likewise.
8740         (df_refs_verify): Likewise.
8741         (df_mws_verify): Likewise.
8742         (df_insn_refs_verify): Likewise.
8743         (df_bb_verify): Likewise.
8744         * ipa-pure-const.c (finish_state): Remove.
8745         (propagate): Adjust.
8746         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8747         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8748         var-tracking.c: Adjust.
8749         * vec.c (stack_vecs): Remove.
8750         (register_stack_vec): Likewise.
8751         (stack_vec_register_index): Likewise.
8752         (unregister_stack_vec): Likewise.
8753         * vec.h (struct va_stack): Remove.
8754         (struct vec<T, A, vl_ptr>): Specialize as
8755         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8756         allocation strategy compatable with the vl_ptr layout.
8757         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8758         specialization anyway.
8759         (class stack_vec): New class.
8760         (vec_stack_alloc): Remove.
8761         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8763 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8764             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8765             Sergey Lega  <sergey.s.lega@intel.com>
8766             Anna Tikhonova  <anna.tikhonova@intel.com>
8767             Ilya Tocar  <ilya.tocar@intel.com>
8768             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8769             Ilya Verbin  <ilya.verbin@intel.com>
8770             Kirill Yukhin  <kirill.yukhin@intel.com>
8771             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8773         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8774         (*prefetch_avx512pf_<mode>): New.
8775         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8776         (avx512f_maskcmp<mode>3): Ditto.
8777         (vashrv16si3): Ditto.
8779 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8780             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8781             Sergey Lega  <sergey.s.lega@intel.com>
8782             Anna Tikhonova  <anna.tikhonova@intel.com>
8783             Ilya Tocar  <ilya.tocar@intel.com>
8784             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8785             Ilya Verbin  <ilya.verbin@intel.com>
8786             Kirill Yukhin  <kirill.yukhin@intel.com>
8787             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8789         * config/i386/i386.md (any_truncate): New.
8790         (trunsuffix): Ditto.
8791         * config/i386/predicates.md (const_8_to_9_operand): New.
8792         (const_10_to_11_operand): Ditto.
8793         (const_12_to_13_operand): Ditto.
8794         (const_14_to_15_operand): Ditto.
8795         (const_16_to_19_operand): Ditto.
8796         (const_20_to_23_operand): Ditto.
8797         (const_24_to_27_operand): Ditto.
8798         (const_28_to_31_operand): Ditto.
8799         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8800         (cvtusi2<ssescalarmodesuffix>32): New.
8801         (cvtusi2<ssescalarmodesuffix>64): Ditto.
8802         (ufloatv16siv16sf2): Ditto.
8803         (avx512f_fix_notruncv16sfv16si): Ditto.
8804         (avx512f_ufix_notruncv16sfv16si): Ditto.
8805         (avx512f_vcvtss2usi): Ditto.
8806         (avx512f_vcvtss2usiq): Ditto.
8807         (avx512f_vcvttss2usi): Ditto.
8808         (avx512f_vcvttss2usiq): Ditto.
8809         (avx512f_vcvtsd2usi): Ditto.
8810         (avx512f_vcvtsd2usiq): Ditto.
8811         (avx512f_vcvttsd2usi): Ditto.
8812         (avx512f_vcvttsd2usiq): Ditto.
8813         (ufloatv8siv8df): Ditto.
8814         (avx512f_cvtdq2pd512_2): Ditto.
8815         (avx512f_cvtpd2dq512): Ditto.
8816         (avx512f_ufix_notruncv8dfv8si): Ditto.
8817         (avx512f_cvtpd2ps512): Ditto.
8818         (vec_unpacks_lo_v16sf): Ditto.
8819         (vec_unpacks_hi_v16sf): Ditto.
8820         (vec_unpacks_float_hi_v16si): Ditto.
8821         (vec_unpacks_float_lo_v16si): Ditto.
8822         (avx512f_unpckhps512): Ditto.
8823         (avx512f_unpcklps512): Ditto.
8824         (avx512f_movshdup512): Ditto.
8825         (avx512f_movsldup512): Ditto.
8826         (vec_extract_lo_v32hi): Ditto.
8827         (vec_extract_hi_v32hi): Ditto.
8828         (vec_extract_lo_v64qi): Ditto.
8829         (vec_extract_hi_v64qi): Ditto.
8830         (avx512f_unpckhpd512): Ditto.
8831         (avx512f_movddup512): Ditto.
8832         (avx512f_unpcklpd512): Ditto.
8833         (*avx512f_unpcklpd512): Ditto.
8834         (avx512f_shufps512_1): Ditto.
8835         (avx512f_shufpd512_1): Ditto.
8836         (avx512f_interleave_highv8di): Ditto.
8837         (avx512f_interleave_lowv8di): Ditto.
8838         (PMOV_DST_MODE): Ditto.
8839         (pmov_src_mode): Ditto.
8840         (pmov_src_lower): Ditto.
8841         (pmov_suff): Ditto.
8842         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8843         (*avx512f_<code>v8div16qi2): Ditto.
8844         (*avx512f_<code>v8div16qi2_store): Ditto.
8845         (vec_widen_umult_even_v16si): Ditto.
8846         (*vec_widen_umult_even_v16si): Ditto.
8847         (vec_widen_smult_even_v16si): Ditto.
8848         (*vec_widen_smult_even_v16si): Ditto.
8849         (avx512f_interleave_highv16si): Ditto.
8850         (avx512f_interleave_lowv16si): Ditto.
8851         (avx512f_<code>v16qiv16si2): Ditto.
8852         (avx512f_<code>v16hiv16si2): Ditto.
8853         (avx512f_<code>v8qiv8di2): Ditto.
8854         (avx512f_<code>v8hiv8di2): Ditto.
8855         (avx512f_<code>v8siv8di2): Ditto.
8856         (avx512cd_maskb_vec_dupv8di): Ditto.
8857         (avx512cd_maskw_vec_dupv16si): Ditto.
8858         (avx512f_vcvtph2ps512): Ditto.
8859         (avx512f_vcvtps2ph512): Ditto.
8860         (VEC_EXTRACT_MODE): Extened with wider modes.
8861         (VEC_PERM_AVX2): Ditto.
8862         (VEC_PERM_CONST): Ditto.
8864 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8866         * config/arc/arc.c (arc_ccfsm_post_advance):
8867         Add comment about TYPE_RETURN.
8869 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
8871         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8872         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8873         (strip_offset): Convert offset to unsigned number.
8875 2013-10-27  Tom de Vries  <tom@codesourcery.com>
8877         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8878         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8880 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
8882         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8883         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8884         (TARGET_BIG_ENDIAN): New macro.
8885         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8886         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8887         * config/sh/sh.c: Likewise.
8888         * config/sh/sh.h: Likewise.
8890 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
8892         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8893         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
8895 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8897         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8898         Fix formatting.
8899         (cmpstr_t, cmpstrsi): Fix formatting.
8901 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8903         PR target/52483
8904         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8905         addressing, do not use general_operand for memory operands.
8907 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
8909         Revert:
8910         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8911         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8913 2013-10-26  Jeff Law  <law@redhat.com>
8915         * predict.c (PRED_MUDFLAP): Remove.
8916         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
8918         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8919         (OBJS): Remove tree-nomudflap.o
8920         (GTFILES): Remove tree-mudflap.c
8921         * builtins.c (expand_builtin_alloc): Remove mudflap support.
8922         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8923         (mfwrap_spec, mflib_spec): Likewise.
8924         (cpp_unique_options, cc1_options, static_specs): Likewise.
8925         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8926         * passes.def: Likewise.
8927         * toplev.c (compile_file, process_options): Likewise.
8928         * tree-inline.c (copy_tree_r): Likewise.
8929         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8930         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8931         (build_constant_desc, output_constant_def_contents): Likewise.
8932         (categorize_decl_for_section): Likewise.
8933         * tree-mudflap.c: Removed.
8934         * tree-mudflap.h: Removed.
8935         * tree-nomudflap.c: Removed.
8936         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8937         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8938         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8939         * config/sol2.h (MFLIB_SPEC): Likewise.
8940         * doc/install.texi: Remove mudflap references.
8941         * doc/passes.texi: Similarly.
8942         * doc/sourcebuild.texi: Similarly.
8943         * doc/invoke.texi: Remove mudlfap related options.
8945 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8947         PR rtl-optimization/58759
8948         * lra-constraints.c (lra_constraints): Remove wrong condition to
8949         remove insn setting up an equivalent pseudo.
8951 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8953         * config/rs6000/rs6000-protos.h
8954         (rs6000_secondary_memory_needed_mode): New prototype.
8955         * config/rs6000/rs6000.c: Include ira.h.
8956         (TARGET_LRA_P): Redefine.
8957         (rs6000_legitimate_offset_address_p): Call
8958         legitimate_constant_pool_address_p in strict mode for LRA.
8959         (rs6000_legitimate_address_p): Ditto.
8960         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
8961         (rs6000_emit_move): Add LRA version of code to generate load/store
8962         of SDmode values.
8963         (rs6000_secondary_memory_needed_mode): New.
8964         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8965         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8966         constants, memory, and FP registers.
8967         (rs6000_lra_p): New.
8968         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8969         * config/rs6000/rs6000.opt (mlra): New option.
8970         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8972 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
8974         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8975         has_single_use () and not do the conversion if has_single_use ()
8976         returns false for the multiplication result.
8978 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
8980         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8981         to "NODE", since this works on a "tree", not an
8982         "enum tree_code".
8983         (CONSTANT_CLASS_P): Likewise.
8984         (TYPE_P): Likewise.
8985         (DECL_P): Likewise.
8986         (INDIRECT_REF_P): Likewise.
8987         (REFERENCE_CLASS_P): Likewise.
8988         (COMPARISON_CLASS_P): Likewise.
8989         (UNARY_CLASS_P): Likewise.
8990         (BINARY_CLASS_P): Likewise.
8991         (STATEMENT_CLASS_P): Likewise.
8992         (VL_EXP_CLASS_P): Likewise.
8993         (EXPRESSION_CLASS_P): Likewise.
8994         (IS_TYPE_OR_DECL_P): Likewise.
8996 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
8998         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8999         ADDR_EXPR in the defining statement.
9001 2013-10-25  Richard Biener  <rguenther@suse.de>
9003         PR tree-optimization/58626
9004         * tree-loop-distribution.c (enum rdg_dep_type): Remove
9005         anti_dd, output_dd and input_dd.
9006         (struct rdg_edge): Remove level and relation members.
9007         (RDGE_LEVEL, RDGE_RELATION): Remove.
9008         (dot_rdg_1): Adjust.
9009         (create_rdg_edge_for_ddr): Remove.
9010         (create_rdg_edges_for_scalar): Adjust.
9011         (create_edge_for_control_dependence): Likewise.
9012         (create_rdg_edges): Split into ...
9013         (create_rdg_flow_edges): ... this
9014         (create_rdg_cd_edges): ... and this.
9015         (free_rdg): Adjust.
9016         (build_rdg): Likewise, do not compute data dependences or
9017         add edges for them.
9018         (pg_add_dependence_edges): New function.
9019         (pgcmp): Likewise.
9020         (distribute_loop): First apply all non-dependence based
9021         partition mergings.  Then compute dependences between partitions
9022         and merge and order partitions according to them.
9024 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
9026         PR rtl-optimization/58831
9027         * alias.c (init_alias_analysis): At the beginning of each iteration,
9028         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
9030 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
9032         * recog.c (search_ofs): New static variable moved from...
9033         (peep2_find_free_register): ...here.
9034         (peephole2_optimize): Initialize it.
9036 2013-10-25  Tobias Burnus  <burnus@net-b.de>
9038         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
9040 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
9042         * config/i386/i386.h (TARGET_MPX): New define.
9043         (TARGET_MPX_P): Ditto.
9045 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
9047         * config/i386/constraints.md (B): New.
9048         (Ti): New.
9049         (Tb): New.
9050         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9051         * config/i386/i386-modes.def (BND32): New.
9052         (BND64): New.
9053         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9054         * config/i386/i386.c (isa_opts): Add mmpx.
9055         (regclass_map): Add bound registers.
9056         (dbx_register_map): Likewise.
9057         (dbx64_register_map): Likewise.
9058         (svr4_dbx_register_map): Likewise.
9059         (PTA_MPX): New.
9060         (ix86_option_override_internal): Support MPX ISA.
9061         (ix86_conditional_register_usage): Support bound registers.
9062         (print_reg): Likewise.
9063         (ix86_code_end): Add MPX bnd prefix.
9064         (output_set_got): Likewise.
9065         (ix86_output_call_insn): Likewise.
9066         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9067         (ix86_print_operand_punct_valid_p): Likewise.
9068         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9069         UNSPEC_BNDMK_ADDR.
9070         (ix86_class_likely_spilled_p): Add bound regs support.
9071         (ix86_hard_regno_mode_ok): Likewise.
9072         (x86_order_regs_for_local_alloc): Likewise.
9073         (ix86_bnd_prefixed_insn_p): New.
9074         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
9075         (FIXED_REGISTERS): Add bound registers.
9076         (CALL_USED_REGISTERS): Likewise.
9077         (REG_ALLOC_ORDER): Likewise.
9078         (HARD_REGNO_NREGS): Likewise.
9079         (TARGET_MPX): New.
9080         (VALID_BND_REG_MODE): New.
9081         (FIRST_BND_REG): New.
9082         (LAST_BND_REG): New.
9083         (reg_class): Add BND_REGS.
9084         (REG_CLASS_NAMES): Likewise.
9085         (REG_CLASS_CONTENTS): Likewise.
9086         (BND_REGNO_P): New.
9087         (ANY_BND_REG_P): New.
9088         (BNDmode): New.
9089         (HI_REGISTER_NAMES): Add bound registers.
9090         * config/i386/i386.md (UNSPEC_BNDMK): New.
9091         (UNSPEC_BNDMK_ADDR): New.
9092         (UNSPEC_BNDSTX): New.
9093         (UNSPEC_BNDLDX): New.
9094         (UNSPEC_BNDLDX_ADDR): New.
9095         (UNSPEC_BNDCL): New.
9096         (UNSPEC_BNDCU): New.
9097         (UNSPEC_BNDCN): New.
9098         (UNSPEC_MPX_FENCE): New.
9099         (BND0_REG): New.
9100         (BND1_REG): New.
9101         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9102         (length_immediate): Likewise.
9103         (prefix_0f): Likewise.
9104         (memory): Likewise.
9105         (prefix_rep): Check for bnd prefix.
9106         (length_nobnd): New.
9107         (length): Use length_nobnd if specified.
9108         (BND): New.
9109         (bnd_ptr): New.
9110         (BNDCHECK): New.
9111         (bndcheck): New.
9112         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
9113         (*jcc_2): Likewise.
9114         (jump): Likewise.
9115         (simple_return_internal): Likewise.
9116         (simple_return_pop_internal): Likewise.
9117         (*indirect_jump): Add MPX bnd prefix.
9118         (*tablejump_1): Likewise.
9119         (simple_return_internal_long): Likewise.
9120         (simple_return_indirect_internal): Likewise.
9121         (<mode>_mk): New.
9122         (*<mode>_mk): New.
9123         (mov<mode>): New.
9124         (*mov<mode>_internal_mpx): New.
9125         (<mode>_<bndcheck>): New.
9126         (*<mode>_<bndcheck>): New.
9127         (<mode>_ldx): New.
9128         (*<mode>_ldx): New.
9129         (<mode>_stx): New.
9130         (*<mode>_stx): New.
9131         * config/i386/predicates.md (lea_address_operand): Rename to...
9132         (address_no_seg_operand): ... this.
9133         (address_mpx_no_base_operand): New.
9134         (address_mpx_no_index_operand): New.
9135         (bnd_mem_operator): New.
9136         * config/i386/i386.opt (mmpx): New.
9137         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9138         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9140 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
9142         * mode-classes.def (MODE_POINTER_BOUNDS): New.
9143         * tree.def (POINTER_BOUNDS_TYPE): New.
9144         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9145         (POINTER_BOUNDS_MODE): New.
9146         (make_pointer_bounds_mode): New.
9147         * machmode.h (POINTER_BOUNDS_MODE_P): New.
9148         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9149         (layout_type): Support POINTER_BOUNDS_TYPE.
9150         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9151         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9152         (type_contains_placeholder_1): Likewise.
9153         * tree.h (POINTER_BOUNDS_TYPE_P): New.
9154         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9155         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9157 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
9159         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9160         mode of address computation when calling memory_address_addr_space.
9162 2013-08-24  Richard Henderson  <rth@twiddle.net>
9164         PR rtl/58542
9165         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9166         instead of create_convert_operand_to.
9167         (maybe_emit_sync_lock_test_and_set): Likewise.
9168         (expand_atomic_compare_and_swap): Likewise.
9169         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9171 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
9173         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9174         Change param_is to use the struct and not the pointer to the struct.
9176 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
9178         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9179         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9180         Move to targhooks.c.
9181         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9182         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9183         Relocate from gimplify.c.
9184         * targhooks.h: Add 2 prototypes.
9185         * tree.h: Delete 2 prototypes.
9187 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
9189         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9190         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9192 2013-10-24  Cong Hou  <congh@google.com>
9194         * convert.c (convert_to_real): Guard those unsafe math function
9195         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
9196         specially.
9198 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
9200         PR ipa/58712
9201         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9202         as argument.
9203         (cgraph_create_edge): Use the new argument.
9204         (cgraph_create_indirect_edge): Likewise.
9206 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
9208         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9209         TYPE_UNCOND_BRANCH.
9210         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9211         changes statep->state.
9213 2013-10-24  Tobias Burnus  <burnus@net-b.de>
9215         PR other/33426
9216         * tree-cfg.c (replace_loop_annotate): New function.
9217         (execute_build_cfg): Call it.
9218         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9219         * internal-fn.c (expand_ANNOTATE): New function.
9220         * internal-fn.def (ANNOTATE): Define as new internal function.
9221         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9222         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9223         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9224         * doc/extend.texi (Pragmas): Document #pragma ivdep.
9225         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9227 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
9228             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9230         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9231         Special case reload SP+C into none GENERAL_REGS.
9233 2013-10-24  Michael Matz  <matz@suse.de>
9235         * gengtype.c (is_file_equal): Check that files will be same length.
9237 2013-10-25  Christian Bruel  <christian.bruel@st.com>
9239         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9240         * config/sh/t-sh (sh-mem.o): New rule.
9241         * config/sh/sh-mem.cc (expand_block_move): Moved here.
9242         (sh_expand_cmpstr): New function.
9243         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9244         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9245         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9246         (rotlhi3_8): Rename.
9248 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9250         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9251         * Makefile.in (CXXDEPMODE): Assign and change users.
9252         (CCDEPMODE): Delete.
9253         * configure: Regenerate.
9255 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
9257         * gengtype-parse.c (require_without_advance): New.
9258         (type): For GTY-marked types that are not GTY((user)), parse any
9259         base classes, requiring them to be single-inheritance, and not
9260         be templates.  For non-GTY-marked types and GTY((user)),
9261         continue to skip over any C++ inheritance specification.
9262         * gengtype-state.c (state_writer::write_state_struct_type):
9263         Write base class of type (if any).
9264         (read_state_struct_type): Read base class of type (if any).
9265         * gengtype.c (new_structure): Add a "base_class" parameter.
9266         (create_optional_field_): Update for new parameter to new_structure.
9267         (adjust_field_rtx_def): Likewise.
9268         (adjust_field_tree_exp): Likewise.
9269         * gengtype.h (struct type): Add "base_class" field to the s
9270         union field.
9271         (new_structure): Add "base" parameter.
9273 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
9275         PR target/57756
9276         * config/i386/i386.c (ix86_option_override_internal):
9277         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9278         (ix86_valid_target_attribute_tree):
9279         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9280         Change TARGET_SSE to TARGET_SSE_P (opts->...)
9282 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9284         * tree-ssa-loop.h: Remove include files.
9285         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9286         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9287         * graphite-clast-to-gimple.c: Likewise.
9288         * graphite-scop-detection.c: Likewise.
9289         * graphite-sese-to-poly.c: Likewise.
9290         * ipa-inline-analysis.c: Likewise.
9291         * ipa-pure-const.c: Likewise.
9292         * loop-init.c: Likewise.
9293         * passes.c: Likewise.
9294         * predict.c: Likewise.
9295         * tree-cfg.c: Likewise.
9296         * tree-cfgcleanup.c: Likewise.
9297         * tree-chrec.c: Likewise.
9298         * tree-data-ref.c: Likewise.
9299         * tree-loop-distribution.c: Likewise.
9300         * tree-parloops.c: Likewise.
9301         * tree-predcom.c: Likewise.
9302         * tree-scalar-evolution.c: Likewise.
9303         * tree-ssa-address.c: Likewise.
9304         * tree-ssa.c: Likewise.
9305         * tree-ssa-dce.c: Likewise.
9306         * tree-ssa-loop.c: Likewise.
9307         * tree-ssa-loop-im.c: Likewise.
9308         * tree-ssa-loop-ivcanon.c: Likewise.
9309         * tree-ssa-loop-ivopts.c: Likewise.
9310         * tree-ssa-loop-manip.c: Likewise.
9311         * tree-ssa-loop-niter.c: Likewise.
9312         * tree-ssa-loop-prefetch.c: Likewise.
9313         * tree-ssa-loop-unswitch.c: Likewise.
9314         * tree-ssa-reassoc.c: Likewise.
9315         * tree-vect-data-refs.c: Likewise.
9316         * tree-vect-loop.c: Likewise.
9317         * tree-vect-loop-manip.c: Likewise.
9318         * tree-vectorizer.c: Likewise.
9319         * tree-vect-stmts.c: Likewise.
9320         * tree-vrp.c: Likewise.
9322 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9324         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9326 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9328         PR tree-optimization/58775
9329         PR tree-optimization/58791
9330         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9331         (insert_stmt_after): Rewritten, don't move the stmt, but really
9332         insert it.
9333         (get_stmt_uid_with_default): Remove.
9334         (build_and_add_sum): Use insert_stmt_after and
9335         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
9336         (update_range_test): Set uid on stmts added by
9337         force_gimple_operand_gsi.  Don't immediately modify statements
9338         in inter-bb optimization, just update oe->op values.
9339         (optimize_range_tests): Return bool whether any changed have been made.
9340         (update_ops): New function.
9341         (struct inter_bb_range_test_entry): New type.
9342         (maybe_optimize_range_tests): Perform statement changes here.
9343         (not_dominated_by, appears_later_in_bb, get_def_stmt,
9344         ensure_ops_are_available): Remove.
9345         (find_insert_point): Rewritten.
9346         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9347         return LHS of the (new resp. old) stmt.  Don't call
9348         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9349         instead of last, move new stmt at the right place.
9350         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9351         (negate_value): Likewise.  Set uids.
9352         (break_up_subtract_bb): Initialize uids.
9353         (reassociate_bb): Adjust rewrite_expr_tree caller.
9354         (do_reassoc): Don't call renumber_gimple_stmt_uids.
9356 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
9358         PR target/58838
9359         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9360         TARGET_32BIT final condition.
9361         (mulsi3_internal2 and splitter): Same.
9363 2013-10-23  Jeff Law  <law@redhat.com>
9365         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9366         through joiner blocks with abnormal outgoing edges.
9368         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9369         Add parameter JOINERS, to allow/disallow threading through joiner
9370         blocks.
9371         (thread_block): New.  Call thread_block_1.
9372         (mark_threaded_blocks): Remove code to filter out certain cases
9373         of threading through joiner blocks.
9374         (thread_through_all_blocks): Document how we can have a dangling
9375         edge AUX field and clear it.
9377 2013-10-23  Ian Lance Taylor  <iant@google.com>
9379         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9380         (C++ Dialect Options): Likewise.
9381         (Optimize Options): Likewise.
9383 2013-10-23  Tom de Vries  <tom@codesourcery.com>
9385         PR tree-optimization/58805
9386         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9388 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9390         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9391         sequence based on get_range_info returned range.
9393 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9395         * tree-ssa.h: Remove all #include's
9396         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9397         * alias.c: Move required includes from tree-ssa.h.
9398         * asan.c: Likewise.
9399         * builtins.c: Likewise.
9400         * calls.c: Likewise.
9401         * cfgexpand.c: Likewise.
9402         * cfghooks.c: Likewise.
9403         * cfgloop.c: Likewise.
9404         * cfgloopmanip.c: Likewise.
9405         * cgraph.c: Likewise.
9406         * cgraphbuild.c: Likewise.
9407         * cgraphclones.c: Likewise.
9408         * cgraphunit.c: Likewise.
9409         * dse.c: Likewise.
9410         * except.c: Likewise.
9411         * expr.c: Likewise.
9412         * final.c: Likewise.
9413         * fold-const.c: Likewise.
9414         * ggc-page.c: Likewise.
9415         * gimple-builder.c: Likewise.
9416         * gimple-fold.c: Likewise.
9417         * gimple-iterator.c: Likewise.
9418         * gimple-low.c: Likewise.
9419         * gimple-pretty-print.c: Likewise.
9420         * gimple-ssa-strength-reduction.c: Likewise.
9421         * gimple-streamer-in.c: Likewise.
9422         * gimple-streamer-out.c: Likewise.
9423         * gimplify.c: Likewise.
9424         * graphite-blocking.c: Likewise.
9425         * graphite-clast-to-gimple.c: Likewise.
9426         * graphite-dependences.c: Likewise.
9427         * graphite-interchange.c: Likewise.
9428         * graphite-optimize-isl.c: Likewise.
9429         * graphite-poly.c: Likewise.
9430         * graphite-scop-detection.c: Likewise.
9431         * graphite-sese-to-poly.c: Likewise.
9432         * graphite.c: Likewise.
9433         * ipa-cp.c: Likewise.
9434         * ipa-inline-analysis.c: Likewise.
9435         * ipa-inline-transform.c: Likewise.
9436         * ipa-inline.c: Likewise.
9437         * ipa-prop.c: Likewise.
9438         * ipa-pure-const.c: Likewise.
9439         * ipa-reference.c: Likewise.
9440         * ipa-split.c: Likewise.
9441         * ipa-utils.c: Likewise.
9442         * loop-init.c: Likewise.
9443         * lto-cgraph.c: Likewise.
9444         * lto-section-in.c: Likewise.
9445         * lto-section-out.c: Likewise.
9446         * lto-streamer-in.c: Likewise.
9447         * lto-streamer-out.c: Likewise.
9448         * lto-streamer.c: Likewise.
9449         * omp-low.c: Likewise.
9450         * passes.c: Likewise.
9451         * predict.c: Likewise.
9452         * print-tree.c: Likewise.
9453         * profile.c: Likewise.
9454         * sese.c: Likewise.
9455         * targhooks.c: Likewise.
9456         * tracer.c: Likewise.
9457         * trans-mem.c: Likewise.
9458         * tree-call-cdce.c: Likewise.
9459         * tree-cfg.c: Likewise.
9460         * tree-cfgcleanup.c: Likewise.
9461         * tree-chrec.c: Likewise.
9462         * tree-complex.c: Likewise.
9463         * tree-data-ref.c: Likewise.
9464         * tree-dfa.c: Likewise.
9465         * tree-eh.c: Likewise.
9466         * tree-emutls.c: Likewise.
9467         * tree-if-conv.c: Likewise.
9468         * tree-inline.c: Likewise.
9469         * tree-into-ssa.c: Likewise.
9470         * tree-loop-distribution.c: Likewise.
9471         * tree-mudflap.c: Likewise.
9472         * tree-nested.c: Likewise.
9473         * tree-nrv.c: Likewise.
9474         * tree-object-size.c: Likewise.
9475         * tree-outof-ssa.c: Likewise.
9476         * tree-parloops.c: Likewise.
9477         * tree-phinodes.c: Likewise.
9478         * tree-predcom.c: Likewise.
9479         * tree-pretty-print.c: Likewise.
9480         * tree-profile.c: Likewise.
9481         * tree-scalar-evolution.c: Likewise.
9482         * tree-sra.c: Likewise.
9483         * tree-ssa-address.c: Likewise.
9484         * tree-ssa-alias.c: Likewise.
9485         * tree-ssa-ccp.c: Likewise.
9486         * tree-ssa-coalesce.c: Likewise.
9487         * tree-ssa-copy.c: Likewise.
9488         * tree-ssa-copyrename.c: Likewise.
9489         * tree-ssa-dce.c: Likewise.
9490         * tree-ssa-dom.c: Likewise.
9491         * tree-ssa-dse.c: Likewise.
9492         * tree-ssa-forwprop.c: Likewise.
9493         * tree-ssa-ifcombine.c: Likewise.
9494         * tree-ssa-live.c: Likewise.
9495         * tree-ssa-loop-ch.c: Likewise.
9496         * tree-ssa-loop-im.c: Likewise.
9497         * tree-ssa-loop-ivcanon.c: Likewise.
9498         * tree-ssa-loop-ivopts.c: Likewise.
9499         * tree-ssa-loop-manip.c: Likewise.
9500         * tree-ssa-loop-niter.c: Likewise.
9501         * tree-ssa-loop-prefetch.c: Likewise.
9502         * tree-ssa-loop-unswitch.c: Likewise.
9503         * tree-ssa-loop.c: Likewise.
9504         * tree-ssa-math-opts.c: Likewise.
9505         * tree-ssa-operands.c: Likewise.
9506         * tree-ssa-phiopt.c: Likewise.
9507         * tree-ssa-phiprop.c: Likewise.
9508         * tree-ssa-pre.c: Likewise.
9509         * tree-ssa-propagate.c: Likewise.
9510         * tree-ssa-reassoc.c: Likewise.
9511         * tree-ssa-sccvn.c: Likewise.
9512         * tree-ssa-sink.c: Likewise.
9513         * tree-ssa-strlen.c: Likewise.
9514         * tree-ssa-structalias.c: Likewise.
9515         * tree-ssa-tail-merge.c: Likewise.
9516         * tree-ssa-ter.c: Likewise.
9517         * tree-ssa-threadedge.c: Likewise.
9518         * tree-ssa-threadupdate.c: Likewise.
9519         * tree-ssa-uncprop.c: Likewise.
9520         * tree-ssa-uninit.c: Likewise.
9521         * tree-ssa.c: Likewise.
9522         * tree-ssanames.c: Likewise.
9523         * tree-stdarg.c: Likewise.
9524         * tree-streamer-in.c: Likewise.
9525         * tree-switch-conversion.c: Likewise.
9526         * tree-tailcall.c: Likewise.
9527         * tree-vect-data-refs.c: Likewise.
9528         * tree-vect-generic.c: Likewise.
9529         * tree-vect-loop-manip.c: Likewise.
9530         * tree-vect-loop.c: Likewise.
9531         * tree-vect-patterns.c: Likewise.
9532         * tree-vect-slp.c: Likewise.
9533         * tree-vect-stmts.c: Likewise.
9534         * tree-vectorizer.c: Likewise.
9535         * tree-vrp.c: Likewise.
9536         * tree.c: Likewise.
9537         * tsan.c: Likewise.
9538         * value-prof.c: Likewise.
9539         * var-tracking.c: Likewise.
9540         * varpool.c: Likewise.
9541         * vtable-verify.c: Likewise.
9543 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9545         * config/tilegx/tilegx.c: Include "tree.h".
9547 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9549         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9550         the info, not after it.
9551         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9552         dump_ssaname_info call.
9553         (pp_gimple_stmt_1): Adjust caller.
9554         (dump_phi_nodes): Likewise.  Don't print "# " here.
9556 2013-10-22  Jan Hubicka  <jh@suse.cz>
9558         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9559         tuning flag.
9560         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9561         * i386.c (expand_small_movmem_or_setmem): New function.
9562         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9563         function.
9564         (alg_usable_p): Add support for value ranges; cleanup.
9565         (ix86_expand_set_or_movmem): Add support for misaligned moves.
9567 2013-10-22  Sterling Augustine  <saugustine@google.com>
9569         * doc/invoke.texi: Document -ggnu-pubnames.
9570         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9571         logic.
9572         * dwarf2out.c: Include gdb/gdb-index.h.
9573         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9574         debug_generate_pub_sections.
9575         (is_java, output_pubtables, output_pubname): New functions.
9576         (include_pubname_in_output): Handle debug_generate_pub_sections at
9577         level 2.
9578         (size_of_pubnames): Use new local space_for_flags based on
9579         debug_generate_pub_sections.
9580         (output_pubnames): Unify pubnames and pubtypes output logic.
9581         Genericize comments.  Call output_pubname.
9582         (dwarf2out_finish): Move logic to output_pubnames and call it.
9584 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
9586         PR target/58779
9587         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9588         Remove CCCmode handling.
9589         <case LTU>: Return 'c' suffix for CCCmode.
9590         <case GEU>: Return 'nc' suffix for CCCmode.
9591         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9592         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9593         (*sub<mode>3_cc_overflow): Ditto.
9594         (*subsi3_zext_cc_overflow): Ditto.
9596 2013-10-22  Steve Ellcey  <sellcey@mips.com>
9598         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
9599         (AND (NOT OP1) (NOT OP2)).
9601 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
9603         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9604         meaning of merge-high and merge-low masks for little endian; avoid
9605         use of vector-pack masks for little endian for mismatched modes.
9607 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9609         * config/tilepro/tilepro.c: Include "tree.h".
9611 2013-10-22  Andreas Schwab  <schwab@suse.de>
9613         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9614         with PRE_DEC.
9616 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
9618         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9619         [Ed Smith-Rowland]): New entries.
9620         ([Stephen M. Webb]): Update.
9622 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
9624         * tree-ssa-ter.h: Remove duplicate copy of file contents.
9626 2013-10-21  Marek Polacek  <polacek@redhat.com>
9628         PR middle-end/58809
9629         * fold-const.c (fold_range_test): Return 0 if the type is not
9630         an integral type.
9632 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
9634         * system.h: Move hwint.h include further down.
9635         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
9636         gcc_checking_asserts.
9637         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9639 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9641         Fix volatile issues in optimize_bit_field_compare.
9642         * fold-const.c (optimize_bit_field_compare): Bail out if
9643         lvolatilep or rvolatilep.
9645 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9647         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9648         and get_inner_reference returning different pmode for non-volatile
9649         bit-field members dependent on flag_strict_volatile_bitfields.
9650         * stor-layout.c (layout_decl): Remove special handling of
9651         flag_strict_volatile_bitfields.
9652         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9653         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9655 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
9657         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9658         calculations.
9660 2013-10-21  Jeff Law  <law@redhat.com>
9662         * tree-ssa-threadedge.c (thread_through_normal_block): New
9663         argument VISITED.  Remove VISISTED as a local variable.  When we
9664         have a threadable jump, verify the destination of the jump has not
9665         been visised.
9666         (thread_across_edge): Allocate VISITED bitmap once at function
9667         scope and use it throughout.  Make sure to set appropriate bits in
9668         VISITED for E (start of jump thread path).
9669         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9670         through a joiner if any edge on the path has a recorded jump thread.
9672 2013-10-21  Ian Lance Taylor  <iant@google.com>
9674         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9675         don't imply that attributes can solve all problems.
9676         (Directory Options): Fix typo.
9678 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9680         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9681         extend and extend_add.
9683 2013-10-21  Richard Biener  <rguenther@suse.de>
9685         PR tree-optimization/58794
9686         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9687         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9689 2013-10-21  Richard Biener  <rguenther@suse.de>
9691         PR middle-end/58742
9692         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9693         to (T) X for sign-changing conversions (or no conversion).
9695 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
9697         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9699 2013-10-20  Jan Hubicka  <jh@suse.cz>
9701         * config/i386/i386-tune.def: Add comment; organize into categories
9703 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9705         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9706         argument.  Update function comment.
9707         (expand_set_or_movmem_via_rep): New function combining
9708         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9709         (expand_movmem_via_rep_mov): Remove.
9710         expand_setmem_via_rep_stos): Remove.
9711         (expand_movmem_epilogue): Update calls correspondingly.
9712         (expand_setmem_epilogue_via_loop): Likewise.
9713         (emit_memset): New.
9714         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9715         (expand_set_or_movmem_prologue): New function combining
9716         expand_movmem_prologue and expand_setmem_prologue.
9717         (expand_movmem_prologue): Remove.
9718         (expand_setmem_prologue): Remove.
9719         (expand_set_or_movmem_constant_prologue): New function combining
9720         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9721         (expand_constant_movmem_prologue): Remove.
9722         (expand_constant_setmem_prologue): Remove.
9723         (promote_duplicated_reg): Allow vector-const0 value.
9724         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9725         and ix86_expand_setmem.
9726         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9727         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9729 2013-10-21  Diego Novillo  <dnovillo@google.com>
9731         * asan.c: Include tree.h
9732         * bb-reorder.c: Likewise.
9733         * cfgcleanup.c: Likewise.
9734         * cfgloopmanip.c: Likewise.
9735         * data-streamer-in.c: Likewise.
9736         * data-streamer-out.c: Likewise.
9737         * data-streamer.c: Likewise.
9738         * dwarf2cfi.c: Likewise.
9739         * graphite-blocking.c: Likewise.
9740         * graphite-clast-to-gimple.c: Likewise.
9741         * graphite-dependences.c: Likewise.
9742         * graphite-interchange.c: Likewise.
9743         * graphite-optimize-isl.c: Likewise.
9744         * graphite-poly.c: Likewise.
9745         * graphite-scop-detection.c: Likewise.
9746         * graphite-sese-to-poly.c: Likewise.
9747         * graphite.c: Likewise.
9748         * ipa-devirt.c: Likewise.
9749         * ipa-profile.c: Likewise.
9750         * ipa.c: Likewise.
9751         * ira.c: Likewise.
9752         * loop-init.c: Likewise.
9753         * loop-unroll.c: Likewise.
9754         * lower-subreg.c: Likewise.
9755         * lto/lto-object.c: Likewise.
9756         * recog.c: Likewise.
9757         * reginfo.c: Likewise.
9758         * tree-loop-distribution.c: Likewise.
9759         * tree-parloops.c: Likewise.
9760         * tree-ssa-strlen.c: Likewise.
9761         * tree-streamer.c: Likewise.
9762         * value-prof.c: Likewise.
9763         * target-globals.c: Likewise.
9764         * expr.h: Include tree-core.h instead of tree.h.
9765         * gimple.h: Likewise.
9766         * ipa-prop.h: Likewise.
9767         * ipa-utils.h: Likewise.
9768         * lto-streamer.h: Likewise.
9769         * streamer-hooks.h: Likewise.
9770         * ipa-reference.h: Include cgraph.h instead of tree.h.
9771         * cgraph.h: Include basic-block.h instead of tree.h.
9772         * tree-streamer.h: Do not include tree.h.
9773         * genattrtab.c (write_header): Generate inclusion of tree.h.
9774         * genautomata.c (main): Likewise.
9775         * genemit.c: Likewise.
9776         * genopinit.c: Likewise.
9777         * genoutput.c (output_prologue): Likewise.
9778         * genpeep.c: Likewise.
9780 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9782         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9783         little endian.
9784         (vec_unpacku_hi_v8hi): Likewise.
9785         (vec_unpacku_lo_v16qi): Likewise.
9786         (vec_unpacku_lo_v8hi): Likewise.
9788 2013-10-20  Jan Hubicka  <jh@suse.cz>
9790         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9791         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9792         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9794 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
9796         * config/mips/mips.h (ISA_HAS_WSBH): Define.
9797         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9798         constants.
9799         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9801 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
9803         PR target/58603
9804         * system.h: Undef m_slot.
9806 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9808         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9809         all elements for both endian flavors.
9811 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9813         PR target/58792
9814         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9815         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
9816         and SI_REG for 64bit SYSV ABI targets.
9818 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9820         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9821         to multi_reg_return.  Clarify that we are skipping USEs of multiple
9822         return registers.  Use bool type where appropriate.
9824 2013-10-18  Jan Hubicka  <jh@suse.cz>
9826         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9827         for cold functions.
9828         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9829         (X86_TUNE_PUSH_MEMORY): Likewise.
9830         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9831         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9832         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9833         New.
9834         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9835         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9836         Remove.
9837         (ix86_option_override_internal): Update to use tune features instead
9838         of variables.
9840 2013-10-18  Cong Hou  <congh@google.com>
9842         PR tree-optimization/58508
9843         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9844         statement that contains data refs with zero-step.
9846 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9848         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9849         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9850         * gimple-low.c (gimple_check_call_arg,
9851         gimple_check_call_matching_types): Move to cgraph.c.
9852         * gimple-low.h: Remove prototype.
9853         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9854         Relocate from gimple-low.c.
9855         * cgraph.h: Add prototype.  Don't include basic-block.h.
9856         * gimplify.c: Add gimple-low to include list.
9857         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9858         * tree-eh.c: Add gimple-low to include list.
9859         * tree-nested.c: Likewise.
9860         * cfgexpand.c: Add tree-ssa-address.h to include list.
9861         * expr.c: Likewise.
9862         * gimple-fold.c: Likewise.
9863         * gimple-ssa-strength-reduction.c: Likewise.
9864         * trans-mem.c: Likewise.
9865         * tree-mudflap.c: Likewise.
9866         * tree-ssa-loop-ivopts.c: Likewise.
9867         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9868         (degenerate_phi_result): Move to tree-phinodes.c.
9869         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9870         * tree-ssa-threadedge.c: Likewise.
9871         * tree-vrp.c: Likewise.
9872         * tree-phinodes.c (degenerate_phi_result): Relocate here.
9873         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9874         * tree-phinodes.h (degenerate_phi_result): Add prototype.
9875         * tree-ssa-copy.c: Include tree-ssa-dom.h.
9876         * tree-ssa-forwprop.c: Likewise.
9877         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9878         pass_data_cleanup_cfg_post_optimizing,
9879         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9880         * tree-optimize.c: Delete File.
9881         * graphite.c: Include tree-cfgcleanup.h.
9882         * passes.c: Likewise.
9883         * tree-cfg.c: Likewise.
9884         * tree-profile.c: Likewise.
9885         * tree-ssa-dse.c: Likewise.
9886         * tree-ssa-loop-ivcanon.c: Likewise.
9887         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9888         * tree-outof-ssa.c: Include sbitmap.h.
9889         * tree-ssa-live.c: Likewise.
9890         * tree-ssa-propagate.c: Likewise.
9891         * tree-ssa-structalias.c: Likewise.
9892         * tree-stdarg.c: Likewise.
9893         * Makefile.in (OBJS): Delete tree-optimize.o.
9894         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9895         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9896         * varasm.c: Include basic-block.h.
9897         * cfgloop.h: Include function.h instead of basic-block.h
9898         (bb_loop_depth): Move to cfgloop.c.
9899         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9901 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9903         * predict.c (probably_never_executed): Compare frequency-based
9904         count to number of training runs.
9905         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9907 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9909         * config/arm/arm.c (cortexa9_extra_costs): New table.
9910         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
9912 2013-10-18  Jeff Law  <law@redhat.com>
9914         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
9916         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
9917         (register_jump_thread): Add "registered_jump_thread" debug
9918         counter support.
9919         * dbgcnt.def (registered_jump_thread): New debug counter.
9921 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9923         * config/rs6000/rs6000.c: Include cgraph.h.
9925 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9927         * tree-ssa-tail-merge.c (replace_block_by): Update edge
9928         weights during merging.
9930 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9932         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
9933         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9934         * tree-ssa-operands.h: Remove prototype.
9935         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9936         * gimple.c (virtual_operand_p): Relocate from gimple.c.
9937         * gimple.h: Add prototype.
9938         * gimple-ssa.h: Include tree-ssa-operands.h.
9939         * tree-dump.c: Add tree-cfg.h to include list.
9940         * tree-ssa-alias.c: Add ipa-reference.h to include list.
9941         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9942         * config/i386/i386.c: Don't include tree-flow.h.
9943         * config/rs6000/rs6000.c: Likewise.
9945 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9947         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9949 2013-10-18  Richard Biener  <rguenther@suse.de>
9951         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9952         or TYPE_UNSIGNED of integral types.
9953         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9954         NULL_TREE for zero-precision integral types.
9956 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
9958         * config/aarch64/arm_neon.h
9959         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9961 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
9963         PR target/57756
9964         * opth-gen.awk: Define target_flags_explicit.
9966 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9968         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9969         fields to the reg_addr array that describes the valid addressing
9970         mode for any register, general purpose registers, floating point
9971         registers, and Altivec registers.
9972         (FIRST_RELOAD_REG_CLASS): Likewise.
9973         (LAST_RELOAD_REG_CLASS): Likewise.
9974         (struct reload_reg_map_type): Likewise.
9975         (reload_reg_map_type): Likewise.
9976         (RELOAD_REG_VALID): Likewise.
9977         (RELOAD_REG_MULTIPLE): Likewise.
9978         (RELOAD_REG_INDEXED): Likewise.
9979         (RELOAD_REG_OFFSET): Likewise.
9980         (RELOAD_REG_PRE_INCDEC): Likewise.
9981         (RELOAD_REG_PRE_MODIFY): Likewise.
9982         (reg_addr): Likewise.
9983         (mode_supports_pre_incdec_p): New helper functions to say whether
9984         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9985         (mode_supports_pre_modify_p): Likewise.
9986         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9987         print the valid address mode bits for each mode.
9988         (rs6000_debug_print_mode): Likewise.
9989         (rs6000_debug_reg_global): Likewise.
9990         (rs6000_setup_reg_addr_masks): New function to set up the address
9991         mask bits for each type.
9992         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9993         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9994         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9995         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9996         PRE_MODIFY are supported.
9997         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9998         registers, instead of {src,dest}_av_p.
9999         (rs6000_print_options_internal): Tweak the debug output slightly.
10001 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
10003         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
10004         isa attribute.
10006 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
10008         * tree-flow.h (struct omp_region): Move to omp-low.c.
10009         Remove omp_ prototypes and variables.
10010         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
10011         (copy_var_decl): Relocate prototype from tree-flow.h.
10012         * gimple.c (copy_var_decl): Relocate from omp-low.c.
10013         * tree.h: Move prototype to omp-low.h.
10014         * omp-low.h: New File.  Relocate prototypes here.
10015         * omp-low.c (struct omp_region): Make local here.
10016         (root_omp_region): Make static.
10017         (copy_var_decl) Move to gimple.c.
10018         (new_omp_region): Make static.
10019         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
10020         * tree-cfg.c: Include omp-low.h.
10021         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
10022         * gimplify.c: Include omp-low.h.
10023         * tree-parloops.c: Likewise.
10025 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
10027         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
10028         operands are in memory, prefer to force non-matched operand 1 to
10029         the register.
10031 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
10033         PR target/58673
10034         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
10035         restrict TImode addresses to single indirect registers if both
10036         -mquad-memory and -mvsx-timode are used.
10037         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
10038         we should emit load/store quad.  Remove using %y for quad memory
10039         addresses.
10041         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
10042         constraints to allow load/store quad on machines where TImode is
10043         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
10044         for TImode to load integer constants.
10046 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10048         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
10050 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10052         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
10053         handling of STACK_REG.
10055 2013-10-17  Richard Biener  <rguenther@suse.de>
10057         PR tree-optimization/58143
10058         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
10059         New function.
10060         (rewrite_to_defined_overflow): Likewise.
10061         (move_computations_dom_walker::before_dom): Rewrite stmts
10062         with undefined signed overflow that are not always executed
10063         into unsigned arithmetic.
10065 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
10067         PR target/57756
10068         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
10069         explicit isa flag to be an options variable, instead of using
10070         global_options_set.  Remove define from rs6000.h.
10071         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
10073         * config/rs6000/rs6000.c (rs6000_option_override_internal):
10074         Initialize rs6000_isa_flags_explicit.
10075         (rs6000_function_specific_save): Add gcc_options* parameter, so
10076         that the powerpc builds after the 2013-10-15 changes.
10077         (rs6000_function_specific_restore): Likewise.
10079 2013-10-16  DJ Delorie  <dj@redhat.com>
10081         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
10082         op is a REG before checking REGNO.
10083         (rl78_alloc_physical_registers): Verify pattern is a SET before
10084         checking SET_SRC.
10086 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10088         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
10089         endianness.
10090         (vec_unpacks_lo_v4sf): Likewise.
10091         (vec_unpacks_float_hi_v4si): Likewise.
10092         (vec_unpacks_float_lo_v4si): Likewise.
10093         (vec_unpacku_float_hi_v4si): Likewise.
10094         (vec_unpacku_float_lo_v4si): Likewise.
10096 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10098         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
10099         (vsx_concat_v2sf): Likewise.
10101 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
10103         * config/aarch64/aarch64.md
10104         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
10106 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
10108         PR tree-optimization/58697
10109         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
10110         estimated_loop_iterations_int.
10111         (max_stmt_executions_int): Call get_max_loop_iterations_int.
10112         (get_max_loop_iterations_int): New.  HWINT version of
10113         get_max_loop_iterations.
10114         * cfgloop.h: Add prototypes.
10115         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
10116         * loop-unroll.c (decide_peel_once_rolling): Call
10117         get_estimated_loop_iterations_int.
10118         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
10119         * tree-ssa-loop-niter.h: Tweak prototypes.
10121 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
10123         * gengtype-parse.c (struct_field_seq): Ignore access-control
10124         keywords ("public:" etc).
10126 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10128         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
10129         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
10131 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
10133         * config/arm/arm.opt (mlra): New option.
10134         * config/arm/arm.c (arm_lra_p): New function.
10135         (TARGET_LRA_P): Define.
10137 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
10139         * tree-core.h (tree_code_name): Remove.
10140         * tree.h (get_tree_code_name): New prototype.
10141         * tree.c (tree_code_name): Make static.
10142         (get_tree_code_name): New function.
10143         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10144         tree_class_check_failed, tree_range_check_failed,
10145         tree_not_class_check_failed, omp_clause_check_failed,
10146         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10147         wrapper get_tree_code_name instead of calling tree_code_name directly.
10148         * tree-vrp.c (dump_asserts_for): Likewise.
10149         * tree-dump.c (dequeue_and_dump): Likewise.
10150         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10151         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10152         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10153         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10154         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10155         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10156         dump_gimple_omp_for): Likewise.
10157         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10158         * tree-ssa-pre.c (print_pre_expr): Likewise.
10159         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10160         * print-tree.c (print_node_brief, print_node): Likewise.
10161         * gimple.c (gimple_check_failed): Likewise.
10162         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10163         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10164         * config/mep/mep.c (mep_validate_vliw): Likewise.
10165         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10166         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10168 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
10170         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10171         for AMD bdver3.
10173 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
10175         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10176         (MULTILIB_MATCHES): Add multilib for -march=v8.
10178 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
10180         PR target/57756
10181         * optc-save-gen.awk: Add extra parameter to the save and restore
10182         target calls.
10183         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
10184         * tree.c (build_optimization_node): New parameter.  Add extra parameter
10185         to call to cl_optimization_save.
10186         (build_target_option_node): New parameter. Add extra parameter
10187         to call to cl_target_option_save.
10188         * tree.h (build_optimization_node): New parameter.
10189         (build_target_option_node): New parameter.
10190         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10191         build_optimization_node and build_target_option_node.
10192         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10193         (handle_pragma_push_options): Ditto.
10194         * toplev.c (process_options): Ditto.
10195         * opts.c (init_options_struct): Check for opts_set non-null.
10196         * target.def (target_option.save): New parameter.
10197         (target_option.restore): New parameter.
10198         * tm.texi: Generate.
10199         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10200         (ix86_pragma_target_parse): Ditto.
10201         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10202         parameters.
10203         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10204         to  build_optimization_node and build_target_option_node.
10205         (rs6000_valid_attribute_p): Ditto.
10206         (rs6000_pragma_target_parse): Ditto.
10207         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10208         data.
10209         * config/i386/i386.h:
10210         TARGET_64BIT_P: New Macro
10211         TARGET_MMX_P: New Macro.
10212         TARGET_3DNOW_P: New Macro.
10213         TARGET_3DNOW_A_P: New Macro.
10214         TARGET_SSE_P: New Macro.
10215         TARGET_SSE2_P: New Macro.
10216         TARGET_SSE3_P: New Macro.
10217         TARGET_SSSE3_P: New Macro.
10218         TARGET_SSE4_1_P: New Macro.
10219         TARGET_SSE4_2_P: New Macro.
10220         TARGET_AVX_P: New Macro.
10221         TARGET_AVX2_P: New Macro.
10222         TARGET_AVX512F_P: New Macro.
10223         TARGET_AVX512PF_P: New Macro.
10224         TARGET_AVX512ER_P: New Macro.
10225         TARGET_AVX512CD_P: New Macro.
10226         TARGET_FMA_P: New Macro.
10227         TARGET_SSE4A_P: New Macro.
10228         TARGET_FMA4_P: New Macro.
10229         TARGET_XOP_P: New Macro.
10230         TARGET_LWP_P: New Macro.
10231         TARGET_ABM_P: New Macro.
10232         TARGET_BMI_P: New Macro.
10233         TARGET_BMI2_P: New Macro.
10234         TARGET_LZCNT_P: New Macro.
10235         TARGET_TBM_P: New Macro.
10236         TARGET_POPCNT_P: New Macro.
10237         TARGET_SAHF_P: New Macro.
10238         TARGET_MOVBE_P: New Macro.
10239         TARGET_CRC32_P: New Macro.
10240         TARGET_AES_P: New Macro.
10241         TARGET_PCLMUL_P: New Macro.
10242         TARGET_CMPXCHG16B_P: New Macro.
10243         TARGET_FSGSBASE_P: New Macro.
10244         TARGET_RDRND_P: New Macro.
10245         TARGET_F16C_P: New Macro.
10246         TARGET_RTM_P: New Macro.
10247         TARGET_HLE_P: New Macro.
10248         TARGET_RDSEED_P: New Macro.
10249         TARGET_PRFCHW_P: New Macro.
10250         TARGET_ADX_P: New Macro.
10251         TARGET_FXSR_P: New Macro.
10252         TARGET_XSAVE_P: New Macro.
10253         TARGET_XSAVEOPT_P: New Macro.
10254         TARGET_LP64_P: New Macro.
10255         TARGET_X32_P: New Macro.
10256         TARGET_FPMATH_DEFAULT_P: New Macro.
10257         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10258         * config/i386/i386.c (ix86_option_override_internal): New parameters.
10259         opts and opts_set.
10260         Change ix86_tune_string to access opts->x_ix86_tune_string.
10261         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10262         Change ix86_arch_string to access opts->x_ix86_arch_string.
10263         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10264         Change ix86_pmode to access opts->x_ix86_pmode.
10265         Change ix86_abi to access opts->x_ix86_abi.
10266         Change ix86_cmodel to access opts->x_ix86_cmodel.
10267         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10268         Change ix86_isa_flags_explicit to access
10269         opts->x_ix86_isa_flags_explicit.
10270         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10271         Change ix86_regparm to access opts->x_ix86_regparm.
10272         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10273         Change ix86_preferred_stack_boundary_arg to access
10274         opts->x_ix86_preferred_stack_boundary_arg.
10275         Change ix86_force_align_arg_pointer to access
10276         opts->x_ix86_force_align_arg_pointer.
10277         Change ix86_incoming_stack_boundar_arg to access
10278         opts->x_ix86_incoming_stack_boundar_arg.
10279         Change ix86_fpmath to access opts->x_ix86_fpmath.
10280         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10281         Change ix86_recip_name to access opts->x_ix86_recip_name.
10282         Change ix86_stack_protector_guard to access
10283         opts->x_ix86_stack_protector_guard.
10284         Change ix86_tune_memcpy_strategy to access
10285         opts->x_ix86_tune_memcpy_strategy.
10286         Change ix86_tune_memset_strategy to access
10287         opts->x_ix86_tune_memset_strategy.
10288         Change global_options to access opts.
10289         Change global_options_set to access opts_set.
10290         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10291         Change TARGET_MMX to TARGET_MMX_P (opts->...).
10292         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10293         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10294         Change TARGET_SSE to TARGET_SSE_P (opts->...).
10295         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10296         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10297         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10298         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10299         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10300         Change TARGET_AVX to TARGET_AVX_P (opts->...).
10301         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10302         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10303         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10304         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10305         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10306         Change TARGET_FMA to TARGET_FMA_P (opts->...).
10307         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10308         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10309         Change TARGET_XOP to TARGET_XOP_P (opts->...).
10310         Change TARGET_LWP to TARGET_LWP_P (opts->...).
10311         Change TARGET_ABM to TARGET_ABM_P (opts->...).
10312         Change TARGET_BMI to TARGET_BMI_P (opts->...).
10313         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10314         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10315         Change TARGET_TBM to TARGET_TBM_P (opts->...).
10316         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10317         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10318         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10319         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10320         Change TARGET_AES to TARGET_AES_P (opts->...).
10321         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10322         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10323         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10324         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10325         Change TARGET_F16C to TARGET_F16C_P (opts->...).
10326         Change TARGET_RTM to TARGET_RTM_P (opts->...).
10327         Change TARGET_HLE to TARGET_HLE_P (opts->...).
10328         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10329         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10330         Change TARGET_ADX to TARGET_ADX_P (opts->...).
10331         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10332         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10333         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10334         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10335         Change TARGET_X32 to TARGET_X32_P (opts->...).
10336         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10337         Change TARGET_FLOAT_RETURNS_IN_80387 to
10338         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10339         (ix86_function_specific_save): New parameter. Use opts-> fields
10340         to replace global fields.
10341         (ix86_function_specific_restore): Ditto.
10342         (ix86_valid_target_attribute_inner_p): New parameters.
10343         Fix recursive call.
10344         Fix call to ix86_handle_option and set_option.
10345         (ix86_valid_target_attribute_tree): New parameters.
10346         Change global_options to access opts.
10347         Change global_options_set to access opts_set.
10348         Fix call to ix86_valid_target_attribute_inner_p.
10349         Change ix86_tune_string to access opts->x_ix86_tune_string.
10350         Change ix86_arch_string to access opts->x_ix86_arch_string.
10351         Change ix86_fpmath to access opts->x_ix86_fpmath
10352         Fix call to ix86_option_override_internal.
10353         Fix call to ix86_add_new_builtins.
10354         Fix calls to build_optimization_node and build_target_option_node.
10355         (ix86_valid_target_attribute_p): Remove access to global_options.
10356         Use new gcc_options structure func_options.
10357         Fix call to ix86_valid_target_attribute_tree.
10358         Fix call to  build_optimization_node.
10359         (get_builtin_code_for_version): Fix call to
10360         ix86_valid_target_attribute_tree.
10362 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
10364         * Makefile.in (PICFLAG): New.
10365         (enable_host_shared): New.
10366         (INTERNAL_CFLAGS): Use PICFLAG.
10367         (LIBIBERTY): Use pic build of libiberty.a if configured with
10368         --enable-host-shared.
10369         * configure.ac: Add --enable-host-shared, setting up new
10370         PICFLAG variable.
10371         * configure: Regenerate.
10372         * doc/install.texi (--enable-shared): Add note contrasting it with ...
10373         (--enable-host-shared): New option.
10375 2013-10-15  Richard Biener  <rguenther@suse.de>
10377         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10378         for built-in functions.
10380 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10382         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10383         (optimize_range_tests_1): New function,
10384         extracted from optimize_range_tests.
10385         (optimize_range_tests_xor): Similarly.
10386         (optimize_range_tests_diff): New function.
10387         (optimize_range_tests): Use optimize_range_tests_1.
10389 2013-10-15  Cong Hou  <congh@google.com>
10391         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10392         requirement of the reduction pattern so that one operand of the
10393         reduction operation can come from outside of the loop.
10395 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10397         * config/arm/neon-schedgen.ml: Remove.
10398         * config/arm/cortex-a9-neon.md: Remove comment regarding
10399         neon-schedgen.ml.
10401 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10403         * config/arm/types: Remove old neon types.
10405 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10407         * config/arm/cortex-a7.md
10408         (cortex_a7_neon_type): New.
10409         (cortex_a7_neon_mul): Update for new types.
10410         (cortex_a7_neon_mla): Likewise.
10411         (cortex_a7_neon): Likewise.
10413 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10415         * config/arm/cortex-a15-neon.md
10416         (cortex_a15_neon_type): New,
10418         (cortex_a15_neon_int_1): Remove.
10419         (cortex_a15_neon_int_2): Likewise.
10420         (cortex_a15_neon_int_3): Likewise.
10421         (cortex_a15_neon_int_4): Likewise.
10422         (cortex_a15_neon_int_5): Likewise.
10423         (cortex_a15_neon_vqneg_vqabs): Likewise.
10424         (cortex_a15_neon_vmov): Likewise.
10425         (cortex_a15_neon_vaba): Likewise.
10426         (cortex_a15_neon_vaba_qqq): Likewise.
10427         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10428         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10429         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10430         Likewise.
10431         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10432         (cortex_a15_neon_mla_qqq_8_16): Likewise.
10433         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10434         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10435         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10436         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10437         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10438         (cortex_a15_neon_shift_1): Likewise.
10439         (cortex_a15_neon_shift_2): Likewise.
10440         (cortex_a15_neon_shift_3): Likewise.
10441         (cortex_a15_neon_vshl_ddd): Likewise.
10442         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10443         (cortex_a15_neon_vsra_vrsra): Likewise.
10444         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10445         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10446         (cortex_a15_neon_bp_3cycle): Likewise.
10447         (cortex_a15_neon_ldm_2): Likewise.
10448         (cortex_a15_neon_stm_2): Likewise.
10449         (cortex_a15_neon_mcr): Likewise.
10450         (cortex_a15_neon_mrc): Likewise.
10451         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10452         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10453         (cortex_a15_neon_fp_vmul_ddd): Likewise.
10454         (cortex_a15_neon_fp_vmul_qqd): Likewise.
10455         (cortex_a15_neon_fp_vmla_ddd): Likewise.
10456         (cortex_a15_neon_fp_vmla_qqq): Likewise.
10457         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10458         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10459         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10460         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10461         (cortex_a15_neon_bp_simple): Likewise.
10462         (cortex_a15_neon_bp_2cycle): Likewise.
10463         (cortex_a15_neon_bp_3cycle): Likewise.
10464         (cortex_a15_neon_vld1_1_2_regs): Likewise.
10465         (cortex_a15_neon_vld1_3_4_regs): Likewise.
10466         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10467         (cortex_a15_neon_vld2_4_regs): Likewise.
10468         (cortex_a15_neon_vld3_vld4): Likewise.
10469         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10470         (cortex_a15_neon_vst1_3_4_regs): Likewise.
10471         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10472         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10473         (cortex_a15_neon_vst3_vst4): Rename to...
10474         (cortex_a15_neon_vst4): This, update for new attributes.
10475         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10476         (cortex_a15_neon_vld3_vld4_lane): Likewise.
10477         (cortex_a15_neon_vst1_vst2_lane): Likewise.
10478         (cortex_a15_neon_vst3_vst4_lane): Likewise.
10479         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10480         (cortex_a15_neon_ldm_2): Likewise.
10481         (cortex_a15_neon_stm_2): Likewise.
10482         (cortex_a15_neon_mcr): Likewise.
10483         (cortex_a15_neon_mcr_2_mcrr): Likewise.
10484         (cortex_a15_neon_mrc): Likewise.
10485         (cortex_a15_neon_mrrc): Likewise.
10487         (cortex_a15_neon_abd): New.
10488         (cortex_a15_neon_abd_q): Likewise.
10489         (cortex_a15_neon_aba): Likewise.
10490         (cortex_a15_neon_aba_q): Likewise.
10491         (cortex_a15_neon_acc): Likewise.
10492         (cortex_a15_neon_acc_q): Likewise.
10493         (cortex_a15_neon_arith_basic): Likewise.
10494         (cortex_a15_neon_arith_complex): Likewise.
10495         (cortex_a15_neon_multiply): Likewise.
10496         (cortex_a15_neon_multiply_q): Likewise.
10497         (cortex_a15_neon_mla): Likewise.
10498         (cortex_a15_neon_mla_q): Likewise.
10499         (cortex_a15_neon_sat_mla_long): Likewise.
10500         (cortex_a15_neon_shift_acc): Likewise.
10501         (cortex_a15_neon_shift_imm_basic): Likewise.
10502         (cortex_a15_neon_shift_imm_complex): Likewise.
10503         (cortex_a15_neon_shift_reg_basic): Likewise.
10504         (cortex_a15_neon_shift_reg_basic_q): Likewise.
10505         (cortex_a15_neon_shift_reg_complex): Likewise.
10506         (cortex_a15_neon_shift_reg_complex_q): Likewise.
10507         (cortex_a15_neon_fp_negabs): Likewise
10508         (cortex_a15_neon_fp_arith): Likewise
10509         (cortex_a15_neon_fp_arith_q): Likewise
10510         (cortex_a15_neon_fp_cvt_int): Likewise
10511         (cortex_a15_neon_fp_cvt_int_q): Likewise
10512         (cortex_a15_neon_fp_cvt_16): Likewise
10513         (cortex_a15_neon_fp_mul): Likewise
10514         (cortex_a15_neon_fp_mul_q): Likewise
10515         (cortex_a15_neon_fp_mla): Likewise
10516         (cortex_a15_neon_fp_mla_q): Likewise
10517         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10518         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10519         (cortex_a15_neon_bitops): Likewise.
10520         (cortex_a15_neon_bitops_q): Likewise.
10521         (cortex_a15_neon_from_gp): Likewise.
10522         (cortex_a15_neon_from_gp_q): Likewise.
10523         (cortex_a15_neon_tbl3_tbl4): Likewise.
10524         (cortex_a15_neon_zip_q): Likewise.
10525         (cortex_a15_neon_to_gp): Likewise.
10526         (cortex_a15_neon_load_a): Likewise.
10527         (cortex_a15_neon_load_b): Likewise.
10528         (cortex_a15_neon_load_c): Likewise.
10529         (cortex_a15_neon_load_d): Likewise.
10530         (cortex_a15_neon_load_e): Likewise.
10531         (cortex_a15_neon_load_f): Likewise.
10532         (cortex_a15_neon_store_a): Likewise.
10533         (cortex_a15_neon_store_b): Likewise.
10534         (cortex_a15_neon_store_c): Likewise.
10535         (cortex_a15_neon_store_d): Likewise.
10536         (cortex_a15_neon_store_e): Likewise.
10537         (cortex_a15_neon_store_f): Likewise.
10538         (cortex_a15_neon_store_g): Likewise.
10539         (cortex_a15_neon_store_h): Likewise.
10540         (cortex_a15_vfp_to_from_gp): Likewise.
10542 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10544         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10546         (cortex_a9_neon_vshl_ddd): Remove.
10547         (cortex_a9_neon_vst3_vst4): Likewise.
10548         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10550         (cortex_a9_neon_bit_ops_q): New.
10552         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10553         (cortex_a9_neon_int_2): Likewise.
10554         (cortex_a9_neon_int_3): Likewise.
10555         (cortex_a9_neon_int_4): Likewise.
10556         (cortex_a9_neon_int_5): Likewise.
10557         (cortex_a9_neon_vqneg_vqabs): Likewise.
10558         (cortex_a9_neon_vmov): Likewise.
10559         (cortex_a9_neon_vaba): Likewise.
10560         (cortex_a9_neon_vaba_qqq): Likewise.
10561         (cortex_a9_neon_shift_1): Likewise.
10562         (cortex_a9_neon_shift_2): Likewise.
10563         (cortex_a9_neon_shift_3): Likewise.
10564         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10565         (cortex_a9_neon_vsra_vrsra): Likewise.
10566         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10567         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10568         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10569         Likewise.
10570         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10571         (cortex_a9_neon_mla_qqq_8_16): Likewise.
10572         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10573         Likewise.
10574         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10575         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10576         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10577         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10578         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10579         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10580         (cortex_a9_neon_fp_vsum): Likewise.
10581         (cortex_a9_neon_fp_vmul_ddd): Likewise.
10582         (cortex_a9_neon_fp_vmul_qqd): Likewise.
10583         (cortex_a9_neon_fp_vmla_ddd): Likewise.
10584         (cortex_a9_neon_fp_vmla_qqq): Likewise.
10585         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10586         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10587         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10588         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10589         (cortex_a9_neon_bp_simple): Likewise.
10590         (cortex_a9_neon_bp_2cycle): Likewise.
10591         (cortex_a9_neon_bp_3cycle): Likewise.
10592         (cortex_a9_neon_ldr): Likewise.
10593         (cortex_a9_neon_str): Likewise.
10594         (cortex_a9_neon_vld1_1_2_regs): Likewise.
10595         (cortex_a9_neon_vld1_3_4_regs): Likewise.
10596         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10597         (cortex_a9_neon_vld2_4_regs): Likewise.
10598         (cortex_a9_neon_vld3_vld4): Likewise.
10599         (cortex_a9_neon_vld1_vld2_lane): Likewise.
10600         (cortex_a9_neon_vld3_vld4_lane): Likewise.
10601         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10602         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10603         (cortex_a9_neon_vst1_3_4_regs): Likewise.
10604         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10605         (cortex_a9_neon_vst1_vst2_lane): Likewise.
10606         (cortex_a9_neon_vst3_vst4_lane): Likewise.
10607         (cortex_a9_neon_mcr): Likewise.
10608         (cortex_a9_neon_mcr_2_mcrr): Likewise.
10609         (cortex_a9_neon_mrc): Likewise.
10610         (cortex_a9_neon_mrrc): Likewise.
10612 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10614         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10616         (cortex_a8_neon_vshl_ddd): Remove.
10617         (cortex_a8_neon_vst3_vst4): Likewise.
10618         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10620         (cortex_a8_neon_bit_ops_q): New.
10622         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10623         (cortex_a8_neon_int_2): Likewise..
10624         (cortex_a8_neon_int_3): Likewise.
10625         (cortex_a8_neon_int_5): Likewise.
10626         (cortex_a8_neon_vqneg_vqabs): Likewise.
10627         (cortex_a8_neon_int_4): Likewise.
10628         (cortex_a8_neon_vaba): Likewise.
10629         (cortex_a8_neon_vaba_qqq): Likewise.
10630         (cortex_a8_neon_shift_1): Likewise.
10631         (cortex_a8_neon_shift_2): Likewise.
10632         (cortex_a8_neon_shift_3): Likewise.
10633         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10634         (cortex_a8_neon_vsra_vrsra): Likewise.
10635         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10636         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10637         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10638         Likewise.
10639         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10640         (cortex_a8_neon_mla_qqq_8_16): Likewise.
10641         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10642         Likewise.
10643         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10644         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10645         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10646         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10647         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10648         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10649         (cortex_a8_neon_fp_vsum): Likewise.
10650         (cortex_a8_neon_fp_vmul_ddd): Likewise.
10651         (cortex_a8_neon_fp_vmul_qqd): Likewise.
10652         (cortex_a8_neon_fp_vmla_ddd): Likewise.
10653         (cortex_a8_neon_fp_vmla_qqq): Likewise.
10654         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10655         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10656         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10657         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10658         (cortex_a8_neon_bp_simple): Likewise.
10659         (cortex_a8_neon_bp_2cycle): Likewise.
10660         (cortex_a8_neon_bp_3cycle): Likewise.
10661         (cortex_a8_neon_ldr): Likewise.
10662         (cortex_a8_neon_str): Likewise.
10663         (cortex_a8_neon_vld1_1_2_regs): Likewise.
10664         (cortex_a8_neon_vld1_3_4_regs): Likewise.
10665         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10666         (cortex_a8_neon_vld2_4_regs): Likewise.
10667         (cortex_a8_neon_vld3_vld4): Likewise.
10668         (cortex_a8_neon_vld1_vld2_lane): Likewise.
10669         (cortex_a8_neon_vld3_vld4_lane): Likewise.
10670         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10671         (cortex_a8_neon_vst1_3_4_regs): Likewise.
10672         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10673         (cortex_a8_neon_vst1_vst2_lane): Likewise.
10674         (cortex_a8_neon_vst3_vst4_lane): Likewise.
10675         (cortex_a8_neon_mcr): Likewise.
10676         (cortex_a8_neon_mcr_2_mcrr): Likewise.
10677         (cortex_a8_neon_mrc): Likewise.
10678         (cortex_a8_neon_mrrc): Likewise.
10680 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10682         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10683         (fp): New.
10684         * config/aarch64/aarch64-simd.md (neon_type): Remove.
10685         (aarch64_simd_dup<mode>): Add "type" attribute.
10686         (aarch64_dup_lane<mode>): Likewise.
10687         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10688         (*aarch64_simd_mov<mode>): Likewise.
10689         (aarch64_simd_mov_from_<mode>low): Likewise.
10690         (aarch64_simd_mov_from_<mode>high): Likewise.
10691         (orn<mode>3): Likewise.
10692         (bic<mode>3): Likewise.
10693         (add<mode>3): Likewise.
10694         (sub<mode>3): Likewise.
10695         (mul<mode>3): Likewise.
10696         (*aarch64_mul3_elt<mode>): Likewise.
10697         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10698         (*aarch64_mul3_elt_to_128df): Likewise.
10699         (*aarch64_mul3_elt_to_64v2df): Likewise.
10700         (neg<mode>2): Likewise.
10701         (abs<mode>2): Likewise.
10702         (abd<mode>_3): Likewise.
10703         (aba<mode>_3): Likewise.
10704         (fabd<mode>_3): Likewise.
10705         (*fabd_scalar<mode>3): Likewise.
10706         (and<mode>3): Likewise.
10707         (ior<mode>3): Likewise.
10708         (xor<mode>3): Likewise.
10709         (one_cmpl<mode>2): Likewise.
10710         (aarch64_simd_vec_set<mode>): Likewise.
10711         (aarch64_simd_lshr<mode>): Likewise.
10712         (aarch64_simd_ashr<mode>): Likewise.
10713         (aarch64_simd_imm_shl<mode>): Likewise.
10714         (aarch64_simd_reg_sshl<mode): Likewise.
10715         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10716         (aarch64_simd_reg_shl<mode>_signed): Likewise.
10717         (aarch64_simd_vec_setv2di): Likewise.
10718         (aarch64_simd_vec_set<mode>): Likewise.
10719         (aarch64_mla<mode>): Likewise.
10720         (*aarch64_mla_elt<mode>): Likewise.
10721         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10722         (aarch64_mls<mode>): Likewise.
10723         (*aarch64_mls_elt<mode>): Likewise.
10724         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10725         (<su><maxmin><mode>3): Likewise.
10726         (move_lo_quad_<mode>): Likewise.
10727         (aarch64_simd_move_hi_quad_<mode>): Likewise.
10728         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10729         (vec_pack_trunc_<mode>): Likewise.
10730         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10731         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10732         (*aarch64_<su>mlal_lo<mode>): Likewise.
10733         (*aarch64_<su>mlal_hi<mode>): Likewise.
10734         (*aarch64_<su>mlsl_lo<mode>): Likewise.
10735         (*aarch64_<su>mlsl_hi<mode>): Likewise.
10736         (*aarch64_<su>mlal<mode>): Likewise.
10737         (*aarch64_<su>mlsl<mode>): Likewise.
10738         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10739         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10740         (add<mode>3): Likewise.
10741         (sub<mode>3): Likewise.
10742         (mul<mode>3): Likewise.
10743         (div<mode>3): Likewise.
10744         (neg<mode>2): Likewise.
10745         (abs<mode>2): Likewise.
10746         (fma<mode>4): Likewise.
10747         (*aarch64_fma4_elt<mode>): Likewise.
10748         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10749         (*aarch64_fma4_elt_to_128df): Likewise.
10750         (*aarch64_fma4_elt_to_64v2df): Likewise.
10751         (fnma<mode>4): Likewise.
10752         (*aarch64_fnma4_elt<mode>): Likewise.
10753         (*aarch64_fnma4_elt_<vswap_width_name><mode>
10754         (*aarch64_fnma4_elt_to_128df): Likewise.
10755         (*aarch64_fnma4_elt_to_64v2df): Likewise.
10756         (<frint_pattern><mode>2): Likewise.
10757         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10758         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10759         (vec_unpacks_lo_v4sf): Likewise.
10760         (aarch64_float_extend_lo_v2df): Likewise.
10761         (vec_unpacks_hi_v4sf): Likewise.
10762         (aarch64_float_truncate_lo_v2sf): Likewise.
10763         (aarch64_float_truncate_hi_v4sf): Likewise.
10764         (aarch64_vmls<mode>): Likewise.
10765         (<su><maxmin><mode>3): Likewise.
10766         (<maxmin_uns><mode>3): Likewise.
10767         (reduc_<sur>plus_<mode>): Likewise.
10768         (reduc_<sur>plus_v2di): Likewise.
10769         (reduc_<sur>plus_v2si): Likewise.
10770         (reduc_<sur>plus_<mode>): Likewise.
10771         (aarch64_addpv4sf): Likewise.
10772         (clz<mode>2): Likewise.
10773         (reduc_<maxmin_uns>_<mode>): Likewise.
10774         (reduc_<maxmin_uns>_v2di): Likewise.
10775         (reduc_<maxmin_uns>_v2si): Likewise.
10776         (reduc_<maxmin_uns>_<mode>): Likewise.
10777         (reduc_<maxmin_uns>_v4sf): Likewise.
10778         (aarch64_simd_bsl<mode>_internal): Likewise.
10779         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10780         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10781         (aarch64_get_lane<mode>): Likewise.
10782         (*aarch64_combinez<mode>): Likewise.
10783         (aarch64_combine<mode>): Likewise.
10784         (aarch64_simd_combine<mode>): Likewise.
10785         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10786         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10787         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10788         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10789         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10790         (aarch64_<sur>h<addsub><mode>): Likewise.
10791         (aarch64_<sur><addsub>hn<mode>): Likewise.
10792         (aarch64_<sur><addsub>hn2<mode>): Likewise.
10793         (aarch64_pmul<mode>): Likewise.
10794         (aarch64_<su_optab><optab><mode>): Likewise.
10795         (aarch64_<sur>qadd<mode>): Likewise.
10796         (aarch64_sqmovun<mode>): Likewise.
10797         (aarch64_<sur>qmovn<mode>): Likewise.
10798         (aarch64_s<optab><mode>): Likewise.
10799         (aarch64_sq<r>dmulh<mode>): Likewise.
10800         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10801         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10802         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10803         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10804         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10805         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10806         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10807         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10808         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10809         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10810         (aarch64_sqdmull<mode>): Likewise.
10811         (aarch64_sqdmull_lane<mode>_internal): Likewise.
10812         (aarch64_sqdmull_n<mode>): Likewise.
10813         (aarch64_sqdmull2<mode>_internal): Likewise.
10814         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10815         (aarch64_sqdmull2_n<mode>_internal): Likewise.
10816         (aarch64_<sur>shl<mode>): Likewise.
10817         (aarch64_<sur>q<r>shl<mode>
10818         (aarch64_<sur>shll_n<mode>): Likewise.
10819         (aarch64_<sur>shll2_n<mode>): Likewise.
10820         (aarch64_<sur>shr_n<mode>): Likewise.
10821         (aarch64_<sur>sra_n<mode>): Likewise.
10822         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10823         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10824         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10825         (aarch64_cm<optab><mode>): Likewise.
10826         (aarch64_cm<optab>di): Likewise.
10827         (aarch64_cm<optab><mode>): Likewise.
10828         (aarch64_cm<optab>di): Likewise.
10829         (aarch64_cmtst<mode>): Likewise.
10830         (aarch64_cmtstdi): Likewise.
10831         (aarch64_cm<optab><mode>): Likewise.
10832         (*aarch64_fac<optab><mode>): Likewise.
10833         (aarch64_addp<mode>): Likewise.
10834         (aarch64_addpdi): Likewise.
10835         (sqrt<mode>2): Likewise.
10836         (vec_load_lanesoi<mode>): Likewise.
10837         (vec_store_lanesoi<mode>): Likewise.
10838         (vec_load_lanesci<mode>): Likewise.
10839         (vec_store_lanesci<mode>): Likewise.
10840         (vec_load_lanesxi<mode>): Likewise.
10841         (vec_store_lanesxi<mode>): Likewise.
10842         (*aarch64_mov<mode>): Likewise.
10843         (aarch64_ld2<mode>_dreg): Likewise.
10844         (aarch64_ld2<mode>_dreg): Likewise.
10845         (aarch64_ld3<mode>_dreg): Likewise.
10846         (aarch64_ld3<mode>_dreg): Likewise.
10847         (aarch64_ld4<mode>_dreg): Likewise.
10848         (aarch64_ld4<mode>_dreg): Likewise.
10849         (aarch64_tbl1<mode>): Likewise.
10850         (aarch64_tbl2v16qi): Likewise.
10851         (aarch64_combinev16qi): Likewise.
10852         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10853         (aarch64_st2<mode>_dreg): Likewise.
10854         (aarch64_st2<mode>_dreg): Likewise.
10855         (aarch64_st3<mode>_dreg): Likewise.
10856         (aarch64_st3<mode>_dreg): Likewise.
10857         (aarch64_st4<mode>_dreg): Likewise.
10858         (aarch64_st4<mode>_dreg): Likewise.
10859         (*aarch64_simd_ld1r<mode>): Likewise.
10860         (aarch64_frecpe<mode>): Likewise.
10861         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10862         (aarch64_frecps<mode>): Likewise.
10864 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10866         * config/arm/iterators.md (V_elem_ch): New.
10867         (q): Likewise.
10868         (VQH_type): Likewise.
10869         * config/arm/arm.md (is_neon_type): New.
10870         (conds): Use is_neon_type.
10871         (anddi3_insn): Update type attribute.
10872         (xordi3_insn): Likewise.
10873         (one_cmpldi2): Likewise.
10874         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10875         * config/arm/neon.md (neon_mov): Update type attribute.
10876         (*movmisalign<mode>_neon_store): Likewise.
10877         (*movmisalign<mode>_neon_load): Likewise.
10878         (vec_set<mode>_internal): Likewise.
10879         (vec_set<mode>_internal): Likewise.
10880         (vec_setv2di_internal): Likewise.
10881         (vec_extract<mode>): Likewise.
10882         (vec_extract<mode>): Likewise.
10883         (vec_extractv2di): Likewise.
10884         (*add<mode>3_neon): Likewise.
10885         (adddi3_neon): Likewise.
10886         (*sub<mode>3_neon): Likewise.
10887         (subdi3_neon): Likewise.
10888         (fma<VCVTF:mode>4): Likewise.
10889         (fma<VCVTF:mode>4_intrinsic): Likewise.
10890         (*fmsub<VCVTF:mode>4): Likewise.
10891         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10892         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10893         (ior<mode>3): Likewise.
10894         (and<mode>3): Likewise.
10895         (orn<mode>3_neon): Likewise.
10896         (orndi3_neon): Likewise.
10897         (bic<mode>3_neon): Likewise.
10898         (bicdi3_neon): Likewise.
10899         (xor<mode>3): Likewise.
10900         (one_cmpl<mode>2): Likewise.
10901         (abs<mode>2): Likewise.
10902         (neg<mode>2): Likewise.
10903         (negdi2_neon): Likewise.
10904         (*umin<mode>3_neon): Likewise.
10905         (*umax<mode>3_neon): Likewise.
10906         (*smin<mode>3_neon): Likewise.
10907         (*smax<mode>3_neon): Likewise.
10908         (vashl<mode>3): Likewise.
10909         (vashr<mode>3_imm): Likewise.
10910         (vlshr<mode>3_imm): Likewise.
10911         (ashl<mode>3_signed): Likewise.
10912         (ashl<mode>3_unsigned): Likewise.
10913         (neon_load_count): Likewise.
10914         (ashldi3_neon_noclobber): Likewise.
10915         (ashldi3_neon): Likewise.
10916         (signed_shift_di3_neon): Likewise.
10917         (unsigned_shift_di3_neon): Likewise.
10918         (ashrdi3_neon_imm_noclobber): Likewise.
10919         (lshrdi3_neon_imm_noclobber): Likewise.
10920         (<shift>di3_neon): Likewise.
10921         (widen_ssum<mode>3): Likewise.
10922         (widen_usum<mode>3): Likewise.
10923         (quad_halves_<code>v4si): Likewise.
10924         (quad_halves_<code>v4sf): Likewise.
10925         (quad_halves_<code>v8hi): Likewise.
10926         (quad_halves_<code>v16qi): Likewise.
10927         (reduc_splus_v2di): Likewise.
10928         (neon_vpadd_internal<mode>): Likewise.
10929         (neon_vpsmin<mode>): Likewise.
10930         (neon_vpsmax<mode>): Likewise.
10931         (neon_vpumin<mode>): Likewise.
10932         (neon_vpumax<mode>): Likewise.
10933         (*ss_add<mode>_neon): Likewise.
10934         (*us_add<mode>_neon): Likewise.
10935         (*ss_sub<mode>_neon): Likewise.
10936         (*us_sub<mode>_neon): Likewise.
10937         (neon_vadd<mode>_unspec): Likewise.
10938         (neon_vaddl<mode>): Likewise.
10939         (neon_vaddw<mode>): Likewise.
10940         (neon_vhadd<mode>): Likewise.
10941         (neon_vqadd<mode>): Likewise.
10942         (neon_vaddhn<mode>): Likewise.
10943         (neon_vmul<mode>): Likewise.
10944         (neon_vfms<VCVTF:mode>): Likewise.
10945         (neon_vmlal<mode>): Likewise.
10946         (neon_vmls<mode>): Likewise.
10947         (neon_vmlsl<mode>): Likewise.
10948         (neon_vqdmulh<mode>): Likewise.
10949         (neon_vqdmlal<mode>): Likewise.
10950         (neon_vqdmlsl<mode>): Likewise.
10951         (neon_vmull<mode>): Likewise.
10952         (neon_vqdmull<mode>): Likewise.
10953         (neon_vsub<mode>_unspec): Likewise.
10954         (neon_vsubl<mode>): Likewise.
10955         (neon_vsubw<mode>): Likewise.
10956         (neon_vqsub<mode>): Likewise.
10957         (neon_vhsub<mode>): Likewise.
10958         (neon_vsubhn<mode>): Likewise.
10959         (neon_vceq<mode>): Likewise.
10960         (neon_vcge<mode>): Likewise.
10961         (neon_vcgeu<mode>): Likewise.
10962         (neon_vcgt<mode>): Likewise.
10963         (neon_vcgtu<mode>): Likewise.
10964         (neon_vcle<mode>): Likewise.
10965         (neon_vclt<mode>): Likewise.
10966         (neon_vcage<mode>): Likewise.
10967         (neon_vcagt<mode>): Likewise.
10968         (neon_vtst<mode>): Likewise.
10969         (neon_vabd<mode>): Likewise.
10970         (neon_vabdl<mode>): Likewise.
10971         (neon_vaba<mode>): Likewise.
10972         (neon_vabal<mode>): Likewise.
10973         (neon_vmax<mode>): Likewise.
10974         (neon_vmin<mode>): Likewise.
10975         (neon_vpaddl<mode>): Likewise.
10976         (neon_vpadal<mode>): Likewise.
10977         (neon_vpmax<mode>): Likewise.
10978         (neon_vpmin<mode>): Likewise.
10979         (neon_vrecps<mode>): Likewise.
10980         (neon_vrsqrts<mode>): Likewise.
10981         (neon_vqabs<mode>): Likewise.
10982         (neon_vqneg<mode>): Likewise.
10983         (neon_vcls<mode>): Likewise.
10984         (clz<mode>2): Likewise.
10985         (popcount<mode>2): Likewise.
10986         (neon_vrecpe<mode>): Likewise.
10987         (neon_vrsqrte<mode>): Likewise.
10988         (neon_vget_lane<mode>_sext_internal): Likewise.
10989         (neon_vget_lane<mode>_zext_internal): Likewise.
10990         (neon_vdup_n<mode>): Likewise.
10991         (neon_vdup_n<mode>): Likewise.
10992         (neon_vdup_nv2di): Likewise.
10993         (neon_vdup_lane<mode>_interal): Likewise.
10994         (*neon_vswp<mode>): Likewise.
10995         (neon_vcombine<mode>): Likewise.
10996         (float<mode><V_cvtto>2): Likewise.
10997         (floatuns<mode><V_cvtto>2): Likewise.
10998         (fix_trunc<mode><V_cvtto>2): Likewise.
10999         (fixuns_trunc<mode><V_cvtto>2
11000         (neon_vcvt<mode>): Likewise.
11001         (neon_vcvt<mode>): Likewise.
11002         (neon_vcvtv4sfv4hf): Likewise.
11003         (neon_vcvtv4hfv4sf): Likewise.
11004         (neon_vcvt_n<mode>): Likewise.
11005         (neon_vcvt_n<mode>): Likewise.
11006         (neon_vmovn<mode>): Likewise.
11007         (neon_vqmovn<mode>): Likewise.
11008         (neon_vqmovun<mode>): Likewise.
11009         (neon_vmovl<mode>): Likewise.
11010         (neon_vmul_lane<mode>): Likewise.
11011         (neon_vmul_lane<mode>): Likewise.
11012         (neon_vmull_lane<mode>): Likewise.
11013         (neon_vqdmull_lane<mode>): Likewise.
11014         (neon_vqdmulh_lane<mode>): Likewise.
11015         (neon_vqdmulh_lane<mode>): Likewise.
11016         (neon_vmla_lane<mode>): Likewise.
11017         (neon_vmla_lane<mode>): Likewise.
11018         (neon_vmlal_lane<mode>): Likewise.
11019         (neon_vqdmlal_lane<mode>): Likewise.
11020         (neon_vmls_lane<mode>): Likewise.
11021         (neon_vmls_lane<mode>): Likewise.
11022         (neon_vmlsl_lane<mode>): Likewise.
11023         (neon_vqdmlsl_lane<mode>): Likewise.
11024         (neon_vext<mode>): Likewise.
11025         (neon_vrev64<mode>): Likewise.
11026         (neon_vrev32<mode>): Likewise.
11027         (neon_vrev16<mode>): Likewise.
11028         (neon_vbsl<mode>_internal): Likewise.
11029         (neon_vshl<mode>): Likewise.
11030         (neon_vqshl<mode>): Likewise.
11031         (neon_vshr_n<mode>): Likewise.
11032         (neon_vshrn_n<mode>): Likewise.
11033         (neon_vqshrn_n<mode>): Likewise.
11034         (neon_vqshrun_n<mode>): Likewise.
11035         (neon_vshl_n<mode>): Likewise.
11036         (neon_vqshl_n<mode>): Likewise.
11037         (neon_vqshlu_n<mode>): Likewise.
11038         (neon_vshll_n<mode>): Likewise.
11039         (neon_vsra_n<mode>): Likewise.
11040         (neon_vsri_n<mode>): Likewise.
11041         (neon_vsli_n<mode>): Likewise.
11042         (neon_vtbl1v8qi): Likewise.
11043         (neon_vtbl2v8qi): Likewise.
11044         (neon_vtbl3v8qi): Likewise.
11045         (neon_vtbl4v8qi): Likewise.
11046         (neon_vtbl1v16qi): Likewise.
11047         (neon_vtbl2v16qi): Likewise.
11048         (neon_vcombinev16qi): Likewise.
11049         (neon_vtbx1v8qi): Likewise.
11050         (neon_vtbx2v8qi): Likewise.
11051         (neon_vtbx3v8qi): Likewise.
11052         (neon_vtbx4v8qi): Likewise.
11053         (*neon_vtrn<mode>_insn): Likewise.
11054         (*neon_vzip<mode>_insn): Likewise.
11055         (*neon_vuzp<mode>_insn): Likewise.
11056         (neon_vld1<mode>): Likewise.
11057         (neon_vld1_lane<mode>): Likewise.
11058         (neon_vld1_lane<mode>): Likewise.
11059         (neon_vld1_dup<mode>): Likewise.
11060         (neon_vld1_dup<mode>): Likewise.
11061         (neon_vld1_dupv2di): Likewise.
11062         (neon_vst1<mode>): Likewise.
11063         (neon_vst1_lane<mode>): Likewise.
11064         (neon_vst1_lane<mode>): Likewise.
11065         (neon_vld2<mode>): Likewise.
11066         (neon_vld2<mode>): Likewise.
11067         (neon_vld2_lane<mode>): Likewise.
11068         (neon_vld2_lane<mode>): Likewise.
11069         (neon_vld2_dup<mode>): Likewise.
11070         (neon_vst2<mode>): Likewise.
11071         (neon_vst2<mode>): Likewise.
11072         (neon_vst2_lane<mode>): Likewise.
11073         (neon_vst2_lane<mode>): Likewise.
11074         (neon_vld3<mode>): Likewise.
11075         (neon_vld3qa<mode>): Likewise.
11076         (neon_vld3qb<mode>): Likewise.
11077         (neon_vld3_lane<mode>): Likewise.
11078         (neon_vld3_lane<mode>): Likewise.
11079         (neon_vld3_dup<mode>): Likewise.
11080         (neon_vst3<mode>): Likewise.
11081         (neon_vst3qa<mode>): Likewise.
11082         (neon_vst3qb<mode>): Likewise.
11083         (neon_vst3_lane<mode>): Likewise.
11084         (neon_vst3_lane<mode>): Likewise.
11085         (neon_vld4<mode>): Likewise.
11086         (neon_vld4qa<mode>): Likewise.
11087         (neon_vld4qb<mode>): Likewise.
11088         (neon_vld4_lane<mode>): Likewise.
11089         (neon_vld4_lane<mode>): Likewise.
11090         (neon_vld4_dup<mode>): Likewise.
11091         (neon_vst4<mode>): Likewise.
11092         (neon_vst4qa<mode>): Likewise.
11093         (neon_vst4qb<mode>): Likewise.
11094         (neon_vst4_lane<mode>): Likewise.
11095         (neon_vst4_lane<mode>): Likewise.
11096         (neon_vec_unpack<US>_lo_<mode>): Likewise.
11097         (neon_vec_unpack<US>_hi_<mode>): Likewise.
11098         (neon_vec_<US>mult_lo_<mode>): Likewise.
11099         (neon_vec_<US>mult_hi_<mode>): Likewise.
11100         (neon_vec_<US>shiftl_<mode>): Likewise.
11101         (neon_unpack<US>_<mode>): Likewise.
11102         (neon_vec_<US>mult_<mode>): Likewise.
11103         (vec_pack_trunc_<mode>): Likewise.
11104         (neon_vec_pack_trunc_<mode>): Likewise.
11105         (neon_vabd<mode>_2): Likewise.
11106         (neon_vabd<mode>_3): Likewise.
11108 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
11110         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
11111         (load_pair): Update type attribute.
11112         (store_pair): Update type attribute.
11113         * config/aarch64/iterators.md (q): New.
11115 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
11117         * config/arm/types.md: Add new types for Neon insns.
11119 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11120             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11121             Sergey Lega  <sergey.s.lega@intel.com>
11122             Anna Tikhonova  <anna.tikhonova@intel.com>
11123             Ilya Tocar  <ilya.tocar@intel.com>
11124             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11125             Ilya Verbin  <ilya.verbin@intel.com>
11126             Kirill Yukhin  <kirill.yukhin@intel.com>
11127             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11129         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
11130         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
11131         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
11132         (rcp14<mode>): New.
11133         (srcp14<mode>): Ditto.
11134         (rsqrt14<mode>): Ditto.
11135         (rsqrt14<mode>): Ditto.
11136         (avx512f_vmscalef<mode>): Ditto.
11137         (avx512f_scalef<mode>): Ditto.
11138         (avx512f_getexp<mode>): Ditto.
11139         (avx512f_sgetexp<mode>): Ditto.
11140         (avx512f_fixupimm<mode>): Ditto.
11141         (avx512f_sfixupimm<mode>): Ditto.
11142         (avx512f_rndscale<mode>): Ditto.
11143         (*avx512er_exp2<mode>): Ditto.
11144         (*avx512er_rcp28<mode>): Ditto.
11145         (avx512er_rsqrt28<mode>): Ditto.
11146         (avx512f_getmant<mode>): Ditto.
11147         (avx512f_getmant<mode>): Ditto.
11148         (avx512f_rndscale<mode>): Fix formatting.
11150 2013-10-15  Martin Jambor  <mjambor@suse.cz>
11152         * ipa-utils.h (ipa_edge_within_scc): Declare.
11153         * ipa-cp.c (edge_within_scc): Moved...
11154         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
11156 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11157             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11158             Sergey Lega  <sergey.s.lega@intel.com>
11159             Anna Tikhonova  <anna.tikhonova@intel.com>
11160             Ilya Tocar  <ilya.tocar@intel.com>
11161             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11162             Ilya Verbin  <ilya.verbin@intel.com>
11163             Kirill Yukhin  <kirill.yukhin@intel.com>
11164             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11166         * config/i386/predicates.md (const_8_to_15_operand): New.
11167         (const_16_to_31_operand): Ditto.
11168         * config/i386/sse.md (V8FI): New.
11169         (V16FI): Ditto.
11170         (reduc_splus_v8df): Ditto.
11171         (reduc_splus_v16sf): Ditto.
11172         (avx512f_vextract<shuffletype>32x4_1): Ditto.
11173         (vec_extract_hi_<mode>): Ditto.
11174         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11175         (vec_set_lo_<mode>): Ditto.
11176         (vec_set_hi_<mode>): Ditto.
11177         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11178         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11179         (avx512f_pshufd_1): Ditto.
11180         (avx512f_broadcast<mode>): Ditto.
11181         (avx512f_broadcast<mode>): Ditto.
11182         (define_split): Split vec_extract_lo into move.
11183         (ssequartermode): Ditto.
11184         (ssedoublemode): Extened with wider modes.
11185         (vec_extract_lo_<mode>): Ditto.
11187 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11188             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11189             Sergey Lega  <sergey.s.lega@intel.com>
11190             Anna Tikhonova  <anna.tikhonova@intel.com>
11191             Ilya Tocar  <ilya.tocar@intel.com>
11192             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11193             Ilya Verbin  <ilya.verbin@intel.com>
11194             Kirill Yukhin  <kirill.yukhin@intel.com>
11195             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11197         * config/i386/predicates.md (register_or_constm1_operand): New.
11198         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11199         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11200         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11201         UNSPEC_SCATTER_PREFETCH
11202         (VI48_512): New.
11203         (avx512f_ucmp<mode>3): Ditto.
11204         (avx512f_vternlog<mode>): Ditto.
11205         (avx512f_align<mode>): Ditto.
11206         (<shift_insn><mode>3): Ditto.
11207         (avx512f_<rotate>v<mode>): Ditto.
11208         (avx512f_<rotate><mode>): Ditto.
11209         (avx512f_eq<mode>3): Ditto.
11210         (avx512f_eq<mode>3_1): Ditto.
11211         (avx512f_gt<mode>3): Ditto.
11212         (avx512f_testm<mode>3): Ditto.
11213         (avx512f_testnm<mode>3): Ditto.
11214         (avx512pf_gatherpf<mode>): Ditto.
11215         (*avx512pf_gatherpf<mode>_mask): Ditto.
11216         (*avx512pf_gatherpf<mode>): Ditto.
11217         (avx512pf_scatterpf<mode>): Ditto.
11218         (*avx512pf_scatterpf<mode>_mask): Ditto.
11219         (*avx512pf_scatterpf<mode>): Ditto.
11220         (avx512f_vec_dup_gpr<mode>): Ditto.
11221         (clz<mode>2): Ditto.
11222         (conflict<mode>): Ditto.
11223         (REDUC_SMINMAX_MODE): Extened with wider modes.
11224         (reduc_<code>_<mode>): Ditto.
11225         (vlshr<mode>3): Ditto.
11226         (vashl<mode>3): Ditto.
11228 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11229             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11230             Sergey Lega  <sergey.s.lega@intel.com>
11231             Anna Tikhonova  <anna.tikhonova@intel.com>
11232             Ilya Tocar  <ilya.tocar@intel.com>
11233             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11234             Ilya Verbin  <ilya.verbin@intel.com>
11235             Kirill Yukhin  <kirill.yukhin@intel.com>
11236             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11238         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11239         UNSPEC_SCATTER.
11240         (VI48F_512): New.
11241         (avx512fmaskmode): Ditto.
11242         (bcstscalarsuff): Ditto.
11243         (avx512f_blendm<mode>): Ditto.
11244         (cmp_imm_predicate): Ditto.
11245         (avx512f_cmp<mode>3): Ditto.
11246         (avx512f_vec_dup<mode>): Ditto.
11247         (avx512f_vec_dup_mem<mode>): Ditto.
11248         (avx512f_vpermi2var<mode>3): Ditto.
11249         (avx512f_vpermt2var<mode>3): Ditto.
11250         (vec_init<mode>): Ditto.
11251         (avx512f_gathersi<mode>): Ditto.
11252         (*avx512f_gathersi<mode>): Ditto.
11253         (*avx512f_gathersi<mode>_2): Ditto.
11254         (avx512f_gatherdi<mode>): Ditto.
11255         (*avx512f_gatherdi<mode>): Ditto.
11256         (*avx512f_gatherdi<mode>_2): Ditto.
11257         (avx512f_scattersi<mode>): Ditto.
11258         (*avx512f_scattersi<mode>): Ditto.
11259         (avx512f_scatterdi<mode>): Ditto.
11260         (*avx512f_scatterdi<mode>): Ditto.
11261         (sseintprefix): Extened with wider modes.
11262         (VEC_GATHER_IDXSI): Ditto.
11263         (VEC_GATHER_IDXDI): Ditto.
11264         (VEC_GATHER_SRCDI): Ditto.
11266 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11267             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11269         * config/arm/t-aprofile: New file.
11270         * config.gcc: Handle --with-multilib-list option.
11272 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
11274         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11275         the input for r2.
11277 2013-10-15  Richard Biener  <rguenther@suse.de>
11279         * tree-loop-distribution.c (build_empty_rdg): Inline into
11280         single user.
11281         (rdg_flag_vertex): Inline into single user.
11282         (rdg_flag_vertex_and_dependent): Likewise.
11283         (build_rdg_partition_for_vertex): Remove processed bitmap.
11284         (rdg_build_partitions): Simplify.
11286 2013-10-15  Richard Biener  <rguenther@suse.de>
11288         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11289         Restructure forwarding through conversions and copies to
11290         avoid performing copy-propagation the wrong way.  Adjust
11291         recursion invocations.
11292         (forward_propagate_addr_expr): Add argument stating if we
11293         are recursing from a single-use.
11294         (ssa_forward_propagate_and_combine): Adjust.
11296 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
11298         * dumpfile.h (gcc::dump_manager): New class, to hold state
11299         relating to dumpfile management.
11300         (get_dump_file_name): Remove in favor of method of dump_manager.
11301         (dump_initialized_p): Likewise.
11302         (dump_start): Likewise.
11303         (dump_finish): Likewise.
11304         (dump_switch_p): Likewise.
11305         (dump_register): Likewise.
11306         (get_dump_file_info): Likewise.
11307         * context.c (gcc::context::context): Construct the dump_manager
11308         instance.
11309         * context.h (gcc::context::get_dumps): New.
11310         (gcc::context::m_dumps): New.
11311         * coverage.c (coverage_init): Port to dump_manager API.
11312         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11313         (extra_dump_files_in_use): Likewise.
11314         (extra_dump_files_alloced): Likewise.
11315         (gcc::dump_manager::dump_manager): New.
11316         (dump_register): Convert to...
11317         (gcc::dump_manager::dump_register): ...method, replacing
11318         function-static next_dump with m_next_dump field.
11319         (get_dump_file_info): Convert to...
11320         (gcc::dump_manager::get_dump_file_info): ...method.
11321         (get_dump_file_name): Convert to...
11322         (gcc::dump_manager::get_dump_file_name): ...method.
11323         (dump_start): Convert to...
11324         (gcc::dump_manager::dump_start): ...method.
11325         (dump_finish): Convert to...
11326         (gcc::dump_manager::dump_finish): ...method.
11327         (dump_begin): Replace body with...
11328         (gcc::dump_manager::dump_begin): ...new method.
11329         (dump_phase_enabled_p): Convert to...
11330         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11331         (dump_phase_enabled_p): Convert to...
11332         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11333         (dump_initialized_p):  Convert to...
11334         (gcc::dump_manager::dump_initialized_p): ...method.
11335         (dump_flag_name): Replace body with...
11336         (gcc::dump_manager::dump_flag_name): ...new method.
11337         (dump_enable_all): Convert to...
11338         (gcc::dump_manager::dump_enable_all): ...new method.
11339         (opt_info_enable_passes): Convert to...
11340         (gcc::dump_manager::opt_info_enable_passes): ...new method.
11341         (dump_switch_p_1): Convert to...
11342         (gcc::dump_manager::dump_switch_p_1): ...new method.
11343         (dump_switch_p):  Convert to...
11344         (gcc::dump_manager::dump_switch_p): ...new method.
11345         (opt_info_switch_p): Port to dump_manager API.
11346         (enable_rtl_dump_file): Likewise.
11347         * opts-global.c (handle_common_deferred_options): Port to new
11348         dump_manager API.
11349         * passes.c (pass_manager::finish_optimization_passes): Likewise.
11350         (pass_manager::register_one_dump_file): Likewise.
11351         (pass_manager::register_pass): Likewise.
11352         (pass_init_dump_file): Likewise.
11353         (pass_fini_dump_file): Likewise.
11354         * statistics.c (statistics_early_init): Likewise.
11356 2013-10-14  Richard Biener  <rguenther@suse.de>
11358         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11359         iterative_hash_canonical_type, gimple_canonical_type_hash,
11360         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11361         gimple_register_canonical_type, print_gimple_types_stats,
11362         free_gimple_type_tables): Move to lto/lto.c
11363         (gt-gimple.h): Do not include.
11364         * gimple.h (gimple_register_canonical_type,
11365         print_gimple_types_stats, free_gimple_type_tables): Remove.
11366         * Makefile.in (GTFILES): Remove gimple.c.
11368 2013-10-14  Travis Snoozy  <quandary@remstate.com>
11370         PR target/58716
11371         * config/msp430/msp430.c (msp430_option_override): Correct thinko
11372         scanning for msp430x targets.
11374 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
11376         PR bootstrap/58509
11377         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11378         (registers_ok_for_ldd_peep): Move around.
11379         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11380         * config/sparc/sparc.md (widening peepholes): Use it.
11382 2013-10-14  Richard Biener  <rguenther@suse.de>
11384         PR middle-end/58712
11385         PR middle-end/55358
11386         * gimple.c (iterative_hash_canonical_type): Make sure to
11387         record the hash into the correct hashtable slot.
11389 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
11391         PR rtl-optimization/58662
11392         * combine.c (try_combine): Take into account death nodes on I2 when
11393         splitting a PARALLEL of two independent SETs.  Fix dump message.
11395 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
11397         PR target/51244
11398         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11399         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11400         extra_objs.
11401         * config/sh/t-sh (sh_treg_combine.o): New entry.
11402         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11403         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11404         (register_sh_passes): New function.  Register sh_treg_combine pass.
11405         (sh_option_override): Invoke it.
11406         (sh_canonicalize_comparison): Handle op0_preserve_value.
11407         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11408         opportunities.  Canonicalize branch condition.
11409         (nott): Allow only if pseudos can be created for non-SH2A.
11411 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
11413         PR target/58690
11414         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11415         (ix86_expand_movmem): Replace copy_addr_to_reg with
11416         ix86_copy_addr_to_reg.
11417         (ix86_expand_setmem): Likewise.
11419 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
11421         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11422         provided by ix86_fp_compare_mode instead of CCFPUmode.
11424 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
11426         * config/aarch64/arm_neon.h
11427         (vtbx<1,3>_<psu>8): Fix register constriants.
11429 2013-10-11  Jeff Law  <law@redhat.com>
11431         PR tree-optimization/58640
11432         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11433         threading paths that cross over two loop entry points.
11435 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11437         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11438         handle vector float as well.
11439         (*vsx_le_perm_load_v4si): Likewise.
11440         (*vsx_le_perm_store_v2di): Likewise.
11441         (*vsx_le_perm_store_v4si): Likewise.
11443 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11445         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11446         directly to circumvent subtract from splat{31} workaround.
11447         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11448         prototype.
11449         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11450         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11451         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11452         (altivec_vperm_<mode>): Convert to define_insn_and_split to
11453         separate big and little endian logic.
11454         (*altivec_vperm_<mode>_internal): New define_insn.
11455         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11456         separate big and little endian logic.
11457         (*altivec_vperm_<mode>_uns_internal): New define_insn.
11458         (vec_permv16qi): Add little endian logic.
11460 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
11462         * doc/extend.texi (returns_nonnull): Remove arguments.
11464 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11465             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11466             Sergey Lega  <sergey.s.lega@intel.com>
11467             Anna Tikhonova  <anna.tikhonova@intel.com>
11468             Ilya Tocar  <ilya.tocar@intel.com>
11469             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11470             Ilya Verbin  <ilya.verbin@intel.com>
11471             Kirill Yukhin  <kirill.yukhin@intel.com>
11472             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11474         * config/i386/sse.md (VI48F_256_512): New.
11475         (avx2_permvar<mode>): Change to ...
11476         (<avx2_avx512f>_permvar<mode>): This.
11478 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11479             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11480             Sergey Lega  <sergey.s.lega@intel.com>
11481             Anna Tikhonova  <anna.tikhonova@intel.com>
11482             Ilya Tocar  <ilya.tocar@intel.com>
11483             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11484             Ilya Verbin  <ilya.verbin@intel.com>
11485             Kirill Yukhin  <kirill.yukhin@intel.com>
11486             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11488         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11489         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11490         * config/i386/sse.md (VI4_AVX): New.
11491         (sf2simodelower): Ditto.
11492         (sse2_cvtps2dq): Change to ...
11493         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11495 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11496             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11497             Sergey Lega  <sergey.s.lega@intel.com>
11498             Anna Tikhonova  <anna.tikhonova@intel.com>
11499             Ilya Tocar  <ilya.tocar@intel.com>
11500             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11501             Ilya Verbin  <ilya.verbin@intel.com>
11502             Kirill Yukhin  <kirill.yukhin@intel.com>
11503             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11505         * config/i386/sse.md (V_512): New.
11506         (VI_512): Ditto.
11507         (vcond<V_512:mode><VF_512:mode>): Ditto.
11508         (vcond<V_512:mode><VI_512:mode>): Ditto.
11509         (vcondu<V_512:mode><VI_512:mode>): Ditto.
11511 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11512             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11513             Sergey Lega  <sergey.s.lega@intel.com>
11514             Anna Tikhonova  <anna.tikhonova@intel.com>
11515             Ilya Tocar  <ilya.tocar@intel.com>
11516             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11517             Ilya Verbin  <ilya.verbin@intel.com>
11518             Kirill Yukhin  <kirill.yukhin@intel.com>
11519             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11521         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11522         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11523         (FMAMODE): Ditto.
11524         (fma<mode>4): Removed condition.
11525         (fms<mode>4): Ditto.
11526         (fnma<mode>4): Ditto.
11527         (fnms<mode>4): Ditto.
11528         (fma4i_fmadd_<mode>): Ditto.
11529         (*fma_fmadd_<mode>): Ditto.
11530         (*fma_fmsub_<mode>): Ditto.
11531         (*fma_fnmadd_<mode>): Ditto.
11532         (*fma_fnmsub_<mode>): Ditto.
11533         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11534         (*fma_fmaddsub_<mode>): Ditto.
11535         (*fma_fmsubadd_<mode>): Ditto.
11536         (*fmai_fmadd_<mode>): Ditto.
11537         (*fmai_fmsub_<mode>): Ditto.
11538         (*fmai_fnmadd_<mode>): Ditto.
11539         (*fmai_fnmsub_<mode>): Ditto.
11541 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11542             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11543             Sergey Lega  <sergey.s.lega@intel.com>
11544             Anna Tikhonova  <anna.tikhonova@intel.com>
11545             Ilya Tocar  <ilya.tocar@intel.com>
11546             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11547             Ilya Verbin  <ilya.verbin@intel.com>
11548             Kirill Yukhin  <kirill.yukhin@intel.com>
11549             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11551         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11552         (VI124_256): Changed to ...
11553         (VI124_256_48_512): This.
11554         (ssepackmode): Extended with wider modes.
11555         (<code><mode>3): Changed iterator.
11556         (*avx2_<code><mode>3): Ditto.
11557         (vec_pack_trunc_<mode>): Ditto.
11559 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11560             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11561             Sergey Lega  <sergey.s.lega@intel.com>
11562             Anna Tikhonova  <anna.tikhonova@intel.com>
11563             Ilya Tocar  <ilya.tocar@intel.com>
11564             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11565             Ilya Verbin  <ilya.verbin@intel.com>
11566             Kirill Yukhin  <kirill.yukhin@intel.com>
11567             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11569         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11570         (VI8F_256_512): Ditto.
11571         (abs<mode>2): Changed iterator.
11572         (avx2_perm<mode>): Changed to ...
11573         (<avx2_avx512f>_perm<mode>): This.
11574         (avx2_perm<mode>_1): Changed to ...
11575         (<avx2_avx512f>_perm<mode>_1): This.
11577 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11578             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11579             Sergey Lega  <sergey.s.lega@intel.com>
11580             Anna Tikhonova  <anna.tikhonova@intel.com>
11581             Ilya Tocar  <ilya.tocar@intel.com>
11582             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11583             Ilya Verbin  <ilya.verbin@intel.com>
11584             Kirill Yukhin  <kirill.yukhin@intel.com>
11585             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11587         * config/i386/sse.md (VI48_AVX512F): New.
11588         (VI48_AVX2): Changed to ...
11589         (VI48_AVX2_48_AVX512F): This.
11590         (avx2_ashrv<mode>): Changed to ...
11591         (<avx2_avx512f>_ashrv<mode>): This.
11592         (avx2_<shift_insn>v<mode>): Changed to ...
11593         (<avx2_avx512f>_<shift_insn>v<mode>): This.
11595 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11596             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11597             Sergey Lega  <sergey.s.lega@intel.com>
11598             Anna Tikhonova  <anna.tikhonova@intel.com>
11599             Ilya Tocar  <ilya.tocar@intel.com>
11600             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11601             Ilya Verbin  <ilya.verbin@intel.com>
11602             Kirill Yukhin  <kirill.yukhin@intel.com>
11603             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11605         * config/i386/sse.md (VI4_AVX512F): New.
11606         (VI8_AVX2_AVX512F): Ditto.
11607         (mul<mode>3): Extended with wider modes.
11608         (*<sse4_1_avx2>_mul<mode>3): Ditto.
11609         (mul<mode>3): Ditto.
11610         (vec_widen_<s>mult_odd_<mode>): Ditto.
11612 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11613             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11614             Sergey Lega  <sergey.s.lega@intel.com>
11615             Anna Tikhonova  <anna.tikhonova@intel.com>
11616             Ilya Tocar  <ilya.tocar@intel.com>
11617             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11618             Ilya Verbin  <ilya.verbin@intel.com>
11619             Kirill Yukhin  <kirill.yukhin@intel.com>
11620             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11622         * config/i386/sse.md (VI2_AVX512F): New.
11623         (VI124_AVX512F): Ditto.
11624         (sseunpackmode): Extended with wider modes.
11625         (sseunpackfltmode): Ditto.
11626         (vec_unpacks_float_hi_<mode>): Ditto.
11627         (vec_unpacks_float_lo_<mode>): Ditto.
11628         (vec_unpacku_float_hi_<mode>): Ditto.
11629         (vec_unpacku_float_lo_<mode>): Ditto.
11630         (vec_unpacks_lo_<mode>): Ditto.
11631         (vec_unpacks_hi_<mode>): Ditto.
11632         (vec_unpacku_lo_<mode>): Ditto.
11633         (vec_unpacku_hi_<mode>): Ditto.
11635 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11636             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11637             Sergey Lega  <sergey.s.lega@intel.com>
11638             Anna Tikhonova  <anna.tikhonova@intel.com>
11639             Ilya Tocar  <ilya.tocar@intel.com>
11640             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11641             Ilya Verbin  <ilya.verbin@intel.com>
11642             Kirill Yukhin  <kirill.yukhin@intel.com>
11643             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11645         * config/i386/i386.md (multdiv): New.
11646         (multdiv_mnemonic): Ditto.
11647         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11648         (<sse>_vm<multdiv_mnemonic><mode>3): This.
11649         (<sse>_vmdiv<mode>3): Removed.
11651 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11652             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11653             Sergey Lega  <sergey.s.lega@intel.com>
11654             Anna Tikhonova  <anna.tikhonova@intel.com>
11655             Ilya Tocar  <ilya.tocar@intel.com>
11656             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11657             Ilya Verbin  <ilya.verbin@intel.com>
11658             Kirill Yukhin  <kirill.yukhin@intel.com>
11659             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11661         * config/i386/sse.md (V): Extended with wider modes.
11662         (VF2): Ditto.
11663         (ssehalfvecmode): Ditto.
11664         (i128): Ditto.
11665         (ssepackfltmode): Ditto.
11666         (avx_vec_concat<mode>): Ditto.
11667         (V_256_512): New iterator.
11668         (VF2_512_256): Ditto.
11669         (si2dfmode): New attribute.
11670         (si2dfmodelower): Ditto.
11671         (sf2dfmode): Ditto.
11672         (concat_tg_mode): Ditto.
11673         (floatv4siv4df2): Changed to ...
11674         (float<si2dfmodelower><mode>2): This.
11675         (avx_cvtps2pd256): Changed to ...
11676         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11677         (vec_pack_trunc_v4df): Changed to ...
11678         (vec_pack_trunc_<mode>): This.
11679         (avx_vpermil<mode>): Changed to ...
11680         (<sse2_avx_avx512f>_vpermil<mode>): This.
11681         (<fixsuffix>fix_truncv8dfv8si2): New.
11682         (vec_pack_sfix_trunc_v8df): Ditto.
11683         (avx512f_rndscale<mode>): Ditto.
11684         (avx512f_roundpd512): Ditto.
11685         (vec_pack_ufix_trunc_<mode>): Updated iterator.
11687 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11688             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11689             Sergey Lega  <sergey.s.lega@intel.com>
11690             Anna Tikhonova  <anna.tikhonova@intel.com>
11691             Ilya Tocar  <ilya.tocar@intel.com>
11692             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11693             Ilya Verbin  <ilya.verbin@intel.com>
11694             Kirill Yukhin  <kirill.yukhin@intel.com>
11695             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11697         * config/i386/i386.md (any_fix): New iterator.
11698         (fixsuffix): New attribute.
11699         * config/i386/sse.md (VF1): Extened with wider modes.
11700         (VI): Ditto.
11701         (VI_AVX2): Ditto.
11702         (VI8): Ditto.
11703         (sseintvecmodelower): Ditto.
11704         (ssescalarmode): Ditto.
11705         (ssescalarnum): Ditto.
11706         (VF1_128_256): New.
11707         (ssexmmmode): Ditto.
11708         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11709         (<sse>_rcp<mode>2): Change iterator.
11710         (rsqrt<mode>2): Ditto.
11711         (<sse>_rsqrt<mode>2): Ditto.
11712         (avx2_vec_dup<mode>): Ditto.
11713         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11714         (round<mode>2_sfix): Ditto.
11715         (avx2_pbroadcast<mode>): Ditto.
11716         (*andnot<mode>3): Handle XI mode.
11717         (*<code><mode>3): Ditto.
11718         (AVXTOSSEMODE): Removed.
11719         (avx_vpermil<mode>): Changed to ...
11720         (<sse2_avx_avx512f>_vpermil<mode>): This.
11722 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11723             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11724             Sergey Lega  <sergey.s.lega@intel.com>
11725             Anna Tikhonova  <anna.tikhonova@intel.com>
11726             Ilya Tocar  <ilya.tocar@intel.com>
11727             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11728             Ilya Verbin  <ilya.verbin@intel.com>
11729             Kirill Yukhin  <kirill.yukhin@intel.com>
11730             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11732         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11733         (<sse>_comi): Ditto.
11734         (<sse>_ucomi): Ditto.
11735         (sse_cvtss2siq_2): Ditto.
11736         (sse2_cvtsd2si): Ditto.
11737         (sse2_cvtsd2siq): Ditto.
11738         (sse2_cvttsd2si): Ditto.
11739         (sse2_cvttsd2siq): Ditto.
11740         (<shift_insn><mode>3): Ditto.
11741         (sse2_cvtsi2sdq): Update constraint and prefix.
11742         (sse_cvtsi2ss): Update prefix.
11743         (sse_cvtsi2ssq): Ditto.
11745 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11747         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11748         ignore internal calls.
11750 2013-10-11  Richard Biener  <rguenther@suse.de>
11752         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11753         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
11754         TREE_OVERFLOW is set.
11756 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
11758         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11760         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11761         * gimple.h: Likewise.
11763         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11765         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11766         macros.
11768         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11770         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11771         * configure: Regenerate.
11773 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11775         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11776         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11777         formatting fixes, use pp_colon instead of pp_character (..., ':'),
11778         similarly pp_right_paren.
11779         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11780         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11781         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11782         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11783         clauses.
11784         (omp_declare_simd_clauses_equal,
11785         omp_remove_redundant_declare_simd_attrs): New functions.
11786         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11787         (walk_tree_1): Handle new OpenMP 4.0 clauses.
11788         * tree.h (OMP_LOOP_CHECK): Define.
11789         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11790         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11791         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11792         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11793         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11794         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11795         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11796         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11797         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11798         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11799         OMP_CLAUSE_SIMDLEN_EXPR): Define.
11800         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11801         (omp_remove_redundant_declare_simd_attrs): New prototype.
11802         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11803         GIMPLE_OMP_TEAMS): New codes.
11804         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11805         * omp-low.c (struct omp_context): Add cancel_label and cancellable
11806         fields.
11807         (target_nesting_level): New variable.
11808         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11809         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
11810         for collapse > 1 static schedule unless ordered.
11811         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
11812         (determine_parallel_type): Adjust get_ws_args_for caller.
11813         (install_var_field): Handle mask & 4 for double indirection.
11814         (scan_sharing_clauses): Ignore shared clause on teams construct.
11815         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11816         (create_omp_child_function): If inside target or declare target
11817         constructs, set "omp declare target" attribute on the child function.
11818         (find_combined_for): New function.
11819         (scan_omp_parallel): Handle combined loops.
11820         (scan_omp_target, scan_omp_teams): New functions.
11821         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11822         restrictions and set ctx->cancellable for cancellable constructs.
11823         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11824         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
11825         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11826         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11827         (omp_clause_aligned_alignment): New function.
11828         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11829         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
11830         on teams constructs.  Handle user defined reductions and new
11831         OpenMP 4.0 clauses.
11832         (lower_reduction_clauses): Don't set placeholder to address of ref
11833         if it has already the right type.
11834         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11835         (expand_parallel_call): Use the new non-_start suffixed builtins,
11836         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11837         and GOMP_parallel_end after the call.
11838         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11839         (expand_omp_for_init_counts): Handle combined loops.
11840         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11841         loops.
11842         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
11843         end of cancellable loops.
11844         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11845         Likewise.  Handle collapse > 1 loops.
11846         (expand_omp_simd): Handle combined loops.
11847         (expand_omp_for): Add inner_stmt argument, adjust callers of
11848         expand_omp_for* functions, use expand_omp_for_static*chunk even
11849         for collapse > 1 unless ordered.
11850         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11851         of cancellable sections.
11852         (expand_omp_single): Remove need_barrier variable, just rely on
11853         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
11854         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11855         (expand_omp_atomic_load, expand_omp_atomic_store,
11856         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11857         (expand_omp_target): New function.
11858         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
11859         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11860         (build_omp_regions_1): Immediately close region for
11861         GF_OMP_TARGET_KIND_UPDATE.
11862         (maybe_add_implicit_barrier_cancel): New function.
11863         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
11864         cancellation.
11865         (lower_omp_single): Likewise.  Add clobber after the barrier.
11866         (lower_omp_taskgroup): New function.
11867         (lower_omp_for): Handle combined loops.  Adjust
11868         lower_rec_input_clauses caller.  Handle cancellation.
11869         (lower_depend_clauses): New function.
11870         (lower_omp_taskreg): Lower depend clauses.  Adjust
11871         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
11872         cancellation.
11873         (lower_omp_target, lower_omp_teams): New functions.
11874         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
11875         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11876         and GOMP_cancellation_point calls.
11877         (lower_omp): Fold stmts inside of target region.
11878         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11879         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11880         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11881         (BT_FN_VOID_OMPFN_PTR_UINT,
11882         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11883         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11884         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11885         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11886         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11887         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11888         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11889         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11890         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11891         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11892         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11893         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11894         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11895         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
11896         BUILT_IN_GOMP_PARALLEL_END.
11897         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11898         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11899         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11900         GF_OMP_FOR_KIND_DISTRIBUTE.
11901         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11902         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11903         (dump_gimple_omp_return): Print lhs if it has any.
11904         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11905         gimple_omp_atomic_seq_cst_p.
11906         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11907         and GIMPLE_OMP_TEAMS.
11908         * langhooks.c (lhd_omp_mappable_type): New function.
11909         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
11910         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
11911         hook.
11912         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
11913         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
11914         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
11915         (struct gimplify_omp_ctx): Add combined_loop field.
11916         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
11917         on stmts inside of target region.
11918         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11919         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11920         ORT_TARGET and ORT_TARGET_DATA.
11921         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11922         Handle GOVD_MAP.
11923         (omp_notice_threadprivate_variable): Complain about threadprivate
11924         variables in target region.
11925         (omp_notice_variable): Complain about vars with non-mappable type
11926         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11927         (omp_check_private): Ignore ORT_TARGET* regions.
11928         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11929         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11930         (find_combined_omp_for): New function.
11931         (gimplify_omp_for): Handle gimplification of combined loops.
11932         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11933         OMP_TEAMS.
11934         (gimplify_omp_target_update): New function.
11935         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11936         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11937         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11938         (gimplify_body): If fndecl has "omp declare target" attribute, add
11939         implicit ORT_TARGET context around it.
11940         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11941         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11942         * tree-nested.c (convert_nonlocal_reference_stmt,
11943         convert_local_reference_stmt, convert_gimple_call): Handle
11944         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11945         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11946         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11947         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11948         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11949         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11950         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11951         BUILT_IN_GOMP_LOOP_END_CANCEL,
11952         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11953         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11954         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11955         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11956         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11957         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11958         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11959         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11960         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11961         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11962         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11963         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11964         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11965         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11966         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11967         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11968         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11969         gimple_build_omp_teams): New functions.
11970         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11971         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
11972         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11973         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11974         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11975         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11976         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11977         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11978         GF_OMP_ATOMIC_SEQ_CST): New.
11979         (gimple_build_omp_taskgroup, gimple_build_omp_target,
11980         gimple_build_omp_teams): New prototypes.
11981         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11982         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11983         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11984         GIMPLE_OMP_SINGLE as end of range.
11985         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11986         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11987         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11988         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11989         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11990         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11991         gimple_omp_target_kind, gimple_omp_target_set_kind,
11992         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11993         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11994         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11995         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11996         gimple_omp_teams_set_clauses): New inlines.
11997         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11998         and GIMPLE_OMP_TASKGROUP.
11999         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
12000         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
12001         enum omp_clause_proc_bind_kind): New.
12002         (union omp_clause_subcode): Add depend_kind, map_kind and
12003         proc_bind_kind fields.
12004         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
12005         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12006         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
12007         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
12008         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12010 2013-10-10  Teresa Johnson  <tejohnson@google.com>
12012         * predict.c (tree_estimate_probability): Add new parameter
12013         for estimate_bb_frequencies.
12014         (estimate_bb_frequencies): Add new parameter to force estimation.
12015         (rebuild_frequencies): When max frequency in function is small,
12016         recompute counts from frequencies.
12017         * predict.h (estimate_bb_frequencies): New parameter.
12019 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
12021         * ipa-inline.c (ipa_inline): Fix leak of "order" when
12022         optimizations are disabled.
12024 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
12026         * coverage.c (coverage_finish): Fix leak of da_file_name.
12028 2013-10-10  Jan Hubicka  <jh@suse.cz>
12030         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
12031         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
12032         Bobcat and generic.
12034 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
12036         PR middle-end/58670
12037         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
12038         if any labels are in FALLTHRU_BB, use a special label emitted
12039         immediately after the asm goto insn rather than label_rtx
12040         of the LABEL_DECL.
12041         (expand_asm_stmt): Adjust caller.
12042         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
12043         edge if the last insn in predecessor is a jump with single successor,
12044         but it isn't simplejump_p.
12046 2013-10-10  Richard Biener  <rguenther@suse.de>
12048         PR tree-optimization/58656
12049         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
12051 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
12053         * gimplify.c: Include expr.h and tm_p.h for targets with special
12054         va-arg padding requirements.
12056 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
12058         * tree-flow.h: Move some prototypes to gimple.h.
12059         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
12060         * gimple.h: Relocate some prototypes from tree-flow.h
12061         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
12062         Move to gimplify.c.
12063         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
12064         (build_va_arg_indirect_ref): Relocate and make static.
12065         (std_gimplify_va_arg_expr): Relocate here.
12066         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
12067         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
12069 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12071         * doc/md.texi: Document the mnemonic attribute.
12073 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12075         PR target/57377
12076         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
12077         (set_attr_alternative x ...) when searching for user defined
12078         mnemonic attribute.
12080 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
12082         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
12084 2013-10-09  Easwaran Raman <eraman@google.com>
12086         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
12087         * cfgexpand.c (defer_stack_allocation): ...use here
12088         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
12090 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12092         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
12093         (operand_equal_for_value_replacement): New function, extracted from
12094         value_replacement and enhanced to catch more cases.
12095         (value_replacement): Use operand_equal_for_value_replacement.
12097 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12099         * loop-doloop.c (doloop_modify, doloop_optimize): Use
12100         get_max_loop_iterations.
12102 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12104         * config/arm/aarch-common.c (arm_early_load_addr_dep):
12105         Place comment above function.
12107 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12109         * tree-flow.h: Remove all remaining prototypes, enums and structs that
12110         are not related to tree-cfg.c.
12111         * tree-ssa-address.h: New file.  Relocate prototypes.
12112         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
12113         (addr_for_mem_ref): New.  Combine call to get_address_description and
12114         return addr_for_mem_ref.
12115         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
12116         * tree-ssa-live.h: Adjust prototypes.
12117         * passes.c: Include tree-ssa-live.h.
12118         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
12119         * graphite.c (graphite_transform_loops): Make static.
12120         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12121         make_pass_graphite, pass_data_graphite_transforms,
12122         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
12123         * ipa-pure-const.c (warn_function_noreturn): Make static.
12124         (execute_warn_function_noreturn, gate_warn_function_noreturn,
12125         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12126         Relocate from tree-cfg.c
12127         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
12128         static.
12129         (execute_warn_function_noreturn, gate_warn_function_noreturn,
12130         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12131         Move to ipa-pure-const.c.
12132         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
12133         Relocate from tree-optimize.c.
12134         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
12135         make_pass_fixup_cfg): Move to tree-cfg.c.
12136         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
12137         Relocate some prototypes.
12138         * tree-data-ref.h (tree_check_data_deps) Add prototype.
12139         * tree-dump.c (dump_function_to_file): Remove prototype.
12140         Add tree-flow.h to the include file.
12141         * tree-dump.h: Remove prototype.
12142         * tree-parloops.h: New File.  Add prototypes.
12143         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12144         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
12145         from tree-ssa-loop.c.
12146         * tree-predcom.c (run_tree_predictive_commoning,
12147         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12148         Relocate here from tree-ssa-loop.c.
12149         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12150         ssa_name_values.release ().
12151         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
12152         (ssa_name_values): Relocate from tree-flow.h.
12153         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12154         * tree-ssa-loop.c (run_tree_predictive_commoning,
12155         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12156         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12157         make_pass_graphite, pass_data_graphite_transforms,
12158         make_pass_graphite_transforms, gate_tree_parallelize_loops,
12159         tree_parallelize_loops, pass_data_parallelize_loops,
12160         make_pass_parallelize_loops): Move to other files.
12161         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12162         moved here.
12163         * tree.h: Remove prototypes from tree-address.c.
12165 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12167         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12168         (struct int_tree_map): Move to tree-hasher.h
12169         (SCALE, LABEL, PERCENT): Move to gimple.h
12170         * tree-flow-inline.h: Delete.  Move functions to other files.
12171         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12172         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12173         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12174         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12175         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12176         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12177         * tree-hasher.h: Don't include tree-flow.h.
12178         (struct int_tree_map): Relocate from tree-flow.h.
12179         * tree-sra.c (contains_view_convert_expr_p): Relocate from
12180         tree-flow-inline.h and make static.
12181         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12182         tree-flow-inline.h.
12183         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12184         tree-flow-inline.h and make static.
12185         * tree.h (is_global_var, may_be_aliased): Relocate from
12186         tree-flow-inline.h.
12187         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12188         * value-prof.c: No longer include tree-flow-inline.h.
12189         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12191 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12193         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
12194         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12195         (enum move_pos): Move to tree-ssa-loop-im.h
12196         * cfgloop.h: Move some prototypes.
12197         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12198         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12199         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
12200         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12201         (loop_containing_stmt): Relocate from tree-flow-inline.h.
12202         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12203         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12204         (enum move_pos): Relocate here.
12205         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12206         tree-ssa-loop.c.
12207         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12208         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12209         make_pass_lim): Relocate here from tree-ssa-loop.c.
12210         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12211         tree-ssa-loop.c.
12212         (loop_edge_to_cancel, unloop_loops): Make static.
12213         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12214         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12215         (tree_complete_unroll, gate_tree_complete_unroll,
12216         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12217         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12218         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12219         * tree-ssa-loop-ivopts.c: Remove local prototypes.
12220         (stmt_invariant_in_loop_p): Remove unused function.
12221         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
12222         * tree-ssa-loop-manip.h: New file.  Add prototypes.
12223         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12224         (gcov_type_to_double_int): Move to cfgloop.h.
12225         (double_int_cmp, bound_index,
12226         estimate_numbers_of_iterations_loop): Make static.
12227         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12228         (max_loop_iterations): Factor out get_max_loop_iterations.
12229         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12230         cfgloop.c.
12231         * tree-ssa-loop-niter.h: New file.  Add prototypes.
12232         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12233         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12234         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12235         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12236         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12237         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12238         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12239         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12240         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12241         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12242         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12243         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12244         pass_data_complete_unroll, make_pass_complete_unroll,
12245         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12246         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12247         tree-ssa-loop-ivcanon.c.
12248         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12249         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12250         tree-ssa-loop-prefetch.c.
12251         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12252         tree-ssa-loop-im.c.
12253         (get_lsm_tmp_name): Relocate and add suffix parameter.
12254         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12255         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12256         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12257         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12258         (get_estimated_loop_iterations): Factor out accessor from
12259         estimated_loop_iterations in tree-ssa-loop-niter.c.
12260         (get_max_loop_iterations): Factor out accessor from
12261         _max_loop_iterations in tree-ssa-niter.c.
12262         * loop-unroll.c (decide_unroll_constant_iterations,
12263         decide_unroll_runtime_iterations, decide_peel_simple,
12264         decide_unroll_stupid): Use new get_* accessors.
12266 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
12268         PR tree-optimization/20318
12269         * doc/extend.texi (returns_nonnull): New function attribute.
12270         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12271         attribute.
12272         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12273         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12275 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
12277         PR middle-end/58570
12278         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12279         false if both components are bitfields.
12281 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12283         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12284         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12285         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12286         * config/aarch64/aarch64.h
12287         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12288         * config/aarch64/aarch64-simd-builtins.def
12289         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12291 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12293         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12295 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12297         * config/aarch64/arm_neon.h (vdiv_f64): Added.
12299 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12301         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12302         (vneg_f64): New intrinsic.
12303         (vneg_s8): Asm replaced with C.
12304         (vneg_s16): Likewise.
12305         (vneg_s32): Likewise.
12306         (vneg_s64): New intrinsic.
12307         (vnegq_f32): Asm replaced with C.
12308         (vnegq_f64): Likewise.
12309         (vnegq_s8): Likewise.
12310         (vnegq_s16): Likewise.
12311         (vnegq_s32): Likewise.
12312         (vnegq_s64): Likewise.
12314 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
12316         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12318 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12320         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12321         packed stack special handling.
12322         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12323         back to fixed stack slots for FPRs saved due to stdarg.
12325 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12327         * config/s390/s390.c (s390_frame_info): Restructure function.
12329 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12331         * config/s390/s390.c (struct s390_frame_layout): New field
12332         gpr_save_slots.
12333         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12334         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12335         regs_ever_clobbered to char*.
12336         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12337         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
12338         (s390_register_info): Enable FPR save slots.  Move/Copy some
12339         functionality into ...
12340         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12341         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12342         function.
12343         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
12344         not imply a stack frame.
12345         (s390_init_frame_layout): Remove variable clobbered_regs.
12346         (s390_update_register_info): Remove function.
12347         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12348         cannot be used for register renaming.
12349         (s390_hard_regno_scratch_ok): New function.
12350         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12351         (s390_initial_elimination_offset): Change offset calculation of
12352         the return address pointer.
12353         (save_gprs): Deal with only r6 being saved from the call-saved regs.
12354         (restore_gprs): Set frame related flag.
12355         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12356         (s390_emit_prologue): Call s390_register_info instead of
12357         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
12358         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12359         (s390_optimize_prologue): Call s390_optimize_register_info.
12360         Try to remove also FPR slot save/restore INSNs.  Remove frame
12361         related flags from restore INSNs.
12363 2013-10-08  DJ Delorie  <dj@redhat.com>
12365         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12366         (movhi): Likewise.
12368         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12369         avoid conflict with the MI use of %c.
12370         * config/rl78/rl78-real.md: change %c to %C throughout.
12371         * config/rl78/rl78-virt.md: Likewise.
12373 2013-10-08  Jan Hubicka  <jh@suse.cz>
12375         * config/i386/i386.c (ix86_option_override_internal): Switch
12376         to SSE math for -ffast-math when target ISA supports SSE2.
12378 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
12380         * tree-flow.h: Remove some prototypes.
12381         * tree.h: Remove some protypes, add a couple.
12382         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12383         using_eh_for_cleanups_p): Add interface routines for front ends.
12384         * tree-eh.h: New file.  Add protoptyes.
12385         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12386         (add_stmt_to_eh_lp_fn): Make static.
12387         (lower_try_finally): Use new using_eh_for_cleanups_p.
12388         * emit-rtl.c: Include tree-eh.h.
12389         * gimple.h: Include tree-eh.h.
12391 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
12393         PR tree-optimization/58480
12394         * tree-vrp.c (infer_nonnull_range): New function.
12395         (infer_value_range): Call infer_nonnull_range.
12397 2013-10-08  Dehao Chen  <dehao@google.com>
12399         PR tree-optimization/58619
12400         * tree-inline.c (copy_phis_for_bb): Combine location data
12401         only if non-null.
12403 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12405         PR target/58423
12406         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12407         RTX_FRAME_RELATED_P on INSN.
12409 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12411         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12412         (altivec_expand_vec_perm_const): Call it.
12414 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12416         * config/rs6000/vector.md (mov<mode>): Emit permuted move
12417         sequences for LE VSX loads and stores at expand time.
12418         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12419         prototype.
12420         * config/rs6000/rs6000.c (rs6000_const_vec): New.
12421         (rs6000_gen_le_vsx_permute): New.
12422         (rs6000_gen_le_vsx_load): New.
12423         (rs6000_gen_le_vsx_store): New.
12424         (rs6000_gen_le_vsx_move): New.
12425         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12426         (*vsx_le_perm_load_v4si): New.
12427         (*vsx_le_perm_load_v8hi): New.
12428         (*vsx_le_perm_load_v16qi): New.
12429         (*vsx_le_perm_store_v2di): New.
12430         (*vsx_le_perm_store_v4si): New.
12431         (*vsx_le_perm_store_v8hi): New.
12432         (*vsx_le_perm_store_v16qi): New.
12433         (*vsx_xxpermdi2_le_<mode>): New.
12434         (*vsx_xxpermdi4_le_<mode>): New.
12435         (*vsx_xxpermdi8_le_V8HI): New.
12436         (*vsx_xxpermdi16_le_V16QI): New.
12437         (*vsx_lxvd2x2_le_<mode>): New.
12438         (*vsx_lxvd2x4_le_<mode>): New.
12439         (*vsx_lxvd2x8_le_V8HI): New.
12440         (*vsx_lxvd2x16_le_V16QI): New.
12441         (*vsx_stxvd2x2_le_<mode>): New.
12442         (*vsx_stxvd2x4_le_<mode>): New.
12443         (*vsx_stxvd2x8_le_V8HI): New.
12444         (*vsx_stxvd2x16_le_V16QI): New.
12446 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
12448         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12450 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12452         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12453         loop to work also for 31bit ABI.
12454         Save the stack pointer for frame_size > 0.
12456 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12458         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12459         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12460         constraint letters from expanders.
12461         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12462         retry count to general_operand.
12463         ("tabort"): Give operand 0 a mode.
12464         ("tabort_1"): Add mode and constraint letter for operand 0.
12465         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12467 2013-10-04  Jeff Law  <law@redhat.com>
12469         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12471         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12472         out of ...
12473         (thread_across_edge): Here.  Call it.
12475 2013-10-04  Cary Coutant  <ccoutant@google.com>
12477         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12478         discarding a location list expression (or a piece of one).
12480 2013-10-03  Jan Hubicka  <jh@suse.cz>
12482         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12483         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
12484         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12486 2013-10-03  Jan Hubicka  <jh@suse.cz>
12488         * config/i386/i386.c (ix86_option_override_internal): Do not enable
12489         accumulate-outgoing-args when producing unwind info.
12491 2013-10-03  Wei Mi  <wmi@google.com>
12493         * lra-constraints.c (insert_move_for_subreg): New function
12494         extracted from simplify_operand_subreg.
12495         (simplify_operand_subreg): Add reload for paradoxical subreg.
12497 2013-10-03  Rong Xu  <xur@google.com>
12499         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12500         the candidate of builtin_expect such that we should fix the
12501         size/time estimation.
12502         (estimate_function_body_sizes): Do the acutally size/time fix-up
12503         for builtin_expect.
12505 2013-10-03  Rong Xu  <xur@google.com>
12507         * predict.c (tree_predict_by_opcode): Get the probability
12508         for builtin_expect from param builtin_expect_probability.
12509         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12510         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12511         * doc/invoke.texi: Add documentation for builtin-expect-probability.
12513 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
12515         PR c++/19476
12516         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12517         * calls.c (alloca_call_p): Use get_callee_fndecl.
12518         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12519         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12520         Likewise.
12521         (vrp_visit_stmt): Remove duplicated code.
12523 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12525         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12526         ceildf2, btruncdf2, instead of vsx_* name.
12528         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12529         iterators to only do V2DF and V4SF here.  Move the DF code to
12530         rs6000.md where it is combined with SF mode.  Replace <VSv> with
12531         just 'v' since only vector operations are handled with these insns
12532         after moving the DF support to rs6000.md.
12533         (vsx_sub<mode>3): Likewise.
12534         (vsx_mul<mode>3): Likewise.
12535         (vsx_div<mode>3): Likewise.
12536         (vsx_fre<mode>2): Likewise.
12537         (vsx_neg<mode>2): Likewise.
12538         (vsx_abs<mode>2): Likewise.
12539         (vsx_nabs<mode>2): Likewise.
12540         (vsx_smax<mode>3): Likewise.
12541         (vsx_smin<mode>3): Likewise.
12542         (vsx_sqrt<mode>2): Likewise.
12543         (vsx_rsqrte<mode>2): Likewise.
12544         (vsx_fms<mode>4): Likewise.
12545         (vsx_nfma<mode>4): Likewise.
12546         (vsx_copysign<mode>3): Likewise.
12547         (vsx_btrunc<mode>2): Likewise.
12548         (vsx_floor<mode>2): Likewise.
12549         (vsx_ceil<mode>2): Likewise.
12550         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12551         (vsx_sminsf3): Likewise.
12552         (vsx_fmadf4): Likewise.
12553         (vsx_fmsdf4): Likewise.
12554         (vsx_nfmadf4): Likewise.
12555         (vsx_nfmsdf4): Likewise.
12556         (vsx_cmpdf_internal1): Likewise.
12558         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12559         simpler to select whether a target has SPE or traditional floating
12560         point support in iterators.
12561         (TARGET_DF_SPE): Likewise.
12562         (TARGET_SF_FPR): Likewise.
12563         (TARGET_DF_FPR): Likewise.
12564         (TARGET_SF_INSN): Macros to say whether floating point support
12565         exists for a given operation for expanders.
12566         (TARGET_DF_INSN): Likewise.
12568         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12569         combining of SF/DF mode operations, using both traditional and VSX
12570         registers.
12571         (Fvsx): Likewise.
12572         (Ff): Likewise.
12573         (Fv): Likewise.
12574         (Fs): Likewise.
12575         (Ffre): Likewise.
12576         (FFRE): Likewise.
12577         (abs<mode>2): Combine SF/DF modes using traditional floating point
12578         instructions.  Add support for using the upper DF registers with
12579         VSX support, and SF registers with power8-vector support.  Update
12580         expanders for operations supported by both the SPE and traditional
12581         floating point units.
12582         (abs<mode>2_fpr): Likewise.
12583         (nabs<mode>2): Likewise.
12584         (nabs<mode>2_fpr): Likewise.
12585         (neg<mode>2): Likewise.
12586         (neg<mode>2_fpr): Likewise.
12587         (add<mode>3): Likewise.
12588         (add<mode>3_fpr): Likewise.
12589         (sub<mode>3): Likewise.
12590         (sub<mode>3_fpr): Likewise.
12591         (mul<mode>3): Likewise.
12592         (mul<mode>3_fpr): Likewise.
12593         (div<mode>3): Likewise.
12594         (div<mode>3_fpr): Likewise.
12595         (sqrt<mode>3): Likewise.
12596         (sqrt<mode>3_fpr): Likewise.
12597         (fre<Fs>): Likewise.
12598         (rsqrt<mode>2): Likewise.
12599         (cmp<mode>_fpr): Likewise.
12600         (smax<mode>3): Likewise.
12601         (smin<mode>3): Likewise.
12602         (smax<mode>3_vsx): Likewise.
12603         (smin<mode>3_vsx): Likewise.
12604         (negsf2): Delete SF operations that are merged with DF.
12605         (abssf2): Likewise.
12606         (addsf3): Likewise.
12607         (subsf3): Likewise.
12608         (mulsf3): Likewise.
12609         (divsf3): Likewise.
12610         (fres): Likewise.
12611         (fmasf4_fpr): Likewise.
12612         (fmssf4_fpr): Likewise.
12613         (nfmasf4_fpr): Likewise.
12614         (nfmssf4_fpr): Likewise.
12615         (sqrtsf2): Likewise.
12616         (rsqrtsf_internal1): Likewise.
12617         (smaxsf3): Likewise.
12618         (sminsf3): Likewise.
12619         (cmpsf_internal1): Likewise.
12620         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12621         (negdf2): Delete DF operations that are merged with SF.
12622         (absdf2): Likewise.
12623         (nabsdf2): Likewise.
12624         (adddf3): Likewise.
12625         (subdf3): Likewise.
12626         (muldf3): Likewise.
12627         (divdf3): Likewise.
12628         (fred): Likewise.
12629         (rsqrtdf_internal1): Likewise.
12630         (fmadf4_fpr): Likewise.
12631         (fmsdf4_fpr): Likewise.
12632         (nfmadf4_fpr): Likewise.
12633         (nfmsdf4_fpr): Likewise.
12634         (sqrtdf2): Likewise.
12635         (smaxdf3): Likewise.
12636         (smindf3): Likewise.
12637         (cmpdf_internal1): Likewise.
12638         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12639         (btrunc<mode>2): Delete separate expander, and combine with the
12640         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
12641         (btrunc<mode>2_fpr): Likewise.
12642         (ceil<mode>2): Likewise.
12643         (ceil<mode>2_fpr): Likewise.
12644         (floor<mode>2): Likewise.
12645         (floor<mode>2_fpr): Likewise.
12646         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12647         Add support for using the upper registers with VSX and
12648         power8-vector.  Move insns to be closer to the define_expands. On
12649         VSX systems, prefer the traditional form of FMA over the VSX
12650         version, since the traditional form allows the target not to
12651         overlap with the inputs.
12652         (fms<mode>4_fpr): Likewise.
12653         (nfma<mode>4_fpr): Likewise.
12654         (nfms<mode>4_fpr): Likewise.
12656 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12657             Richard Earnshaw  <richard.earnshaw@arm.com>
12659         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12660         (struct mult_cost_table): Likewise.
12661         (struct mem_cost_table): Likewise.
12662         (struct fp_cost_table): Likewise.
12663         (struct vector_cost_table): Likewise.
12664         (cpu_cost_table): Likewise.
12665         * config/arm/arm.opt (mold-rts-costs): New option.
12666         (mnew-generic-costs): Likewise.
12667         * config/arm/arm.c (generic_extra_costs): New table.
12668         (cortexa15_extra_costs): Likewise.
12669         (arm_slowmul_tune): Use NULL as new costs.
12670         (arm_fastmul_tune): Likewise.
12671         (arm_strongarm_tune): Likewise.
12672         (arm_xscale_tune): Likewise.
12673         (arm_9e_tune): Likewise.
12674         (arm_v6t2_tune): Likewise.
12675         (arm_cortex_a5_tune): Likewise.
12676         (arm_cortex_a9_tune): Likewise.
12677         (arm_v6m_tune): Likewise.
12678         (arm_fa726te_tune): Likewise.
12679         (arm_cortex_a15_tune): Use cortex15_extra_costs.
12680         (arm_cortex_tune): Use generict_extra_costs.
12681         (shifter_op_p): New function.
12682         (arm_unspec_cost): Likewise.
12683         (LIBCALL_COST): Define.
12684         (arm_new_rtx_costs): New function.
12685         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12686         table is available. Use old costs otherwise unless mnew-generic-costs
12687         is specified.
12688         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12689         (cpu_cost_table): Declare.
12691 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12693         PR target/58460
12694         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12695         (*subs_mul_imm_<mode>)
12696         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12697         (*sub_<shift>_<mode>)
12698         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12699         Remove k constraint.
12701 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
12703         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12704         code.
12705         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12707 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12709         * predict.c (probably_never_executed): New function.
12710         (probably_never_executed_bb_p): Invoke probably_never_executed.
12711         (probably_never_executed_edge_p): Ditto.
12712         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12713         Treat profile insanities conservatively.
12715 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
12717         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12719 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
12721         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12722         use it.  Use smaller increase for scratch.  Don't increase reject
12723         for early clobber scratch.
12724         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12725         setting eliminated regs except setting fp from hfp.
12726         (lra_eliminate): Check lra_insn_recog_data on NULL.
12728 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12730         PR target/58587
12731         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12732         setting -mvsx-timode by default until the underlying problem is fixed.
12733         (RS6000_CPU, power7 defaults): Likewise.
12735 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12737         * config/x-linux (host-linux.o): Remove header dependencies.
12738         Use $(COMPILE) and $(POSTCOMPILE).
12739         * config/t-linux-android (linux-android.o): Ditto.
12741 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12743         * Makefile.in (expmed.o-warn): Remove.
12745 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12747         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12748         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12750 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12752         * dojump.c (do_jump_1): Divide probability between
12753         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12755 2013-10-02  Tom Tromey  <tromey@redhat.com>
12757         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12759 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12761         * tree-flow.h: Remove some prototypes.
12762         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12763         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12764         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12765         mark_virtual_phi_result_for_renaming): Relocate here.
12766         * tree-into-ssa.h: Add prototypes.
12767         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12768         single_pred_before_succ_order.
12769         (blocks_in_phiopt_order): Rename and move to cfganal.c.
12770         (nonfreeing_call_p) Move to gimple.c.
12771         * cfganal.c (single_pred_before_succ_order): Move and renamed from
12772         tree-ssa-phiopt.c.
12773         * basic-block.h (single_pred_before_succ_order): Add prototype.
12774         * gimple.c (nonfreeing_call_p): Relocate here.
12775         * gimple.h: Add prototype.
12776         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12777         * tree-ssa-dom.h: New file.  Relocate prototypes here.
12778         * tree-ssa.h: Include tree-ssa-dom.h.
12780 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12782         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12783         Use $(COMPILE) and $(POSTCOMPILE).
12785         * config/alpha/x-alpha (driver-alpha.o): Ditto.
12787 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12789         * tree-flow.h: Remove some prototypes.
12790         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12791         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12792         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12793         propagate_tree_value*): Move from here to...
12794         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12795         propagate_tree_value*): Relocate here.
12796         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12797         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12798         * gimple-fold.c: Remove gimple-fold.h from include list.
12799         * tree-vrp.c: Remove gimple-fold.h from include list.
12800         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12801         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12802         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12803         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12804         * sese.c: Add tree-ssa-propagate.h to include list.
12806 2013-10-02  Richard Biener  <rguenther@suse.de>
12808         * tree-loop-distribution.c: Include tree-vectorizer.h for
12809         find_loop_location.
12810         (enum partition_kind): Remove PKIND_REDUCTION.
12811         (struct partition_s): Remove has_writes member, add reduction_p member.
12812         (partition_alloc): Adjust.
12813         (partition_builtin_p): Likewise.
12814         (partition_has_writes): Remove.
12815         (partition_reduction_p): New function.
12816         (partition_merge_into): Likewise.
12817         (generate_code_for_partition): Commonize builtin partition
12818         handling tail.
12819         (rdg_cannot_recompute_vertex_p): Remove.
12820         (already_processed_vertex_p): Likewise.
12821         (rdg_flag_vertex): Do not set has_writes.
12822         (classify_partition): Adjust.
12823         (rdg_build_partitions): Do not set has_writes, treat all
12824         partitions as useful.
12825         (distribute_loop): Record number of library calls generated.  Adjust.
12826         (tree_loop_distribution): Report number of loops and library
12827         calls generated as opt-info.
12829 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12831         * tree-flow.h: Include new .h files.  Move prototypes.
12832         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
12833         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
12834         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12835         * tree-pretty-print.h: Add prototypes from tree-flow.h.
12836         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
12837         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12838         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12839         * tree.h (get_ref_base_and_extent): Move prototype out.
12840         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12841         tree-dfa.h.
12842         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
12843         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12844         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12845         * tree-scalar-evolution.c: Include tree.h.
12846         * sese.c: Include tree.h.
12847         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12848         * dwarf2out.c: Include tree-dfa.h.
12849         * tree-chrec.c: Include tree.h.
12850         * tree-data-ref.c: Include tree.h.
12852 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
12854         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12855         Fix whitespace.
12857 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12859         * config/t-sol2 (sol2-c.o): Remove header dependencies.
12860         Use $(COMPILE) and $(POSTCOMPILE).
12861         (sol2-cxx.o): Likewise.
12862         (sol2-stubs.o): Likewise.
12863         (sol2.o): Likewise.
12864         * config/x-solaris (host-solaris.o): Likewise.
12866         * config/sparc/t-sparc (sparc.o): Remove.
12867         (sparc-c.o): Remove header dependencies.
12868         Use $(COMPILE) and $(POSTCOMPILE).
12869         * config/sparc/x-sparc: Likewise.
12871 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
12873         * config/arc/arc-opts.h: Add 2013 to Copyright years.
12874         * config/arc/arc700.md: Likewise.
12875         * config/arc/arc-modes.def: Likewise.
12876         * config/arc/arc-simd.h: Likewise.
12877         * config/arc/t-arc-uClibc: Likewise.
12878         * config/arc/t-arc-newlib: Likewise.
12880 2013-10-02  Renlin Li  <renlin.li@arm.com>
12882         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12883         plus_constant.
12884         (aarch64_expand_epilogue): Likewise.
12886 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12887             Yufeng Zhang  <yufeng.zhang@arm.com>
12889         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12890         declaration.
12891         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12892         'base_in' represent a conversion and legal_cast_p_1 holds; set
12893         'base_in' with the returned value from get_unwidened.
12895 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12897         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12898         plus_constant is not used.
12900 2013-10-01  Wei Mi  <wmi@google.com>
12902         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12903         * config/i386/i386.md: Add define_peephole2 to
12904         break partial reg stall for cvtss2sd/cvtsd2ss.
12906 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12908         * config/arc/arc.c (pass_arc_ifcvt::clone):
12909         Update for ctxt_ -> m_ctxt change.
12911 2013-10-01  Jeff Law  <law@redhat.com>
12913         * tree-ssa-threadupdate.c (struct redirection_data): Delete
12914         outgoing_edge and intermediate_edge fields.  Instead store the path.
12915         (redirection_data::hash): Hash on the last edge's destination index.
12916         (redirection_data::equal): Check the entire thread path.
12917         (lookup_redirectio_data): Corresponding changes.
12918         (create_edge_and_update_destination_phis): Likewise.
12919         (thread_single_edge): Likewise.
12921 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12922             Diego Novillo <dnovillo@google.com>
12924         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12925         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12926         (vld32wh_insn, vld32wl_insn): Delete commented-out old
12927         versions of these patterns.
12929         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12930         (__builtin_arc_aligned): Likewise.
12932         * config/arc/arc.md: Expand adc_0 comment stating the intended
12933         purpose and why it isn't ready.
12934         Replace commented out call_value_via_label_mixed with a
12935         plain comment about bl_s.
12937         * config/arc/arc.c (stdio.h): Don't include directly.
12938         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12939         Remove if (1) condition.
12940         (arc_encode_section_info): Fix comment.
12942 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12944         * config/arc/arc.c (arc_conditional_register_usage):
12945         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12946         Also set reg_alloc_order for DMA config regs.
12948 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12949             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12951         * doc/install.texi (--with-cpu): Mention ARC.
12952         (arc-*-elf32): New paragraph.
12953         (arc-linux-uclibc): Likewise.
12954         * doc/md.texi (Machine Constraints): Add ARC part.
12955         * doc/invoke.texi: (menu): Add ARC Options.
12956         (Machine Dependent Options) <ARC Options>: Add synopsis.
12957         (node ARC Options): Add.
12958         * doc/extend.texi (long_call / short_call attribute): Add ARC.
12959         (ARC Built-in Functions): New section defining
12960         generic ARC built-in functions.
12961         (ARC SIMD Built-in Functions): New section defining SIMD specific
12962         built-in functions.
12963         (Declaring Attributes of Functions): Extended
12964         description of short_call and long_call attributes for ARC and
12965         added index entries.
12967 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
12968             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
12969             Joern Rennecke  <joern.rennecke@embecosm.com>
12970             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
12971             Brendan Kehoe  <brendan@zen.org>
12972             Michael Eager  <eager@eagercon.com>
12973             Simon Cook  <simon.cook@embecosm.com>
12974             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12976         * config/arc, common/config/arc: New directories.
12978 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12979             Brendan Kehoe  <brendan@zen.org>
12980             Simon Cook  <simon.cook@embecosm.com>
12982         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12984 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12986         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12987         * tree-ssa-coalesce.h: New. Move prototype to here.
12988         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12989         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12990         (gimple_can_coalesce_p): Move to...
12991         * gimple.c (gimple_can_coalesce_p): Here.
12993 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12995         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12996         (dump_decl_set): Move to gimple.c.
12997         * gimple.h: Don't include tree-ssa-operands.h.
12998         (dump_decl_set): Add prototype.
12999         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13000         Move to gimple-ssa.h.
13001         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
13002         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
13003         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
13004         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
13005         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
13006         than PHI_ARG_DEF.
13007         (dump_decl_set): Relocate here.
13008         * gimple-ssa.h: New file.
13009         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13010         Relocate from gimple.h.
13011         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
13012         * tree-ssa-operands.c (swap_ssa_operands): Rename from
13013         swap_tree_operands and remove non-ssa path.
13014         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
13015         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
13016         swap_ssa_operands.
13017         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
13018         vect_is_simple_reduction_1): Use swap_ssa_operands.
13019         * tree-flow.h: Move various prototypes to tree-phinodes.h.
13020         (enum need_phi_state): Move to tree-into-ssa.c.
13021         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13022         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
13023         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
13024         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
13025         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13026         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13027         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13028         num_imm_uses): Move to ssa-iterators.h.
13029         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
13030         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
13031         tree-phinodes.h.
13032         (op_iter_done, op_iter_next_def, op_iter_next_tree,
13033         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
13034         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
13035         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
13036         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
13037         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
13038         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
13039         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
13040         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
13041         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
13042         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
13043         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
13044         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
13045         (set_phi_nodes): Move to tree-phinodes.h.
13046         * tree-ssa-operands.h (enum ssa_op_iter_type,
13047         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
13048         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
13049         (dump_decl_set): Remove prototype.
13050         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
13051         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
13052         (set_phi_nodes): Relocate from tree-flow-inline.h.
13053         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
13054         tree-flow-inline.h
13055         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
13056         include list.  Temporarily add gimple.h to include list.
13057         * ssa-iterators.h: New file.
13058         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13059         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
13060         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
13061         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
13062         Relocate from tree-ssa-operands.h.
13063         (delink_imm_use, link_imm_use_to_list, link_imm_use,
13064         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13065         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13066         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13067         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
13068         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
13069         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
13070         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
13071         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
13072         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
13073         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
13074         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
13075         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
13076         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
13077         Relocate from tree-flow-inline.h.
13078         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
13080 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
13082         * aarch64-simd.md
13083         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
13084         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
13085         Insert '\t' to output template.
13086         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
13087         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
13088         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
13089         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
13091 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
13093         * doc/install.texi (Host/target specific installation notes for GCC):
13094         Put @anchor before @heading.
13095         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
13096         Use @email for email addresses.
13098 2013-10-01  Jeff Law  <law@redhat.com>
13100         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
13101         a vec.  Only delete the path if we create one without successfully
13102         registering a jump thread.
13103         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
13104         as a pointer.
13105         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
13106         (paths): New vector of jump threading paths.
13107         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
13108         (THREAD_PATH): New accessor macro for the entire thread path.
13109         (lookup_redirection_data): Get intermediate and final outgoing edge
13110         from the thread path.
13111         (create_edge_and_update_destination_phis): Copy the threading path.
13112         (ssa_fix_duplicate_block_edges): Get edges and block types from the
13113         jump threading path.
13114         (ssa_redirect_edges): Get edges and block types from the jump threading
13115         path.  Free the path vector.
13116         (thread_block): Get edges from the jump threading path.  Look at the
13117         entire path to see if we thread to a loop exit.  If we cancel a jump
13118         thread request, then free the path vector.
13119         (thread_single_edge): Get edges and block types from the jump threading
13120         path.  Free the path vector.
13121         (thread_through_loop_header): Get edges and block types from the jump
13122         threading path.  Free the path vector.
13123         (mark_threaded_blocks): Iterate over the vector of paths and store
13124         the path on the appropriate edge.  Get edges and block types from the
13125         jump threading path.
13126         (mark_threaded_blocks): Get edges and block types from the jump
13127         threading path.  Free the path vector.
13128         (thread_through_all_blocks): Use the vector of paths rather than
13129         a vector of 3-edge sets.
13130         (register_jump_thread): Accept pointer to a path vector rather
13131         than the path vector itself.  Store the path vector for later use.
13132         Simplify.
13134 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
13135             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13137         PR target/58574
13138         * config/s390/s390.c (s390_split_branches): Modify check for table
13139         jump insns.
13140         (s390_chunkify_start): Rearrange table jump insn check in order to
13141         deal with compare and branch insns correctly.
13143 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
13145         PR target/58578
13146         Revert
13147         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
13148         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
13149         define_insn_and_split.
13150         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13151         (shiftsi3_compare): New pattern.
13152         (rrx): New pattern.
13153         * config/arm/unspecs.md (UNSPEC_RRX): New.
13155 2013-10-01  Alan Modra  <amodra@gmail.com>
13157         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13158         casing inout operands.
13160 2013-10-01  Richard Biener  <rguenther@suse.de>
13162         PR tree-optimization/58553
13163         * tree-loop-distribution.c (struct partition_s): Add niter member.
13164         (classify_partition): Populate niter member for the partition
13165         and properly identify whether the relevant store happens before
13166         or after the loop exit.
13167         (generate_memset_builtin): Use niter member from the partition.
13168         (generate_memcpy_builtin): Likewise.
13170 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
13172         * vec.h (vec_prefix, vec): Prefix member names with "m_".
13173         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13175 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
13177         * basic-block.h (edge_list): Prefix member names with "m_".
13178         * context.h (context): Likewise.
13179         * domwalk.h (dom_walker): Likewise.
13180         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13181         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13182         * hash-table.h (hash_table): Likewise.
13183         * machmode.h (bit_field_mode_iterator): Likewise.
13184         * pass_manager.h (pass_list): Likewise.
13185         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13186         * tree-pass.h (pass_data): Likewise.
13187         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13188         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13189         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13190         * asan.c (pass_data_asan): Update accordingly.
13191         * cfganal.c (control_dependences::find_control_dependence): Likewise.
13192         (control_dependences::control_dependences): Likewise.
13193         (control_dependences::~control_dependences): Likewise.
13194         (control_dependences::~control_dependences): Likewise.
13195         (control_dependences::get_edges_dependent_on): Likewise.
13196         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13197         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13198         * context.c (gcc::context::context): Likewise.
13199         * cprop.c (pass_rtl_cprop::clone): Likewise.
13200         * domwalk.c (dom_walker::walk): Likewise.
13201         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13202         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13203         * mode-switching.c (pass_mode_switching::clone): Likewise.
13204         * passes.c (opt_pass::opt_pass): Likewise.
13205         (pass_manager::pass_manager): Likewise.
13206         * predict.c (pass_strip_predict_hints::clone): Likewise.
13207         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13208         (pass_split_all_insns::clone): Likewise.
13209         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13210         Likewise.
13211         (bit_field_mode_iterator::next_mode): Likewise.
13212         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13213         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13214         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13215         * tree-complex.c (pass_lower_complex::clone): Likewise.
13216         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13217         * tree-object-size.c (pass_object_sizes::clone): Likewise.
13218         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13219         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13220         (pass_fold_builtins::clone): Likewise.
13221         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13222         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13223         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13224         (pass_cd_dce::clone): Likewise.
13225         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13226         (pass_phi_only_cprop::clone): Likewise.
13227         * tree-ssa-dse.c (pass_dse::clone): Likewise.
13228         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13229         * tree-ssa-loop.c (pass_lim::clone): Likewise.
13230         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13231         * tree-ssa-pre.c (pass_fre::clone): Likewise.
13232         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13233         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13234         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13235         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13236         * tree-vrp.c (pass_vrp::clone): Likewise.
13237         * tsan.c (pass_tsan::clone): Likewise.
13239 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
13241         PR middle-end/58564
13242         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13243         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13245         PR middle-end/58564
13246         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13247         optimization, punt if sign_bit_p looked through any zero extension.
13249 2013-09-30  Teresa Johnson  <tejohnson@google.com>
13251         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13252         Update redirected out edge count in joiner case.
13253         (ssa_redirect_edges): Common the joiner and non-joiner cases
13254         so that joiner case gets profile updates.
13256 2013-09-30  Richard Biener  <rguenther@suse.de>
13258         PR tree-optimization/58554
13259         * tree-loop-distribution.c (classify_partition): Require
13260         unconditionally executed stores for memcpy and memset recognition.
13261         (tree_loop_distribution): Calculate dominance info.
13263 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
13265         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13266         (NO_PROFILE_COUNTERS): Likewise.
13267         (PROFILE_HOOK): Likewise.
13268         (FUNCTION_PROFILER): Likewise.
13269         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13271 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
13273         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13274         calls and defines in TARGET_MACHO conditional.
13275         (load_macho_picbase_di): Likewise.
13276         (reload_macho_picbase): Likewise.
13277         (reload_macho_picbase_si): Likewise.
13278         (reload_macho_picbase_di): Likewise.
13279         (nonlocal_goto_receiver): Likewise.
13281 2013-09-30  Nick Clifton  <nickc@redhat.com>
13283         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
13284         that use the MSP430X ISA.
13285         (msp430_option_override): Scan -mmcu command line option for any
13286         MCU name that supports the MSP430X ISA.
13287         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13288         -mmcu options which enable the MSP430X ISA.
13290 2013-09-30  Richard Biener  <rguenther@suse.de>
13292         PR middle-end/58532
13293         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13294         before looking for setjmp-like calls.
13296 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13298         PR target/10901
13299         * config/darwin-protos.h (machopic_get_function_picbase): New.
13300         * config/darwin.c (machopic_get_function_picbase): New.
13301         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13302         label for a new func.  (load_macho_picbase_di): Likewise.
13303         (reload_macho_picbase): New expand.
13304         (reload_macho_picbase_si): New insn.
13305         (reload_macho_picbase_di): New insn.
13306         (nonlocal_goto_receiver): New define and split.
13307         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13308         (unspecv enum): Add UNSPECV_NLGR.
13310 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13312         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13313         that altivec registers are correctly sized on Darwin.
13315 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13317         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13318         darwin-driver.o): Use COMPILE and POSTCOMPILE.
13319         * config/x-darwin (host-darwin.o): Likewise.
13320         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13321         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13322         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13324 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
13326         * doc/invoke.texi: Fix usage of @tie{} command.
13328 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
13330         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13332 2013-09-28  Jan Hubicka  <jh@suse.cz>
13334         * config/i386/x86-tune.def: Add documentation for each of the options;
13335         add whitespace.
13337 2013-09-28  Jan Hubicka  <jh@suse.cz>
13339         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13340         generic.
13341         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13342         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13343         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13344         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13345         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13347 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
13349         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13350         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13351         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13352         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13353         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13354         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13355         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13356         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13357         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13358         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13359         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13360         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13361         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13362         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13363         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13364         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13365         gimple.h, godump.c, graphite-clast-to-gimple.c,
13366         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13367         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13368         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13369         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13370         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13371         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13372         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13373         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13374         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13375         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13376         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13377         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13378         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13379         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13380         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13381         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13382         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13383         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13384         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13385         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13386         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13387         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13388         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13389         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13390         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13391         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13392         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13393         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13394         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13395         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13396         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13397         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13398         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13399         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13400         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13401         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13402         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13403         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13404         whitespace before "(".
13406 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
13408         * expr.h (extract_bit_field): Remove packedp parameter.
13409         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13410         from forward declaration.
13411         (store_split_bit_field): Remove packedp arg from calls to
13412         extract_fixed_bit_field.
13413         (extract_bit_field_1): Remove packedp parameter and packedp
13414         argument from recursive calls and calls to extract_fixed_bit_field.
13415         (extract_bit_field): Remove packedp parameter and corresponding
13416         arg to extract_bit_field_1.
13417         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
13418         to issue warnings.
13419         (extract_split_bit_field): Remove packedp arg from call to
13420         extract_fixed_bit_field.
13421         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13422         (copy_blkmode_from_reg): Likewise.
13423         (copy_blkmode_to_reg): Likewise.
13424         (read_complex_part): Likewise.
13425         (store_field): Likewise.
13426         (expand_expr_real_1): Likewise.
13427         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13428         to extract_bit_field.
13429         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13430         call to extract_bit_field.
13431         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13432         call to extract_bit_field.
13433         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13434         and special packedp behavior from -fstrict-volatile-bitfields
13435         documentation.
13437 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13439         * lra-eliminations.c (init_elim_table): Guard value_p.
13441 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
13443         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13444         DFmode, DImode, and SFmode in the upper VSX registers based on the
13445         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
13446         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
13447         of the VSX register handling.
13449         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13450         (f32_sv): Likewise.
13451         (zero_extendsidi2_lfiwzx): Add support for loading into the
13452         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
13453         only do VSX memory options on Altivec registers.
13454         (extendsidi2_lfiwax): Likewise.
13455         (extendsfdf2_fpr): Likewise.
13456         (mov<mode>_hardfloat, SF/SD modes): Likewise.
13457         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13458         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13459         (movdi_internal64): Likewise.
13461 2013-09-27  Xinliang David Li  <davidxl@google.com>
13463         * opts.c (finish_options): Adjust parameters
13464         according to vect cost model.
13465         (common_handle_option): Set dynamic vect cost
13466         model for FDO.
13467         targhooks.c (default_add_stmt_cost): Compute stmt cost
13468         unconditionally.
13469         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13470         Use helper function.
13471         * tree-vectorizer.h (unlimited_cost_model): New function.
13472         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13473         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13474         function.
13475         (vect_enhance_data_refs_alignment): Ditto.
13476         * flag-types.h: New enum.
13477         * common/config/i386/i386-common.c (ix86_option_init_struct):
13478         No need to initialize vect_cost_model flag.
13479         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13480         unconditionally.
13482 2013-09-27  Diego Novillo  <dnovillo@google.com>
13484         * gimple.h (enum ssa_mode): Remove.
13486 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
13488         * cfgloop.h (number_of_loops): Fix typo in check for null.
13490 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
13492         PR middle-end/58551
13493         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13494         are children of outermost saved_cfun's loop, and set it up to
13495         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
13496         if loop != loop0 and SESE region contains bbs that belong to loop0.
13498 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13500         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13501         (binary_scale_code_p, get_base_term, get_index_term): New functions.
13502         (set_address_segment, set_address_base, set_address_index)
13503         (set_address_disp): Accept the argument unconditionally.
13504         (baseness): Remove must_be_base_p and must_be_index_p checks.
13505         (decompose_normal_address): Classify as much as possible in the
13506         main loop.
13508 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13510         * cse.c (count_reg_usage): Handle INT_LIST.
13511         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13512         * reginfo.c (reg_scan_mark_refs): Likewise.
13513         * reload1.c (eliminate_regs_1): Likewise.
13515 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
13517         PR middle-end/58547
13518         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13519         signed.
13521 2013-09-27  Richard Biener  <rguenther@suse.de>
13523         PR tree-optimization/58459
13524         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13525         restriction not propagating into loops.
13527 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
13529         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13530         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13531         * doc/tree-ssa.texi (Walking use-def chains): Delete.
13533 2013-09-26  Richard Biener  <rguenther@suse.de>
13535         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13537 2013-09-26  Richard Biener  <rguenther@suse.de>
13539         * alias.h (component_uses_parent_alias_set): Rename to ...
13540         (component_uses_parent_alias_set_from): ... this.
13541         * alias.c (component_uses_parent_alias_set): Rename to ...
13542         (component_uses_parent_alias_set_from): ... this and return
13543         the desired parent.
13544         (reference_alias_ptr_type_1): Use the result from
13545         component_uses_parent_alias_set_from instead of stripping
13546         components one at a time.
13547         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13549 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
13551         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13552         Move prototypes to...
13553         * tree-ssa-ter.h: New File.  Move prototypes here.
13554         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13555         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13556         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
13557         from is_replaceable_p.
13558         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13559         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
13560         (process_replaceable): Use ter_is_replaceable_p.
13561         (find_replaceable_in_bb): Use ter_is_replaceable_p.
13562         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
13563         newly refactored ssa_is_replaceable_p.
13564         * cfgexpand.c: Include tree-outof-ssa.h.
13565         * ssaexpand.h: Delete.
13567 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
13569         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13570         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13571         tree-ssa.c
13572         (create_gimple_tmp): Delete.
13573         (get_expr_type, build_assign, build_type_cast): Move to...
13574         * gimple-builder.c: New File.
13575         (get_expr_type): Relocate from gimple.c.
13576         (build_assign, build_type_cast): Change to only create ssanames.
13577         * gimple.h: Move prototypes to...
13578         * gimple-builder.h: New File. Here.
13579         * tree-ssa.h: And here.
13580         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13581         count_uses_and_derefs): Relocate from gimple.c.
13582         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13583         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13584         * tree-ssa-math-opts (execute_cse_reciprocals): Use
13585         gimple_replace_ssa_lhs.
13586         * asan.c: Include gimple-builder.h.
13587         * Makefile.in: Add gimple-builder.o.
13589 2013-09-26  Richard Biener  <rguenther@suse.de>
13591         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13592         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13593         (loe_visit_block): Use gcc_checking_assert.
13594         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13595         gimple_assign_ssa_name_copy_p.
13596         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13597         change.
13599 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
13601         * config/rs6000/t-rs6000 (rs6000.o): Remove.
13602         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13604 2013-09-26  Richard Biener  <rguenther@suse.de>
13606         PR tree-optimization/58539
13607         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13608         the fact that debug statements are not taking part in loop-closed
13609         SSA construction.
13611 2013-09-26  Nick Clifton  <nickc@redhat.com>
13613         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13614         time warning message.
13615         (msp430_print_operand_raw): Delete unused letter parameter.
13616         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13617         (msp430_print_operand_address): New function.
13618         (msp430_print_operand): Move address printing code from here to
13619         new function.
13620         * config/msp430/msp430.md (movsipsi2): Add comment in generated
13621         assembler.
13622         (zero_extendpsisi2): Likewise.
13623         (extendpsisi2): New pattern.
13624         (andneghi3): New pattern.
13626 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
13628         * config/aarch64/aarch64.opt (mlra): New option.
13629         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13630         (TARGET_LRA_P): Define.
13632 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
13634         * expr.c (expand_assignment): Remove obsolete comment.
13636 2013-09-25  Jeff Law  <law@redhat.com>
13638         * tree-flow.h (thread_through_all_blocks): Prototype moved into
13639         tree-ssa-threadupdate.h.
13640         (register_jump_thread): Similarly.
13641         * tree-ssa-threadupdate.h: New header file.
13642         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13643         * tree-vrp.c: Likewise.
13644         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13645         (thread_around_empty_blocks): Change type of path vector argument to
13646         an edge,type pair from just an edge.  Initialize both elements when
13647         appending to a jump threading path.  Tweak references to elements
13648         appropriately.
13649         (thread_across_edge): Similarly.  Release memory for the elements
13650         as needed.
13651         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13652         (dump_jump_thread_path): New function broken out from
13653         register_jump_thread.
13654         (register_jump_thread): Use dump_jump_thread_path.  Change type of
13655         path vector entries.  Search the path for NULL edges and dump
13656         the path if one is found.  Tweak the conversion of path to 3-edge
13657         form to use the block copy type information embedded in the path.
13659 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13661         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13663 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13664             Vladimir Makarov  <vmakarov@redhat.com>
13666         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13667         from the least significant bit.
13668         (strip_address_mutations): Add bitfield operations handling.
13669         (must_be_index_p): Add shifting and rotate operations handling.
13670         (set_address_base): Use must_be_base_p predicate.
13671         (set_address_index): Use must_be_index_p predicate.
13673 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13674             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13675             Sergey Lega  <sergey.s.lega@intel.com>
13676             Anna Tikhonova  <anna.tikhonova@intel.com>
13677             Ilya Tocar  <ilya.tocar@intel.com>
13678             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13679             Ilya Verbin  <ilya.verbin@intel.com>
13680             Kirill Yukhin  <kirill.yukhin@intel.com>
13681             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13683         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13684         Use new names.
13685         (ix86_expand_vector_move_misalign): Support new unaligned load and
13686         stores and use new names.
13687         (CODE_FOR_sse2_storedqu): Rename to ...
13688         (CODE_FOR_sse2_storedquv16qi): ... this.
13689         (CODE_FOR_sse2_loaddqu): Rename to ...
13690         (CODE_FOR_sse2_loaddquv16qi): ... this.
13691         (CODE_FOR_avx_loaddqu256): Rename to ...
13692         (CODE_FOR_avx_loaddquv32qi): ... this.
13693         (CODE_FOR_avx_storedqu256): Rename to ...
13694         (CODE_FOR_avx_storedquv32qi): ... this.
13695         * config/i386/i386.md (fpint_logic): New.
13696         * config/i386/sse.md (VMOVE): Extend for AVX512.
13697         (VF): Ditto.
13698         (VF_128_256): New.
13699         (VF_512): Ditto.
13700         (VI_UNALIGNED_LOADSTORE): Ditto.
13701         (sse2_avx_avx512f): Ditto.
13702         (sse2_avx2): Extend for AVX512.
13703         (sse4_1_avx2): Ditto.
13704         (avx2_avx512f): New.
13705         (sse): Extend for AVX512.
13706         (sse2): Ditto.
13707         (sse4_1): Ditto.
13708         (avxsizesuffix): Ditto.
13709         (sseintvecmode): Ditto.
13710         (ssePSmode): Ditto.
13711         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13712         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13713         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13714         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13715         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13716         (<sse2_avx_avx512f>_storedqu<mode): ... this.
13717         (<sse>_movnt<mode>): Replace constraint "x" with "v".
13718         (STORENT_MODE): Extend for AVX512.
13719         (*absneg<mode>2): Replace constraint "x" with "v".
13720         (*mul<mode>3): Ditto.
13721         (*ieee_smin<mode>3): Ditto.
13722         (*ieee_smax<mode>3): Ditto.
13723         (avx_cmp<mode>3): Replace VF with VF_128_256.
13724         (*<sse>_maskcmp<mode>3_comm): Ditto.
13725         (<sse>_maskcmp<mode>3): Ditto.
13726         (<sse>_andnot<mode>3): Extend for AVX512.
13727         (<code><mode>3, anylogic): Replace VF with VF_128_256.
13728         (<code><mode>3, fpint_logic): New.
13729         (*<code><mode>3): Extend for AVX512.
13730         (avx512flogicsuff): New.
13731         (avx512f_<logic><mode>): Ditto.
13732         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13733         VF_128_256.
13734         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13735         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13736         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13737         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13738         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13739         (xop_vpermil2<mode>3): Ditto.
13740         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13741         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13742         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13743         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13745 2013-09-25  Tom Tromey  <tromey@redhat.com>
13747         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13748         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13749         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13750         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13751         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13752         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13753         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13754         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13755         (GRAPHITE_HTAB_H): Remove.
13757 2013-09-25  Tom Tromey  <tromey@redhat.com>
13759         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13761 2013-09-25  Tom Tromey  <tromey@redhat.com>
13763         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13765 2013-09-25  Tom Tromey  <tromey@redhat.com>
13767         * config/i386/t-i386 (i386.o): Remove.
13768         (i386-c.o): Use COMPILE and POSTCOMPILE.
13770 2013-09-25  Tom Tromey  <tromey@redhat.com>
13772         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13774 2013-09-25  Tom Tromey  <tromey@redhat.com>
13776         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13777         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13778         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13779         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13780         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13781         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13782         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13783         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13784         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13785         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13786         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13787         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13788         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13789         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13790         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13791         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13792         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13793         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13794         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13795         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13796         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13797         (tree-ssa-pre.o, tree-ssa-sccvn.o)
13798         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13799         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13800         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13801         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13802         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13803         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13804         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13805         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13806         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13807         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13808         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13809         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13810         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13811         (graphite-clast-to-gimple.o, graphite-dependences.o)
13812         (graphite-interchange.o, graphite-poly.o)
13813         (graphite-scop-detection.o, graphite-sese-to-poly.o)
13814         (graphite-optimize-isl.o, tree-vect-loop.o)
13815         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13816         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13817         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13818         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13819         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13820         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13821         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13822         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13823         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13824         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13825         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13826         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13827         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13828         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13829         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13830         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13831         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13832         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13833         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13834         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13835         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13836         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13837         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13838         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13839         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13840         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13841         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13842         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13843         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13844         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13845         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13846         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13847         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13848         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13849         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13850         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13851         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13852         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13853         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13854         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13855         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13856         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13857         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13858         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13859         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13860         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13861         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13862         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13863         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13864         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13865         (gcov-dump.o): Remove.
13866         (default-c.o): Use COMPILE and POSTCOMPILE.
13867         (CFLAGS-gcc.o): New variable.
13868         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13870 2013-09-25  Tom Tromey  <tromey@redhat.com>
13872         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13873         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13874         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13875         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13876         (c-family/c-pragma.o, c-family/c-pretty-print.o)
13877         (c-family/c-semantics.o, c-family/c-ada-spec.o)
13878         (c-family/array-notation-common.o, c-family/stub-objc.o)
13879         (c-family/c-ubsan.o): Remove.
13881 2013-09-25  Tom Tromey  <tromey@redhat.com>
13883         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13885 2013-09-25  Tom Tromey  <tromey@redhat.com>
13887         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13888         to add -DENABLE_SHARED_LIBGCC.
13889         (gcc.o): Don't use subshell.
13891 2013-09-25  Tom Tromey  <tromey@redhat.com>
13893         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13894         * configure.ac: Don't invoke AM_PROG_CC_C_O.
13895         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13896         * configure, config.in: Rebuild.
13898 2013-09-25  Tom Tromey  <tromey@redhat.com>
13900         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13901         (COMPILE, POSTCOMPILE): New variables.
13902         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13903         (DEPFILES): New variable.
13904         Include ".Po" files.
13905         * configure.ac: Add checks for dependency checking.
13906         * configure, aclocal.m4: Regenerate.
13908 2013-09-25  Tom Tromey  <tromey@redhat.com>
13910         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
13911         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
13913 2013-09-25  Tom Tromey  <tromey@redhat.com>
13915         * Makefile.in (generated_files): Add options.h,
13916         target-hooks-def.h, insn-opinit.h,
13917         common/common-target-hooks-def.h, pass-instances.def,
13918         c-family/c-target-hooks-def.h.
13920 2013-09-25  Jeff Law  <law@redhat.com>
13922         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13923         than foo[foo.length () - 1] to access last member in a vec.
13924         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13926 2013-09-25  Richard Biener  <rguenther@suse.de>
13928         PR middle-end/58521
13929         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13931 2013-09-25  Jan Hubicka  <jh@suse.cz>
13933         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13934         test.
13936 2013-09-25  Marek Polacek  <polacek@redhat.com>
13938         PR sanitizer/58420
13939         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13940         when determining the type name.
13942 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
13944         * config/sh/sh.md: Fix formatting.
13946 2013-09-24  Xinliang David Li  <davidxl@google.com>
13948         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13949         max peel iterations parameter.
13950         * param.def: New parameter.
13951         * doc/invoke.texi: Document New parameter.
13953 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
13955         * gimple-pretty-print.c: Various whitespace tweaks.
13956         * tree-core.h: Likewise.
13957         * tree-pretty-print.c: Likewise.
13958         * tree-ssa-alias.c: Likewise.
13959         * tree-ssa-copy.c: Likewise.
13960         * tree-ssanames.c: Likewise.
13961         * tree-ssanames.h: Likewise.
13962         * tree-vrp.c: Likewise.
13964 2013-09-24  Alan Modra  <amodra@gmail.com>
13966         PR middle-end/57134
13967         PR middle-end/57586
13968         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13969         for output operands that disallow regs.  Don't use EXPAND_WRITE on
13970         inout operands.
13972 2013-09-24  Richard Biener  <rguenther@suse.de>
13974         PR middle-end/58513
13975         * tree.c (reference_alias_ptr_type): Move ...
13976         * alias.c (reference_alias_ptr_type): ... here and implement
13977         in terms of the new reference_alias_ptr_type_1.
13978         (ref_all_alias_ptr_type_p): New helper.
13979         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13980         use ref_all_alias_ptr_type_p.
13981         (get_deref_alias_set): Add flag_strict_aliasing check here.
13982         (reference_alias_ptr_type_1): New function, split out from ...
13983         (get_alias_set): ... here.
13984         (alias_ptr_types_compatible_p): New function.
13985         * alias.h (reference_alias_ptr_type): Declare.
13986         (alias_ptr_types_compatible_p): Likewise.
13987         * tree.h (reference_alias_ptr_type): Remove.
13988         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13989         to compare MEM_REF alias types.
13991 2013-09-24  Richard Biener  <rguenther@suse.de>
13993         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13995 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13997         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13998         reload helper function arrays into a single array reg_addr.
13999         (reload_fpr_gpr): Likewise.
14000         (reload_gpr_vsx): Likewise.
14001         (reload_vsx_gpr): Likewise.
14002         (struct rs6000_reg_addr): Likewise.
14003         (reg_addr): Likewise.
14004         (rs6000_debug_reg_global): Change rs6000_vector_reload,
14005         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
14006         (rs6000_init_hard_regno_mode_ok): Likewise.
14007         (rs6000_secondary_reload_direct_move): Likewise.
14008         (rs6000_secondary_reload): Likewise.
14010         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
14011         constraints: wu, ww, and wy.  Repurpose wv constraint added during
14012         power8 changes.  Put wg constraint in alphabetical order.
14014         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
14015         for future work to add ISA 2.07 VSX single precision support.
14016         (-mvsx-scalar-double): Change default from -1 to 1, update
14017         documentation comment.
14018         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
14019         (-mupper-regs-df): New debug switch to control whether DF values
14020         can go in the traditional Altivec registers.
14021         (-mupper-regs-sf): New debug switch to control whether SF values
14022         can go in the traditional Altivec registers.
14024         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
14025         and wy constraints.
14026         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
14027         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
14028         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
14029         (rs6000_debug_legitimate_address_p): Print if we are running
14030         before, during, or after reload.
14031         (rs6000_secondary_reload): Add a comment.
14032         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
14034         * config/rs6000/constraints.md (wa constraint): Sort w<x>
14035         constraints.  Update documentation string.
14036         (wd constraint): Likewise.
14037         (wf constraint): Likewise.
14038         (wg constraint): Likewise.
14039         (wn constraint): Likewise.
14040         (ws constraint): Likewise.
14041         (wt constraint): Likewise.
14042         (wx constraint): Likewise.
14043         (wz constraint): Likewise.
14044         (wu constraint): New constraint for ISA 2.07 SFmode scalar
14045         instructions.
14046         (ww constraint): Likewise.
14047         (wy constraint): Likewise.
14048         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
14049         in the previous submissions.
14050         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
14052 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
14054         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
14055         (REG_BR_PROB): Say that the probability is stored in an int_list.
14056         * reg-notes.def: Update commentary to mention INT_LIST.
14057         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
14058         (INT_LIST): New rtx.
14059         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
14060         * rtlanal.c (int_reg_note_p): New function.
14061         (alloc_reg_note): Assert that the note does not have an int argument.
14062         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
14063         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
14064         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
14065         rather than an INSN_LIST.  Handle INT_LIST.
14066         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
14067         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
14068         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
14069         Manipulate them as ints rather than rtxes.
14070         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
14071         * regmove.c (copy_src_to_dest): Likewise.
14072         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
14074         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
14075         into the cases that need it.
14076         * config/arm/arm.c (arm_unwind_emit): Likewise.
14078         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
14079         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
14080         * loop-doloop.c (add_test, doloop_modify): Likewise.
14081         * loop-unswitch.c (compare_and_jump_seq): Likewise.
14082         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
14083         * predict.c (combine_predictions_for_insn): Likewise.
14084         * print-rtl.c (print_rtx): Handle INT_LIST.
14085         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
14086         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
14087         * config/arm/arm.c (emit_unlikely_jump): Likewise.
14088         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
14089         (ix86_split_fp_branch, predict_jump): Likewise.
14090         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
14091         * config/sh/sh.c (expand_cbranchsi4): Likewise.
14092         * config/spu/spu.c (ea_load_store_inline): Likewise.
14094         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
14095         value of a REG_BR_PROB note.
14096         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14097         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
14098         * emit-rtl.c (try_split): Likewise.
14099         * predict.c (br_prob_note_reliable_p): Likewise.
14100         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
14101         * reorg.c (mostly_true_jump): Likewise.
14102         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
14103         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14104         * config/i386/i386.c (ix86_print_operand): Likewise.
14105         * config/ia64/ia64.c (ia64_print_operand): Likewise.
14106         * config/mmix/mmix.c (mmix_print_operand): Likewise.
14107         * config/rs6000/rs6000.c (output_cbranch): Likewise.
14108         * config/s390/s390.c (s390_expand_tbegin): Likewise.
14109         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
14110         * config/sparc/sparc.c (output_cbranch): Likewise.
14111         * config/spu/spu.c (get_branch_target): Likewise.
14112         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
14113         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
14115 2013-09-23  Jan Hubicka  <jh@suse.cz>
14117         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
14118         for ipa-devirt.
14119         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
14120         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
14121         of external calls
14122         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
14123         (gimple_fold_call): Dump inconsistent devirtualizations; add
14124         sanity check for type based devirtualizations.
14125         * ipa-prop.c: Include ipa-utils.h
14126         (ipa_intraprocedural_devirtualization): Add sanity check.
14127         (try_make_edge_direct_virtual_call): Likewise.
14129 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
14131         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
14132         assignment statements.
14134 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
14136         * gimple-pretty-print.c (dump_ssaname_info): New function.
14137         (dump_gimple_phi): Call it.
14138         (pp_gimple_stmt_1): Likewise.
14139         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14140         (range_info_def): Declare.
14141         * tree-pretty-print.c (pp_double_int): New function.
14142         (dump_generic_node): Call it.
14143         * tree-pretty-print.h (pp_double_int): Declare.
14144         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14145         * tree-ssanames.h (range_info_def): New structure.
14146         (value_range_type): Move definition here.
14147         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14148         Declare.
14149         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14150         initialization.
14151         (set_range_info): New function.
14152         (get_range_info): Likewise.
14153         (duplicate_ssa_name_range_info): Likewise.
14154         (duplicate_ssa_name_fn): Check pointer type and call
14155         duplicate_ssa_name_range_info.
14156         * tree-ssa-copy.c (fini_copy_prop): Likewise.
14157         * tree-vrp.c (value_range_type): Remove definition, now in
14158         tree-ssanames.h.
14159         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14160         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14161         (SSA_NAME_RANGE_INFO): New macro.
14163 2013-09-23  Richard Biener  <rguenther@suse.de>
14165         PR tree-optimization/58464
14166         * tree-ssa-pre.c (phi_trans_lookup): Remove.
14167         (phi_trans_add): Change to add conditionally on being not present.
14168         (phi_translate_1): Remove recursion detection here.
14169         (phi_translate): Pre-seed the cache with NULL to catch
14170         recursion here in a more generic way.
14171         (bitmap_find_leader): Adjust comment.
14172         (get_representative_for): Dump value-numbers.
14173         (create_expression_by_pieces): Likewise.
14174         (insert_into_preds_of_block): Likewise.
14176 2013-09-23  Christian Bruel  <christian.bruel@st.com>
14178         PR target/58475
14179         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14180         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14182 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
14184         Revert r202780:
14185         2013-09-20  Renlin Li  <renlin.li@arm.com>
14187         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14188         plus_constant.
14189         (aarch64_expand_epilogue): Likewise.
14190         (aarch64_legitimize_reload_address): Likewise.
14192 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
14194         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14195         NULL_TREE before pushing them onto the vector.  Likewise for labels.
14197 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
14199         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14200         comparison operators when -fno-trapping-math is in effect.
14201         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14202         comparison operators in TFmode and assert that unsupported operators
14203         cannot reach here.
14204         (ia64_print_operand): Likewise.
14206 2013-09-21  Jan Hubicka  <jh@suse.cz>
14208         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14209         (sse_typeless_stores): Enable for core
14210         (sse_load0_by_pxor): Likewise.
14211         (four_jump_limit): Disable for core.
14212         (pad_returns): Likewise.
14213         (avoid_vector_decode): Likewise.
14214         (fuse_cmp_and_branch): Enable for cores.
14215         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14217 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
14219         PR middle-end/56791
14220         * config/pa/pa.c (pa_option_override): Disable auto increment and
14221         decrement instructions until reload is completed.
14223         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14224         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14225         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14227 2013-09-20  DJ Delorie  <dj@redhat.com>
14228             Nick Clifton  <nickc@redhat.com>
14230         * config/rl78/rl78.c: Various whitespace and comment tweaks.
14231         (need_to_save): Save bank 0 on interrupts.
14232         (characterize_address): Strip far address wrappers.
14233         (rl78_as_legitimate_address): Likewise.
14234         (transcode_memory_rtx): Likewise.
14235         (rl78_peep_movhi_p): Disable this peephole after devirt.
14236         (rl78_propogate_register_origins): Forget all origins when a
14237         CLOBBER is seen.
14238         * config/rl78/rl78-virt.md: Various whitespace tweaks.
14239         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
14240         peephole2's.
14241         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14242         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14243         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14244         relocating.
14245         * config/rl78/constraints.md: Various whitespace and paren tweaks.
14247 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
14249         * config/pa/pa.md: In "scc" insn patterns, change output template to
14250         handle const0_rtx in reg_or_0_operand operands.
14252 2013-09-20  Martin Husemann  <martin@NetBSD.org>
14254         PR target/56875
14255         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14256         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14258 2013-09-20  Richard Biener  <rguenther@suse.de>
14260         PR middle-end/58484
14261         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14262         remembering SSA name version and block index.
14263         (new_scev_info_str): Adjust.
14264         (hash_scev_info): Likewise.  Also hash the block index.
14265         (eq_scev_info): Adjust.
14266         (find_var_scev_info): Likewise.
14267         (struct instantiate_cache_entry): Remove.
14268         (struct instantiate_cache_type): Use a htab to map name, block
14269         to chrec.
14270         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14271         (get_instantiated_value_entry): Likewise.
14272         (hash_idx_scev_info, eq_idx_scev_info): New functions.
14273         (instantiate_scev_name): Adjust.
14275 2013-09-20  Jeff Law  <law@redhat.com>
14277         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14279 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
14281         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14282         Call aarch64_simd_expand_args to update op[argc].
14284 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14286         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14287         plugin argument.
14289 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14291         * gengtype.c (file_rules): Added rule for *.cc files.
14292         (get_output_file_with_visibility): Give fatal message when no
14293         rules found.
14295 2013-09-20  Renlin Li  <renlin.li@arm.com>
14297         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14298         (aarch64_expand_epilogue): Likewise.
14299         (aarch64_legitimize_reload_address): Likewise.
14301 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14303         PR middle-end/57748
14304         * expr.c (expand_assignment): Remove misalignp code path.
14306 2013-09-20  Marek Polacek  <polacek@redhat.com>
14308         PR sanitizer/58413
14309         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14310         TYPE_PRECISION.  Add asserts.
14312 2013-09-20  Richard Biener  <rguenther@suse.de>
14314         PR tree-optimization/58453
14315         * tree-loop-distribution.c (distribute_loop): Apply the cost
14316         model for -ftree-loop-distribute-patterns, too.
14318 2013-09-20  Richard Biener  <rguenther@suse.de>
14320         PR middle-end/58473
14321         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14322         make type comparison less strict.
14324 2013-09-20  Alan Modra  <amodra@gmail.com>
14326         * configure: Regenerate.
14327         * aclocal.m4: Regenerate.
14329 2013-09-20  Marek Polacek  <polacek@redhat.com>
14331         PR other/58467
14332         * doc/extend.texi: Document that attribute used is meant to be used
14333         on variables with static storage duration.
14335 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14337         PR tree-optimization/58472
14338         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14339         simd_lane_access set inv_p = false.
14340         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14341         the simduid magic VAR_DECL.
14343 2013-09-19  Jan Hubicka  <jh@suse.cz>
14345         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14347 2013-09-17  Jeff Law  <law@redhat.com>
14349         * tree-ssa-dom.c (record_temporary_equivalences): New function
14350         split out of dom_opt_dom_walker::after_dom_children.
14351         (dom_opt_dom_walker::thread_across_edge): Move common code
14352         in here from dom_opt_dom_walker::after_dom_children.
14353         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14355 2013-09-19  Jan Hubicka  <jh@suse.cz>
14357         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14358         (TARGET_GENERIC): Use PROCESOR_GENERIC
14359         (enum processor_type): Unify generic32 and 64.
14360         * i386.md (cpu): Likewise.
14361         * x86-tune.def (use_leave): Enable for generic32.
14362         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14363         * athlon.md: Change generic64 to generic in all occurences.
14364         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14365         (ix86_target_macros_internal): Likewise.
14366         * driver-i386.c (host_detect_local_cpu): Likewise.
14367         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14368         to ..
14369         (generic_memcpy, generic_memset, generic_cost): This one.
14370         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14371         (m_GENERIC32, m_GENERIC64): Remove.
14372         (m_GENERIC): Turn into one flag.
14373         (processor_target): Unify generic tunnings.
14374         (ix86_option_override_internal): Replace generic32/64 by generic.
14375         (ix86_issue_rate): Likewise.
14376         (ix86_adjust_cost): Likewise.
14378 2013-09-19  Jan Hubicka  <jh@suse.cz>
14380         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14381         of speculative flag.
14383 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14385         * omp-low.c (expand_omp_sections): Always pass len - 1 to
14386         GOMP_sections_start, even if !exit_reachable.
14388 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14390         * lra-constraints.c (need_for_all_save_p): Use macro
14391         HARD_REGNO_CALL_PART_CLOBBERED.
14392         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14393         set up pseudo conflict hard regs.
14395 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14397         PR target/58452
14398         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14399         operands.
14401 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14403         PR rtl-optimization/58438
14404         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14405         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14406         from previous subpasses.
14408 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
14410         * arm.c (arm_get_frame_offsets): Validate architecture supports
14411         LDRD/STRD before accepting the tuning preference.
14412         (arm_expand_prologue): Likewise.
14413         (arm_expand_epilogue): Likewise.
14415 2013-09-18  Richard Biener  <rguenther@suse.de>
14417         PR tree-optimization/58417
14418         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14419         have chrecs with symbols defined in the loop as operands.
14420         (chrec_fold_multiply): Likewise.
14421         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14422         parameters before folding binary operations.
14423         (struct instantiate_cache_entry_hasher): Remove.
14424         (struct instantiate_cache_type): Use a pointer-map.
14425         (instantiate_cache_type::instantiate_cache_type): New function.
14426         (instantiate_cache_type::get): Likewise.
14427         (instantiate_cache_type::set): Likewise.
14428         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14429         (get_instantiated_value_entry): Likewise.
14430         (global_cache): New global.
14431         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14432         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14433         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14434         (instantiate_scev_name): Adjust.
14435         (instantiate_scev): Construct global instead of local cache.
14436         (resolve_mixers): Likewise.
14438 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
14439             Paolo Carlini  <paolo.carlini@oracle.com>
14441         PR c++/58458
14442         * doc/implement-cxx.texi: Fix references to the C++ standards.
14444 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
14446         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14447         * tree-vect-data-refs.c (vect_analyze_data_refs): For
14448         simd_lane_access drs, update also DR_ALIGNED_TO.
14450 2013-09-18  Marek Polacek  <polacek@redhat.com>
14452         PR sanitizer/58411
14453         * doc/extend.texi: Document no_sanitize_undefined attribute.
14454         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14455         no_sanitize_undefined attribute.
14457 2013-09-18  Nick Clifton  <nickc@redhat.com>
14459         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14460         (ASM_DECLARE_FUNCTION_NAME): Define.
14462 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
14464         * compare-elim.c (find_comparison_dom_walker): New class
14465         (find_comparisons_in_bb): Rename to
14466         find_comparison_dom_walker::before_dom_children
14467         (find_comparisons): Adjust
14468         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14469         adjust.
14470         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14471         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14472         (init_walk_dominator_tree): Remove declaration.
14473         (fini_walk_dominator_tree): Remove declaration.
14474         * fwprop.c (single_def_use_dom_walker): New class
14475         (single_def_use_enter_block): Convert to
14476         single_def_use_dom_walker::before_dom_children.
14477         (single_def_use_leave_block): Convert to
14478         single_def_use_dom_walker::after_dom_children.
14479         (build_single_def_use_links): Adjust.
14480         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14481         class.
14482         (find_candidates_in_block): Convert to
14483         find_candidates_dom_walker::before_dom_children.
14484         (execute_strength_reduction): Adjust.
14485         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14486         (sese_dom_walker): New class.
14487         (sese_dom_walker::sese_dom_walker): New constructor.
14488         (sese_dom_walker::~sese_dom_walker): New destructor.
14489         (build_sese_conditions_before): Convert to
14490         sese_dom_walker::before_dom_children.
14491         (build_sese_conditions_after): Convert to
14492         sese_dom_walker::after_dom_children.
14493         (build_poly_scop): Adjust
14494         * tree-into-ssa.c (rewrite_dom_walker): New class
14495         (rewrite_enter_block): Convert to
14496         rewrite_dom_walker::before_dom_children.
14497         (rewrite_leave_block): Convert to
14498         rewrite_dom_walker::after_dom_children.
14499         (rewrite_update_dom_walker): New class.
14500         (rewrite_update_enter_block): Convert to
14501         rewrite_update_dom_walker::before_dom_children.
14502         (rewrite_update_leave_block): Convert to
14503         rewrite_update_dom_walker::after_dom_children.
14504         (rewrite_blocks, rewrite_into_ssa): Adjust.
14505         (mark_def_dom_walker): New class.
14506         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14507         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14508         (mark_def_sites_blocks): Convert to
14509         mark_def_dom_walker::before_dom_children.
14510         (mark_def_site_blocks): Remove.
14511         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14512         (tree_ssa_dominator_optimize): Adjust.
14513         (dom_thread_across_edge): Convert to method
14514         dom_opt_dom_walker::thread_across_edge.
14515         (dom_opt_enter_block): Convert to member function
14516         dom_opt_dom_walker::before_dom_children.
14517         (dom_opt_leave_block): Convert to member function
14518         dom_opt_dom_walker::after_dom_children.
14519         * tree-ssa-dse.c (dse_dom_walker): New class.
14520         (dse_enter_block): Convert to member function
14521         dse_dom_walker::before_dom_children.
14522         (tree_ssa_dse): Adjust.
14523         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14524         (determine_invariantness_stmt): Convert to method
14525         invariantness_dom_walker::before_dom_children.
14526         (determine_invariantness): Remove
14527         (move_computations_dom_walker): New class.
14528         (move_computations_stmt): Convert to method
14529         move_computations_dom_walker::before_dom_children.
14530         (move_computations, tree_ssa_lim): Adjust.
14531         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14532         (nt_init_block): Convert to method
14533         notrappping_dom_walker::before_dom_children.
14534         (nt_fini_block): Convert to method
14535         method nontrapping_dom_walker::after_dom_children.
14536         (get_non_trapping): Adjust.
14537         * tree-ssa-pre.c (eliminate_dom_walker): New class.
14538         (eliminate_bb): Convert to method
14539         eliminate_dom_walker::before_dom_children.
14540         (eliminate_leave_block): Convert to method
14541         eliminate_dom_walker::after_dom_children.
14542         (eliminate): Adjust.
14543         * tree-ssa-strlen.c (strlen_dom_walker): New class.
14544         (strlen_enter_block): Convert to method
14545         strlen_dom_walker::before_dom_children.
14546         (strlen_leave_block): Convert to method
14547         method strlen_dom_walker::after_dom_children.
14548         (tree_ssa_strlen): Adjust.
14549         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14550         (tree_ssa_uncprop): Adjust.
14551         (uncprop_leave_block): Convert to method
14552         uncprop_dom_walker::after_dom_children.
14553         (uncprop_leave_block): Convert to method
14554         uncprop_dom_walker::before_dom_children.
14556 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
14558         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14559         branch in same basic block.  Check both src and dest of the move insn.
14561 2013-09-17  Nick Clifton  <nickc@redhat.com>
14563         * config/rl78/rl78-real.md (bf): New pattern.
14564         (bt): New pattern.
14565         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14566         (rl78_print_operand): Do not put a # before a %B.
14567         * config/rl78/rl78.opt: Tweak doc strings.
14569 2013-09-17  DJ Delorie  <dj@redhat.com>
14571         * config/rl78/constraints.md (Wcv): Allow up to $r31.
14572         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14573         (rl78_option_override): Likewise, if -mallregs.
14574         (is_virtual_register): Likewise.
14575         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14576         (REGNO_OK_FOR_BASE_P): Likewise.
14577         * config/rl78/rl78.opt (-mallregs): New.
14579 2013-09-17  Nick Clifton  <nickc@redhat.com>
14581         * config/rl78/rl78.c (need_to_save): Change return type to bool.
14582         For interrupt functions: save all call clobbered registers if the
14583         interrupt handler is not a leaf function.
14584         (rl78_expand_prologue): Always recompute the frame information.
14585         For interrupt functions: only select bank 0 if one of the bank 0
14586         registers is going to be psuhed.
14588 2013-09-17  DJ Delorie  <dj@redhat.com>
14590         * config/rl78/constraints.md: For each W* constraint, rename to C*
14591         and create a W* constraint that checks for an optional ES: prefix
14592         pattern also.
14593         * config/rl78/rl78.md (UNS_ES_ADDR): New.
14594         (es_addr): New.  Used to wrap far addresses.
14595         * config/rl78/rl78-protos.h (rl78_es_addr): New.
14596         (rl78_es_base): New.
14597         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14598         wrapped far addresses.
14599         (rl78_print_operand_1): Unwrap far addresses before processing.
14600         (rl78_lo16): Wrap far addresses in unspecs.
14601         (rl78_es_addr): New.
14602         (rl78_es_base): New.
14603         (insn_ok_now): Check for not-yet-wrapped far addresses.
14604         (transcode_memory_rtx): Properly re-wrap far addresses.
14606 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14608         * config/sparc/t-rtems: Add leon3 multilibs.
14610 2013-09-17  Cong Hou  <congh@google.com>
14612         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14613         when checking the dot production pattern. The type of rhs operand
14614         of multiply is now checked correctly.
14616 2013-09-17  Jeff Law  <law@redhat.com>
14618         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14619         edge implied equivalences into successor phis.
14620         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14621         here from tree-ssa-threadedge.c.
14622         (mark_threaded_blocks): When threading through a joiner, if both
14623         successors of the joiner's clone reach the same block, verify the
14624         PHI arguments are equal.  If not, cancel the jump threading request.
14625         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14626         tree-ssa-threadupdate.c
14627         (thread_across_edge): Don't check PHI argument equality when
14628         threading through joiner block here.
14630 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
14632         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14633         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14634         (warn_uninit, warn_uninitialized_vars,
14635         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14636         Move to tree-ssa-uninit.c.
14637         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14638         (has_undefined_value_p): New.  Pass dependant parts of
14639         ssa_undefined_value_p.
14640         (uninit_undefined_value_p): Use has_undefined_value_p.
14641         (warn_uninit, warn_uninitialized_vars,
14642         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14643         Move from tree-ssa.c.
14644         * tree-ssa.h: Adjust prototypes.
14646 2013-09-17  Jan Hubicka  <jh@suse.cz>
14648         PR middle-end/58332
14649         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14650         * ipa-inline.c (can_inline_edge_p): Do not downgrade
14651         FUNCTION_NOT_OPTIMIZED.
14652         * ipa-inline-analysis.c (compute_inline_parameters): Function
14653         not optimized is not inlinable unless it is alwaysinline.
14654         (inline_analyze_function): Force calls in not optimized
14655         function not inlinable.
14657 2013-09-17  Jan Hubicka  <jh@suse.cz>
14659         PR middle-end/58329
14660         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14661         to return NULL.
14662         * ipa.c (function_and_variable_visibility): Likewise.
14663         * ipa-profile.c (ipa_profile): Likewise.
14665 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14667         PR ipa/58398
14668         * cgraph.c (cgraph_function_body_availability): Check for ifunc
14669         attribute, and don't inline the resolver in this case.
14671 2013-09-17  Teresa Johnson  <tejohnson@google.com>
14673         * coverage.c (get_coverage_counts): Add missing newline.
14675 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14677         PR tree-optimization/58088
14678         * fold-const.c (mask_with_trailing_zeros): New function.
14679         (fold_binary_loc): Make sure we don't recurse infinitely
14680         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14681         Use mask_with_trailing_zeros where appropriate.
14683 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
14685         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14686         of 'prev' var to get better distance estimation.
14688 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14690         * tree-inline.h (struct copy_body_data): Add transform_parameter.
14691         * tree-inline.c (is_parameter_of): New predicate.
14692         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14693         a parameter has been remapped.
14694         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14695         (optimize_inline_calls): Initialize transform_parameter.
14696         (copy_gimple_seq_and_replace_locals): Likewise.
14697         (tree_function_versioning): Likewise.
14698         (maybe_inline_call_in_expr): Likewise.
14700 2013-09-17  Nick Clifton  <nickc@redhat.com>
14702         * config/msp430/msp430-protos.h: Add prototypes for new functions.
14703         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14704         interrupt handlers.
14705         (is_attr_func): New function.
14706         (msp430_is_interrupt_func): New function.
14707         (is_naked_func): New function.
14708         (is_reentrant_func): New function.
14709         (is_critical_func): New function.
14710         (msp430_start_function): Add annotations for function attributes.
14711         (msp430_attr): New function.
14712         (msp430_attribute_table): New.
14713         (msp430_function_section): New function.
14714         (TARGET_ASM_FUNCTION_SECTION): Define.
14715         (msp430_builtin): New enum.
14716         (msp430_init_builtins): New function.
14717         (msp430_builtin_devl): New function.
14718         (msp430_expand_builtin): New function.
14719         (TARGET_INIT_BUILTINS): Define.
14720         (TARGET_EXPAND_BUILTINS): Define.
14721         (TARGET_BUILTIN_DECL): Define.
14722         (msp430_expand_prologue): Add support for naked, interrupt,
14723         critical and reentrant functions.
14724         (msp430_expand_epilogue): Likewise.
14725         (msp430_print_operand): Handle 'O' character.
14726         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14727         NO_TRAMPOLINES.
14728         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14729         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14730         (pushm): Use a 'n' rather than an 'i' constraint.
14731         (msp_return): Add generation of the interrupt return instruction.
14732         (disable_interrupts): New pattern.
14733         (enable_interrupts): New pattern.
14734         (push_intr_state): New pattern.
14735         (pop_intr_state): New pattern.
14736         (bic_SR): New pattern.
14737         (bis_SR): New pattern.
14738         * doc/extend.texi: Document MSP430 function attributes and builtin
14739         functions.
14741 2013-09-17  Richard Biener  <rguenther@suse.de>
14743         PR tree-optimization/58432
14744         * tree-loop-distribution.c (tree_loop_distribution): Also
14745         scan PHIs for outside loop uses and seed a partition from them.
14747 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
14749         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14750         (restructure_reference): Call backtrace_base_for_ref.
14752 2013-09-17  Alan Modra  <amodra@gmail.com>
14754         PR target/57589
14755         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14756         patch.
14758 2013-09-16  DJ Delorie  <dj@redhat.com>
14760         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14761         vregs location for RL78/G10.
14762         (rl78_expand_prologue): Avoid SEL on G10.
14763         (rl78_expand_epilogue): Likewise.
14764         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14765         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14766         __RL78_G10__ when appropriate.
14767         (ASM_SPEC): Pass -mg10 along to the assembler.
14768         * config/rl78/rl78.md (sel_rb): Disable for G10.
14769         * config/rl78/rl78.opt: Add -mg10 option.
14770         * config/rl78/t-rl78: Add -mg10 multilib.
14772 2013-09-16  Xinliang David Li  <davidxl@google.com>
14774         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14775         * omp-low.c (omp_max_vf): Ditto.
14776         (expand_omp_simd): Ditto.
14777         * tree-vectorizer.c (vectorize_loops): Ditto.
14778         (gate_vect_slp): Ditto.
14779         (gate_increase_alignment): Ditto.
14780         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14781         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14782         (gate_tree_vectorize): Name change.
14783         (tree_vectorize): Ditto.
14784         (pass_vectorize::gate): Call new function.
14785         (pass_vectorize::execute): Ditto.
14786         * opts.c: O3 default setting change.
14787         (finish_options): Check new flag.
14788         * doc/invoke.texi: Document new flags.
14789         * common.opt: New flags.
14791 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
14793         * doc/tm.texi.in (Cond Exec Macros): Remove node.
14794         (Condition Code): Don't reference it.
14795         * doc/tm.texi: Regenerate.
14797 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
14799         PR middle-end/58418
14800         * lra-constraints.c (undo_optional_reloads): Consider all optional
14801         reload even if it did not get a hard reg.
14803 2013-09-16  Teresa Johnson  <tejohnson@google.com>
14805         * dumpfile.c (dump_loc): Remove newline emission.
14806         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14807         emission to dump_printf_loc calls where missing.
14808         (vect_mark_for_runtime_alias_test): Ditto.
14809         (vect_analyze_data_ref_dependence): Ditto.
14810         (vect_analyze_data_ref_dependences): Ditto.
14811         (vect_slp_analyze_data_ref_dependence): Ditto.
14812         (vect_slp_analyze_data_ref_dependences): Ditto.
14813         (vect_compute_data_ref_alignment): Ditto.
14814         (vect_update_misalignment_for_peel): Ditto.
14815         (vect_verify_datarefs_alignment): Ditto.
14816         (vector_alignment_reachable_p): Ditto.
14817         (vect_get_data_access_cost): Ditto.
14818         (vect_enhance_data_refs_alignment): Ditto.
14819         (vect_find_same_alignment_drs): Ditto.
14820         (vect_analyze_data_refs_alignment): Ditto.
14821         (vect_analyze_group_access): Ditto.
14822         (vect_analyze_data_ref_access): Ditto.
14823         (vect_analyze_data_ref_accesses): Ditto.
14824         (vect_prune_runtime_alias_test_list): Ditto.
14825         (vect_analyze_data_refs): Ditto.
14826         (vect_create_addr_base_for_vector_ref): Ditto.
14827         (vect_create_data_ref_ptr): Ditto.
14828         (vect_grouped_store_supported): Ditto.
14829         (vect_grouped_load_supported): Ditto.
14830         * value-prof.c (check_counter): Ditto.
14831         (check_ic_target): Ditto.
14832         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14833         (vect_recog_widen_mult_pattern): Ditto.
14834         (vect_recog_widen_sum_pattern): Ditto.
14835         (vect_recog_over_widening_pattern): Ditto.
14836         (vect_recog_widen_shift_pattern): Ditto.
14837         (vect_recog_rotate_pattern): Ditto.
14838         (vect_recog_vector_vector_shift_pattern): Ditto.
14839         (vect_recog_divmod_pattern): Ditto.
14840         (vect_recog_mixed_size_cond_pattern): Ditto.
14841         (vect_recog_bool_pattern): Ditto.
14842         (vect_pattern_recog_1): Ditto.
14843         (vect_pattern_recog): Ditto.
14844         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14845         (vect_is_simple_iv_evolution): Ditto.
14846         (vect_analyze_scalar_cycles_1): Ditto.
14847         (vect_get_loop_niters): Ditto.
14848         (vect_analyze_loop_1): Ditto.
14849         (vect_analyze_loop_form): Ditto.
14850         (vect_analyze_loop_operations): Ditto.
14851         (vect_analyze_loop_2): Ditto.
14852         (vect_analyze_loop): Ditto.
14853         (report_vect_op): Ditto.
14854         (vect_is_slp_reduction): Ditto.
14855         (vect_is_simple_reduction_1): Ditto.
14856         (vect_get_known_peeling_cost): Ditto.
14857         (vect_estimate_min_profitable_iters): Ditto.
14858         (vect_model_reduction_cost): Ditto.
14859         (vect_model_induction_cost): Ditto.
14860         (get_initial_def_for_induction): Ditto.
14861         (vect_create_epilog_for_reduction): Ditto.
14862         (vectorizable_reduction): Ditto.
14863         (vectorizable_induction): Ditto.
14864         (vectorizable_live_operation): Ditto.
14865         (vect_loop_kill_debug_uses): Ditto.
14866         (vect_transform_loop): Ditto.
14867         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14868         (vect_stmt_relevant_p): Ditto.
14869         (process_use): Ditto.
14870         (vect_mark_stmts_to_be_vectorized): Ditto.
14871         (vect_model_simple_cost): Ditto.
14872         (vect_model_promotion_demotion_cost): Ditto.
14873         (vect_model_store_cost): Ditto.
14874         (vect_get_store_cost): Ditto.
14875         (vect_model_load_cost): Ditto.
14876         (vect_get_load_cost): Ditto.
14877         (vect_init_vector_1): Ditto.
14878         (vect_get_vec_def_for_operand): Ditto.
14879         (vect_finish_stmt_generation): Ditto.
14880         (vectorizable_call): Ditto.
14881         (vectorizable_conversion): Ditto.
14882         (vectorizable_assignment): Ditto.
14883         (vectorizable_shift): Ditto.
14884         (vectorizable_operation): Ditto.
14885         (vectorizable_store): Ditto.
14886         (vectorizable_load): Ditto.
14887         (vectorizable_condition): Ditto.
14888         (vect_analyze_stmt): Ditto.
14889         (vect_transform_stmt): Ditto.
14890         (vect_is_simple_use): Ditto.
14891         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14892         (vect_can_advance_ivs_p): Ditto.
14893         (vect_update_ivs_after_vectorizer): Ditto.
14894         (vect_do_peeling_for_loop_bound): Ditto.
14895         (vect_gen_niters_for_prolog_loop): Ditto.
14896         (vect_update_inits_of_drs): Ditto.
14897         (vect_create_cond_for_alias_checks): Ditto.
14898         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14899         (vect_build_slp_tree_1): Ditto.
14900         (vect_supported_load_permutation_p): Ditto.
14901         (vect_analyze_slp_instance): Ditto.
14902         (vect_analyze_slp): Ditto.
14903         (vect_make_slp_decision): Ditto.
14904         (vect_detect_hybrid_slp): Ditto.
14905         (vect_bb_vectorization_profitable_p): Ditto.
14906         (vect_slp_analyze_bb_1): Ditto.
14907         (vect_update_slp_costs_according_to_vf): Ditto.
14908         (vect_get_mask_element): Ditto.
14909         (vect_transform_slp_perm_load): Ditto.
14910         (vect_schedule_slp_instance): Ditto.
14911         (vect_schedule_slp): Ditto.
14912         (vect_slp_transform_bb): Ditto.
14913         * profile.c (read_profile_edge_counts): Ditto.
14914         (compute_branch_probabilities): Ditto.
14915         * coverage.c (get_coverage_counts): Ditto.
14917 2013-09-16  Diego Novillo  <dnovillo@google.com>
14919         * tree-core.h: Add missing comment lines from refactoring of tree.h.
14921 2013-09-16  Jan Hubicka  <jh@suse.cz>
14923         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14924         abstract functions; for static functions check the presence of body.
14926 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14928         * config/aarch64/aarch64-simd-builtins.def (fma): New.
14929         * config/aarch64/aarch64-simd.md
14930         (aarch64_mla_elt<mode>): New.
14931         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14932         (aarch64_mls_elt<mode>): Likewise.
14933         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14934         (aarch64_fma4_elt<mode>): Likewise.
14935         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14936         (aarch64_fma4_elt_to_128v2df): Likewise.
14937         (aarch64_fma4_elt_to_64df): Likewise.
14938         (fnma<mode>4): Likewise.
14939         (aarch64_fnma4_elt<mode>): Likewise.
14940         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14941         (aarch64_fnma4_elt_to_128v2df): Likewise.
14942         (aarch64_fnma4_elt_to_64df): Likewise.
14943         * config/aarch64/iterators.md (VDQSF): New.
14944         * config/aarch64/arm_neon.h
14945         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14946         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14948 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14950         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14951         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14952         (aarch64_mul3_elt_to_128df): Likewise.
14953         (aarch64_mul3_elt_to_64v2df): Likewise.
14954         * config/aarch64/iterators.md (VEL): Also handle DFmode.
14955         (VMUL): New.
14956         (VMUL_CHANGE_NLANES) Likewise.
14957         (h_con): Likewise.
14958         (f): Likewise.
14959         * config/aarch64/arm_neon.h
14960         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14962 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14964         * config/aarch64/arm_neon.h
14965         (vcvtx_high_f32_f64): Fix parameters.
14967 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14968             Uros Bizjak  <ubizjak@gmail.com>
14970         * config/alpha.c: Include tree-ssanames.h.
14972 2013-09-16  Richard Biener  <rguenther@suse.de>
14974         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14975         (dot_rdg_1): Handle control_dd.
14976         (create_edge_for_control_dependence): New function.
14977         (create_rdg_edges): Add control dependences if asked for.
14978         (build_rdg): Likewise.
14979         (generate_loops_for_partition): If there are not necessary
14980         control stmts remove all their dependencies.
14981         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14982         (distribute_loop): Pass on control dependences.
14983         (tree_loop_distribution): Compute control dependences and remove
14984         restriction on number of loop nodes.
14986 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
14988         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14989         for internal calls.
14991 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
14993         * cse.c (try_const_anchors): Punt on CC modes.
14995 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14997         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14999 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
15001         PR target/58382
15002         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
15003         calls to word_mode.
15005 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
15007         PR target/48094
15008         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
15009         seen.
15010         (darwin_objc1_section): Likewise.
15011         (darwin_file_end): Emit Image Info section when required.
15013 2013-09-14  Jan Hubicka  <jh@suse.cz>
15015         * tree-into-ssa.c (gate_into_ssa): New.
15016         (pass_data_build_ssa): Use it.
15017         * cgraph.h (expand_thunk): Update prototype.
15018         * cgraphunit.c (analyze_function): Expand thunks early.
15019         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
15020         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
15021         set lowered flag; do not add new function.
15022         (assemble_thunks_and_aliases): Update.
15023         * tree-ssa.c (gate_init_datastructures): New gate.
15024         (pass_data_init_datastructures): Use it.
15026 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
15028         PR target/58269
15029         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
15030         xmm register set described in the psABI.
15032 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
15034         * dwarf2out.c (should_emit_struct_debug): Add check
15035         for type_decl variable is not NULL.
15037 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
15039         * config.gcc: Use new winnt-c.c target hooks
15040         * config/t-winnt: New file
15041         * config/winnt-c.c: New file
15042         * doc/tm.texi.in: Document new hook
15043         * doc/tm.texi: Regenerated
15045 2013-09-13  Jan Hubicka  <jh@suse.cz>
15047         PR middle-end/58094
15048         * ipa-inline.c (check_callers): New function.
15049         (check_caller_edge): Remove.
15050         (want_inline_function_to_all_callers_p): Also permit alises that are
15051         called dirrectly.
15052         (inline_to_all_callers): Terminate the walk when devirtualization
15053         introduce new calls.
15055 2013-09-13  Jan Hubicka  <jh@suse.cz>
15057         * ipa-inline-analysis.c (struct growth_data): Add node.
15058         (do_estimate_growth_1): Fix detection of recursion.
15060 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
15062         PR tree-optimization/58392
15063         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
15064         to avoid shadowing of outer loop variable.  If
15065         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
15066         replace_by_duplicate_decl simduid of loops that have it set and
15067         set dest_cfun->has_simduid_loops and/or
15068         dest_cfun->has_force_vect_loops.
15069         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
15070         instead of maybe_lookup_decl.
15071         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
15072         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
15073         call.  Copy over force_vect and copy and remap simduid.  Set
15074         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
15075         (copy_cfg_body): Remove blocks_to_copy argument.  Use
15076         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
15077         caller.  Don't set cfun->has_simduid_loops and/or
15078         cfun->has_force_vect_loops here.
15079         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
15080         caller.
15081         (expand_call_inline, tree_function_versioning): Adjust copy_body
15082         callers.
15084 2013-09-13  Martin Jambor  <mjambor@suse.cz>
15086         PR bootstrap/58388
15087         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
15088         the assert if the edge was a speculative one.
15090 2013-09-13  Richard Biener  <rguenther@suse.de>
15092         * tree-data-ref.h (known_dependences_p): Move here ...
15093         * tree-loop-distribution.c (known_dependences_p): ... from here.
15094         (dump_rdg_component, debug_rdg_component): Remove.
15095         (dump_rdg): Adjust.
15096         (generate_loops_for_partition): Use gimple_uid instead of
15097         relying on matching stmt visit order.
15098         (rdg_build_partitions): Take starting stmt vector.
15099         (ldist_gen): Merge into ...
15100         (distribute_loop): ... this function.  Do not compute starting
15101         vertices vector.
15102         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
15104 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15106         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
15107         Set type attribute correctly. Set predicable_short_it attribute.
15108         (cmpsi_shiftsi): Remove %? from output template.
15110 2013-09-13  Richard Biener  <rguenther@suse.de>
15112         * tree-loop-distribution.c (struct rdg_component,
15113         rdg_defs_used_in_other_loops_p, free_rdg_components,
15114         rdg_build_components): Remove.
15115         (stmts_from_loop): Do not record virtual PHIs.
15116         (generate_loops_for_partition): Skip virtual PHIs.
15117         (build_rdg_partition_for_component): Rename to ...
15118         (build_rdg_partition_for_vertex): ... this and adjust.
15119         (rdg_build_partitions): Take a vector of starting vertices
15120         instead of components.  Remove unnecessary leftover handling.
15121         (ldist_gen): Do not build components or record other stores.
15122         (distribute_loop): Do not distribute loops containing stmts
15123         with side-effects.
15125 2013-09-13  Christian Bruel  <christian.bruel@st.com>
15127         PR target/58314
15128         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
15130 2013-09-13  Kai Tietz  <ktietz@redhat.com>
15132         * config.gcc: Separate cases for mingw and cygwin targets,
15133         and add 64-bit cygwin target case.
15135         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
15136         dll-export inline-functions.
15137         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15139 2013-09-13  Jeff Law  <law@redhat.com>
15141         PR middle-end/58387
15142         Revert:
15143         2013-09-06  Jeff Law  <law@redhat.com>
15145         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15146         edge implied equivalences into successor phis.
15148 2013-09-12  DJ Delorie  <dj@redhat.com>
15150         * config/rl78/rl78-virt.md: Change from | to \; for asm line
15151         separators.
15153 2013-09-12  Brooks Moses  <bmoses@google.com>
15155         PR driver/42955
15156         * Makefile.in: Do not install driver binaries in $(target)/bin.
15158 2013-09-12  DJ Delorie  <dj@redhat.com>
15160         * config/rl78/rl78.opt (mrelax): New.
15161         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15162         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15164         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15165         between SP and FP.
15166         (rl78_expand_epilogue): Likewise.
15168 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
15170         PR middle-end/58335
15171         * lra-eliminations.c (remove_reg_equal_offset_note): New.
15172         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15173         pointer elimination with using remove_reg_equal_offset_note.
15175 2013-09-12  DJ Delorie  <dj@redhat.com>
15177         * config/msp430/: New port.
15178         * config.gcc (msp430): Added.
15179         * doc/invoke.texi: Document MSP430 options.
15180         * doc/install.texi: Document msp430-elf
15181         * doc/md.texi: Document msp430-elf
15182         * doc/contrib.texi: Document msp430-elf
15184         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15185         PSImode.
15187 2013-09-12  Martin Jambor  <mjambor@suse.cz>
15189         PR ipa/58389
15190         * ipa-prop.c (remove_described_reference): Give up if the edge in the
15191         reference descriptor is NULL.
15192         (ipa_edge_removal_hook): If owning a reference descriptor, set its
15193         edge to NULL.
15195 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
15197         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15198         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15199         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15200         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15201         make_temp_ssa_name): move to tree-ssanames.h
15202         * tree-ssa-alias.h: Move prototype.
15203         * tree-ssa.h: Include tree-ssanames.h.
15204         * tree-ssanames.c (FREE_SSANAMES): Move to here.
15205         * tree-ssanames.h: New.  Move items from tree-flow*.h
15206         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15208 2013-09-12  Richard Biener  <rguenther@suse.de>
15210         PR tree-optimization/58404
15211         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15212         propagate non-invariant addresses into dereferences wrapped
15213         in component references.
15215 2013-09-12  Richard Biener  <rguenther@suse.de>
15217         PR tree-optimization/58402
15218         * passes.def: Move pass_late_warn_uninitialized later.
15220 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
15222         * tree-ssa.h: New.  Move content from tree-flow.h and
15223         tree-flow-inline.h.
15224         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15225         Move prototypes belonging to tree-ssa.c.
15226         * tree-flow-inline.h (redirect_edge_var_map_def,
15227         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15228         tree-ssa.h.
15229         * gimple.h: Adjust prototypes.
15230         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15231         to...
15232         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15233         * tree.h: Move prototype to tree-ssa.h.
15234         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15235         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15236         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15237         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15238         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15239         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15240         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15241         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15242         graphite-blocking.c, graphite-clast-to-gimple.c,
15243         graphite-dependences.c, graphite-interchange.c,
15244         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15245         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15246         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15247         ipa-reference.c, ipa-split.c, ipa-utils.c,
15248         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15249         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15250         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15251         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15252         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15253         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15254         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15255         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15256         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15257         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15258         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15259         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15260         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15261         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15262         value-prof.c, var-tracking.c,
15263         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15265 2013-09-12  Richard Biener  <rguenther@suse.de>
15267         PR tree-optimization/58396
15268         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15269         (build_rdg): Take a loop-nest parameter, fix memleaks.
15270         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15272 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
15274         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15275         for SLM.
15277 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
15279         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15280         The FMA instruction names should have a 'v' prefix.
15282 2013-09-12  Richard Biener  <rguenther@suse.de>
15284         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15285         (dot_rdg): Use popen instead of system in optional code.
15286         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15287         (already_processed_vertex_p): Adjust.
15288         (has_anti_or_output_dependence, predecessor_has_mem_write,
15289         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15290         rdg_flag_uses): Remove.
15291         (rdg_flag_vertex): Simplify.
15292         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15293         remove recursion.
15294         (build_rdg_partition_for_component): Process the first vertex
15295         of a component only.
15296         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15298 2013-09-12  Alan Modra  <amodra@gmail.com>
15300         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15302 2013-09-11  DJ Delorie  <dj@redhat.com>
15303             Nick Clifton  <nickc@redhat.com>
15305         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15306         (rl78_stack_based_mem): New.
15307         * config/rl78/constraints.md (Iv08): New.
15308         (Iv16): New.
15309         (Iv24): New.
15310         (Is09): New.
15311         (Is17): New.
15312         (Is25): New.
15313         (ISsi): New.
15314         (IShi): New.
15315         (ISqi): New.
15316         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15317         (movhi): Likewise.
15318         (movsi): Change from expand to insn-and-split.
15319         (ashrsi3): Clobber AX.
15320         (lshrsi3): New.
15321         (ashlsi3): New.
15322         (cbranchsi4): New.
15323         * config/rl78/rl78.md (CC_REG): Fix.
15324         (addsi3): Allow memory and immediate operands.
15325         (addsi3_internal): Split into...
15326         (addsi3_internal_virt): ...new, and ...
15327         (addsi3_internal_real): ...new.
15328         (subsi): New.
15329         (subsi3_internal_virt): New.
15330         (subsi3_internal_real): New.
15331         (mulsi3): Add memory operand.
15332         (mulsi3_rl78): Likewise.
15333         (mulsi3_g13): Likewise.
15334         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15335         (cbranchqi4_real): Add more constraint options.
15336         (cbranchhi4_real): Expand pattern.
15337         (cbranchhi4_real_signed): New.
15338         (cbranchhi4_real_inverted): New.
15339         (cbranchsi4_real_lt): New.
15340         (cbranchsi4_real_ge): New.
15341         (cbranchsi4_real_signed): New.
15342         (cbranchsi4_real): New.
15343         (peephole2): New.
15344         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15345         constant shifts.
15346         (lshrsi3_virt): Likewise.
15347         (ashlsi3_virt): Likewise.
15348         (cbranchqi4_virt_signed): New.
15349         (cbranchhi4_virt_signed): New.
15350         (cbranchsi4_virt): New.
15351         * config/rl78/rl78.c: Whitespace fixes throughout.
15352         (move_elim_pass): New.
15353         (pass_data_rl78_move_elim): New.
15354         (pass_rl78_move_elim): New.
15355         (make_pass_rl78_move_elim): New.
15356         (rl78_devirt_info): Run devirt earlier.
15357         (rl78_move_elim_info): New.
15358         (rl78_asm_file_start): Register it.
15359         (rl78_split_movsi): New.
15360         (rl78_as_legitimate_address): Allow virtual base registers when
15361         appropriate.
15362         (rl78_addr_space_convert): Remove spurious debug stuff.
15363         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15364         (rl78_print_operand): More cases for not printing '#'.
15365         (rl78_expand_compare): Remove most of the logic.
15366         (content_memory): New.
15367         (clear_content_memory): New.
15368         (get_content_index): New.
15369         (get_content_name): New.
15370         (display_content_memory): New.
15371         (update_content): New.
15372         (record_content): New.
15373         (already_contains): New.
15374         (insn_ok_now): Re-recog insns with virtual registers.
15375         (add_postponed_content_update): New.
15376         (process_postponed_content_update): New.
15377         (gen_and_emit_move): New.
15378         (transcode_memory_rtx): Record new location content.
15379         Use gen_and_emit_move.
15380         (force_into_acc): New.
15381         (move_to_acc): Use gen_and_emit_move.
15382         (move_from_acc): Likewise.
15383         (move_acc_to_reg): Likewise.
15384         (move_to_x): Likewise.
15385         (move_to_hl): Likewise.
15386         (move_to_de): Likewise.
15387         (rl78_alloc_physical_registers_op1): Record location content.
15388         (has_constraint): New.
15389         (rl78_alloc_physical_registers_op2): Record location content.
15390         Optimize use of HL.
15391         (rl78_alloc_physical_registers_ro1): Likewise.
15392         (rl78_alloc_physical_registers_cmp): Likewise.
15393         (rl78_alloc_physical_registers_umul): Likewise.
15394         (rl78_alloc_address_registers_macax): New.
15395         (rl78_alloc_physical_registers): Initialize and set location
15396         content memory as needed.
15397         (rl78_reorg): Make sure split2 is called.
15398         (rl78_rtx_costs): New.
15400 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
15402         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15403         for (not (neg ...)) and (neg (not ...)) cases.
15405 2013-09-11  Richard Biener  <rguenther@suse.de>
15407         PR middle-end/58377
15408         * passes.def: Split critical edges before late uninit warning passes.
15409         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15411 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
15413         PR tree-optimization/58385
15414         * fold-const.c (build_range_check): If both low and high are NULL,
15415         use omit_one_operand_loc to preserve exp side-effects.
15417 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15419         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15421 2013-09-11  Richard Biener  <rguenther@suse.de>
15423         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15424         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15425         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15426         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15427         stmts_from_loop, known_dependences_p, build_empty_rdg,
15428         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15429         * tree-loop-distribution.c: ... here.
15430         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15431         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15432         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15433         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15434         * tree-loop-distribution.c: ... here.
15435         * tree-loop-distribution.c: Include gimple-pretty-print.h.
15436         (struct partition_s): Add loops member.
15437         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15438         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15439         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15441 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15442             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15443             Sergey Lega  <sergey.s.lega@intel.com>
15444             Anna Tikhonova  <anna.tikhonova@intel.com>
15445             Ilya Tocar  <ilya.tocar@intel.com>
15446             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15447             Ilya Verbin  <ilya.verbin@intel.com>
15448             Kirill Yukhin  <kirill.yukhin@intel.com>
15449             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15451         * config/i386/constraints.md (k): New.
15452         (Yk): Ditto.
15453         * config/i386/i386.c (const regclass_map): Add new mask registers.
15454         (dbx_register_map): Ditto.
15455         (dbx64_register_map): Ditto.
15456         (svr4_dbx_register_map): Ditto.
15457         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15458         disabled.
15459         (ix86_preferred_reload_class): Disable constants for mask registers.
15460         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15461         (ix86_hard_regno_mode_ok): Support new mask registers.
15462         (x86_order_regs_for_local_alloc): Ditto.
15463         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15464         (FIXED_REGISTERS): Add new mask registers.
15465         (CALL_USED_REGISTERS): Ditto.
15466         (REG_ALLOC_ORDER): Ditto.
15467         (VALID_MASK_REG_MODE): New.
15468         (FIRST_MASK_REG): Ditto.
15469         (LAST_MASK_REG): Ditto.
15470         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15471         (MAYBE_MASK_CLASS_P): New.
15472         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15473         (REG_CLASS_CONTENTS): Ditto.
15474         (MASK_REGNO_P): New.
15475         (ANY_MASK_REG_P): Ditto.
15476         (HI_REGISTER_NAMES): Add new mask registers.
15477         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15478         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15479         mask registers.
15480         (attribute "type"): Add mskmov, msklog.
15481         (attribute "length_immediate"): Support them.
15482         (attribute "memory"): Ditto.
15483         (attribute "prefix_0f"): Ditto.
15484         (*movhi_internal): Support new mask registers.
15485         (*movqi_internal): Ditto.
15486         (define_split): Split out clobber pattern is a logic
15487         insn on mask registers.
15488         (*k<logic><mode>): New.
15489         (*andhi_1): Extend to support mask regs.
15490         (*andqi_1): Extend to support mask regs.
15491         (kandn<mode>): New.
15492         (define_split): Split and-not to and and not if operands
15493         are not mask regs.
15494         (*<code><mode>_1): Separate HI mode to new pattern...
15495         (*<code>hi_1): This.
15496         (*<code>qi_1): Extend to support mask regs.
15497         (kxnor<mode>): New.
15498         (kortestzhi): Ditto.
15499         (kortestchi): Ditto.
15500         (kunpckhi): Ditto.
15501         (*one_cmpl<mode>2_1): Remove HImode and handle it...
15502         (*one_cmplhi2_1): ...Here, now with mask registers support.
15503         (*one_cmplqi2_1): Support new mask registers.
15504         (HI/QImode arithmetics splitter): Don't split if mask registers
15505         are used.
15506         (HI/QImode not splitter): Ditto.
15507         * config/i386/predicated.md (mask_reg_operand): New.
15508         (general_reg_operand): Ditto.
15510 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15512         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15513         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15515 2013-09-10  Jeff Law  <law@redhat.com>
15517         PR tree-optimization/58380
15518         * tree-ssa-threadupdate.c (thread_block): Recognize another case
15519         of threading through a buried loop header.
15521         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15522         return value for single successor case.
15524 2013-09-10  Jan Hubicka  <jh@suse.cz>
15526         * ipa-devirt.c (ipa_devirt): Enable with LTO.
15528 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
15530         PR target/58361
15531         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15532         support conditional execution.
15533         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15535 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
15537         * lra.c (lra): Clear lra_optional_reload_pseudos before every
15538         constraint pass.
15539         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15540         Check destination too to check move insn.
15541         (undo_optional_reloads): Add check that the original peudo did not
15542         changed its allocation and the optional reload was inherited on last
15543         inheritance pass.  Break loop after deciding to keep optional reload.
15544         (lra_undo_inheritance): Add check that inherited pseudo still in
15545         memory.
15547 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
15549         * config/aarch64/aarch64.md (generic_sched): New.
15550         * config/aarch64/aarch64-generic.md (load): Make conditional
15551         on generic_sched attribute.
15552         (nonload): Likewise.
15554 2013-09-10  Jan Hubicka  <jh@suse.cz>
15556         * lto-cgraph.c: Include ipa-utils.h.
15557         (compute_ltrans_boundary): Also add possible targets into the boundary.
15559 2013-09-10  Jan Hubicka  <jh@suse.cz>
15561         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15562         VAR_DECL of vtable rather than full expression.
15564 2013-09-10  Jan Hubicka  <jh@suse.cz>
15565             Paolo Carlini  <paolo.carlini@oracle.com>
15567         * cgraphunit.c (analyze_functions): Save input_location, set it
15568         to UNKNOWN_LOCATION and restore it at the end.
15570 2013-09-10  Martin Jambor  <mjambor@suse.cz>
15572         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15573         represented by a thunk.
15575 2013-09-10  Jeff Law  <law@redhat.com>
15577         PR tree-optimization/58343
15578         * tree-ssa-threadupdate.c (thread_block): Identify and disable
15579         jump threading requests through loop headers buried in the middle
15580         of a jump threading path.
15582         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15583         in return value/type.
15585 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
15587         PR rtl-optimization/58365
15588         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15589         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15590         it differs.
15592 2013-09-10  Richard Biener  <rguenther@suse.de>
15594         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15595         * tree-data-ref.c (create_rdg_vertices): Collect all data
15596         references, signal failure to the caller, use data-ref API.
15597         (build_rdg): Compute data references only once.  Maintain lifetime
15598         of data references and data dependences from within RDG.
15599         (free_rdg): Free dependence relations.
15600         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15601         inventing extra dependences.
15602         (distribute_loop): Update for RDG API changes.
15604 2013-09-10  Kai Tietz  <ktietz@redhat.com>
15606         * doc/invoke.texi (fms-extensions): Document changed
15607         behavior for ms-abi targets.
15608         * config/i386/i386.c (ix86_option_override_internal):
15609         Set default value of option -fms-extension for ms-abi targets.
15611 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15613         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15615 2013-09-10  Alan Modra  <amodra@gmail.com>
15617         PR target/58330
15618         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15620 2013-09-10  Alan Modra  <amodra@gmail.com>
15622         * config/rs6000/predicates.md (add_cint_operand): New.
15623         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15624         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15625         using add_cint_operand.
15626         (largetoc_high_plus_aix): Likewise.
15628 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
15630         PR tree-optimization/58364
15631         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15632         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15633         the current range can't be an unconditional true or false.
15635 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
15637         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15639 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
15641         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15643 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15645         PR c++/43452
15646         * doc/invoke.texi (-Wdelete-incomplete): Document it.
15648 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
15650         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15651         NO_REGS for immediate that can't be moved directly into FP_REGS.
15653 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15655         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15656         comparison with negated operand.
15657         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15658         RTL form.
15660 2013-09-09  Richard Biener  <rguenther@suse.de>
15662         PR middle-end/58326
15663         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15664         of a subloop record all its block as affecting loop-closed SSA form.
15666 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15668         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15669         of an rtx/bitpos pair.
15670         (store_fixed_bit_field): Update accordingly.
15672 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15674         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15675         GEN_INT.
15676         * builtins.c (expand_errno_check): Likewise.
15677         * dwarf2cfi.c (init_return_column_size): Likewise.
15678         * except.c (sjlj_mark_call_sites): Likewise.
15679         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15680         * lra-constraints.c (emit_inc): Likewise.
15681         * ree.c (combine_set_extension): Likewise.
15682         * regmove.c (fixup_match_2): Likewise.
15683         * reload1.c (inc_for_reload): Likewise.
15685 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15687         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15688         (force_to_mode, simplify_shift_const_1, simplify_comparison):
15689         Use gen_int_mode with the mode of the associated simplify_* call.
15690         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15691         * expmed.c (expand_shift_1): Likewise.
15692         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15693         * loop-iv.c (iv_number_of_iterations): Likewise.
15694         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15695         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15697 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15699         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15700         of the associated expand_* call.
15701         (asan_emit_stack_protection): Likewise.
15702         * builtins.c (round_trampoline_addr): Likewise.
15703         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15704         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15705         (emit_store_flag): Likewise.
15706         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15707         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15708         Likewise.
15709         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15710         * ifcvt.c (noce_try_store_flag_constants): Likewise.
15711         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15712         * modulo-sched.c (generate_prolog_epilog): Likewise.
15713         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15714         (expand_ctz, expand_ffs, expand_unop): Likewise.
15716 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15718         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15719         of the associated gen_rtx_* call.
15720         * caller-save.c (init_caller_save): Likewise.
15721         * combine.c (find_split_point, make_extraction): Likewise.
15722         (make_compound_operation): Likewise.
15723         * dwarf2out.c (mem_loc_descriptor): Likewise.
15724         * explow.c (plus_constant, probe_stack_range): Likewise.
15725         * expmed.c (expand_mult_const): Likewise.
15726         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15727         * reload1.c (init_reload): Likewise.
15728         * valtrack.c (cleanup_auto_inc_dec): Likewise.
15729         * var-tracking.c (adjust_mems): Likewise.
15730         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15731         rather than gen_rtx_fmt_ee.
15733 2013-09-09  Jan Hubicka  <jh@suse.cz>
15735         PR middle-end/58294
15736         * value-prof.c (gimple_ic): Copy also abnormal edges.
15738 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15740         * asan.c (asan_shadow_cst): Use gen_int_mode.
15742 2013-09-08  Jan Hubicka  <jh@suse.cz>
15744         * ipa-profile.c: Add toplevel comment.
15745         (ipa_propagate_frequency_1): Be more conservative when profile is read.
15746         (contains_hot_call_p): New function.
15747         (ipa_propagate_frequency): Set frequencies based on counts when
15748         profile is read.
15749         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15750         profile; do not tamper with profile after inlining if it is read.
15752 2013-09-08  Jan Hubicka  <jh@suse.cz>
15754         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15755         speculative edges.
15757 2013-09-08  Jan Hubicka  <jh@suse.cz>
15759         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15760         summary generation.
15762 2013-09-08  Jeff Law  <law@redhat.com>
15764         PR bootstrap/58340
15765         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15766         of 'found'.
15768 2013-09-08  Andi Kleen  <ak@linux.intel.com>
15770         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15772 2013-09-08  Jan Hubicka  <jh@suse.cz>
15774         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15776 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
15778         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15779         for non-debug insns.
15780         * lra.c (new_insn_reg): Take the containing insn as a parameter.
15781         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15782         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15783         accordingly.
15785 2013-09-08  Jan Hubicka  <jh@suse.cz>
15787         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15788         targets and devirtualize to BUILT_IN_UNREACHABLE.
15789         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15790         * ipa.c (walk_polymorphic_call_targets): New function.
15791         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15792         functions; use the new timevar.
15793         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15794         was removed from the program.
15795         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15796         not consider it in the walk when its vtable is dead.
15797         (possible_polymorphic_call_targets_1): Pass anonymous flag to
15798         record_binfo.
15799         (devirt_variable_node_removal_hook): New function.
15800         (possible_polymorphic_call_targets): Also register
15801         devirt_variable_node_removal_hook.
15802         (ipa_devirt): Do not do non-speculative devirtualization.
15803         (gate_ipa_devirt): One execute if devirtualizing speculatively.
15805 2013-09-08  Jan Hubicka  <jh@suse.cz>
15807         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15808         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15809         varpool_remove_variable_insertion_hook): Declare.
15810         * varpool.c (varpool_node_hook_list): New structure.
15811         (first_varpool_node_removal_hook,
15812         first_varpool_variable_insertion_hook): New variables.
15813         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15814         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15815         varpool_remove_variable_insertion_hook,
15816         varpool_call_variable_insertion_hooks): New functions.
15817         (varpool_remove_node): Use it.
15819 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
15821         PR c++/54941
15822         * diagnostic.c (diagnostic_build_prefix): When s.file is
15823         "<built-in>" don't output line and column numbers.
15825 2013-09-06  Jan Hubicka  <jh@suse.cz>
15827         * cgraphunit.c (expand_thunk): Get body before touching arguments.
15828         * lto-streamer-out.c: Stream thunks, too.
15829         * lto-streamer-in.c (input_function): Pop cfun here
15830         (lto_read_body): Instead of here.
15832 2013-09-06  Caroline Tice  <cmtice@google.com>
15834         * doc/install.texi: Add documentation for the --enable-vtable-verify
15835         and the --disable-libvtv configure options.
15837 2013-09-06  Jeff Law  <law@redhat.com>
15839         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15840         edge implied equivalences into successor phis.
15842 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
15844         * resource.c (mark_referenced_resources): Handle COND_EXEC.
15846 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
15848         * resource.c (mark_target_live_regs): Compute resources taking
15849         into account if a call is predicated or not.
15851 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15853         * toplev.c (output_stack_usage): Be prepared for suffixes created by
15854         the compiler in the function names.
15856 2013-09-06  Jan Hubicka  <jh@suse.cz>
15858         PR middle-end/58094
15859         * ipa-inline.c (has_caller_p): New function.
15860         (want_inline_function_to_all_callers_p): Use it.
15861         (sum_callers, inline_to_all_callers): Break out from ...
15862         (ipa_inline): ... here.
15864 2013-09-06  Jan Hubicka  <jh@suse.cz>
15866         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15867         only when AVX is enabled.
15869 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15871         * config/aarch64/aarch64.md
15872         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15873         is fpsimd_<load/store>2.
15874         (load_pair<mode>): Likewise.
15875         (store_pair<mode>): Likewise.
15877 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15879         * config/arm/types.md (type): Add "mrs" type.
15880         * config/aarch64/aarch64.md
15881         (aarch64_load_tp_hard): Make type "mrs".
15882         * config/arm/arm.md
15883         (load_tp_hard): Make type "mrs".
15884         * config/arm/cortex-a15.md: Update with new attributes.
15885         * config/arm/cortex-a5.md: Update with new attributes.
15886         * config/arm/cortex-a53.md: Update with new attributes.
15887         * config/arm/cortex-a7.md: Update with new attributes.
15888         * config/arm/cortex-a8.md: Update with new attributes.
15889         * config/arm/cortex-a9.md: Update with new attributes.
15890         * config/arm/cortex-m4.md: Update with new attributes.
15891         * config/arm/cortex-r4.md: Update with new attributes.
15892         * config/arm/fa526.md: Update with new attributes.
15893         * config/arm/fa606te.md: Update with new attributes.
15894         * config/arm/fa626te.md: Update with new attributes.
15895         * config/arm/fa726te.md: Update with new attributes.
15897 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15899         * config/aarch64/aarch64.md
15900         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15901         (*movtf_aarch64): Likewise.
15902         * config/arm/arm.md
15903         (thumb1_movdi_insn): Use "multiple" for type where more than one
15904         instruction is used for a move.
15905         (*arm32_movhf): Likewise.
15906         (*thumb_movdf_insn): Likewise.
15908 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15910         * config/arm/types.md (type): Rename fcpys to fmov.
15911         * config/arm/vfp.md
15912         (*arm_movsi_vfp): Rename type fcpys as fmov.
15913         (*thumb2_movsi_vfp): Likewise
15914         (*movhf_vfp_neon): Likewise
15915         (*movhf_vfp): Likewise
15916         (*movsf_vfp): Likewise
15917         (*thumb2_movsf_vfp): Likewise
15918         (*movsfcc_vfp): Likewise
15919         (*thumb2_movsfcc_vfp): Likewise
15920         * config/aarch64/aarch64-simd.md
15921         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15922         * config/aarch64/aarch64.md
15923         (*movsi_aarch64): Replace type mov_reg with fmovs.
15924         (*movdi_aarch64): Likewise
15925         (*movsf_aarch64): Likewise
15926         (*movdf_aarch64): Likewise
15927         * config/arm/arm.c
15928         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15929         * config/arm/iwmmxt.md
15930         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15931         * config/arm/arm1020e.md: Update with new attributes.
15932         * config/arm/cortex-a15-neon.md: Update with new attributes.
15933         * config/arm/cortex-a5.md: Update with new attributes.
15934         * config/arm/cortex-a53.md: Update with new attributes.
15935         * config/arm/cortex-a7.md: Update with new attributes.
15936         * config/arm/cortex-a8-neon.md: Update with new attributes.
15937         * config/arm/cortex-a9.md: Update with new attributes.
15938         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15939         * config/arm/cortex-r4f.md: Update with new attributes.
15940         * config/arm/marvell-pj4.md: Update with new attributes.
15941         * config/arm/vfp11.md: Update with new attributes.
15943 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15945         * config/aarch64/aarch64.md
15946         (*madd<mode>): Fix type attribute.
15947         (*maddsi_uxtw): Likewise.
15948         (*msub<mode>): Likewise.
15949         (*msubsi_uxtw): Likewise.
15950         (<su_optab>maddsidi4): Likewise.
15951         (<su_optab>msubsidi4): Likewise.
15953 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15955         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15956         * config/arm/arm.md (core_cycles): Remove fdiv.
15957         * config/arm/vfp.md:
15958         (*sqrtsf2_vfp): Update for attribute changes.
15959         (*sqrtdf2_vfp): Likewise.
15960         * config/aarch64/aarch64.md:
15961         (sqrt<mode>2): Update for attribute changes.
15962         * config/arm/arm1020e.md: Update with new attributes.
15963         * config/arm/cortex-a15-neon.md: Update with new attributes.
15964         * config/arm/cortex-a5.md: Update with new attributes.
15965         * config/arm/cortex-a53.md: Update with new attributes.
15966         * config/arm/cortex-a7.md: Update with new attributes.
15967         * config/arm/cortex-a8-neon.md: Update with new attributes.
15968         * config/arm/cortex-a9.md: Update with new attributes.
15969         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15970         * config/arm/cortex-r4f.md: Update with new attributes.
15971         * config/arm/marvell-pj4.md: Update with new attributes.
15972         * config/arm/vfp11.md: Update with new attributes.
15974 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15976         * config/arm/types.md
15977         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15978         * config/aarch64/aarch64.md
15979         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15980         new attributes.
15981         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15982         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15983         (float<GPI:mode><GPF:mode>2): Likewise.
15984         * config/arm/vfp.md
15985         (*truncsisf2_vfp): Update with new attributes.
15986         (*truncsidf2_vfp): Likewise.
15987         (fixuns_truncsfsi2): Likewise.
15988         (fixuns_truncdfsi2): Likewise.
15989         (*floatsisf2_vfp): Likewise.
15990         (*floatsidf2_vfp): Likewise.
15991         (floatunssisf2): Likewise.
15992         (floatunssidf2): Likewise.
15993         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15994         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15995         * config/arm/arm1020e.md: Update with new attributes.
15996         * config/arm/cortex-a15-neon.md: Update with new attributes.
15997         * config/arm/cortex-a5.md: Update with new attributes.
15998         * config/arm/cortex-a53.md: Update with new attributes.
15999         * config/arm/cortex-a7.md: Update with new attributes.
16000         * config/arm/cortex-a8-neon.md: Update with new attributes.
16001         * config/arm/cortex-a9.md: Update with new attributes.
16002         * config/arm/cortex-m4-fpu.md: Update with new attributes.
16003         * config/arm/cortex-r4f.md: Update with new attributes.
16004         * config/arm/marvell-pj4.md: Update with new attributes.
16005         * config/arm/vfp11.md: Update with new attributes.
16007 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16009         * config/aarch64/arm_neon.h
16010         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
16011         (vqtbx<1,2,3,4><q>_s8): Likewise.
16013 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16015         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
16016         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
16017         (add<mode>3): Add type attribute.
16018         (add<mode>3): Likewise.
16019         (usadd<mode>3): Likewise.
16020         (ssadd<mode>3): Likewise.
16021         (sub<mode>3): Likewise.
16022         (sub<mode>3): Likewise.
16023         (ussub<mode>3): Likewise.
16024         (sssub<mode>3): Likewise.
16025         (ssmulsa3): Likewise.
16026         (usmulusa3): Likewise.
16027         (arm_usatsihi): Likewise.
16028         * config/arm/vfp.md
16029         (*movdi_vfp): Add types for all instructions.
16030         (*movdi_vfp_cortexa8): Likewise.
16031         (*movhf_vfp_neon): Likewise.
16032         (*movhf_vfp): Likewise.
16033         (*movdf_vfp): Likewise.
16034         (*thumb2_movdf_vfp): Likewise.
16035         (*thumb2_movdfcc_vfp): Likewise.
16036         * config/arm/arm.md: Add type attribute to all insn patterns.
16037         (*thumb1_adddi3): Add type attribute.
16038         (*arm_adddi3): Likewise.
16039         (*adddi_sesidi_di): Likewise.
16040         (*adddi_zesidi_di): Likewise.
16041         (*thumb1_addsi3): Likewise.
16042         (addsi3_compare0): Likewise.
16043         (*addsi3_compare0_scratch): Likewise.
16044         (*compare_negsi_si): Likewise.
16045         (cmpsi2_addneg): Likewise.
16046         (*addsi3_carryin_<optab>): Likewise.
16047         (*addsi3_carryin_alt2_<optab>): Likewise.
16048         (*addsi3_carryin_clobercc_<optab>): Likewise.
16049         (*subsi3_carryin): Likewise.
16050         (*subsi3_carryin_const): Likewise.
16051         (*subsi3_carryin_compare): Likewise.
16052         (*subsi3_carryin_compare_const): Likewise.
16053         (*arm_subdi3): Likewise.
16054         (*thumb_subdi3): Likewise.
16055         (*subdi_di_zesidi): Likewise.
16056         (*subdi_di_sesidi): Likewise.
16057         (*subdi_zesidi_di): Likewise.
16058         (*subdi_sesidi_di): Likewise.
16059         (*subdi_zesidi_ze): Likewise.
16060         (thumb1_subsi3_insn): Likewise.
16061         (*arm_subsi3_insn): Likewise.
16062         (*anddi3_insn): Likewise.
16063         (*anddi_zesidi_di): Likewise.
16064         (*anddi_sesdi_di): Likewise.
16065         (*ne_zeroextracts): Likewise.
16066         (*ne_zeroextracts): Likewise.
16067         (*ite_ne_zeroextr): Likewise.
16068         (*ite_ne_zeroextr): Likewise.
16069         (*anddi_notdi_di): Likewise.
16070         (*anddi_notzesidi): Likewise.
16071         (*anddi_notsesidi): Likewise.
16072         (andsi_notsi_si): Likewise.
16073         (thumb1_bicsi3): Likewise.
16074         (*iordi3_insn): Likewise.
16075         (*iordi_zesidi_di): Likewise.
16076         (*iordi_sesidi_di): Likewise.
16077         (*thumb1_iorsi3_insn): Likewise.
16078         (*xordi3_insn): Likewise.
16079         (*xordi_zesidi_di): Likewise.
16080         (*xordi_sesidi_di): Likewise.
16081         (*arm_xorsi3): Likewise.
16082         (*andsi_iorsi3_no): Likewise.
16083         (*smax_0): Likewise.
16084         (*smax_m1): Likewise.
16085         (*arm_smax_insn): Likewise.
16086         (*smin_0): Likewise.
16087         (*arm_smin_insn): Likewise.
16088         (*arm_umaxsi3): Likewise.
16089         (*arm_uminsi3): Likewise.
16090         (*minmax_arithsi): Likewise.
16091         (*minmax_arithsi_): Likewise.
16092         (*satsi_<SAT:code>): Likewise.
16093         (arm_ashldi3_1bit): Likewise.
16094         (arm_ashrdi3_1bit): Likewise.
16095         (arm_lshrdi3_1bit): Likewise.
16096         (*arm_negdi2): Likewise.
16097         (*thumb1_negdi2): Likewise.
16098         (*arm_negsi2): Likewise.
16099         (*thumb1_negsi2): Likewise.
16100         (*negdi_extendsid): Likewise.
16101         (*negdi_zero_extend): Likewise.
16102         (*arm_abssi2): Likewise.
16103         (*thumb1_abssi2): Likewise.
16104         (*arm_neg_abssi2): Likewise.
16105         (*thumb1_neg_abss): Likewise.
16106         (one_cmpldi2): Likewise.
16107         (extend<mode>di2): Likewise.
16108         (*compareqi_eq0): Likewise.
16109         (*arm_extendhisi2addsi): Likewise.
16110         (*arm_movdi): Likewise.
16111         (*thumb1_movdi_insn): Likewise.
16112         (*arm_movt): Likewise.
16113         (*thumb1_movsi_insn): Likewise.
16114         (pic_add_dot_plus_four): Likewise.
16115         (pic_add_dot_plus_eight): Likewise.
16116         (tls_load_dot_plus_eight): Likewise.
16117         (*thumb1_movhi_insn): Likewise.
16118         (*thumb1_movsf_insn): Likewise.
16119         (*movdf_soft_insn): Likewise.
16120         (*thumb_movdf_insn): Likewise.
16121         (cbranchsi4_insn): Likewise.
16122         (cbranchsi4_scratch): Likewise.
16123         (*negated_cbranchsi4): Likewise.
16124         (*tbit_cbranch): Likewise.
16125         (*tlobits_cbranch): Likewise.
16126         (*tstsi3_cbranch): Likewise.
16127         (*cbranchne_decr1): Likewise.
16128         (*addsi3_cbranch): Likewise.
16129         (*addsi3_cbranch_scratch): Likewise.
16130         (*arm_cmpdi_insn): Likewise.
16131         (*arm_cmpdi_unsig): Likewise.
16132         (*arm_cmpdi_zero): Likewise.
16133         (*thumb_cmpdi_zero): Likewise.
16134         (*deleted_compare): Likewise.
16135         (*mov_scc): Likewise.
16136         (*mov_negscc): Likewise.
16137         (*mov_notscc): Likewise.
16138         (*cstoresi_eq0_thumb1_insn): Likewise.
16139         (cstoresi_nltu_thumb1): Likewise.
16140         (cstoresi_ltu_thu): Likewise.
16141         (thumb1_addsi3_addgeu): Likewise.
16142         (*arm_jump): Likewise.
16143         (*thumb_jump): Likewise.
16144         (*check_arch2): Likewise.
16145         (arm_casesi_internal): Likewise.
16146         (thumb1_casesi_dispatch): Likewise.
16147         (*arm_indirect_jump): Likewise.
16148         (*thumb1_indirect_jump): Likewise.
16149         (nop): Likewise.
16150         (*and_scc): Likewise.
16151         (*ior_scc): Likewise.
16152         (*compare_scc): Likewise.
16153         (*cond_move): Likewise.
16154         (*cond_arith): Likewise.
16155         (*cond_sub): Likewise.
16156         (*cmp_ite0): Likewise.
16157         (*cmp_ite1): Likewise.
16158         (*cmp_and): Likewise.
16159         (*cmp_ior): Likewise.
16160         (*ior_scc_scc): Likewise.
16161         (*ior_scc_scc_cmp): Likewise.
16162         (*and_scc_scc): Likewise.
16163         (*and_scc_scc_cmp): Likewise.
16164         (*and_scc_scc_nod): Likewise.
16165         (*negscc): Likewise.
16166         (movcond_addsi): Likewise.
16167         (movcond): Likewise.
16168         (*ifcompare_plus_move): Likewise.
16169         (*if_plus_move): Likewise.
16170         (*ifcompare_move_plus): Likewise.
16171         (*if_move_plus): Likewise.
16172         (*ifcompare_arith_arith): Likewise.
16173         (*if_arith_arith): Likewise.
16174         (*ifcompare_arith_move): Likewise.
16175         (*if_arith_move): Likewise.
16176         (*ifcompare_move_arith): Likewise.
16177         (*if_move_arith): Likewise.
16178         (*ifcompare_move_not): Likewise.
16179         (*if_move_not): Likewise.
16180         (*ifcompare_not_move): Likewise.
16181         (*if_not_move): Likewise.
16182         (*ifcompare_shift_move): Likewise.
16183         (*if_shift_move): Likewise.
16184         (*ifcompare_move_shift): Likewise.
16185         (*if_move_shift): Likewise.
16186         (*ifcompare_shift_shift): Likewise.
16187         (*ifcompare_not_arith): Likewise.
16188         (*ifcompare_arith_not): Likewise.
16189         (*if_arith_not): Likewise.
16190         (*ifcompare_neg_move): Likewise.
16191         (*if_neg_move): Likewise.
16192         (*ifcompare_move_neg): Likewise.
16193         (*if_move_neg): Likewise.
16194         (prologue_thumb1_interwork): Likewise.
16195         (*cond_move_not): Likewise.
16196         (*sign_extract_onebit): Likewise.
16197         (*not_signextract_onebit): Likewise.
16198         (stack_tie): Likewise.
16199         (align_4): Likewise.
16200         (align_8): Likewise.
16201         (consttable_end): Likewise.
16202         (consttable_1): Likewise.
16203         (consttable_2): Likewise.
16204         (consttable_4): Likewise.
16205         (consttable_8): Likewise.
16206         (consttable_16): Likewise.
16207         (*thumb1_tablejump): Likewise.
16208         (prefetch): Likewise.
16209         (force_register_use): Likewise.
16210         (thumb_eh_return): Likewise.
16211         (load_tp_hard): Likewise.
16212         (load_tp_soft): Likewise.
16213         (tlscall): Likewise.
16214         (*arm_movtas_ze): Likewise.
16215         (*arm_rev): Likewise.
16216         (*arm_revsh): Likewise.
16217         (*arm_rev16): Likewise.
16218         * config/arm/thumb2.md
16219         (*thumb2_smaxsi3): Likewise.
16220         (*thumb2_sminsi3): Likewise.
16221         (*thumb32_umaxsi3): Likewise.
16222         (*thumb2_uminsi3): Likewise.
16223         (*thumb2_negdi2): Likewise.
16224         (*thumb2_abssi2): Likewise.
16225         (*thumb2_neg_abss): Likewise.
16226         (*thumb2_movsi_insn): Likewise.
16227         (tls_load_dot_plus_four): Likewise.
16228         (*thumb2_movhi_insn): Likewise.
16229         (*thumb2_mov_scc): Likewise.
16230         (*thumb2_mov_negs): Likewise.
16231         (*thumb2_mov_negs): Likewise.
16232         (*thumb2_mov_nots): Likewise.
16233         (*thumb2_mov_nots): Likewise.
16234         (*thumb2_movsicc_): Likewise.
16235         (*thumb2_movsfcc_soft_insn): Likewise.
16236         (*thumb2_indirect_jump): Likewise.
16237         (*thumb2_and_scc): Likewise.
16238         (*thumb2_ior_scc): Likewise.
16239         (*thumb2_ior_scc_strict_it): Likewise.
16240         (*thumb2_cond_move): Likewise.
16241         (*thumb2_cond_arith): Likewise.
16242         (*thumb2_cond_ari): Likewise.
16243         (*thumb2_cond_sub): Likewise.
16244         (*thumb2_negscc): Likewise.
16245         (*thumb2_movcond): Likewise.
16246         (thumb2_casesi_internal): Likewise.
16247         (thumb2_casesi_internal_pic): Likewise.
16248         (*thumb2_alusi3_short): Likewise.
16249         (*thumb2_mov<mode>_shortim): Likewise.
16250         (*thumb2_addsi_short): Likewise.
16251         (*thumb2_subsi_short): Likewise.
16252         (thumb2_addsi3_compare0): Likewise.
16253         (*thumb2_cbz): Likewise.
16254         (*thumb2_cbnz): Likewise.
16255         (*thumb2_one_cmplsi2_short): Likewise.
16256         (*thumb2_negsi2_short): Likewise.
16257         (*orsi_notsi_si): Likewise.
16258         * config/arm/arm1020e.md: Update with new attributes.
16259         * config/arm/arm1026ejs.md: Update with new attributes.
16260         * config/arm/arm1136jfs.md: Update with new attributes.
16261         * config/arm/arm926ejs.md: Update with new attributes.
16262         * config/arm/cortex-a15.md: Update with new attributes.
16263         * config/arm/cortex-a5.md: Update with new attributes.
16264         * config/arm/cortex-a53.md: Update with new attributes.
16265         * config/arm/cortex-a7.md: Update with new attributes.
16266         * config/arm/cortex-a8.md: Update with new attributes.
16267         * config/arm/cortex-a9.md: Update with new attributes.
16268         * config/arm/cortex-m4.md: Update with new attributes.
16269         * config/arm/cortex-r4.md: Update with new attributes.
16270         * config/arm/fa526.md: Update with new attributes.
16271         * config/arm/fa606te.md: Update with new attributes.
16272         * config/arm/fa626te.md: Update with new attributes.
16273         * config/arm/fa726te.md: Update with new attributes.
16275 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16277         * config/aarch64/aarch64-simd.md
16278         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16279         <vwx> iterator to ensure correct register choice.
16280         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16281         (aarch64_sqdmull_n<mode>): Likewise.
16282         (aarch64_sqdmull2_n<mode>_internal): Likewise.
16283         * config/aarch64/arm_neon.h
16284         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16285         (vml<as><q>_n_<su>16): Likewise.
16286         (vml<as>l_high_lane<q>_<su>16): Likewise.
16287         (vml<as>l_high_n_<su>16): Likewise.
16288         (vml<as>l_lane<q>_<su>16): Likewise.
16289         (vml<as>l_n_<su>16): Likewise.
16290         (vmul<q>_lane<q>_<su>16): Likewise.
16291         (vmul<q>_n_<su>16): Likewise.
16292         (vmull_lane<q>_<su>16): Likewise.
16293         (vmull_n_<su>16): Likewise.
16294         (vmull_high_lane<q>_<su>16): Likewise.
16295         (vmull_high_n_<su>16): Likewise.
16296         (vqrdmulh<q>_n_s16): Likewise.
16298 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
16300         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16301         have the correct lane parameter.
16303 2013-09-06  Richard Biener <rguenther@suse.de>
16305         * cfganal.c (control_dependences::~control_dependences):
16306         Properly free all of the vector.
16308 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
16310         PR target/58269
16311         * config/i386/i386.c (ix86_conditional_register_usage):
16312         Proper initialize extended SSE registers.
16314 2013-09-06  Jan Hubicka  <jh@suse.cz>
16316         PR tree-optimization/58311
16317         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16319 2013-09-06  Jan Hubicka  <jh@suse.cz>
16321         * Makefile.in (tree-sra.o): Update dependencies.
16322         * tree-sra.c: Include ipa-utils.h
16323         (scan_function): Use recursive_call_p.
16324         (has_caller_p): New function.
16325         (cgraph_for_node_and_aliases): Count also callers of aliases.
16327 2013-09-06  Jan Hubicka  <jh@suse.cz>
16329         PR middle-end/58094
16330         * cgraph.h (symtab_semantically_equivalent_p): Declare.
16331         * tree-tailcall.c: Include ipa-utils.h.
16332         (find_tail_calls): Use it.
16333         * ipa-pure-const.c (check_call): Likewise.
16334         * ipa-utils.c (recursive_call_p): New function.
16335         * ipa-utils.h (recursive_call_p): Dclare.
16336         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16337         (symtab_semantically_equivalent_p): New function.
16338         * Makefile.in (tree-tailcall.o): Update dependencies.
16340 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
16342         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16343         non-inlinable part.
16345 2013-09-06  Richard Biener  <rguenther@suse.de>
16347         * lto-streamer.h (lto_global_var_decls): Remove.
16348         * Makefile.in (OBJS): Remove lto-symtab.o.
16349         (lto-symtab.o): Remove.
16350         (GTFILES): Remove lto-symtab.c
16351         * lto-symtab.c: Move to lto/
16353 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16355         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16356         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16357         (UNSPEC_FPINT_RINT): New constant definitions.
16358         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16359         definition with 2 attributes.
16360         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16361         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16362         definitions.
16364 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16366         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16367         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16368         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
16369         attribute to "z196_alone".
16370         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16371         "zEC12_simple".
16373 2013-09-06  Richard Biener  <rguenther@suse.de>
16375         * basic-block.h (class control_dependences): New.
16376         * tree-ssa-dce.c (control_dependence_map): Remove.
16377         (cd): New global.
16378         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16379         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16380         find_pdom, find_control_dependence, find_all_control_dependences):
16381         Move to cfganal.c.
16382         (mark_control_dependent_edges_necessary,
16383         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16384         tree_dce_done, perform_tree_ssa_dce): Adjust.
16385         * cfganal.c (set_control_dependence_map_bit,
16386         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16387         find_all_control_dependences): Move from tree-ssa-dce.c and
16388         implement as methods of control_dependences class.
16389         (control_dependences::control_dependences): New.
16390         (control_dependences::~control_dependences): Likewise.
16391         (control_dependences::get_edges_dependent_on): Likewise.
16392         (control_dependences::get_edge): Likewise.
16394 2013-09-04  Jan Hubicka  <jh@suse.cz>
16396         * tree.c (types_same_for_odr): Drop overactive check.
16397         * ipa-devirt.c (hash_type_name): Likewise.
16399 2013-09-04  Jan Hubicka  <jh@suse.cz>
16401         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16402         (analyze_functions): ... here.
16404 2013-09-04  Jan Hubicka  <jh@suse.cz>
16406         PR middle-end/58201
16407         * cgraphunit.c (analyze_functions): Clear AUX fields
16408         after processing; initialize assembler name has.
16410 2013-09-05  Jeff Law  <law@redhat.com>
16412         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16413         from thread_around_empty_block.  Record threading path into PATH.
16414         Recurse if threading through the initial block is successful.
16415         (thread_across_edge): Corresponding changes to slightly simplify.
16417 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16419         * config/aarch64/aarch64.md
16420         (type): Remove frecpe, frecps, frecpx.
16421         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16422         fix to be a TARGET_SIMD instruction.
16423         (aarch64_frecps): Remove.
16424         * config/aarch64/aarch64-simd.md
16425         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16426         (aarch64_frecps<mode>): Handle all float/vector of float modes.
16428 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16429             Sofiane Naci  <sofiane.naci@arm.com>
16431         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16432         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16433         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16434         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16435         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
16436         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16437         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
16438         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
16439         into "clz, "rbit".  Rename "shift" to "shift_imm".
16440         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16441         changes.  Update for attribute changes all occurrences of arlo_* and
16442         shift* types.
16443         * config/arm/arm-fixed.md: Update for attribute changes
16444         all occurrences of arlo_* types.
16445         * config/arm/thumb2.md: Update for attribute changes all occurrences
16446         of arlo_* types.
16447         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
16448         (cortexa7_older_only): Likewise.
16449         (cortexa7_younger):  Likewise.
16450         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16451         (1020alu_shift_op): Likewise.
16452         (1020alu_shift_reg_op): Likewise.
16453         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16454         (alu_shift_op): Likewise.
16455         (alu_shift_reg_op): Likewise.
16456         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16457         (11_alu_shift_op): Likewise.
16458         (11_alu_shift_reg_op): Likewise.
16459         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16460         (9_alu_shift_reg_op): Likewise.
16461         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16462         attribute changes.
16463         (cortex_a15_alu_shift): Likewise.
16464         (cortex_a15_alu_shift_reg): Likewise.
16465         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16466         attribute changes.
16467         (cortex_a5_alu_shift): Likewise.
16468         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16469         attribute changes.
16470         (cortex_a53_alu_shift): Likewise.
16471         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16472         attribute changes.
16473         (cortex_a7_alu_reg): Likewise.
16474         (cortex_a7_alu_shift): Likewise.
16475         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16476         attribute changes.
16477         (cortex_a8_alu_shift): Likewise.
16478         (cortex_a8_alu_shift_reg): Likewise.
16479         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16480         (cortex_a9_dp_shift): Likewise.
16481         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16482         attribute changes.
16483         * config/arm/cortex-r4.md
16484         (cortex_r4_alu): Update for attribute changes.
16485         (cortex_r4_mov): Likewise.
16486         (cortex_r4_alu_shift_reg): Likewise.
16487         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16488         (526_alu_shift_op): Likewise.
16489         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16490         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16491         (626te_alu_shift_op): Likewise.
16492         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16493         (726te_alu_shift_op): Likewise.
16494         (726te_alu_shift_reg_op): Likewise.
16495         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16496         (mp626_alu_shift_op): Likewise.
16497         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16498         (pj4_alu_conds): Likewise.
16499         (pj4_shift): Likewise.
16500         (pj4_shift_conds): Likewise.
16501         (pj4_alu_shift): Likewise.
16502         (pj4_alu_shift_conds): Likewise.
16503         * config/aarch64/aarch64.md: Update for attribute change
16504         all occurrences of arlo_* and shift* types.
16506 2013-09-05  Mike Stump  <mikestump@comcast.net>
16508         * tree.h: Move documentation for tree_function_decl to tree-core.h
16509         with the declaration.
16511 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
16513         PR target/58139
16514         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16515         looking for widest mode.
16517 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
16519         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16521 2013-09-05  Richard Biener  <rguenther@suse.de>
16523         PR tree-optimization/58137
16524         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16525         Do not create vectors of pointers.
16526         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16527         types for the components of the vector initializer.
16528         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16529         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16531 2013-09-05  Martin Jambor  <mjambor@suse.cz>
16533         * ipa-prop.c (remove_described_reference): Accept missing references,
16534         return false if that hppens, otherwise return true.
16535         (cgraph_node_for_jfunc): New function.
16536         (try_decrement_rdesc_refcount): Likewise.
16537         (try_make_edge_direct_simple_call): Use them.
16538         (ipa_edge_removal_hook): Remove references from rdescs.
16539         (ipa_edge_duplication_hook): Clone rdescs and their references
16540         when the new edge has the same caller as the old one.
16541         * cgraph.c (cgraph_resolve_speculation): Remove speculative
16542         reference before removing any edges.
16544 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
16546         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16547         initial store.
16548         * thumb2.md (thumb2_storewb_parisi): New pattern.
16550 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
16552         * config/aarch64/aarch64-option-extensions.def: Add
16553         AARCH64_OPT_EXTENSION of 'crc'.
16554         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16555         (AARCH64_ISA_CRC): Ditto.
16556         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16557         description of the CRC extension.
16559 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16561         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16562         * config/rs6000/linux.h: Ditto.
16563         * alpha/linux.h: Ditto.
16564         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16565         no_c99_libc_has_function.
16566         * config/c6x/uclinux-elf.h: Ditto.
16567         * config/lm32/uclinux-elf.h: Ditto.
16568         * config/m68k/uclinux.h: Ditto.
16569         * config/moxie/uclinux.h: Ditto.
16570         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16571         (crisv32-*-linux*, cris-*-linux*): Ditto.
16572         * config/bfin/bfin.c: Include "tm_p.h".
16574 2013-09-05  Richard Biener  <rguenther@suse.de>
16576         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16577         check for a definition without a basic-block.
16579 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16580             Sofiane Naci <sofiane.naci@arm.com>
16582         * config/aarch64/aarch64.md
16583         (*movti_aarch64): Rename r_2_f and f_2_r.
16584         (*movsf_aarch64): Likewise.
16585         (*movdf_aarch64): Likewise.
16586         (*movtf_aarch64): Likewise.
16587         (aarch64_movdi_<mode>low): Likewise.
16588         (aarch64_movdi_<mode>high): Likewise.
16589         (aarch64_mov<mode>high_di): Likewise.
16590         (aarch64_mov<mode>low_di): Likewise.
16591         (aarch64_movtilow_tilow): Likewise.
16592         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
16593         values to config/arm/types.md
16594         (attribute "conds"): Update for attribute change.
16595         (anddi3_insn): Likewise.
16596         (iordi3_insn): Likewise.
16597         (xordi3_insn): Likewise.
16598         (one_cmpldi2): Likewise.
16599         * config/arm/types.md (type): Add Neon types.
16600         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16601         use "type" attribute.
16602         (movmisalign<mode>_neon_store): Likewise.
16603         (movmisalign<mode>_neon_load): Likewise.
16604         (vec_set<mode>_internal): Likewise.
16605         (vec_setv2di_internal): Likewise.
16606         (vec_extract<mode>): Likewise.
16607         (vec_extractv2di): Likewise.
16608         (add<mode>3_neon): Likewise.
16609         (adddi3_neon): Likewise.
16610         (sub<mode>3_neon): Likewise.
16611         (subdi3_neon): Likewise.
16612         (mul<mode>3_neon): Likewise.
16613         (mul<mode>3add<mode>_neon): Likewise.
16614         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16615         (fma<VCVTF:mode>4)): Likewise.
16616         (fma<VCVTF:mode>4_intrinsic): Likewise.
16617         (fmsub<VCVTF:mode>4)): Likewise.
16618         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16619         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16620         (ior<mode>3): Likewise.
16621         (and<mode>3): Likewise.
16622         (anddi3_neon): Likewise.
16623         (orn<mode>3_neon): Likewise.
16624         (orndi3_neon): Likewise.
16625         (bic<mode>3_neon): Likewise.
16626         (bicdi3_neon): Likewise.
16627         (xor<mode>3): Likewise.
16628         (one_cmpl<mode>2): Likewise.
16629         (abs<mode>2): Likewise.
16630         (neg<mode>2): Likewise.
16631         (umin<mode>3_neon): Likewise.
16632         (umax<mode>3_neon): Likewise.
16633         (smin<mode>3_neon): Likewise.
16634         (smax<mode>3_neon): Likewise.
16635         (vashl<mode>3): Likewise.
16636         (vashr<mode>3_imm): Likewise.
16637         (vlshr<mode>3_imm): Likewise.
16638         (ashl<mode>3_signed): Likewise.
16639         (ashl<mode>3_unsigned): Likewise.
16640         (neon_load_count): Likewise.
16641         (ashldi3_neon_noclobber): Likewise.
16642         (signed_shift_di3_neon): Likewise.
16643         (unsigned_shift_di3_neon): Likewise.
16644         (ashrdi3_neon_imm_noclobber): Likewise.
16645         (lshrdi3_neon_imm_noclobber): Likewise.
16646         (widen_ssum<mode>3): Likewise.
16647         (widen_usum<mode>3): Likewise.
16648         (quad_halves_<code>v4si): Likewise.
16649         (quad_halves_<code>v4sf): Likewise.
16650         (quad_halves_<code>v8hi): Likewise.
16651         (quad_halves_<code>v16qi): Likewise.
16652         (reduc_splus_v2di): Likewise.
16653         (neon_vpadd_internal<mode>): Likewise.
16654         (neon_vpsmin<mode>): Likewise.
16655         (neon_vpsmax<mode>): Likewise.
16656         (neon_vpumin<mode>): Likewise.
16657         (neon_vpumax<mode>): Likewise.
16658         (ss_add<mode>_neon): Likewise.
16659         (us_add<mode>_neon): Likewise.
16660         (ss_sub<mode>_neon): Likewise.
16661         (us_sub<mode>_neon): Likewise.
16662         (neon_vadd<mode>_unspec): Likewise.
16663         (neon_vaddl<mode>): Likewise.
16664         (neon_vaddw<mode>): Likewise.
16665         (neon_vhadd<mode>): Likewise.
16666         (neon_vqadd<mode>): Likewise.
16667         (neon_vaddhn<mode>): Likewise.
16668         (neon_vmul<mode>): Likewise.
16669         (neon_vmla<mode>): Likewise.
16670         (neon_vmlal<mode>): Likewise.
16671         (neon_vmls<mode>): Likewise.
16672         (neon_vmlsl<mode>): Likewise.
16673         (neon_vqdmulh<mode>): Likewise.
16674         (neon_vqdmlal<mode>): Likewise.
16675         (neon_vqdmlsl<mode>): Likewise.
16676         (neon_vmull<mode>): Likewise.
16677         (neon_vqdmull<mode>): Likewise.
16678         (neon_vsub<mode>_unspec): Likewise.
16679         (neon_vsubl<mode>): Likewise.
16680         (neon_vsubw<mode>): Likewise.
16681         (neon_vqsub<mode>): Likewise.
16682         (neon_vhsub<mode>): Likewise.
16683         (neon_vsubhn<mode>): Likewise.
16684         (neon_vceq<mode>): Likewise.
16685         (neon_vcge<mode>): Likewise.
16686         (neon_vcgeu<mode>): Likewise.
16687         (neon_vcgt<mode>): Likewise.
16688         (neon_vcgtu<mode>): Likewise.
16689         (neon_vcle<mode>): Likewise.
16690         (neon_vclt<mode>): Likewise.
16691         (neon_vcage<mode>): Likewise.
16692         (neon_vcagt<mode>): Likewise.
16693         (neon_vtst<mode>): Likewise.
16694         (neon_vabd<mode>): Likewise.
16695         (neon_vabdl<mode>): Likewise.
16696         (neon_vaba<mode>): Likewise.
16697         (neon_vabal<mode>): Likewise.
16698         (neon_vmax<mode>): Likewise.
16699         (neon_vmin<mode>): Likewise.
16700         (neon_vpaddl<mode>): Likewise.
16701         (neon_vpadal<mode>): Likewise.
16702         (neon_vpmax<mode>): Likewise.
16703         (neon_vpmin<mode>): Likewise.
16704         (neon_vrecps<mode>): Likewise.
16705         (neon_vrsqrts<mode>): Likewise.
16706         (neon_vqabs<mode>): Likewise.
16707         (neon_vqneg<mode>): Likewise.
16708         (neon_vcls<mode>): Likewise.
16709         (clz<mode>2): Likewise.
16710         (popcount<mode>2): Likewise.
16711         (neon_vrecpe): Likewise.
16712         (neon_vrsqrte): Likewise.
16713         (neon_vget_lane<mode>_sext_internal): Likewise.
16714         (neon_vget_lane<mode>_zext_internal): Likewise.
16715         (neon_vdup_n<mode>): Likewise.
16716         (neon_vdup_nv2di): Likewise.
16717         (neon_vdpu_lane<mode>_internal): Likewise.
16718         (neon_vswp<mode>): Likewise.
16719         (float<mode><V_cvtto>2): Likewise.
16720         (floatuns<mode><V_cvtto>2): Likewise.
16721         (fix_trunc<mode><V_cvtto>)2): Likewise
16722         (fixuns_trunc<mode><V_cvtto)2): Likewise.
16723         (neon_vcvt<mode>): Likewise.
16724         (neon_vcvtv4sfv4hf): Likewise.
16725         (neon_vcvtv4hfv4sf): Likewise.
16726         (neon_vcvt_n<mode>): Likewise.
16727         (neon_vmovn<mode>): Likewise.
16728         (neon_vqmovn<mode>): Likewise.
16729         (neon_vqmovun<mode>): Likewise.
16730         (neon_vmovl<mode>): Likewise.
16731         (neon_vmul_lane<mode>): Likewise.
16732         (neon_vmull_lane<mode>): Likewise.
16733         (neon_vqdmull_lane<mode>): Likewise.
16734         (neon_vqdmulh_lane<mode>): Likewise.
16735         (neon_vmla_lane<mode>): Likewise.
16736         (neon_vmlal_lane<mode>): Likewise.
16737         (neon_vqdmlal_lane<mode>): Likewise.
16738         (neon_vmls_lane<mode>): Likewise.
16739         (neon_vmlsl_lane<mode>): Likewise.
16740         (neon_vqdmlsl_lane<mode>): Likewise.
16741         (neon_vext<mode>): Likewise.
16742         (neon_vrev64<mode>): Likewise.
16743         (neon_vrev32<mode>): Likewise.
16744         (neon_vrev16<mode>): Likewise.
16745         (neon_vbsl<mode>_internal): Likewise.
16746         (neon_vshl<mode>): Likewise.
16747         (neon_vqshl<mode>): Likewise.
16748         (neon_vshr_n<mode>): Likewise.
16749         (neon_vshrn_n<mode>): Likewise.
16750         (neon_vqshrn_n<mode>): Likewise.
16751         (neon_vqshrun_n<mode>): Likewise.
16752         (neon_vshl_n<mode>): Likewise.
16753         (neon_vqshl_n<mode>): Likewise.
16754         (neon_vqshlu_n<mode>): Likewise.
16755         (neon_vshll_n<mode>): Likewise.
16756         (neon_vsra_n<mode>): Likewise.
16757         (neon_vsri_n<mode>): Likewise.
16758         (neon_vsli_n<mode>): Likewise.
16759         (neon_vtbl1v8qi): Likewise.
16760         (neon_vtbl2v8qi): Likewise.
16761         (neon_vtbl3v8qi): Likewise.
16762         (neon_vtbl4v8qi): Likewise.
16763         (neon_vtbx1v8qi): Likewise.
16764         (neon_vtbx2v8qi): Likewise.
16765         (neon_vtbx3v8qi): Likewise.
16766         (neon_vtbx4v8qi): Likewise.
16767         (neon_vtrn<mode>_internal): Likewise.
16768         (neon_vzip<mode>_internal): Likewise.
16769         (neon_vuzp<mode>_internal): Likewise.
16770         (neon_vld1<mode>): Likewise.
16771         (neon_vld1_lane<mode>): Likewise.
16772         (neon_vld1_dup<mode>): Likewise.
16773         (neon_vld1_dupv2di): Likewise.
16774         (neon_vst1<mode>): Likewise.
16775         (neon_vst1_lane<mode>): Likewise.
16776         (neon_vld2<mode>): Likewise.
16777         (neon_vld2_lane<mode>): Likewise.
16778         (neon_vld2_dup<mode>): Likewise.
16779         (neon_vst2<mode>): Likewise.
16780         (neon_vst2_lane<mode>): Likewise.
16781         (neon_vld3<mode>): Likewise.
16782         (neon_vld3qa<mode>): Likewise.
16783         (neon_vld3qb<mode>): Likewise.
16784         (neon_vld3_lane<mode>): Likewise.
16785         (neon_vld3_dup<mode>): Likewise.
16786         (neon_vst3<mode>): Likewise.
16787         (neon_vst3qa<mode>): Likewise.
16788         (neon_vst3qb<mode>): Likewise.
16789         (neon_vst3_lane<mode>): Likewise.
16790         (neon_vld4<mode>): Likewise.
16791         (neon_vld4qa<mode>): Likewise.
16792         (neon_vld4qb<mode>): Likewise.
16793         (neon_vld4_lane<mode>): Likewise.
16794         (neon_vld4_dup<mode>): Likewise.
16795         (neon_vst4<mode>): Likewise.
16796         (neon_vst4qa<mode>): Likewise.
16797         (neon_vst4qb<mode>): Likewise.
16798         (neon_vst4_lane<mode>): Likewise.
16799         (neon_vec_unpack<US>_lo_<mode>): Likewise.
16800         (neon_vec_unpack<US>_hi_<mode>): Likewise.
16801         (neon_vec_<US>mult_lo_<mode>): Likewise.
16802         (neon_vec_<US>mult_hi_<mode>): Likewise.
16803         (neon_vec_<US>shiftl_<mode>): Likewise.
16804         (neon_unpack<US>_<mode>): Likewise.
16805         (neon_vec_<US>mult_<mode>): Likewise.
16806         (vec_pack_trunc_<mode>): Likewise.
16807         (neon_vec_pack_trunk_<mode>): Likewise.
16808         (neon_vabd<mode>_2): Likewise.
16809         (neon_vabd<mode>_3): Likewise.
16810         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16811         (thumb2_movsi_vfp): Likewise.
16812         (movdi_vfp): Likewise.
16813         (movdi_vfp_cortexa8): Likewise.
16814         (movhf_vfp_neon): Likewise.
16815         (movhf_vfp): Likewiwse.
16816         (movsf_vfp): Likewiwse.
16817         (thumb2_movsf_vfp): Likewiwse.
16818         (movdf_vfp): Likewise.
16819         (thumb2_movdf_vfp): Likewise.
16820         (movsfcc_vfp): Likewise.
16821         (thumb2_movsfcc_vfp): Likewise.
16822         (movdfcc_vfp): Likewise.
16823         (thumb2_movdfcc_vfp): Likewise.
16824         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16825         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16826         (v10_v2c): Likewise.
16827         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16828         attribute change.
16829         (cortex_a15_neon_int_2): Likewise.
16830         (cortex_a15_neon_int_3): Likewise.
16831         (cortex_a15_neon_int_4): Likewise.
16832         (cortex_a15_neon_int_5): Likewise.
16833         (cortex_a15_neon_vqneg_vqabs): Likewise.
16834         (cortex_a15_neon_vmov): Likewise.
16835         (cortex_a15_neon_vaba): Likewise.
16836         (cortex_a15_neon_vaba_qqq): Likewise.
16837         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16838         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16839         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16840         scalar_64_32_long_scalar): Likewise.
16841         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16842         (cortex_a15_neon_mla_qqq_8_16): Likewise.
16843         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16844         lotype_qdd_64_32_long): Likewise.
16845         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16846         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16847         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16848         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16849         (cortex_a15_neon_shift_1): Likewise.
16850         (cortex_a15_neon_shift_2): Likewise.
16851         (cortex_a15_neon_shift_3): Likewise.
16852         (cortex_a15_neon_vshl_ddd): Likewise.
16853         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16854         (cortex_a15_neon_vsra_vrsra): Likewise.
16855         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16856         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16857         (cortex_a15_neon_fp_vmul_ddd): Likewise.
16858         (cortex_a15_neon_fp_vmul_qqd): Likewise.
16859         (cortex_a15_neon_fp_vmla_ddd): Likewise.
16860         (cortex_a15_neon_fp_vmla_qqq): Likewise.
16861         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16862         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16863         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16864         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16865         (cortex_a15_neon_bp_simple): Likewise.
16866         (cortex_a15_neon_bp_2cycle): Likewise.
16867         (cortex_a15_neon_bp_3cycle): Likewise.
16868         (cortex_a15_neon_vld1_1_2_regs): Likewise.
16869         (cortex_a15_neon_vld1_3_4_regs): Likewise.
16870         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16871         (cortex_a15_neon_vld2_4_regs): Likewise.
16872         (cortex_a15_neon_vld3_vld4): Likewise.
16873         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16874         (cortex_a15_neon_vst1_3_4_regs): Likewise.
16875         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16876         (cortex_a15_neon_vst3_vst4): Likewise.
16877         (cortex_a15_neon_vld1_vld2_lane): Likewise.
16878         (cortex_a15_neon_vld3_vld4_lane" 10
16879         (cortex_a15_neon_vst1_vst2_lane): Likewise.
16880         (cortex_a15_neon_vst3_vst4_lane): Likewise.
16881         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16882         (cortex_a15_neon_ldm_2): Likewise.0
16883         (cortex_a15_neon_stm_2): Likewise.
16884         (cortex_a15_neon_mcr): Likewise.
16885         (cortex_a15_neon_mcr_2_mcrr): Likewise.
16886         (cortex_a15_neon_mrc): Likewise.
16887         (cortex_a15_neon_mrrc): Likewise.
16888         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16889         change.
16890         (cortex_a15_alu_shift): Likewise.
16891         (cortex_a15_alu_shift_reg): Likewise.
16892         (cortex_a15_mult32): Likewise.
16893         (cortex_a15_mult64): Likewise.
16894         (cortex_a15_block): Likewise.
16895         (cortex_a15_branch): Likewise.
16896         (cortex_a15_load1): Likewise.
16897         (cortex_a15_load3): Likewise.
16898         (cortex_a15_store1): Likewise.
16899         (cortex_a15_store3): Likewise.
16900         (cortex_a15_call): Likewise.
16901         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16902         (cortex_a5_f2r): Likewise.
16903         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16904         change.
16905         (cortex_a53_f2r): Likewise.
16906         * config/arm/cortex-a7.md
16907         (cortex_a7_branch): Update for attribute change.
16908         (cortex_a7_call): Likewise.
16909         (cortex_a7_alu_imm): Likewise.
16910         (cortex_a7_alu_reg): Likewise.
16911         (cortex_a7_alu_shift): Likewise.
16912         (cortex_a7_mul): Likewise.
16913         (cortex_a7_load1): Likewise.
16914         (cortex_a7_store1): Likewise.
16915         (cortex_a7_load2): Likewise.
16916         (cortex_a7_store2): Likewise.
16917         (cortex_a7_load3): Likewise.
16918         (cortex_a7_store3): Likewise.
16919         (cortex_a7_load4): Likewise.
16920         (cortex_a7_store4): Likewise.
16921         (cortex_a7_fpalu): Likewise.
16922         (cortex_a7_fconst): Likewise.
16923         (cortex_a7_fpmuls): Likewise.
16924         (cortex_a7_neon_mul): Likewise.
16925         (cortex_a7_fpmacs): Likewise.
16926         (cortex_a7_neon_mla: Likewise.
16927         (cortex_a7_fpmuld: Likewise.
16928         (cortex_a7_fpmacd: Likewise.
16929         (cortex_a7_fpfmad: Likewise.
16930         (cortex_a7_fdivs: Likewise.
16931         (cortex_a7_fdivd: Likewise.
16932         (cortex_a7_r2f: Likewise.
16933         (cortex_a7_f2r: Likewise.
16934         (cortex_a7_f_flags: Likewise.
16935         (cortex_a7_f_loads: Likewise.
16936         (cortex_a7_f_loadd: Likewise.
16937         (cortex_a7_f_stores: Likewise.
16938         (cortex_a7_f_stored: Likewise.
16939         (cortex_a7_neon): Likewise.
16940         * config/arm/cortex-a8-neon.md
16941         (cortex_a8_neon_mrc): Update for attribute change.
16942         (cortex_a8_neon_mrrc): Likewise.
16943         (cortex_a8_neon_int_1): Likewise.
16944         (cortex_a8_neon_int_2): Likewise.
16945         (cortex_a8_neon_int_3): Likewise.
16946         (cortex_a8_neon_int_4): Likewise.
16947         (cortex_a8_neon_int_5): Likewise.
16948         (cortex_a8_neon_vqneg_vqabs): Likewise.
16949         (cortex_a8_neon_vmov): Likewise.
16950         (cortex_a8_neon_vaba): Likewise.
16951         (cortex_a8_neon_vaba_qqq): Likewise.
16952         (cortex_a8_neon_vsma): Likewise.
16953         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16954         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16955         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16956         long_scalar): Likewise.
16957         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16958         (cortex_a8_neon_mla_qqq_8_16): Likewise.
16959         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16960         long_scalar_qdd_64_32_long): Likewise.
16961         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16962         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16963         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16964         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16965         (cortex_a8_neon_shift_1): Likewise.
16966         (cortex_a8_neon_shift_2): Likewise.
16967         (cortex_a8_neon_shift_3): Likewise.
16968         (cortex_a8_neon_vshl_ddd): Likewise.
16969         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16970         (cortex_a8_neon_vsra_vrsra): Likewise.
16971         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16972         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16973         (cortex_a8_neon_fp_vsum): Likewise.
16974         (cortex_a8_neon_fp_vmul_ddd): Likewise.
16975         (cortex_a8_neon_fp_vmul_qqd): Likewise.
16976         (cortex_a8_neon_fp_vmla_ddd): Likewise.
16977         (cortex_a8_neon_fp_vmla_qqq): Likewise.
16978         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16979         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16980         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16981         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16982         (cortex_a8_neon_bp_simple): Likewise.
16983         (cortex_a8_neon_bp_2cycle): Likewise.
16984         (cortex_a8_neon_bp_3cycle): Likewise.
16985         (cortex_a8_neon_ldr): Likewise.
16986         (cortex_a8_neon_str): Likewise.
16987         (cortex_a8_neon_vld1_1_2_regs): Likewise.
16988         (cortex_a8_neon_vld1_3_4_regs): Likewise.
16989         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16990         (cortex_a8_neon_vld2_4_regs): Likewise.
16991         (cortex_a8_neon_vld3_vld4): Likewise.
16992         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16993         (cortex_a8_neon_vst1_3_4_regs): Likewise.
16994         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16995         (cortex_a8_neon_vst3_vst4): Likewise.
16996         (cortex_a8_neon_vld1_vld2_lane): Likewise.
16997         (cortex_a8_neon_vld3_vld4_lane): Likewise.
16998         (cortex_a8_neon_vst1_vst2_lane): Likewise.
16999         (cortex_a8_neon_vst3_vst4_lane): Likewise.
17000         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
17001         (cortex_a8_neon_mcr): Likewise.
17002         (cortex_a8_neon_mcr_2_mcrr): Likewise.
17003         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17004         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
17005         change.
17006         (ca9_neon_mrrc): Likewise.
17007         (cortex_a9_neon_int_1): Likewise.
17008         (cortex_a9_neon_int_2): Likewise.
17009         (cortex_a9_neon_int_3): Likewise.
17010         (cortex_a9_neon_int_4): Likewise.
17011         (cortex_a9_neon_int_5): Likewise.
17012         (cortex_a9_neon_vqneg_vqabs): Likewise.
17013         (cortex_a9_neon_vmov): Likewise.
17014         (cortex_a9_neon_vaba): Likewise.
17015         (cortex_a9_neon_vaba_qqq): Likewise.
17016         (cortex_a9_neon_vsma): Likewise.
17017         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17018         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17019         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17020         long_scalar): Likewise.
17021         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17022         (cortex_a9_neon_mla_qqq_8_16): Likewise.
17023         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17024         long_scalar_qdd_64_32_long): Likewise.
17025         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17026         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17027         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
17028         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17029         (cortex_a9_neon_shift_1): Likewise.
17030         (cortex_a9_neon_shift_2): Likewise.
17031         (cortex_a9_neon_shift_3): Likewise.
17032         (cortex_a9_neon_vshl_ddd): Likewise.
17033         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17034         (cortex_a9_neon_vsra_vrsra): Likewise.
17035         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
17036         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
17037         (cortex_a9_neon_fp_vsum): Likewise.
17038         (cortex_a9_neon_fp_vmul_ddd): Likewise.
17039         (cortex_a9_neon_fp_vmul_qqd): Likewise.
17040         (cortex_a9_neon_fp_vmla_ddd): Likewise.
17041         (cortex_a9_neon_fp_vmla_qqq): Likewise.
17042         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
17043         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
17044         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17045         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17046         (cortex_a9_neon_bp_simple): Likewise.
17047         (cortex_a9_neon_bp_2cycle): Likewise.
17048         (cortex_a9_neon_bp_3cycle): Likewise.
17049         (cortex_a9_neon_ldr): Likewise.
17050         (cortex_a9_neon_str): Likewise.
17051         (cortex_a9_neon_vld1_1_2_regs): Likewise.
17052         (cortex_a9_neon_vld1_3_4_regs): Likewise.
17053         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17054         (cortex_a9_neon_vld2_4_regs): Likewise.
17055         (cortex_a9_neon_vld3_vld4): Likewise.
17056         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17057         (cortex_a9_neon_vst1_3_4_regs): Likewise.
17058         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
17059         (cortex_a9_neon_vst3_vst4): Likewise.
17060         (cortex_a9_neon_vld1_vld2_lane): Likewise.
17061         (cortex_a9_neon_vld3_vld4_lane): Likewise.
17062         (cortex_a9_neon_vst1_vst2_lane): Likewise.
17063         (cortex_a9_neon_vst3_vst4_lane): Likewise.
17064         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
17065         (cortex_a9_neon_mcr): Likewise.
17066         (cortex_a9_neon_mcr_2_mcrr): Likewise.
17067         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17068         (cortex_a9_fps): Likewise.
17069         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
17070         change.
17071         (cortex_m4_fmuls): Likewise.
17072         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
17073         change.
17074         (cortex_r4_mrc): Likewise.
17075         * config/arm/iterators.md: Update comment referring to neon_type.
17076         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
17077         (iwmmxt_movsi_insn): Likewise.
17078         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
17079         attribute change.
17080         (pj4_core_to_vfp): Likewise.
17081         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
17082         attribute change.
17083         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
17084         (vfp_fstore): Likewise.
17085         * doc/md.texi: Change references to neon_type to refer to type.
17087 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
17089         * tree.h (DECL_BUILT_IN): Fix typo in comment.
17091 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
17093         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
17094         lglobl if not weak.
17096 2013-09-04  Easwaran Raman  <eraman@google.com>
17098         PR middle-end/57370
17099         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
17100         (build_and_add_sum): Use it.
17101         (appears_later_in_bb): Simplify code.
17103 2013-09-04  Teresa Johnson  <tejohnson@google.com>
17105         * dumpfile.c (dump_finish): Don't close stderr/stdout.
17107 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
17109         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
17111 2013-09-04  Jan Hubicka  <jh@suse.cz>
17113         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
17114         * ipa-devirt.c: Include diganostic.h
17115         (odr_type_d): Add types and types_set.
17116         (hash_type_name): Work for types with vtables during LTO.
17117         (odr_hasher::remove): Fix comment; destroy types_set.
17118         (add_type_duplicate): New function,
17119         (get_odr_type): Use it.
17120         (dump_type_inheritance_graph): Dump type duplicates.
17121         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
17122         graph.
17123         * tree.c (types_same_for_odr): Give exact answers on types with
17124         virtual tables.
17126 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
17128         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
17129         explaining their differences.
17131 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
17133         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
17135 2013-09-03  Jeff Law  <law@redhat.com>
17137         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17138         when not threading through a joiner block.  Pass joiner/no joiner
17139         state to register_jump_thread.
17140         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17141         state from argument rather than implying on path length.
17142         Dump the entire jump thread path into debugging dump.
17143         * tree-flow.h (register_jump_thread): Update prototype.
17145 2013-08-29  Xinliang David Li  <davidxl@google.com>
17147         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17148         Remove a trivial gcc_assert.
17150 2013-08-29  Xinliang David Li  <davidxl@google.com>
17152         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17153         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17154         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17155         Delay base decl alignment adjustment.
17156         * tree-vectorizer.c (vect_destroy_datarefs): New function.
17157         * tree-vectorizer.h: New data structure.
17158         (set_dr_misalignment): New function.
17159         (dr_misalignment): Ditto.
17160         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17161         (vectorizable_load): Ditto.
17162         (ensure_base_align): New function.
17163         (vectorize_loops): Add dbg_cnt support.
17164         (execute_vect_slp): Ditto.
17165         * dbgcnt.def: New debug counter.
17166         * Makefile: New dependency.
17168 2013-09-03  Meador Inge  <meadori@codesourcery.com>
17170         Revert:
17172         2013-08-30  Meador Inge  <meadori@codesourcery.com>
17174         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17176 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
17178         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17179         function descriptor.
17181 2013-09-03  Richard Biener  <rguenther@suse.de>
17183         * tree-affine.c (add_elt_to_tree): Fix association issue,
17184         avoid useless converts and make sure to always return a
17185         properly typed result.
17187 2013-09-03  Richard Biener  <rguenther@suse.de>
17189         PR middle-end/57656
17190         * fold-const.c (negate_expr_p): Fix division case.
17191         (negate_expr): Likewise.
17193 2013-09-03  Richard Biener  <rguenther@suse.de>
17195         PR lto/58285
17196         * tree-streamer-out.c: Include tm.h.
17197         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17199 2013-09-03  Jan Hubicka  <jh@suse.cz>
17201         * tree-profile.c (tree_profiling): Cleanup CFG when done.
17203 2013-09-03  Alan Modra  <amodra@gmail.com>
17205         * config.gcc (powerpc*-*-linux*): Add support for little-endian
17206         multilibs to big-endian target and vice versa.
17207         * config/rs6000/t-linux64: Use := assignment on all vars.
17208         (MULTILIB_EXTRA_OPTS): Remove fPIC.
17209         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17210         * config/rs6000/t-linux64le: New file.
17211         * config/rs6000/t-linux64bele: New file.
17212         * config/rs6000/t-linux64lebe: New file.
17214 2013-09-02  Jan Hubicka  <jh@suse.cz>
17216         * ipa-inline-transform.c (inline_transform): Do not
17217         optimize_inline_calls when not optimizing.
17219 2013-09-02  Jan Hubicka  <jh@suse.cz>
17221         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17222         duplicated nodes for assembler names.
17223         * symtab.c (symtab_unregister_node): Do not attempt to unlink
17224         hard registers from assembler name hash.
17226 2013-09-02  Jan Hubicka  <jh@suse.cz>
17228         * ipa-split.c (execute_split_functions): Split externally visible
17229         functions called once.
17231 2013-09-02  Martin Jambor  <mjambor@suse.cz>
17233         PR ipa/58106
17234         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17235         linked list.  When finding the correct duplicate, also consider also
17236         the caller in additon to its inlined_to node.
17238 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
17240         * config/aarch64/aarch64-simd-builtins.def
17241         (dup_lane_scalar): Remove.
17242         * config/aarch64/aarch64-simd.md
17243         (aarch64_simd_dup): Add 'w->w' alternative.
17244         (aarch64_dup_lane<mode>): Allow for VALL.
17245         (aarch64_dup_lane_scalar<mode>): Remove.
17246         (aarch64_dup_lane_<vswap_width_name><mode>): New.
17247         (aarch64_get_lane_signed<mode>): Add w->w altenative.
17248         (aarch64_get_lane_unsigned<mode>): Likewise.
17249         (aarch64_get_lane<mode>): Likewise.
17250         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17251         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17252         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17253         (VCON): Change container of V2SF.
17254         (vswap_width_name): Likewise.
17255         * config/aarch64/arm_neon.h
17256         (__aarch64_vdup_lane_any): New.
17257         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17258         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17259         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17261 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
17263         PR middle-end/56382
17264         * expr.c (emit_move_complex): Do not move complex FP values as parts if
17265         the source or the destination is a single hard register.
17267 2013-09-02  Richard Biener  <rguenther@suse.de>
17269         PR middle-end/57511
17270         * tree-scalar-evolution.c (instantiate_scev_name): Allow
17271         non-linear SCEVs.
17273 2013-09-02  Richard Biener  <rguenther@suse.de>
17275         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17276         arithmetic to sizetype.
17278 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
17280         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17281         Find auto-increment use both before and after candidate.
17283 2013-09-02  Marek Polacek  <polacek@redhat.com>
17285         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17287 2013-09-01  Jan Hubicka  <jh@suse.cz>
17289         * Makefile.in: Add ipa-profile.o
17290         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17291         * cgraph.c (struct cgraph_propagate_frequency_data,
17292         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17293         ipa-profile.c; replace cgraph_ by ipa_ prefix.
17294         * cgraph.h (cgraph_propagate_frequency): Remove.
17295         * ipa-inline-analysis.c: Include ipa-utils.h;
17296         drop duplicated cfgloop.h.
17297         (inline_update_callee_summaries): Update.
17298         * ipa-profile.c: New file.
17299         * ipa-utils.h (ipa_propagate_frequency): Declare.
17300         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17301         data-streamer.h, value-prof.h.
17302         (symtab_remove_unreachable_nodes): Update profile.
17303         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17304         account_time_size, cmp_counts, dump_histogram,
17305         ipa_profile_generate_summary, ipa_profile_write_summary,
17306         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17307         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17308         Move to ipa-profile.c.
17310 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
17312         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17314 2013-09-01  Jan Hubicka  <jh@suse.cz>
17316         * common.opt (fdevirtualize-speculatively): New function.
17317         * invoke.texi (fdevirtualize-speculatively): Document.
17318         * ipa-devirt.c: Include ipa-inline.h
17319         (likely_target_p): New function.
17320         (ipa_devirt): New function.
17321         (gate_ipa_devirt): New function.
17322         (pass_data_ipa_devirt): New static var.
17323         (pass_ipa_devirt): Likewise.
17324         (make_pass_ipa_devirt): New function.
17325         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17326         (common_handle_option): Disable devirtualization when
17327         value range profiling is available.
17328         * passes.def (pass_ipa_devirt): Add.
17329         * timever.def (TV_IPA_DEVIRT): New timevar.
17330         * tree-pass.h (make_pass_ipa_devirt):
17332 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
17334         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17335         include sanitize(undefined).
17337 2013-08-31  Diego Novillo  <dnovillo@google.com>
17339         * Makefile.in (TREE_CORE_H): Define.
17340         (TREE_H): Use.
17341         (GTFILES): Add tree-core.h.
17342         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17343         size the array.
17344         * tree-core.h: New file.
17345         Move all data structures, enum, typedefs, global
17346         declarations and constants from ...
17347         * tree.h: ... here.
17349 2013-08-31  Jan Hubicka  <jh@suse.cz>
17351         * bulitins.c (expand_builtin): Do not early exit for gcov
17352         instrumented functions.
17354 2013-08-31  Marek Polacek  <polacek@redhat.com>
17356         * ubsan.c: Include tm_p.h.
17358 2013-08-31  Jan Hubicka  <jh@suse.cz>
17360         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17361         warning.
17363         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17364         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17365         * tree-cfg.c (verify_gimple_label): ... here.
17366         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17367         (ipa_merge_profiles): New function.
17368         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17369         (lto_input_function_body): Likewise.
17370         * ipa-utils.h (ipa_merge_profiles): Declare.
17371         * lto-streamer.h (lto_input_function_body): Update prototype.
17372         (emit_label_in_global_context_p): Remove.
17373         * lto-symtab.c: Include ipa-utils.h
17374         (lto_cgraph_replace_node): Use ipa_merge_profiles.
17376 2013-08-31  Jan Hubicka  <jh@suse.cz>
17378         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17380 2013-08-31  Jan Hubicka  <jh@suse.cz>
17382         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17384 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
17386         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17387         "cmp" RTX before signed_comparison_operator check to account
17388         for "code" changes.
17390 2013-08-30  Jan Hubicka  <jh@suse.cz>
17392         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17393         (detect_type_change_1): Rename to ...
17394         (detect_type_change): ... this one; early return on non-polymorphic
17395         types.
17396         (detect_type_change_ssa): Add comp_type parameter; update
17397         use of detect_type_change.
17398         (compute_complex_assign_jump_func): Add param_type parameter;
17399         update use of detect_type_change_ssa.
17400         (compute_complex_ancestor_jump_func): Likewise.
17401         (ipa_get_callee_param_type): New function.
17402         (ipa_compute_jump_functions_for_edge): Compute parameter type;
17403         update calls to the jump function computation functions.
17405 2013-08-30  Teresa Johnson  <tejohnson@google.com>
17406             Steven Bosscher  <steven@gcc.gnu.org>
17408         * cfgrtl.c (fixup_new_cold_bb): New routine.
17409         (commit_edge_insertions): Invoke fixup_partitions.
17410         (find_partition_fixes): New routine.
17411         (fixup_partitions): Ditto.
17412         (verify_hot_cold_block_grouping): Update comments.
17413         (rtl_verify_edges): Invoke find_partition_fixes.
17414         (rtl_verify_bb_pointers): Update comments.
17415         (rtl_verify_bb_layout): Ditto.
17416         * basic-block.h (probably_never_executed_edge_p): Declare.
17417         (fixup_partitions): Ditto.
17418         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17419         * bb-reorder.c (sanitize_hot_paths): New function.
17420         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17421         sanitize_hot_paths.
17422         * predict.c (probably_never_executed_edge_p): New routine.
17423         * cfg.c (check_bb_profile): Add partition insanity warnings.
17425 2013-08-30  Meador Inge  <meadori@codesourcery.com>
17427         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17429 2013-08-30  Marek Polacek  <polacek@redhat.com>
17431         * Makefile.in (ubsan.o): Add.
17432         (c-family/c-ubsan.o): Add.
17433         (builtins.o): Add ubsan.h dependency.
17434         * ubsan.h: New file.
17435         * ubsan.c: New file.
17436         * common.opt: Add -fsanitize=undefined option.
17437         (flag_sanitize): Add variable.
17438         (fsanitize=): Add option.  Add Driver.
17439         (fsanitize=thread): Remove option.
17440         (fsanitize=address): Likewise.
17441         (static-libubsan): New option.
17442         * doc/invoke.texi: Document the new flag and -static-libubsan.
17443         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17444         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17445         * builtin-attrs.def (ATTR_COLD): Define.
17446         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17447         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17448         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17449         * flag-types.h (sanitize_code): New enum.
17450         * opts.c (common_handle_option): Parse command line arguments
17451         of -fsanitize=.  Add -fsanitize=unreachable option.
17452         * varasm.c (get_variable_section): Adjust.
17453         (assemble_noswitch_variable): Likewise.
17454         (assemble_variable): Likewise.
17455         (output_constant_def_contents): Likewise.
17456         (categorize_decl_for_section): Likewise.
17457         (place_block_symbol): Likewise.
17458         (output_object_block): Likewise.
17459         * builtins.def: Likewise.
17460         * toplev.c (compile_file): Likewise.
17461         (process_options): Likewise.
17462         * cppbuiltin.c: Likewise.
17463         * tsan.c (tsan_pass): Likewise.
17464         (tsan_gate): Likewise.
17465         (tsan_gate_O0): Likewise.
17466         * cfgexpand.c (partition_stack_vars): Likewise.
17467         (expand_stack_vars): Likewise.
17468         (defer_stack_allocation): Likewise.
17469         (expand_used_vars): Likewise.
17470         * cfgcleanup.c (old_insns_match_p): Likewise.
17471         * asan.c (asan_finish_file): Likewise.
17472         (asan_instrument): Likewise.
17473         (gate_asan): Likewise.
17474         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17475         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17476         (asan_global_struct): Use pointer_sized_int_node instead
17477         calling build_nonstandard_integer_type.
17478         (initialize_sanitizer_builtins): Likewise.
17479         (asan_finish_file): Likewise.
17480         * gcc.c: Document %{%:function(args):X}.
17481         (static_spec_functions): Add sanitize.
17482         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17483         store funcval != NULL there.
17484         (do_spec_1): Adjust handle_spec_function caller.
17485         (handle_braces): Allow %:function(args) as condition.
17486         (sanitize_spec_function): New function.
17487         (ADD_STATIC_LIBUBSAN_LIBS): Define.
17488         (LIBUBSAN_SPEC): Likewise.
17489         (LIBUBSAN_EARLY_SPEC): Likewise.
17490         (SANITIZER_SPEC): Handle libubsan.
17491         (SANITIZER_EARLY_SPEC): Likewise.
17492         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17493         instead of fsanitize=address.
17494         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17495         instead of fsanitize=address*.
17496         * builtins.c: Include ubsan.h.
17497         (fold_builtin_0): Instrument __builtin_unreachable.
17498         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17499         instead of flag_asan.
17500         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17501         (pointer_sized_int_node): Define.
17502         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17504 2013-08-30  Mike Stump  <mikestump@comcast.net>
17506         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17507         with RE patterns.
17509 2013-08-29  Jan Hubicka  <jh@suse.cz>
17511         * cgraph.c (cgraph_function_body_availability): Handle weakref
17512         correctly.
17513         * passes.def: Remove pass_fixup_cfg.
17514         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17515         track when we need to remove functions.
17516         (gate_ipa_inline): Execute inlining always; add comment why.
17517         (pass_data_ipa_inline): Remove TODO_remove_functions.
17518         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17519         do not produce summaries.
17520         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17521         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17522         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17523         constant pool and vtable.
17525 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
17527         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17528         New arm_neon.h's internal macros to specify 64-bit constants.
17529         Avoid using stdint.h's macros.
17531 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17533         * recog.c (verify_changes): Verify that changes[i].old is non-zero
17534         before applying REG_P.
17536 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
17538         PR tree-optimization/58277
17539         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17540         after seeing too many stmts with vdef in between dombb and current
17541         bb, invalidate everything.
17543 2013-08-30  Richard Biener  <rguenther@suse.de>
17545         * fold-const.c (fold_single_bit_test): Fix overflow test.
17547 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
17549         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17550         and which can live in a register, always retrieve the value on entry.
17551         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17552         passed by invisible reference specially.
17553         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17554         (vt_add_function_parameter): Correctly deal with a parameter passed by
17555         invisible reference.
17557 2013-08-30  Jan Hubicka  <jh@suse.cz>
17559         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17561 2013-08-30  Richard Biener  <rguenther@suse.de>
17563         PR tree-optimization/58228
17564         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17565         allow invariant loads in nested loop vectorization.
17567 2013-08-30  Richard Biener  <rguenther@suse.de>
17569         PR tree-optimization/58223
17570         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17571         (has_anti_or_output_dependence): ... this and adjust to also
17572         look for output dependences.
17573         (mark_nodes_having_upstream_mem_writes): Adjust.
17574         (rdg_flag_uses): Likewise.
17576 2013-08-30  Richard Biener  <rguenther@suse.de>
17578         PR tree-optimization/58010
17579         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17580         assert that we have a loop-closed PHI.
17582 2013-08-29  Jan Hubicka  <jh@suse.cz>
17584         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17585         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17586         * lto-section-in.c (lto_free_function_in_decl_state): New function.
17587         (lto_free_function_in_decl_state_for_node): New function.
17589 2013-08-29  Xinliang David Li  <davidxl@google.com>
17591         * loop-unroll.c (report_unroll_peel): Minor message change.
17592         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17593         Emit alignment peeling message with default -fopt-info.
17594         (vect_loop_versioning): Emit loop version info message.
17595         * tree-vectorizer.c (vectorize_loops): Minor message change.
17596         (execute_vect_slp): Ditto.
17598 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
17600         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17601         of the clone from the DECL_NAME of the original function.
17603 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
17605         * passes.c (register_pass): Add overload.
17606         * tree-pass.h (register_pass): Forward declare it.  Add comment.
17608 2013-08-29  Jan Hubicka  <jh@suse.cz>
17610         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17611         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17612         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17613         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17614         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17615         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17616         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17617         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17619 2013-08-29  Teresa Johnson  <tejohnson@google.com>
17621         * dumpfile.c (dump_loc): Output column number.
17622         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17623         * doc/invoke.texi: Document optall -fopt-info flag.
17624         * profile.c (read_profile_edge_counts): Use new dump framework.
17625         (compute_branch_probabilities): Ditto.
17626         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17627         when pass not in any opt group.
17628         * pass_manager.h (pass_manager::get_pass_profile): New method.
17629         * value-prof.c (check_counter): Use new dump framework.
17630         (check_ic_target): Ditto.
17631         * coverage.c (get_coverage_counts): Ditto.
17632         (coverage_init): Setup new dump framework.
17634 2013-08-29  Richard Biener  <rguenther@suse.de>
17636         PR tree-optimization/58246
17637         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17638         handle the dominance check inside a basic-block.
17640 2013-08-29  Richard Biener  <rguenther@suse.de>
17642         PR middle-end/57287
17643         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17644         of default defs that appear in abnormal PHI nodes.
17646 2013-08-29  Richard Biener  <rguenther@suse.de>
17648         PR tree-optimization/57685
17649         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17650         single-use operands to avoid exponential complexity.
17652 2013-08-28  Dehao Chen  <dehao@google.com>
17654         * ipa-inline.c (edge_badness): Fix integer underflow.
17656 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
17658         * gtm-builtins.def (_ITM_free): Declare leaf.
17660 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17662         PR target/58067
17663         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17664         (*tls_local_dynamic_base_64_largepic): Likewise.
17665         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17666         Remove predicate from call operand.
17667         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17668         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17670 2013-08-28  Jeff Law  <law@redhat.com>
17672         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17673         checks for the number of predecessors and successors allowed.
17674         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17675         which require copying a joiner block if there is a request which
17676         is a subpath that requires no joiner block copying.
17678 2013-08-28  Jan Hubicka  <jh@suse.cz>
17680         * lto-streamer-out.c (DFS_write_tree_body): Drop
17681         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17682         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17683         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17684         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17685         Do not read DECL_ERROR_ISSUED.
17686         (unpack_ts_decl_with_vis_value_fields): Do not read
17687         DECL_DEFER_OUTPUT.
17688         (lto_input_ts_binfo_tree_pointers): Do not read
17689         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17690         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17691         write DECL_ERROR_ISSUED..
17692         (pack_ts_decl_with_vis_value_fields): Do not write
17693         DECL_DEFER_OUTPUT.
17694         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17695         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17696         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17697         * tree.h (tree_decl_common): Update comment.
17698         (DECL_ERROR_ISSUED): Remove.
17700 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17702         PR middle-end/58257
17703         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17705 2013-08-28  Jan Hubicka  <jh@suse.cz>
17707         * builtins.def (free): Declare leaf.
17709 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
17711         * gdbhooks.py: New.
17712         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17713         * configure: Regenerate.
17715 2013-08-27  Martin Jambor  <mjambor@suse.cz>
17717         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17718         (ipa_ancestor_jf_data): Likewise.
17719         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17720         (ipa_get_jf_pass_through_type_preserved): New function.
17721         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17722         (ipa_get_jf_ancestor_type_preserved): New function.
17723         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17724         (ipa_get_jf_ancestor_result): Likewise.
17725         (propagate_vals_accross_pass_through): Use
17726         ipa_get_jf_pass_through_result to do all the value mappings.
17727         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17728         type_preserved flag.
17729         (ipa_set_jf_cst_copy): New function.
17730         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17731         (ipa_set_jf_arith_pass_through): Likewise.
17732         (ipa_set_ancestor_jf): Likewise.
17733         (compute_complex_assign_jump_func): Set type_preserved instead of
17734         punting.
17735         (ipa_compute_jump_functions_for_edge): Likewise.
17736         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17737         (update_jump_functions_after_inlining): Update type_preserved.
17738         Explicitely create jump functions when combining one with pass_through.
17739         (ipa_write_jump_function): Stream the type_preserved flags.
17740         (ipa_read_jump_function): Likewise.
17742 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
17743             Aldy Hernandez  <aldyh@redhat.com>
17745         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17746         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17747         * function.h (struct function): Add has_force_vect_loops and
17748         has_simduid_loops.
17749         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17750         * gimple.c (gimple_build_omp_critical): Add KIND argument and
17751         handle it.
17752         * gimple.def: Update CLAUSES comments.
17753         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17754         (gimple_build_omp_for): Add argument to prototype.
17755         (gimple_omp_for_kind): New.
17756         (gimple_omp_for_set_kind): New.
17757         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17758         GOVD_DATA_SHARE_CLASS.
17759         (enum omp_region_type): Add ORT_SIMD.
17760         (gimple_add_tmp_var): Handle ORT_SIMD.
17761         (gimplify_var_or_parm_decl): Same.
17762         (is_gimple_stmt): Same.
17763         (omp_firstprivatize_variable): Same.
17764         (omp_add_variable): Only use splay_tree_insert if lookup failed.
17765         (omp_notice_variable): Handle ORT_SIMD.
17766         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17767         (omp_check_private): Handle ORT_SIMD.
17768         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17769         OMP_CLAUSE_SAFELEN.
17770         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17771         Handle OMP_CLAUSE_LASTPRIVATE.
17772         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17773         OMP_CLAUSE_SAFELEN.
17774         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17775         (gimplify_expr): Handle OMP_SIMD.
17776         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17777         (expand_GOMP_SIMD_VF): New.
17778         (expand_GOMP_SIMD_LAST_LANE): New.
17779         * internal-fn.def (GOMP_SIMD_LANE): New.
17780         (GOMP_SIMD_VF): New.
17781         (GOMP_SIMD_LAST_LANE): New.
17782         * omp-low.c: Include target.h.
17783         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17784         OMP_CLAUSE_SAFELEN.
17785         (check_omp_nesting_restrictions): Same.
17786         (omp_max_vf): New.
17787         (lower_rec_simd_input_clauses): New.
17788         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17789         OMP_CLAUSE_LINEAR.
17790         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17791         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17792         (expand_omp_build_assign): New.
17793         (expand_omp_for_init_counts): New.
17794         (expand_omp_for_init_vars): New.
17795         (extract_omp_for_update_vars): New.
17796         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17797         and rewrite accordingly.
17798         (expand_omp_simd): New.
17799         (expand_omp_for): Use expand_omp_simd.
17800         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17801         (lower_omp_for): Do not lower the body.
17802         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17803         in their own loops.
17804         * tree-flow.h (find_omp_clause): Remove prototype.
17805         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17806         forcing vectorization of the loop, or if flag_tree_vectorize.
17807         (gate_tree_if_conversion): Similarly.
17808         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17809         gimple_build_omp_for.
17810         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17811         * tree-parloops (create_parallel_loop): Pass kind argument to
17812         gimple_build_omp_for.
17813         * tree-pretty-print.c (dump_omp_clause): Add cases for
17814         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17815         OMP_CLAUSE__SIMDUID_.
17816         (dump_generic_node): Handle OMP_SIMD.
17817         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17818         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17819         unroll OMP_SIMD loops here.
17820         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17821         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17822         loop->safelen.
17823         (vect_analyze_data_refs): Handle simd loops.
17824         * tree-vect-loop.c (vectorizable_live_operation): Handle
17825         IFN_GOMP_SIMD*.
17826         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17827         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17828         (vectorizable_load): Same.
17829         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17830         (struct simduid_to_vf): New.
17831         (simduid_to_vf::hash): New.
17832         (simduid_to-vf::equal): New.
17833         (struct simd_array_to_simduid): New.
17834         (simd_array_to_simduid::hash): New.
17835         (simd_array_to_simduid::equal): New.
17836         (adjust_simduid_builtins): New.
17837         (struct note_simd_array_uses_struct): New.
17838         (note_simd_array_uses_cb): New.
17839         (note_simd_array_uses): New.
17840         (vectorize_loops): Handle simd hints and adjust simd builtins
17841         accordingly.
17842         * tree-vectorizer.h (struct _stmt_vec_info): Add
17843         simd_lane_access_p field.
17844         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17845         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17846         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17847         (omp_clause_code_name): Same.
17848         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17849         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17850         * tree.def (OMP_SIMD): New entry.
17851         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17852         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17853         (OMP_CLAUSE_DECL): Adjust range for new clauses.
17854         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17855         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17856         (OMP_CLAUSE_LINEAR_STEP): New.
17857         (OMP_CLAUSE_SAFELEN_EXPR): New.
17858         (OMP_CLAUSE__SIMDUID__DECL): New.
17859         (find_omp_clause): New prototype.
17861 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
17863         * config/i386/driver-i386.c (host_detect_local_cpu): Update
17864         Haswell processor detection.
17866 2013-08-27  Christian Widmer  <shadow@umbrox.de>
17868         PR target/57927
17869         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17870         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
17871         AVX2 capable processors.
17873 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
17875         * config/aarch64/arm_neon.h: Replace all inline asm implementations
17876         of vget_low_* with implementations in terms of other intrinsics.
17878 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
17880         PR middle-end/57219
17881         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17882         values to -1, 0 and 1.
17884 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
17886         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17887         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17888         (<optab><mode>3_insn): Remove.
17889         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17890         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17891         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17892         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17893         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17894         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17895         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17896         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17897         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17898         (ror<mode>3_insn): Likewise.
17899         * config/aarch64/predicates.md (aarch64_simd_register): New.
17901 2013-08-27  Richard Biener  <rguenther@suse.de>
17903         PR tree-optimization/57521
17904         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17905         one edge is non-critical.
17906         (find_phi_replacement_condition): Make sure to use a non-critical
17907         edge.  Cleanup and remove old bug workarounds.
17908         (bb_postdominates_preds): Remove.
17909         (if_convertible_loop_p_1): Do not compute post-dominators.
17910         (combine_blocks): Do not free post-dominators.
17911         (main_tree_if_conversion): Likewise.
17912         (pass_data_if_conversion): Add TODO_verify_ssa.
17914 2013-08-27  DJ Delorie  <dj@redhat.com>
17916         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
17918 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
17920         * function.c (assign_parm_find_data_types): Set passed_mode and
17921         nominal_mode to the TYPE_MODE of nominal_type for the built
17922         pointer type in case of the struct-pass-by-reference.
17924 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17926         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17927         (UINT16_TYPE): Change default to "unsigned int".
17929         * config/avr/avr.opt (mfract-convert-truncate): New option.
17930         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17931         is set, round negative fractional integers according to n1169
17932         when converting to integer types.
17934 2013-08-26  Jan Hubicka  <jh@suse.cz>
17936         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17937         methods can not be called indirectly when their address is not taken.
17939 2013-08-26  Jan Hubicka  <jh@suse.cz>
17941         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17942         ctor_for_folding.
17944 2013-08-26  Jan Hubicka  <jh@suse.cz>
17946         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17947         can be unshared.
17949 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17951         * reload.c (find_valid_class): Allow classes that do not include
17952         FIRST_PSEUDO_REGISTER - 1.
17954 2013-08-26  Jan Hubicka  <jh@suse.cz>
17956         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17957         fix edge count/frequency when speculation failed; fix type check
17958         for the direct call.
17960 2013-08-26  Jan Hubicka  <jh@suse.cz>
17962         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17964 2013-08-26  Jan Hubicka  <jh@suse.cz>
17966         * ipa-inline-transform.c (inline_transform): Be ready for basic block
17967         to be changed by edge redirection.
17969 2013-08-26  Jan Hubicka  <jh@suse.cz>
17971         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17972         formating; add sanity check.
17973         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17974         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17975         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17976         (resolve_noninline_speculation): Update callee keys, too.
17978 2013-08-26  Jan Hubicka  <jh@suse.cz>
17980         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17981         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17983 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17985         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17986         into proper place.
17988 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
17990         * config/i386/i386.c (ix86_debug_options): Remove prototype.
17991         (x86_64_elf_select_section): Ditto.
17992         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17993         arguments.
17994         (ix86_pass_by_reference): Ditto.
17995         (output_set_got): Ditto.
17996         (ix86_unary_operator_ok): Ditto.
17997         (ix86_expand_builtin): Ditto.
17999 2013-08-23  Jan Hubicka  <jh@suse.cz>
18001         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
18003 2013-08-23  Jan Hubicka  <jh@suse.cz>
18005         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
18006         (tree_decl_with_vis): Add FINAL field.
18008 2013-08-23  Jeff Law  <law@redhat.com>
18010         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
18011         the debugging dump when the expression is fully redundant.
18013 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18015         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
18016         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
18017         * pretty-print.c (pp_formatted_text_data): Likewise.
18018         (pp_write_text_to_stream): Likewise.
18019         (pp_write_text_as_dot_label_to_stream): Likewise.
18020         (pp_append_r): Likewise.
18021         (pp_format): Likewise.
18022         (pp_flush): Likewise.
18023         (pp_clear_output_area): Likewise.
18024         (pp_append_text): Likewise.
18025         (pp_formatted_text): Likewise.
18026         (pp_remaining_character_count_for_line): Likewise.
18027         (pp_newline): Likewise.
18028         (pp_character): Likewise.
18029         (output_buffer::~output_buffer): Define.
18030         (pretty_printer::~pretty_printer): Destruct output buffer.
18031         * pretty-print.h (output_buffer::~output_buffer): Declare.
18032         (pretty_printer::~pretty_printer): Declare virtual.
18034 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
18036         PR other/57324
18037         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
18038         HOST_WIDE_INT_M1U): New macros.
18039         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
18040         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
18041         unsigned -1 for lshift.
18042         * cse.c (cse_insn): Likewise.
18043         * double-int.c (rshift_double, lshift_double): Likewise.
18044         * builtins.c (fold_builtin_bitop): Likewise.
18045         * combine.c (force_to_mode): Likewise.
18046         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
18047         * simplify-rtx.c (simplify_const_unary_operation,
18048         simplify_const_binary_operation): Likewise.
18049         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
18050         check_va_list_escapes): Likewise.
18051         * rtlanal.c (nonzero_bits1): Likewise.
18052         * expmed.c (expand_smod_pow2): Likewise.
18053         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
18055 2013-08-23  Jan Hubicka  <jh@suse.cz>
18057         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
18058         as having address taken.
18060 2013-08-23  Jan Hubicka  <jh@suse.cz>
18062         * ipa-utils.h (method_class_type): Declare.
18063         * ipa-devirt.c (method_class_type): Export.
18065         * cgraphunit.c (analyze_functions): Do basic devirtualization;
18066         do not walk base classes of anonymous types.
18068 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
18070         PR rtl-optimization/58220
18071         PR regression/58221
18072         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
18073         handle SEQUENCE insns properly.
18075 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18077         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
18078         definition.
18079         (pp_newline_and_indent): Likewise.
18080         (pp_separate_with): Likewise.
18081         * pretty-print.c (pp_newline_and_flush): Define.
18082         (pp_newline_and_indent): Likewise.
18083         (pp_separate_with): Likewise.
18085 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
18087         PR target/58218
18088         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
18089         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
18091 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
18093         * config/i386/predicates.md (ext_sse_reg_operand): New.
18094         * config/i386/i386.md (*movti_internal): Use
18095         predicate to determine if EVEX is needed.
18096         (*movsi_internal): Ditto.
18097         (*movdf_internal): Ditto.
18098         (*movsf_internal): Ditto.
18099         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
18101 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
18103         PR tree-optimization/58209
18104         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
18105         (find_tail_calls): Give up for pointer result types if m is non-NULL.
18106         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
18107         emit POINTER_PLUS_EXPR.
18108         (create_tailcall_accumulator): For pointer result type accumulate in
18109         sizetype type.
18111 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
18113         * configure.ac: Add backslashes missing from the last change.
18114         * configure: Regenerate.
18116 2013-08-22  Jan Hubicka  <jh@susue.cz>
18118         * ipa.c (function_and_variable_visibility): First remember function
18119         was global and then make it local.
18121 2013-08-22  Julian Brown  <julian@codesourcery.com>
18123         * configure.ac: Add aarch64 to list of arches which use "nop" in
18124         debug_line test.
18125         * configure: Regenerate.
18127 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18129         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
18130         gnu_libc_has_function.
18131         * config/s390/tpf.h: Likewise.
18133 2013-08-22  Jan Hubicka  <jh@susue.cz>
18135         * timevar.c (validate_phases): Add cast.
18137 2013-08-22  Jan Hubicka  <jh@susue.cz>
18139         * timevar.c (validate_phases): Use size_t for memory.
18140         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18142 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18144         * pretty-print.h (output_buffer::output_buffer): Declare.
18145         (pretty_printer::pretty_printer): Likewise.
18146         (pp_construct): Remove.
18147         * pretty-print.c (output_buffer::output_buffer): Define.
18148         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
18149         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18150         (print_gimple_expr): Likewise.
18151         (print_gimple_seq): Likewise.
18152         (gimple_dump_bb): Likewise.
18153         * sched-vis.c (dump_value_slim): Likewise.
18154         (dump_insn_slim): Likewise.
18155         (dump_rtl_slim): Likewise.
18156         (str_pattern_slim): Likewise.
18157         * tree-mudflap.c (mf_varname_tree): Likewise.
18158         * graph.c (print_graph_cfg): Likewise.
18159         (start_graph_dump): Likewise.
18160         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
18161         placement-new.
18162         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18163         pretty printer initialization.
18164         * coretypes.h (diagnostic_context): Remove superflous type alias
18165         declaration.
18166         (pretty_printer): Likewise.  Declare directly as a class.
18167         (pretty_print_info): Remove declaration as class.
18168         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18169         and pp_clear_output_area.
18170         (asan_add_global): Likewise.
18172 2013-08-22  Jan Hubicka  <jh@suse.cz>
18174         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18175         * ipa-utils.h (update_type_inheritance_graph): Declare.
18176         (possible_polymorphic_call_target_p): Declare.
18177         (possible_polymorphic_call_target_p): New.
18178         * ipa-devirt.c: Update toplevel comments.
18179         (cached_polymorphic_call_targets): Move up.
18180         (odr_type_d): Move ID down.
18181         (polymorphic_type_binfo_p): Update comment.
18182         (odr_hasher::remove): Likewise;
18183         (get_odr_type): Set anonymous_namespace.
18184         (dump_odr_type): Dump it.
18185         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18186         (maybe_record_node): Record node in cached_polymorphic_call_targets.
18187         (record_binfo): Add comment.
18188         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18189         built.
18190         (devirt_node_removal_hook): Do not iCE when cache is freed.
18191         (possible_polymorphic_call_target_p): New predicate.
18192         (update_type_inheritance_graph): New function.
18194 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18195             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18196             Sergey Lega  <sergey.s.lega@intel.com>
18197             Anna Tikhonova  <anna.tikhonova@intel.com>
18198             Ilya Tocar  <ilya.tocar@intel.com>
18199             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18200             Ilya Verbin  <ilya.verbin@intel.com>
18201             Kirill Yukhin  <kirill.yukhin@intel.com>
18202             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18204         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18205         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18206         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18207         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18208         (OPTION_MASK_ISA_AVX2_UNSET): Update.
18209         (OPTION_MASK_ISA_AVX512F_UNSET): New.
18210         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18211         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18212         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18213         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18214         OPT_mavx512pf, OPT_mavx512er cases.
18215         * config/i386/constraints.md (v): New constraint.
18216         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18217         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18218         (bit_AVX512CD): New.
18219         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18220         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18221         * config/i386/i386-c.c (ix86_target_macros_internal):
18222         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18223         __AVX512PF__.
18224         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18225         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18226         * config/i386/i386.c (regclass_map, dbx_register_map)
18227         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18228         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18229         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18230         -mavx512pf options.
18231         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18232         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
18233         -mavx512pf options.  Fix formatting.
18234         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18235         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
18236         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18237         -mavx512cd, -mavx512pf options.
18238         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18239         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18240         (ix86_preferred_output_reload_class): Replace SSE_REGS with
18241         ALL_SSE_REGS.
18242         (ix86_hard_regno_mode_ok): Support 512-bit registers.
18243         (ix86_set_reg_reg_cost): Ditto.
18244         (x86_order_regs_for_local_alloc): Ditto.
18245         (MAX_VECT_LEN): Extend to 64-byte.
18246         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18247         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18248         (TARGET_AVX512ER, TARGET_AVX512CD): New.
18249         (BIGGEST_ALIGNMENT): Extend to 512-bits.
18250         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18251         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18252         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18253         (SSE_REG_MODE_P): Support new modes.
18254         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18255         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18256         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18257         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18258         (REG_CLASS_CONTENTS): Add new registers.
18259         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18260         (EXT_REX_SSE_REGNO_P): New.
18261         (HI_REGISTER_NAMES): Add new registers.
18262         * config/i386/i386.md: Define constants for new registers.
18263         (mode): Add new 512-bit modes.
18264         (prefix): Support evex prefix.
18265         (isa): Support avx512f, noavx512f, fma_avx512f.
18266         (ssemodesuffix): Add new 512-bit modes.
18267         (movxi): New.
18268         (*movxi_internal_avx512f): Ditto.
18269         (*movdi_internal): Replace constraint "x" with the new constraint "v".
18270         Support MODE_XI.
18271         (*movsi_internal): Likewise.
18272         (*movdf_internal): Likewise.
18273         (*movsf_internal): Likewise.
18274         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18275         (<code><mode>3): Likewise.
18276         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18277         New.
18278         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18279         with the new constraint "v".
18280         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18281         modes.
18282         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18283         with the new constraint "v".
18284         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18285         (<sse2>_storedqu<avxsizesuffix>): Likewise.
18286         (*<plusminus_insn><mode>3): Likewise.
18287         (<sse>_vm<plusminus_insn><mode>3): Likewise.
18288         (*mul<mode>3): Likewise.
18289         (<sse>_vmmul<mode>3): Likewise.
18290         (<sse>_div<mode>3): Likewise.
18291         (<sse>_vmdiv<mode>3): Likewise.
18292         (<sse>_sqrt<mode>2): Likewise.
18293         (<sse>_vmsqrt<mode>2): Likewise.
18294         (*<code><mode>3_finite): Likewise.
18295         (*<code><mode>3) <smaxmin>: Likewise.
18296         (<sse>_vm<code><mode>3): Likewise.
18297         (*<code><mode>3) <any_logic>: Likewise.
18298         (*fma_fmadd_<mode>): Likewise.
18299         (*fma_fmsub_<mode>): Likewise.
18300         (*fma_fnmadd_<mode>): Likewise.
18301         (*fma_fnmsub_<mode>): Likewise.
18302         (*fma_fmaddsub_<mode>): Likewise.
18303         (*fma_fmsubadd_<mode>): Likewise.
18304         (*fmai_fmadd_<mode>): Likewise.
18305         (*fmai_fmsub_<mode>): Likewise.
18306         (*fmai_fnmadd_<mode>): Likewise.
18307         (*fmai_fnmsub_<mode>): Likewise.
18308         (sse_cvtsi2ss): Likewise.
18309         (sse_cvtsi2ssq): Likewise.
18310         (sse_cvtss2si): Likewise.
18311         (sse_cvtss2si_2): Likewise.
18312         (sse_cvtss2siq): Likewise.
18313         (sse_cvtss2siq_2): Likewise.
18314         (sse_cvttss2si): Likewise.
18315         (sse_cvtss2siq_2): Likewise.
18316         (float<sseintvecmodelower><mode>2): Likewise.
18317         (sse2_cvtsd2si_2): Likewise.
18318         (sse2_cvtsd2siq_2): Likewise.
18319         (*<plusminus_insn><mode>3): Likewise.
18320         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18321         (*<sse4_1_avx2>_mul<mode>3): Likewise.
18322         (ashr<mode>3): Likewise.
18323         (<shift_insn><mode>3): Likewise.
18324         (avx2_<code><mode>3): Likewise.
18325         (*avx2_<code><mode>3): Likewise.
18326         (*andnot<mode>3): Likewise.
18327         (*<code><mode>3) <any_logic>: Likewise.
18328         (abs<mode>2): Likewise.
18329         (avx2_permvar<mode>): Likewise.
18330         (avx2_perm<mode>_1): Likewise.
18331         (*avx_vpermilp<mode>): Likewise.
18332         (avx_vpermilvar<mode>3): Likewise.
18333         (avx2_ashrv<mode>): Likewise.
18334         (avx2_<shift_insn>v<mode>): Likewise.
18335         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18336         -mavx512cd.
18337         * doc/rtl.texi: Document XImode.
18339 2013-08-21  Jeff Law  <law@redhat.com>
18341         * tree-flow.h (register_jump_thread): Pass vector of edges
18342         instead of each important edge.
18343         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18344         thread path into a vector and pass that to register_jump_thread.
18345         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18346         passed in edge vector to the current 3-edge form.
18348         Revert:
18349         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18351         * dce.c (fini_dce): Call df_analyze again just in case
18352         delete_unmarked_insns removed anything.
18354 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
18356         * reload.h (struct reg_equivs): Rename to ..
18357         (struct reg_equivs_s): .. this.
18359 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
18361         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18363 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18365         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18367 2013-08-21  Jeff Law  <law@redhat.com>
18369         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18370         simplify assignments too.  If the RHS collapses to a singleton
18371         range, then return the value for the range.
18373 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18375         * config/i386/sse.md (V16): Rename to...
18376         (VMOVE): this.
18377         (mov<mode>): Update iterator name.
18378         (*mov<mode>_internal): Ditto.
18379         (push<mode>1): Ditto.
18380         (movmisalign<mode>): Ditto.
18382 2013-08-20  Jan Hubicka  <jh@suse.cz>
18384         PR bootstrap/58186
18385         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18386         entry for direct edges.
18387         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18389 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18391         Revert my last two changes, r201865 and r201864:
18393         Revert r201865:
18394         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18396         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18397         instances can own GC refs.
18399         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18400         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18401         (gcc::context::gt_pch_nx): Likewise.
18402         (gcc::context::gt_pch_nx):  Likewise.
18403         * ggc.h (gt_ggc_mx <T>): New.
18404         (gt_pch_nx_with_op <T>): New.
18405         (gt_pch_nx <T>): New.
18406         * passes.c (opt_pass::gt_ggc_mx): New.
18407         (opt_pass::gt_pch_nx): New.
18408         (opt_pass::gt_pch_nx_with_op): New.
18409         (pass_manager::gt_ggc_mx): New.
18410         (pass_manager::gt_pch_nx): New.
18411         (pass_manager::gt_pch_nx_with_op): New.
18412         (pass_manager::operator new): Use
18413         ggc_internal_cleared_alloc_stat rather than xcalloc.
18414         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18415         (pass_manager::gt_ggc_mx): New.
18416         (pass_manager::gt_pch_nx): New.
18417         (pass_manager::gt_pch_nx_with_op): New.
18418         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18419         (opt_pass::operator new): New.
18420         (opt_pass::gt_ggc_mx): New.
18421         (opt_pass::gt_pch_nx): New.
18422         (opt_pass::gt_pch_nx_with_op): New.
18424         Revert r201864:
18425         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18427         * Makefile.in (GTFILES): Add context.h.
18428         * context.c (gcc::context::operator new): New.
18429         (gcc::context::gt_ggc_mx): New.
18430         (gcc::context::gt_pch_nx): New.
18431         (gcc::context::gt_pch_nx): New.
18432         * context.h (gcc::context): Add GTY((user)) marking.
18433         (gcc::context::operator new): New.
18434         (gcc::context::gt_ggc_mx): New.
18435         (gcc::context::gt_pch_nx): New.
18436         (gcc::context::gt_pch_nx): New.
18437         (g): Add GTY marking.
18438         (gt_ggc_mx (gcc::context *)): New.
18439         (gt_pch_nx (gcc::context *)): New.
18440         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18441         void *cookie)): New.
18442         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18444 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18446         * dce.c (fini_dce): Call df_analyze again just in case
18447         delete_unmarked_insns removed anything.
18449 2013-08-20  Teresa Johnson  <tejohnson@google.com>
18451         PR rtl-optimizations/57451
18452         * final.c (reemit_insn_block_notes): Prevent lexical blocks
18453         from crossing split section boundaries.
18455 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
18457         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18458         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18459         with MULTLIB_DEFAULTS.
18461 2013-08-20  Nick Clifton  <nickc@redhat.com>
18463         * target.def (narrow_volatile_bitfield): Note that the default
18464         value is false, not !TARGET_STRICT_ALIGN.
18465         * doc/tm.texi: Regenerate.
18467 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
18469         Fix LIB_SPEC for systems without libpthread.
18471         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18472         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18473         for Android.
18474         * config/i386/linux-common.h: Likewise.
18475         * config/mips/linux-common.h: Likewise.
18477 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18479         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18480         checks.
18482 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18484         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18485         instances can own GC refs.
18487         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18488         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18489         (gcc::context::gt_pch_nx): Likewise.
18490         (gcc::context::gt_pch_nx):  Likewise.
18491         * ggc.h (gt_ggc_mx <T>): New.
18492         (gt_pch_nx_with_op <T>): New.
18493         (gt_pch_nx <T>): New.
18494         * passes.c (opt_pass::gt_ggc_mx): New.
18495         (opt_pass::gt_pch_nx): New.
18496         (opt_pass::gt_pch_nx_with_op): New.
18497         (pass_manager::gt_ggc_mx): New.
18498         (pass_manager::gt_pch_nx): New.
18499         (pass_manager::gt_pch_nx_with_op): New.
18500         (pass_manager::operator new): Use
18501         ggc_internal_cleared_alloc_stat rather than xcalloc.
18502         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18503         (pass_manager::gt_ggc_mx): New.
18504         (pass_manager::gt_pch_nx): New.
18505         (pass_manager::gt_pch_nx_with_op): New.
18506         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18507         (opt_pass::operator new): New.
18508         (opt_pass::gt_ggc_mx): New.
18509         (opt_pass::gt_pch_nx): New.
18510         (opt_pass::gt_pch_nx_with_op): New.
18512 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18514         * Makefile.in (GTFILES): Add context.h.
18515         * context.c (gcc::context::operator new): New.
18516         (gcc::context::gt_ggc_mx): New.
18517         (gcc::context::gt_pch_nx): New.
18518         (gcc::context::gt_pch_nx): New.
18519         * context.h (gcc::context): Add GTY((user)) marking.
18520         (gcc::context::operator new): New.
18521         (gcc::context::gt_ggc_mx): New.
18522         (gcc::context::gt_pch_nx): New.
18523         (gcc::context::gt_pch_nx): New.
18524         (g): Add GTY marking.
18525         (gt_ggc_mx (gcc::context *)): New.
18526         (gt_pch_nx (gcc::context *)): New.
18527         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18528         void *cookie)): New.
18529         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18531 2013-08-20  Alan Modra  <amodra@gmail.com>
18533         PR target/57865
18534         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18535         (rs6000_emit_epilogue): Likewise.
18537 2013-08-19  Dehao Chen  <dehao@google.com>
18539         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18541 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
18542             Jakub Jelinek  <jakub@redhat.com>
18544         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18545         (BUILT_IN_FABSD64): Likewise.
18546         (BUILT_IN_FABSD128): Likewise.
18547         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18548         (fold_builtin_1): Likewise.
18549         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18550         destination and source operands.
18551         (*abstd2_fpr): Likewise.
18552         (*nabstd2_fpr): Likewise.
18554 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
18556         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18557         JUMP_P and INSN_P.
18559 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
18561         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18562         incomplete.
18564 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18566         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18567         * builtins.c (default_libc_has_function): New.
18568         (gnu_libc_has_function): Ditto.
18569         (no_c99_libc_has_function): Ditto.
18570         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18571         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18572         (fold_builtin_sincos): Likewise.
18573         (fold_builtin_cexp): Likewise.
18574         * builtins.def (DEF_C94_BUILTIN): Likewise.
18575         (DEF_C99_BUILTIN): Likewise.
18576         (DEF_C99_C90RES_BUILTIN): Likewise.
18577         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18578         definitions to using this define.
18579         * config/darwin-protos.h (darwin_libc_has_function): New.
18580         * config/darwin.c (darwin_libc_has_function): Ditto.
18581         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18582         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18583         * config/darwin.h: Ditto.
18584         * config/elfos.h: Ditto.
18585         * config/freebsd.h: Ditto.
18586         * config/i386/cygming.h: Ditto.
18587         * config/i386/djgpp.h: Ditto.
18588         * config/i386/i386-interix.h: Ditto.
18589         * config/microblaze/microblaze.h: Ditto.
18590         * config/mmix/mmix.h: Ditto.
18591         * config/gnu-user.h: Ditto.
18592         * config/ia64/hpux.h: Ditto.
18593         * config/pa/pa-hpux.h: Ditto.
18594         * config/pdp11/pdp11.h: Ditto.
18595         * config/picochip/picochip.h: Ditto.
18596         * config/linux.h: Ditto.
18597         * config/netbsd.h: Ditto.
18598         * config/openbsd.h: Ditto.
18599         * config/rs6000/aix43.h: Ditto.
18600         * config/rs6000/aix51.h: Ditto.
18601         * config/rs6000/aix52.h: Ditto.
18602         * config/rs6000/aix53.h: Ditto.
18603         * config/rs6000/aix61.h: Ditto.
18604         * config/rs6000/darwin.h: Ditto.
18605         * config/rs6000/linux.h: Ditto.
18606         * config/rs6000/linux64.h: Ditto.
18607         * config/s390/tpf.h: Ditto.
18608         * config/sol2-10.h: Ditto.
18609         * config/sol2.h: Ditto.
18610         * config/vms/vms.h: Ditto.
18611         * config/vxworks.h: Ditto.
18612         * config/linux-android.c (linux_android_libc_has_function):
18613         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18614         * config/linux-protos.h (linux_android_libc_has_function):
18615         New declaration.
18616         * config/i386/i386.c (ix86_libc_has_function): New.
18617         * config/i386/i386-protos.h
18618         (ix86_libc_has_function): New declaration.
18619         * config/i386/i386.md
18620         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18621         ("isinf<mode>2): Likewise.
18622         * convert.c (convert_to_integer): Using new target hook
18623         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18624         TARGET_C99_FUNCTIONS.
18625         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18626         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18627         * coretypes.h (function_class): New enum for different
18628         classes of functions.
18629         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18630         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18631         (TARGET_HAS_SINCOS): Likewise.
18632         (TARGET_LIBC_HAS_FUNCTION): New.
18633         * doc/tm.texi: Regenerated.
18634         * targhooks.h (default_libc_has_function): New declaration.
18635         (no_c99_libc_has_function): Ditto.
18636         (gnu_libc_has_function): Ditto.
18637         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18638         and TARGET_HAS_SINCOS.
18640 2013-08-18  Jan Hubicka  <jh@suse.cz>
18642         * Makeifle-in (ipa-devirt.o): New.
18643         (GTFILES): Add ipa-utils.h and ipa-devirt.c
18644         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18645         (analyze_functions): Look into possible targets of polymorphic call.
18646         * dumpfile.c (dump_files): Add type-inheritance dump.
18647         * dumpfile.h (TDI_inheritance): New.
18648         * ipa-devirt.c: New file.
18649         * ipa-utils.h (odr_type_d): Forward declare.
18650         (odr_type): New type.
18651         (build_type_inheritance_graph): Declare.
18652         (possible_polymorphic_call_targets): Declare and introduce inline
18653         variant when only edge is pased.
18654         (dump_possible_polymorphic_call_targets): Likewise.
18655         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18656         * tree.c (type_in_anonymous_namespace_p): Break out from ...
18657         (types_same_for_odr): ... here.
18658         * tree.h (type_in_anonymous_namespace_p): Declare.
18660 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
18662         PR tree-optimization/58006
18663         * tree-parloops.c (take_address_of): Don't ICE if get_name
18664         returns NULL.
18665         (eliminate_local_variables_stmt): Remove clobber stmts.
18667 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
18669         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18670         error message is issued for an alias to undefined symbol.
18672 2013-08-18  Jan Hubicka  <jh@suse.cz>
18674         * cgraph.c (cgraph_create_indirect_edge): Discover
18675         polymorphic calls and record basic info into indirect_info.
18676         * gimple-fold.c (gimple_fold_call): When doing BINFO based
18677         devirtualization, ignore objc function calls.
18678         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18679         call with no parm index info.
18680         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18681         * tree.c (virtual_method_call_p): New function.
18682         * tree.h (virtual_method_call_p): Declare.
18684 2013-08-16  Jan Hubicka  <jh@suse.cz>
18686         PR middle-end/58179
18687         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18689 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
18691         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18692         attribute.
18694 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18696         * gengtype.c (type_for_name): Add special-case support for
18697         locating types within the "gcc::" namespace.
18698         (open_base_files): Emit a "using namespace gcc" directive.
18700 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
18702         PR target/58160
18703         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18704         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18706         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18707         array instead of each individual operand as a separate argument.
18708         (emit_fusion_gpr_load): Likewise.
18709         (expand_fusion_gpr_load): Add new function declaration.
18711         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18712         signature to have the operands passed as an array, instead of as
18713         separate arguments.  Allow ZERO_EXTEND to be in the memory
18714         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
18715         depend on the register live/dead flags when peepholes are run.
18716         (expand_fusion_gpr_load): New function to be called from the
18717         peephole2 pass, to change the register that addis sets to be the
18718         target register.
18719         (emit_fusion_gpr_load): Change the calling signature to have the
18720         operands passed as an array, instead of as separate arguments.
18721         Allow ZERO_EXTEND to be in the memory address, and also
18722         SIGN_EXTEND if -mpower8-fusion-sign.
18724         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18725         unspec enumeration.
18726         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18727         adjust the register addis loads up in the peephole2 pass.  Do not
18728         depend on the register live/dead state when the peephole pass is done.
18730 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18732         * gengtype.c (create_user_defined_type): Ensure that the kind
18733         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18734         declaration is seen before the GTY((user)) marking.
18736 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18738         PR target/58105
18739         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18741 2013-08-16  Jan Hubicka  <jh@suse.cz>
18743         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18744         arugment expected_type.
18745         (gimple_fold_call): Use it.
18746         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18747         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18748         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18749         (try_make_edge_direct_virtual_call): Likewise.
18750         * tree.c (obj_type_ref_class): New.
18751         * tree.h (obj_type_ref_class): Use it.
18753 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18755         * sched-vis.c (rtl_slim_pp_initialized): Remove.
18756         (rtl_slim_pp): Likewise.
18757         (init_rtl_slim_pretty_print): Likewise.
18758         (dump_value_slim):  Don't call it.  Use local pretty printer.
18759         (dump_insn_slim): Likewise.
18760         (dump_rtl_slim): Likewise.
18761         (str_pattern_slim): Likewise.
18762         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18763         Simplify.
18765 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
18767         PR tree-optimization/58164
18768         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18769         walk gimple_goto_dest of GIMPLE_GOTO.
18771         PR tree-optimization/58165
18772         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18773         bi_call must be the last stmt in a bb, don't split_block, instead
18774         use fallthru edge from it and give up if there is none.
18775         Release conds vector when returning early.
18777 2013-08-14  Xinliang David Li  <davidxl@google.com>
18779         * config/i386/i386.c (ix86_option_override_internal):
18780         Remove unused variable and field.
18782 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18784         PR target/57949
18785         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18786         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18787         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18788         and Linux, correct BLKmode alignment when 128-bit alignment is
18789         required and compatibility flag is not set.
18790         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18791         for zero-size arguments when compatibility flag is not set.
18793 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18795         PR tree-optimization/58145
18796         * tree-sra.c (build_ref_for_offset): If prev_base has
18797         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18799 2013-08-14  Xinliang David Li  <davidxl@google.com>
18801         * config/i386/i386.c (ix86_option_override_internal):
18802         Fix uninitialized variable error.
18804 2013-08-14  Xinliang David Li  <davidxl@google.com>
18806         * config/i386/i386.opt: Define two new options.
18807         * config/i386/x86-tune.def: Add arch selector field in macros.
18808         * config/i386/i386.h: Adjust macro definition.
18809         * config/i386/i386.c (ix86_option_override_internal):
18810         Refactor the code.
18811         (parse_mtune_ctrl_str): New function.
18812         (set_ix86_tune_features): New function.
18813         (ix86_function_specific_restore): Call the new helper function.
18815 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
18817         PR rtl-optimization/57662
18818         * sel-sched.c (code_motion_process_successors): When the current insn
18819         is removed after the recursive traversal, break from the loop.
18820         Add comments and debug printouts.
18822 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18823             Alexandre Oliva  <aoliva@redhat.com>
18825         PR target/58067
18826         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18827         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18828         there also UNSPEC_PLTOFF.
18830 2013-08-14  Marek Polacek  <polacek@redhat.com>
18832         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18833         NUM_CONDITIONS bit positions.
18835 2013-08-13  Cary Coutant  <ccoutant@google.com>
18837         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18838         (attr_checksum): Hash vector contents instead of pointer.
18839         (attr_checksum_ordered): Likewise.
18841 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
18843         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18844         when Pmode != word_mode.  Add length_address attribute.
18845         (sse3_monitor_<mode>): Merge from sse3_monitor and
18846         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
18847         Pmode != word_mode.  Update insn length attribute.
18848         * config/i386/i386.c (ix86_option_override_internal): Update
18849         ix86_gen_monitor selection for merged sse3_monitor insn.
18851 2013-08-13  Julian Brown  <julian@codesourcery.com>
18853         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18854         perform invalid legitimization on greater-than-word-size modes for
18855         TARGET_E500_DOUBLE.
18857 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18859         * ira.c (setup_class_translate_array): Use aclass instead of cl
18860         for classes not fully covered by allocno classes.
18862 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
18864         PR tree-optimization/57661
18865         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18866         * tree-inline.c (tree_function_versioning): Initialize it.
18867         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18868         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18869         that is not being copied.
18871         PR sanitizer/56417
18872         * asan.c (instrument_strlen_call): Fix typo in comment.
18873         Use char * type even for the lhs of POINTER_PLUS_EXPR.
18875 2013-08-13  Steve Ellcey  <sellcey@mips.com>
18877         * config/mips/mips.md (prefetch): Use lw instead of ld on
18878         loongson in 32bit mode.
18880 2013-08-13  Nick Clifton  <nickc@redhat.com>
18882         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18884 2013-08-13  Jan Hubicka  <jh@suse.cz>
18886         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18887         introduced edge; fix typo in sanity check.
18888         (cgraph_resolve_speculation): Export; improve diagnostic.
18889         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18890         speculation at type mismatch.
18891         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18892         (cgraph_resolve_speculation): Declare.
18893         (symtab_can_be_discarded): New function.
18894         * value-prof.c (gimple_ic_transform): Remove actual transform code.
18895         * ipa-inline-transform.c (speculation_removed): New global var.
18896         (clone_inlined_nodes): See if speculation can be removed.
18897         (inline_call): If speculations was removed, we growths may not match.
18898         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18899         (speculation_useful_p): New function.
18900         (resolve_noninline_speculation): New function.
18901         (inline_small_functions): Resolve useless speculations.
18902         * ipa-inline.h (speculation_useful_p): Declare
18903         * ipa.c (can_replace_by_local_alias): Simplify.
18904         (ipa_profile): Produce speculative calls in non-lto, too;
18905         add simple cost model; produce local aliases.
18907 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
18909         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
18910         PASS_MANAGER_H.
18912 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
18914         * config/i386/i386.c (ix86_function_versions): Use error + inform.
18916 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
18918         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18919         iterator instead of X87MODEF.
18921 2013-08-12  Perez Read  <netfirewall@gmail.com>
18923         PR target/58132
18924         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
18925         operand 0 for intel asm alternative.
18926         (*movabs<mode>_2): Ditto for operand 1.
18928 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
18930         * config/aarch64/arm_none.h
18931         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18933 2013-08-12  Nick Clifton  <nickc@redhat.com>
18935         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18937 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
18939         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18940         expand for QI/HImode operand to produce more effictive code for
18941         unsigned char(short) --> float(double) conversion.
18943 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
18945         * doc/invoke.texi: Mention that -ftls-model does not force the final
18946         model.
18948 2013-08-12  Marek Polacek  <polacek@redhat.com>
18949             Marc Glisse  <marc.glisse@inria.fr>
18951         PR tree-optimization/57980
18952         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18953         when creating -1 constant.
18955 2013-08-10  Jan Hubicka  <jh@suse.cz>
18957         Workaround binutils PR14342.
18958         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18959         (gimple_init_edge_profiler): Likewise.
18960         (gimple_gen_ic_func_profiler): Likewise.
18962 2013-08-09  Jan Hubicka  <jh@suse.cz>
18964         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18966 2013-08-09  Xinliang David Li  <davidxl@google.com>
18968         * config/i386/stringop.def: New file.
18969         * config/i386/stringop.opt: New file.
18970         * config/i386/i386-opts.h: Include stringopt.def.
18971         * config/i386/i386.opt: Include stringopt.opt.
18972         * config/i386/i386.c (ix86_option_override_internal):
18973         Override default size based stringop inline strategies with options.
18974         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18975         New function.
18977 2013-08-09  Jan Hubicka  <jh@suse.cz>
18979         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18981 2013-08-09  Jan Hubicka  <jh@suse.cz>
18983         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18984         CGRAPH_FREQ_MAX.
18985         (dump_cgraph_node): Dump profile-id.
18986         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18987         and common_target_probability.
18988         * lto-cgraph.c (lto_output_edge): Stream common targets.
18989         (lto_output_node): Stream profile ids.
18990         (input_node): Stream profile ids.
18991         (input_edge): Stream common targets.
18992         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18993         * ipa.c: Include value-prof.h
18994         (ipa_profile_generate_summary): Turn indirect call statement histograms
18995         into common targets.
18996         (ipa_profile): Turn common targets into speculative edges.
18998 2013-08-09  Jan Hubicka  <jh@suse.cz>
19000         * cgraph.h (cgraph_node): Add profile_id.
19001         * value-prof.c (cgraph_node_map): Turn into pointer_map.
19002         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
19003         (del_node_map): Update.
19004         (find_func_by_funcdef_no): Replace by ...
19005         (find_func_by_profile_id): ... this one.
19006         (gimple_ic_transform): Do not remove useful histograms when
19007         speculation is not done; dump info when indirect call removal
19008         can happen at LTO.
19009         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
19010         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
19011         (__gcov_indirect_call_profiler_v2): .. this one.
19012         * profile.h (init_node_map): Update.
19013         * coverage.c (coverage_compute_profile_id): New function.
19014         * coverage.h (coverage_compute_profile_id): Declare.
19015         * tree-profile.c (init_ic_make_global_vars): Make
19016         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
19017         (gimple_init_edge_profiler): Update prototype of
19018         __gcov_indirect_call_profiler.
19019         (gimple_gen_ic_func_profiler): Simplify.
19020         (tree_profiling): Use init_node_map
19022 2013-08-09  Jan Hubicka  <jh@suse.cz>
19024         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
19025         non-speculative refs.
19026         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
19027         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
19028         (cgraph_set_call_stmt): Likewise.
19029         (cgraph_create_edge_1): Fix release checking compilatoin;
19030         clear lto_stmt_uid.
19031         (cgraph_free_edge): Free indirect info.
19032         (cgraph_turn_edge_to_speculative): New function.
19033         (cgraph_speculative_call_info): New function.
19034         (cgraph_make_edge_direct): Return direct edge; handle speculation.
19035         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
19036         (dump_cgraph_node): Dump speculation.
19037         (verify_edge_count_and_frequency): Accept speculative edges.
19038         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
19039         (verify_cgraph_node): Handle speculation.
19040         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
19041         (cgraph_set_call_stmt): Update prototype.
19042         (cgraph_make_edge_direct): Update prototype.
19043         (cgraph_speculative_call_info): Declare.
19044         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
19045         to change; update call of ipa_find_references.
19046         * ipa-ref.c (ipa_record_reference): Fix return value; clear
19047         lto_stmt_uid and speculative flags.
19048         (ipa_dump_references): Dump speculation.
19049         (ipa_clone_references): Clone speculative flag.
19050         (ipa_clone_referring): Likewise.
19051         (ipa_clone_ref): New function.
19052         (ipa_find_reference): Look into lto_stmt_uids
19053         (ipa_clear_stmts_in_references): Do not clear speculative calls.
19054         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
19055         (ipa_find_reference): Update declaration.
19056         (ipa_clone_ref): Declare.
19057         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
19058         stream speculative flag.
19059         (lto_output_ref): Stream statements uids and speculation.
19060         (input_ref): Likewise.
19061         (input_edge): Stream speuclation.
19062         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
19063         (cgraph_set_call_stmt_including_clones): Handle speculation.
19064         * ipa-inline.c (heap_edge_removal_hook): New function.
19065         (inline_small_functions): Register it.
19066         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
19067         also initialize refs.
19068         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
19069         edge to change.
19070         (try_make_edge_direct_simple_call): Likewise.
19071         (try_make_edge_direct_simple_call): Likewise.
19072         (update_indirect_edges_after_inlining): Likewise.
19073         (remove_described_reference): Look proper lto_stmt_uid.
19074         (propagate_controlled_uses): Likewise.
19075         (propagate_controlled_uses): Liekwise.
19076         * tree-inline.c (copy_bb): Copy speculative edges.
19077         (redirect_all_calls): New function.
19078         (copy_cfg_body): Do redirection after loop info is updated.
19079         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
19081 2013-08-09  Jan Hubicka  <jh@suse.cz>
19083         * lto-streamer-out.c (output_function): Renumber PHIs.
19084         * lto-streamer-in.c (input_function): Likewise.
19086 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
19088         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
19089         (get_lane_unsigned): Likewise.
19090         (dup_lane_scalar): Likewise.
19091         (get_lane): enable for VALL.
19092         * config/aarch64/aarch64-simd.md
19093         (aarch64_dup_lane_scalar<mode>): Remove.
19094         (aarch64_get_lane_signed<mode>): Likewise.
19095         (aarch64_get_lane_unsigned<mode>): Likewise.
19096         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
19097         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
19098         (aarch64_get_lane<mode>): Enable for all vector modes.
19099         (aarch64_get_lanedi): Remove misleading constraints.
19100         * config/aarch64/arm_neon.h
19101         (__aarch64_vget_lane_any): Define.
19102         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
19103         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
19104         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
19105         * config/aarch64/iterators.md (VDQQH): New.
19106         (VDQQHS): Likewise.
19107         (vwcore): Likewise.
19109 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
19111         * configure.ac: Add GAS check for LEON instructions on SPARC.
19112         * configure: Regenerate.
19113         * config.in: Likewise.
19114         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
19115         sparc*-*-* block.
19116         * config/sparc/sparc.opt (LEON, LEON3): New masks.
19117         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
19118         for LEON or LEON3.
19119         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
19120         (AS_LEON_FLAG): New macro.
19121         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
19122         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
19123         Deal with LEON and LEON3 for the memory model.
19124         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
19125         (atomic_compare_and_swap<mode>_1): Likewise.
19126         (*atomic_compare_and_swap<mode>_1): Likewise.
19128 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19130         * config/arm/neon.md (vcond): Fix floating-point vector
19131         comparisons against 0.
19133 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
19135         * lra-constraints.c (emit_spill_move): Remove assert.
19136         (process_alt_operands): Add more debugging
19137         output.  Increase reject for spilling into memory.  Decrease
19138         reject for reloading scratch.
19139         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19141 2013-08-08  Steve Ellcey  <sellcey@mips.com>
19143         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19144         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19145         micromips incompatible.  Add nan2008.
19146         (MULTILIB_DIRNAMES): Add nan2008.
19147         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19148         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19149         and micromips incompatible.  Add nan2008.
19150         (MULTILIB_DIRNAMES): Add nan2008.
19151         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19153 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
19155         PR rtl-optimization/58079
19156         * combine.c (combine_simplify_rtx): Avoid using SUBST if
19157         simplify_comparison has widened a comparison with an integer.
19159 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19161         * config/arm/neon.md (movmisalign<mode>): Disable when we
19162         don't allow unaligned accesses.
19163         (*movmisalign<mode>_neon_store): Likewise.
19164         (*movmisalign<mode>_neon_load): Likewise.
19165         (*movmisalign<mode>_neon_store): Likewise.
19166         (*movmisalign<mode>_neon_load): Likewise.
19168 2013-08-08  Jan Hubicka  <jh@suse.cz>
19170         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19171         (make_pass_rebuild_cgraph_edges): Also clear references.
19172         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19173         * ipa-inline-transform.c (inline_transform): Remove all references
19174         after inlining.
19175         * cgraphunit.c (expand_function): Remove all references after
19176         expansion.
19177         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19178         (ipa_find_reference): Rewrite to iterator.
19179         (remove_stmt_references): Likewise.
19180         (ipa_clear_stmts_in_references): New function.
19181         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19182         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19183         clear references.
19184         * ipa-split.c (split_function): Remove references in split function.
19186 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
19188         PR target/57431
19189         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19190         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19192 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
19194         PR target/56979
19195         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19196         suggested mode for the assignment isn't compatible with the
19197         registers required.
19199 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19201         PR target/58065
19202         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19204 2013-08-07  Xinliang David Li  <davidxl@google.com>
19206         * config/i386/i386.opt: New option -mtune-ctrl=.
19207         * config/i386/x86-tune.def: New file.
19208         * config/i386/i386.h: include x86-tune.def.
19209         * config/i386/i386.c (ix86_option_override_internal):
19210         Parsing -mtune-ctrl= option and set tune features.
19212 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
19214         PR other/12081
19215         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19216         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19217         to gen_2arg_fn_t.
19219 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
19221         * rtl.h (update_alignments): Declare.
19222         * final.c (grow_label_align): New function extracted from...
19223         (shorten_branches): ...here.  Call it.
19224         (update_alignments): New function.
19225         * reorg.c (sibling_labels): New variable.
19226         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
19227         the new label along with it onto the sibling_labels vector.
19228         (fill_simple_delay_slots): Adjust call to get_label_before.
19229         (fill_slots_from_thread): Likewise.
19230         (relax_delay_slots): Likewise.
19231         (make_return_insns): Likewise.
19232         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19234 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
19236         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19237         document its semantics.
19238         (diagnostic_report_diagnostic): Adjust accordingly.
19240 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19242         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19243         (sparc_option_override): ...and port to new C++ pass API.
19244         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19246 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
19248         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19250 2013-08-06  Caroline Tice  <cmtice@google.com>
19252         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19253         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19254         * tree-pass.h: Add pass_vtable_verify.
19255         * varasm.c (assemble_variable): Add code to properly set the comdat
19256         section and name for the .vtable_map_vars section.
19257         (assemble_vtyv_preinit_initializer): New function.
19258         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
19259         LINK_ONCE flag.
19260         * output.h: Add function decl for assemble_vtv_preinit_initializer.
19261         * vtable-verify.c: New file.
19262         * vtable-verify.h: New file.
19263         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19264         initialiation levels.
19265         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19266         * passes.def: Insert pass_vtable_verify.
19267         * aclocal.m4: Reorder includes.
19268         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
19269         -fvtv-counts options.
19270         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19271         as appropriate, if -fvtable-verify=... is used.
19272         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19273         -fvtable-verify=... is used.
19274         * Makefile.in (OBJS):  Add vtable-verify.o to list.
19275         (vtable-verify.o): Add new build rule.
19276         (GTFILES): Add vtable-verify.c to list.
19277         * common.opt (fvtable-verify=): New flag.
19278         (vtv_priority): Values for fvtable-verify= flag.
19279         (fvtv-counts): New flag.
19280         (fvtv-debug): New flag.
19281         * tree.h (save_vtable_map_decl): New extern function decl.
19283 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19285         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19286         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19287         (pass_data_rl78_devirt): ...new pass_data instance and...
19288         (make_pass_rl78_devirt): ...new function.
19289         (rl78_asm_file_start): Port pass registration to new C++ API.
19291 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19293         * coretypes.h (rtl_opt_pass): Add.
19294         (gcc::context): Add.
19295         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19296         (epiphany_init): Port to new C++ pass API.
19297         (epiphany_optimize_mode_switching): Likewise.
19298         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19299         (pass_manager::get_pass_mode_switching): New.
19300         (pass_manager::get_pass_peephole2): New.
19301         * mode-switching.c (pass_mode_switching): Add clone method.
19302         * recog.c (pass_peephole2): Add clone method.
19303         (pass_split_all_insns): Add clone method.
19305 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
19307         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19308         (mips_option_override): ...here, porting to new C++ API for passes.
19310 2013-08-06  Jan Hubicka  <jh@suse.cz>
19312         * cgraph.c (cgraph_get_body): New function based on lto.c
19313         implementation.
19314         * cgraph.h (cgraph_get_body): Declare.
19315         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19316         LTO paths.
19317         * cgraphunit.c (expand_function): Get body prior expanding.
19318         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19319         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19320         really need.
19321         * passes.c (do_per_function_toporder): Get body.
19322         * tree-inline.c (expand_call_inline): Get body prior inlining it.
19323         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19325 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19327         PR fortran/57987
19328         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19329         is not re-finalized.  Rename second parameter to no_collect.
19331 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19333         PR middle-end/58041
19334         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19335         MEM_REF has proper alignment information.
19337 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
19339         PR other/12081
19340         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19341         class insn_gen_fn.
19342         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19343         rtx (*) (rtx, ...) with insn_gen_fn.
19344         * genoutput.c (output_insn_data): Cast gen_? function pointers to
19345         insn_gen_fn::stored_funcptr.  Add initializer braces.
19347 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19349         Rewrite how instances of passes are cloned to remove assumptions
19350         about their sizes (thus allowing pass subclasses to have
19351         additional data fields, albeit non-GC-managed ones at this point).
19353         * passes.c (make_pass_instance): Now that passes have clone
19354         methods, rewrite this function to eliminate XNEW and memcpy
19355         calls that used hardcoded sizes.  Since this function no longer
19356         creates pass instances, rename it to...
19357         (add_pass_instance): ...this.  Document the old way that passes were
19358         numbered and flagged, and rework this function to continue using it.
19359         (next_pass_1): Add an initial_pass argument for use by
19360         add_pass_instance.
19361         (position_pass): When adding multiple instances of a pass, use
19362         the pass's clone method, rather than relying on the XNEW/memcpy
19363         within the former make_pass_instance (now add_pass_instance).
19364         (pass_manager::pass_manager): When invoking next_pass_1, also supply
19365         the initial instance of the current pass within the pass manager.
19367 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19369         This is the automated part of the conversion of passes from C
19370         structs to C++ classes.
19372         Patch autogenerated by refactor_passes.py from
19373         https://github.com/davidmalcolm/gcc-refactoring-scripts
19374         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19376         * asan.c (pass_asan): Convert from a global struct to a subclass of
19377         gimple_opt_pass along with...
19378         (pass_data_asan): ...new pass_data instance and...
19379         (make_pass_asan): ...new function.
19380         (pass_asan_O0): Convert from a global struct to a subclass of
19381         gimple_opt_pass along with...
19382         (pass_data_asan_O0): ...new pass_data instance and...
19383         (make_pass_asan_O0): ...new function.
19384         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19385         subclass of rtl_opt_pass along with...
19386         (pass_data_inc_dec): ...new pass_data instance and...
19387         (make_pass_inc_dec): ...new function.
19388         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19389         a subclass of rtl_opt_pass along with...
19390         (pass_data_reorder_blocks): ...new pass_data instance and...
19391         (make_pass_reorder_blocks): ...new function.
19392         (pass_duplicate_computed_gotos): Convert from a global struct to a
19393         subclass of rtl_opt_pass along with...
19394         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19395         (make_pass_duplicate_computed_gotos): ...new function.
19396         (pass_partition_blocks): Convert from a global struct to a subclass of
19397         rtl_opt_pass along with...
19398         (pass_data_partition_blocks): ...new pass_data instance and...
19399         (make_pass_partition_blocks): ...new function.
19400         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19401         struct to a subclass of rtl_opt_pass along with...
19402         (pass_data_branch_target_load_optimize1): ...new pass_data instance
19403         and...
19404         (make_pass_branch_target_load_optimize1): ...new function.
19405         (pass_branch_target_load_optimize2): Convert from a global struct to a
19406         subclass of rtl_opt_pass along with...
19407         (pass_data_branch_target_load_optimize2): ...new pass_data instance
19408         and...
19409         (make_pass_branch_target_load_optimize2): ...new function.
19410         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19411         of rtl_opt_pass along with...
19412         (pass_data_jump): ...new pass_data instance and...
19413         (make_pass_jump): ...new function.
19414         (pass_jump2): Convert from a global struct to a subclass of
19415         rtl_opt_pass along with...
19416         (pass_data_jump2): ...new pass_data instance and...
19417         (make_pass_jump2): ...new function.
19418         * cfgexpand.c (pass_expand): Convert from a global struct to a
19419         subclass of rtl_opt_pass along with...
19420         (pass_data_expand): ...new pass_data instance and...
19421         (make_pass_expand): ...new function.
19422         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19423         of rtl_opt_pass along with...
19424         (pass_data_free_cfg): ...new pass_data instance and...
19425         (make_pass_free_cfg): ...new function.
19426         (pass_into_cfg_layout_mode): Convert from a global struct to a
19427         subclass of rtl_opt_pass along with...
19428         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19429         (make_pass_into_cfg_layout_mode): ...new function.
19430         (pass_outof_cfg_layout_mode): Convert from a global struct to a
19431         subclass of rtl_opt_pass along with...
19432         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19433         (make_pass_outof_cfg_layout_mode): ...new function.
19434         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19435         struct to a subclass of gimple_opt_pass along with...
19436         (pass_data_build_cgraph_edges): ...new pass_data instance and...
19437         (make_pass_build_cgraph_edges): ...new function.
19438         (pass_rebuild_cgraph_edges): Convert from a global struct to a
19439         subclass of gimple_opt_pass along with...
19440         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19441         (make_pass_rebuild_cgraph_edges): ...new function.
19442         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19443         subclass of gimple_opt_pass along with...
19444         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19445         and...
19446         (make_pass_remove_cgraph_callee_edges): ...new function.
19447         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19448         struct to a subclass of rtl_opt_pass along with...
19449         (pass_data_stack_adjustments): ...new pass_data instance and...
19450         (make_pass_stack_adjustments): ...new function.
19451         * combine.c (pass_combine): Convert from a global struct to a subclass
19452         of rtl_opt_pass along with...
19453         (pass_data_combine): ...new pass_data instance and...
19454         (make_pass_combine): ...new function.
19455         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19456         global struct to a subclass of rtl_opt_pass along with...
19457         (pass_data_compare_elim_after_reload): ...new pass_data instance
19458         and...
19459         (make_pass_compare_elim_after_reload): ...new function.
19460         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19461         of rtl_opt_pass along with...
19462         (pass_data_rtl_cprop): ...new pass_data instance and...
19463         (make_pass_rtl_cprop): ...new function.
19464         * cse.c (pass_cse): Convert from a global struct to a subclass of
19465         rtl_opt_pass along with...
19466         (pass_data_cse): ...new pass_data instance and...
19467         (make_pass_cse): ...new function.
19468         (pass_cse2): Convert from a global struct to a subclass of
19469         rtl_opt_pass along with...
19470         (pass_data_cse2): ...new pass_data instance and...
19471         (make_pass_cse2): ...new function.
19472         (pass_cse_after_global_opts): Convert from a global struct to a
19473         subclass of rtl_opt_pass along with...
19474         (pass_data_cse_after_global_opts): ...new pass_data instance and...
19475         (make_pass_cse_after_global_opts): ...new function.
19476         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19477         of rtl_opt_pass along with...
19478         (pass_data_ud_rtl_dce): ...new pass_data instance and...
19479         (make_pass_ud_rtl_dce): ...new function.
19480         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19481         rtl_opt_pass along with...
19482         (pass_data_fast_rtl_dce): ...new pass_data instance and...
19483         (make_pass_fast_rtl_dce): ...new function.
19484         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19485         a subclass of rtl_opt_pass along with...
19486         (pass_data_df_initialize_opt): ...new pass_data instance and...
19487         (make_pass_df_initialize_opt): ...new function.
19488         (pass_df_initialize_no_opt): Convert from a global struct to a
19489         subclass of rtl_opt_pass along with...
19490         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19491         (make_pass_df_initialize_no_opt): ...new function.
19492         (pass_df_finish): Convert from a global struct to a subclass of
19493         rtl_opt_pass along with...
19494         (pass_data_df_finish): ...new pass_data instance and...
19495         (make_pass_df_finish): ...new function.
19496         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19497         rtl_opt_pass along with...
19498         (pass_data_rtl_dse1): ...new pass_data instance and...
19499         (make_pass_rtl_dse1): ...new function.
19500         (pass_rtl_dse2): Convert from a global struct to a subclass of
19501         rtl_opt_pass along with...
19502         (pass_data_rtl_dse2): ...new pass_data instance and...
19503         (make_pass_rtl_dse2): ...new function.
19504         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19505         subclass of rtl_opt_pass along with...
19506         (pass_data_dwarf2_frame): ...new pass_data instance and...
19507         (make_pass_dwarf2_frame): ...new function.
19508         * except.c (pass_set_nothrow_function_flags): Convert from a global
19509         struct to a subclass of rtl_opt_pass along with...
19510         (pass_data_set_nothrow_function_flags): ...new pass_data instance
19511         and...
19512         (make_pass_set_nothrow_function_flags): ...new function.
19513         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19514         subclass of rtl_opt_pass along with...
19515         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19516         and...
19517         (make_pass_convert_to_eh_region_ranges): ...new function.
19518         * final.c (pass_compute_alignments): Convert from a global struct to a
19519         subclass of rtl_opt_pass along with...
19520         (pass_data_compute_alignments): ...new pass_data instance and...
19521         (make_pass_compute_alignments): ...new function.
19522         (pass_final): Convert from a global struct to a subclass of
19523         rtl_opt_pass along with...
19524         (pass_data_final): ...new pass_data instance and...
19525         (make_pass_final): ...new function.
19526         (pass_shorten_branches): Convert from a global struct to a subclass of
19527         rtl_opt_pass along with...
19528         (pass_data_shorten_branches): ...new pass_data instance and...
19529         (make_pass_shorten_branches): ...new function.
19530         (pass_clean_state): Convert from a global struct to a subclass of
19531         rtl_opt_pass along with...
19532         (pass_data_clean_state): ...new pass_data instance and...
19533         (make_pass_clean_state): ...new function.
19534         * function.c (pass_instantiate_virtual_regs): Convert from a global
19535         struct to a subclass of rtl_opt_pass along with...
19536         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19537         (make_pass_instantiate_virtual_regs): ...new function.
19538         (pass_leaf_regs): Convert from a global struct to a subclass of
19539         rtl_opt_pass along with...
19540         (pass_data_leaf_regs): ...new pass_data instance and...
19541         (make_pass_leaf_regs): ...new function.
19542         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19543         subclass of rtl_opt_pass along with...
19544         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19545         and...
19546         (make_pass_thread_prologue_and_epilogue): ...new function.
19547         (pass_match_asm_constraints): Convert from a global struct to a
19548         subclass of rtl_opt_pass along with...
19549         (pass_data_match_asm_constraints): ...new pass_data instance and...
19550         (make_pass_match_asm_constraints): ...new function.
19551         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19552         subclass of rtl_opt_pass along with...
19553         (pass_data_rtl_fwprop): ...new pass_data instance and...
19554         (make_pass_rtl_fwprop): ...new function.
19555         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19556         rtl_opt_pass along with...
19557         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19558         (make_pass_rtl_fwprop_addr): ...new function.
19559         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19560         rtl_opt_pass along with...
19561         (pass_data_rtl_pre): ...new pass_data instance and...
19562         (make_pass_rtl_pre): ...new function.
19563         (pass_rtl_hoist): Convert from a global struct to a subclass of
19564         rtl_opt_pass along with...
19565         (pass_data_rtl_hoist): ...new pass_data instance and...
19566         (make_pass_rtl_hoist): ...new function.
19567         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19568         subclass of gimple_opt_pass along with...
19569         (pass_data_lower_cf): ...new pass_data instance and...
19570         (make_pass_lower_cf): ...new function.
19571         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19572         from a global struct to a subclass of gimple_opt_pass along with...
19573         (pass_data_strength_reduction): ...new pass_data instance and...
19574         (make_pass_strength_reduction): ...new function.
19575         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19576         of rtl_opt_pass along with...
19577         (pass_data_rtl_ifcvt): ...new pass_data instance and...
19578         (make_pass_rtl_ifcvt): ...new function.
19579         (pass_if_after_combine): Convert from a global struct to a subclass of
19580         rtl_opt_pass along with...
19581         (pass_data_if_after_combine): ...new pass_data instance and...
19582         (make_pass_if_after_combine): ...new function.
19583         (pass_if_after_reload): Convert from a global struct to a subclass of
19584         rtl_opt_pass along with...
19585         (pass_data_if_after_reload): ...new pass_data instance and...
19586         (make_pass_if_after_reload): ...new function.
19587         * init-regs.c (pass_initialize_regs): Convert from a global struct to
19588         a subclass of rtl_opt_pass along with...
19589         (pass_data_initialize_regs): ...new pass_data instance and...
19590         (make_pass_initialize_regs): ...new function.
19591         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19592         of ipa_opt_pass_d along with...
19593         (pass_data_ipa_cp): ...new pass_data instance and...
19594         (make_pass_ipa_cp): ...new function.
19595         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19596         global struct to a subclass of gimple_opt_pass along with...
19597         (pass_data_inline_parameters): ...new pass_data instance and...
19598         (make_pass_inline_parameters): ...new function.
19599         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19600         subclass of gimple_opt_pass along with...
19601         (pass_data_early_inline): ...new pass_data instance and...
19602         (make_pass_early_inline): ...new function.
19603         (pass_ipa_inline): Convert from a global struct to a subclass of
19604         ipa_opt_pass_d along with...
19605         (pass_data_ipa_inline): ...new pass_data instance and...
19606         (make_pass_ipa_inline): ...new function.
19607         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19608         struct to a subclass of gimple_opt_pass along with...
19609         (pass_data_local_pure_const): ...new pass_data instance and...
19610         (make_pass_local_pure_const): ...new function.
19611         (pass_ipa_pure_const): Convert from a global struct to a subclass of
19612         ipa_opt_pass_d along with...
19613         (pass_data_ipa_pure_const): ...new pass_data instance and...
19614         (make_pass_ipa_pure_const): ...new function.
19615         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19616         to a subclass of ipa_opt_pass_d along with...
19617         (pass_data_ipa_reference): ...new pass_data instance and...
19618         (make_pass_ipa_reference): ...new function.
19619         * ipa-split.c (pass_split_functions): Convert from a global struct to
19620         a subclass of gimple_opt_pass along with...
19621         (pass_data_split_functions): ...new pass_data instance and...
19622         (make_pass_split_functions): ...new function.
19623         (pass_feedback_split_functions): Convert from a global struct to a
19624         subclass of gimple_opt_pass along with...
19625         (pass_data_feedback_split_functions): ...new pass_data instance and...
19626         (make_pass_feedback_split_functions): ...new function.
19627         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19628         global struct to a subclass of simple_ipa_opt_pass along with...
19629         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19630         instance and...
19631         (make_pass_ipa_function_and_variable_visibility): ...new function.
19632         (pass_ipa_free_inline_summary): Convert from a global struct to a
19633         subclass of simple_ipa_opt_pass along with...
19634         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19635         (make_pass_ipa_free_inline_summary): ...new function.
19636         (pass_ipa_whole_program_visibility): Convert from a global struct to a
19637         subclass of ipa_opt_pass_d along with...
19638         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19639         and...
19640         (make_pass_ipa_whole_program_visibility): ...new function.
19641         (pass_ipa_profile): Convert from a global struct to a subclass of
19642         ipa_opt_pass_d along with...
19643         (pass_data_ipa_profile): ...new pass_data instance and...
19644         (make_pass_ipa_profile): ...new function.
19645         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19646         ipa_opt_pass_d along with...
19647         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19648         (make_pass_ipa_cdtor_merge): ...new function.
19649         * ira.c (pass_ira): Convert from a global struct to a subclass of
19650         rtl_opt_pass along with...
19651         (pass_data_ira): ...new pass_data instance and...
19652         (make_pass_ira): ...new function.
19653         (pass_reload): Convert from a global struct to a subclass of
19654         rtl_opt_pass along with...
19655         (pass_data_reload): ...new pass_data instance and...
19656         (make_pass_reload): ...new function.
19657         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19658         subclass of rtl_opt_pass along with...
19659         (pass_data_cleanup_barriers): ...new pass_data instance and...
19660         (make_pass_cleanup_barriers): ...new function.
19661         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19662         of rtl_opt_pass along with...
19663         (pass_data_loop2): ...new pass_data instance and...
19664         (make_pass_loop2): ...new function.
19665         (pass_rtl_loop_init): Convert from a global struct to a subclass of
19666         rtl_opt_pass along with...
19667         (pass_data_rtl_loop_init): ...new pass_data instance and...
19668         (make_pass_rtl_loop_init): ...new function.
19669         (pass_rtl_loop_done): Convert from a global struct to a subclass of
19670         rtl_opt_pass along with...
19671         (pass_data_rtl_loop_done): ...new pass_data instance and...
19672         (make_pass_rtl_loop_done): ...new function.
19673         (pass_rtl_move_loop_invariants): Convert from a global struct to a
19674         subclass of rtl_opt_pass along with...
19675         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19676         (make_pass_rtl_move_loop_invariants): ...new function.
19677         (pass_rtl_unswitch): Convert from a global struct to a subclass of
19678         rtl_opt_pass along with...
19679         (pass_data_rtl_unswitch): ...new pass_data instance and...
19680         (make_pass_rtl_unswitch): ...new function.
19681         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19682         subclass of rtl_opt_pass along with...
19683         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19684         and...
19685         (make_pass_rtl_unroll_and_peel_loops): ...new function.
19686         (pass_rtl_doloop): Convert from a global struct to a subclass of
19687         rtl_opt_pass along with...
19688         (pass_data_rtl_doloop): ...new pass_data instance and...
19689         (make_pass_rtl_doloop): ...new function.
19690         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19691         a subclass of rtl_opt_pass along with...
19692         (pass_data_lower_subreg): ...new pass_data instance and...
19693         (make_pass_lower_subreg): ...new function.
19694         (pass_lower_subreg2): Convert from a global struct to a subclass of
19695         rtl_opt_pass along with...
19696         (pass_data_lower_subreg2): ...new pass_data instance and...
19697         (make_pass_lower_subreg2): ...new function.
19698         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19699         struct to a subclass of ipa_opt_pass_d along with...
19700         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19701         (make_pass_ipa_lto_gimple_out): ...new function.
19702         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19703         of ipa_opt_pass_d along with...
19704         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19705         (make_pass_ipa_lto_finish_out): ...new function.
19706         * mode-switching.c (pass_mode_switching): Convert from a global struct
19707         to a subclass of rtl_opt_pass along with...
19708         (pass_data_mode_switching): ...new pass_data instance and...
19709         (make_pass_mode_switching): ...new function.
19710         * modulo-sched.c (pass_sms): Convert from a global struct to a
19711         subclass of rtl_opt_pass along with...
19712         (pass_data_sms): ...new pass_data instance and...
19713         (make_pass_sms): ...new function.
19714         * omp-low.c (pass_expand_omp): Convert from a global struct to a
19715         subclass of gimple_opt_pass along with...
19716         (pass_data_expand_omp): ...new pass_data instance and...
19717         (make_pass_expand_omp): ...new function.
19718         (pass_lower_omp): Convert from a global struct to a subclass of
19719         gimple_opt_pass along with...
19720         (pass_data_lower_omp): ...new pass_data instance and...
19721         (make_pass_lower_omp): ...new function.
19722         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19723         of gimple_opt_pass along with...
19724         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19725         (make_pass_diagnose_omp_blocks): ...new function.
19726         * passes.c (pass_early_local_passes): Convert from a global struct to
19727         a subclass of simple_ipa_opt_pass along with...
19728         (pass_data_early_local_passes): ...new pass_data instance and...
19729         (make_pass_early_local_passes): ...new function.
19730         (pass_all_early_optimizations): Convert from a global struct to a
19731         subclass of gimple_opt_pass along with...
19732         (pass_data_all_early_optimizations): ...new pass_data instance and...
19733         (make_pass_all_early_optimizations): ...new function.
19734         (pass_all_optimizations): Convert from a global struct to a subclass
19735         of gimple_opt_pass along with...
19736         (pass_data_all_optimizations): ...new pass_data instance and...
19737         (make_pass_all_optimizations): ...new function.
19738         (pass_all_optimizations_g): Convert from a global struct to a subclass
19739         of gimple_opt_pass along with...
19740         (pass_data_all_optimizations_g): ...new pass_data instance and...
19741         (make_pass_all_optimizations_g): ...new function.
19742         (pass_rest_of_compilation): Convert from a global struct to a subclass
19743         of rtl_opt_pass along with...
19744         (pass_data_rest_of_compilation): ...new pass_data instance and...
19745         (make_pass_rest_of_compilation): ...new function.
19746         (pass_postreload): Convert from a global struct to a subclass of
19747         rtl_opt_pass along with...
19748         (pass_data_postreload): ...new pass_data instance and...
19749         (make_pass_postreload): ...new function.
19750         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19751         subclass of rtl_opt_pass along with...
19752         (pass_data_gcse2): ...new pass_data instance and...
19753         (make_pass_gcse2): ...new function.
19754         * postreload.c (pass_postreload_cse): Convert from a global struct to
19755         a subclass of rtl_opt_pass along with...
19756         (pass_data_postreload_cse): ...new pass_data instance and...
19757         (make_pass_postreload_cse): ...new function.
19758         * predict.c (pass_profile): Convert from a global struct to a subclass
19759         of gimple_opt_pass along with...
19760         (pass_data_profile): ...new pass_data instance and...
19761         (make_pass_profile): ...new function.
19762         (pass_strip_predict_hints): Convert from a global struct to a subclass
19763         of gimple_opt_pass along with...
19764         (pass_data_strip_predict_hints): ...new pass_data instance and...
19765         (make_pass_strip_predict_hints): ...new function.
19766         * recog.c (pass_peephole2): Convert from a global struct to a subclass
19767         of rtl_opt_pass along with...
19768         (pass_data_peephole2): ...new pass_data instance and...
19769         (make_pass_peephole2): ...new function.
19770         (pass_split_all_insns): Convert from a global struct to a subclass of
19771         rtl_opt_pass along with...
19772         (pass_data_split_all_insns): ...new pass_data instance and...
19773         (make_pass_split_all_insns): ...new function.
19774         (pass_split_after_reload): Convert from a global struct to a subclass
19775         of rtl_opt_pass along with...
19776         (pass_data_split_after_reload): ...new pass_data instance and...
19777         (make_pass_split_after_reload): ...new function.
19778         (pass_split_before_regstack): Convert from a global struct to a
19779         subclass of rtl_opt_pass along with...
19780         (pass_data_split_before_regstack): ...new pass_data instance and...
19781         (make_pass_split_before_regstack): ...new function.
19782         (pass_split_before_sched2): Convert from a global struct to a subclass
19783         of rtl_opt_pass along with...
19784         (pass_data_split_before_sched2): ...new pass_data instance and...
19785         (make_pass_split_before_sched2): ...new function.
19786         (pass_split_for_shorten_branches): Convert from a global struct to a
19787         subclass of rtl_opt_pass along with...
19788         (pass_data_split_for_shorten_branches): ...new pass_data instance
19789         and...
19790         (make_pass_split_for_shorten_branches): ...new function.
19791         * ree.c (pass_ree): Convert from a global struct to a subclass of
19792         rtl_opt_pass along with...
19793         (pass_data_ree): ...new pass_data instance and...
19794         (make_pass_ree): ...new function.
19795         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19796         subclass of rtl_opt_pass along with...
19797         (pass_data_stack_regs): ...new pass_data instance and...
19798         (make_pass_stack_regs): ...new function.
19799         (pass_stack_regs_run): Convert from a global struct to a subclass of
19800         rtl_opt_pass along with...
19801         (pass_data_stack_regs_run): ...new pass_data instance and...
19802         (make_pass_stack_regs_run): ...new function.
19803         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19804         subclass of rtl_opt_pass along with...
19805         (pass_data_cprop_hardreg): ...new pass_data instance and...
19806         (make_pass_cprop_hardreg): ...new function.
19807         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19808         subclass of rtl_opt_pass along with...
19809         (pass_data_reginfo_init): ...new pass_data instance and...
19810         (make_pass_reginfo_init): ...new function.
19811         * regmove.c (pass_regmove): Convert from a global struct to a subclass
19812         of rtl_opt_pass along with...
19813         (pass_data_regmove): ...new pass_data instance and...
19814         (make_pass_regmove): ...new function.
19815         * regrename.c (pass_regrename): Convert from a global struct to a
19816         subclass of rtl_opt_pass along with...
19817         (pass_data_regrename): ...new pass_data instance and...
19818         (make_pass_regrename): ...new function.
19819         * reorg.c (pass_delay_slots): Convert from a global struct to a
19820         subclass of rtl_opt_pass along with...
19821         (pass_data_delay_slots): ...new pass_data instance and...
19822         (make_pass_delay_slots): ...new function.
19823         (pass_machine_reorg): Convert from a global struct to a subclass of
19824         rtl_opt_pass along with...
19825         (pass_data_machine_reorg): ...new pass_data instance and...
19826         (make_pass_machine_reorg): ...new function.
19827         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19828         of rtl_opt_pass along with...
19829         (pass_data_sched): ...new pass_data instance and...
19830         (make_pass_sched): ...new function.
19831         (pass_sched2): Convert from a global struct to a subclass of
19832         rtl_opt_pass along with...
19833         (pass_data_sched2): ...new pass_data instance and...
19834         (make_pass_sched2): ...new function.
19835         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19836         to a subclass of rtl_opt_pass along with...
19837         (pass_data_stack_ptr_mod): ...new pass_data instance and...
19838         (make_pass_stack_ptr_mod): ...new function.
19839         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19840         to a subclass of rtl_opt_pass along with...
19841         (pass_data_rtl_store_motion): ...new pass_data instance and...
19842         (make_pass_rtl_store_motion): ...new function.
19843         * tracer.c (pass_tracer): Convert from a global struct to a subclass
19844         of gimple_opt_pass along with...
19845         (pass_data_tracer): ...new pass_data instance and...
19846         (make_pass_tracer): ...new function.
19847         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19848         to a subclass of gimple_opt_pass along with...
19849         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19850         (make_pass_diagnose_tm_blocks): ...new function.
19851         (pass_lower_tm): Convert from a global struct to a subclass of
19852         gimple_opt_pass along with...
19853         (pass_data_lower_tm): ...new pass_data instance and...
19854         (make_pass_lower_tm): ...new function.
19855         (pass_tm_init): Convert from a global struct to a subclass of
19856         gimple_opt_pass along with...
19857         (pass_data_tm_init): ...new pass_data instance and...
19858         (make_pass_tm_init): ...new function.
19859         (pass_tm_mark): Convert from a global struct to a subclass of
19860         gimple_opt_pass along with...
19861         (pass_data_tm_mark): ...new pass_data instance and...
19862         (make_pass_tm_mark): ...new function.
19863         (pass_tm_edges): Convert from a global struct to a subclass of
19864         gimple_opt_pass along with...
19865         (pass_data_tm_edges): ...new pass_data instance and...
19866         (make_pass_tm_edges): ...new function.
19867         (pass_tm_memopt): Convert from a global struct to a subclass of
19868         gimple_opt_pass along with...
19869         (pass_data_tm_memopt): ...new pass_data instance and...
19870         (make_pass_tm_memopt): ...new function.
19871         (pass_ipa_tm): Convert from a global struct to a subclass of
19872         simple_ipa_opt_pass along with...
19873         (pass_data_ipa_tm): ...new pass_data instance and...
19874         (make_pass_ipa_tm): ...new function.
19875         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19876         subclass of gimple_opt_pass along with...
19877         (pass_data_call_cdce): ...new pass_data instance and...
19878         (make_pass_call_cdce): ...new function.
19879         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19880         subclass of gimple_opt_pass along with...
19881         (pass_data_build_cfg): ...new pass_data instance and...
19882         (make_pass_build_cfg): ...new function.
19883         (pass_split_crit_edges): Convert from a global struct to a subclass of
19884         gimple_opt_pass along with...
19885         (pass_data_split_crit_edges): ...new pass_data instance and...
19886         (make_pass_split_crit_edges): ...new function.
19887         (pass_warn_function_return): Convert from a global struct to a
19888         subclass of gimple_opt_pass along with...
19889         (pass_data_warn_function_return): ...new pass_data instance and...
19890         (make_pass_warn_function_return): ...new function.
19891         (pass_warn_function_noreturn): Convert from a global struct to a
19892         subclass of gimple_opt_pass along with...
19893         (pass_data_warn_function_noreturn): ...new pass_data instance and...
19894         (make_pass_warn_function_noreturn): ...new function.
19895         (pass_warn_unused_result): Convert from a global struct to a subclass
19896         of gimple_opt_pass along with...
19897         (pass_data_warn_unused_result): ...new pass_data instance and...
19898         (make_pass_warn_unused_result): ...new function.
19899         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19900         a subclass of gimple_opt_pass along with...
19901         (pass_data_merge_phi): ...new pass_data instance and...
19902         (make_pass_merge_phi): ...new function.
19903         * tree-complex.c (pass_lower_complex): Convert from a global struct to
19904         a subclass of gimple_opt_pass along with...
19905         (pass_data_lower_complex): ...new pass_data instance and...
19906         (make_pass_lower_complex): ...new function.
19907         (pass_lower_complex_O0): Convert from a global struct to a subclass of
19908         gimple_opt_pass along with...
19909         (pass_data_lower_complex_O0): ...new pass_data instance and...
19910         (make_pass_lower_complex_O0): ...new function.
19911         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
19912         subclass of gimple_opt_pass along with...
19913         (pass_data_lower_eh): ...new pass_data instance and...
19914         (make_pass_lower_eh): ...new function.
19915         (pass_refactor_eh): Convert from a global struct to a subclass of
19916         gimple_opt_pass along with...
19917         (pass_data_refactor_eh): ...new pass_data instance and...
19918         (make_pass_refactor_eh): ...new function.
19919         (pass_lower_resx): Convert from a global struct to a subclass of
19920         gimple_opt_pass along with...
19921         (pass_data_lower_resx): ...new pass_data instance and...
19922         (make_pass_lower_resx): ...new function.
19923         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19924         of gimple_opt_pass along with...
19925         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19926         (make_pass_lower_eh_dispatch): ...new function.
19927         (pass_cleanup_eh): Convert from a global struct to a subclass of
19928         gimple_opt_pass along with...
19929         (pass_data_cleanup_eh): ...new pass_data instance and...
19930         (make_pass_cleanup_eh): ...new function.
19931         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19932         to a subclass of simple_ipa_opt_pass along with...
19933         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19934         (make_pass_ipa_lower_emutls): ...new function.
19935         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19936         a subclass of gimple_opt_pass along with...
19937         (pass_data_if_conversion): ...new pass_data instance and...
19938         (make_pass_if_conversion): ...new function.
19939         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19940         subclass of gimple_opt_pass along with...
19941         (pass_data_build_ssa): ...new pass_data instance and...
19942         (make_pass_build_ssa): ...new function.
19943         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19944         global struct to a subclass of gimple_opt_pass along with...
19945         (pass_data_loop_distribution): ...new pass_data instance and...
19946         (make_pass_loop_distribution): ...new function.
19947         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19948         subclass of gimple_opt_pass along with...
19949         (pass_data_mudflap_1): ...new pass_data instance and...
19950         (make_pass_mudflap_1): ...new function.
19951         (pass_mudflap_2): Convert from a global struct to a subclass of
19952         gimple_opt_pass along with...
19953         (pass_data_mudflap_2): ...new pass_data instance and...
19954         (make_pass_mudflap_2): ...new function.
19955         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19956         subclass of gimple_opt_pass along with...
19957         (pass_data_mudflap_1): ...new pass_data instance and...
19958         (make_pass_mudflap_1): ...new function.
19959         (pass_mudflap_2): Convert from a global struct to a subclass of
19960         gimple_opt_pass along with...
19961         (pass_data_mudflap_2): ...new pass_data instance and...
19962         (make_pass_mudflap_2): ...new function.
19963         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19964         gimple_opt_pass along with...
19965         (pass_data_nrv): ...new pass_data instance and...
19966         (make_pass_nrv): ...new function.
19967         (pass_return_slot): Convert from a global struct to a subclass of
19968         gimple_opt_pass along with...
19969         (pass_data_return_slot): ...new pass_data instance and...
19970         (make_pass_return_slot): ...new function.
19971         * tree-object-size.c (pass_object_sizes): Convert from a global struct
19972         to a subclass of gimple_opt_pass along with...
19973         (pass_data_object_sizes): ...new pass_data instance and...
19974         (make_pass_object_sizes): ...new function.
19975         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19976         global struct to a subclass of gimple_opt_pass along with...
19977         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19978         and...
19979         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19980         (pass_fixup_cfg): Convert from a global struct to a subclass of
19981         gimple_opt_pass along with...
19982         (pass_data_fixup_cfg): ...new pass_data instance and...
19983         (make_pass_fixup_cfg): ...new function.
19984         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19985         (make_pass_mudflap_1): ...new function.
19986         (pass_mudflap_2): Replace declaration with that of...
19987         (make_pass_mudflap_2): ...new function.
19988         (pass_asan): Replace declaration with that of...
19989         (make_pass_asan): ...new function.
19990         (pass_asan_O0): Replace declaration with that of...
19991         (make_pass_asan_O0): ...new function.
19992         (pass_tsan): Replace declaration with that of...
19993         (make_pass_tsan): ...new function.
19994         (pass_tsan_O0): Replace declaration with that of...
19995         (make_pass_tsan_O0): ...new function.
19996         (pass_lower_cf): Replace declaration with that of...
19997         (make_pass_lower_cf): ...new function.
19998         (pass_refactor_eh): Replace declaration with that of...
19999         (make_pass_refactor_eh): ...new function.
20000         (pass_lower_eh): Replace declaration with that of...
20001         (make_pass_lower_eh): ...new function.
20002         (pass_lower_eh_dispatch): Replace declaration with that of...
20003         (make_pass_lower_eh_dispatch): ...new function.
20004         (pass_lower_resx): Replace declaration with that of...
20005         (make_pass_lower_resx): ...new function.
20006         (pass_build_cfg): Replace declaration with that of...
20007         (make_pass_build_cfg): ...new function.
20008         (pass_early_tree_profile): Replace declaration with that of...
20009         (make_pass_early_tree_profile): ...new function.
20010         (pass_cleanup_eh): Replace declaration with that of...
20011         (make_pass_cleanup_eh): ...new function.
20012         (pass_sra): Replace declaration with that of...
20013         (make_pass_sra): ...new function.
20014         (pass_sra_early): Replace declaration with that of...
20015         (make_pass_sra_early): ...new function.
20016         (pass_early_ipa_sra): Replace declaration with that of...
20017         (make_pass_early_ipa_sra): ...new function.
20018         (pass_tail_recursion): Replace declaration with that of...
20019         (make_pass_tail_recursion): ...new function.
20020         (pass_tail_calls): Replace declaration with that of...
20021         (make_pass_tail_calls): ...new function.
20022         (pass_tree_loop): Replace declaration with that of...
20023         (make_pass_tree_loop): ...new function.
20024         (pass_tree_loop_init): Replace declaration with that of...
20025         (make_pass_tree_loop_init): ...new function.
20026         (pass_lim): Replace declaration with that of...
20027         (make_pass_lim): ...new function.
20028         (pass_tree_unswitch): Replace declaration with that of...
20029         (make_pass_tree_unswitch): ...new function.
20030         (pass_predcom): Replace declaration with that of...
20031         (make_pass_predcom): ...new function.
20032         (pass_iv_canon): Replace declaration with that of...
20033         (make_pass_iv_canon): ...new function.
20034         (pass_scev_cprop): Replace declaration with that of...
20035         (make_pass_scev_cprop): ...new function.
20036         (pass_empty_loop): Replace declaration with that of...
20037         (make_pass_empty_loop): ...new function.
20038         (pass_record_bounds): Replace declaration with that of...
20039         (make_pass_record_bounds): ...new function.
20040         (pass_graphite): Replace declaration with that of...
20041         (make_pass_graphite): ...new function.
20042         (pass_graphite_transforms): Replace declaration with that of...
20043         (make_pass_graphite_transforms): ...new function.
20044         (pass_if_conversion): Replace declaration with that of...
20045         (make_pass_if_conversion): ...new function.
20046         (pass_loop_distribution): Replace declaration with that of...
20047         (make_pass_loop_distribution): ...new function.
20048         (pass_vectorize): Replace declaration with that of...
20049         (make_pass_vectorize): ...new function.
20050         (pass_slp_vectorize): Replace declaration with that of...
20051         (make_pass_slp_vectorize): ...new function.
20052         (pass_complete_unroll): Replace declaration with that of...
20053         (make_pass_complete_unroll): ...new function.
20054         (pass_complete_unrolli): Replace declaration with that of...
20055         (make_pass_complete_unrolli): ...new function.
20056         (pass_parallelize_loops): Replace declaration with that of...
20057         (make_pass_parallelize_loops): ...new function.
20058         (pass_loop_prefetch): Replace declaration with that of...
20059         (make_pass_loop_prefetch): ...new function.
20060         (pass_iv_optimize): Replace declaration with that of...
20061         (make_pass_iv_optimize): ...new function.
20062         (pass_tree_loop_done): Replace declaration with that of...
20063         (make_pass_tree_loop_done): ...new function.
20064         (pass_ch): Replace declaration with that of...
20065         (make_pass_ch): ...new function.
20066         (pass_ccp): Replace declaration with that of...
20067         (make_pass_ccp): ...new function.
20068         (pass_phi_only_cprop): Replace declaration with that of...
20069         (make_pass_phi_only_cprop): ...new function.
20070         (pass_build_ssa): Replace declaration with that of...
20071         (make_pass_build_ssa): ...new function.
20072         (pass_build_alias): Replace declaration with that of...
20073         (make_pass_build_alias): ...new function.
20074         (pass_build_ealias): Replace declaration with that of...
20075         (make_pass_build_ealias): ...new function.
20076         (pass_dominator): Replace declaration with that of...
20077         (make_pass_dominator): ...new function.
20078         (pass_dce): Replace declaration with that of...
20079         (make_pass_dce): ...new function.
20080         (pass_dce_loop): Replace declaration with that of...
20081         (make_pass_dce_loop): ...new function.
20082         (pass_cd_dce): Replace declaration with that of...
20083         (make_pass_cd_dce): ...new function.
20084         (pass_call_cdce): Replace declaration with that of...
20085         (make_pass_call_cdce): ...new function.
20086         (pass_merge_phi): Replace declaration with that of...
20087         (make_pass_merge_phi): ...new function.
20088         (pass_split_crit_edges): Replace declaration with that of...
20089         (make_pass_split_crit_edges): ...new function.
20090         (pass_pre): Replace declaration with that of...
20091         (make_pass_pre): ...new function.
20092         (pass_profile): Replace declaration with that of...
20093         (make_pass_profile): ...new function.
20094         (pass_strip_predict_hints): Replace declaration with that of...
20095         (make_pass_strip_predict_hints): ...new function.
20096         (pass_lower_complex_O0): Replace declaration with that of...
20097         (make_pass_lower_complex_O0): ...new function.
20098         (pass_lower_complex): Replace declaration with that of...
20099         (make_pass_lower_complex): ...new function.
20100         (pass_lower_vector): Replace declaration with that of...
20101         (make_pass_lower_vector): ...new function.
20102         (pass_lower_vector_ssa): Replace declaration with that of...
20103         (make_pass_lower_vector_ssa): ...new function.
20104         (pass_lower_omp): Replace declaration with that of...
20105         (make_pass_lower_omp): ...new function.
20106         (pass_diagnose_omp_blocks): Replace declaration with that of...
20107         (make_pass_diagnose_omp_blocks): ...new function.
20108         (pass_expand_omp): Replace declaration with that of...
20109         (make_pass_expand_omp): ...new function.
20110         (pass_expand_omp_ssa): Replace declaration with that of...
20111         (make_pass_expand_omp_ssa): ...new function.
20112         (pass_object_sizes): Replace declaration with that of...
20113         (make_pass_object_sizes): ...new function.
20114         (pass_strlen): Replace declaration with that of...
20115         (make_pass_strlen): ...new function.
20116         (pass_fold_builtins): Replace declaration with that of...
20117         (make_pass_fold_builtins): ...new function.
20118         (pass_stdarg): Replace declaration with that of...
20119         (make_pass_stdarg): ...new function.
20120         (pass_early_warn_uninitialized): Replace declaration with that of...
20121         (make_pass_early_warn_uninitialized): ...new function.
20122         (pass_late_warn_uninitialized): Replace declaration with that of...
20123         (make_pass_late_warn_uninitialized): ...new function.
20124         (pass_cse_reciprocals): Replace declaration with that of...
20125         (make_pass_cse_reciprocals): ...new function.
20126         (pass_cse_sincos): Replace declaration with that of...
20127         (make_pass_cse_sincos): ...new function.
20128         (pass_optimize_bswap): Replace declaration with that of...
20129         (make_pass_optimize_bswap): ...new function.
20130         (pass_optimize_widening_mul): Replace declaration with that of...
20131         (make_pass_optimize_widening_mul): ...new function.
20132         (pass_warn_function_return): Replace declaration with that of...
20133         (make_pass_warn_function_return): ...new function.
20134         (pass_warn_function_noreturn): Replace declaration with that of...
20135         (make_pass_warn_function_noreturn): ...new function.
20136         (pass_cselim): Replace declaration with that of...
20137         (make_pass_cselim): ...new function.
20138         (pass_phiopt): Replace declaration with that of...
20139         (make_pass_phiopt): ...new function.
20140         (pass_forwprop): Replace declaration with that of...
20141         (make_pass_forwprop): ...new function.
20142         (pass_phiprop): Replace declaration with that of...
20143         (make_pass_phiprop): ...new function.
20144         (pass_tree_ifcombine): Replace declaration with that of...
20145         (make_pass_tree_ifcombine): ...new function.
20146         (pass_dse): Replace declaration with that of...
20147         (make_pass_dse): ...new function.
20148         (pass_nrv): Replace declaration with that of...
20149         (make_pass_nrv): ...new function.
20150         (pass_rename_ssa_copies): Replace declaration with that of...
20151         (make_pass_rename_ssa_copies): ...new function.
20152         (pass_sink_code): Replace declaration with that of...
20153         (make_pass_sink_code): ...new function.
20154         (pass_fre): Replace declaration with that of...
20155         (make_pass_fre): ...new function.
20156         (pass_check_data_deps): Replace declaration with that of...
20157         (make_pass_check_data_deps): ...new function.
20158         (pass_copy_prop): Replace declaration with that of...
20159         (make_pass_copy_prop): ...new function.
20160         (pass_vrp): Replace declaration with that of...
20161         (make_pass_vrp): ...new function.
20162         (pass_uncprop): Replace declaration with that of...
20163         (make_pass_uncprop): ...new function.
20164         (pass_return_slot): Replace declaration with that of...
20165         (make_pass_return_slot): ...new function.
20166         (pass_reassoc): Replace declaration with that of...
20167         (make_pass_reassoc): ...new function.
20168         (pass_rebuild_cgraph_edges): Replace declaration with that of...
20169         (make_pass_rebuild_cgraph_edges): ...new function.
20170         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20171         (make_pass_remove_cgraph_callee_edges): ...new function.
20172         (pass_build_cgraph_edges): Replace declaration with that of...
20173         (make_pass_build_cgraph_edges): ...new function.
20174         (pass_local_pure_const): Replace declaration with that of...
20175         (make_pass_local_pure_const): ...new function.
20176         (pass_tracer): Replace declaration with that of...
20177         (make_pass_tracer): ...new function.
20178         (pass_warn_unused_result): Replace declaration with that of...
20179         (make_pass_warn_unused_result): ...new function.
20180         (pass_diagnose_tm_blocks): Replace declaration with that of...
20181         (make_pass_diagnose_tm_blocks): ...new function.
20182         (pass_lower_tm): Replace declaration with that of...
20183         (make_pass_lower_tm): ...new function.
20184         (pass_tm_init): Replace declaration with that of...
20185         (make_pass_tm_init): ...new function.
20186         (pass_tm_mark): Replace declaration with that of...
20187         (make_pass_tm_mark): ...new function.
20188         (pass_tm_memopt): Replace declaration with that of...
20189         (make_pass_tm_memopt): ...new function.
20190         (pass_tm_edges): Replace declaration with that of...
20191         (make_pass_tm_edges): ...new function.
20192         (pass_split_functions): Replace declaration with that of...
20193         (make_pass_split_functions): ...new function.
20194         (pass_feedback_split_functions): Replace declaration with that of...
20195         (make_pass_feedback_split_functions): ...new function.
20196         (pass_strength_reduction): Replace declaration with that of...
20197         (make_pass_strength_reduction): ...new function.
20198         (pass_ipa_lower_emutls): Replace declaration with that of...
20199         (make_pass_ipa_lower_emutls): ...new function.
20200         (pass_ipa_function_and_variable_visibility): Replace declaration with
20201         that of...
20202         (make_pass_ipa_function_and_variable_visibility): ...new function.
20203         (pass_ipa_tree_profile): Replace declaration with that of...
20204         (make_pass_ipa_tree_profile): ...new function.
20205         (pass_early_local_passes): Replace declaration with that of...
20206         (make_pass_early_local_passes): ...new function.
20207         (pass_ipa_whole_program_visibility): Replace declaration with that
20208         of...
20209         (make_pass_ipa_whole_program_visibility): ...new function.
20210         (pass_ipa_lto_gimple_out): Replace declaration with that of...
20211         (make_pass_ipa_lto_gimple_out): ...new function.
20212         (pass_ipa_increase_alignment): Replace declaration with that of...
20213         (make_pass_ipa_increase_alignment): ...new function.
20214         (pass_ipa_inline): Replace declaration with that of...
20215         (make_pass_ipa_inline): ...new function.
20216         (pass_ipa_free_lang_data): Replace declaration with that of...
20217         (make_pass_ipa_free_lang_data): ...new function.
20218         (pass_ipa_free_inline_summary): Replace declaration with that of...
20219         (make_pass_ipa_free_inline_summary): ...new function.
20220         (pass_ipa_cp): Replace declaration with that of...
20221         (make_pass_ipa_cp): ...new function.
20222         (pass_ipa_reference): Replace declaration with that of...
20223         (make_pass_ipa_reference): ...new function.
20224         (pass_ipa_pure_const): Replace declaration with that of...
20225         (make_pass_ipa_pure_const): ...new function.
20226         (pass_ipa_pta): Replace declaration with that of...
20227         (make_pass_ipa_pta): ...new function.
20228         (pass_ipa_lto_finish_out): Replace declaration with that of...
20229         (make_pass_ipa_lto_finish_out): ...new function.
20230         (pass_ipa_tm): Replace declaration with that of...
20231         (make_pass_ipa_tm): ...new function.
20232         (pass_ipa_profile): Replace declaration with that of...
20233         (make_pass_ipa_profile): ...new function.
20234         (pass_ipa_cdtor_merge): Replace declaration with that of...
20235         (make_pass_ipa_cdtor_merge): ...new function.
20236         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20237         of...
20238         (make_pass_cleanup_cfg_post_optimizing): ...new function.
20239         (pass_init_datastructures): Replace declaration with that of...
20240         (make_pass_init_datastructures): ...new function.
20241         (pass_fixup_cfg): Replace declaration with that of...
20242         (make_pass_fixup_cfg): ...new function.
20243         (pass_expand): Replace declaration with that of...
20244         (make_pass_expand): ...new function.
20245         (pass_instantiate_virtual_regs): Replace declaration with that of...
20246         (make_pass_instantiate_virtual_regs): ...new function.
20247         (pass_rtl_fwprop): Replace declaration with that of...
20248         (make_pass_rtl_fwprop): ...new function.
20249         (pass_rtl_fwprop_addr): Replace declaration with that of...
20250         (make_pass_rtl_fwprop_addr): ...new function.
20251         (pass_jump): Replace declaration with that of...
20252         (make_pass_jump): ...new function.
20253         (pass_jump2): Replace declaration with that of...
20254         (make_pass_jump2): ...new function.
20255         (pass_lower_subreg): Replace declaration with that of...
20256         (make_pass_lower_subreg): ...new function.
20257         (pass_cse): Replace declaration with that of...
20258         (make_pass_cse): ...new function.
20259         (pass_fast_rtl_dce): Replace declaration with that of...
20260         (make_pass_fast_rtl_dce): ...new function.
20261         (pass_ud_rtl_dce): Replace declaration with that of...
20262         (make_pass_ud_rtl_dce): ...new function.
20263         (pass_rtl_dce): Replace declaration with that of...
20264         (make_pass_rtl_dce): ...new function.
20265         (pass_rtl_dse1): Replace declaration with that of...
20266         (make_pass_rtl_dse1): ...new function.
20267         (pass_rtl_dse2): Replace declaration with that of...
20268         (make_pass_rtl_dse2): ...new function.
20269         (pass_rtl_dse3): Replace declaration with that of...
20270         (make_pass_rtl_dse3): ...new function.
20271         (pass_rtl_cprop): Replace declaration with that of...
20272         (make_pass_rtl_cprop): ...new function.
20273         (pass_rtl_pre): Replace declaration with that of...
20274         (make_pass_rtl_pre): ...new function.
20275         (pass_rtl_hoist): Replace declaration with that of...
20276         (make_pass_rtl_hoist): ...new function.
20277         (pass_rtl_store_motion): Replace declaration with that of...
20278         (make_pass_rtl_store_motion): ...new function.
20279         (pass_cse_after_global_opts): Replace declaration with that of...
20280         (make_pass_cse_after_global_opts): ...new function.
20281         (pass_rtl_ifcvt): Replace declaration with that of...
20282         (make_pass_rtl_ifcvt): ...new function.
20283         (pass_into_cfg_layout_mode): Replace declaration with that of...
20284         (make_pass_into_cfg_layout_mode): ...new function.
20285         (pass_outof_cfg_layout_mode): Replace declaration with that of...
20286         (make_pass_outof_cfg_layout_mode): ...new function.
20287         (pass_loop2): Replace declaration with that of...
20288         (make_pass_loop2): ...new function.
20289         (pass_rtl_loop_init): Replace declaration with that of...
20290         (make_pass_rtl_loop_init): ...new function.
20291         (pass_rtl_move_loop_invariants): Replace declaration with that of...
20292         (make_pass_rtl_move_loop_invariants): ...new function.
20293         (pass_rtl_unswitch): Replace declaration with that of...
20294         (make_pass_rtl_unswitch): ...new function.
20295         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20296         (make_pass_rtl_unroll_and_peel_loops): ...new function.
20297         (pass_rtl_doloop): Replace declaration with that of...
20298         (make_pass_rtl_doloop): ...new function.
20299         (pass_rtl_loop_done): Replace declaration with that of...
20300         (make_pass_rtl_loop_done): ...new function.
20301         (pass_web): Replace declaration with that of...
20302         (make_pass_web): ...new function.
20303         (pass_cse2): Replace declaration with that of...
20304         (make_pass_cse2): ...new function.
20305         (pass_df_initialize_opt): Replace declaration with that of...
20306         (make_pass_df_initialize_opt): ...new function.
20307         (pass_df_initialize_no_opt): Replace declaration with that of...
20308         (make_pass_df_initialize_no_opt): ...new function.
20309         (pass_reginfo_init): Replace declaration with that of...
20310         (make_pass_reginfo_init): ...new function.
20311         (pass_inc_dec): Replace declaration with that of...
20312         (make_pass_inc_dec): ...new function.
20313         (pass_stack_ptr_mod): Replace declaration with that of...
20314         (make_pass_stack_ptr_mod): ...new function.
20315         (pass_initialize_regs): Replace declaration with that of...
20316         (make_pass_initialize_regs): ...new function.
20317         (pass_combine): Replace declaration with that of...
20318         (make_pass_combine): ...new function.
20319         (pass_if_after_combine): Replace declaration with that of...
20320         (make_pass_if_after_combine): ...new function.
20321         (pass_ree): Replace declaration with that of...
20322         (make_pass_ree): ...new function.
20323         (pass_partition_blocks): Replace declaration with that of...
20324         (make_pass_partition_blocks): ...new function.
20325         (pass_match_asm_constraints): Replace declaration with that of...
20326         (make_pass_match_asm_constraints): ...new function.
20327         (pass_regmove): Replace declaration with that of...
20328         (make_pass_regmove): ...new function.
20329         (pass_split_all_insns): Replace declaration with that of...
20330         (make_pass_split_all_insns): ...new function.
20331         (pass_fast_rtl_byte_dce): Replace declaration with that of...
20332         (make_pass_fast_rtl_byte_dce): ...new function.
20333         (pass_lower_subreg2): Replace declaration with that of...
20334         (make_pass_lower_subreg2): ...new function.
20335         (pass_mode_switching): Replace declaration with that of...
20336         (make_pass_mode_switching): ...new function.
20337         (pass_sms): Replace declaration with that of...
20338         (make_pass_sms): ...new function.
20339         (pass_sched): Replace declaration with that of...
20340         (make_pass_sched): ...new function.
20341         (pass_ira): Replace declaration with that of...
20342         (make_pass_ira): ...new function.
20343         (pass_reload): Replace declaration with that of...
20344         (make_pass_reload): ...new function.
20345         (pass_clean_state): Replace declaration with that of...
20346         (make_pass_clean_state): ...new function.
20347         (pass_branch_prob): Replace declaration with that of...
20348         (make_pass_branch_prob): ...new function.
20349         (pass_value_profile_transformations): Replace declaration with that
20350         of...
20351         (make_pass_value_profile_transformations): ...new function.
20352         (pass_postreload_cse): Replace declaration with that of...
20353         (make_pass_postreload_cse): ...new function.
20354         (pass_gcse2): Replace declaration with that of...
20355         (make_pass_gcse2): ...new function.
20356         (pass_split_after_reload): Replace declaration with that of...
20357         (make_pass_split_after_reload): ...new function.
20358         (pass_branch_target_load_optimize1): Replace declaration with that
20359         of...
20360         (make_pass_branch_target_load_optimize1): ...new function.
20361         (pass_thread_prologue_and_epilogue): Replace declaration with that
20362         of...
20363         (make_pass_thread_prologue_and_epilogue): ...new function.
20364         (pass_stack_adjustments): Replace declaration with that of...
20365         (make_pass_stack_adjustments): ...new function.
20366         (pass_peephole2): Replace declaration with that of...
20367         (make_pass_peephole2): ...new function.
20368         (pass_if_after_reload): Replace declaration with that of...
20369         (make_pass_if_after_reload): ...new function.
20370         (pass_regrename): Replace declaration with that of...
20371         (make_pass_regrename): ...new function.
20372         (pass_cprop_hardreg): Replace declaration with that of...
20373         (make_pass_cprop_hardreg): ...new function.
20374         (pass_reorder_blocks): Replace declaration with that of...
20375         (make_pass_reorder_blocks): ...new function.
20376         (pass_branch_target_load_optimize2): Replace declaration with that
20377         of...
20378         (make_pass_branch_target_load_optimize2): ...new function.
20379         (pass_leaf_regs): Replace declaration with that of...
20380         (make_pass_leaf_regs): ...new function.
20381         (pass_split_before_sched2): Replace declaration with that of...
20382         (make_pass_split_before_sched2): ...new function.
20383         (pass_compare_elim_after_reload): Replace declaration with that of...
20384         (make_pass_compare_elim_after_reload): ...new function.
20385         (pass_sched2): Replace declaration with that of...
20386         (make_pass_sched2): ...new function.
20387         (pass_stack_regs): Replace declaration with that of...
20388         (make_pass_stack_regs): ...new function.
20389         (pass_stack_regs_run): Replace declaration with that of...
20390         (make_pass_stack_regs_run): ...new function.
20391         (pass_df_finish): Replace declaration with that of...
20392         (make_pass_df_finish): ...new function.
20393         (pass_compute_alignments): Replace declaration with that of...
20394         (make_pass_compute_alignments): ...new function.
20395         (pass_duplicate_computed_gotos): Replace declaration with that of...
20396         (make_pass_duplicate_computed_gotos): ...new function.
20397         (pass_variable_tracking): Replace declaration with that of...
20398         (make_pass_variable_tracking): ...new function.
20399         (pass_free_cfg): Replace declaration with that of...
20400         (make_pass_free_cfg): ...new function.
20401         (pass_machine_reorg): Replace declaration with that of...
20402         (make_pass_machine_reorg): ...new function.
20403         (pass_cleanup_barriers): Replace declaration with that of...
20404         (make_pass_cleanup_barriers): ...new function.
20405         (pass_delay_slots): Replace declaration with that of...
20406         (make_pass_delay_slots): ...new function.
20407         (pass_split_for_shorten_branches): Replace declaration with that of...
20408         (make_pass_split_for_shorten_branches): ...new function.
20409         (pass_split_before_regstack): Replace declaration with that of...
20410         (make_pass_split_before_regstack): ...new function.
20411         (pass_convert_to_eh_region_ranges): Replace declaration with that
20412         of...
20413         (make_pass_convert_to_eh_region_ranges): ...new function.
20414         (pass_shorten_branches): Replace declaration with that of...
20415         (make_pass_shorten_branches): ...new function.
20416         (pass_set_nothrow_function_flags): Replace declaration with that of...
20417         (make_pass_set_nothrow_function_flags): ...new function.
20418         (pass_dwarf2_frame): Replace declaration with that of...
20419         (make_pass_dwarf2_frame): ...new function.
20420         (pass_final): Replace declaration with that of...
20421         (make_pass_final): ...new function.
20422         (pass_rtl_seqabstr): Replace declaration with that of...
20423         (make_pass_rtl_seqabstr): ...new function.
20424         (pass_release_ssa_names): Replace declaration with that of...
20425         (make_pass_release_ssa_names): ...new function.
20426         (pass_early_inline): Replace declaration with that of...
20427         (make_pass_early_inline): ...new function.
20428         (pass_inline_parameters): Replace declaration with that of...
20429         (make_pass_inline_parameters): ...new function.
20430         (pass_update_address_taken): Replace declaration with that of...
20431         (make_pass_update_address_taken): ...new function.
20432         (pass_convert_switch): Replace declaration with that of...
20433         (make_pass_convert_switch): ...new function.
20434         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20435         to a subclass of simple_ipa_opt_pass along with...
20436         (pass_data_ipa_tree_profile): ...new pass_data instance and...
20437         (make_pass_ipa_tree_profile): ...new function.
20438         * tree-sra.c (pass_sra_early): Convert from a global struct to a
20439         subclass of gimple_opt_pass along with...
20440         (pass_data_sra_early): ...new pass_data instance and...
20441         (make_pass_sra_early): ...new function.
20442         (pass_sra): Convert from a global struct to a subclass of
20443         gimple_opt_pass along with...
20444         (pass_data_sra): ...new pass_data instance and...
20445         (make_pass_sra): ...new function.
20446         (pass_early_ipa_sra): Convert from a global struct to a subclass of
20447         gimple_opt_pass along with...
20448         (pass_data_early_ipa_sra): ...new pass_data instance and...
20449         (make_pass_early_ipa_sra): ...new function.
20450         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20451         subclass of gimple_opt_pass along with...
20452         (pass_data_ccp): ...new pass_data instance and...
20453         (make_pass_ccp): ...new function.
20454         (pass_fold_builtins): Convert from a global struct to a subclass of
20455         gimple_opt_pass along with...
20456         (pass_data_fold_builtins): ...new pass_data instance and...
20457         (make_pass_fold_builtins): ...new function.
20458         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20459         subclass of gimple_opt_pass along with...
20460         (pass_data_copy_prop): ...new pass_data instance and...
20461         (make_pass_copy_prop): ...new function.
20462         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20463         global struct to a subclass of gimple_opt_pass along with...
20464         (pass_data_rename_ssa_copies): ...new pass_data instance and...
20465         (make_pass_rename_ssa_copies): ...new function.
20466         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20467         subclass of gimple_opt_pass along with...
20468         (pass_data_dce): ...new pass_data instance and...
20469         (make_pass_dce): ...new function.
20470         (pass_dce_loop): Convert from a global struct to a subclass of
20471         gimple_opt_pass along with...
20472         (pass_data_dce_loop): ...new pass_data instance and...
20473         (make_pass_dce_loop): ...new function.
20474         (pass_cd_dce): Convert from a global struct to a subclass of
20475         gimple_opt_pass along with...
20476         (pass_data_cd_dce): ...new pass_data instance and...
20477         (make_pass_cd_dce): ...new function.
20478         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20479         subclass of gimple_opt_pass along with...
20480         (pass_data_dominator): ...new pass_data instance and...
20481         (make_pass_dominator): ...new function.
20482         (pass_phi_only_cprop): Convert from a global struct to a subclass of
20483         gimple_opt_pass along with...
20484         (pass_data_phi_only_cprop): ...new pass_data instance and...
20485         (make_pass_phi_only_cprop): ...new function.
20486         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20487         subclass of gimple_opt_pass along with...
20488         (pass_data_dse): ...new pass_data instance and...
20489         (make_pass_dse): ...new function.
20490         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20491         a subclass of gimple_opt_pass along with...
20492         (pass_data_forwprop): ...new pass_data instance and...
20493         (make_pass_forwprop): ...new function.
20494         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20495         struct to a subclass of gimple_opt_pass along with...
20496         (pass_data_tree_ifcombine): ...new pass_data instance and...
20497         (make_pass_tree_ifcombine): ...new function.
20498         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20499         subclass of gimple_opt_pass along with...
20500         (pass_data_ch): ...new pass_data instance and...
20501         (make_pass_ch): ...new function.
20502         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20503         subclass of gimple_opt_pass along with...
20504         (pass_data_tree_loop): ...new pass_data instance and...
20505         (make_pass_tree_loop): ...new function.
20506         (pass_tree_loop_init): Convert from a global struct to a subclass of
20507         gimple_opt_pass along with...
20508         (pass_data_tree_loop_init): ...new pass_data instance and...
20509         (make_pass_tree_loop_init): ...new function.
20510         (pass_lim): Convert from a global struct to a subclass of
20511         gimple_opt_pass along with...
20512         (pass_data_lim): ...new pass_data instance and...
20513         (make_pass_lim): ...new function.
20514         (pass_tree_unswitch): Convert from a global struct to a subclass of
20515         gimple_opt_pass along with...
20516         (pass_data_tree_unswitch): ...new pass_data instance and...
20517         (make_pass_tree_unswitch): ...new function.
20518         (pass_predcom): Convert from a global struct to a subclass of
20519         gimple_opt_pass along with...
20520         (pass_data_predcom): ...new pass_data instance and...
20521         (make_pass_predcom): ...new function.
20522         (pass_vectorize): Convert from a global struct to a subclass of
20523         gimple_opt_pass along with...
20524         (pass_data_vectorize): ...new pass_data instance and...
20525         (make_pass_vectorize): ...new function.
20526         (pass_graphite): Convert from a global struct to a subclass of
20527         gimple_opt_pass along with...
20528         (pass_data_graphite): ...new pass_data instance and...
20529         (make_pass_graphite): ...new function.
20530         (pass_graphite_transforms): Convert from a global struct to a subclass
20531         of gimple_opt_pass along with...
20532         (pass_data_graphite_transforms): ...new pass_data instance and...
20533         (make_pass_graphite_transforms): ...new function.
20534         (pass_check_data_deps): Convert from a global struct to a subclass of
20535         gimple_opt_pass along with...
20536         (pass_data_check_data_deps): ...new pass_data instance and...
20537         (make_pass_check_data_deps): ...new function.
20538         (pass_iv_canon): Convert from a global struct to a subclass of
20539         gimple_opt_pass along with...
20540         (pass_data_iv_canon): ...new pass_data instance and...
20541         (make_pass_iv_canon): ...new function.
20542         (pass_scev_cprop): Convert from a global struct to a subclass of
20543         gimple_opt_pass along with...
20544         (pass_data_scev_cprop): ...new pass_data instance and...
20545         (make_pass_scev_cprop): ...new function.
20546         (pass_record_bounds): Convert from a global struct to a subclass of
20547         gimple_opt_pass along with...
20548         (pass_data_record_bounds): ...new pass_data instance and...
20549         (make_pass_record_bounds): ...new function.
20550         (pass_complete_unroll): Convert from a global struct to a subclass of
20551         gimple_opt_pass along with...
20552         (pass_data_complete_unroll): ...new pass_data instance and...
20553         (make_pass_complete_unroll): ...new function.
20554         (pass_complete_unrolli): Convert from a global struct to a subclass of
20555         gimple_opt_pass along with...
20556         (pass_data_complete_unrolli): ...new pass_data instance and...
20557         (make_pass_complete_unrolli): ...new function.
20558         (pass_parallelize_loops): Convert from a global struct to a subclass
20559         of gimple_opt_pass along with...
20560         (pass_data_parallelize_loops): ...new pass_data instance and...
20561         (make_pass_parallelize_loops): ...new function.
20562         (pass_loop_prefetch): Convert from a global struct to a subclass of
20563         gimple_opt_pass along with...
20564         (pass_data_loop_prefetch): ...new pass_data instance and...
20565         (make_pass_loop_prefetch): ...new function.
20566         (pass_iv_optimize): Convert from a global struct to a subclass of
20567         gimple_opt_pass along with...
20568         (pass_data_iv_optimize): ...new pass_data instance and...
20569         (make_pass_iv_optimize): ...new function.
20570         (pass_tree_loop_done): Convert from a global struct to a subclass of
20571         gimple_opt_pass along with...
20572         (pass_data_tree_loop_done): ...new pass_data instance and...
20573         (make_pass_tree_loop_done): ...new function.
20574         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20575         struct to a subclass of gimple_opt_pass along with...
20576         (pass_data_cse_reciprocals): ...new pass_data instance and...
20577         (make_pass_cse_reciprocals): ...new function.
20578         (pass_cse_sincos): Convert from a global struct to a subclass of
20579         gimple_opt_pass along with...
20580         (pass_data_cse_sincos): ...new pass_data instance and...
20581         (make_pass_cse_sincos): ...new function.
20582         (pass_optimize_bswap): Convert from a global struct to a subclass of
20583         gimple_opt_pass along with...
20584         (pass_data_optimize_bswap): ...new pass_data instance and...
20585         (make_pass_optimize_bswap): ...new function.
20586         (pass_optimize_widening_mul): Convert from a global struct to a
20587         subclass of gimple_opt_pass along with...
20588         (pass_data_optimize_widening_mul): ...new pass_data instance and...
20589         (make_pass_optimize_widening_mul): ...new function.
20590         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20591         subclass of gimple_opt_pass along with...
20592         (pass_data_phiopt): ...new pass_data instance and...
20593         (make_pass_phiopt): ...new function.
20594         (pass_cselim): Convert from a global struct to a subclass of
20595         gimple_opt_pass along with...
20596         (pass_data_cselim): ...new pass_data instance and...
20597         (make_pass_cselim): ...new function.
20598         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20599         subclass of gimple_opt_pass along with...
20600         (pass_data_phiprop): ...new pass_data instance and...
20601         (make_pass_phiprop): ...new function.
20602         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20603         subclass of gimple_opt_pass along with...
20604         (pass_data_pre): ...new pass_data instance and...
20605         (make_pass_pre): ...new function.
20606         (pass_fre): Convert from a global struct to a subclass of
20607         gimple_opt_pass along with...
20608         (pass_data_fre): ...new pass_data instance and...
20609         (make_pass_fre): ...new function.
20610         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20611         subclass of gimple_opt_pass along with...
20612         (pass_data_reassoc): ...new pass_data instance and...
20613         (make_pass_reassoc): ...new function.
20614         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20615         subclass of gimple_opt_pass along with...
20616         (pass_data_sink_code): ...new pass_data instance and...
20617         (make_pass_sink_code): ...new function.
20618         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20619         subclass of gimple_opt_pass along with...
20620         (pass_data_strlen): ...new pass_data instance and...
20621         (make_pass_strlen): ...new function.
20622         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20623         struct to a subclass of gimple_opt_pass along with...
20624         (pass_data_build_alias): ...new pass_data instance and...
20625         (make_pass_build_alias): ...new function.
20626         (pass_build_ealias): Convert from a global struct to a subclass of
20627         gimple_opt_pass along with...
20628         (pass_data_build_ealias): ...new pass_data instance and...
20629         (make_pass_build_ealias): ...new function.
20630         (pass_ipa_pta): Convert from a global struct to a subclass of
20631         simple_ipa_opt_pass along with...
20632         (pass_data_ipa_pta): ...new pass_data instance and...
20633         (make_pass_ipa_pta): ...new function.
20634         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20635         subclass of gimple_opt_pass along with...
20636         (pass_data_uncprop): ...new pass_data instance and...
20637         (make_pass_uncprop): ...new function.
20638         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20639         global struct to a subclass of gimple_opt_pass along with...
20640         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20641         (make_pass_late_warn_uninitialized): ...new function.
20642         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20643         to a subclass of gimple_opt_pass along with...
20644         (pass_data_init_datastructures): ...new pass_data instance and...
20645         (make_pass_init_datastructures): ...new function.
20646         (pass_early_warn_uninitialized): Convert from a global struct to a
20647         subclass of gimple_opt_pass along with...
20648         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20649         (make_pass_early_warn_uninitialized): ...new function.
20650         (pass_update_address_taken): Convert from a global struct to a
20651         subclass of gimple_opt_pass along with...
20652         (pass_data_update_address_taken): ...new pass_data instance and...
20653         (make_pass_update_address_taken): ...new function.
20654         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20655         struct to a subclass of gimple_opt_pass along with...
20656         (pass_data_release_ssa_names): ...new pass_data instance and...
20657         (make_pass_release_ssa_names): ...new function.
20658         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20659         subclass of gimple_opt_pass along with...
20660         (pass_data_stdarg): ...new pass_data instance and...
20661         (make_pass_stdarg): ...new function.
20662         * tree-switch-conversion.c (pass_convert_switch): Convert from a
20663         global struct to a subclass of gimple_opt_pass along with...
20664         (pass_data_convert_switch): ...new pass_data instance and...
20665         (make_pass_convert_switch): ...new function.
20666         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20667         to a subclass of gimple_opt_pass along with...
20668         (pass_data_tail_recursion): ...new pass_data instance and...
20669         (make_pass_tail_recursion): ...new function.
20670         (pass_tail_calls): Convert from a global struct to a subclass of
20671         gimple_opt_pass along with...
20672         (pass_data_tail_calls): ...new pass_data instance and...
20673         (make_pass_tail_calls): ...new function.
20674         * tree-vect-generic.c (pass_lower_vector): Convert from a global
20675         struct to a subclass of gimple_opt_pass along with...
20676         (pass_data_lower_vector): ...new pass_data instance and...
20677         (make_pass_lower_vector): ...new function.
20678         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20679         gimple_opt_pass along with...
20680         (pass_data_lower_vector_ssa): ...new pass_data instance and...
20681         (make_pass_lower_vector_ssa): ...new function.
20682         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20683         to a subclass of gimple_opt_pass along with...
20684         (pass_data_slp_vectorize): ...new pass_data instance and...
20685         (make_pass_slp_vectorize): ...new function.
20686         (pass_ipa_increase_alignment): Convert from a global struct to a
20687         subclass of simple_ipa_opt_pass along with...
20688         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20689         (make_pass_ipa_increase_alignment): ...new function.
20690         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20691         gimple_opt_pass along with...
20692         (pass_data_vrp): ...new pass_data instance and...
20693         (make_pass_vrp): ...new function.
20694         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20695         subclass of simple_ipa_opt_pass along with...
20696         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20697         (make_pass_ipa_free_lang_data): ...new function.
20698         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20699         gimple_opt_pass along with...
20700         (pass_data_tsan): ...new pass_data instance and...
20701         (make_pass_tsan): ...new function.
20702         (pass_tsan_O0): Convert from a global struct to a subclass of
20703         gimple_opt_pass along with...
20704         (pass_data_tsan_O0): ...new pass_data instance and...
20705         (make_pass_tsan_O0): ...new function.
20706         * var-tracking.c (pass_variable_tracking): Convert from a global
20707         struct to a subclass of rtl_opt_pass along with...
20708         (pass_data_variable_tracking): ...new pass_data instance and...
20709         (make_pass_variable_tracking): ...new function.
20710         * web.c (pass_web): Convert from a global struct to a subclass of
20711         rtl_opt_pass along with...
20712         (pass_data_web): ...new pass_data instance and...
20713         (make_pass_web): ...new function.
20714         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20715         declaration with that of...
20716         (make_pass_mode_switch_use): ...new function.
20717         (pass_resolve_sw_modes): Replace declaration with that of...
20718         (make_pass_resolve_sw_modes): ...new function.
20719         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20720         from a global struct to a subclass of rtl_opt_pass along with...
20721         (pass_data_mode_switch_use): ...new pass_data instance and...
20722         (make_pass_mode_switch_use): ...new function.
20723         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20724         from a global struct to a subclass of rtl_opt_pass along with...
20725         (pass_data_resolve_sw_modes): ...new pass_data instance and...
20726         (make_pass_resolve_sw_modes): ...new function.
20727         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20728         struct to a subclass of rtl_opt_pass along with...
20729         (pass_data_insert_vzeroupper): ...new pass_data instance and...
20730         (make_pass_insert_vzeroupper): ...new function.
20731         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20732         global struct to a subclass of rtl_opt_pass along with...
20733         (pass_data_work_around_errata): ...new pass_data instance and...
20734         (make_pass_work_around_errata): ...new function.
20735         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20736         struct to a subclass of rtl_opt_pass along with...
20737         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20738         (make_pass_mips_machine_reorg2): ...new function.
20740 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20742         * passes.c (pass_manager::operator new): New.
20744 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20746         Handwritten part of conversion of passes to C++ classes.
20748         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20749         (toplev.o): Add dep on PASS_MANAGER_H.
20750         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20751         of early local pases to reflect this moving from a global to a
20752         member of gcc::pass_manager.
20753         (cgraph_add_new_function): Likewise.
20754         * lto-cgraph.c (lto_output_node): Update for conversion of
20755         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20756         * passes.c (opt_pass::clone): New.
20757         (opt_pass::gate): New.
20758         (opt_pass::execute): New.
20759         (opt_pass::opt_pass): New.
20760         (pass_manager::execute_early_local_passes): New.
20761         (pass_manager::execute_pass_mode_switching): new.
20762         (finish_optimization_passes): Convert to...
20763         (pass_manager::finish_optimization_passes): ...this.
20764         (finish_optimization_passes): Update for conversion of passes to
20765         C++ classes.
20766         (register_dump_files_1): Use has_gate since we cannot portably
20767         check a vtable entry against NULL.
20768         (dump_one_pass): Likewise.
20769         (ipa_write_summaries_2): Likewise.
20770         (ipa_write_optimization_summaries_1): Likewise.
20771         (ipa_read_summaries_1): Likewise.
20772         (ipa_read_optimization_summaries_1): Likewise.
20773         (execute_ipa_stmt_fixups): Likewise.
20774         (pass_manager::pass_manager): Rewrite pass-creation, invoking
20775         pass-creation functions rather than wiring up globals, and
20776         storing the results in fields of pass_manager generated using
20777         pass-instances.def.
20778         (pass_manager::dump_profile_report): Update for conversion of
20779         passes to C++ classes.
20780         (pass_manager::execute_ipa_summary_passes): Likewise.
20781         (execute_one_ipa_transform_pass): Likewise.
20782         (execute_one_pass): Use has_gate and has_execute since we cannot
20783         portably check a vtable entry against NULL.
20784         * pass_manager.h (pass_manager::finish_optimization_passes): New.
20785         (pass_manager): Use pass-instances.def to add fields for the
20786         various pass instances.
20787         * toplev.c (finalize): Update for move of
20788         finish_optimization_passes to a method of gcc::pass_manager.
20789         * toplev.h (finish_optimization_passes): Move to method of class
20790         pass_manager.
20791         * tree-pass.h (struct pass_data): New.
20792         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20793         (opt_pass::gate): Convert to virtual function.
20794         (opt_pass::~opt_pass): New.
20795         (opt_pass::clone): New.
20796         (opt_pass::execute): Convert to virtual function.
20797         (opt_pass::opt_pass): New.
20798         (opt_pass::ctxt_): new.
20799         (gimple_opt_pass): Convert to subclass of opt_pass.
20800         (gimple_opt_pass::gimple_opt_pass): New.
20801         (rtl_opt_pass): Convert to subclass of opt_pass.
20802         (rtl_opt_pass::rtl_opt_pass): New.
20803         (ipa_opt_pass_d): Convert to subclass of opt_pass.
20804         (ipa_opt_pass_d::ipa_opt_pass_d): New.
20805         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20806         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20807         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20808         invocation of pass_mode_switching to reflect this moving from a
20809         global to a member of gcc::pass_manager.
20810         (ix86_option_override): Rework how pass_insert_vzeroupper is
20811         added to the pass_manager to reflect autogenerated changes.
20812         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20814 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
20816         PR rtl-optimization/57708
20817         * recog.c (peep2_find_free_register): Validate all regs in a
20818         multi-reg mode.
20820 2013-08-05  Jan Hubicka  <jh@suse.cz>
20822         PR lto/57602
20823         * cgraph.c (verify_cgraph_node): Accept local flags from other
20824         partitions.
20825         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20826         (function_and_variable_visibility): Likewise.
20827         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20829 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20831         * graph.c (init_graph_slim_pretty_print): Remove.
20832         (print_graph_cfg): Do not call it.  Use local pretty printer.
20833         (start_graph_dump): Likewise.
20835 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20837         * gimple-pretty-print.c (buffer): Remove.
20838         (initialized): Likewise.
20839         (maybe_init_pretty_print): Likewise.
20840         (print_gimple_stmt): Do not call it.  Use non-static local
20841         pretty_printer variable.
20842         (print_gimple_expr): Likewise.
20843         (print_gimple_seq): Likewise.
20844         (gimple_dump_bb): Likewise.
20846 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20848         * asan.c (asan_pp): Remove.
20849         (asan_pp_initialized): Likewise.
20850         (asan_pp_initialize): Likewise.
20851         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
20852         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
20853         (asan_add_global): Likewise.
20855 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20857         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
20858         * diagnostic.h (diagnostic_flush_buffer): Adjust.
20859         * pretty-print.c (pp_formatted_text_data): Likewise.
20860         (pp_indent): Rename from pp_base_indent.
20861         (pp_format): Rename from pp_base_format.
20862         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20863         (pp_format_verbatim): Rename from pp_base_format_verbatim.
20864         (pp_flush): Rename from pp_base_flush.
20865         (pp_set_line_maximum_length): Rename from
20866         pp_base_set_line_maximum_length.
20867         (pp_clear_output_area): Rename from pp_base_clear_output_area.
20868         (pp_set_prefix): Rename from pp_base_set_prefix.
20869         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20870         (pp_emit_prefix): Rename from pp_base_emit_prefix.
20871         (pp_append_text): Rename from pp_base_append_text.
20872         (pp_formatted_text): Rename from pp_base_formatted_text.
20873         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20874         (pp_remaining_character_count_for_line): Rename from
20875         pp_base_remaining_character_count_for_line.
20876         (pp_newline): Rename from pp_base_newline.
20877         (pp_character): Rename from pp_base_character.
20878         (pp_string): Rename from pp_base_string.
20879         (pp_maybe_space): Rename from pp_base_maybe_space.
20880         * asan.c (asan_pp_string): Adjust.
20881         (asan_emit_stack_protection): Likewise.
20882         (asan_add_global): Likewise.
20883         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20884         * tree-mudflap.c (mf_varname_tree): Likewise.
20885         * tree-pretty-print.c (pp_tree_identifier): Rename from
20886         pp_base_tree_identifier.
20887         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20888         Declare as function.
20890 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20892         * pretty-print.h (pp_bar_bar): New.
20893         (pp_ampersand_ampersand): Likewise.
20894         (pp_less_equal): Likewise.
20895         (pp_greater_equal): Likewise.
20896         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20897         printer functions instead of pp_string or operators and punctuators.
20898         (dump_gimple_call): Likewise.
20899         (dump_gimple_omp_for): Likewise.
20900         (dump_gimple_transaction): Likewise.
20901         (dump_gimple_phi): Likewise.
20902         (pp_gimple_stmt_1): Likewise.
20903         * sched-vis.c (print_insn): Likewise.
20904         * tree-mudflap.c (mf_varname_tree): Likewise.
20905         * tree-pretty-print.c (dump_block_node): Likewise.
20906         (dump_generic_node): Likewise.
20908 2013-08-02  Jan Hubicka  <jh@suse.cz>
20910         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
20911         boundaries.
20912         * lto-streamer-out.c (tree_is_indexable): Results decls and
20913         parm decls are not indexable.
20914         (DFS_write_tree_body): Do not follow args and results.
20915         (hash_tree): Likewise.
20916         (output_functions): Rearrange so struct function is needed
20917         only when real body is output; be able to also ouptut abstract
20918         functions; output DECL_ARGUMENTS and DECL_RESULT.
20919         (lto_output): When not in WPA, ale store abstract functions.
20920         (write_symbol): Do not care about RESULT_DECL.
20921         (output_symbol_p): Handle correctly sbtract decls.
20922         * lto-streamer-in.c (input_function): Rearrange so struct
20923         function can be NULL at entry; allow streaming of
20924         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20925         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20926         sanity check during LTO.
20927         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20928         RESULT_DECl and DECL_ARGUMENTS.
20929         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20930         Likewise.
20932 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20934         * pretty-print.h (pp_underscore): New.
20935         (pp_comma): Tidy.
20936         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20937         printer functions instead of pp_character.
20938         (dump_binary_rhs): Likewise.
20939         (dump_ternary_rhs): Likewise.
20940         (dump_gimple_call_args): Likewise.
20941         (pp_points_to_solution): Likewise.
20942         (dump_gimple_call): Likewise.
20943         (dump_gimple_switch): Likewise.
20944         (dump_gimple_cond): Likewise.
20945         (dump_gimple_bind): Likewise.
20946         (dump_gimple_try): Likewise.
20947         (dump_gimple_omp_for): Likewise.
20948         (dump_gimple_omp_continue): Likewise.
20949         (dump_gimple_omp_single): Likewise.
20950         (dump_gimple_omp_sections): Likewise.
20951         (dump_gimple_omp_block): Likewise.
20952         (dump_gimple_omp_critical): Likewise.
20953         (dump_gimple_transaction): Likewise.
20954         (dump_gimple_asm): Likewise.
20955         (dump_gimple_phi): Likewise.
20956         (dump_gimple_omp_parallel): Likewise.
20957         (dump_gimple_omp_task): Likewise.
20958         (dump_gimple_omp_atomic_load): Likewise.
20959         (dump_gimple_omp_atomic_store): Likewise.
20960         (dump_gimple_mem_ops): Likewise.
20961         (pp_gimple_stmt_1): Likewise.
20962         (pp_cfg_jump): Likewise.
20963         (dump_implicit_edges): Likewise.
20964         (gimple_dump_bb_for_graph): Likewise.
20965         * graph.c (draw_cfg_node): Likewise.
20966         * langhooks.c (lhd_print_error_function): Likewise.
20967         * sched-vis.c (print_exp): Likewise.
20968         (print_value): Likewise.
20969         (print_pattern): Likewise.
20970         (print_insn): Likewise.
20971         (rtl_dump_bb_for_graph): Likewise.
20972         * tree-pretty-print.c (dump_function_declaration): Likewise.
20973         (dump_array_domain): Likewise.
20974         (dump_omp_clause): Likewise.
20975         (dump_location): Likewise.
20976         (dump_generic_node): Likewise.
20977         (print_struct_decl): Likewise.
20978         * diagnostic.c (diagnostic_show_locus): Use pp_space.
20980 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20982         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20983         candidate table when replacing a candidate statement.
20984         (replace_rhs_if_not_dup): Likewise.
20985         (replace_one_candidate): Likewise.
20987 2013-08-02  Jan Hubicka  <jh@suse.cz>
20988             Martin Liska  <marxin.liska@gmail.com>
20990         * cgraphunit.c (add_new_function): Fix logic when adding from
20991         late IPA pass.
20992         (assemble_thunk): Rename to ...
20993         (expand_thunk); .. this one; export; get it working with
20994         general functions; make produced gimple valid.
20995         * cgraph.h (expand_thunk): Declare.
20997 2013-08-02  Jan Hubicka  <jh@suse.cz>
20999         * ipa-cp.c (gather_context_independent_values): Use
21000         ipa_get_param_move_cost.
21001         (get_replacement_map): Remove PARAM; move parameter folding
21002         into tree-inline.c
21003         (create_specialized_node): Update.
21004         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
21005         assert that we have gimple body; update move_cost.
21006         (count_formal_params): Assert that we have gimple body.
21007         (ipa_dump_param): New function.
21008         (ipa_alloc_node_params): Break out from ...
21009         (ipa_initialize_node_params): ... here.
21010         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
21011         (ipa_write_node_info): Stream move costs.
21012         (ipa_read_node_info): Read move costs.
21013         (ipa_update_after_lto_read): Do not recompute node params.
21014         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
21015         (ipa_get_param): Check we are not in WPA.
21016         (ipa_get_param_move_cost): New.
21017         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
21018         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
21019         parm numbers to be present.
21021 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
21023         PR rtl-optimization/58048
21024         * lra-constraints.c (process_alt_operands): Don't check asm
21025         operand on register.
21027 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
21029         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
21030         the implied StoreLoad barrier for atomic operations if before.
21032 2013-08-02  Jan Hubicka  <jh@suse.cz>
21033             Martin Liska  <marxin.liska@gmail.com>
21035         * cgraph.c (cgraph_function_body_availability): Do not check
21036         cgraph flags.
21037         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
21038         symtab_node_availability): Declare.
21039         * ipa.c (can_replace_by_local_alias): New.
21040         (function_and_variable_visibility): Use it.
21041         * symtab.c (symtab_for_node_and_aliases,
21042         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
21044 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
21046         PR rtl-optimization/57963
21047         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
21048         (lra_constraints): Use them.
21050 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
21052         * config/arm/types.md (define_attr "type"): Add "load_acq"
21053         and "store_rel".
21054         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
21055         changes.
21056         (cortex_a53_store1): Likewise.
21058 2013-08-01  Jan Hubicka  <jh@suse.cz>
21060         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
21061         partitions are not needed.
21063 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
21065         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
21066         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
21067         MAYBE_NON_Q_CLASS_P where appropriate.
21069 2013-08-01  Jan Hubicka  <jh@suse.cz>
21071         * cgraph.h (release_function_body): Declare.
21072         * tree.c (free_lang_data_in_decl): Free, parameters and return values
21073         of unused delcarations.
21075 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21077         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
21078         RTL form when subtracting a constant.
21080 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21082         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
21083         Generate canonical plus rtx with negated immediate instead of minus
21084         where appropriate.
21085         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
21087 2013-08-01  Jan Hubicka  <jh@suse.cz>
21089         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
21090         (cgraph_release_function_body): Likewise.
21091         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
21092         * cgraph.h (cgrpah_node): Rename abstract_and_needed
21093         to used_as_abstract_origin.
21094         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
21095         symbols used as abstract origins.
21096         * cgraphunit.c (analyze_functions): Update.
21097         * ipa.c (symtab_remove_unreachable_nodes): Recompute
21098         used_as_abstract_origin.
21099         * tree-inline.c (tree_function_versioning): Update
21100         used_as_abstract_origin; be ready for DECL_RESULT and
21101         DECL_ARGUMENTS to be NULL.
21103         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
21104         for abstract functions.
21105         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
21106         real symbols.
21108 2013-08-01  Jan Hubicka  <jh@suse.cz>
21110         * profile.c (compute_value_histograms): Fix thinko.
21112 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
21114         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
21115         aarch-common-protos.h to extra_headers.
21116         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21117         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
21118         * config/aarch64/t-aarch64 (aarch-common.o): Define.
21120 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
21122         * config/aarch64/aarch64.md (define_attr "type"): Delete.
21123         Include "../arm/types.md".  Define "type" attribute for all patterns.
21124         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
21125         attribute changes.
21127 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
21129         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
21130         to support power8 load fusion.
21131         (fusion_gpr_mem_load): Likewise.
21133         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
21135         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
21136         declarations for power8 load fusion.
21137         (emit_fusion_gpr_load): Likewise.
21139         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21140         tuning for power8, turn on fusion mode by default.  Turn on sign
21141         extending fusion mode if normal fusion mode is on, and we are at
21142         -O2 or -O3.
21143         (fusion_gpr_load_p): New function, return true if we can fuse an
21144         addis instruction with a dependent load to a GPR.
21145         (emit_fusion_gpr_load): Emit the instructions for power8 load
21146         fusion to GPRs.
21148         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21149         (VSX load fusion peepholes): New peepholes to fuse together an
21150         addi instruction with a VSX load instruction.
21152         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21153         peepholes to fuse an addis instruction with a load to a GPR base
21154         register.  If we are supporting sign extending fusions, convert
21155         sign extending loads to zero extending loads and add an explicit
21156         sign extension.
21158 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
21160         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
21161         aarch-common-protos.h to extra_headers.
21162         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21163         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21164         (arm_early_store_addr_dep): Likewise.
21165         (arm_no_early_alu_shift_dep): Likewise.
21166         (arm_no_early_alu_shift_value_dep): Likewise.
21167         (arm_no_early_mul_dep): Likewise.
21168         (arm_no_early_store_addr_dep): Likewise.
21169         (arm_mac_accumulator_is_mul_result): Likewise.
21170         (arm_mac_accumulator_is_result): Likewise.
21171         * config/arm/aarch-common.c: ... here.  New file.
21172         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21173         here to ...
21174         (arm_early_store_addr_dep): Likewise.
21175         (arm_no_early_alu_shift_dep): Likewise.
21176         (arm_no_early_alu_shift_value_dep): Likewise.
21177         (arm_no_early_mul_dep): Likewise.
21178         (arm_no_early_store_addr_dep): Likewise.
21179         (arm_mac_accumulator_is_mul_result): Likewise.
21180         (arm_mac_accumulator_is_result): Likewise.
21181         * config/arm/aarch-common-protos.h: ... here.  New file.
21182         * config/arm/t-arm (aarch-common.o): Define.
21184 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
21186         * config/arm/arm.md: Include new file "types.md".
21187         (define_attr "type"): Move from here to ...
21188         (define_attr "mul32"): Likewise.
21189         (define_attr "mul64"): Likewise.
21190         * config/arm/types.md: ... here.  New file.
21192 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21194         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21195         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21197 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21199         * gen-pass-instances.awk: Fix offset of substr().
21201 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
21203         * Makefile.in (pass-instances.def): New.
21204         (passes.o): Replace dependency on passes.def with one on
21205         pass-instances.def
21207         * gen-pass-instances.awk: New.
21209         * passes.c (pass_manager::pass_manager): Use pass-instances.def
21210         rather than passes.def, updating local definition of NEXT_PASS
21211         macro to add an extra NUM parameter (currently unused).
21213 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
21215         * Makefile.in (PASS_MANAGER_H): New.
21216         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21217         (passes.o): Likewise.
21218         (statistics.o): Likewise.
21219         (cgraphunit.o): Likewise.
21220         (context.o): Depend on PASS_MANAGER_H.
21222         * pass_manager.h: New.
21224         * cgraphunit.c (cgraph_add_new_function): Update for moves
21225         of globals to fields of pass_manager.
21226         (analyze_function): Likewise.
21227         (expand_function): Likewise.
21228         (ipa_passes): Likewise.
21229         (compile): Likewise.
21231         * context.c (context::context): New.
21232         * context.h  (context::context): New.
21233         (context::get_passes): New.
21234         (context::passes_): New.
21236         * lto-cgraph.c (input_node): Update for moves of globals to
21237         fields of pass_manager.
21239         * passes.c (all_passes): Remove, in favor of a field of the
21240         same name within the new class pass_manager.
21241         (all_small_ipa_passes): Likewise.
21242         (all_lowering_passes): Likewise.
21243         (all_regular_ipa_passes): Likewise.
21244         (all_late_ipa_passes): Likewise.
21245         (all_lto_gen_passes): Likewise.
21246         (passes_by_id): Likewise.
21247         (passes_by_id_size): Likewise.
21248         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21249         the new class pass_manager.
21250         (set_pass_for_id): Convert to...
21251         (pass_manager::set_pass_for_id): ...method.
21252         (get_pass_for_id): Convert to...
21253         (pass_manager::get_pass_for_id): ...method.
21254         (register_one_dump_file): Move body of implementation into...
21255         (pass_manager::register_one_dump_file): ...here.
21256         (register_dump_files_1): Convert to...
21257         (pass_manager::register_dump_files_1): ...method.
21258         (register_dump_files): Convert to...
21259         (pass_manager::register_dump_files): ...method.
21260         (create_pass_tab): Update for moves of globals to fields of
21261         pass_manager.
21262         (dump_passes): Move body of implementation into...
21263         (pass_manager::dump_passes): ...here.
21264         (register_pass): Move body of implementation into...
21265         (pass_manager::register_pass): ...here.
21266         (init_optimization_passes): Convert into...
21267         (pass_manager::pass_manager): ...constructor for new
21268         pass_manager class, and initialize the pass_lists array.
21269         (check_profile_consistency): Update for moves of globals to
21270         fields of pass_manager.
21271         (dump_profile_report): Move body of implementation into...
21272         (pass_manager::dump_profile_report): ...here.
21273         (ipa_write_summaries_1): Update for moves of pass lists from
21274         being globals to fields of pass_manager.
21275         (ipa_write_optimization_summaries): Likewise.
21276         (ipa_read_summaries):  Likewise.
21277         (ipa_read_optimization_summaries): Likewise.
21278         (execute_all_ipa_stmt_fixups): Likewise.
21280         * statistics.c (statistics_fini): Update for moves of globals to
21281         fields of pass_manager.
21283         * toplev.c (general_init): Replace call to
21284         init_optimization_passes with construction of the pass_manager
21285         instance.
21287         * tree-pass.h (all_passes): Remove, in favor of a field of the
21288         same name within the new class pass_manager.
21289         (all_small_ipa_passes): Likewise.
21290         (all_lowering_passes): Likewise.
21291         (all_regular_ipa_passes): Likewise.
21292         (all_lto_gen_passes): Likewise.
21293         (all_late_ipa_passes): Likewise.
21294         (passes_by_id): Likewise.
21295         (passes_by_id_size): Likewise.
21296         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21297         the new class pass_manager.
21298         (get_pass_for_id): Remove.
21300 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21302         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21303         configs.
21305 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21307         * arm.md (mulhi3): New expand pattern.
21309 2013-07-30  Jan Hubicka  <jh@suse.cz>
21310             Martin Liska  <marxin.liska@gmail.com>
21312         * profile.c (compute_value_histograms): Do not ICE when
21313         there is mismatch only on some counters.
21315 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21317         PR rtl-optimization/57637
21318         * function.c (move_insn_for_shrink_wrap): Also check the
21319         GEN set of the LIVE problem for the liveness analysis
21320         if it exists, otherwise give up.
21322 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21324         PR tree-optimization/57993
21325         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21326         replaced statement in the candidate table.
21327         (phi_add_costs): Return infinite cost when the hidden basis does
21328         not dominate all phis on which the candidate is dependent.
21329         (replace_one_candidate): Record replaced statement in the
21330         candidate table.
21332 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21334         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21335         (ashlv2si3): New expander.
21336         (*ashlv2si3_i): New define_insn_and_split.
21337         * predicates.md (float_operation): Allow patterns with three
21338         basic sub-patterns.
21340         PR rtl-optimization/58021
21341         * mode-switching.c (create_pre_exit): Always split off preceding
21342         insns if we are not at the basic block head.
21344 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
21346         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21347         (UCLIBC_DYNAMIC_LINKER): New macro.
21348         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21349         `-mnan=2008'.
21350         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21351         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
21352         `-mnan=2008'.
21353         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21354         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21355         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21356         for SF and DF modes.  Use ieee_quad_format for TF mode.
21357         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21358         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21359         (mips_option_override): Handle `-mnan=legacy'.
21360         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21361         `-mabs=2008' and `-mnan=2008'.
21362         (OPTION_DEFAULT_SPECS): Add "nan" default.
21363         (ASM_SPEC): Handle `-mnan='.
21364         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21365         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21366         comment accordingly.
21367         (neg<mode>2): Likewise.
21368         * config/mips/mips.opt (mabs, mnan): New options.
21369         * doc/install.texi (Configuration): Document `--with-nan=' option.
21370         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21371         `-mnan=' options.
21372         (MIPS Options): Document them.
21373         * config.gcc <mips*-*-*>: Handle `--with-nan='.
21374         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21375         * configure: Regenerate.
21376         * config.in: Regenerate.
21378 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21380         * config/i386/i386.md (float post-reload splitters): Do not check
21381         for subregs of SSE registers.
21383 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21384             H.J. Lu  <hongjiu.lu@intel.com>
21386         PR target/57954
21387         PR target/57988
21388         * config/i386/i386.md (post-reload splitter
21389         to avoid partial SSE reg dependency stalls): New pattern.
21391 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21393         * config/s390/s390.md ("movcc"): Swap load and store instructions.
21395 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
21397         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21398         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21400 2013-07-26  Cary Coutant  <ccoutant@google.com>
21402         * dwarf2out.c (die_checksum_ordered): Don't include template
21403         instantiations in signature.
21404         (is_template_parameter): New function.
21405         (is_template_instantiation): New function.
21406         (generate_skeleton_bottom_up): Don't include template instantiations
21407         in type unit DIE.
21408         (generate_skeleton): Likewise.
21409         (break_out_comdat_types): Move recursive call to break out nested
21410         types earlier.
21411         (prune_unused_types_mark_generic_parms_dies): Call
21412         is_template_parameter.
21414 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
21416         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21417         uses vector registers.
21418         * config/aarch64/iterators.md: Add attributes rtn and vas.
21420 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21421             Richard Earnshaw  <richard.earnshaw@arm.com>
21423         * combine.c (simplify_comparison): Re-canonicalize operands
21424         where appropriate.
21425         * config/arm/arm.md (movcond_addsi): New splitter.
21427 2013-07-25  Sterling Augustine  <saugustine@google.com>
21429         * dwarf2out.c (size_of_pubnames): Move code to...
21430         (include_pubname_in_output): ...here.  New.
21431         (want_pubnames): Rearrange.
21432         (output_pubnames): Call include_pubname_in_output.  Move assertion.
21434 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21436         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21438 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21440         PR target/38836
21441         * doc/extend.texi: Remove obsolete builtins. Fix
21442         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21444 2013-07-25  Jan Hubicka  <jh@suse.cz>
21446         * cgraph.c (release_function_body): Break out from ...
21447         (cgraph_release_function_body): ... this one; also release DECL_RESULT
21448         and DECL_ARGUMENTS.
21449         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21450         old_tree in the map.
21451         (create_specialized_node): Update.
21452         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21453         into index.
21454         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21455         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21456         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21457         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21458         DECL_RESULT.
21460 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21462         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21463         addsi3_carryin_alt2_<optab>): Correct output template.
21465 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21467         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21468         Adjust for arm_restrict_it.
21469         Remove trailing whitespace.
21471 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
21473         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21474         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21476         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21478 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
21480         PR rtl-optimization/57960
21481         * lra-constraints.c (process_alt_operands): Use the right mode
21482         when checking strict_low.
21484 2013-07-25  Jan Hubicka  <jh@suse.cz>
21486         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21487         * cgraph.c (cgraph_remove_node): Do not release function body
21488         when in cgraph streaming.
21489         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21490         in other partitions are not considered reachable; fix handling of
21491         clones.
21493 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21495         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21497 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21499         PR target/19599
21500         PR target/57731
21501         PR target/57837
21502         * config/arm/arm.md ("*sibcall_insn): Replace use of
21503         Ss with US. Adjust output for v5 and v4t.
21504         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21506         * config/arm/constraints.md ("Ss"): Rename to US.
21508 2013-07-25  Terry Guo  <terry.guo@arm.com>
21510         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21511         shift_add/shift_sub0/shift_sub1 RTXs.
21513 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
21514             Anton Blanchard  <anton@au1.ibm.com>
21516         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21517         (altivec_vpks<VI_char>ss): Likewise.
21518         (altivec_vpks<VI_char>us): Likewise.
21519         (altivec_vpku<VI_char>us): Likewise.
21520         (altivec_vpku<VI_char>um): Likewise.
21522 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
21524         Introduce context class.
21526         * Makefile.in (CONTEXT_H): New.
21527         (OBJS): Add context.o.
21528         (toplev.o): Add CONTEXT_H to dependencies.
21529         (context.o): New.
21531         * toplev.c (general_init): Create the singleton gcc::context instance.
21533         * context.c: New.
21535         * context.h: New.
21537 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
21539         PR rtl-optimization/57968
21540         * mode-switching.c (create_pre_exit): Allow instructions that
21541         don't set a return register to need a non-exit mode.
21543 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21544             Anton Blanchard  <anton@au1.ibm.com>
21546         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21547         operands to vperm for little endian.
21548         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21549         of lvsl to create the control mask for a vperm for little endian.
21551 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21552             Anton Blanchard  <anton@au1.ibm.com>
21554         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21555         two operands for little-endian.
21557 2013-07-23  Steve Ellcey  <sellcey@mips.com>
21559         * config/mips/mips.c (mips_case_values_threshold): New.
21560         (TARGET_CASE_VALUES_THRESHOLD): Define.
21562 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21563             Anton Blanchard  <anton@au1.ibm.com>
21565         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21566         selection of field for vector splat in little endian mode.
21568 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
21570         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21571         expanders to rs6000.md.
21572         (ior<mode>3): Likewise.
21573         (and<mode>3): Likewise.
21574         (one_cmpl<mode>2): Likewise.
21575         (nor<mode>3): Likewise.
21576         (andc<mode>3): Likewise.
21577         (eqv<mode>3): Likewise.
21578         (nand<mode>3): Likewise.
21579         (orc<mode>3): Likewise.
21581         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21582         declaration.
21584         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21585         to split multi-word logical operations.
21586         (rs6000_split_logical_di): Likewise.
21587         (rs6000_split_logical): Likewise.
21589         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21590         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21591         and allow TImode operations in 32-bit.
21592         (vsx_and<mode>3_64bit): Likewise.
21593         (vsx_ior<mode>3_32bit): Likewise.
21594         (vsx_ior<mode>3_64bit): Likewise.
21595         (vsx_xor<mode>3_32bit): Likewise.
21596         (vsx_xor<mode>3_64bit): Likewise.
21597         (vsx_one_cmpl<mode>2_32bit): Likewise.
21598         (vsx_one_cmpl<mode>2_64bit): Likewise.
21599         (vsx_nor<mode>3_32bit): Likewise.
21600         (vsx_nor<mode>3_64bit): Likewise.
21601         (vsx_andc<mode>3_32bit): Likewise.
21602         (vsx_andc<mode>3_64bit): Likewise.
21603         (vsx_eqv<mode>3_32bit): Likewise.
21604         (vsx_eqv<mode>3_64bit): Likewise.
21605         (vsx_nand<mode>3_32bit): Likewise.
21606         (vsx_nand<mode>3_64bit): Likewise.
21607         (vsx_orc<mode>3_32bit): Likewise.
21608         (vsx_orc<mode>3_64bit): Likewise.
21610         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21611         logical types in GPRs.
21613         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21614         logical insns to rs6000.md, and allow TImode operations in
21615         32-bit.
21616         (altivec_ior<mode>3): Likewise.
21617         (altivec_xor<mode>3): Likewise.
21618         (altivec_one_cmpl<mode>2): Likewise.
21619         (altivec_nor<mode>3): Likewise.
21620         (altivec_andc<mode>3): Likewise.
21622         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21623         attributes for moving the 128-bit logical operations into
21624         rs6000.md.
21625         (BOOL_REGS_OUTPUT): Likewise.
21626         (BOOL_REGS_OP1): Likewise.
21627         (BOOL_REGS_OP2): Likewise.
21628         (BOOL_REGS_UNARY): Likewise.
21629         (BOOL_REGS_AND_CR0): Likewise.
21630         (one_cmpl<mode>2): Add support for DI logical operations on
21631         32-bit, splitting the operations to 32-bit.
21632         (anddi3): Likewise.
21633         (iordi3): Likewise.
21634         (xordi3): Likewise.
21635         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21636         changes to combine the 32/64-bit code, allow logical operations on
21637         TI mode in 32-bit, and to use similar match_operator patterns like
21638         scalar mode uses.  Combine the Altivec and VSX code for logical
21639         operations, and move it here.
21640         (ior<mode>3, 128-bit types): Likewise.
21641         (xor<mode>3, 128-bit types): Likewise.
21642         (one_cmpl<mode>3, 128-bit types): Likewise.
21643         (nor<mode>3, 128-bit types): Likewise.
21644         (andc<mode>3, 128-bit types): Likewise.
21645         (eqv<mode>3, 128-bit types): Likewise.
21646         (nand<mode>3, 128-bit types): Likewise.
21647         (orc<mode>3, 128-bit types): Likewise.
21648         (and<mode>3_internal): Likewise.
21649         (bool<mode>3_internal): Likewise.
21650         (boolc<mode>3_internal1): Likewise.
21651         (boolc<mode>3_internal2): Likewise.
21652         (boolcc<mode>3_internal1): Likewise.
21653         (boolcc<mode>3_internal2): Likewise.
21654         (eqv<mode>3_internal1): Likewise.
21655         (eqv<mode>3_internal2): Likewise.
21656         (one_cmpl1<mode>3_internal): Likewise.
21658 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21660         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21661         Rename flag_stack_usage to flag_stack_usage_info.
21663 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21665         * config/microblaze/sync.md: New file.
21666         * config/microblaze/microblaze.md: Include sync.md
21667         * config/microblaze/microblaze.c: Add print_operand 'y'.
21668         * config/microblaze/constraints.md: Add memory_contraint
21669         'Q' which is a single register.
21671 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
21673         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21675 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21677         * reload.c (find_reloads): Exit loop once we find this operand
21678         cannot be reloaded somehow for this alternative.
21680         * reload.c (find_reloads): Exit loop once we find a hard register.
21682         * rtlanal.c (computed_jump_p): Exit loop once we find label
21683         reference is used.
21685         * i386.c (ix86_pad_returns): Exit loop after setting replace.
21687         * cfgloopmanip.c (remove_path): Exit loop after setting
21688         irred_invalidated.
21690         * gensupport.c (subst_dup): Avoid loop if code is not
21691         MATCH_DUP nor MATCH_OP_DUP.
21693 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
21695         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21697 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21699         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21700         true for SP_REGNUM if mode == ptr_mode.
21701         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21702         with value R0_REGNUM + 31.
21704 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21706         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21707         pad pointer-typed argument downward.
21709 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21711         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21712         and __ILP32__ when the ILP32 model is in use.
21714 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21716         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21717         (aarch64_load_symref_appropriately): In the case of
21718         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21719         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21720         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21721         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21722         if 'mode' doesn't equal to 'ptr_mode'.
21723         (aarch64_output_mi_thunk): Add an assertion on the alignment of
21724         'vcall_offset'; change to call aarch64_emit_move differently depending
21725         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21726         to calculate the upper bound of 'vcall_offset'.
21727         (aarch64_cannot_force_const_mem): Change to also return true if
21728         mode != ptr_mode.
21729         (aarch64_legitimize_reload_address): In the case of large
21730         displacements, add new local variable 'xmode' and an assertion
21731         based on it; change to use 'xmode' to generate the new rtx and
21732         reload.
21733         (aarch64_asm_trampoline_template): Change to generate the template
21734         differently depending on TARGET_ILP32 or not; change to use
21735         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21736         (aarch64_trampoline_size): Removed.
21737         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21738         and replace immediate literals with it.  Change to use 'ptr_mode'
21739         instead of 'DImode' and call convert_memory_address if the mode
21740         of 'fnaddr' doesn't equal to 'ptr_mode'.
21741         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21742         to output symbol.
21743         (aarch64_elf_asm_destructor): Likewise.
21744         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21745         on TARGET_ILP32 instead of aarch64_trampoline_size.
21746         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21747         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21748         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21749         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
21750         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21751         (storewb_pair<GPI:mode>_<P:mode>): ... this.
21752         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21753         depending on the value of 'mode'.
21754         (add_losym_<mode>): New.
21755         (ldr_got_small_<mode>): New, based on ldr_got_small.
21756         (ldr_got_small): Remove.
21757         (ldr_got_small_sidi): New.
21758         * config/aarch64/iterators.md (P): New.
21759         (PTR): Change to 'ptr_mode' in the condition.
21761 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21763         * config.gcc (aarch64*-*-*): Support --with-abi.
21764         (aarch64*-*-elf): Support --with-multilib-list.
21765         (aarch64*-*-linux*): Likewise.
21766         (supported_defaults): Add abi to aarch64*-*-*.
21767         * configure.ac: Mention AArch64 for --with-multilib-list.
21768         * configure: Re-generated.
21769         * config/aarch64/biarchilp32.h: New file.
21770         * config/aarch64/biarchlp64.h: New file.
21771         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21772         (ABI_SPEC): Ditto.
21773         (MULTILIB_DEFAULTS): Ditto.
21774         (DRIVER_SELF_SPECS): Ditto.
21775         (ASM_SPEC): Update to also substitute -mabi.
21776         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21777         file whose name depends on -mabi= and -mbig-endian.
21778         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21779         TARGET_ILP32.
21780         (POINTER_SIZE): New define.
21781         (POINTERS_EXTEND_UNSIGNED): Ditto.
21782         (enum aarch64_abi_type): New enumeration tag.
21783         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21784         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21785         (TARGET_ILP32): New define.
21786         * config/aarch64/aarch64.opt (mabi): New.
21787         (aarch64_abi): New.
21788         (ilp32, lp64): New values for -mabi.
21789         * config/aarch64/t-aarch64 (comma): New define.
21790         (MULTILIB_OPTIONS): Ditto.
21791         (MULTILIB_DIRNAMES): Ditto.
21792         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21793         * doc/invoke.texi: Document -mabi for AArch64.
21795 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
21797         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21799 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21800             Anton Blanchard  <anton@au1.ibm.com>
21802         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21803         endianness when selecting field to splat.
21805 2013-07-22  Eric Christopher  <echristo@gmail.com>
21807         * dwarf2out.c (die_odr_checksum): New function to use
21808         CHECKSUM_ macros and ULEB128 for DIE tag.
21809         (generate_type_signature): Use.
21811 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
21813         * config.gcc (sparc*-*-*): Accept leon3 processor.
21814         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21815         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21816         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21817         * config/sparc/sparc.opt (enum processor_type): Add leon3.
21818         (mfix-ut699): Adjust comment.
21819         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21820         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21821         (CPP_CPU_SPEC): Likewise.
21822         (ASM_CPU_SPEC): Likewise.
21823         * config/sparc/sparc.c (leon3_cost): New constant.
21824         (sparc_option_override): Add leon3 support.
21825         (mem_ref): New function.
21826         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21827         (sparc_do_work_around_errata): Look into the instruction in the delay
21828         slot and adjust accordingly.  Add fix for the data cache nullify issues
21829         of the UT699.  Change insertion position for the NOP.
21830         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21831         (leon3_load): New reservation.
21832         (leon_store): Bump latency to 2.
21833         (grfpu): New automaton.
21834         (grfpu_alu): New unit.
21835         (grfpu_ds): Likewise.
21836         (leon_fp_alu): Adjust.
21837         (leon_fp_mult): Delete.
21838         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21839         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21840         * config/sparc/sparc.md (cpu): Add leon3.
21841         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21842         (swapsi): Likewise.
21843         (atomic_test_and_set): Likewise.
21844         (ldstub): Likewise.
21846 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
21848         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
21849         default for R5900 targets.
21850         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21851         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21852         * config/mips/mips.c (mips_option_override): Report an error for
21853         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
21854         for -march=r5900 -mhard-float.
21856 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21858         * df-problems.c (can_move_insns_across): Exit loop once we
21859         find a non-fixed, non-global register.
21861         * ipa-pure-const.c (propagate_nothrow): Exit loop after
21862         setting can_throw.
21864         * omega.c (omega_eliminate_red): Break after setting red_found.
21865         (omega_problem_has_red_equations): Similarly after setting found.
21866         (omega_query_variable): Similarly after setting coupled.
21868 2013-07-22  Marek Polacek  <polacek@redhat.com>
21870         * gimplify.c: Don't include gimple.h twice.
21872 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21874         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21875         instead of TARGET_THUMB1.
21876         (Pz): New constraint.
21877         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21878         encodings.
21879         (compare_negsi_si): Likewise.
21880         (compare_addsi2_op0): Likewise.
21881         (compare_addsi2_op1): Likewise.
21882         (addsi3_carryin_<optab>): Likewise.
21883         (addsi3_carryin_alt2_<optab>): Likewise.
21884         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21885         for arm_restrict_it.
21886         (subsi3_carryin): Likewise.
21887         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21888         (minmax_arithsi): Disable for arm_restrict_it.
21889         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21890         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21891         (satsi_<SAT:code>_shift): Likewise.
21892         (arm_shiftsi3): Add alternative for 16-bit encoding.
21893         (arm32_movhf): Disable for arm_restrict_it.
21894         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21895         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21897 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
21899         * config/arm/arm.md (attribute "insn"): Delete.
21900         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21901         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21902         (not_shiftsi): Update for attribute change.
21903         (not_shiftsi_compare0): Likewise.
21904         (not_shiftsi_compare0_scratch): Likewise.
21905         (arm_one_cmplsi2): Likewise.
21906         (thumb1_one_cmplsi2): Likewise.
21907         (notsi_compare0): Likewise.
21908         (notsi_compare0_scratch): Likewise.
21909         (thumb1_movdi_insn): Likewise.
21910         (arm_movsi_insn): Likewise.
21911         (movhi_insn_arch4): Likewise.
21912         (movhi_bytes): Likewise.
21913         (arm_movqi_insn): Likewise.
21914         (thumb1_movqi_insn): Likewise.
21915         (arm32_movhf): Likewise.
21916         (thumb1_movhf): Likewise.
21917         (arm_movsf_soft_insn): Likewise.
21918         (thumb1_movsf_insn): Likewise.
21919         (thumb_movdf_insn): Likewise.
21920         (movsicc_insn): Likewise.
21921         (movsfcc_soft_insn): Likewise.
21922         (and_scc): Likewise.
21923         (cond_move): Likewise.
21924         (if_move_not): Likewise.
21925         (if_not_move): Likewise.
21926         (if_shift_move): Likewise.
21927         (if_move_shift): Likewise.
21928         (if_shift_shift): Likewise.
21929         (if_not_arith): Likewise.
21930         (if_arith_not): Likewise.
21931         (cond_move_not): Likewise.
21932         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21933         (neon_mov<mode>): Likewise.
21934         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21935         (thumb2_movsi_vfp): Likewise.
21936         (movsf_vfp): Likewise.
21937         (thumb2_movsf_vfp): Likewise.
21938         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21939         change.
21940         (cortexa7_older_only): Likewise.
21941         (cortexa7_younger): Likewise.
21942         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21943         (1020alu_shift_op): Likewise.
21944         (1020alu_shift_reg_op): Likewise.
21945         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21946         (alu_shift_op): Likewise.
21947         (alu_shift_reg_op): Likewise.
21948         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21949         (11_alu_shift_op): Likewise.
21950         (11_alu_shift_reg_op): Likewise.
21951         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21952         (9_alu_shift_reg_op): Likewise.
21953         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21954         change.
21955         (cortex_a15_alu_shift): Likewise.
21956         (cortex_a15_alu_shift_reg): Likewise.
21957         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21958         (cortex_a5_alu_shift): Likewise.
21959         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21960         change.
21961         (cortex_a53_alu_shift): Likewise.
21962         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21963         change.
21964         (cortex_a7_alu_reg): Likewise.
21965         (cortex_a7_alu_shift): Likewise.
21966         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21967         (cortex_a8_alu_shift): Likewise.
21968         (cortex_a8_alu_shift_reg): Likewise.
21969         (cortex_a8_mov): Likewise.
21970         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21971         (cortex_a9_dp_shift): Likewise.
21972         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21973         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21974         (cortex_r4_mov): Likewise.
21975         (cortex_r4_alu_shift): Likewise.
21976         (cortex_r4_alu_shift_reg): Likewise.
21977         * config/arm/fa526.md (526_alu_op): Update for attribute change.
21978         (526_alu_shift_op): Likewise.
21979         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21980         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21981         (626te_alu_shift_op): Likewise.
21982         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21983         (726te_alu_op): Likewise.
21984         (726te_alu_shift_op): Likewise.
21985         (726te_alu_shift_reg_op): Likewise.
21986         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21987         (mp626_alu_shift_op): Likewise.
21988         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21989         (pj4_alu_e1_conds): Likewise.
21990         (pj4_alu): Likewise.
21991         (pj4_alu_conds): Likewise.
21992         (pj4_shift): Likewise.
21993         (pj4_shift_conds): Likewise.
21994         (pj4_alu_shift): Likewise.
21995         (pj4_alu_shift_conds): Likewise.
21997 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21999         * config/arm/predicates.md (shiftable_operator_strict_it):
22000         New predicate.
22001         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
22002         Disable cond_exec version for arm_restrict_it.
22003         (thumb2_smaxsi3): Convert to generate cond_exec.
22004         (thumb2_sminsi3): Likewise.
22005         (thumb32_umaxsi3): Likewise.
22006         (thumb2_uminsi3): Likewise.
22007         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
22008         (thumb2_neg_abssi2): Likewise.
22009         (thumb2_mov_scc): Add alternative for 16-bit encoding.
22010         (thumb2_movsicc_insn): Adjust alternatives.
22011         (thumb2_mov_negscc): Disable for arm_restrict_it.
22012         (thumb2_mov_negscc_strict_it): New pattern.
22013         (thumb2_mov_notscc_strict_it): New pattern.
22014         (thumb2_mov_notscc): Disable for arm_restrict_it.
22015         (thumb2_ior_scc): Likewise.
22016         (thumb2_ior_scc_strict_it): New pattern.
22017         (thumb2_cond_move): Adjust for arm_restrict_it.
22018         (thumb2_cond_arith): Disable for arm_restrict_it.
22019         (thumb2_cond_arith_strict_it): New pattern.
22020         (thumb2_cond_sub): Adjust for arm_restrict_it.
22021         (thumb2_movcond): Likewise.
22022         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
22023         (thumb2_zero_extendhisi2_v6): Likewise.
22024         (thumb2_zero_extendqisi2_v6): Likewise.
22025         (orsi_notsi_si): Likewise.
22026         (orsi_not_shiftsi_si): Likewise.
22028 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
22030         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
22031         instruction sequence is 1 byte shorter.
22033 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
22035         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
22036         it is not needed after split.
22038 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
22040         PR target/51784
22041         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
22042         second label for nonlocal goto receivers. Don't output pic base labels
22043         unless we're producing PIC; mark that action unreachable().
22044         (ix86_save_reg): If the function contains a nonlocal label, save the
22045         PIC base reg.
22046         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
22047         * config/darwin.c (emitted_pic_label_num): New GTY.
22048         (update_pic_label_number_if_needed): New.
22049         (machopic_output_function_base_name): Adjust for nonlocal receiver
22050         case.
22051         (machopic_should_output_picbase_label): New.
22052         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
22053         (nonlocal_goto_receiver): New insn and split.
22055 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
22057         * config/aarch64/aarch64-builtins.c
22058         (aarch64_fold_builtin): Fold abs in all modes.
22059         * config/aarch64/aarch64-simd-builtins.def
22060         (abs): Enable for all modes.
22061         * config/aarch64/arm_neon.h
22062         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
22063         (vabs_f64): Add missing intrinsic.
22065 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
22067         * config/aarch64/arm_neon.h (vabs_s64): New function
22069 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
22071         PR target/57516
22072         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
22073         * config/avr/avr.md (adjust_len): Add `round'.
22074         * config/avr/avr-protos.h (avr_out_round): New prototype.
22075         (avr_out_plus): Add `out_label' argument.
22076         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
22077         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
22078         Handle the case where `insn' is just a pattern.
22079         (avr_out_bitop): Handle the case where `insn' is just a pattern.
22080         (avr_out_round): New function.
22081         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
22083 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
22085         * config/microblaze/microblaze.c (microblaze_expand_prologue):
22086         Add check for flag_stack_usage to handle -fstack-usage support
22088 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
22090         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
22091         interaction for new Power8 flags and VSX.
22093 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
22095         PR middle-end/57698
22096         * tree-inline.c (expand_call_inline): Emit errors during
22097         early_inlining only if optimization is not turned on.
22099 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22101         * passes.def: New.
22103         * passes.c (init_optimization_passes): Move the construction of
22104         the pass hierarchy into a new passes.def file.
22106         * Makefile.in (passes.o): Add dependency on passes.def.
22108 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22110         * passes.c (init_optimization_passes): Introduce macros for
22111         constructing the tree of passes (INSERT_PASSES_AFTER,
22112         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
22113         TERMINATE_PASS_LIST).
22115 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
22116             Wei Mi  <wmi@google.com>
22118         PR rtl-optimization/57878
22119         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
22120         top.
22121         (reload_pseudo_compare_func): Check nregs first for reload
22122         pseudos.
22124 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22126         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
22128 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
22130         * read-rtl.c (validate_const_int): Once an invalid character is
22131         seen, quit the loop.
22133         * gengtype.c (write_roots): Similarly once we find the "deletable"
22134         or "if_marked" option.
22136 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
22138         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22139         "xtab" and "sat".  Move value "clz" from here to ...
22140         (attriubte "type"): ... here.
22141         (satsi_<SAT:code>): Delete "insn" attribute.
22142         (satsi_<SAT:code>_shift): Likewise.
22143         (arm_zero_extendqisi2addsi): Likewise.
22144         (arm_extendqisi2addsi): Likewise.
22145         (clzsi2): Update for attribute changes.
22146         (rbitsi2): Likewise.
22147         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22148         attribute.
22149         (arm_usatsihi): Likewise.
22150         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22152 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
22154         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22155         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
22156         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
22157         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
22158         in alphabetical order.
22159         (attribute "core_cycles"): Update for attribute changes.
22160         (arm_addsi3): Likewise.
22161         (addsi3_compare0): Likewise.
22162         (addsi3_compare0_scratch): Likewise.
22163         (addsi3_compare_op1): Likewise.
22164         (addsi3_compare_op2): Likewise.
22165         (compare_addsi2_op0): Likewise.
22166         (compare_addsi2_op1): Likewise.
22167         (addsi3_carryin_shift_<optab>): Likewise.
22168         (subsi3_carryin_shift): Likewise.
22169         (rsbsi3_carryin_shift): Likewise.
22170         (arm_subsi3_insn): Likewise.
22171         (subsi3_compare0): Likewise.
22172         (subsi3_compare): Likewise.
22173         (arm_andsi3_insn): Likewise.
22174         (thumb1_andsi3_insn): Likewise.
22175         (andsi3_compare0): Likewise.
22176         (andsi3_compare0_scratch): Likewise.
22177         (zeroextractsi_compare0_scratch
22178         (andsi_not_shiftsi_si): Likewise.
22179         (iorsi3_insn): Likewise.
22180         (iorsi3_compare0): Likewise.
22181         (iorsi3_compare0_scratch): Likewise.
22182         (arm_xorsi3): Likewise.
22183         (thumb1_xorsi3_insn): Likewise.
22184         (xorsi3_compare0): Likewise.
22185         (xorsi3_compare0_scratch): Likewise.
22186         (satsi_<SAT:code>_shift): Likewise.
22187         (rrx): Likewise.
22188         (arm_shiftsi3): Likewise.
22189         (shiftsi3_compare0): Likewise.
22190         (not_shiftsi): Likewise.
22191         (not_shiftsi_compare0): Likewise.
22192         (not_shiftsi_compare0_scratch): Likewise.
22193         (arm_one_cmplsi2): Likewise.
22194         (thumb_one_complsi2): Likewise.
22195         (notsi_compare0): Likewise.
22196         (notsi_compare0_scratch): Likewise.
22197         (thumb1_zero_extendhisi2): Likewise.
22198         (arm_zero_extendhisi2): Likewise.
22199         (arm_zero_extendhisi2_v6): Likewise.
22200         (arm_zero_extendhisi2addsi): Likewise.
22201         (thumb1_zero_extendqisi2): Likewise.
22202         (thumb1_zero_extendqisi2_v6): Likewise.
22203         (arm_zero_extendqisi2): Likewise.
22204         (arm_zero_extendqisi2_v6): Likewise.
22205         (arm_zero_extendqisi2addsi): Likewise.
22206         (thumb1_extendhisi2): Likewise.
22207         (arm_extendhisi2): Likewise.
22208         (arm_extendhisi2_v6): Likewise.
22209         (arm_extendqisi): Likewise.
22210         (arm_extendqisi_v6): Likewise.
22211         (arm_extendqisi2addsi): Likewise.
22212         (thumb1_extendqisi2): Likewise.
22213         (thumb1_movdi_insn): Likewise.
22214         (arm_movsi_insn): Likewise.
22215         (movsi_compare0): Likewise.
22216         (movhi_insn_arch4): Likewise.
22217         (movhi_bytes): Likewise.
22218         (arm_movqi_insn): Likewise.
22219         (thumb1_movqi_insn): Likewise.
22220         (arm32_movhf): Likewise.
22221         (thumb1_movhf): Likewise.
22222         (arm_movsf_soft_insn): Likewise.
22223         (thumb1_movsf_insn): Likewise.
22224         (movdf_soft_insn): Likewise.
22225         (thumb_movdf_insn): Likewise.
22226         (arm_cmpsi_insn): Likewise.
22227         (cmpsi_shiftsi): Likewise.
22228         (cmpsi_shiftsi_swp): Likewise.
22229         (arm_cmpsi_negshiftsi_si): Likewise.
22230         (movsicc_insn): Likewise.
22231         (movsfcc_soft_insn): Likewise.
22232         (arith_shiftsi): Likewise.
22233         (arith_shiftsi_compare0
22234         (arith_shiftsi_compare0_scratch
22235         (sub_shiftsi): Likewise.
22236         (sub_shiftsi_compare0
22237         (sub_shiftsi_compare0_scratch
22238         (and_scc): Likewise.
22239         (cond_move): Likewise.
22240         (if_plus_move): Likewise.
22241         (if_move_plus): Likewise.
22242         (if_move_not): Likewise.
22243         (if_not_move): Likewise.
22244         (if_shift_move): Likewise.
22245         (if_move_shift): Likewise.
22246         (if_shift_shift): Likewise.
22247         (if_not_arith): Likewise.
22248         (if_arith_not): Likewise.
22249         (cond_move_not): Likewise.
22250         (thumb1_ashlsi3): Set type attribute.
22251         (thumb1_ashrsi3): Likewise.
22252         (thumb1_lshrsi3): Likewise.
22253         (thumb1_rotrsi3): Likewise.
22254         (shiftsi3_compare0_scratch): Likewise.
22255         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22256         (neon_mov<mode>): Likewise.
22257         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22258         attribute changes.
22259         (thumb2_movsi_insn): Likewise.
22260         (thumb2_cmpsi_neg_shiftsi): Likewise.
22261         (thumb2_extendqisi_v6): Likewise.
22262         (thumb2_zero_extendhisi2_v6): Likewise.
22263         (thumb2_zero_extendqisi2_v6): Likewise.
22264         (thumb2_shiftsi3_short): Likewise.
22265         (thumb2_addsi3_compare0_scratch): Likewise.
22266         (orsi_not_shiftsi_si): Likewise.
22267         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22268         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22269         changes.
22270         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22271         (1020alu_shift_op): Likewise.
22272         (1020alu_shift_reg_op): Likewise.
22273         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22274         (alu_shift_op): Likewise.
22275         (alu_shift_reg_op): Likewise.
22276         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22277         (11_alu_shift_op): Likewise.
22278         (11_alu_shift_reg_op): Likewise.
22279         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22280         (9_alu_shift_reg_op): Likewise.
22281         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22282         changes.
22283         (cortex_a15_alu_shift): Likewise.
22284         (cortex_a15_alu_shift_reg): Likewise.
22285         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22286         changes.
22287         (cortex_a5_alu_shift): Likewise.
22288         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22289         changes.
22290         (cortex_a53_alu_shift): Likewise.
22291         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22292         changes.
22293         (cortex_a7_alu_reg): Likewise.
22294         (cortex_a7_alu_shift): Likewise.
22295         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22296         changes.
22297         (cortex_a8_alu_shift): Likewise.
22298         (cortex_a8_alu_shift_reg): Likewise.
22299         (cortex_a8_mov): Likewise.
22300         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22301         (cortex_a9_dp_shift): Likewise.
22302         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22303         changes.
22304         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22305         changes.
22306         (cortex_r4_mov): Likewise.
22307         (cortex_r4_alu_shift): Likewise.
22308         (cortex_r4_alu_shift_reg): Likewise.
22309         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22310         (526_alu_shift_op): Likewise.
22311         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22312         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22313         (626te_alu_shift_op): Likewise.
22314         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22315         (726te_alu_op): Likewise.
22316         (726te_alu_shift_op): Likewise.
22317         (726te_alu_shift_reg_op): Likewise.
22318         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22319         (mp626_alu_shift_op): Likewise.
22320         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22321         (pj4_alu_e1_conds): Likewise.
22322         (pj4_alu): Likewise.
22323         (pj4_alu_conds): Likewise.
22324         (pj4_shift): Likewise.
22325         (pj4_shift_conds): Likewise.
22326         (pj4_alu_shift): Likewise.
22327         (pj4_alu_shift_conds): Likewise.
22328         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22329         changes.
22330         (cortexa7_older_only): Likewise.
22331         (cortexa7_younger): Likewise.
22333 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22335         * ipa-pure-const.c (generate_summary): Rename to...
22336         (pure_const_generate_summary): ... this.
22338 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
22340         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22342 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
22344         PR target/57909
22345         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22346         usage in HI mode.
22348 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22350         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22351         enabled without -march=zEC12.
22352         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22353         flags to be set.
22355 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22357         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22358         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22359         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22360         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22361         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22362         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22363         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22364         ISA_HAS_FP4.
22365         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22366         and ISA_HAS_NMADD3_NMSUB3.
22367         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22368         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22369         (nmsub4<mode>, nmsub3<mode>): Likewise.
22370         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22372 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22374         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22375         TARGET_MIPS5400 checking.
22377 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
22378             Peter Bergner  <bergner@vnet.ibm.com>
22380         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22381         registers in the comment.
22382         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22383         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22384         rather than FIRST_PSEUDO_REGISTERS.
22386 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
22388         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22389         enable extra ISA flags with TARGET_HTM.
22391 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22393         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22394         Fix comment typos.
22396 2013-07-15  Cong Hou  <congh@google.com>
22398         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22399         in compare function for sorting.
22401 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
22403         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22404         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22405         * config/rs6000/rs6000.opt: Add -mhtm option.
22406         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22407         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22408         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22409         __HTM__ if the HTM instructions are available.
22410         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22411         htm_spr_reg_operand): New define_predicates.
22412         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22413         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22414         Include htm.md.
22415         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22416         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22417         HTM builtin functions.
22418         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22419         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22420         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22421         (rs6000_builtin_mask_calculate): Likewise.
22422         (rs6000_option_override_internal): Likewise.
22423         (bdesc_htm): Add new HTM builtin support.
22424         (htm_spr_num): New function.
22425         (htm_spr_regno): Likewise.
22426         (rs6000_htm_spr_icode): Likewise.
22427         (htm_expand_builtin): Likewise.
22428         (htm_init_builtins): Likewise.
22429         (rs6000_expand_builtin): Add support for HTM builtin functions.
22430         (rs6000_init_builtins): Likewise.
22431         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22432         option.
22433         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22434         (TARGET_HTM, MASK_HTM): Define macros.
22435         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22436         (FIXED_REGISTERS): Likewise.
22437         (CALL_USED_REGISTERS): Likewise.
22438         (CALL_REALLY_USED_REGISTERS): Likewise.
22439         (REG_ALLOC_ORDER): Likewise.
22440         (enum reg_class): Likewise.
22441         (REG_CLASS_NAMES): Likewise.
22442         (REG_CLASS_CONTENTS): Likewise.
22443         (REGISTER_NAMES): Likewise.
22444         (ADDITIONAL_REGISTER_NAMES): Likewise.
22445         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22446         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22447         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22448         * config/rs6000/htm.md: New file.
22449         * config/rs6000/htmintrin.h: New file.
22450         * config/rs6000/htmxlintrin.h: New file.
22452 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22454         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22455         Define SYMBOL_TINY_GOT, update comment.
22456         * config/aarch64/aarch64.c
22457         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22458         (aarch64_expand_mov_immediate): Likewise.
22459         (aarch64_print_operand): Likewise.
22460         (aarch64_classify_symbol): Likewise.
22461         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22462         (ldr_got_tiny): Define.
22464 2013-07-13  Tobias Grosser  <tobias@grosser.es>
22466         PR tree-optimization/54094
22467         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22468           scheduling dimension for the parallelism check from the polyhedral
22469           information in the AST.
22470         * graphite-dependences.c (carries_deps): Do not assume the schedule is
22471           in 2D + 1 form.
22473 2013-07-13  Jason Merrill  <jason@redhat.com>
22475         * print-tree.c (debug_vec_tree): Use debug_raw.
22476         (debug_raw (vec<tree, va_gc> &)): New.
22477         (debug_raw (vec<tree, va_gc> *)): New.
22478         * tree.h: Declare them.
22480 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
22482         * ifcvt.c (ifcvt_after_combine): New static variable.
22483         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22484         for size.
22485         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
22486         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22487         rest_of_handle_if_after_reload): Pass new argument for if_convert.
22489 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
22491         * config/mips/mips.c (mips_expand_call): Remove empty statement.
22493 2013-07-12  Michael Matz  <matz@suse.de>
22495         PR middle-end/55771
22496         * convert.c (convert_to_real): Reject non-float inner types.
22498 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
22500         * config/aarch64/aarch64-protos.h
22501         (aarch64_simd_immediate_valid_for_move): Remove.
22502         * config/aarch64/aarch64.c (simd_immediate_info): New member.
22503         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22504         cases.
22505         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22507 2013-07-11  Steve Ellcey  <sellcey@mips.com>
22509         * config/mips/mips.c (mips_conditional_register_usage): Do not
22510         use t[0-7] registers in MIPS16 mode when optimizing for size.
22512 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
22514         * config/i386/i386.c (dispatch_function_versions): Fix array
22515         indexing of function_version_info to match actual_versions.
22517 2013-07-11  Teresa Johnson  <tejohnson@google.com>
22519         * vec.h (struct va_gc): Move release out-of-line.
22520         (va_gc::release): Call ggc_free on released vec.
22522 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22524         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22525         Require GOT register as additional operand in UNSPEC.
22526         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22527         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22528         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22529         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22530         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22531         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22532         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22534 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
22536         PR target/57631
22537         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22538         name seen by assembler/linker rather if available.
22540 2013-07-11  Andreas Schwab  <schwab@suse.de>
22542         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22544 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
22546         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22548 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
22550         * doc/tm.texi.in: Move hook documentation to ....
22551         * target.def: ... here.
22553         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22554         text on @hook line.
22555         * doc/tm.texi: Regenerate.
22557 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
22559         PR c++/57869
22560         * doc/invoke.texi: Document -Wconditionally-supported.
22562 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22564         PR target/57844
22565         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22566         of my_fp.
22568 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22570         PR target/57506
22571         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22572         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22573         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22574         Remove duplicate devices.
22575         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22576         * config/avr/t-multilib: Regenerate.
22577         * config/avr/avr-tables.opt: Regenerate.
22578         * doc/avr-mmcu.texi: Regenerate.
22580 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22582         PR target/56987
22583         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22585 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
22587         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22588         the cost of MULT when optimizing for size.
22590 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22592         * config/cr16/cr16-protos.h: Don't include target.h.
22594 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
22596         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22597         adjust register size for TDmode and TFmode for VSX registers.
22599 2013-07-08  Kai Tietz  <ktietz@redhat.com>
22601         PR target/56892
22602         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22603         hook_bool_const_tree_true.
22605 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22607         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22608         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22609         * config/s390/s390.md: Define FPR*_REGNUM constants.
22610         Fix FPR2_REGNUM constant (18 -> 17).
22611         ("*trunc<BFP:mode><DFP_ALL:mode>2")
22612         ("*trunc<DFP_ALL:mode><BFP:mode>2")
22613         ("trunc<BFP:mode><DFP_ALL:mode>2")
22614         ("trunc<DFP_ALL:mode><BFP:mode>2")
22615         ("*extend<BFP:mode><DFP_ALL:mode>2")
22616         ("*extend<DFP_ALL:mode><BFP:mode>2")
22617         ("extend<BFP:mode><DFP_ALL:mode>2")
22618         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22619         FPR4_REGNUM.
22621 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
22623         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22625 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22627         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22628         and cfun_fpr_bit_p to cfun_fpr_save_p.
22629         (s390_frame_area, s390_register_info, s390_frame_info)
22630         (s390_emit_prologue, s390_emit_epilogue)
22631         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22632         register numbers.
22633         * config/s390/s390.h: Define *_REGNUM macros for floating point
22634         register numbers.
22636 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22638         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22640 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
22642         PR rtl-optimization/57786
22643         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22644         and break out of the loop when it is set to false.
22646 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
22648         PR target/57819
22649         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22650         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22651         (const_int 63)) 0)).
22652         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22653         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22654         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22656         PR rtl-optimization/57829
22657         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22658         mask bits outside of mode are just sign-extension from mode to HWI.
22660 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22662         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22663         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22664         adjust_address instead of change_address to keep info about alignment.
22665         (emit_strmov): Remove.
22666         (emit_memmov): New function.
22667         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22668         (expand_movmem_epilogue): Likewise and return updated rtx for
22669         destination.
22670         (expand_constant_movmem_prologue): Likewise and return updated rtx for
22671         destination and source.
22672         (decide_alignment): Refactor, handle vector_loop.
22673         (ix86_expand_movmem): Likewise.
22674         (ix86_expand_setmem): Likewise.
22675         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22677 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
22679         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22680         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22682 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22684         * config/i386/sse.md (sse_movlhps): Change alternative 3
22685         of operand 2 to "m".
22687 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22689         PR target/57807
22690         * config/i386/sse.md (iptr): New mode attribute.
22691         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22692         (<sse>_vm<plusminus_insn><mode>3): Ditto.
22693         (<sse>_vmmul<mode>3): Ditto.
22694         (<sse>_vmdiv<mode>3): Ditto.
22695         (sse_vmrcpv4sf2): Ditto.
22696         (<sse>_vmsqrt<mode>2): Ditto.
22697         (sse_vmrsqrtv4sf2): Ditto.
22698         (<sse>_vm<code><mode>3): Ditto.
22699         (avx_vmcmp<mode>3): Ditto.
22700         (<sse>_vmmaskcmp<mode>3): Ditto.
22701         (<sse>_comi): Ditto.
22702         (<sse>_ucomi): Ditto.
22703         (*xop_vmfrcz_<mode>): Ditto.
22704         (*fmai_fmadd_<mode>): Ditto.
22705         (*fmai_fmsub_<mode>): Ditto.
22706         (*fmai_fnmadd_<mode>): Ditto.
22707         (*fmai_fnmsub_<mode>): Ditto.
22708         (*fma4i_vmfmadd_<mode>): Ditto.
22709         (*fma4i_vmfmsub_<mode>): Ditto.
22710         (*fma4i_vmfnmadd_<mode>): Ditto.
22711         (*fma4i_vmfnmsub_<mode>): Ditto.
22712         (*xop_vmfrcz_<mode>): Ditto.
22713         (sse_cvtps2pi): Ditto.
22714         (sse_cvttps2pi): Ditto.
22715         (sse_cvtss2si): Ditto.
22716         (sse_cvtss2si_2): Ditto.
22717         (sse_cvtss2siq_2): Ditto.
22718         (sse_cvttss2si): Ditto.
22719         (sse_cvttss2siq): Ditto.
22720         (sse_cvtsd2si): Ditto.
22721         (sse_cvtsd2si_2): Ditto.
22722         (sse_cvtsd2siq_2): Ditto.
22723         (sse_cvttsd2si): Ditto.
22724         (sse_cvttsd2siq): Ditto.
22725         (sse_cvtsd2ss): Ditto.
22726         (sse_cvtss2sd): Ditto.
22727         (avx2_pbroadcast<mode>): Ditto.
22728         (avx2_pbroadcast<mode>_1): Ditto.
22729         (*avx_vperm_broadcast_v4sf): Ditto.
22731         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22732         (sse_movlhps): Ditto.
22733         (sse_storehps): Ditto.
22734         (sse_loadhps): Ditto.
22735         (sse_storelps): Ditto.
22736         (sse_loadlps): Ditto.
22737         (*vec_concatv4sf): Ditto.
22738         (*vec_interleave_highv2df): Ditto.
22739         (*vec_interleave_lowv2df): Ditto.
22740         (*vec_extractv2df_1_sse): Ditto.
22741         (*vec_extractv2df_0_sse): Ditto.
22742         (sse2_storelpd): Ditto.
22743         (sse2_loadlpd): Ditto.
22744         (sse2_movsd): Ditto.
22745         (*vec_concatv4si): Ditto.
22746         (vec_concatv2di): Ditto.
22748         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22749         for Intel asm dialect.
22750         (mmx_punpcklwd): Ditto.
22751         (mmx_punpckldq): Ditto.
22753         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22754         for intel assembler dialect.
22756 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
22758         PR target/29776
22759         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22760         for BUILT_IN_C{LZ,LRSB}*.
22761         * tree.h (CASE_INT_FN): Add FN##IMAX case.
22762         * tree-vrp.c (extract_range_basic): Handle
22763         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
22764         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22765         fall thru to code calling set_value*.
22766         * builtins.c (expand_builtin): Remove *IMAX cases.
22767         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22768         if width is bigger than 2*HWI.
22770 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
22772         PR rtl-optimization/55342
22773         * lra-int.h (lra_subreg_reload_pseudos): New.
22774         * lra.c: Add undoing optional reloads to the block diagram.
22775         (lra_subreg_reload_pseudos): New.
22776         (lra_optional_reload_pseudos): Change comments.
22777         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
22778         lra_optional_reload_pseudos after undo transformations.
22779         * lra-assigns.c (pseudo_prefix_title): New.
22780         (lra_setup_reg_renumber): Use it.
22781         (spill_for): Ditto.  Check subreg reload pseudos too.
22782         (assign_by_spills): Consider subreg reload pseudos too.
22783         * lra-constraints.c (simplify_operand_subreg): Use
22784         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22785         (curr_insn_transform): Recognize and do optional reloads.
22786         (undo_optional_reloads): New.
22787         (lra_undo_inheritance): Call undo_optional_reloads.
22789 2013-07-05  Thomas Quinot  <quinot@adacore.com>
22791         * tree-complex.c (expand_complex_operations_1): Fix typo.
22793 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
22795         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22796         (tune_params): New member 'const vec_costs'.
22797         * config/aarch64/aarch64.c (generic_vector_cost): New.
22798         (generic_tunings): New member 'generic_vector_cost'.
22799         (aarch64_builtin_vectorization_cost): New.
22800         (aarch64_add_stmt_cost): New.
22801         (TARGET_VECTORIZE_ADD_STMT_COST): New.
22802         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22804 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
22806         PR target/57777
22807         * config/i386/predicates.md (vsib_address_operand): Disallow
22808         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22810 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
22812         PR middle-end/55030
22813         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22814         expand_builtin_setjmp_receiver.
22815         (expand_label): Adjust, call expand_builtin_setjmp_receiver
22816         with NULL for the label parameter.
22817         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22818         the frame-pointer.  Adjust comments.
22819         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22820         only if LABEL is non-NULL.
22822 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
22824         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22825         (ARM_ABI_AAPCS64): Ditto.
22826         (arm_abi): Ditto.
22827         (ARM_DEFAULT_ABI): Ditto.
22829 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22831         * config/aarch64/aarch64-builtins.c
22832         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22833         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22834         (st1): Likewise.
22835         * config/aarch64/aarch64-simd.md
22836         (aarch64_ld1<VALL:mode>): New.
22837         (aarch64_st1<VALL:mode>): Likewise.
22838         * config/aarch64/arm_neon.h
22839         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22841 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
22843         * config/i386/i386.c (gate_insert_vzeroupper): Check if
22844         target ISA is AVX.
22845         (ix86_option_override_internal):Turn on all -mavx target flags by
22846         default as they are dependent on AVX anyway.
22848 2013-07-02  Cary Coutant  <ccoutant@google.com>
22850         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22851         deterministic hash.
22852         (loc_checksum_ordered): Likewise.
22853         (hash_loc_operands): Remove inline keyword.
22855 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
22857         PR tree-optimization/57741
22858         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22859         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22860         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22861         Allow REAL_CST step_exprs if flag_associative_math.
22862         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22864 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22866         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22868 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22870         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22872 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22874         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22875         encoding.
22876         (iorsi3_insn): Likewise.
22877         (arm_xorsi3): Likewise.
22879 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
22881         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
22882         to ...
22883         (attribute "type"): ... here, and prefix with "wmmx_".
22884         (attribute "core_cycles"): Update for attribute changes.
22885         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22886         (tbcstv4hi): Likewise.
22887         (tbcstv2si): Likewise.
22888         (iwmmxt_iordi3): Likewise.
22889         (iwmmxt_xordi3): Likewise.
22890         (iwmmxt_anddi3): Likewise.
22891         (iwmmxt_nanddi3): Likewise.
22892         (iwmmxt_arm_movdi): Likewise.
22893         (iwmmxt_movsi_insn): Likewise.
22894         (mov<mode>_internal): Likewise.
22895         (and<mode>3_iwmmxt): Likewise.
22896         (ior<mode>3_iwmmxt): Likewise.
22897         (xor<mode>3_iwmmxt): Likewise.
22898         (add<mode>3_iwmmxt): Likewise.
22899         (ssaddv8qi3): Likewise.
22900         (ssaddv4hi3): Likewise.
22901         (ssaddv2si3): Likewise.
22902         (usaddv8qi3): Likewise.
22903         (usaddv4hi3): Likewise.
22904         (usaddv2si3): Likewise.
22905         (sub<mode>3_iwmmxt): Likewise.
22906         (sssubv8qi3): Likewise.
22907         (sssubv4hi3): Likewise.
22908         (sssubv2si3): Likewise.
22909         (ussubv8qi3): Likewise.
22910         (ussubv4hi3): Likewise.
22911         (ussubv2si3): Likewise.
22912         (mulv4hi3_iwmmxt): Likewise.
22913         (smulv4hi3_highpart): Likewise.
22914         (umulv4hi3_highpart): Likewise.
22915         (iwmmxt_wmacs): Likewise.
22916         (iwmmxt_wmacsz): Likewise.
22917         (iwmmxt_wmacu): Likewise.
22918         (iwmmxt_wmacuz): Likewise.
22919         (iwmmxt_clrdi): Likewise.
22920         (iwmmxt_clrv8qi): Likewise.
22921         (iwmmxt_clr4hi): Likewise.
22922         (iwmmxt_clr2si): Likewise.
22923         (iwmmxt_uavgrndv8qi3): Likewise.
22924         (iwmmxt_uavgrndv4hi3): Likewise.
22925         (iwmmxt_uavgv8qi3): Likewise.
22926         (iwmmxt_uavgv4hi3): Likewise.
22927         (iwmmxt_tinsrb): Likewise.
22928         (iwmmxt_tinsrh): Likewise.
22929         (iwmmxt_tinsrw): Likewise.
22930         (iwmmxt_textrmub): Likewise.
22931         (iwmmxt_textrmsb): Likewise.
22932         (iwmmxt_textrmuh): Likewise.
22933         (iwmmxt_textrmsh): Likewise.
22934         (iwmmxt_textrmw): Likewise.
22935         (iwmxxt_wshufh): Likewise.
22936         (eqv8qi3): Likewise.
22937         (eqv4hi3): Likewise.
22938         (eqv2si3): Likewise.
22939         (gtuv8qi3): Likewise.
22940         (gtuv4hi3): Likewise.
22941         (gtuv2si3): Likewise.
22942         (gtv8qi3): Likewise.
22943         (gtv4hi3): Likewise.
22944         (gtv2si3): Likewise.
22945         (smax<mode>3_iwmmxt): Likewise.
22946         (umax<mode>3_iwmmxt): Likewise.
22947         (smin<mode>3_iwmmxt): Likewise.
22948         (umin<mode>3_iwmmxt): Likewise.
22949         (iwmmxt_wpackhss): Likewise.
22950         (iwmmxt_wpackwss): Likewise.
22951         (iwmmxt_wpackdss): Likewise.
22952         (iwmmxt_wpackhus): Likewise.
22953         (iwmmxt_wpackwus): Likewise.
22954         (iwmmxt_wpackdus): Likewise.
22955         (iwmmxt_wunpckihb): Likewise.
22956         (iwmmxt_wunpckihh): Likewise.
22957         (iwmmxt_wunpckihw): Likewise.
22958         (iwmmxt_wunpckilb): Likewise.
22959         (iwmmxt_wunpckilh): Likewise.
22960         (iwmmxt_wunpckilw): Likewise.
22961         (iwmmxt_wunpckehub): Likewise.
22962         (iwmmxt_wunpckehuh): Likewise.
22963         (iwmmxt_wunpckehuw): Likewise.
22964         (iwmmxt_wunpckehsb): Likewise.
22965         (iwmmxt_wunpckehsh): Likewise.
22966         (iwmmxt_wunpckehsw): Likewise.
22967         (iwmmxt_wunpckelub): Likewise.
22968         (iwmmxt_wunpckeluh): Likewise.
22969         (iwmmxt_wunpckeluw): Likewise.
22970         (iwmmxt_wunpckelsb): Likewise.
22971         (iwmmxt_wunpckelsh): Likewise.
22972         (iwmmxt_wunpckelsw): Likewise.
22973         (ror<mode>3): Likewise.
22974         (ashr<mode>3_iwmmxt): Likewise.
22975         (lshr<mode>3_iwmmxt): Likewise.
22976         (ashl<mode>3_iwmmxt): Likewise.
22977         (ror<mode>3_di): Likewise.
22978         (ashr<mode>3_di): Likewise.
22979         (lshr<mode>3_di): Likewise.
22980         (ashl<mode>3_di): Likewise.
22981         (iwmmxt_wmadds): Likewise.
22982         (iwmmxt_wmaddu): Likewise.
22983         (iwmmxt_tmia): Likewise.
22984         (iwmmxt_tmiaph): Likewise.
22985         (iwmmxt_tmiabb): Likewise.
22986         (iwmmxt_tmiatb): Likewise.
22987         (iwmmxt_tmiabt): Likewise.
22988         (iwmmxt_tmiatt): Likewise.
22989         (iwmmxt_tmovmskb): Likewise.
22990         (iwmmxt_tmovmskh): Likewise.
22991         (iwmmxt_tmovmskw): Likewise.
22992         (iwmmxt_waccb): Likewise.
22993         (iwmmxt_wacch): Likewise.
22994         (iwmmxt_waccw): Likewise.
22995         (iwmmxt_waligni): Likewise.
22996         (iwmmxt_walignr): Likewise.
22997         (iwmmxt_walignr0): Likewise.
22998         (iwmmxt_walignr1): Likewise.
22999         (iwmmxt_walignr2): Likewise.
23000         (iwmmxt_walignr3): Likewise.
23001         (iwmmxt_wsadb): Likewise.
23002         (iwmmxt_wsadh): Likewise.
23003         (iwmmxt_wsadbz): Likewise.
23004         (iwmmxt_wsadhz): Likewise.
23005         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
23006         (iwmmxt_wabsdiffb): Likewise.
23007         (iwmmxt_wabsdiffh): Likewise.
23008         (iwmmxt_wabsdiffw): Likewise.
23009         (iwmmxt_waddsubhx): Likewise
23010         (iwmmxt_wsubaddhx): Likewise.
23011         (addc<mode>3): Likewise.
23012         (iwmmxt_avg4): Likewise.
23013         (iwmmxt_avg4r): Likewise.
23014         (iwmmxt_wmaddsx): Likewise.
23015         (iwmmxt_wmaddux): Likewise.
23016         (iwmmxt_wmaddsn): Likewise.
23017         (iwmmxt_wmaddun): Likewise.
23018         (iwmmxt_wmulwsm): Likewise.
23019         (iwmmxt_wmulwum): Likewise.
23020         (iwmmxt_wmulsmr): Likewise.
23021         (iwmmxt_wmulumr): Likewise.
23022         (iwmmxt_wmulwsmr): Likewise.
23023         (iwmmxt_wmulwumr): Likewise.
23024         (iwmmxt_wmulwl): Likewise.
23025         (iwmmxt_wqmulm): Likewise.
23026         (iwmmxt_wqmulwm): Likewise.
23027         (iwmmxt_wqmulmr): Likewise.
23028         (iwmmxt_wqmulwmr): Likewise.
23029         (iwmmxt_waddbhusm): Likewise.
23030         (iwmmxt_waddbhusl): Likewise.
23031         (iwmmxt_wqmiabb): Likewise.
23032         (iwmmxt_wqmiabt): Likewise.
23033         (iwmmxt_wqmiatb): Likewise.
23034         (iwmmxt_wqmiatt): Likewise.
23035         (iwmmxt_wqmiabbn): Likewise.
23036         (iwmmxt_wqmiabtn): Likewise.
23037         (iwmmxt_wqmiatbn): Likewise.
23038         (iwmmxt_wqmiattn): Likewise.
23039         (iwmmxt_wmiabb): Likewise.
23040         (iwmmxt_wmiabt): Likewise.
23041         (iwmmxt_wmiatb): Likewise.
23042         (iwmmxt_wmiatt): Likewise.
23043         (iwmmxt_wmiabbn): Likewise.
23044         (iwmmxt_wmiabtn): Likewise.
23045         (iwmmxt_wmiatbn): Likewise.
23046         (iwmmxt_wmiattn): Likewise.
23047         (iwmmxt_wmiawbb): Likewise.
23048         (iwmmxt_wmiawbt): Likewise.
23049         (iwmmxt_wmiawtb): Likewise.
23050         (iwmmxt_wmiawtt): Likewise.
23051         (iwmmxt_wmiawbbn): Likewise.
23052         (iwmmxt_wmiawbtn): Likewise.
23053         (iwmmxt_wmiawtbn): Likewise.
23054         (iwmmxt_wmiawttn): Likewise.
23055         (iwmmxt_wmerge): Likewise.
23056         (iwmmxt_tandc<mode>3): Likewise.
23057         (iwmmxt_torc<mode>3): Likewise.
23058         (iwmmxt_torvsc<mode>3): Likewise.
23059         (iwmmxt_textrc<mode>3): Likewise.
23060         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
23061         (wmmxt_pack): Likewise.
23062         (wmmxt_mult_c1): Likewise.
23063         (wmmxt_mult_c2): Likewise.
23064         (wmmxt_alu_c1): Likewise.
23065         (wmmxt_alu_c2): Likewise.
23066         (wmmxt_alu_c3): Likewise.
23067         (wmmxt_transfer_c1): Likewise.
23068         (wmmxt_transfer_c2): Likewise.
23069         (wmmxt_transfer_c3): Likewise.
23070         (marvell_f_iwmmxt_wstr): Likewise.
23071         (marvell_f_iwmmxt_wldr): Likewise.
23073 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
23075         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
23077 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
23079         Revert:
23080         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
23081         * lra-constraints.c (need_for_split_p): Check call used hard regs
23082         living through calls.
23084         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
23085         call used regs for call insn.
23087 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
23089         PR target/57736
23090         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
23091         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
23093 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
23095         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
23097 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
23099         * lra-constraints.c (need_for_split_p): Check call used hard regs
23100         living through calls.
23102 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
23104         PR target/57744
23105         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
23106         to tie with any other modes.  Eliminate Altivec vector mode tests,
23107         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
23108         code, to return 0 if testing MODE2 for a condition, if we've
23109         already tested MODE1 for the same condition.
23111 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23113         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
23114         layout.
23116 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23118         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23119         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
23121 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23123         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
23124         Define.
23125         (aarch64_symbolic_constant_p): Remove.
23126         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
23127         static.  Fix line length and white space.
23128         (aarch64_symbolic_constant_p): Remove.
23129         * config/aarch64/predicates.md (aarch64_valid_symref):
23130         Use aarch64_classify_symbol_expression.
23132 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23134         * config/arm/constraints.md (Ts): New constraint.
23135         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
23136         16-bit encodings.
23137         (compare_scc): Use "Ts" constraint for operand 0.
23138         (ior_scc_scc): Likewise.
23139         (and_scc_scc): Likewise.
23140         (and_scc_scc_nodom): Likewise.
23141         (ior_scc_scc_cmp): Likewise for operand 7.
23142         (and_scc_scc_cmp): Likewise.
23143         * config/arm/thumb2.md (thumb2_movsi_insn):
23144         Add alternatives for 16-bit encodings.
23145         (thumb2_movhi_insn): Likewise.
23146         (thumb2_movsicc_insn): Likewise.
23147         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
23148         (thumb2_negscc): Use "Ts" constraint.
23149         Move mvn instruction outside cond_exec block.
23150         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23151         for 16-bit encodings.
23153 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23155         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23156         encoding.
23157         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23158         (mulsi3subsi): Likewise.
23159         (mulsidi3adddi): Likewise.
23160         (mulsidi3_v6): Likewise.
23161         (umulsidi3_v6): Likewise.
23162         (umulsidi3adddi_v6): Likewise.
23163         (smulsi3_highpart_v6): Likewise.
23164         (umulsi3_highpart_v6): Likewise.
23165         (mulhisi3tb): Likewise.
23166         (mulhisi3bt): Likewise.
23167         (mulhisi3tt): Likewise.
23168         (maddhisi4): Likewise.
23169         (maddhisi4tb): Likewise.
23170         (maddhisi4tt): Likewise.
23171         (maddhidi4): Likewise.
23172         (maddhidi4tb): Likewise.
23173         (maddhidi4tt): Likewise.
23174         (zeroextractsi_compare0_scratch): Likewise.
23175         (insv_zero): Likewise.
23176         (insv_t2): Likewise.
23177         (anddi_notzesidi_di): Likewise.
23178         (anddi_notsesidi_di): Likewise.
23179         (andsi_notsi_si): Likewise.
23180         (iordi_zesidi_di): Likewise.
23181         (xordi_zesidi_di): Likewise.
23182         (andsi_iorsi3_notsi): Likewise.
23183         (smax_0): Likewise.
23184         (smax_m1): Likewise.
23185         (smin_0): Likewise.
23186         (not_shiftsi): Likewise.
23187         (unaligned_loadsi): Likewise.
23188         (unaligned_loadhis): Likewise.
23189         (unaligned_loadhiu): Likewise.
23190         (unaligned_storesi): Likewise.
23191         (unaligned_storehi): Likewise.
23192         (extv_reg): Likewise.
23193         (extzv_t2): Likewise.
23194         (divsi3): Likewise.
23195         (udivsi3): Likewise.
23196         (arm_zero_extendhisi2addsi): Likewise.
23197         (arm_zero_extendqisi2addsi): Likewise.
23198         (compareqi_eq0): Likewise.
23199         (arm_extendhisi2_v6): Likewise.
23200         (arm_extendqisi2addsi): Likewise.
23201         (arm_movt): Likewise.
23202         (thumb2_ldrd): Likewise.
23203         (thumb2_ldrd_base): Likewise.
23204         (thumb2_ldrd_base_neg): Likewise.
23205         (thumb2_strd): Likewise.
23206         (thumb2_strd_base): Likewise.
23207         (thumb2_strd_base_neg): Likewise.
23208         (arm_negsi2): Add alternative for 16-bit encoding.
23209         (arm_one_cmplsi2): Likewise.
23211 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23213         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23214         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23215         (movdfcc): Likewise.
23216         * config/arm/vfp.md (*thumb2_movsf_vfp):
23217         Disable predication for arm_restrict_it.
23218         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23219         (*thumb2_movdfcc_vfp): Likewise.
23220         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23221         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23222         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23223         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23224         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23225         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23226         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23227         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23228         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23229         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23230         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23231         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23232         Disable predication for arm_restrict_it.
23234 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
23236         * config/i386/bmiintrin.h (_bextr_u32): New.
23237         (_bextr_u64): Ditto.
23239 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
23241         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23242         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23243         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23244         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23245         * config/mips/n32-elf.h: ...this new file.
23247 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
23249         PR target/57224
23250         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23251         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23253 2013-06-27  Catherine Moore  <clm@codesourcery.com>
23255         * config/mips/mips-tables.opt: Regenerate.
23256         * config/mips/mips-cpus.def: Add m14ke and m14kec.
23257         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23258         * doc/invoke.texi: Add -m14kc.
23260 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23262         PR target/57623
23263         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23264         constraints of operand 1 and 2.
23266         PR target/57623
23267         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23268         to match RTL canonicalization.  Swap predicates and
23269         constraints of operand 1 and 2.
23271 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
23273         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23274         Process OP_INOUT regs for splitting too.
23276 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23278         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23279         decl before the loop, initialize to NULL.
23280         (vectorizable_load): Initialize ptr_incr to NULL.
23282 2013-06-27  Martin Jambor  <mjambor@suse.cz>
23284         PR lto/57208
23285         * ipa-ref.h (ipa_maybe_record_reference): Declare.
23286         * ipa-ref.c (ipa_maybe_record_reference): New function.
23287         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23288         * ipa-cp.c (create_specialized_node): Record potential references from
23289         aggvals.
23290         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23292 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23294         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23295         parameter 'mode' of type 'enum machine_mode mode'; change to pass
23296         'mode' to force_reg.
23297         (aarch64_add_offset): Update calls to aarch64_force_temporary.
23298         (aarch64_expand_mov_immediate): Likewise.
23300 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23302         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23303         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23305 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23307         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23308         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23309         (struct machine_function): Add tbegin_p.
23310         (s390_canonicalize_comparison): Fold CC mode compares to
23311         conditional jump if possible.
23312         (s390_emit_jump): Return the emitted jump.
23313         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23314         Handle CCRAWmode compares.
23315         (s390_option_override): Default to -mhtm if available.
23316         (s390_reg_clobbered_rtx): Handle floating point regs as well.
23317         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23318         FPRs instead of df_regs_ever_live_p.
23319         (s390_optimize_nonescaping_tx): New function.
23320         (s390_init_frame_layout): Extend clobbered_regs array to cover
23321         FPRs as well.
23322         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23323         (s390_expand_tbegin): New function.
23324         (enum s390_builtin): New enum definition.
23325         (code_for_builtin): New array definition.
23326         (s390_init_builtins): New function.
23327         (s390_expand_builtin): New function.
23328         (TARGET_INIT_BUILTINS): Define.
23329         (TARGET_EXPAND_BUILTIN): Define.
23330         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23331         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23332         (s390_alc_comparison): Likewise.
23333         * config/s390/s390-modes.def: Add CCRAWmode.
23334         * config/s390/s390.h (processor_flags): Add PF_TX.
23335         (TARGET_CPU_HTM): Define macro.
23336         (TARGET_HTM): Define macro.
23337         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23338         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23339         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23340         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23341         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23342         (TBEGIN_MASK, TBEGINC_MASK): New constants.
23343         ("*cc_to_int"): Move up.
23344         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23345         constants other than 0.
23346         ("*ccraw_to_int"): New insn and splitter definition.
23347         ("tbegin", "tbegin_nofloat", "tbegin_retry")
23348         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23349         ("tx_assist"): New expander.
23350         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23351         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23352         * config/s390/s390.opt: Add -mhtm option.
23353         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23354         * config/s390/htmxlintrin.h: New file.
23355         * config/s390/htmintrin.h: New file.
23356         * config/s390/s390intrin.h: New file.
23357         * doc/extend.texi: Document htm builtins.
23358         * config.gcc: Add the new header files to extra_headers.
23360 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
23362         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23363         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23365 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
23366             Pat Haugen  <pthaugen@us.ibm.com>
23367             Peter Bergner  <bergner@vnet.ibm.com>
23369         * config/rs6000/power8.md: New.
23370         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23371         setting for power8 entry.
23372         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23373         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23374         test for Power4/Power5 only.
23375         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23376         support.
23377         (force_new_group): Adjust comment.
23378         * config/rs6000/rs6000.md: Include power8.md.
23380 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
23382         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23383         * config/arm/arm-protos.h (arm_max_conditional_execute): New
23384         declaration.
23385         (tune_params): Update comment.
23386         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23387         (arm_max_conditional_execute): New function.
23388         (thumb2_final_prescan_insn): Use max_insn_skipped and
23389         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23391 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
23393         PR tree-optimization/57705
23394         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23395         SSA_NAME step, provided that it is not defined inside the loop.
23396         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23397         (get_initial_def_for_induction): Handle SSA_NAME IV step.
23399 2013-06-25  Martin Jambor  <mjambor@suse.cz>
23401         PR middle-end/57670
23402         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23403         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23404         calls in the dump.
23405         (ipa_note_param_call): Initialize member_ptr flag.
23406         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23407         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23408         (ipa_write_indirect_edge_info): Stream member_ptr flag.
23409         (ipa_read_indirect_edge_info): Likewise.
23411 2013-06-25  Richard Biener  <rguenther@suse.de>
23413         PR middle-end/56977
23414         * passes.c (init_optimization_passes): Move pass_fold_builtins
23415         and pass_dce earlier with -Og.
23417 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
23419         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23420         <BIT_FIELD_REF>: Remove trailing TAB.
23421         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23422         remove blank line.
23424 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23426         PR tree-optimization/57358
23427         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23428         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23429         (ipa_analyze_params_uses): Generate pessimistic info when true.
23431 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23433         PR tree-optimization/57539
23434         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23435         global.inlined_to of the new node to it.  All callers changed.
23436         * ipa-inline-transform.c (clone_inlined_nodes): New variable
23437         inlining_into, pass it to cgraph_clone_node.
23438         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23439         ipa_free_edge_args_substructures.
23440         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23441         rdesc linked list.  Do not assert rdesc edges have inlined caller.
23442         Assert we have found an rdesc in the rdesc list.
23444 2013-06-24  Richard Biener  <rguenther@suse.de>
23446         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23447         (pointer_set_lookup): Declare.
23448         (class pointer_map): New template class implementing a
23449         generic pointer to T map.
23450         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23451         pointer_map<T>::contains, pointer_map<T>::insert,
23452         pointer_map<T>::traverse): New functions.
23453         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23454         (pointer_set_lookup): New function.
23455         (pointer_set_contains): Use pointer_set_lookup.
23456         (pointer_set_insert): Likewise.
23457         (insert_aux): Remove.
23458         (struct pointer_map_t): Embed a pointer_set_t.
23459         (pointer_map_create): Adjust.
23460         (pointer_map_destroy): Likewise.
23461         (pointer_map_contains): Likewise.
23462         (pointer_map_insert): Likewise.
23463         (pointer_map_traverse): Likewise.
23464         * tree-streamer.h (struct streamer_tree_cache_d): Use a
23465         pointer_map<unsigned> instead of a pointer_map_t.
23466         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23467         (streamer_tree_cache_lookup): Likewise.
23468         (streamer_tree_cache_create): Likewise.
23469         (streamer_tree_cache_delete): Likewise.
23470         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23471         pointer_map<unsigned> instead of a pointer_map_t.
23472         (lto_init_tree_ref_encoder): Adjust.
23473         (lto_destroy_tree_ref_encoder): Likewise.
23474         * lto-section-out.c (lto_output_decl_index): Likewise.
23475         (lto_record_function_out_decl_state): Likewise.
23476         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23478 2013-06-24  Richard Biener  <rguenther@suse.de>
23480         PR tree-optimization/57488
23481         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23483 2013-06-24  Alan Modra  <amodra@gmail.com>
23485         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23486         (gen_easy_altivec_constant): Likewise.
23487         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23488         easy_vector_constant_msb): Likewise.
23490 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
23492         PR target/57688
23493         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23494         add missing return true.
23496 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
23498         PR target/52483
23499         * config/sh/predicates.md (general_extend_operand): Invoke
23500         general_movsrc_operand for memory operands.
23501         (general_movsrc_operand): Allow reg+reg addressing, do not use
23502         general_operand for memory operands.
23504 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
23506         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
23507         when current target options does not apply.
23508         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23509         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23510         * config/i386/bmiintrin.h: Pass appropriate target
23511         attributes to header.
23512         * config/i386/mmintrin.h: Ditto.
23513         * config/i386/nmmintrin.h: Ditto.
23514         * config/i386/avx2intrin.h: Ditto.
23515         * config/i386/fxsrintrin.h: Ditto.
23516         * config/i386/tbmintrin.h: Ditto.
23517         * config/i386/xsaveintrin.h: Ditto.
23518         * config/i386/f16cintrin.h: Ditto.
23519         * config/i386/xtestintrin.h: Ditto.
23520         * config/i386/xsaveoptintrin.h: Ditto.
23521         * config/i386/bmi2intrin.h: Ditto.
23522         * config/i386/lzcntintrin.h: Ditto.
23523         * config/i386/smmintrin.h: Ditto.
23524         * config/i386/wmmintrin.h: Ditto.
23525         * config/i386/x86intrin.h: Remove all header include guards.
23526         * config/i386/prfchwintrin.h: Ditto.
23527         * config/i386/pmmintrin.h: Ditto.
23528         * config/i386/tmmintrin.h: Ditto.
23529         * config/i386/xmmintrin.h: Ditto.
23530         * config/i386/popcntintrin.h: Ditto.
23531         * config/i386/rdseedintrin.h: Ditto.
23532         * config/i386/ammintrin.h: Ditto.
23533         * config/i386/emmintrin.h: Ditto.
23534         * config/i386/immintrin.h: Remove all header include guards.
23535         * config/i386/fma4intrin.h: Ditto.
23536         * config/i386/lwpintrin.h: Ditto.
23537         * config/i386/xopintrin.h: Ditto.
23538         * config/i386/ia32intrin.h: Ditto.
23539         * config/i386/avxintrin.h: Ditto.
23540         * config/i386/rtmintrin.h: Ditto.
23541         * config/i386/fmaintrin.h: Ditto.
23542         * config/i386/mm3dnow.h: Ditto.
23544 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
23546         * common/config/i386/i386-common.c: Handle LZCNT.
23548 2013-06-22  Andi Kleen  <ak@linux.intel.com>
23550         * doc/extend.texi: Use __atomic_store_n instead of
23551         __atomic_store in HLE example.
23553 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
23555         * config/sh/sh.c: Remove <cstdlib> workaround.
23557 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23559         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
23561 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23563         * doc/extend.texi: Document that __atomic_clear and
23564           __atomic_test_and_set should only be used with bool.
23566 2013-06-20  Jan Hubicka  <jh@suse.cz>
23568         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23569         types_same_for_odr.
23570         * tree.c (decls_same_for_odr): New function.
23571         (same_for_edr): New function.
23572         (types_same_for_odr): New function.
23573         (get_binfo_at_offset): Use it.
23574         * tree.h (types_same_for_odr): Declare.
23576 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
23577             Jason Merrill  <jason@redhat.com>
23579         * system.h: Include <cstdlib> as well as <stdlib.h>.
23581 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
23583         PR target/57655
23584         * config/i386/i386.c (construct_container): Report error if
23585         long double is used with disabled x87 float returns.
23587 2013-06-20  Jan Hubicka  <jh@suse.cz>
23589         * lto-cgraph.c (input_symtab): Do not set cgraph state.
23591 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
23593         PR rtl-optimization/57425
23594         PR rtl-optimization/57569
23595         * alias.c (write_dependence_p): Remove parameters mem_mode and
23596         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
23597         Changed all callers.
23598         (canon_anti_dependence): Get comments and semantics in sync.
23599         Add parameter mem_canonicalized.  Changed all callers.
23600         * rtl.h (canon_anti_dependence): Update prototype.
23602 2013-06-20  Richard Biener  <rguenther@suse.de>
23604         * data-streamer-in.c (streamer_read_uhwi): Optimize single
23605         byte case, inline streamer_read_uchar and defer section
23606         overrun check.
23608 2013-06-20  Richard Biener  <rguenther@suse.de>
23610         PR tree-optimization/57584
23611         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23612         SSA names into the expanded expression that take part in
23613         abnormal coalescing.
23615 2013-06-19  Sharad Singhai  <singhai@google.com>
23617         * gcov.c (print_usage): Handle new option.
23618         (process_args): Ditto.
23619         (get_gcov_intermediate_filename): New function.
23620         (output_intermediate_file): New function.
23621         (output_gcov_file): New function
23622         (generate_results): Handle new option.
23623         (release_function): Relase demangled name.
23624         (read_graph_file): Handle demangled name.
23625         (output_lines): Ditto.
23626         * doc/gcov.texi: Document gcov intermediate format.
23628 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
23630         PR bootstrap/57604
23631         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23632         (lra_emit_add): Use the functions.  Add comment about Y as an
23633         address segment.
23635 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
23637         PR driver/57652
23638         * collect2.c (collect_atexit): New.
23639         (collect_exit): Delete.
23640         (main): Register collect_atexit with atexit.
23641         (collect_wait): Change collect_exit to exit.
23642         (do_wait): Same.
23643         * collect2.h (collect_exit): Delete.
23644         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23646 2013-06-19  Wei Mi  <wmi@google.com>
23648         PR rtl-optimization/57518
23649         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23650         if regno is used in paradoxical subreg.
23651         (update_equiv_regs): Check pdx_subregs[regno] before
23652         set a reg to be equivalent with a mem.
23654 2013-06-19  Matthias Klose  <doko@ubuntu.com>
23656         PR driver/57651
23657         * file-find.h (find_a_file): Add a mode parameter.
23658         * file-find.c (find_a_file): Likewise.
23659         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23660         with X_OK for the executables.
23661         * collect2.c (main): Call find_a_file with X_OK.
23663 2013-06-19  Steve Ellcey  <sellcey@mips.com>
23665         PR target/56942
23666         * config/mips/mips.md (casesi_internal_mips16_<mode>):
23667         Use NEXT_INSN instead of next_real_insn.
23669 2013-06-19  Jan Hubicka  <jh@suse.cz>
23671         * cgraph.h (const_value_known_p): Replace by ...
23672         (ctor_for_folding): .. this one.
23673         * cgraphunit.c (process_function_and_variable_attributes): Use it.
23674         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23675         * expr.c (expand_expr_real_1): Likewise.
23676         (string_constant): Likewise.
23677         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23678         * ipa.c (process_references): Likewise.
23679         (symtab_remove_unreachable_nodes): Likewise.
23680         * ipa-inline-analysis.c (param_change_prob): Likewise.
23681         * gimple-fold.c (canonicalize_constructor_val): Likewise.
23682         (get_base_constructor): Likwise.
23683         * varpool.c (varpool_remove_node): Likewise.
23684         (varpool_remove_initializer): LIkewise.
23685         (dump_varpool_node): LIkwise.
23686         (const_value_known_p): Rewrite to ...
23687         (ctor_for_folding): ... this one.
23689 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
23691         PR driver/57651
23692         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23693         PERSONALITY in $PATH derived prefixes.
23695 2013-06-19  Jeff Law  <law@redhat.com>
23697         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23698         in comment.
23700         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23701         (simplify_bitwise_binary): Use it to simpify certain binary ops on
23702         booleans.
23704 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
23706         * config/arm/vfp.md: Move VFP instruction classification documentation
23707         to ...
23708         * config/arm/arm.md: ... here.  Update instruction classification
23709         documentation.
23711 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
23713         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23714         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23715         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
23717 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
23719         PR target/57609
23720         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23721         with NEXT_INSN.  Use tablejump_p to check for jump table data
23722         insns.
23724 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
23726         PR c++/56544
23727         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23728         that now in C++ the value is correct per the C++ standards.
23730 2013-06-19  Richard Biener  <rguenther@suse.de>
23732         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23733         for global context.
23735 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23737         Revert:
23738         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23740         PR target/57609
23741         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23742         with next_active_insn.
23744 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
23746         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23747         functions are inlined during failures to flag an error.
23748         * tree-inline.c (expand_call_inline): Allow the error to be flagged
23749         in early inline pass.
23751 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
23753         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23754         in comments.
23756 2013-06-18  Julian Brown  <julian@codesourcery.com>
23758         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23759         Permit virtual register pre-reload if !strict.
23760         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23761         change.
23762         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23763         prototype.
23764         * config/arm/neon.md (movmisalign<mode>): Use
23765         neon_perm_struct_or_reg_operand instead of
23766         neon_struct_or_register_operand.
23767         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23768         neon_permissive_struct_operand instead of neon_struct_operand.
23769         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23770         neon_vector_mem_operand.
23771         * config/arm/predicates.md (neon_struct_operand): Adjust call to
23772         neon_vector_mem_operand.
23773         (neon_permissive_struct_operand): New.
23774         (neon_struct_or_register_operand): Rename to...
23775         (neon_perm_struct_or_reg_operand): This. Adjust call to
23776         neon_vector_mem_operand.
23778 2013-06-18  Richard Biener  <rguenther@suse.de>
23780         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23781         * lto-streamer.h: Include pointer-set.h.
23782         (struct lto_decl_slot): Remove.
23783         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23784         Remove next_index entry.
23785         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23786         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23787         (lto_init_tree_ref_encoder): Adjust.
23788         (lto_destroy_tree_ref_encoder): Likewise.
23789         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23790         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23791         (lto_output_decl_index): Adjust.
23792         (lto_new_out_decl_state): Likewise.
23793         (lto_record_function_out_decl_state): Likewise.
23794         * lto-streamer-out.c (copy_function): Likewise.
23796 2013-06-18  Richard Biener  <rguenther@suse.de>
23798         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23799         * cgraphunit.c: Include cfgloop.h.
23800         (init_lowered_empty_function): Initialize the loop tree.
23801         (assemble_thunk): Insert new BBs into loops.
23803 2013-06-18  Richard Biener  <rguenther@suse.de>
23805         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23806         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23807         the map from cache entry to cache index optional.
23808         (streamer_tree_cache_replace_tree): Adjust accordingly.
23809         (streamer_tree_cache_append): Likewise.
23810         (streamer_tree_cache_delete): Likewise.
23811         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23812         streamer cache map from cache entry to cache index.
23813         * lto-streamer-out.c (create_output_block): Adjust.
23815 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
23817         * config/arm/arm.md (attribute "insn"): Move multiplication and
23818         division attributes to...
23819         (attribute "type"): ... here.  Remove mult.
23820         (attribute "mul32"): New attribute.
23821         (attribute "mul64"): Add umaal.
23822         (*arm_mulsi3): Update attributes.
23823         (*arm_mulsi3_v6): Likewise.
23824         (*thumb_mulsi3): Likewise.
23825         (*thumb_mulsi3_v6): Likewise.
23826         (*mulsi3_compare0): Likewise.
23827         (*mulsi3_compare0_v6): Likewise.
23828         (*mulsi_compare0_scratch): Likewise.
23829         (*mulsi_compare0_scratch_v6): Likewise.
23830         (*mulsi3addsi): Likewise.
23831         (*mulsi3addsi_v6): Likewise.
23832         (*mulsi3addsi_compare0): Likewise.
23833         (*mulsi3addsi_compare0_v6): Likewise.
23834         (*mulsi3addsi_compare0_scratch): Likewise.
23835         (*mulsi3addsi_compare0_scratch_v6): Likewise.
23836         (*mulsi3subsi): Likewise.
23837         (*mulsidi3adddi): Likewise.
23838         (*mulsi3addsi_v6): Likewise.
23839         (*mulsidi3adddi_v6): Likewise.
23840         (*mulsidi3_nov6): Likewise.
23841         (*mulsidi3_v6): Likewise.
23842         (*umulsidi3_nov6): Likewise.
23843         (*umulsidi3_v6): Likewise.
23844         (*umulsidi3adddi): Likewise.
23845         (*umulsidi3adddi_v6): Likewise.
23846         (*smulsi3_highpart_nov6): Likewise.
23847         (*smulsi3_highpart_v6): Likewise.
23848         (*umulsi3_highpart_nov6): Likewise.
23849         (*umulsi3_highpart_v6): Likewise.
23850         (mulhisi3): Likewise.
23851         (*mulhisi3tb): Likewise.
23852         (*mulhisi3bt): Likewise.
23853         (*mulhisi3tt): Likewise.
23854         (maddhisi4): Likewise.
23855         (*maddhisi4tb): Likewise.
23856         (*maddhisi4tt): Likewise.
23857         (maddhidi4): Likewise.
23858         (*maddhidi4tb): Likewise.
23859         (*maddhidi4tt): Likewise.
23860         (divsi3): Likewise.
23861         (udivsi3): Likewise.
23862         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23863         (thumb2_mulsi_short_compare0): Likewise.
23864         (thumb2_mulsi_short_compare0_scratch): Likewise.
23865         * config/arm/arm1020e.md (1020mult1): Update attribute change.
23866         (1020mult2): Likewise.
23867         (1020mult3): Likewise.
23868         (1020mult4): Likewise.
23869         (1020mult5): Likewise.
23870         (1020mult6): Likewise.
23871         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23872         change.
23873         (cortex_a15_mult64): Likewise.
23874         (cortex_a15_sdiv): Likewise.
23875         (cortex_a15_udiv): Likewise.
23876         * config/arm/arm1026ejs.md (mult1): Update attribute change.
23877         (mult2): Likewise.
23878         (mult3): Likewise.
23879         (mult4): Likewise.
23880         (mult5): Likewise.
23881         (mult6): Likewise.
23882         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23883         (pj4_ir_div): Likewise.
23884         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23885         (11_mult2): Likewise.
23886         (11_mult3): Likewise.
23887         (11_mult4): Likewise.
23888         (11_mult5): Likewise.
23889         (11_mult6): Likewise.
23890         (11_mult7): Likewise.
23891         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23892         (cortex_a8_mla): Likewise.
23893         (cortex_a8_mull): Likewise.
23894         (cortex_a8_smulwy): Likewise.
23895         (cortex_a8_smlald): Likewise.
23896         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23897         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23898         (cortex_r4_mul_3): Likewise.
23899         (cortex_r4_mla_4): Likewise.
23900         (cortex_r4_mla_3): Likewise.
23901         (cortex_r4_smlald): Likewise.
23902         (cortex_r4_mull): Likewise.
23903         (cortex_r4_sdiv): Likewise.
23904         (cortex_r4_udiv): Likewise.
23905         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23906         (cortex_a7_idiv): Likewise.
23907         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
23908         (9_mult2): Likewise.
23909         (9_mult3): Likewise.
23910         (9_mult4): Likewise.
23911         (9_mult5): Likewise.
23912         (9_mult6): Likewise.
23913         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
23914         (cortex_a53_sdiv): Likewise.
23915         (cortex_a53_udiv): Likewise.
23916         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
23917         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
23918         (mp626_mult2): Likewise.
23919         (mp626_mult3): Likewise.
23920         (mp626_mult4): Likewise.
23921         * config/arm/fa526.md (526_mult1): Update attribute change.
23922         (526_mult2): Likewise.
23923         * config/arm/arm-generic.md (mult): Update attribute change.
23924         (mult_ldsched_strongarm): Likewise.
23925         (mult_ldsched): Likewise.
23926         (multi_cycle): Likewise.
23927         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23928         * config/arm/fa606te.md (606te_mult1): Update attribute change.
23929         (606te_mult2): Likewise.
23930         (606te_mult3): Likewise.
23931         (606te_mult4): Likewise.
23932         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23933         (cortex_a9_mac16): Likewise.
23934         (cortex_a9_multiply): Likewise.
23935         (cortex_a9_mac): Likewise.
23936         (cortex_a9_multiply_long): Likewise.
23937         * config/arm/fa626te.md (626te_mult1): Update attribute change.
23938         (626te_mult2): Likewise.
23939         (626te_mult3): Likewise.
23940         (626te_mult4): Likewise.
23942 2013-06-18  Richard Biener  <rguenther@suse.de>
23944         PR lto/57334
23945         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23947 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23949         PR target/57609
23950         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23951         with next_active_insn.
23953 2013-06-18  Alan Modra  <amodra@gmail.com>
23955         * config/rs6000/rs6000.h (enum data_align): New.
23956         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23957         (DATA_ABI_ALIGNMENT): Define.
23958         (CONSTANT_ALIGNMENT): Correct comment.
23959         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23960         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23962 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
23964         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23965         ATTRIBUTE_UNUSED marking.
23967 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
23969         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23970         alternative and update.
23971         (aarch64_dup_lanedi): Delete.
23972         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23973         * config/aarch64/aarch64-simd-builtins.def: Update.
23975 2013-06-17  Richard Biener  <rguenther@suse.de>
23977         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23978         (lto_input_scc): Declare.
23979         (lto_input_tree_1): Likewise.
23980         (struct lto_stats_d): Add num_tree_bodies_output and
23981         num_pickle_refs_output.
23982         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23983         (lto_read_tree_1): Split out from ...
23984         (lto_read_tree): ... this.
23985         (lto_input_scc): New function.
23986         (lto_input_tree_1): Split out from ...
23987         (lto_input_tree): ... this.  Handle LTO_tree_scc.
23988         (lto_data_in_create): Create the streamer cache without hashes.
23989         * lto-streamer-out.c (create_output_block): Create the streamer
23990         cache with hashes when not doing WPA.
23991         (lto_write_tree_1): Split out from ...
23992         (lto_write_tree): ... this.
23993         (get_symbol_initial_value): New function.
23994         (lto_output_tree_1): Split out from ...
23995         (lto_output_tree): ... this.  Write trees as series of SCCs
23996         using a DFS walk via DFS_write_tree.
23997         (struct sccs, struct scc_entry): New types.
23998         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23999         (DFS_write_tree_body): New function.
24000         (DFS_write_tree): Likewise.
24001         (hash_tree): Likewise.
24002         (scc_entry_compare): Likewise.
24003         (hash_scc): Likewise.
24004         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
24005         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
24006         TREE_CHAIN as regular reference.
24007         (streamer_read_integer_cst): Remove.
24008         (streamer_get_pickled_tree): Adjust.
24009         * tree-streamer-out.c (streamer_write_chain): Disable streaming
24010         of DECL_EXTERNALs in BLOCK_VARS for now.
24011         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
24012         reference.
24013         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
24014         Add hash value argument and record that if hashes are recorded
24015         in the cache.
24016         (streamer_tree_cache_insert_1): Adjust.
24017         (streamer_tree_cache_insert): Likewise.
24018         (streamer_tree_cache_insert_at): Rename to ...
24019         (streamer_tree_cache_replace_tree): ... this and adjust.
24020         (streamer_tree_cache_append): Adjust.
24021         (record_common_node): Likewise.
24022         (streamer_tree_cache_create): Add argument whether to
24023         record hash values together with trees.
24024         (streamer_tree_cache_delete): Adjust.
24025         * tree-streamer.h (struct streamer_tree_cache_d): Add
24026         vector of hashes.
24027         (streamer_read_integer_cst): Remove.
24028         (streamer_tree_cache_insert): Adjust.
24029         (streamer_tree_cache_append): Likewise.
24030         (streamer_tree_cache_insert_at): Rename to ...
24031         (streamer_tree_cache_replace_tree): ... this and adjust.
24032         (streamer_tree_cache_create): Add argument whether to record hashes.
24033         (streamer_tree_cache_get): Rename to ...
24034         (streamer_tree_cache_get_tree): ... this.
24035         (streamer_tree_cache_get_hash): New function.
24036         * tree.c (cache_integer_cst): New function.
24037         * tree.h (cache_integer_cst): Declare.
24038         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
24039         * lto-symtab.c (lto_varpool_replace_node): Only release
24040         DECL_INITIAL of non-prevailing decls.
24041         * varpool.c (varpool_remove_initializer): Do not release
24042         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
24044 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
24046         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
24047         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
24048         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
24049         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
24050         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
24051         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
24052         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
24053         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
24054         instead of TARGET_64BIT.
24055         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
24056         Require ISA_HAS_<D>DIV.
24058 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
24060         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
24061         (mips*-*-linux*): Move default with_llsc setting to where other
24062         defaults are set.
24063         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
24064         with_arch block.
24065         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
24066         Likewise.  Remove default with_tune setting.  Move default float
24067         setting to its own block.  Handle with_llsc in the same block as above.
24069 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
24071         PR rtl-optimization/57425
24072         PR rtl-optimization/57569
24073         * alias.c (write_dependence_p): Add new parameters mem_mode,
24074         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
24075         Changed all callers.
24076         (canon_anti_dependence): New function.
24077         * cse.c (check_dependence): Use canon_anti_dependence.
24078         * cselib.c (cselib_invalidate_mem): Likewise.
24079         * rtl.h (canon_anti_dependence): Declare.
24081 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
24083         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
24084         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
24085         ".set mips3" for 64-bit targets.
24087 2013-06-15  Dehao Chen  <dehao@google.com>
24089         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
24090         * gimple-low.c (gimple_check_call_matching_types): Likewise.
24091         (gimple_check_call_args): Likewise.
24092         * value-prof.c (check_ic_target): Likewise.
24093         * ipa-inline.c (early_inliner): Likewise.
24094         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
24095         * cgraph.c (cgraph_create_edge_1): Likewise.
24096         (cgraph_make_edge_direct): Likewise.
24098 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24100         PR target/57615
24101         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
24102         rs6000_output_move_128bit to handle emitting quad memory
24103         operations.  Set attribute length to 8 bytes.
24105 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
24107         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
24108         New pattern.
24109         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
24110         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
24111         (aarch64_<su>mlsl<mode>): Likewise.
24113 2013-06-14  Mike Stump  <mikestump@comcast.net>
24115         * Makefile.in (TARGET_H): Add insn-codes.h.
24117 2013-06-14  Alan Modra  <amodra@gmail.com>
24119         PR middle-end/57134
24120         PR middle-end/57586
24121         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
24122         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
24123         bitfield expansion when EXPAND_MEMORY.
24124         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
24126 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
24128         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24129         test for clearing quad memory on 32-bit later.
24131 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
24133         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
24134         (fold_negate_expr): Likewise.
24135         (fold_real_zero_addition_p): Handle vectors.
24136         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24138 2013-06-14  Alan Modra  <amodra@gmail.com>
24140         * varasm.c (force_const_mem): Revert 2013-06-07 change.
24142 2013-06-13  Jan Hubicka  <jh@suse.cz>
24144         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24145         Local comdats are not externally visible.
24146         * symtab.c (dump_symtab_base): Dump externally visible.
24147         (verify_symtab_base): Verify back links in the symtab hash.
24149 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
24151         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24152         CONVERT_EXPR as equal nodes.
24154 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
24156         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24158 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
24160         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24161         Generalize to complex and vector.
24162         * tree.c (build_all_ones_cst): New function.
24163         * tree.h (build_all_ones_cst): Declare it.
24165 2013-06-13  Alan Modra  <amodra@gmail.com>
24167         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24168         * config/rs6000/rs6000.md (signbittf2): New insn.
24169         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24170         (abstf2_internal, cmptf_internal2): Likewise.
24171         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24173 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
24174             Pat Haugen  <pthaugen@us.ibm.com>
24175             Peter Bergner  <bergner@vnet.ibm.com>
24177         * config/rs6000/rs6000.c (emit_load_locked): Add support for
24178         power8 byte, half-word, and quad-word atomic instructions.
24179         (emit_store_conditional): Likewise.
24180         (rs6000_expand_atomic_compare_and_swap): Likewise.
24181         (rs6000_expand_atomic_op): Likewise.
24183         * config/rs6000/sync.md (larx): Add new modes for power8.
24184         (stcx): Likewise.
24185         (AINT): New mode iterator to include TImode as well as normal
24186         integer modes on power8.
24187         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24188         that VSX registers are not considered.  Use AINT mode iterator
24189         instead of INT1 to allow inclusion of quad word atomic operations
24190         on power8.
24191         (load_locked<mode>): Likewise.
24192         (store_conditional<mode>): Likewise.
24193         (atomic_compare_and_swap<mode>): Likewise.
24194         (atomic_exchange<mode>): Likewise.
24195         (atomic_nand<mode>): Likewise.
24196         (atomic_fetch_<fetchop_name><mode>): Likewise.
24197         (atomic_nand_fetch<mode>): Likewise.
24198         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24199         each type.
24200         (ATOMIC): On power8, add QImode, HImode modes.
24201         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24202         modes that promote to SImode.
24203         (load_lockedti): Convert TImode arguments to PTImode, so that we
24204         get a guaranteed even/odd register pair.
24205         (load_lockedpti): Likewise.
24206         (store_conditionalti): Likewise.
24207         (store_conditionalpti): Likewise.
24209         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24210         atomic load/store instructions.
24211         (HSI): Likewise.
24213 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
24215         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24216         loads.
24217         (insn_count): New attribute, with most cases extracted from...
24218         (length): ...here.  Redefine most cases in terms of insn_count.
24219         (single_insn): Delete.
24220         (can_delay): Use insn_count to check for single instructions.
24221         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24222         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24223         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24224         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24225         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24226         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24227         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24228         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24229         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24230         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24231         rather than "length".
24232         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
24233         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24234         Use "insn_count" rather than "length".
24235         * config/mips/mips-dsp.md
24236         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24237         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24238         length attributes.
24240 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
24242         PR tree-optimization/57361
24243         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24245 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
24247         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24248         to split.
24249         (aarch64_simd_combine<mode>): New instruction expansion.
24250         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24251         function prototype.
24252         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24253         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24255 2013-06-12  Jan Hubicka  <jh@suse.cz>
24257         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24258         decl has when in streaming stage.
24259         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24260         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24262 2013-06-12  Roland Stigge  <stigge@antcom.de>
24264         PR target/57578
24265         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24267 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24269         PR tree-optimization/57537
24270         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24271         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24273 2013-06-12  Richard Biener  <rguenther@suse.de>
24275         * data-streamer.h (streamer_write_char_stream): CSE
24276         obs->current_pointer.
24277         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24278         streamer_write_char_stream manually and optimize the resulting loop.
24279         (streamer_write_hwi_stream): Likewise.
24281 2013-06-12  Jan Hubicka  <jh@suse.cz>
24283         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24284         * cgraph.h (varpool_create_empty_node): Declare.
24285         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24286         duplicated nodes.
24287         * symtab.c (symtab_unregister_node): Be lax about missin entries
24288         in node hash.
24289         (symtab_get_node): Update comment.
24290         * varpool.c (varpool_create_empty_node): Break out from ...
24291         (varpool_node_for_decl): ... here.
24292         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24294 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
24296         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24297         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24298         part.  Use straight-line flow at the end.
24299         <COMPONENT_REF>: Remove superfluous else.
24300         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24302 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24304         PR target/56564
24305         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24306         target hook even for !TREE_PUBLIC decls.  If no resolution info
24307         is available, return false for common and external decls.
24309 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24311         * config/rl78/constraints.md (U): New constraint.
24312         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24313         valloc attribute.
24315 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
24317         PR target/57589
24318         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24319         to allow returning address to AT_PLATFORM name.
24321 2013-06-11  Jan Hubicka  <jh@suse.cz>
24323         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24324         * cgraph.h (symtab_node_base): Add weakref flag.
24325         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24326         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24327         (output_weakrefs): Use weakref flag.
24328         * fold-const.c (simple_operand_p): Handle WEAK.
24329         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24330         * ipa.c (varpool_externally_visible_p): Drop weakref.
24331         (function_and_variable_visibility): Update comment; fix weakref
24332         sanity checks; do not clear DECL_WEAK on them.
24333         * lto-cgraph.c (lto_output_node): update.
24334         (lto_output_varpool_node): Update.
24335         (input_overwrite_node): Update.
24336         (input_node): Update.
24337         (input_varpool_node): Update.
24338         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24339         (lto_symtab_merge_symbols): Add sanity check.
24340         (lto_symtab_prevailing_decl): Do not special case weakrefs.
24341         * passes.c (rest_of_decl_compilation): Set static flag, too.
24342         * symtab.c (dump_symtab_base): Dump weakref.
24343         (verify_symtab_base): Sanity check weakrefs.
24344         (symtab_make_decl_local): Remove duplicated code.
24345         (symtab_alias_ultimate_target): Simplify.
24346         * varpool.c (varpool_create_variable_alias): Set weakref flag.
24348 2013-06-11  Tom de Vries  <tom@codesourcery.com>
24350         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
24351         sequence_vect == NULL.
24353 2013-06-11  DJ Delorie  <dj@redhat.com>
24355         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24356         (rl78_unwind_word_mode): New.
24358 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24360         * final.c (debug_prefix_maps): Make static.
24362 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24364         * function.c (initial_trampoline): Remove stray copy.
24366 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
24368         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24370 2013-06-11  Martin Jambor  <mjambor@suse.cz>
24372         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24373         within bounds at the beginning of the function.
24375 2013-06-11  Alan Modra  <amodra@gmail.com>
24377         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
24378         reporting.
24379         (get_named_section): Don't NULL !DECL_P decl.
24381 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
24383         * doc/invoke.texi (core-avx2): Document.
24384         (slm): Likewise.
24385         (atom): Updated with MOVBE.
24387 2013-06-11  Richard Biener  <rguenther@suse.de>
24389         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24391 2013-06-11  Anton Blanchard  <anton@samba.org>
24393         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24394         correct shift value in little-endian mode.
24396 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
24398         PR target/56564
24399         * varasm.c (get_variable_align): Move #endif to the right place.
24401 2013-06-10  Cary Coutant  <ccoutant@google.com>
24403         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24404         for hash so that hash table traversal order is deterministic.
24406 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24407             Pat Haugen  <pthaugen@us.ibm.com>
24408             Peter Bergner  <bergner@vnet.ibm.com>
24410         * config/rs6000/vector.md (GPR move splitter): Do not split moves
24411         of vectors in GPRS if they are direct moves or quad word load or
24412         store moves.
24414         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24415         declaration.
24416         (direct_move_p): Likewise.
24417         (quad_load_store_p): Likewise.
24419         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24420         classes into bins based on the physical register type.
24421         (reg_class_to_reg_type): Likewise.
24422         (IS_STD_REG_TYPE): Likewise.
24423         (IS_FP_VECT_REG_TYPE): Likewise.
24424         (reload_fpr_gpr): Arrays to determine what insn to use if we can
24425         use direct move instructions.
24426         (reload_gpr_vsx): Likewise.
24427         (reload_vsx_gpr): Likewise.
24428         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24429         information that is a simplification of register classes.  Also
24430         precalculate direct move reload helpers.
24431         (direct_move_p): New function to return true if the operation can
24432         be done as a direct move instruciton.
24433         (quad_load_store_p): New function to return true if the operation
24434         is a quad memory operation.
24435         (rs6000_legitimize_address): If quad memory, only allow register
24436         indirect for TImode addresses.
24437         (rs6000_legitimate_address_p): Likewise.
24438         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24439         (rs6000_reload_register_type): Likewise.
24440         (register_to_reg_type): Return register type.
24441         (rs6000_secondary_reload_simple_move): New helper function for
24442         secondary reload and secondary memory needed to identify anything
24443         that is a simple move, and does not need reloading.
24444         (rs6000_secondary_reload_direct_move): New helper function for
24445         secondary reload to identify cases that can be done with several
24446         instructions via the direct move instructions.
24447         (rs6000_secondary_reload_move): New helper function for secondary
24448         reload to identify moves between register types that can be done.
24449         (rs6000_secondary_reload): Add support for quad memory operations
24450         and for direct move.
24451         (rs6000_secondary_memory_needed): Likewise.
24452         (rs6000_debug_secondary_memory_needed): Change argument names.
24453         (rs6000_output_move_128bit): New function to return the move to
24454         use for 128-bit moves, including knowing about the various
24455         limitations of quad memory operations.
24457         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24458         memory operations.  call rs6000_output_move_128bit for the actual
24459         instruciton(s) to generate.
24460         (vsx_movti_64bit): Likewise.
24462         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24463         (UNSPEC_P8V_MTVSRWZ): Likewise.
24464         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24465         (UNSPEC_P8V_MTVSRD): Likewise.
24466         (UNSPEC_P8V_XXPERMDI): Likewise.
24467         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24468         (UNSPEC_FUSION_GPR): Likewise.
24469         (FMOVE128_GPR): New iterator for direct move.
24470         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24471         (f32_sv): Likewise.
24472         (f32_dm): Likewise.
24473         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24474         loads and direct move instructions.
24475         (zero_extendsidi2_lfiwzx): Likewise.
24476         (extendsidi2_lfiwax): Likewise.
24477         (extendsidi2_nocell): Likewise.
24478         (floatsi<mode>2_lfiwax): Likewise.
24479         (lfiwax): Likewise.
24480         (floatunssi<mode>2_lfiwzx): Likewise.
24481         (lfiwzx): Likewise.
24482         (fix_trunc<mode>_stfiwx): Likewise.
24483         (fixuns_trunc<mode>_stfiwx): Likewise.
24484         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24485         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24486         (parity<mode>2_cmpb): Set length/type attr.
24487         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24488         for 'mr.' to fast_compare.
24489         (bpermd_<mode>): Change type attr to popcnt.
24490         (p8_fmrgow_<mode>): New insns for power8 direct move support.
24491         (p8_mtvsrwz_1): Likewise.
24492         (p8_mtvsrwz_2): Likewise.
24493         (reload_fpr_from_gpr<mode>): Likewise.
24494         (p8_mtvsrd_1): Likewise.
24495         (p8_mtvsrd_2): Likewise.
24496         (p8_xxpermdi_<mode>): Likewise.
24497         (reload_vsx_from_gpr<mode>): Likewise.
24498         (reload_vsx_from_gprsf): Likewise.
24499         (p8_mfvsrd_3_<mode>): LIkewise.
24500         (reload_gpr_from_vsx<mode>): Likewise.
24501         (reload_gpr_from_vsxsf): Likewise.
24502         (p8_mfvsrd_4_disf): Likewise.
24503         (multi-word GPR splits): Do not split direct moves or quad memory
24504         operations.
24506 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
24508         * tree-into-ssa.c (interesting_blocks): Make static.
24510 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
24512         PR target/56564
24513         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24514         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24515         Use DATA_ABI_ALIGNMENT for that case instead if defined.
24516         (get_variable_align): New function.
24517         (get_variable_section, emit_bss, emit_common,
24518         assemble_variable_contents, place_block_symbol): Use
24519         get_variable_align instead of DECL_ALIGN.
24520         (assemble_noswitch_variable): Add align argument, use it
24521         instead of DECL_ALIGN.
24522         (assemble_variable): Adjust caller.  Use get_variable_align
24523         instead of DECL_ALIGN.
24524         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24525         caller.
24526         (DATA_ABI_ALIGNMENT): Define.
24527         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24528         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
24529         opt is false, only return the psABI mandated alignment increase.
24530         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24531         (DATA_ABI_ALIGNMENT): ... this.
24532         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24533         (DATA_ABI_ALIGNMENT): ... this.
24534         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24535         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24536         (DATA_ABI_ALIGNMENT): ... this.
24537         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24538         * doc/tm.texi: Regenerated.
24540 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
24542         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24543         cmp_code to construct REG_EQUAL note.
24545 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
24547         PR target/57568
24548         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24549         that operands[2] doesn't overlap with operands[0].
24551 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
24552             Jan Hubicka  <jh@suse.cz>
24554         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24555         hack to mark symbols as used.
24557 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
24559         PR rtl-optimization/57559
24560         * lra-constraints.c (process_alt_operands): Don't discourage
24561         memory with known offset for offsetable memory constraint.
24562         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24564 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
24566         * varasm.c (struct oc_local_state): Reorder fields.
24567         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24568         and adjust accordingly.
24569         (output_constructor): Reorder initialization code and adjust call to
24570         output_constructor_bitfield.
24572 2013-06-07  Jan Hubicka  <jh@suse.cz>
24574         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24576 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
24578         * tree-object-size.c (unknown): Make const.
24580 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24582         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24583         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24584         for last alternative in the cpu_facility attribute.
24586 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24588         PR target/56315
24589         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24590         (xordi3): Change operand 2 constraint to arm_xordi_operand.
24591         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24592         * config/arm/constraints.md (Dg): New constraint.
24593         * config/arm/neon.md (xordi3_neon): Remove.
24594         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24595         * config/arm/predicates.md (arm_xordi_operand): New predicate.
24597 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24599         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24600         Clean up alternatives.
24602 2013-06-07  Alan Modra  <amodra@gmail.com>
24604         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24605         va_list_gpr_size.
24607 2013-06-07  Alan Modra  <amodra@gmail.com>
24609         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24611 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24613         * config/arm/constraints.md (Df): New constraint.
24614         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24615         Correct length attribute for last two alternatives.
24617 2013-06-07  Alan Modra  <amodra@gmail.com>
24619         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24620         override user -mfp-in-toc.
24621         (offsettable_ok_by_alignment): Consider just the current access
24622         rather than the whole object, unless BLKmode.  Handle
24623         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24624         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24625         for -mcmodel=medium.
24626         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24627         override user -mfp-in-toc or -msum-in-toc.  Default to
24628         -mno-fp-in-toc for -mcmodel=medium.
24630 2013-06-06  DJ Delorie  <dj@redhat.com>
24632         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24633         TARGET_VALID_POINTER_MODE.
24635 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24636             Pat Haugen  <pthaugen@us.ibm.com>
24637             Peter Bergner  <bergner@vnet.ibm.com>
24639         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24640         Document new power8 builtins.
24642         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24643         condition code register, to allow 128-bit logical operations to be
24644         done in the VSX or GPR registers.
24645         (nor<mode>3): Use the canonical form for nor.
24646         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24647         vclz*, and vpopcnt* vector instructions.
24648         (nand<mode>3): Likewise.
24649         (orc<mode>3): Likewise.
24650         (clz<mode>2): LIkewise.
24651         (popcount<mode>2): Likewise.
24653         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24654         that only the GPRs are recognized.
24656         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24657         support for new power8 builtins.
24659         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24660         builtin functions.
24661         (xscvdpspn): Likewise.
24662         (vclz): Likewise.
24663         (vclzb): Likewise.
24664         (vclzh): Likewise.
24665         (vclzw): Likewise.
24666         (vclzd): Likewise.
24667         (vpopcnt): Likewise.
24668         (vpopcntb): Likewise.
24669         (vpopcnth): Likewise.
24670         (vpopcntw): Likewise.
24671         (vpopcntd): Likewise.
24672         (vgbbd): Likewise.
24673         (vmrgew): Likewise.
24674         (vmrgow): Likewise.
24675         (eqv): Likewise.
24676         (eqv_v16qi3): Likewise.
24677         (eqv_v8hi3): Likewise.
24678         (eqv_v4si3): Likewise.
24679         (eqv_v2di3): Likewise.
24680         (eqv_v4sf3): Likewise.
24681         (eqv_v2df3): Likewise.
24682         (nand): Likewise.
24683         (nand_v16qi3): Likewise.
24684         (nand_v8hi3): Likewise.
24685         (nand_v4si3): Likewise.
24686         (nand_v2di3): Likewise.
24687         (nand_v4sf3): Likewise.
24688         (nand_v2df3): Likewise.
24689         (orc): Likewise.
24690         (orc_v16qi3): Likewise.
24691         (orc_v8hi3): Likewise.
24692         (orc_v4si3): Likewise.
24693         (orc_v2di3): Likewise.
24694         (orc_v4sf3): Likewise.
24695         (orc_v2df3): Likewise.
24697         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24698         allow power8 quad mode in 64-bit.
24699         (rs6000_builtin_vectorized_function): Add support to vectorize
24700         ISA 2.07 count leading zeros, population count builtins.
24701         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24702         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24703         (builtin_function_type): Add vgbbd builtin function which takes an
24704         unsigned argument.
24705         (altivec_expand_vec_perm_const): Add support for new power8 merge
24706         instructions.
24708         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24709         that does not include TImdoe for use with 32-bit.
24710         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24711         instructions.
24712         (UNSPEC_VSX_CVDPSPN): Likewise.
24713         (vsx_xscvdpspn): Likewise.
24714         (vsx_xscvspdpn): Likewise.
24715         (vsx_xscvdpspn_scalar): Likewise.
24716         (vsx_xscvspdpn_directmove): Likewise.
24717         (vsx_and<mode>3): Split logical operations into 32-bit and
24718         64-bit. Add support to do logical operations on TImode as well as
24719         VSX vector types.  Allow logical operations to be done in either
24720         VSX registers or in general purpose registers in 64-bit mode.  Add
24721         splitters if GPRs were used. For AND, add clobber of CCmode to
24722         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
24723         encoding.
24724         (vsx_and<mode>3_32bit): Likewise.
24725         (vsx_and<mode>3_64bit): Likewise.
24726         (vsx_ior<mode>3): Likewise.
24727         (vsx_ior<mode>3_32bit): Likewise.
24728         (vsx_ior<mode>3_64bit): Likewise.
24729         (vsx_xor<mode>3): Likewise.
24730         (vsx_xor<mode>3_32bit): Likewise.
24731         (vsx_xor<mode>3_64bit): Likewise.
24732         (vsx_one_cmpl<mode>2): Likewise.
24733         (vsx_one_cmpl<mode>2_32bit): Likewise.
24734         (vsx_one_cmpl<mode>2_64bit): Likewise.
24735         (vsx_nor<mode>3): Likewise.
24736         (vsx_nor<mode>3_32bit): Likewise.
24737         (vsx_nor<mode>3_64bit): Likewise.
24738         (vsx_andc<mode>3): Likewise.
24739         (vsx_andc<mode>3_32bit): Likewise.
24740         (vsx_andc<mode>3_64bit): Likewise.
24741         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24742         and xxlorc instructions.
24743         (vsx_eqv<mode>3_64bit): Likewise.
24744         (vsx_nand<mode>3_32bit): Likewise.
24745         (vsx_nand<mode>3_64bit): Likewise.
24746         (vsx_orc<mode>3_32bit): Likewise.
24747         (vsx_orc<mode>3_64bit): Likewise.
24749         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24751         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24752         instruction.
24753         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24754         (p8_vmrgow): Likewise.
24755         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24756         GPRs to be split under VSX.
24757         (p8v_clz<mode>2): Add power8 count leading zero support.
24758         (p8v_popcount<mode>2): Add power8 population count support.
24759         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24760         support.
24762         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24763         instruction.
24765         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24766         builtin functions.
24767         (vec_nand): Likewise.
24768         (vec_vclz): Likewise.
24769         (vec_vclzb): Likewise.
24770         (vec_vclzd): Likewise.
24771         (vec_vclzh): Likewise.
24772         (vec_vclzw): Likewise.
24773         (vec_vgbbd): Likewise.
24774         (vec_vmrgew): Likewise.
24775         (vec_vmrgow): Likewise.
24776         (vec_vpopcnt): Likewise.
24777         (vec_vpopcntb): Likewise.
24778         (vec_vpopcntd): Likewise.
24779         (vec_vpopcnth): Likewise.
24780         (vec_vpopcntw): Likewise.
24782 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24784         PR rtl-optimization/57468
24785         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24786         spilled pseudos.
24788 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24790         PR rtl-optimization/57459
24791         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24792         type when setting live regs.
24794 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24796         * config/s390/s390.opt (mlra): New option.
24797         * config/s390/s390.c (s390_decompose_address): Check displacement
24798         for all registers for LRA.
24799         (s390_secondary_reload): Don't used secondary reloads for LRA.
24800         (s390_lra_p): New function.
24801         (TARGET_LRA_P): Define.
24802         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24803         of attribute cpu_facility to zarch for the last alternative.
24804         (*cmpmem_short): Ditto.
24806 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24808         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24809         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
24810         (arm_expand_prologue): Likewise.
24812 2013-06-06  Teresa Johnson  <tejohnson@google.com>
24814         PR c++/53743
24815         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24816         as this is now done by redirect_edge_and_branch_force.
24817         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24818         barriers, and fix interaction with splitting.
24819         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24820         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24821         reflect changes made in the routine.
24822         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24823         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24824         since this is called in cfglayout mode, and replace partition fixup
24825         with assert as that is now done by force_nonfallthru_and_redirect.
24826         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24827         already be marked with region crossing note.
24828         (insert_section_boundary_note): Make non-static, gate on flag
24829         has_bb_partition, rewrite to also check for multiple partitions.
24830         (rest_of_handle_reorder_blocks): Remove call to
24831         insert_section_boundary_note, now done later during free_cfg.
24832         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24833         * bb-reorder.h (insert_section_boundary_note): Declare.
24834         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24835         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24836         invoke insert_section_boundary_note.
24837         (try_redirect_by_replacing_jump): Remove unnecessary
24838         check for region crossing note.
24839         (fixup_partition_crossing): New function.
24840         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24841         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24842         in non-cfglayout mode.
24843         (force_nonfallthru_and_redirect): Fixup partition boundaries,
24844         remove old code that tried to do this. Emit barrier correctly
24845         when we are in cfglayout mode.
24846         (last_bb_in_partition): New function.
24847         (rtl_split_edge): Correctly fixup partition boundaries.
24848         (commit_one_edge_insertion): Remove old code that tried to
24849         fixup region crossing edge since this is now handled in
24850         split_block, and set up insertion point correctly since
24851         block may now end in a jump.
24852         (verify_hot_cold_block_grouping): Guard against checking when not in
24853         linearized RTL mode.
24854         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24855         notes.
24856         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24857         rtl_verify_flow_info, so not called in cfglayout mode.
24858         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24859         (fixup_reorder_chain): Remove old code that attempted to fixup region
24860         crossing note as this is now handled in force_nonfallthru_and_redirect.
24861         (duplicate_insn_chain): Don't duplicate switch section notes.
24862         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24863         note.
24864         * basic-block.h (emit_barrier_after_bb): Declare.
24866 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24868         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24869         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24870         arm_usatsihi): Adjust alternatives for arm_restrict_it.
24872 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24874         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24875         where appropriate.
24876         * config/arm/ldmstm.md: Regenerate.
24878 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24880         * config/arm/sync.md (atomic_loaddi_1):
24881         Disable predication for arm_restrict_it.
24882         (arm_load_exclusive<mode>): Likewise.
24883         (arm_load_exclusivesi): Likewise.
24884         (arm_load_exclusivedi): Likewise.
24885         (arm_load_acquire_exclusive<mode>): Likewise.
24886         (arm_load_acquire_exclusivesi): Likewise.
24887         (arm_load_acquire_exclusivedi): Likewise.
24888         (arm_store_exclusive<mode>): Likewise.
24889         (arm_store_exclusive<mode>): Likewise.
24890         (arm_store_release_exclusivedi): Likewise.
24891         (arm_store_release_exclusive<mode>): Likewise.
24893 2013-06-06  Richard Biener  <rguenther@suse.de>
24895         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24896         after LTO_null.
24897         (lto_tag_is_tree_code_p): Adjust.
24898         (lto_tag_is_gimple_code_p): Likewise.
24899         (lto_gimple_code_to_tag): Likewise.
24900         (lto_tag_to_gimple_code): Likewise.
24901         (lto_tree_code_to_tag): Likewise.
24902         (lto_tag_to_tree_code): Likewise.
24903         * data-streamer.h (streamer_write_hwi_in_range): Use
24904         uhwi streaming to stream the normalized range.
24905         (streamer_read_hwi_in_range): Likewise.
24907 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24909         * config/arm/arm.md (enabled_for_depr_it): New attribute.
24910         (predicable_short_it): Likewise.
24911         (predicated): Likewise.
24912         (enabled): Handle above.
24913         (define_cond_exec): Set predicated attribute to yes.
24915 2013-06-05  Mike Stump  <mikestump@comcast.net>
24917         * gdbinit.in (__FUNCTION__): Add.
24919 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
24921         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24922         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24924 2013-06-05  Jan Hubicka  <jh@suse.cz>
24926         * varasm.c (mark_decl_referenced): Revert the removal until targets
24927         are fixed.
24929 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
24931         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24932         instead of mark_decl_referenced.
24934 2013-06-05  Jan Hubicka  <jh@suse.cz>
24936         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24937         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24938         and symtab_used_from_object_file_p.
24939         (cgraph_make_node_local_1): Clear forced_by_abi.
24940         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24941         * cgraph.h (symtab_node_base): Add forced_by_abi.
24942         (decide_is_variable_needed): Remove.
24943         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24944         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24945         (decide_is_symbol_needed): ... this one; handle symbols in general;
24946         always analyze virtuals; honnor forced_by_abi.
24947         (cgraph_finalize_function): Update.
24948         (varpool_finalize_decl): Update.
24949         (symbol_defined_and_needed): Remove.
24950         (analyze_functions): Update.
24951         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24952         output_refs, input_overwrite_node): Handle forced_by_abi.
24953         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24954         (address_taken_from_non_vtable_p): ... this one.
24955         (comdat_can_be_unshared_p_1): New function.
24956         (cgraph_comdat_can_be_unshared_p): Rename to ...
24957         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24958         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24959         (function_and_variable_visibility): Clear forced_by_abi as needed.
24960         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24961         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24962         * symtab.c (dump_symtab_base): Dump forced_by_abi.
24963         * varpool.c (decide_is_variable_needed): Remove.
24965 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24967         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24968         (arm_option_override): Override arm_restrict_it where appropriate.
24969         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24970         * config/arm/arm.opt (mrestrict-it): New command-line option.
24971         * doc/invoke.texi: Document -mrestrict-it.
24973 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24975         * tsan.c (tsan_atomic_table): Make const.
24977 2013-06-05  Richard Biener  <rguenther@suse.de>
24979         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24980         index associated with the tree we are supposed to replace.
24981         * tree-streamer-out.c (pack_ts_base_value_fields): Output
24982         TREE_ASM_WRITTEN as zero for everything but SSA names.
24984 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24986         * tree-ssa-structalias.c (call_stmt_vars): Make static.
24988 2013-06-04  Jan Hubicka  <jh@suse.cz>
24990         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24991         (input_node, input_varpool_node): Handle correctly external same
24992         body aliases.
24993         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24994         nodes at ltrans stage.
24996 2013-06-04  Jan Hubicka  <jh@suse.cz>
24998         * ipa-inline.c (update_caller_keys): Fix availability test.
24999         (update_callee_keys): Likewise.
25000         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
25001         to follow ELF standard.
25003 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
25005         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
25006         (mips64r5900el-*-elf*): New configurations.
25007         * config/mips/mips-cpus.def (r5900): New processor.
25008         * config/mips/mips-tables.opt: Regenerate.
25009         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
25010         (mips_issue_rate): Handle PROCESSOR_R5900.
25011         (mips_reorg_process_insns): Force reorder mode for the R5900.
25012         * config/mips/mips.h (TARGET_MIPS5900): Define.
25013         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
25014         TARGET_MIPS5900.
25015         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
25016         TARGET_MIPS5900.
25017         * config/mips/mips.md (processor): Add r5900.
25018         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
25020 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25022         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
25023         into function to generate MOVI instruction.
25024         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
25025         (aarch64_preferred_simd_mode): Turn into wrapper.
25026         (aarch64_output_scalar_simd_mov_immediate): New function.
25027         * config/aarch64/aarch64-protos.h: Add prototype for above.
25029 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25031         * config/aarch64/aarch64.c (simd_immediate_info): Remove
25032         element_char member.
25033         (sizetochar): Return signed char.
25034         (aarch64_simd_valid_immediate): Remove elchar and other
25035         unnecessary variables.
25036         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
25037         Calculate element_char as required.
25038         * config/aarch64/aarch64-protos.h: Update and move prototype
25039         for aarch64_output_simd_mov_immediate.
25040         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
25041         Update arguments.
25043 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25045         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
25046         information completed by aarch64_simd_valid_immediate.
25047         (aarch64_legitimate_constant_p): Update arguments.
25048         (aarch64_simd_valid_immediate): Work with struct rather than many
25049         pointers.
25050         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
25051         (aarch64_simd_make_constant): Update arguments.
25052         (aarch64_output_simd_mov_immediate): Work with struct rather than
25053         many pointers.  Output immediate directly rather than as operand.
25054         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25055         Update prototype.
25056         * config/aarch64/constraints.md (Dn): Update arguments.
25058 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25060         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
25061         longer static.
25062         (aarch64_simd_immediate_valid_for_move): Remove.
25063         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
25064         (aarch64_simd_make_constant): Update call.
25065         (aarch64_output_simd_mov_immediate): Update call.
25066         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25067         Add prototype.
25068         * config/aarch64/constraints.md (Dn): Update call.
25070 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25072         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
25073         return type to bool for prototype.
25074         (aarch64_legitimate_constant_p): Check for true instead of not -1.
25075         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
25076         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
25078 2013-06-04  Catherine Moore  <clm@codesourcery.com>
25080         * config/mips/mips.opt (meva): New.
25081         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
25082         (ASM_SPEC): Handle -meva.
25083         * doc/invoke.texi (meva):  Document.
25085 2013-06-04  Alan Modra  <amodra@gmail.com>
25087         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
25088         constant output.
25090 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25092         * rtl.def: Add extra fourth optional field to define_cond_exec.
25093         * gensupport.c (process_one_cond_exec): Process attributes from
25094         define_cond_exec.
25095         * doc/md.texi: Document fourth field in define_cond_exec.
25097 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
25099         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
25100         out the processing order as in store_bit_field_1.
25102 2013-06-04  Jan Hubicka  <jh@suse.cz>
25104         PR middle-end/57500
25105         * cgraphunit.c (cgraph_process_same_body_aliases): Create
25106         non-VAR_DECL node if it does not exist yet.
25108 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
25110         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
25111         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
25112         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
25113         target_cpu_default setting.
25115 2013-06-03  Teresa Johnson  <tejohnson@google.com>
25117         * dumpfile.c (opt_info_switch_p): Change -fopt-info
25118         default to -fopt-info=optimized instead of all.
25119         * doc/invoke.texi: Ditto.
25120         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
25121         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
25122         (execute_vect_slp): Emit BB vectorization success under
25123         MSG_OPTIMIZED_LOCATIONS.
25124         * tree-vect-slp.c (vect_slp_transform_bb): Change
25125         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25126         * tree-vect-loop.c (vect_transform_loop): Ditto.
25128 2013-06-03  Jason Merrill  <jason@redhat.com>
25130         PR c++/57415
25131         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25132         Use TARGET_EXPR for C++.
25134 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
25136         PR rtl-optimization/57268
25137         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25138         if DEBUG_INSN_P (insn).
25140         Reapply
25141         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
25143         PR rtl-optimization/57268
25144         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25145         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25147 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25149         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25150         (ix86_avoid_lea_for_addr): Likewise.
25151         (exact_dependency_1): Likewise.
25152         (ix86_adjust_cost): Likewise.
25153         (swap_top_of_ready_list): Fix formatting and !reload_completed check
25154         removed.
25155         (do_reorder_for_imul): Fix typo, formatting and
25156         !reload_completed check removed.
25157         (ix86_sched_reorder): Fix typo and formatting.
25158         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25159         list.
25161 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
25163         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25165 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
25167         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25168         <STRING_CST>: Likewise.
25169         <VECTOR_CST>: Likewise.
25171 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
25172             Mikael Morin  <mikael@gcc.gnu.org>
25174         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25175         * config.in: Regenerated.
25176         * configure: Regenerated.
25178 2013-06-01  Jan Hubicka  <jh@suse.cz>
25180         PR middle-end/57366
25181         * cgraphunit.c (compile): When weakref is not supported,
25182         set up transparent aliases before final output pass.
25183         * varasm.c (assemble_alias): Do not try to do it here.
25185 2013-06-01  Jan Hubicka  <jh@suse.cz>
25187         PR middle-end/57467
25188         * passes.c (for_per_function): Skip unanalyzed functions.
25190 2013-06-01  Jan Hubicka  <jh@suse.cz>
25192         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25193         (lto_symtab_merge_symbols_1): ... this one.
25194         (lto_symtab_merge_cgraph_nodes): Rename to ...
25195         (lto_symtab_merge_symbols): ... this one; simplify.
25196         * cgraph.c (same_body_aliases_done): Rename to ...
25197         (cpp_implicit_aliases_done): ... this one.
25198         (cgraph_create_function_alias): Update.
25199         (cgraph_same_body_alias): Update.
25200         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25201         (verify_edge_corresponds_to_fndecl): Simplify.
25202         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25203         (cgraph_node): Remove same_body_alias.
25204         (varpool_node): Remove alias_of and extra_name_alias.
25205         (same_body_aliases_done): Rename to ..
25206         (cpp_implicit_aliases_done): ... this one.
25207         (symtab_alias_ultimate_target): Add default parameter.
25208         (symtab_resolve_alias): New function.
25209         (fixup_same_cpp_alias_visibility): Declare.
25210         (cgraph_function_node): Add default parameter.
25211         (cgraph_node_asm_name): Likewise.
25212         (cgraph_function_or_thunk_node): Add default parameter; do
25213         not ICE when it is NULL.
25214         (varpool_variable_node): Likewise.
25215         * tree-emutls.c (create_emultls_var): Update.
25216         (ipa_lower_emutls): Update.
25217         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25218         (cgraph_reset_node): Reset alias info.
25219         (cgraph_finalize_function): Update.
25220         (fixup_same_cpp_alias_visibility): Move to symtab.c.
25221         (analyze_function): Simplify.
25222         (cgraph_process_same_body_aliases): Simplify.
25223         (analyze_functions): Fixup same body aliases.
25224         (handle_alias_pairs): Simplify.
25225         (assemble_thunk): Update.
25226         (assemble_thunks_and_aliases): Update.
25227         (output_weakrefs): Rewrite.
25228         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25229         (lto_output_varpool_node): Likewise.
25230         (compute_ltrans_boundary): Remve assert.
25231         (get_alias_symbol): New functoin.
25232         (input_node): Rewrite alias handling.
25233         (input_varpool_node): Likewise.
25234         * ipa-pure-const.c (propagate_pure_const): Fix formating.
25235         * ipa.c (process_references): Handle weakrefs correctly.
25236         (symtab_remove_unreachable_nodes): Likewise.
25237         * trans-mem.c (get_cg_data): Update.
25238         (ipa_tm_create_version_alias): Update.
25239         (ipa_tm_execute): Update.
25240         * symtab.c (dump_symtab_base): Dump aliases.
25241         (verify_symtab_base): Verify aliases.
25242         (symtab_node_availability): New function.
25243         (symtab_alias_ultimate_target): Simplify.
25244         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25245         handle all the fixup cases.
25246         (symtab_resolve_alias): New function.
25247         * passes.c (ipa_write_summaries): Handle weakrefs.
25248         * varpool.c (varpool_analyze_node): Simplify.
25249         (assemble_aliases): Update.
25250         (varpool_create_variable_alias): Simplify.
25251         (varpool_extra_name_alias): Simplify.
25252         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25253         (lto_symtab_merge_symbols): ... this one.
25255 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
25257         Revert
25258         PR rtl-optimization/57268
25259         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25260         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25262 2013-06-01  Tobias Burnus  <burnus@net-b.de>
25264         Partially reverted:
25265         2013-05-31  Tobias Burnus  <burnus@net-b.de>
25267         PR middle-end/57073
25268         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25269         further up.
25271 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
25273         PR rtl-optimization/57268
25274         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25275         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25277 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25279         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25280         unordered comparison operators when -fno-trapping-math is in effect
25281         on the e500.
25282         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25283         and implement unordered comparison operators properly on the e500.
25285 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25287         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25288         for constant scalar integers.
25289         (simplify_relational_operation_1): Likewise.
25291 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
25293         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25294         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
25295         Fix comment.
25297 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25298             Igor Zamyatin  <igor.zamyatin@intel.com>
25300         Silvermont (SLM) architecture performance tuning.
25301         * config/i386/i386.h (enum ix86_tune_indices): Add
25302         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25303         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25305         * config/i386/i386.c (initial_ix86_tune_features)
25306         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25307         (ix86_lea_outperforms): Handle Silvermont tuning.
25308         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25309         call.
25310         (ix86_use_lea_for_mov): Likewise.
25311         (ix86_avoid_lea_for_addr): Likewise.
25312         (ix86_lea_for_add_ok): Likewise.
25313         (exact_dependency_1): New function.
25314         (exact_store_load_dependency): Likewise.
25315         (ix86_adjust_cost): Handle Silvermont tuning.
25316         (do_reoder_for_imul): Likewise.
25317         (swap_top_of_ready_list): New function.
25318         (ix86_sched_reorder): Changed to handle Silvermont tuning.
25320         * config/i386/i386.md (peepholes that split memory operand in fp
25321         converts): New.
25323 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25325         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25326         Remove un-necessary braces.
25328 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25330         * config/aarch64/aarch64.c (aarch64_classify_symbol):
25331         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25333 2013-05-31  Tobias Burnus  <burnus@net-b.de>
25335         PR middle-end/57073
25336         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25338 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25340         PR target/56315
25341         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25342         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25343         * config/arm/neon.md (iordi3_neon): Remove.
25344         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25345         * config/arm/predicates.md (imm_for_neon_logic_operand):
25346         Move to earlier in the file.
25347         (neon_logic_op2): Likewise.
25348         (arm_iordi_operand_neon): New predicate.
25350 2013-05-31  Richard Biener  <rguenther@suse.de>
25352         PR tree-optimization/57478
25353         PR tree-optimization/57453
25354         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25355         are life as well.
25357 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25359         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25360         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25362 2013-05-30  Tobias Burnus  <burnus@net-b.de>
25363             Thomas Koenig  <tkoenig@gcc.gnu.org>
25365         PR middle-end/57073
25366         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25367         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25369 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
25371         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25373 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
25375         * target.def (register_usage_leveling_p): New hook.
25376         * targhooks.c (default_register_usage_leveling_p): New.
25377         * targhooks.h (default_register_usage_leveling_p): New prototype.
25378         * lra-assigns.c (register_usage_leveling_p): Use the hook.
25379         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25380         * doc/tm.texi: Update.
25381         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25383 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
25385         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25386         (*insv_reg<mode>): New define_insn.
25388 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
25390         PR rtl-optimization/57439
25391         * postreload.c (move2add_valid_value_p): Check that we have
25392         a zero subreg_regno_offset when accessing the register in
25393         the requested mode.
25395 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25396             Igor Zamyatin  <igor.zamyatin@intel.com>
25398         Silvermont (SLM) architecture pipeline model, tuning and
25399         insn selection.
25400         * config.gcc: Add slm config options and target.
25402         * config/i386/slm.md: New.
25404         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25406         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
25407         PROCESSOR_SLM.
25408         (ix86_target_macros_internal): Likewise.
25410         * config/i386/i386.c (slm_cost): New cost.
25411         (m_SLM): New macro flag.
25412         (initial_ix86_tune_features): Set m_SLM.
25413         (x86_accumulate_outgoing_args): Likewise.
25414         (x86_arch_always_fancy_math_387): Likewise.
25415         (processor_target_table): Add slm cost.
25416         (cpu_names): Add slm cpu name.
25417         (x86_option_override_internal): Set SLM ISA.
25418         (ix86_issue_rate): New case PROCESSOR_SLM.
25419         (ia32_multipass_dfa_lookahead): Likewise.
25420         (fold_builtin_cpu): Add slm.
25422         * config/i386/i386.h (TARGET_SLM): New target macro.
25423         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25424         (processor_type): Add PROCESSOR_SLM.
25426         * config/i386/i386.md (cpu): Add new value "slm".
25427         (slm.md): Include slm.md.
25429 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
25430             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25432         * config/arm/arm-protos.h: Add and update function protos.
25433         * config/arm/arm.c (use_simple_return_p): New added.
25434         (thumb2_expand_return): Check simple_return flag.
25435         * config/arm/arm.md: Add simple_return and conditional simple_return.
25436         * config/arm/iterators.md: Add iterator for return and simple_return.
25438 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25440         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25441         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25442         (arm_emit_vfp_multi_reg_pop): Likewise.
25443         (thumb2_emit_ldrd_pop): Likewise.
25444         (arm_expand_epilogue): Add misc REG_CFA notes.
25445         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25447 2013-05-29  Lawrence Crowl  <crowl@google.com>
25449         * config/arm/t-arm: Update for below.
25451         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25452         Change type to hash_table.  Update dependent calls and types.
25454         * config/i386/t-cygming: Update for below.
25456         * config/i386/t-interix: Update for below.
25458         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25459         Change type to hash_table.  Update dependent calls and types.
25460         (i386_find_on_wrapper_list::wrappers): Likewise.
25462         * config/ia64/t-ia64: Update for below.
25464         * config/ia64/ia64.c (bundle_state_table):
25465         Change type to hash_table.  Update dependent calls and types.
25467         * config/mips/mips.c (mips_reorg_process_insns::htab):
25468         Change type to hash_table.  Update dependent calls and types.
25470         * config/sol2.c (solaris_comdat_htab):
25471         Change type to hash_table.  Update dependent calls and types.
25473         * config/t-sol2: Update for above.
25475 2013-05-29  Teresa Johnson  <tejohnson@google.com>
25477         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25478         functions are not yet marked as defined.
25480 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
25481             Pat Haugen  <pthaugen@us.ibm.com>
25482             Peter Bergner  <bergner@vnet.ibm.com>
25484         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25485         instructions.
25486         (VEC_A): Likewise.
25487         (VEC_C): Likewise.
25488         (vrotl<mode>3): Likewise.
25489         (vashl<mode>3): Likewise.
25490         (vlshr<mode>3): Likewise.
25491         (vashr<mode>3): Likewise.
25493         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25494         support for power8 V2DI builtins.
25496         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25497         power8 V2DI builtins.
25498         (vupkhsw): Likewise.
25499         (vupklsw): Likewise.
25500         (vaddudm): Likewise.
25501         (vminsd): Likewise.
25502         (vmaxsd): Likewise.
25503         (vminud): Likewise.
25504         (vmaxud): Likewise.
25505         (vpkudum): Likewise.
25506         (vpksdss): Likewise.
25507         (vpkudus): Likewise.
25508         (vpksdus): Likewise.
25509         (vrld): Likewise.
25510         (vsld): Likewise.
25511         (vsrd): Likewise.
25512         (vsrad): Likewise.
25513         (vsubudm): Likewise.
25514         (vcmpequd): Likewise.
25515         (vcmpgtsd): Likewise.
25516         (vcmpgtud): Likewise.
25517         (vcmpequd_p): Likewise.
25518         (vcmpgtsd_p): Likewise.
25519         (vcmpgtud_p): Likewise.
25520         (vupkhsw): Likewise.
25521         (vupklsw): Likewise.
25522         (vaddudm): Likewise.
25523         (vmaxsd): Likewise.
25524         (vmaxud): Likewise.
25525         (vminsd): Likewise.
25526         (vminud): Likewise.
25527         (vpksdss): Likewise.
25528         (vpksdus): Likewise.
25529         (vpkudum): Likewise.
25530         (vpkudus): Likewise.
25531         (vrld): Likewise.
25532         (vsld): Likewise.
25533         (vsrad): Likewise.
25534         (vsrd): Likewise.
25535         (vsubudm): Likewise.
25537         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25538         support for power8 V2DI instructions.
25540         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25541         power8 V2DI instructions.  Combine pack and unpack insns to use an
25542         iterator for each mode.  Check whether a particular mode supports
25543         Altivec instructions instead of just checking TARGET_ALTIVEC.
25544         (UNSPEC_VPKUWUM): Likewise.
25545         (UNSPEC_VPKSHSS): Likewise.
25546         (UNSPEC_VPKSWSS): Likewise.
25547         (UNSPEC_VPKUHUS): Likewise.
25548         (UNSPEC_VPKSHUS): Likewise.
25549         (UNSPEC_VPKUWUS): Likewise.
25550         (UNSPEC_VPKSWUS): Likewise.
25551         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25552         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25553         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25554         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25555         (UNSPEC_VUPKHSB): Likewise.
25556         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25557         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25558         (UNSPEC_VUPKHSH): Likewise.
25559         (UNSPEC_VUPKLSB): Likewise.
25560         (UNSPEC_VUPKLSH): Likewise.
25561         (VI2): Likewise.
25562         (VI_char): Likewise.
25563         (VI_scalar): Likewise.
25564         (VI_unit): Likewise.
25565         (VP): Likewise.
25566         (VP_small): Likewise.
25567         (VP_small_lc): Likewise.
25568         (VU_char): Likewise.
25569         (add<mode>3): Likewise.
25570         (altivec_vaddcuw): Likewise.
25571         (altivec_vaddu<VI_char>s): Likewise.
25572         (altivec_vadds<VI_char>s): Likewise.
25573         (sub<mode>3): Likewise.
25574         (altivec_vsubcuw): Likewise.
25575         (altivec_vsubu<VI_char>s): Likewise.
25576         (altivec_vsubs<VI_char>s): Likewise.
25577         (altivec_vavgs<VI_char>): Likewise.
25578         (altivec_vcmpbfp): Likewise.
25579         (altivec_eq<mode>): Likewise.
25580         (altivec_gt<mode>): Likewise.
25581         (altivec_gtu<mode>): Likewise.
25582         (umax<mode>3): Likewise.
25583         (smax<mode>3): Likewise.
25584         (umin<mode>3): Likewise.
25585         (smin<mode>3): Likewise.
25586         (altivec_vpkuhum): Likewise.
25587         (altivec_vpkuwum): Likewise.
25588         (altivec_vpkshss): Likewise.
25589         (altivec_vpkswss): Likewise.
25590         (altivec_vpkuhus): Likewise.
25591         (altivec_vpkshus): Likewise.
25592         (altivec_vpkuwus): Likewise.
25593         (altivec_vpkswus): Likewise.
25594         (altivec_vpks<VI_char>ss): Likewise.
25595         (altivec_vpks<VI_char>us): Likewise.
25596         (altivec_vpku<VI_char>us): Likewise.
25597         (altivec_vpku<VI_char>um): Likewise.
25598         (altivec_vrl<VI_char>): Likewise.
25599         (altivec_vsl<VI_char>): Likewise.
25600         (altivec_vsr<VI_char>): Likewise.
25601         (altivec_vsra<VI_char>): Likewise.
25602         (altivec_vsldoi_<mode>): Likewise.
25603         (altivec_vupkhsb): Likewise.
25604         (altivec_vupkhs<VU_char>): Likewise.
25605         (altivec_vupkls<VU_char>): Likewise.
25606         (altivec_vupkhsh): Likewise.
25607         (altivec_vupklsb): Likewise.
25608         (altivec_vupklsh): Likewise.
25609         (altivec_vcmpequ<VI_char>_p): Likewise.
25610         (altivec_vcmpgts<VI_char>_p): Likewise.
25611         (altivec_vcmpgtu<VI_char>_p): Likewise.
25612         (abs<mode>2): Likewise.
25613         (vec_unpacks_hi_v16qi): Likewise.
25614         (vec_unpacks_hi_v8hi): Likewise.
25615         (vec_unpacks_lo_v16qi): Likewise.
25616         (vec_unpacks_hi_<VP_small_lc>): Likewise.
25617         (vec_unpacks_lo_v8hi): Likewise.
25618         (vec_unpacks_lo_<VP_small_lc>): Likewise.
25619         (vec_pack_trunc_v8h): Likewise.
25620         (vec_pack_trunc_v4si): Likewise.
25621         (vec_pack_trunc_<mode>): Likewise.
25623         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25624         V2DI builtins.
25625         (vec_vmaxsd): Likewise.
25626         (vec_vmaxud): Likewise.
25627         (vec_vminsd): Likewise.
25628         (vec_vminud): Likewise.
25629         (vec_vpksdss): Likewise.
25630         (vec_vpksdus): Likewise.
25631         (vec_vpkudum): Likewise.
25632         (vec_vpkudus): Likewise.
25633         (vec_vrld): Likewise.
25634         (vec_vsld): Likewise.
25635         (vec_vsrad): Likewise.
25636         (vec_vsrd): Likewise.
25637         (vec_vsubudm): Likewise.
25638         (vec_vupkhsw): Likewise.
25639         (vec_vupklsw): Likewise.
25641 2013-05-29  Jan Hubicka  <jh@suse.cz>
25643         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25644         flags; reorder rest of fields in more consistent way.
25645         (varpool_node): Remove analyzed, finalized and alias.
25646         (cgraph_ndoe): Likewise.
25647         (symtab_alias_ultimate_target): New function.
25648         (cgraph_function_node): Move offline.
25649         (cgraph_reset_node): Declare.
25650         (cgraph_comdat_can_be_unshared_p): Remove.
25651         (varpool_remove_initializer): Declare.
25652         (varpool_first_defined_variable, varpool_next_defined_variable
25653         cgraph_first_defined_function, cgraph_next_defined_function): Update.
25654         (cgraph_function_with_gimple_body_p): Update.
25655         (varpool_all_refs_explicit_p): Update.
25656         (symtab_alias_target): New function.
25657         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25658         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25659         (cgraph_function_or_thunk_node): Simplify using
25660         symtab_alias_ultimate_target.
25661         (varpool_variable_node): Likewise.
25662         * cgraph.c (cgraph_create_function_alias): Update.
25663         (cgraph_add_thunk): Update.
25664         (cgraph_remove_node): Update.
25665         (dump_cgraph_node): Do not dump removed flags.
25666         (cgraph_function_body_availability): Update.
25667         (cgraph_propagate_frequency): Update.
25668         (verify_cgraph_node): Check sanity of local flag.
25669         (cgraph_function_node): Move here from cgraph.h; revamp for
25670         cgraph_function_or_thunk_node.
25671         * lto-symtab.c (lto_varpool_replace_node): Update.
25672         (lto_symtab_resolve_can_prevail_p): Update.
25673         (lto_symtab_merge_cgraph_nodes): Update.
25674         * ipa-cp.c (determine_versionability, initialize_node_lattices,
25675         propagate_constants_accross_call, devirtualization_time_bonus,
25676         ipcp_propagate_stage): Update.
25677         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25678         * ipa-inline-transform.c (clone_inlined_nodes,
25679         preserve_function_body_p): Update.
25680         * ipa-reference.c (propagate): Update.
25681         (write_node_summary_p): Update.
25682         * toplev.c (wrapup_global_declaration_2): Update.
25683         * cgraphunit.c (cgraph_analyze_function): Rename to ...
25684         (analyze_function) ... this one.
25685         (cgraph_process_new_functions): Update.
25686         (cgraph_reset_node): Export.
25687         (cgraph_finalize_function): Update.
25688         (cgraph_add_new_function): Update.
25689         (process_function_and_variable_attributes): Update.
25690         (varpool_finalize_decl): Update.
25691         (symbol_finalized): Remove.
25692         (symbol_finalized_and_needed): Rename to ...
25693         (symbol_defined_and_needed): ... update.
25694         (cgraph_analyze_functions): Update.
25695         (handle_alias_pairs): Update.
25696         (mark_functions_to_output): Update.
25697         (assemble_thunk): Update.
25698         (output_in_order): Update.
25699         (output_weakrefs): Update.
25700         (finalize_compilation_unit): Update.
25701         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25702         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25703         input_node, input_varpool_node): Update.
25704         * dbxout.c (dbxout_expand_expr): Update.
25705         * cgraphclones.c (cgraph_clone_node): Update.
25706         (cgraph_copy_node_for_versioning): Update.
25707         (cgraph_materialize_clone): Update.
25708         (cgraph_materialize_all_clones): Update.
25709         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25710         propagate_pure_const, propagate_nothrow): Update.
25711         * lto-streamer-out.c (lto_output, write_symbol): Update.
25712         * ipa-utils.c (ipa_reverse_postorder): Update.
25713         * ipa-inline.c (can_inline_edge_p): Update.
25714         (update_caller_keys, ipa_inline): Update.
25715         * dwarf2out.c (reference_to_unused,
25716         premark_types_used_by_global_vars_helper): Update.
25717         * tree-eh.c (tree_could_trap_p): Update.
25718         * ipa-split.c (consider_split, execute_split_functions): Update.
25719         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25720         has_addr_references_p): Update; move ahead in file for better
25721         readability.
25722         (process_references): Simplify.
25723         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25724         bodies are removed.
25725         (cgraph_comdat_can_be_unshared_p): Make static.
25726         (cgraph_externally_visible_p): Update.
25727         (varpool_externally_visible_p): Update.
25728         (function_and_variable_visibility): Update.
25729         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25730         ipa_tm_mark_force_output_node): Update.
25731         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25732         estimate_edge_devirt_benefit, inline_generate_summary,
25733         inline_write_summary): Update.
25734         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25735         * ipa-prop.c (ipa_compute_jump_functions): Update.
25736         (ipa_print_node_params, ipa_prop_read_section,
25737         ipa_update_after_lto_read, read_replacements_section): Update.
25738         * varasm.c (mark_decl_referenced): Update.
25739         (assemble_alias, dump_tm_clone_pairs): Update.
25740         * tree-inline.c (copy_bb): Update.
25741         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25742         Update.
25743         * symtab.c (dump_symtab_base): Print new flags.
25744         (verify_symtab_base): Verify new flags.
25745         (symtab_alias_ultimate_target): New function.
25746         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25747         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25748         Update.
25749         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25750         Update.
25751         * i386.c (ix86_get_function_versions_dispatcher,
25752         ix86_generate_version_dispatcher_body): Update.
25753         (fold_builtin_cpu): Use varpool_add_new_variable.
25754         * varpool.c (varpool_remove_initializer): Break out from ...
25755         (varpool_remove_node): ... this one.
25756         (dump_varpool_node, varpool_node_for_asm,
25757         cgraph_variable_initializer_availability, varpool_analyze_node,
25758         varpool_assemble_decl, varpool_remove_unreferenced_decls,
25759         varpool_finalize_named_section_flags, varpool_create_variable_alias):
25760         Update.
25762 2013-05-29  Jan Hubicka  <jh@suse.cz>
25764         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25766 2013-05-29  Easwaran Raman  <eraman@google.com>
25768         PR tree-optimization/57442
25769         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25770         when control exits the main loop.
25772 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
25774         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25775         and RX600.
25776         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25777         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25778         * rx/t-rx: Add rx100 under multi library matches option for nofpu
25779         option.
25781 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25783         PR tree-optimization/57441
25784         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25785         Don't limit size of incr_vec to number of candidates.
25787 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
25789         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25790         and mips16 directories.
25791         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25792         (MULTILIB_DIRNAMES): Ditto.
25793         (MULTILIB_EXCEPTIONS): Add new exceptions.
25794         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25795         (MULTILIB_DIRNAMES): Ditto.
25796         (MULTILIB_EXCEPTIONS): Add new exceptions.
25798 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25799             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25801         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25802         SYMBOL_TINY_ABSOLUTE.
25803         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25804         SYMBOL_TINY_ABSOLUTE.
25805         (aarch64_expand_mov_immediate): Likewise.
25806         (aarch64_classify_symbol): Likewise.
25807         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25808         Permit SYMBOL_TINY_ABSOLUTE.
25809         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25811 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25812             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25814         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25815         Refactor if/switch.  Replace gcc_assert with if.
25817 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25819         * config/i386/i386.c (initial_ix86_tune_features): Enable
25820         FP Reassociation for AMD bdver1 and bdver2.
25822 2013-05-29  Martin Jambor  <mjambor@suse.cz>
25824         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25825         and IMAGPART_EXPR do not occur within other handled_components.
25827 2013-05-29  Richard Biener  <rguenther@suse.de>
25829         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25830         access on whether the use is in the BB we currently try to
25831         vectorize.
25832         (vect_bb_vectorization_profitable_p): Pass the BB we currently
25833         vectorize to vect_bb_slp_scalar_cost.
25835 2013-05-29  Richard Biener  <rguenther@suse.de>
25837         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25838         computing scalar cost offsetted by stmts that are kept live
25839         by scalar uses.
25840         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25841         for computation of scalar cost.
25843 2013-05-28  Steve Ellcey  <sellcey@mips.com>
25845         * config/mips/mips-cpus.def (mips32r2): Change processor type.
25847 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
25849         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25850         array notation built-in reduction functions.
25851         * doc/passes.texi (Passes): Added documentation about changes done
25852         for Cilk Plus.
25853         * doc/invoke.texi (C Dialect Options): Added documentation about
25854         the -fcilkplus flag.
25855         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25856         (BUILTINS_DEF): Depend on cilkplus.def.
25857         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
25858         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25859         * cilkplus.def: New file.
25861 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
25863         PR rtl-optimization/57439
25864         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25866 2013-05-28  Easwaran Raman  <eraman@google.com>
25868         PR tree-optimization/57337
25869         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25870         (find_insert_point): Correctly identify the insertion point
25871         when two statements with the same UID is compared.
25873 2013-05-28  Richard Biener  <rguenther@suse.de>
25875         PR tree-optimization/56787
25876         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25877         from the list of data references.
25878         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25879         clobbers.
25880         (vect_analyze_loop_operations): Likewise.
25881         (vect_transform_loop): Remove clobbers.
25883 2013-05-28  Martin Jambor  <mjambor@suse.cz>
25885         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25886         and REALPART_EXPRs have scalar type.
25888 2013-05-28  Richard Biener  <rguenther@suse.de>
25890         PR tree-optimization/57411
25891         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25892         virtual operands.
25893         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25894         virtual operand propagation.
25896 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25898         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25899         destination register for bmasksi_vis.
25900         (vector_init_bshuffle): Likewise.
25901         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25903 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25905         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25906         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25907         mode if the instruction isn't available in the original mode.
25908         * config/sparc/sparc.opt (mfix-ut699): New option.
25909         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
25910         (divdf3): Turn into expander.
25911         (divdf3_nofix): New insn.
25912         (divdf3_fix): Likewise.
25913         (divsf3): Disable if -mfix-ut699.
25914         (sqrtdf2): Turn into expander.
25915         (sqrtdf2_nofix): New insn.
25916         (sqrtdf2_fix): Likewise.
25917         (sqrtsf2): Disable if -mfix-ut699.
25919 2013-05-27  Richard Biener  <rguenther@suse.de>
25921         PR middle-end/57412
25922         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25923         block for the new loop.
25925 2013-05-27  Richard Biener  <rguenther@suse.de>
25927         PR tree-optimization/57343
25928         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25929         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25930         (number_of_iterations_cond): Do not build the folded tree.
25932 2013-05-27  Richard Biener  <rguenther@suse.de>
25934         Revert
25935         PR middle-end/57381
25936         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25937         OEP_CONSTANT_ADDRESS_OF retained.
25939         PR tree-optimization/57417
25940         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25941         for unchanged base.
25942         (set_ssa_val_to): Compare addresses using
25943         get_addr_base_and_unit_offset.
25945 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
25947         PR rtl-optimization/56833
25948         * postreload.c (move2add_record_mode): New function.
25949         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25950         (move2add_use_add2_insn): Use move2add_record_sym_value.
25951         (move2add_use_add3_insn): Likewise.
25952         (reload_cse_move2add): Use move2add_valid_value_p and
25953         move2add_record_mode.  Invalidate call-clobbered and REG_INC
25954         affected regs by setting reg_mode to VOIDmode.
25955         (move2add_note_store): Don't pretend the inside of a SUBREG is
25956         the actual destination.  Invalidate single/leading registers by
25957         setting reg_mode to VOIDmode.
25958         Use move2add_record_sym_value, move2add_valid_value_p and
25959         move2add_record_mode.
25961 2013-05-27  Richard Biener  <rguenther@suse.de>
25963         PR tree-optimization/57396
25964         * tree-affine.c (double_int_constant_multiple_p): Properly
25965         return false for val == 0 and div != 0.
25967 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25969         * config/mips/mips.h: Use #elif in preprocessor conditions.
25971 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25973         PR target/53916
25974         * config/mips/constraints.md (kl): New constraint.
25975         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25976         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
25977         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
25978         from LO for MIPS16.
25979         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25981 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25983         PR target/55777
25984         * config/mips/mips.c (mips_can_inline_p): New function.
25985         (TARGET_CAN_INLINE_P): Define.
25987 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
25989         * sched-int.h (ds_t, dw_t): Make unsigned int.
25990         Fix documentation that describes how all the ds_t bits are used.
25991         Reserve the last bit for delayed-branch scheduling.
25992         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25993         (BITS_PER_DEP_WEAK): Fix definition and documentation.
25994         (gen_dep_weak_1): Remove prototype.
25995         * sched-deps.c (get_dep_weak_1): Make static.
25996         * target.def (speculate_insn, needs_block_p, gen_spec_check,
25997         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25998         * doc/tm.texi: Regenerate.
25999         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
26001 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
26003         PR debug/56950
26004         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
26006 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
26007             Sandra Loosemore  <sandra@codesourcery.com>
26009         * config.gcc (powerpc-*): Allow native for with-cpu.
26011 2013-05-24  Jeff Law  <law@redhat.com>
26013         PR tree-optimization/57124
26014         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
26015         conversion feeding a condition if the range has an overflow
26016         if -fstrict-overflow.  Add warnings for when we do make the
26017         transformation.
26019 2013-05-24  Dehao Chen  <dehao@google.com>
26021         * tree-cfg.c (locus_discrim_map): Fix the typo.
26022         (locus_discrim_hasher): Likewise.
26023         (locus_discrim_hasher::hash): Likewise.
26024         (locus_discrim_hasher::equal): Likewise.
26026 2013-05-24  Martin Jambor  <mjambor@suse.cz>
26028         PR tree-optimization/57294
26029         * cgraph.h (ipa_record_stmt_references): Declare.
26030         * cgraphbuild.c (ipa_record_stmt_references): New function.
26031         (build_cgraph_edges): Use ipa_record_stmt_references.
26032         (rebuild_cgraph_edges): Likewise.
26033         (cgraph_rebuild_references): Likewise.
26034         * ipa-prop.c (ipa_modify_call_arguments): Discard references
26035         associated with the old statement and build references from the
26036         newly built statements.
26037         * ipa-ref.c (ipa_remove_stmt_references): New function.
26038         * ipa-ref.h (ipa_remove_stmt_references): Declare.
26040 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
26042         * lra-constraints.c (emit_spill_move): Use smaller mode for
26043         mem-mem moves.
26044         (check_and_process_move): Consider mem-reg moves for secondary
26045         too.
26046         (curr_insn_transform): Don't lose insns emitted before for
26047         secondary memory moves.
26048         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
26049         reg set up in the current insn.
26051 2013-05-24  Dehao Chen  <dehao@google.com>
26053         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
26054         hash function.
26055         (locus_descrim_hasher::equal): Likewise.
26056         (build_gimple_cfg): New discriminator assignment algorithm.
26057         (make_edges): Likewise.
26058         (next_discriminator_for_locus): Likewise.
26059         (same_line_p): Likewise.
26060         (assign_discriminators): Likewise.
26061         (make_cond_expr_edges): Likewise.
26062         (make_gimple_switch_edges): Likewise.
26063         (make_goto_expr_edges): Likewise.
26064         (make_gimple_asm_edges): Likewise.
26066 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
26068         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
26069         X format specifier to only display bottom 16 bits.
26070         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
26071         immediate to match for operand 2, since it will be masked.
26073 2013-05-24  Richard Biener  <rguenther@suse.de>
26075         PR tree-optimization/57287
26076         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
26077         all SSA names that occur in abnormal PHIs.
26079 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26081         PR tree-ssa/57385
26082         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
26083         that index is not negative.
26085 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
26087         PR rtl-optimization/55177
26088         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
26089         (simplify_byte_swapping_operation): New.
26090         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
26091         (simplify_relational_operation_1): Deal with BSWAP.
26093 2013-05-23  Richard Henderson  <rth@redhat.com>
26095         PR target/56742
26096         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
26097         (ix86_reorg): Call it.
26099 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
26101         PR target/57379
26102         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
26103         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
26104         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
26106 2013-05-23  Christian Bruel  <christian.bruel@st.com>
26108         PR debug/57351
26109         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
26111 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
26112             Marcus Shawcroft  <marcus.shawcroft@arm.com>
26114         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
26115         * config/aarch64/constraints.md (Usa): Remove.
26116         * doc/md.texi (AArch64 Usa): Remove.
26118 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
26119             Marcus Shawcroft  <marcus.shawcroft@arm.com>
26121         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
26122         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
26123         * config/aarch64/predicates.md (aarch64_const_address): Remove.
26124         (aarch64_mov_operand): Use aarch64_mov_operand_p.
26126 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
26128         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
26129         instruction (AdvSIMD).
26130         * config/aarch64/aarch64-builtins.c
26131         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
26132         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
26134 2013-05-23  Martin Jambor  <mjambor@suse.cz>
26136         PR middle-end/57347
26137         * tree.h (contains_bitfld_component_ref_p): Declare.
26138         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26139         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
26140         caller.
26141         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26142         not access a bit-field.  Assert all final offsets are byte-aligned.
26144 2013-05-23  Richard Biener  <rguenther@suse.de>
26146         PR tree-optimization/57380
26147         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26148         least one invariant or re-used load.
26149         * passes.c (init_optimization_passes): Move pass_phiprop before
26150         pass_forwprop.
26152 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
26154         * config/aarch64/aarch64-simd.md
26155         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26157 2013-05-23  Richard Biener  <rguenther@suse.de>
26159         PR middle-end/57381
26160         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26161         OEP_CONSTANT_ADDRESS_OF retained.
26163 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
26165         PR middle-end/57344
26166         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26167         don't lower unit.  Handle unit not being always BITS_PER_WORD.
26169 2013-05-23  Richard Biener  <rguenther@suse.de>
26171         PR rtl-optimization/57341
26172         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26173         instead of true_dependence.
26175 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
26177         * bb-reorder.c (branch_threshold): Make const.
26178         (exec_threshold): Ditto.
26180 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
26181             Pat Haugen  <pthaugen@us.ibm.com>
26182             Peter Bergner  <bergner@vnet.ibm.com>
26184         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26185         documentation for the power8 crypto builtins.
26187         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26189         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26190         macros for defining power8 builtin functions.
26191         (BU_P8V_AV_2): Likewise.
26192         (BU_P8V_AV_P): Likewise.
26193         (BU_P8V_VSX_1): Likewise.
26194         (BU_P8V_OVERLOAD_1): Likewise.
26195         (BU_P8V_OVERLOAD_2): Likewise.
26196         (BU_CRYPTO_1): Likewise.
26197         (BU_CRYPTO_2): Likewise.
26198         (BU_CRYPTO_3): Likewise.
26199         (BU_CRYPTO_OVERLOAD_1): Likewise.
26200         (BU_CRYPTO_OVERLOAD_2): Likewise.
26201         (XSCVSPDP): Fix typo, point to the correct instruction.
26202         (VCIPHER): Add power8 crypto builtins.
26203         (VCIPHERLAST): Likewise.
26204         (VNCIPHER): Likewise.
26205         (VNCIPHERLAST): Likewise.
26206         (VPMSUMB): Likewise.
26207         (VPMSUMH): Likewise.
26208         (VPMSUMW): Likewise.
26209         (VPERMXOR_V2DI): Likewise.
26210         (VPERMXOR_V4SI: Likewise.
26211         (VPERMXOR_V8HI: Likewise.
26212         (VPERMXOR_V16QI: Likewise.
26213         (VSHASIGMAW): Likewise.
26214         (VSHASIGMAD): Likewise.
26215         (VPMSUM): Likewise.
26216         (VPERMXOR): Likewise.
26217         (VSHASIGMA): Likewise.
26219         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26220         __CRYPTO__ if the crypto instructions are available.
26221         (altivec_overloaded_builtins): Add support for overloaded power8
26222         builtins.
26224         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26225         support for power8 crypto builtins.
26226         (builtin_function_type): Likewise.
26227         (altivec_init_builtins): Add support for builtins that take vector
26228         long long (V2DI) arguments.
26230         * config/rs6000/crypto.md: New file, define power8 crypto
26231         instructions.
26233 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
26234             Pat Haugen  <pthaugen@us.ibm.com>
26235             Peter Bergner  <bergner@vnet.ibm.com>
26237         * doc/invoke.texi (Option Summary): Add power8 options.
26238         (RS/6000 and PowerPC Options): Likewise.
26240         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26241         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
26242         wm, wn, wr documentation.
26244         * config/rs6000/constraints.md (wm): New constraint for VSX
26245         registers if direct move instructions are enabled.
26246         (wn): New constraint for no registers.
26247         (wq): New constraint for quad word even GPR registers.
26248         (wr): New constraint if 64-bit instructions are enabled.
26249         (wv): New constraint if power8 vector instructions are enabled.
26250         (wQ): New constraint for quad word memory locations.
26252         * config/rs6000/predicates.md (const_0_to_15_operand): New
26253         constraint for 0..15 for crypto instructions.
26254         (gpc_reg_operand): If VSX allow registers in VSX registers as well
26255         as GPR and floating point registers.
26256         (int_reg_operand): New predicate to match only GPR registers.
26257         (base_reg_operand): New predicate to match base registers.
26258         (quad_int_reg_operand): New predicate to match even GPR registers
26259         for quad memory operations.
26260         (vsx_reg_or_cint_operand): New predicate to allow vector logical
26261         operations in both GPR and VSX registers.
26262         (quad_memory_operand): New predicate for quad memory operations.
26263         (reg_or_indexed_operand): New predicate for direct move support.
26265         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26266         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26267         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26268         (POWERPC_MASKS): Add power8 options.
26269         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26270         various options.
26272         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26273         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26275         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26276         (-mpower8-fusion): New power8 options.
26277         (-mpower8-fusion-sign): Likewise.
26278         (-mpower8-vector): Likewise.
26279         (-mcrypto): Likewise.
26280         (-mdirect-move): Likewise.
26281         (-mquad-memory): Likewise.
26283         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26284         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26285         registers.
26286         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26287         (rs6000_debug_vector_unit): Add p8_vector.
26288         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26289         definitions.  Also print fusion state.
26290         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26291         (rs6000_builtin_mask_calculate): Add power8 builtin support.
26292         (rs6000_option_override_internal): Add support for power8.
26293         (rs6000_common_init_builtins): Add debugging for skipped builtins
26294         if -mdebug=builtin.
26295         (rs6000_adjust_cost): Add power8 support.
26296         (rs6000_issue_rate): Likewise.
26297         (insn_must_be_first_in_group): Likewise.
26298         (insn_must_be_last_in_group): Likewise.
26299         (force_new_group): Likewise.
26300         (rs6000_register_move_cost): Likewise.
26301         (rs6000_opt_masks): Likewise.
26303         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26304         power8 capable assembler, default to power7 options.
26305         (TARGET_DIRECT_MOVE): Likewise.
26306         (TARGET_CRYPTO): Likewise.
26307         (TARGET_P8_VECTOR): Likewise.
26308         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26309         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26310         (VECTOR_MEM_P8_VECTOR_P): Likewise.
26311         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26312         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26313         (TARGET_XSCVDPSPN): Likewise.
26314         (TARGET_XSCVSPDPN): Likewsie.
26315         (TARGET_SYNC_HI_QI): Likewise.
26316         (TARGET_SYNC_TI): Likewise.
26317         (MASK_CRYPTO): Likewise.
26318         (MASK_DIRECT_MOVE): Likewise.
26319         (MASK_P8_FUSION): Likewise.
26320         (MASK_P8_VECTOR): Likewise.
26321         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26322         temporary used by some of the direct move instructions to get two FP
26323         temporary registers does not force creation of a stack frame.
26324         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26325         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26326         that any VSX registers are tieable, even if they are also an
26327         Altivec vector mode.
26328         (r6000_reg_class_enum): Add wm, wr, wv constraints.
26329         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26330         (RS6000_BTM_CRYPTO): Likewise.
26331         (RS6000_BTM_COMMON): Likewise.
26333         * config/rs6000/rs6000.md (cpu attribute): Add power8.
26334         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26335         (enum rs6000_vector): Add power8 vector support.
26337 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26339         PR target/19599
26340         PR target/57340
26341         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26342         (any_sibcall_could_use_r3): this and handle indirect calls.
26343         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26345 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26347         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26349 2013-05-22  Richard Biener  <rguenther@suse.de>
26351         PR middle-end/57349
26352         * profile.c (branch_prob): Do not split blocks that are
26353         abnormally receiving from ECF_RETURNS_TWICE functions.
26355 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26357         * recog.c (offsettable_address_addr_space_p): Fix calculation of
26358         address mode.  Move pointer mode initialization to the same place.
26360 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26362         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26363         while it has any effect.
26365 2013-05-21  Easwaran Raman  <eraman@google.com>
26367         PR tree-optimization/57322
26368         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26369         UID of the statement added to the BB to be 1.
26371 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
26373         PR tree-optimization/57331
26374         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26375         of conversion from pointer type to integral type with integer.
26377 2013-05-21  Martin Jambor  <mjambor@suse.cz>
26379         PR lto/57289
26380         * ipa-prop.c (ipa_read_node_info): Process param_used and
26381         controlled_uses in the same order as when writing.
26383 2013-05-21  Magnus Granberg  <baldrick@free.fr>
26385         PR plugins/56754
26386         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26388 2013-05-21  Richard Biener  <rguenther@suse.de>
26390         PR tree-optimization/57318
26391         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26392         estimate stmts with side-effects as likely eliminated.
26394 2013-05-21  Richard Biener  <rguenther@suse.de>
26396         PR tree-optimization/57330
26397         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26398         preserve the call stmts fntype.
26400 2013-05-21  Richard Biener  <rguenther@suse.de>
26402         PR tree-optimization/57303
26403         * tree-ssa-sink.c (statement_sink_location): Improve killing
26404         stmt detection and properly handle self-assignments.
26406 2013-05-21  Christian Bruel  <christian.bruel@st.com>
26408         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26409         spanning registers. LEAF_REG_REMAP is supported only for contiguous
26410         registers. Set register size out of the PARALLEL loop.
26412 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
26414         PR target/56547
26415         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26416         (*fmasf4, *fmasf4_media): New insns.
26418 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26420         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26421         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26422         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26423         (mips_idiv_insns): Update the comments to say that the returned
26424         instruction counts are in units of BASE_INSN_LENGTH.
26425         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26426         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
26427         using 2 rather than 4 as the length of indirect MIPS16 and
26428         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
26429         length of a NOP.  Don't divide MIPS16 lengths by 2.
26430         (mips16_split_long_branches): Assume a branch is long if the
26431         length is greater than 4 rather than 8.
26432         * config/mips/mips.md (length): Give MIPS16 lengths directly,
26433         rather than multiplying them by 2.  Multiply instruction counts
26434         by BASE_INSN_LENGTH rather than 4.
26435         (*jump_mips16, tls_get_tp_mips16_<mode>)
26436         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26438 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26440         * config/mips/mips.md (extended_mips16): Remove branch case.
26441         (length): Remove duplicated extended_mips16 test.
26443 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26445         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26447 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
26449         * recog.h (Recog_data): Rename to...
26450         (recog_data_d): ...this.
26451         (recog_data): Update accordingly.
26452         * recog.c (recog_data): Likewise.
26453         * reload.c (save_recog_data): Likewise.
26454         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26455         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26457 2013-05-17  Julian Brown  <julian@codesourcery.com>
26459         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26460         found in a REG_EQUAL note, invalidate it.
26462 2013-05-17  Easwaran Raman  <eraman@google.com>
26464         * tree-ssa-reassoc.c (find_insert_point): New function.
26465         (insert_stmt_after): Likewise.
26466         (get_def_stmt): Likewise.
26467         (ensure_ops_are_available): Likewise.
26468         (not_dominated_by): Likewise.
26469         (rewrite_expr_tree): Do not move statements beyond what is
26470         necessary. Remove call to swap_ops_for_binary_stmt...
26471         (reassociate_bb): ... and move it here.
26472         (build_and_add_sum): Assign UIDs for new statements.
26473         (linearize_expr): Likewise.
26474         (do_reassoc): Renumber gimple statement UIDs.
26476 2013-05-17  Jan Hubicka  <jh@suse.cz>
26478         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26479         weakrefs.
26480         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26481         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26482         weakrefs.
26483         (output_weakrefs): Update.
26485 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
26486             Martin Jambor  <mjambor@suse.cz>
26488         PR middle-end/57276
26489         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26490         value that corresponds to the given aggval is found in values vector.
26492 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
26494         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26495         sse, sse2, sse3, ssse3 and sse4a flags to options.
26497 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
26499         * gengtype-state.c: (s_expr_writer): New class, to handle
26500         prettifying of output layout of s-expressions.
26501         (state_writer): New class, to write out gtype.state.
26502         (state_written_type_count): Move this variable into member data of
26503         state_writer.
26504         (s_expr_writer::s_expr_writer): New code: constructor for new class
26505         (state_writer::state_writer(): ditto
26506         (s_expr_writer::write_new_line): New function
26507         (s_expr_writer::write_any_indent): ditto
26508         (s_expr_writer::begin_s_expr): ditto
26509         (s_expr_writer::end_s_expr): ditto
26510         (write_state_fileloc): convert to method of state_writer...
26511         (state_writer:: write_state_fileloc): ...and use methods of
26512         s_expr_writer to write indentation into the gtype.state output file
26513         to visually represent the hierarchical structure of the list
26514         structures
26515         (write_state_fields): ditto, renaming to...
26516         (state_writer::write_state_fields)
26517         (write_state_a_string): ditto, renaming to...
26518         (state_writer::write_state_a_string)
26519         (write_state_string_option): ditto, renaming to...
26520         (state_writer::write_state_string_option)
26521         (write_state_type_option): ditto, renaming to...
26522         (state_writer::write_state_type_option)
26523         (write_state_nested_option): ditto, renaming to...
26524         (state_writer::write_state_nested_option)
26525         (write_state_option): ditto, renaming to...
26526         (state_writer::write_state_option)
26527         (write_state_options): ditto, renaming to...
26528         (state_writer::write_state_options)
26529         (write_state_lang_bitmap): ditto, renaming to...
26530         (state_writer::write_state_lang_bitmap)
26531         (write_state_version): ditto, renaming to...
26532         (state_writer::write_state_version)
26533         (write_state_scalar_type): ditto, renaming to...
26534         (state_writer::write_state_scalar_type)
26535         (write_state_string_type): ditto, renaming to...
26536         (state_writer::write_state_string_type)
26537         (write_state_undefined_type): ditto, renaming to...
26538         (state_writer::write_state_undefined_type)
26539         (write_state_struct_union_type): ditto, renaming to...
26540         (state_writer::write_state_struct_union_type)
26541         (write_state_struct_type): ditto, renaming to...
26542         (state_writer::write_state_struct_type)
26543         (write_state_user_struct_type): ditto, renaming to...
26544         (state_writer::write_state_user_struct_type)
26545         (write_state_lang_struct_type): ditto, renaming to...
26546         (state_writer::write_state_lang_struct_type)
26547         (write_state_param_struct_type): ditto, renaming to...
26548         (state_writer::write_state_param_struct_type)
26549         (write_state_pointer_type): ditto, renaming to...
26550         (state_writer::write_state_pointer_type)
26551         (write_state_array_type): ditto, renaming to...
26552         (state_writer::write_state_array_type)
26553         (write_state_gc_used): ditto, renaming to...
26554         (state_writer::write_state_gc_used)
26555         (write_state_common_type_content): ditto, renaming to...
26556         (state_writer::write_state_common_type_content)
26557         (write_state_type): ditto, renaming to...
26558         (state_writer::write_state_type)
26559         (write_state_pair_list): ditto, renaming to...
26560         (state_writer::write_state_pair_list)
26561         (write_state_pair): ditto, renaming to...
26562         (state_writer::write_state_pair)
26563         (write_state_typedefs): ditto, renaming to...
26564         (state_writer::write_state_typedefs)
26565         (write_state_structures): ditto, renaming to...
26566         (state_writer::write_state_structures)
26567         (write_state_param_structs): ditto, renaming to...
26568         (state_writer::write_state_param_structs)
26569         (write_state_variables): ditto, renaming to...
26570         (state_writer::write_state_variables)
26571         (write_state_srcdir): ditto, renaming to...
26572         (state_writer::write_state_srcdir)
26573         (write_state_files_list): ditto, renaming to...
26574         (state_writer::write_state_files_list)
26575         (write_state_languages): ditto, renaming to...
26576         (state_writer::write_state_languages)
26577         (write_state): create a state_writer instance and use it when
26578         writing out the state file
26580 2013-05-17  Mike Stump  <mikestump@comcast.net>
26582         PR rtl-optimization/57304
26583         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26584         accessing DF_REF_REAL_LOC.
26586 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26588         PR rtl-optimization/57281
26589         PR rtl-optimization/57300
26590         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26591         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26592         what the other splitter did if the registers are dead.
26594 2013-05-17  Richard Biener  <rguenther@suse.de>
26596         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26597         MEM_REF offsets.
26599 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26601         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26602         linking.
26604 2013-05-17  Marek Polacek  <polacek@redhat.com>
26606         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26607         length when doing non-zero store of storing '\0' to '\0'.
26609 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26611         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26612         vect_external_def oprnd1 with loop_vinfo, try to emit
26613         optional cast, negation and and stmts on the loop preheader
26614         edge instead of into the pattern def seq.
26616         PR tree-optimization/57051
26617         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26618         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26620 2013-05-16  Nick Clifton  <nickc@redhat.com>
26622         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26623         (rl78_is_naked_func): New function.
26624         (rl78_expand_prologue): Skip prologue generation for naked functions.
26625         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26626         * doc/extend.texi (naked): Add RL78 to the list of processors
26627         that supports this attribute.
26629 2013-05-16  Jeff Law  <law@redhat.com>
26631         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26633 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26635         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26636         cache parameters using detect_caches_amd also for CYRIX,
26637         NSC and TM2 signatures.
26639 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26640             Dzianis Kahanovich  <mahatma@eu.by>
26642         PR target/45359
26643         PR target/46396
26644         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26645         VIA/Centaur processors and determine their cache parameters
26646         using detect_caches_amd.
26648 2013-05-16  Teresa Johnson  <tejohnson@google.com>
26650         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26651         (rtl_verify_edges): New function.
26652         (rtl_verify_bb_insns): Ditto.
26653         (rtl_verify_bb_pointers): Ditto.
26654         (rtl_verify_bb_insn_chain): Ditto.
26655         (rtl_verify_fallthru): Ditto.
26656         (rtl_verify_bb_layout): Ditto.
26657         (rtl_verify_flow_info_1): Outline checks into new functions.
26658         (rtl_verify_flow_info): Ditto.
26660 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
26662         * cfghooks.c (copy_bbs): Add update_dominance argument.
26663         * cfghooks.h (copy_bbs): Update prototype.
26664         * tree-cfg.c (gimple_duplicate_sese_region):
26665         Add update_dominance argument.
26666         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26667         * tree-ssa-loop-ch.c (copy_loop_headers): Update
26668         gimple_duplicate_sese_region call.
26669         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26670         Update copy_bbs call.
26671         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26672         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26674 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26676         * tree-vectorizer.h (NUM_PATTERNS): Increment.
26677         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26678         vect_recog_rotate_pattern.
26679         (vect_recog_rotate_pattern): New function.
26681 2013-05-16  Jason Merrill  <jason@redhat.com>
26683         * Makefile.in (LLINKER): New variable.
26684         (mostlyclean): Remove link mutex.
26685         * configure.ac: Handle --enable-link-mutex.
26686         * lock-and-run.sh: New script.
26688 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26690         PR target/19599
26691         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26692         for NULL decl.
26694 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26696         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26698 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
26700         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26701         * config/arm/arm.c (next_consecutive_mem): New function.
26702         (gen_movmem_ldrd_strd): Likewise.
26703         * config/arm/arm.md (movmemqi): Update condition and code.
26704         (unaligned_loaddi, unaligned_storedi): New patterns.
26706 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26708         * config.gcc: Obsolete *-*-solaris2.9*.
26709         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26711 2013-05-16  Richard Biener  <rguenther@suse.de>
26713         * passes.c (init_optimization_passes): Move pass_parallelize_loops
26714         earlier, after GRAPHITE transforms and IV canonicalization.
26716 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26718         * omp-low.c (extract_omp_for_data): For collapsed loops,
26719         if at least one of the loops is known at compile time to
26720         iterate zero times, set count to 0.
26721         (expand_omp_regimplify_p): New function.
26722         (expand_omp_for_generic): For collapsed loops, if at least
26723         one of the loops isn't known to iterate at least once,
26724         add runtime check with setting count to 0.
26725         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26726         For unsigned types if it isn't known at compile time that
26727         the loop will iterate at least once, add runtime check to bypass
26728         the whole loop if initial condition isn't true.
26730 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
26732         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26734 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
26736         PR middle-end/57286
26737         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26738         transformations to avoid an infinite loop.
26740 2013-05-16  Marek Polacek  <polacek@redhat.com>
26742         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26744 2013-05-15  Leif Ekblad  <leif@rdos.net>
26746         * config/i386/i386.c (ix86_decompose_address): Use
26747         DEFAULT_TLS_SEG_REG to access TLS segment register.
26748         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26749         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26750         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26752 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
26754         PR target/57260
26755         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26756         sibling calls to functions that would normally be lazily bound,
26757         unless $gp is call-clobbered.
26759 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
26761         * config/i386/i386.c (ix86_option_override_internal): Update
26762         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
26763         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26764         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26765         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26766         of TARGET_3DNOW.
26767         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26769 2013-05-15  Andreas Schwab  <schwab@suse.de>
26771         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26772         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
26773         third operand.
26775 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26777         * loop-unroll.c (report_unroll_peel): Check decision before
26778         emitting unroll/peel message.
26780 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26782         * function.h (has_bb_partition): New rtl_data flag.
26783         (bb_reorder_complete): Ditto.
26784         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26785         instead of flag_reorder_blocks_and_partition.
26786         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26787         with some enhancements.
26788         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26789         * bb-reorder.c (connect_traces): Check for has_bb_partition
26790         instead of flag_reorder_blocks_and_partition.
26791         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26792         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26793         verify_hot_cold_block_grouping.
26794         (partition_hot_cold_basic_blocks): Set has_bb_partition.
26796 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26798         PR target/19599
26799         * config/arm/predicates.md (call_insn_operand): New predicate.
26800         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
26801         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26802         if insn is not a tail call.
26803         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26804         registers.
26805         * config/arm/arm.h (enum reg_class): New caller save register class.
26806         (REG_CLASS_NAMES): Likewise.
26807         (REG_CLASS_CONTENTS): Likewise.
26808         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26809         without decls.
26811 2013-05-15  Richard Biener  <rguenther@suse.de>
26813         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26814         of MSG_OPTIMIZED_LOCATIONS.
26815         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26816         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26817         message.
26818         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26819         of MSG_OPTIMIZED_LOCATIONS.
26820         (execute_vect_slp): Likewise.
26821         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26822         (vect_create_cond_for_alias_checks): Likewise.
26823         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26824         (vect_recog_widen_mult_pattern): Likewise.
26825         (vect_recog_widen_sum_pattern): Likewise.
26826         (vect_recog_over_widening_pattern): Likewise.
26827         (vect_recog_widen_shift_pattern): Likewise.
26828         (vect_recog_vector_vector_shift_pattern): Likewise.
26829         (vect_recog_divmod_pattern): Likewise.
26830         (vect_recog_mixed_size_cond_pattern): Likewise.
26831         (vect_recog_bool_pattern): Likewise.
26832         (vect_pattern_recog_1): Likewise.
26834 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26836         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26837         non-functions to builtin_unreachable.
26838         * ipa-inline-transform.c (inline_call): Do not assert estimates were
26839         correct when new direct edges were discovered.
26841 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26843         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26844         header, print symbol order instead of node uid, print more information
26845         about indirect edge targets.
26846         (ipa_make_edge_direct_to_target): Print symbol order instead of node
26847         uids.
26848         (ipa_make_edge_direct_to_target): Likewise.
26849         (remove_described_reference): Likewise.
26850         (propagate_controlled_uses): Likewise.
26851         (ipa_print_node_params): Also print symbol order.
26852         (ipcp_transform_function): Print symbol order instead of node uids.
26853         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26854         (cgraph_get_create_real_symbol_node): Likewise.
26855         * ipa-cp.c (print_lattice): Likewise.
26856         (print_all_lattices): Likewise.
26857         (determine_versionability): Likewise.
26858         (initialize_node_lattices): Likewise.
26859         (estimate_local_effects): Likewise.
26860         (update_profiling_info): Likewise.
26861         (create_specialized_node): Likewise.
26862         (perhaps_add_new_callers): Likewise.
26863         (decide_about_value): Likewise.
26864         (decide_whether_version_node): Likewise.
26865         (identify_dead_nodes): Likewise.
26866         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26867         (dump_inline_summary): Likewise.
26868         (estimate_node_size_and_time): Likewise.
26869         (inline_analyze_function): Likewise.
26870         * ipa-inline.c (report_inline_failed_reason): Likewise.
26871         (want_early_inline_function_p): Likewise.
26872         (edge_badness): Likewise.
26873         (update_edge_key): Likewise.
26874         (inline_small_functions): Likewise.  Add dumping of order to two other
26875         dumps.
26876         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26877         instead of node uids.
26878         (propagate_pure_const): Likewise.
26879         (propagate_pure_const): Likewise.
26880         * ipa-utils.c (dump_cgraph_node_set): Likewise.
26881         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26882         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26883         of node uids.
26884         * tree-pretty-print.c (dump_function_header): Likewise.
26885         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26886         Print symbol order instead of node uids.
26888 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26890         * config/s390/s390.c (s390_register_move_cost): Don't impose the
26891         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26893 2013-05-15  Richard Biener  <rguenther@suse.de>
26895         PR tree-optimization/57275
26896         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26897         return value for fail to do runtime alias checks for gather loads.
26899 2013-05-15  Jan Hubicka  <jh@suse.cz>
26901         PR lto/57038
26902         PR lto/47375
26903         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26904         weakrefs are not external.
26905         (lto_symtab_merge_decls): Fix thinko when dealing with
26906         non-lto_symtab decls.
26907         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
26908         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
26909         * varpool.c (dump_varpool_node): Dump more flags.
26911 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26913         * config/i386/i386.c (processor_alias_table): Add instruction
26914         FSGSBASE for AMD bdver3 architecture.
26916 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26918         * tree.c (warn_deprecated_use): Print file:line using locus color.
26919         * diagnostic.c (diagnostic_report_current_module): Print file:line
26920         and file:line:column using locus color.
26922 2013-05-14  Mike Stump  <mikestump@comcast.net>
26924         * gdbinit.in: Add __null.
26926 2013-05-14  Mike Stump  <mikestump@comcast.net>
26928         * recog.h: Rename struct recog_data to Recog_data.
26929         * recog.c: Likewise.
26930         * reload.c (can_reload_into): Likewise.
26931         * config/picochip/picochip.c: Likewise.
26933 2013-05-14  Mike Stump  <mikestump@comcast.net>
26935         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26937 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
26939         * resource.h (struct resources): Remove unch_memory member.
26940         (CLEAR_RESOURCE): Don't clear unch_memory.
26941         * resource.c (mark_referenced_resources): Don't set it.
26942         (mark_set_resources): Likewise.
26943         (mark_target_live_regs): Don't clear it.
26944         (init_resource_info): Likewise.
26945         * reorg.c (resource_conflicts_p): Don't compare it.
26946         (redundant_insn): Don't set it.
26948         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26949         Remove prototypes.
26950         * emit-rtl.c (next_label): Remove unused function.
26951         (skip_consecutive_labels, link_cc0_insns): Move to ...
26952         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26953         only place where these functions are used, and make them static.
26955 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26957         * fold-const.c (fold_negate_expr): Handle vectors.
26958         (fold_truth_not_expr): Make it static.
26959         (fold_invert_truthvalue): New static function.
26960         (invert_truthvalue_loc): Handle vectors. Do not call
26961         fold_truth_not_expr directly.
26962         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26963         <TRUTH_NOT_EXPR>: Do not cast to boolean.
26964         (fold_comparison): Handle vector constants.
26965         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26966         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26967         * tree.h (fold_truth_not_expr): Remove declaration.
26969 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
26971         * config/aarch64/aarch64-simd.md
26972         (aarch64_vcond_internal<mode>): Rename to...
26973         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26974         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26975         float modes. Clarify all iterator modes.
26976         (vcond<mode><mode>): Use new name for vcond expanders.
26977         (vcond<v_cmp_result><mode>): Likewise.
26978         (vcondu<mode><mode>: Likewise.
26979         * config/aarch64/iterators.md (VDQF_COND): New.
26981 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26983         PR bootstrap/57266
26984         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26985         variable for the shift amount. Check that we shift by non-negative
26986         amounts.
26988 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
26990         PR target/42017
26991         * config/arm/arm.h (EPILOGUE_USES): Only return true
26992         for LR_REGNUM after epilogue_completed.
26994 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
26996         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26997         is error_mark_node.
26999 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27001         PR target/57261
27002         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
27003         and Solaris 11+/x86 with gld.
27004         * configure: Regenerate.
27006 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
27008         * expmed.c (expand_shift_1): Canonicalize rotates by
27009         constant bitsize / 2 to bitsize - 1.
27010         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
27011         case ROTATERT>: Likewise.
27013         Revert:
27014         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
27016         * config/i386/i386.md (rotateinv): New code attr.
27017         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27018         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27019         roll $31, %eax, etc.
27021 2013-05-14  Richard Biener  <rguenther@suse.de>
27023         PR middle-end/57235
27024         * tree-eh.c (sink_clobbers): Give up for successors with
27025         multiple predecessors and no virtual uses.
27027 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
27029         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
27030         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
27032 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
27034         PR middle-end/57251
27035         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
27036         the case when both op0 and op1 have VOIDmode.
27038 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27040         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
27041         in multiply-accumulate mode.
27043 2013-05-13  Guozhi Wei  <carrot@google.com>
27045         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
27047 2013-05-13  Kai Tietz  <ktietz@redhat.com>
27049         PR target/56975
27050         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
27051         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
27052         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
27053         * config/i386/i386.c (ix86_option_override_internal): Likewise.
27054         (ix86_expand_prologue): Likewise.
27055         (ix86_expand_split_stack_prologue): Likewise.
27056         (legitimate_pic_address_disp_p): Likewise.
27057         (legitimize_pic_address): Likewise.
27058         (legitimize_tls_address): Likewise.
27059         (legitimize_pe_coff_symbol): Likewise.
27060         (output_pic_addr_const): Likewise.
27061         (construct_plt_address): Likewise.
27062         (ix86_expand_call): Likewise.
27063         (x86_output_mi_thunk): Likewise.
27064         (x86_function_profiler): Likewise.
27066 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
27068         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
27069         similar switch cases.
27070         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
27071         (aarch64_simd_mov_to_<mode>low): Delete.
27072         (aarch64_simd_mov_to_<mode>high): Delete.
27073         (move_lo_quad_<mode>): Add w<-r alternative.
27074         (aarch64_simd_move_hi_quad_<mode>): Likewise.
27075         (aarch64_simd_mov_from_*): Update type attribute.
27076         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
27077         statement.
27079 2013-05-13  Jan Hubicka  <jh@suse.cz>
27081         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
27082         * config/i386/i386.c (ix86_compute_frame_layout,
27083         ix86_expand_epilogue, emit_i387_cw_initialization,
27084         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
27085         ix86_local_alignment): Fix use of size/speed predicates.
27087 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
27089         PR tree-optimization/45216
27090         PR tree-optimization/57157
27091         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
27092         the (-Y) & (B - 1) variant if OP is |.
27093         * expmed.c (expand_shift_1): For rotations by const0_rtx just
27094         return shifted.  Use (-op1) & (prec - 1) as other_amount
27095         instead of prec - op1.
27097 2013-05-13  Martin Jambor  <mjambor@suse.cz>
27099         PR middle-end/42371
27100         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
27101         (ipa_constant_data): New type.
27102         (ipa_jump_func): Use ipa_constant_data to hold information about
27103         constant jump functions.
27104         (ipa_get_jf_constant): Adjust to jump function type changes.
27105         (ipa_get_jf_constant_rdesc): New function.
27106         (ipa_param_descriptor): New field controlled_uses.
27107         (ipa_get_controlled_uses): New function.
27108         (ipa_set_controlled_uses): Likewise.
27109         * ipa-ref.h (ipa_find_reference): Declare.
27110         * ipa-prop.c (ipa_cst_ref_desc): New type.
27111         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
27112         changes.
27113         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
27114         New parameter cs.  Adjust all callers.
27115         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
27116         (remove_described_reference): New function.
27117         (jfunc_rdesc_usable): Likewise.
27118         (try_make_edge_direct_simple_call): Decrement controlled use count,
27119         attempt to remove reference if it hits zero.
27120         (combine_controlled_uses_counters): New function.
27121         (propagate_controlled_uses): Likewise.
27122         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
27123         (ipa_edge_duplication_hook): Duplicate reference descriptions.
27124         (ipa_print_node_params): Print described use counter.
27125         (ipa_write_jump_function): Adjust to jump function type changes.
27126         (ipa_read_jump_function): New parameter CS, pass it to
27127         ipa_set_jf_constant.  Adjust caller.
27128         (ipa_write_node_info): Stream controlled use count
27129         (ipa_read_node_info): Likewise.
27130         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
27131         asserting.
27132         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
27133         count.  Remove cloning-added reference if it reaches zero.
27134         * ipa-ref.c (ipa_find_reference): New function.
27136 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
27138         * config/i386/i386.c (processor_target_table): Modified default
27139         alignment values for AMD BD and BT architectures.
27141 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
27143         * tree-vect-generic.c (uniform_vector_p): Move ...
27144         * tree.c (uniform_vector_p): ... here.
27145         * tree.h (uniform_vector_p): Declare it.
27146         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27147         into a scalar.
27149 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
27151         PR tree-optimization/57230
27152         * tree-ssa-strlen.c (handle_char_store): Record length for
27153         array store from STRING_CST.
27155         PR tree-optimization/57230
27156         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27157         check.
27159 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
27161         * config/epiphany/epiphany.c (epiphany_init): Check size of
27162         NUM_MODES_FOR_MODE_SWITCHING.
27163         (epiphany_expand_prologue):
27164         Remove CONFIG_REGNUM initial value handling code.
27165         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27166         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27167         (emit_set_fp_mode, epiphany_mode_after): Likewise.
27168         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27169         Don't return 1 for FP_MODE_NONE.
27170         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27171         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27172         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27173         * config/epiphany/epiphany.md (save_config): New pattern.
27175 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
27177         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27179 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
27181         * config/i386/i386.md (memory): Handle sseishft1.
27182         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27183         (*vec_extractv2di_1): Ditto.
27185 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
27187         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27188         saved registers.
27190 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27192         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27193         Add mthumb/march=armv7-a multilib.
27194         Add mthumb/march=armv7-r multilib.
27195         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27197 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
27199         * config/v850/t-rtems: Add more multilibs.
27201 2013-05-10  Richard Biener  <rguenther@suse.de>
27203         PR tree-optimization/57214
27204         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27205         not propagate from SSA names that occur in abnormal PHI nodes.
27207 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
27209         * stor-layout.c (element_precision): New function.
27210         * machmode.h (element_precision): Declare it.
27211         * tree.c (build_minus_one_cst): New function.
27212         (element_precision): Likewise.
27213         * tree.h (build_minus_one_cst): Declare new function.
27214         (element_precision): Likewise.
27215         * fold-const.c (operand_equal_p): Use element_precision.
27216         (fold_binary_loc): Handle vector types.
27217         * convert.c (convert_to_integer): Use element_precision.
27218         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27219         separately.
27221 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
27223         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27224         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27225         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27226         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27227         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27228         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27229         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27230         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27231         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27232         (Uuw8): New constraints.
27233         (Usb4): Move into alphabetical order.
27234         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27235         (sd8_operand, ub8_operand, uw8_operand): New predicates.
27236         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27237         previously unnamed patterns.
27238         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27239         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27240         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27241         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27242         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
27243         of specific lengths.
27245 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
27247         * config/i386/i386.md (rotateinv): New code attr.
27248         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27249         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27250         roll $31, %eax, etc.
27252         PR tree-optimization/45216
27253         PR tree-optimization/57157
27254         * tree-ssa-forwprop.c (simplify_rotate): New function.
27255         (ssa_forward_propagate_and_combine): Call it.
27257 2013-05-10  Richard Biener  <rguenther@suse.de>
27259         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27260         disable peeling when we version for aliasing.
27261         (vector_alignment_reachable_p): Honor explicit user alignment.
27262         (vect_supportable_dr_alignment): Likewise.
27263         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27264         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27265         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27266         then peeling to arrange for the cost-model check to come first.
27268 2013-05-10  Alan Modra  <amodra@gmail.com>
27270         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27271         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27272         * configure: Regenerate.
27274 2013-05-10  Alan Modra  <amodra@gmail.com>
27276         PR target/55033
27277         * varasm.c (default_elf_select_section): Move !DECL_P check..
27278         (get_named_section): ..to here before calling get_section_name.
27279         Adjust assertion.
27280         (default_section_type_flags): Add DECL_P check.
27281         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27282         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27284 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
27286         * config/epiphany/epiphany.c (epiphany_expand_prologue):
27287         When using gen_stack_adjust_str with a register offset, add a
27288         REG_FRAME_RELATED_EXPR note.
27290 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
27292         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27293         (*vec_extractv4si_zext_mem): Ditto.
27294         (*vec_extractv2di): Add 0->x and x->x alternatives.
27295         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27296         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27298 2013-05-09  Jason Merrill  <jason@redhat.com>
27300         N3639 C++1y VLA support
27301         * gimplify.c (gimplify_vla_decl): Don't touch an existing
27302         DECL_VALUE_EXPR.
27304         * tree.c (build_constructor_va): New.
27305         * tree.h: Declare it.
27307 2013-05-09  Martin Jambor  <mjambor@suse.cz>
27309         PR lto/57084
27310         * gimple-fold.c (canonicalize_constructor_val): Call
27311         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27313 2013-05-09  Jan Hubicka  <jh@suse.cz>
27314             Richard Biener  <rguenther@suse.de>
27316         PR lto/54095
27317         * symtab.c (symtab_make_decl_local): Do not add private names.
27319 2013-05-09  Jan Hubicka  <jh@suse.cz>
27321         PR lto/54095
27322         * symtab.c (insert_to_assembler_name_hash): Handle clones.
27323         (unlink_from_assembler_name_hash): Likewise.
27324         (symtab_prevail_in_asm_name_hash, symtab_register_node,
27325         symtab_unregister_node, symtab_initialize_asm_name_hash,
27326         change_decl_assembler_name): Update.
27328 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
27330         * config/aarch64/aarch64.md: New movtf split.
27331         (*movtf_aarch64): Update.
27332         (aarch64_movdi_tilow): Handle TF modes and rename to
27333         aarch64_movdi_<mode>low.
27334         (aarch64_movdi_tihigh): Handle TF modes and rename to
27335         aarch64_movdi_<mode>high
27336         (aarch64_movtihigh_di): Handle TF modes and rename to
27337         aarch64_mov<mode>high_di
27338         (aarch64_movtilow_di): Handle TF modes and rename to
27339         aarch64_mov<mode>low_di
27340         (aarch64_movtilow_tilow): Remove spurious whitespace.
27341         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27342         splits.
27343         (aarch64_print_operand): Update.
27345 2013-05-09  Alan Modra  <amodra@gmail.com>
27347         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27348         powerpc64le.
27349         * configure: Regenerate.
27351 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27353         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27354         splitter preparation statements.
27355         * config/i386/sse.md (*vec_extract* splitters): Ditto.
27356         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27357         adjust_address_nv.
27359 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27361         * gimple-ssa-strength-reduction.c (count_candidates): Change
27362         return value to int.
27363         (analyze_candidates_and_replace): Change type of length to int.
27365 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27367         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27368         (*vec_extract<mode>): Use VI12_128 mode iterator.
27369         (*vec_extract<mode>_mem): Ditto.
27370         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27371         attribute.
27373 2013-05-08  Diego Novillo  <dnovillo@google.com>
27375         PR bootstrap/54659
27377         Revert:
27378         2012-08-17  Diego Novillo  <dnovillo@google.com>
27380         PR bootstrap/54281
27381         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27382         * config.in: Regenerate.
27383         * configure: Regenerate.
27384         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27386 2013-05-08  Jan Hubicka  <jh@suse.cz>
27388         PR lto/54095
27389         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27390         * cgraph.h (symtab_node_base): Add unique_name.
27391         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27392         input_overwrite_node, input_varpool_node): Stream unique_name.
27393         * cgraphclones.c (cgraph_create_virtual_clone,
27394         cgraph_function_versioning): Set unique_name.
27395         * ipa.c (function_and_variable_visibility): Set unique_name.
27397 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27399         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27400         (alloc_cand_and_find_basis): Restrict conditional candidate
27401         processing to CAND_MULTs.
27403 2013-05-08  Jan Hubicka  <jh@suse.cz>
27405         PR lto/54095
27406         lto-symtab.c (lto_symtab_symbol_p): New function.
27407         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27408         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27409         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27410         Skip static symbols.
27412 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
27414         PR tree-optimization/57200
27415         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27416         Only call inform if the preceding warning_at returns true.
27418 2013-05-07  Han Shen  <shenhan@google.com>
27420         * cfgexpand.c (record_or_union_type_has_array_p): New function.
27421         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27422         * common.opt (fstack-protector-strong): New option.
27423         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27424         * doc/invoke.texi (Optimization Options): Document
27425         "-fstack-protector-strong".
27426         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27428 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27430         * config/mips/mips.c (mips_machine_reorg2): Return 0.
27432 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
27434         * ira.c (update_equiv_regs): Add insn having equiv memory even if
27435         it is not lhs of the insn.
27436         (setup_reg_equiv): Remove insn having equiv memory which it is not
27437         lhs of the insn.
27438         * lra-constraints.c (process_address): Try to improve generation
27439         code for address base + disp.
27440         (lra_constraints): Make correct the code for checking insn setting
27441         up backward equivalence.  Remove insn only if it is in the init
27442         insn list.
27443         * lra-eliminations.c (update_reg_eliminate): Change return value.
27444         (lra_eliminate): Use the result.
27446 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
27448         * config/i386/sse.md (ssescalarnummask): New mode attribute.
27449         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27450         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27451         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27452         register target operands.
27453         (*vec_extractv8hi_sse2): New pattern.
27454         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27455         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27456         (*vec_extract<mode>_mem): New insn and split pattern.
27458 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
27460         * config/arm/arm.c (arm_asan_shadow_offset): New function.
27461         (TARGET_ASAN_SHADOW_OFFSET): Define.
27462         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27463         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27465 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27467         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27468         (incr_vec_index): Return -1 if increment not found.
27469         (create_add_on_incoming_edge): Assert if increment not found.
27470         (record_increment): Limit number of increments recorded.
27471         (all_phi_incrs_profitable): Return false if an increment not found.
27472         (replace_profitable_candidates): Don't process increments that were
27473         not recorded.
27474         (analyze_candidates_and_replace): Limit size of incr_vec.
27476 2013-05-07  Richard Biener  <rguenther@suse.de>
27478         * calls.c (special_function_p): setjmp-like functions are leaf.
27479         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27480         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27482 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
27484         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27485         (aarch64_simd_mov<mode>): New expander.
27486         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27487         (aarch64_simd_mov_to_<mode>high): Likewise.
27488         (aarch64_simd_mov_from_<mode>low): Likewise.
27489         (aarch64_simd_mov_from_<mode>high): Likewise.
27490         (aarch64_dup_lane<mode>): Update.
27491         (aarch64_dup_lanedi): New instruction pattern.
27492         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27493         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27495 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27497         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27498         (replace_mult_candidate): Remove unnecessary argument; remove
27499         unnecessary parameter from call to introduce_cast_before_cand.
27500         (replace_unconditional_candidate): Remove unnecessary parameter
27501         from call to replace_mult_candidate.
27502         (replace_conditional_candidate): Likewise.
27503         (insert_initializers): Use make_temp_ssa_name.
27504         (introduce_cast_before_cand): Remove unnecessary argument; use
27505         make_temp_ssa_name.
27506         (replace_one_candidate): Remove unnecessary argument; remove
27507         unnecessary parameter from calls to introduce_cast_before_cand.
27508         (replace_profitable_candidates): Remove unnecessary parameters
27509         from calls to replace_one_candidate.
27511 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27513         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27514         phi def as possibly hiding a basis for a CAND_ADD whose operands
27515         have been commuted in the analysis.
27516         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27518 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27520         * config/aarch64/aarch64.md
27521         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27522         shift value between 0-4.
27524 2013-05-07  Richard Biener  <rguenther@suse.de>
27526         * double-int.h (rshift): New overload.
27527         * double-int.c (rshift): New function.
27528         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27529         (create_reference_ops_from_ref): Remove.
27530         (vn_reference_insert): Use shared ops for constructing the
27531         reference and copy it.
27533 2013-05-07  Richard Biener  <rguenther@suse.de>
27535         PR middle-end/57190
27536         * tree-eh.c (sink_clobbers): Properly propagate
27537         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27539 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
27541         PR tree-optimization/57149
27542         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27543         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27544         collect_phi_def_edges, execute_late_warn_uninitialized): Use
27545         uninit_undefined_value_p instead of ssa_undefined_value_p.
27547         PR debug/57184
27548         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27549         for modifier == EXPAND_INITIALIZER.
27551 2013-05-07  Anton Blanchard  <anton@samba.org>
27553         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27554         for powerpc64 little endian.
27555         * configure: Regenerate.
27557 2013-05-06  Graham Stott  <grahams@btinternet.com>
27559         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27560         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27561         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27562         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27564 2013-05-06  Graham Stott  <grahams@btinternet.com>
27566         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27567         codes which allow non-lvalues.
27569 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
27571         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27572         components are all 1s.
27573         (integer_minus_onep): New function.
27574         * tree.h (integer_minus_onep): Declare it.
27575         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27576         integer_minus_onep instead of integer_all_onesp.
27578 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27580         PR target/52933
27581         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27582         variations of these patterns.
27584 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27586         * config/i386/i386.md (isa): Add x64_sse4 member.
27587         (enabled): Handle x64_sse4.
27588         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27589         instruction for 64bit SSE4_1 targets.  Update insn attributes.
27590         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27591         instruction for SSE4_1 targets.  Update insn attributes.
27592         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27593         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27594         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27595         const_1 selector.
27596         (*vec_extractv4si): Rename from *sse4_1_pextrd.
27597         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27598         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27600 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27602         PR target/57108
27603         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27605 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
27607         * final.c (do_assembler_dialects): Don't handle curly braces and
27608         vertical bar escaped by % as dialect delimiters.
27609         (output_asm_insn): Print curly braces and vertical bar if escaped
27610         by % and ASSEMBLER_DIALECT defined.
27611         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27612         * doc/tm.texi: Regenerated.
27614 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27616         * config/mips/mips.c: Include tree-pass.h.
27617         (mips_reorg): Split in pre- and post-dbr_schedule parts.
27618         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27619         (pass_mips_machine_reorg2): New machine specific pass.
27620         (insert_pass_mips_machine_reorg2): New pass plugin definition.
27621         (mips_option_override): Register the new pass.
27622         * rtl.h (cleanup_barriers): Remove prototype.
27623         (dbr_schedule): Likewise.
27624         * jump.c (cleanup_barriers): Make static.
27625         * reorg.c (dbr_schedule): Likewise.
27627 2013-05-06  Richard Biener  <rguenther@suse.de>
27629         PR tree-optimization/57185
27630         * tree-parloops.c (add_field_for_reduction): Handle anonymous
27631         SSA names properly.
27633 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27635         PR target/57106
27636         * config/i386/i386.c (add_parameter_dependencies): Add dependence
27637         between "first_arg" and "insn", not "last" and "insn".
27639 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27641         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27642         (find_candidates_in_block): Re-enable slsr_process_phi.
27643         (create_phi_basis): Fix double counting of candidate adjustment.
27645 2013-05-06  Richard Biener  <rguenther@suse.de>
27647         PR middle-end/57147
27648         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27649         the edge is also fallthru, preserve it and just clear the
27650         abnormal flag.
27651         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27652         also complex, preserve that and just clear the fallthru flag.
27653         * tree-inline.c (update_ssa_across_abnormal_edges): Also
27654         update virtual operands.
27656 2013-05-06  Alan Modra  <amodra@gmail.com>
27658         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27659         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27660         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27661         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27662         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27663         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27665 2013-05-06  Alan Modra  <amodra@gmail.com>
27667         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27668         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
27669         (DEFAULT_ASM_ENDIAN): Define.
27670         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27671         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27672         Update -K PIC clause from sysv4.h.
27673         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27674         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27676 2013-05-06  Alan Modra  <amodra@gmail.com>
27678         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27679         twice for little-endian.
27680         (ashrdi3_no_power, ashrdi3): Support little-endian.
27682 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27684         PR target/55303
27685         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27686         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27687         related expanders.
27688         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27689         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27690         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27691         New predicates.
27693 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
27694             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27696         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27697         * config/pa/pa.opt: Make mbig-switch a no-op.
27698         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27699         (CASE_VECTOR_MODE): Always return SImode.
27700         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27701         for the !TARGET_BIG_SWITCH case.
27702         * config/pa/pa-linux.h: Likewise.
27703         * config/pa/pa-openbsd.h: Likewise.
27704         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27705         * config/pa/pa.md (short_jump): Remove define_insn.
27706         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27707         (casesi0): Remove define_insn.
27708         (type): Remove btable_branch.
27709         (pa_combine_type): Likewise.
27710         (in_nullified_branch_delay): Likewise.
27711         (in_call_delay): Likewise.
27712         (define_delay): Likewise.
27713         (define_insn_reservation "Z3"): Likewise.
27714         (define_insn_reservation "Z4"): Likewise.
27715         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27716         (pa_adjust_insn_length): Remove adjustment for btable branches.
27717         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27718         and mno-big-switch
27720 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
27722         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27723         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27724         Add m->r,x alternatives.
27725         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27726         splitters using SWI48x mode iterator.
27727         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
27728         TARGET_64BIT.  Add m->x alternative.
27729         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27730         Add o->x alternative.  Enable for TARGET_SSE.
27731         (sse_storeq): Remove expander.
27732         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27733         with memory input operand.
27734         (*vec_extractv2di_1 splitter): New.
27735         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27736         * config/i386/i386.md (ssevecmodelower): New mode attribute.
27738 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27740         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
27741         (INT_LOWPART): Delete.
27742         (extract_MB): Adjust.
27743         (extract_ME): Adjust.
27744         (print_operand): Adjust.
27746 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27748         * config/rs6000/predicates.md (reg_or_add_cint_operand,
27749         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27750         (reg_or_logical_cint_operand, easy_fp_constant,
27751         logical_const_operand): Delete "CONST_DOUBLE" case.
27752         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27753         "HOST_BITS_PER_WIDE_INT == 64" test.
27754         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
27755         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27756         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27757         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27758         test.
27759         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27760         CONST_DOUBLE DImode/VOIDmode case.
27761         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27762         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27763         CONST_DOUBLE VOIDmode case.
27764         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27765         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27766         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27767         Delete CONST_DOUBLE case.
27768         (splitters for mov FMOVE64 const_double): Delete
27769         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27770         "HOST_BITS_PER_WIDE_INT >= 64" test.
27771         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27772         case.
27773         (mov DI const_double): Delete.
27775 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
27777         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27778         on op shows all bits zero in mode of a lowpart subreg, return zero.
27780 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27782         PR target/57150
27783         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27784         to save TFmode registers and DImode to save TImode registers for
27785         caller save operations.
27786         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27787         mark being partially clobbered since they only use the first
27788         double word.
27790         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27791         and TDmode only use the upper 64-bits of each VSX register.
27793 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27795         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27796         (find_candidates_in_block): Disable slsr_process_phi.
27798 2013-05-03  Guozhi Wei  <carrot@google.com>
27800         * coverage.c (coverage_obj_init): Move the construction of gcov
27801         constructor to ...
27802         (build_init_ctor): ... here.
27804 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27806         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27807         (slsr_cand_d): Redefine def_phi.
27808         (stride_status, phi_adjust_status, count_phis_status): New enums.
27809         (find_phi_def): New.
27810         (find_basis_for_base_expr): New.
27811         (find_basis_for_candidate): Handle hidden bases.
27812         (alloc_cand_and_find_basis): Handle phi candidates.
27813         (slsr_process_phi): New.
27814         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27815         (create_mul_imm_cand): Likewise.
27816         (create_add_ssa_cand): Exclude phi base candidates.
27817         (create_add_imm_cand): Likewise.
27818         (slsr_process_cast): Likewise.
27819         (slsr_process_copy): Likewise.
27820         (find_candidates_in_block): Handle phi candidates.
27821         (dump_candidate): Likewise.
27822         (unconditional_cands): Delete.
27823         (unconditional_cands_with_known_stride_p): Delete.
27824         (phi_dependent_cand_p): New.
27825         (cand_increment): Handle phi-dependent candidates.
27826         (replace_dependent): Delete.
27827         (replace_mult_candidate): New.
27828         (replace_unconditional_candidate): New.
27829         (incr_vec_index): Move to avoid forward reference.
27830         (create_add_on_incoming_edge): New.
27831         (create_phi_basis): New.
27832         (replace_dependents): Delete.
27833         (replace_conditional_candidate): New.
27834         (phi_add_costs): New.
27835         (replace_uncond_cands_and_profitable_phis): New.
27836         (record_increment): Handle phi adjustments.
27837         (record_phi_increments): New.
27838         (record_increments): Handle phi adjustments.
27839         (phi_incr_cost): New.
27840         (lowest_cost_path): Handle phis.
27841         (total_savings): Likewise.
27842         (analyze_increments): Likewise.
27843         (ncd_with_phi): New.
27844         (ncd_of_cand_and_phis): New.
27845         (nearest_common_dominator_for_cands): Handle phi increments.
27846         (all_phi_incrs_profitable): New.
27847         (replace_profitable_candidates): Handle phi-dependent candidates.
27848         (analyze_candidates_and_replace): Likewise.
27850 2013-05-03  Teresa Johnson  <tejohnson@google.com>
27852         PR bootstrap/57154
27853         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27854         do not exceed REG_BR_PROB_BASE.
27856 2013-05-03  Jeff Law  <law@redhat.com>
27858         PR tree-optimization/57144
27859         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27860         operand of the condition will bit into the new type when eliminating
27861         a cast feeding a condition.
27863 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
27865         PR rtl-optimization/57130
27866         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27867         of COMPARE as in_code to the recursive call if needed.
27869 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
27871         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27872         (enabled): Handle new members.
27873         * config/i386/sse.md (*vec_concatv2si): Merge from
27874         *vec_concatv2si_sse2 and vec_concatv2si_sse.
27875         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27877 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27879         PR tree-optimization/57027
27880         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27881         for fnms opportunity, check we got the prerequisite kind
27882         of tree / gimple before using accessor functions.
27884 2013-05-03  Richard Biener  <rguenther@suse.de>
27886         * double-int.h (lshift): New overload without precision
27887         and arith argument.
27888         (operator *=, operator +=, operator -=): Move ...
27889         * double-int.c (operator *=, operator +=, operator -=): ... here
27890         and implement more efficiently.
27891         (mul_double_with_sign): Remove.
27892         (lshift_double): Adjust to take unsinged shift argument, push
27893         dispatching code to callers.
27894         (mul_double_wide_with_sign): Add early out for callers that
27895         are not interested in high parts or overflow.
27896         (lshift): New function.
27897         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27898         dispatch code here.
27899         (lrotate, rrotate): Use logical shifts.
27900         * expr.c (get_inner_reference): Use lshift.
27901         * fixed-value.c (do_fixed_divide): Likewise.
27902         * tree-dfa.c (get_ref_base_and_extent): Likewise.
27903         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27904         (indirect_refs_may_alias_p): Likewise.
27905         (stmt_kills_ref_p_1): Likewise.
27907 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27909         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
27911 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27913         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
27914         scalar form of FABD instruction.
27916 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
27918         * lra-constraints.c (process_alt_operands): Add checking alt
27919         number to choose the best alternative.
27921 2013-05-02  Richard Biener  <rguenther@suse.de>
27923         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27924         bitmap and its handling.
27925         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27927 2013-05-02  Richard Biener  <rguenther@suse.de>
27929         PR middle-end/57140
27930         * tree-inline.c (copy_loops): Properly handle removed loops.
27931         (copy_cfg_body): Mark destination loops for fixup if source
27932         loops needed fixup.
27934 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
27936         PR target/56732
27937         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27938         generating simple_return for naked functions.
27940 2013-05-02  Martin Jambor  <mjambor@suse.cz>
27942         PR middle-end/56988
27943         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27944         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27945         flags match.
27946         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27947         ipa_agg_replacement_value structures.
27948         (known_aggs_to_agg_replacement_list): Likewise.
27949         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27950         (read_agg_replacement_chain): Likewise.
27951         (ipcp_transform_function): Also check that by_ref flags match.
27953 2013-05-02  Richard Biener  <rguenther@suse.de>
27955         * graphds.h (struct graph): Add obstack member.
27956         * graphds.c (new_graph): Initialize obstack and allocate
27957         vertices from it.
27958         (add_edge): Allocate edge from the obstack.
27959         (free_graph): Free the obstack instead of all edges and vertices.
27961 2013-05-02  Teresa Johnson  <tejohnson@google.com>
27963         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27964         divides.
27965         * cfg.c (update_bb_profile_for_threading): Ditto.
27966         * tree-inline.c (copy_bb): Ditto.
27967         (copy_edges_for_bb): Ditto.
27968         (initialize_cfun): Ditto.
27969         (copy_cfg_body): Ditto.
27970         (expand_call_inline): Ditto.
27971         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27972         (estimate_node_size_and_time): Ditto.
27973         (inline_merge_summary): Ditto.
27974         * cgraphclones.c (cgraph_clone_edge): Ditto.
27975         (cgraph_clone_node): Ditto.
27976         * sched-rgn.c (compute_dom_prob_ps): Ditto.
27977         (compute_trg_info): Ditto.
27979 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27981         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27982         S reg when fp attribute set.
27983         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27985 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27987         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27988         New pattern.
27989         (*and_one_cmplsi3_compare0_uxtw): Likewise.
27990         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27991         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27993 2013-05-02  Richard Biener  <rguenther@suse.de>
27995         * tree-scalar-evolution.c (scev_info_hasher): Remove.
27996         (struct instantiate_cache_entry): New type.
27997         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27998         (struct instantiate_cache_type): New type.
27999         (set_instantiated_value, get_instantiated_value): Remove.
28000         (get_instantiated_value_entry): New function.
28001         (instantiate_scev_name): Use the new cache and adjust.
28002         (instantiate_scev_poly): Adjust.
28003         (instantiate_scev_binary): Likewise.
28004         (instantiate_array_ref): Likewise.
28005         (instantiate_scev_convert): Likewise.
28006         (instantiate_scev_not): Likewise.
28007         (instantiate_scev_3): Likewise.
28008         (instantiate_scev_2): Likewise.
28009         (instantiate_scev_r): Likewise.
28010         (instantiate_scev): Likewise.
28011         (resolve_mixers): Likewise.
28013 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
28015         PR target/57091
28016         * lra-constraints.c (best_small_class_operands_num): Remove.
28017         (process_alt_operands): Remove small_class_operands_num.  Take
28018         small classes operands into losers and only if the operand is not
28019         matched.  Modify debugging output.
28020         (curr_insn_transform): Remove best_small_class_operands_num.
28021         Print insn name.
28023 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28025         * config/aarch64/aarch64-builtins.c
28026         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
28027         * config/aarch64/aarch64-simd-builtins.def
28028         (reduc_splus_): Add new modes.
28029         (reduc_uplus_): New.
28030         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
28031         (reduc_uplus_v4sf): Likewise.
28032         (reduc_splus_v4sf): Likewise.
28033         (aarch64_addv<mode>): Likewise.
28034         (reduc_uplus_<mode>): Likewise.
28035         (reduc_splus_<mode>): Likewise.
28036         (aarch64_addvv2di): Likewise.
28037         (reduc_uplus_v2di): Likewise.
28038         (reduc_splus_v2di): Likewise.
28039         (aarch64_addvv2si): Likewise.
28040         (reduc_uplus_v2si): Likewise.
28041         (reduc_splus_v2si): Likewise.
28042         (reduc_<sur>plus_<mode>): New.
28043         (reduc_<sur>plus_v2di): Likewise.
28044         (reduc_<sur>plus_v2si): Likewise.
28045         (reduc_<sur>plus_v4sf): Likewise.
28046         (aarch64_addpv4sf): Likewise.
28047         * config/aarch64/arm_neon.h
28048         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
28049         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
28050         add UNSPEC_SADDV, UNSPEC_UADDV.
28051         (SUADDV): New.
28052         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
28054 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28056         * config/aarch64/arm_neon.h
28057         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
28059 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28061         * config/aarch64/aarch64-builtins
28062         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
28064 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28066         * config/aarch64/aarch64-simd-builtins.def
28067         (reduc_smax_): New.
28068         (reduc_smin_): Likewise.
28069         (reduc_umax_): Likewise.
28070         (reduc_umin_): Likewise.
28071         (reduc_smax_nan_): Likewise.
28072         (reduc_smin_nan_): Likewise.
28073         (fmax): Remove.
28074         (fmin): Likewise.
28075         (smax): Update for V2SF, V4SF and V2DF modes.
28076         (smin): Likewise.
28077         (smax_nan): New.
28078         (smin_nan): Likewise.
28079         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
28080         (<su><maxmin><mode>3): ...This, refactor.
28081         (s<maxmin><mode>3): New.
28082         (<maxmin_uns><mode>3): Likewise.
28083         (reduc_<maxmin_uns>_<mode>): Refactor.
28084         (reduc_<maxmin_uns>_v4sf): Likewise.
28085         (reduc_<maxmin_uns>_v2si): Likewise.
28086         (aarch64_<fmaxmin><mode>: Remove.
28087         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
28088         new builtin names.
28089         (vmin<q>_f<32,64>): Likewise.
28090         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28091         (FMAXMIN): New.
28092         (su): Add mappings for smax, smin, umax, umin.
28093         (maxmin): New.
28094         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28095         (FMAXMIN): Rename as...
28096         (FMAXMIN_UNS): ...This.
28097         (maxminv): Remove.
28098         (fmaxminv): Likewise.
28099         (fmaxmin): Likewise.
28100         (maxmin_uns): New.
28101         (maxmin_uns_op): Likewise.
28103 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28105         * config/aarch64/arm_neon.h
28106         (vac<ge, gt><sd>_f<32, 64>): Rename to...
28107         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
28108         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
28110 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28112         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
28113         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
28115 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28117         * config/aarch64/aarch64-simd.md
28118         (vcond<mode>_internal): Handle special cases for constant masks.
28119         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
28120         (vcondu<mode><mode>): Likewise.
28121         (vcond<v_cmp_result><mode>): New.
28123 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28125         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
28126         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
28127         * config/aarch64/aarch64-simd-builtins.def
28128         (cmeq): Update to BUILTIN_VALLDI.
28129         (cmgt): Likewise.
28130         (cmge): Likewise.
28131         (cmle): Likewise.
28132         (cmlt): Likewise.
28133         * config/aarch64/arm_neon.h
28134         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
28135         to builtins or C as appropriate.
28137 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28139         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28140         (cmgeu): ...This.
28141         (cmhi): Rename to...
28142         (cmgtu): ...This.
28143         * config/aarch64/aarch64-simd.md
28144         (simd_mode): Add SF.
28145         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28146         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28147         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28148         (cstore<mode>_neg): ...This.
28149         * config/aarch64/iterators.md
28150         (VALLF): new.
28151         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28152         (COMPARISONS): New.
28153         (UCOMPARISONS): Likewise.
28154         (optab): Add missing comparisons.
28155         (n_optab): New.
28156         (cmp_1): Likewise.
28157         (cmp_2): Likewise.
28158         (CMP): Likewise.
28159         (cmp): Remove.
28160         (VCMP_S): Likewise.
28161         (VCMP_U): Likewise.
28162         (V_cmp_result): Add DF, SF modes.
28163         (v_cmp_result): Likewise.
28164         (v): Likewise.
28165         (vmtype): Likewise.
28166         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28168 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
28170         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28171         define_insn to define_insn_and_split.
28172         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28173         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28174         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28175         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28176         (thumb2_negscc): Likewise.
28178 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
28180         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28182 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
28184         * config/arm/thumb2.md: Remove trailing whitespaces.
28186 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28188         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28189         Use gen_int_mode rather than GEN_INT.
28191 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
28193         * value-prof.c (stream_in_histogram_value): Remove the strayed
28194         debug_gimple_stmt.
28196 2013-04-30  Richard Biener  <rguenther@suse.de>
28198         PR middle-end/57122
28199         * cfghooks.c (split_edge): Properly check for the loop latch edge.
28201 2013-04-30  Richard Biener  <rguenther@suse.de>
28203         PR middle-end/57107
28204         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28206 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
28208         PR rtl-optimization/56957
28209         PR rtl-optimization/57105
28210         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28211         variable.  Use just INSN_UID for determining whether an insn
28212         should be only disconnected from the insn stream.
28213         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28215 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
28217         PR tree-optimization/57104
28218         * tsan.c (instrument_expr): Don't instrument accesses to
28219         DECL_HARD_REGISTER VAR_DECLs.
28221 2013-04-30  Richard Biener  <rguenther@suse.de>
28223         * function.h (loops_for_fn): New inline function.
28224         (set_loops_for_fn): Likewise.
28225         * cfgloop.h (place_new_loop): Add struct function parameter.
28226         (get_loop): Likewise.
28227         (get_loops): Likewise.
28228         (number_of_loops): Likewise.
28229         (fel_next): Adjust.
28230         (fel_init): Likewise.
28231         * cfg.c (get_loop_copy): Adjust.
28232         * cfgloop.c (flow_loops_dump): Likewise.
28233         (record_loop_exits): Likewise.
28234         (verify_loop_structure): Likewise.
28235         * cfgloopanal.c (mark_irreducible_loops): Likewise.
28236         (estimate_reg_pressure_cost): Likewise.
28237         (mark_loop_exit_edges): Likewise.
28238         * cfgloopmanip.c (place_new_loop): Likewise.
28239         (add_loop): Likewise.
28240         (duplicate_loop): Likewise.
28241         * graph.c (draw_cfg_nodes): Likewise.
28242         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28243         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28244         (extract_affine_chrec): Likewise.
28245         (build_scop_iteration_domain): Likewise.
28246         * graphite.c (graphite_initialize): Likewise.
28247         * ira-build.c (create_loop_tree_nodes): Likewise.
28248         (more_one_region_p): Likewise.
28249         (rebuild_regno_allocno_maps): Likewise.
28250         (mark_loops_for_removal): Likewise.
28251         (mark_all_loops_for_removal): Likewise.
28252         (remove_unnecessary_regions): Likewise.
28253         (ira_build): Likewise.
28254         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28255         * loop-init.c (fix_loop_structure): Likewise.
28256         (gate_rtl_move_loop_invariants): Likewise.
28257         (gate_rtl_unswitch): Likewise.
28258         (gate_rtl_unroll_and_peel_loops): Likewise.
28259         (rtl_doloop): Likewise.
28260         * lto-streamer-in.c (input_cfg): Likewise.
28261         * lto-streamer-out.c (output_cfg): Likewise.
28262         * modulo-sched.c (sms_schedule): Likewise.
28263         * predict.c (tree_estimate_probability): Likewise.
28264         (tree_estimate_probability_driver): Likewise.
28265         (estimate_loops): Likewise.
28266         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28267         (move_sese_region_to_fn): Likewise.
28268         (debug_loop_num): Likewise.
28269         * tree-chrec.c (chrec_evaluate): Likewise.
28270         (hide_evolution_in_other_loops_than_loop): Likewise.
28271         (chrec_component_in_loop_num): Likewise.
28272         (reset_evolution_in_loop): Likewise.
28273         (evolution_function_is_invariant_rec_p): Likewise.
28274         * tree-if-conv.c (main_tree_if_conversion): Likewise.
28275         * tree-inline.c (copy_loops): Likewise.
28276         (copy_cfg_body): Likewise.
28277         (tree_function_versioning): Likewise.
28278         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28279         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28280         Likewise.
28281         (add_to_evolution_1): Likewise.
28282         (scev_const_prop): Likewise.
28283         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28284         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28285         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28286         (tree_ssa_lim_initialize): Likewise.
28287         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28288         (verify_loop_closed_ssa): Likewise.
28289         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
28290         (tree_ssa_loop_im): Likewise.
28291         (tree_ssa_loop_unswitch): Likewise.
28292         (tree_vectorize): Likewise.
28293         (check_data_deps): Likewise.
28294         (tree_ssa_loop_ivcanon): Likewise.
28295         (tree_ssa_loop_bounds): Likewise.
28296         (tree_complete_unroll): Likewise.
28297         (tree_complete_unroll_inner): Likewise.
28298         (tree_parallelize_loops): Likewise.
28299         (tree_ssa_loop_prefetch): Likewise.
28300         (tree_ssa_loop_ivopts): Likewise.
28301         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28302         * tree-vectorizer.c (vectorize_loops): Likewise.
28304 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
28306         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28307         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28308         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28309         with EABI_LINK_SPEC.
28311 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28313         PR target/44578
28314         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28315         alternative.
28317 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
28319         PR target/57097
28320         * lra-constraints.c (process_alt_operands): Discourage a bit more
28321         using memory for pseudos.  Print cost dump for alternatives.
28322         Modify cost values for conflicts with early clobbers.
28323         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28325 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28327         PR target/57098
28328         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28330 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28332         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28333         from/to S register.
28334         (movdi_aarch64): Support LDR/STR from/to D register.
28336 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28338         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28339         or higher by default.
28341 2013-04-29  Richard Biener  <rguenther@suse.de>
28343         PR middle-end/57075
28344         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28345         even if not adding abnormal edges for calls that can make
28346         abnormal gotos.
28348 2013-04-29  Richard Biener  <rguenther@suse.de>
28350         PR middle-end/57103
28351         * tree-cfg.c (move_stmt_op): Fix condition under which to update
28352         TREE_BLOCK.
28353         (move_stmt_r): Remove redundant checking.
28355 2013-04-29  Teresa Johnson  <tejohnson@google.com>
28357         PR bootstrap/57077
28358         * basic-block.h (apply_scale): New function.
28359         (apply_probability): Use apply_scale.
28360         * gimple-streamer-in.c (input_bb): Ditto.
28361         * lto-streamer-in.c (input_cfg): Ditto.
28362         * lto-cgraph.c (merge_profile_summaries): Ditto.
28363         * tree-optimize.c (execute_fixup_cfg): Ditto.
28364         * tree-inline.c (copy_bb): Update comment to use apply_scale.
28365         (copy_edges_for_bb): Ditto.
28366         (copy_cfg_body): Ditto.
28368 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28370         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28371         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28372         (tail_merge_optimize): Handle current_loops == NULL.
28374 2013-04-26  Jeff Law  <law@redhat.com>
28376         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28377         (simplify_cond_using_ranges): Generalize code to simplify
28378         COND_EXPRs where one argument is a constant and the other
28379         is an SSA_NAME created by an integral type conversion.
28381 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28383         * config/arm/arm.md (store_minmaxsi): Use only when
28384         optimize_insn_for_size_p.
28386 2013-04-29  Christian Bruel  <christian.bruel@st.com>
28388         PR target/57108
28389         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28391 2013-04-29  Richard Biener  <rguenther@suse.de>
28393         PR middle-end/57089
28394         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28395         loop tree make sure to schedule a fixup for the child as well.
28396         (expand_omp_for_generic): Properly add loops.
28397         (expand_omp_for_static_nochunk): Likewise.
28398         (expand_omp_for_static_chunk): Likewise.
28399         (expand_omp_for): For the degenerate case fixup loops.
28400         (expand_omp_sections): Fix default bb placement in loops.
28401         (expand_omp_atomic_pipeline): Properly add loops.
28403 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28405         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28407 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28409         * tree-ssa-tail-merge.c: Update header comment.
28411 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28413         * config/aarch64/arm_neon.h
28414         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28415         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28416         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28417         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28418         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28419         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28420         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28421         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28423 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28425         * config/aarch64/aarch64-simd.md
28426         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28427         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28428         fix_trunc, fixuns_trunc.
28429         (ftrunc<VDQF:mode>2): New.
28430         * config/aarch64/iterators.md (optab): Add fix, fixuns.
28431         (fix_trunc_optab): New.
28433 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28435         * config/aarch64/aarch64-builtins.c
28436         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28437         iceilf, lround, iroundf.
28439 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28441         PR target/54349
28442         * config/i386/i386.h (enum ix86_tune_indices)
28443         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28444         New, split from X86_TUNE_INTER_UNIT_MOVES.
28445         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28446         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28447         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28448         (TARGET_INTER_UNIT_MOVES): Remove.
28449         * config/i386/i386.c (initial_ix86_tune_features): Update.
28450         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28451         (ix86_expand_convert_uns_didf_sse): Use
28452         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28453         (ix86_expand_vector_init_one_nonzero): Ditto.
28454         (ix86_expand_vector_init_interleave): Ditto.
28455         (inline_secondary_memory_needed): Return true for moves from SSE class
28456         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28457         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28458         * config/i386/constraints.md (Yi, Ym): Depend on
28459         TARGET_INTER_UNIT_MOVES_TO_VEC.
28460         (Yj, Yn): New constraints.
28461         * config/i386/i386.md (*movdi_internal): Change constraints of
28462         operand 1 from Yi to Yj and from Ym to Yn.
28463         (*movsi_internal): Ditto.
28464         (*movdf_internal): Ditto.
28465         (*movsf_internal): Ditto.
28466         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28467         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28468         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28469         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28470         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28471         * config/i386/sse.md (movdi_to_sse): Ditto.
28472         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28473         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28474         TARGET_INTER_UNIT_MOVES.
28475         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28476         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28477         instead of TARGET_INTER_UNIT_MOVES.
28478         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28479         operand 1 from Yi to Yj and from Ym to Yn.
28481 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28483         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28484         (float_truncate_hi_): Likewise.
28485         (float_extend_lo_): Likewise.
28486         (float_truncate_lo_): Likewise.
28487         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28488         (aarch64_float_extend_lo_v2df): Likewise.
28489         (vec_unpacks_hi_v4sf): Likewise.
28490         (aarch64_float_truncate_lo_v2sf): Likewise.
28491         (aarch64_float_truncate_hi_v4sf): Likewise.
28492         (vec_pack_trunc_v2df): Likewise.
28493         (vec_pack_trunc_df): Likewise.
28495 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28497         * config/aarch64/aarch64-builtins.c
28498         (aarch64_fold_builtin): Fold float conversions.
28499         * config/aarch64/aarch64-simd-builtins.def
28500         (floatv2si, floatv4si, floatv2di): New.
28501         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28502         * config/aarch64/aarch64-simd.md
28503         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28504         * config/aarch64/iterators.md (FLOATUORS): New.
28505         (optab): Add float, floatuns.
28506         (su_optab): Likewise.
28508 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28510         * config/aarch64/aarch64-builtins.c
28511         (aarch64_builtin_vectorized_function): Use new names for
28512         fcvt builtins.
28513         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28514         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28515         (fcvtzu): Split as...
28516         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28517         (fcvtas): Split as...
28518         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28519         (fcvtau): Split as...
28520         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28521         (fcvtps): Split as...
28522         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28523         (fcvtpu): Split as...
28524         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28525         (fcvtms): Split as...
28526         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28527         (fcvtmu): Split as...
28528         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28529         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28530         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28531         (lfrintnusf, lfrintnudf): Likewise.
28532         * config/aarch64/aarch64-simd.md
28533         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28534         define_insn.
28535         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28536         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28537         (fcvt_pattern): Likewise.
28539 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28541         * config/aarch64/aarch64-simd.md
28542         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28543         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28545 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28547         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28548         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28549         (vrnd<a,m,n,p>_f32): Implement using builtins.
28550         (vrnd<i,x><q>_f<32, 64>): New.
28552 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28554         * config/aarch64/aarch64-builtins.c
28555         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28556         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28557         (frintz): Rename to...
28558         (btrunc): ...this.
28559         (frintp): Rename to...
28560         (ceil): ...this.
28561         (frintm): Rename to...
28562         (floor): ...this.
28563         (frinti): Rename to...
28564         (nearbyint): ...this.
28565         (frintx): Rename to...
28566         (rint): ...this.
28567         (frinta): Rename to...
28568         (round): ...this.
28569         * config/aarch64/aarch64-simd.md
28570         (aarch64_frint<frint_suffix><mode>): Delete.
28571         (<frint_pattern><mode>2): Convert to insn.
28572         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28573         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28574         (frint_pattern): Likewise.
28575         (frint_suffix): Likewise.
28577 2013-04-29  Richard Biener  <rguenther@suse.de>
28579         PR tree-optimization/57081
28580         * loop-init.c: Include tree-flow.h.
28581         (loop_optimizer_finalize): Free number of iteration estimates.
28582         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28584 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
28586         PR tree-optimization/57083
28587         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28588         non-singleton shift count range, zero extend low_bound for uns case.
28590         * config/i386/predicates.md (general_vector_operand): New predicate.
28591         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28592         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28593         if they aren't nonimmediate operands.  If their original values
28594         satisfy const_vector_equal_evenodd_p, don't shift them.
28595         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28596         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
28597         if not nonimmediate_operand.
28598         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28599         instead of register_operand.
28600         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28602 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28604         * stor-layout.c (finalize_size_functions): Allocate a structure and
28605         reset cfun before dumping the functions.
28607 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
28609         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28611         PR target/56866
28612         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28613         use xop_pmacsdqh if uns_p.
28614         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28615         the immediate rotate count.
28617 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
28619         * rtl.h (struct rtx_def): Add comment for field jump.
28620         (LRA_SUBREG_P): New macro.
28621         * recog.c (register_operand): Check LRA_SUBREG_P.
28622         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28623         stack frame.
28624         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28625         (lra_final_code_change): Skip subreg change for operators.
28626         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28627         if there are no operand changes.
28628         * lra-constraints.c (curr_insn_set): New.
28629         (match_reload): Set LRA_SUBREG_P.
28630         (emit_spill_move): Ditto.
28631         (check_and_process_move): Use curr_insn_set. Process only single
28632         set insns.  Don't initialize sec_mem_p and change_p.
28633         (simplify_operand_subreg): Use LRA_SUBREG_P.
28634         (reg_in_class_p): New function.
28635         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28636         of #ifdef.  Add code to remove cycling.
28637         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28638         non-null disp.  Reload inner instead of disp when base and index
28639         are null.  Try to put lo_sum into register.
28640         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28641         (check_and_process_move): Move code for move cost check to
28642         simple_move_p.  Remove equiv_substitution.
28643         (simple_move_p): New function.
28644         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28645         curr_insn_set.  Call check_and_process_move only for single set
28646         insns.  Use the new function.  Move call of check_and_process_move
28647         after operand equiv substitution and address process.
28649 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28651         PR go/57045
28652         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28653         with nonlocal goto receivers or returns twice calls, ignore
28654         unininitialized values from abnormal edges to nl goto receiver
28655         or returns twice call.
28657 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28659         PR tree-optimization/57051
28660         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28661         and VEC_RSHIFT_EXPR if shift count is a multiple of element
28662         bitsize.
28664 2013-04-26  Richard Biener  <rguenther@suse.de>
28666         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28667         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
28668         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28669         (fixup_loop_arrays_after_move): New function.
28670         (move_sese_region_to_fn): Properly outline the loop tree parts
28671         of the SESE region.
28673 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
28675         * config/i386/i386.md (type, unit): Fix long lines.
28677 2013-04-26  Richard Biener  <rguenther@suse.de>
28679         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28680         (lto-streamer-out.o): Likewise.
28681         * cfgloop.c (init_loops_structure): Export, add struct function
28682         argument and adjust.
28683         (flow_loops_find): Adjust.
28684         * cfgloop.h (enum loop_estimation): Add EST_LAST.
28685         (init_loops_structure): Declare.
28686         * lto-streamer-in.c: Include cfgloop.h.
28687         (input_cfg): Input the loop tree.
28688         * lto-streamer-out.c: Include cfgloop.h.
28689         (output_cfg): Output the loop tree.
28690         (output_struct_function_base): Do not drop PROP_loops.
28692 2013-03-26  Richard Biener  <rguenther@suse.de>
28694         * tree-cfg.c (execute_build_cfg): Build the loop tree.
28695         (pass_build_cfg): Provide PROP_loops.
28696         (move_sese_region_to_fn): Remove loops that are outlined into fn
28697         for now.
28698         * tree-inline.c: Include cfgloop.h.
28699         (initialize_cfun): Do not drop PROP_loops.
28700         (copy_loops): New function.
28701         (copy_cfg_body): Copy loop structure.
28702         (tree_function_versioning): Initialize destination loop tree.
28703         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28704         (pass_parallelize_loops): Do IL verification.
28705         * loop-init.c (loop_optimizer_init): Fixup loops if required.
28706         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28707         the CFG make sure we fixup loops as well.
28708         * tree-ssa-tail-merge.c: Include cfgloop.h.
28709         (replace_block_by): When merging loop latches mark loops for fixup.
28710         * lto-streamer-out.c (output_struct_function_base): Drop
28711         PROP_loops for now.
28712         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28713         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28714         * ipa-split.c: Include cfgloop.h.
28715         (split_function): Add the new return block to the loop tree root.
28716         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28717         whether we have removed the forwarder block.
28718         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28719         * cfgloop.h (place_new_loop): Declare.
28720         * cfgloopmanip.c (place_new_loop): Export.
28721         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28722         (tree-switch-conversion.o): Likewise.
28723         (tree-complex.o): Likewise.
28724         (tree-inline.o): Likewise.
28725         (tree-ssa-tailmerge.o): Likewise.
28726         (ipa-split.o): Likewise.
28727         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28728         (tree-ssa-copy.o): Likewise.
28729         * tree-switch-conversion.c: Include cfgloop.h
28730         (process_switch): If we emit a bit-test cascade, schedule loops
28731         for fixup.
28732         * tree-complex.c: Include cfgloop.h.
28733         (expand_complex_div_wide): Properly add new basic-blocks to loops.
28734         * asan.c: Include cfgloop.h.
28735         (create_cond_insert_point): Properly add new basic-blocks to
28736         loops, schedule loop fixup.
28737         * cfgloop.c (verify_loop_structure): Check that looks are not
28738         marked for fixup.
28739         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28740         to loops.
28741         (expand_omp_for_generic): Likewise.
28742         (expand_omp_sections): Likewise.
28743         (expand_omp_atomic_pipeline): Schedule loops for fixup.
28744         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28745         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28746         is initialized, not when loops are present.
28747         * tree-parloops.c (parallelize_loops): Remove checking here.
28748         * passes.c (init_optimization_passes): Schedule a copy-propagation
28749         pass before complete unrolling of inner loops.
28751 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28753         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28754         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28755         (colorize_init): Add argument to _WIN32 version.
28756         * toplev.c: Include diagnostic-color.h.
28757         (process_options): Default to -fdiagnostics-color=auto if
28758         GCC_COLORS env var is in the environment.
28759         * common.opt (fdiagnostics-color=): Add Var and Init.
28760         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28761         env var is in the environment, the default is auto rather than never.
28763         * diagnostic.h (file_name_as_prefix): Add context argument.
28764         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
28765         the string as locus.
28766         * langhooks.c (lhd_print_error_function): Adjust caller.
28768 2013-04-25  Lawrence Crowl  <crowl@google.com>
28770         * var-tracking.c (shared_hash_def::htab):
28771         Change type to hash_table.  Update dependent calls and types.
28773 2013-04-25  Lawrence Crowl  <crowl@google.com>
28775         * Makefile.in: Update as needed below.
28777         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28778         Move declaration to after the type's method definitons.
28780         * attribs.c (htab_t scoped_attributes::attribute_hash):
28781         Change type to hash_table.  Update dependent calls and types.
28783         * bitmap.c (htab_t bitmap_desc_hash):
28784         Change type to hash_table.  Update dependent calls and types.
28786         * cselib.c (htab_t cselib_hash_table):
28787         Change type to hash_table.  Update dependent calls and types.
28789         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28790         (hash_string_slot_node): Move implementation into lto-streamer.h
28791         struct string_slot_hasher.
28792         (eq_string_slot_node): Likewise.
28794         * data-streamer-out.c: Update output_block::string_hash_table
28795         dependent calls and types.
28797         * dwarf2cfi.c (htab_t trace_index):
28798         Change type to hash_table.  Update dependent calls and types.
28800         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28801         Change type to hash_table.  Update dependent calls and types.
28802         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28803         (htab_t optimize_external_refs::map): Likewise.
28804         (htab_t output_comp_unit::extern_map): Likewise.
28805         (htab_t output_comdat_type_unit::extern_map): Likewise.
28806         (htab_t output_macinfo::macinfo_htab): Likewise.
28807         (htab_t optimize_location_lists::htab): Likewise.
28808         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28810         * except.c (htab_t ehspec_hash_type):
28811         Change type to hash_table.  Update dependent calls and types.
28812         (assign_filter_values::ttypes): Likewise.
28813         (assign_filter_values::ehspec): Likewise.
28814         (sjlj_assign_call_site_values::ar_hash): Likewise.
28815         (convert_to_eh_region_ranges::ar_hash): Likewise.
28817         * gcse.c (htab_t pre_ldst_table):
28818         Change type to hash_table.  Update dependent calls and types.
28820         * ggc-common.c (htab_t saving_htab):
28821         Change type to hash_table.  Update dependent calls and types.
28822         (htab_t loc_hash): Likewise.
28823         (htab_t ptr_hash): Likewise.
28824         (call_count): Rename ggc_call_count.
28825         (call_alloc): Rename ggc_call_alloc.
28826         (loc_descriptor): Rename make_loc_descriptor.
28827         (add_statistics): Rename ggc_add_statistics.
28829         * ggc-common.c (saving_htab):
28830         Change type to hash_table.  Update dependent calls and types.
28832         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28833         (push_gimplify_context): Likewise.
28834         (pop_gimplify_context): Likewise.
28835         (struct gimple_temp_hash_elt): Added.
28836         (struct gimplify_hasher): Likewise.
28837         (struct gimplify_ctx.temp_htab):
28838         Change type to hash_table.  Update dependent calls and types.
28840         * gimple-fold.c: Include gimplify-ctx.h.
28842         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28843         Change type to hash_table.  Update dependent calls and types.
28844         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28845         avoid potential global name collision.
28847         * gimplify.c: Include gimplify-ctx.h.
28848         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28849         (htab_t gimplify_ctx::temp_htab):
28850         Update dependent calls and types for new type hash_table.
28851         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28852         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28854         * gimplify-ctx.h: New.
28855         (struct gimple_temp_hash_elt): Move from gimplify.c.
28856         (class gimplify_hasher): New.
28857         (struct gimplify_ctx): Move from gimple.h.
28858         (htab_t gimplify_ctx::temp_htab):
28859         Change type to hash_table.  Update dependent calls and types.
28861         * graphite-clast-to-gimple.c: Include graphite-htab.h.
28862         (htab_t ivs_params::newivs_index):
28863         Change type to hash_table.  Update dependent calls and types.
28864         (htab_t ivs_params::params_index): Likewise.
28865         (htab_t print_generated_program::params_index): Likewise.
28866         (htab_t gloog::newivs_index): Likewise.
28867         (htab_t gloog::params_index): Likewise.
28869         * graphite.c: Include graphite-htab.h.
28870         4htab_t graphite_transform_loops::bb_pbb_mapping):
28871         Change type to hash_table.  Update dependent calls and types.
28873         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28874         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28875         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28877         * graphite-dependences.c: Include graphite-htab.h.
28878         (loop_is_parallel_p): Change hash table type of parameter.
28880         * graphite-htab.h: New.
28881         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28882         (extern find_pbb_via_hash): Move from graphite-poly.h.
28883         (extern loop_is_parallel_p): Move from graphite-poly.h.
28884         (extern get_loop_body_pbbs): Move from graphite-poly.h.
28886         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28887         (extern loop_is_parallel_p): Move to graphite-htab.h.
28888         (extern get_loop_body_pbbs): Move to graphite-htab.h.
28890         * haifa-sched.c (htab_t delay_htab):
28891         Change type to hash_table.  Update dependent calls and types.
28892         (htab_t delay_htab_i2): Likewise.
28894         * ira-color.c (htab_t allocno_hard_regs_htab):
28895         Change type to hash_table.  Update dependent calls and types.
28897         * ira-costs.c (htab_t cost_classes_htab):
28898         Change type to hash_table.  Update dependent calls and types.
28900         * loop-invariant.c (htab_t merge_identical_invariants::eq):
28901         Change type to hash_table.  Update dependent calls and types.
28903         * loop-iv.c (htab_t bivs):
28904         Change type to hash_table.  Update dependent calls and types.
28906         * loop-unroll.c (htab_t opt_info::insns_to_split):
28907         Change type to hash_table.  Update dependent calls and types.
28908         (htab_t opt_info::insns_with_var_to_expand): Likewise.
28910         * lto-streamer.h (struct string_slot): Move from data-streamer.h
28911         (struct string_slot_hasher): New.
28912         (htab_t output_block::string_hash_table):
28913         Change type to hash_table.  Update dependent calls and types.
28915         * lto-streamer-in.c (freeing_string_slot_hasher): New.
28916         (htab_t file_name_hash_table):
28917         Change type to hash_table.  Update dependent calls and types.
28919         * lto-streamer-out.c: Update output_block::string_hash_table dependent
28920         calls and types.
28922         * lto-streamer.c (htab_t tree_htab):
28923         Change type to hash_table.  Update dependent calls and types.
28925         * omp-low.c: Include gimplify-ctx.h.
28927         * passes.c (htab_t name_to_pass_map):
28928         Change type to hash_table.  Update dependent calls and types.
28929         (pass_traverse): Rename to passes_pass_traverse.
28931         * plugin.c (htab_t event_tab):
28932         Change type to hash_table.  Update dependent calls and types.
28934         * postreload-gcse.c (htab_t expr_table):
28935         Change type to hash_table.  Update dependent calls and types.
28936         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28938         * sese.c (debug_rename_map_1): Make extern.
28939         (htab_t copy_bb_and_scalar_dependences::rename_map):
28940         Change type to hash_table.  Update dependent calls and types.
28942         * sese.h (extern debug_rename_map): Move to .c file.
28944         * store-motion.c (htab_t store_motion_mems_table):
28945         Change type to hash_table.  Update dependent calls and types.
28947         * trans-mem.c (htab_t tm_new_mem_hash):
28948         Change type to hash_table.  Update dependent calls and types.
28950         * tree-browser.c (htab_t TB_up_ht):
28951         Change type to hash_table.  Update dependent calls and types.
28953         * tree-cfg.c (htab_t discriminator_per_locus):
28954         Change type to hash_table.  Update dependent calls and types.
28956         * tree-complex.c: Include tree-hasher.h
28957         (htab_t complex_variable_components):
28958         Change type to hash_table.  Update dependent calls and types.
28960         * tree-eh.c (htab_t finally_tree):
28961         Change type to hash_table.  Update dependent calls and types.
28963         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28964         struct int_tree_hasher.
28965         (extern int_tree_map_eq): Likewise.
28966         (uid_decl_map_hash): Removed.
28967         (extern decl_tree_map_eq): Likewise.
28969         * tree-hasher.h: New.
28970         (struct int_tree_hasher): New.
28971         (typedef int_tree_htab_type): New.
28973         * tree-inline.c: Include gimplify-ctx.h.
28975         * tree-mudflap.c: Include gimplify-ctx.h.
28977         * tree-parloops.c: Include tree-hasher.h.
28978         (htab_t eliminate_local_variables_stmt::decl_address):
28979         Change type to hash_table.  Update dependent calls and types.
28980         (htab_t separate_decls_in_region::decl_copies): Likewise.
28982         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28983         Change type to hash_table.  Update dependent calls and types.
28985         * tree-sra.c (candidates):
28986         Change type to hash_table.  Update dependent calls and types.
28988         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28989         in tree-flow.h.
28990         (int_tree_map_hash): Likewise.
28992         * tree-ssa-dom.c (htab_t avail_exprs):
28993         Change type to hash_table.  Update dependent calls and types.
28995         * tree-ssa-live.c (var_map_base_init::tree_to_index):
28996         Change type to hash_table.  Update dependent calls and types.
28998         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28999         Change type to hash_table.  Update dependent calls and types.
29001         * tree-ssa-phiopt.c (seen_ssa_names):
29002         Change type to hash_table.  Update dependent calls and types.
29004         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
29005         Change type to hash_table.  Update dependent calls and types.
29007         * tree-ssa-uncprop.c (equiv):
29008         Change type to hash_table.  Update dependent calls and types.
29010 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
29012         PR rtl-optimization/57003
29013         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
29014         call note_stores with kill_clobbered_value callback again after
29015         killing regs_invalidated_by_call.
29017 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29019         * config/aarch64/aarch64-simd.md
29020         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
29021         (aarch64_simd_bsl<mode>): Likewise.
29022         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
29024 2013-04-25  Marek Polacek  <polacek@redhat.com>
29026         PR tree-optimization/57066
29027         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
29029 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29031         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
29033 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29035         * config/aarch64/aarch64-builtins.c
29036         (aarch64_fold_builtin): New.
29037         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
29038         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
29039         * config/aarch64/aarch64-simd-builtins.def (abs): New.
29040         * config/aarch64/arm_neon.h
29041         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
29043 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29044             Tejas Belagod  <tejas.belagod@arm.com>
29046         * config/aarch64/aarch64-builtins.c
29047         (aarch64_gimple_fold_builtin): New.
29048         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
29049         * config/aarch64/aarch64-simd-builtins.def (addv): New.
29050         * config/aarch64/aarch64-simd.md (addpv4sf): New.
29051         (addvv4sf): Update.
29052         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
29054 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29056         * config/aarch64/aarch64.md
29057         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
29059 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29061         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
29062         (*ngcsi_uxtw): New pattern.
29064 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29065             Julian Brown  <julian@codesourcery.com>
29067         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
29068         (TB_DREG): Add T_V4HF.
29069         (v4hf_UP): New macro.
29070         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29071         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29072         Handle initialisation of V4HF. Adjust initialisation of reinterpret
29073         built-ins.
29074         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29075         (arm_vector_mode_supported_p): Handle V4HF.
29076         (arm_mangle_map): Handle V4HFmode.
29077         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
29078         * config/arm/arm_neon_builtins.def: Add entries for
29079         vcvtv4hfv4sf, vcvtv4sfv4hf.
29080         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
29081         (neon_vcvtv4hfv4sf): Likewise.
29082         * config/arm/neon-gen.ml: Handle half-precision floating point
29083         features.
29084         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
29085         * config/arm/arm_neon.h: Regenerate.
29086         * config/arm/neon.ml (type elts): Add F16.
29087         (type vectype): Add T_float16x4, T_floatHF.
29088         (type vecmode): Add V4HF.
29089         (type features): Add Requires_FP_bit feature.
29090         (elt_width): Handle F16.
29091         (elt_class): Likewise.
29092         (elt_of_class_width): Likewise.
29093         (mode_of_elt): Refactor.
29094         (type_for_elt): Handle F16, fix error messages.
29095         (vectype_size): Handle T_float16x4.
29096         (vcvt_sh): New function.
29097         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
29098         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
29099         (string_of_mode): Handle V4HF.
29100         * doc/arm-neon-intrinsics.texi: Regenerate.
29102 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29104         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
29105         format specifier in 'X' case.
29107 2013-04-25  Alan Modra  <amodra@gmail.com>
29109         PR target/57052
29110         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
29111         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
29112         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
29113         Repeat for many other rotate/shift and mask patterns using subregs.
29114         Name lshiftrt insns.
29115         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
29116         on WORDS_BIG_ENDIAN.
29118 2013-04-25  Alan Modra  <amodra@gmail.com>
29120         * config.gcc: Support little-endian powerpc-linux targets.
29121         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
29122         (LINK_OS_LINUX_SPEC): Define.
29123         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
29124         Preserve MASK_LITTLE_ENDIAN.
29125         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
29126         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
29127         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
29128         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
29129         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
29130         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
29131         Correct fp word order for little-endian.  Don't shift toc entries
29132         smaller than a word for little-endian.
29133         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
29134         (bswapdi2 splits): Correct low-part subreg for little-endian.
29135         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
29136         low/high where such is correct only for be.
29137         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29138         little-endian for -mcall-aixdesc.
29140 2013-04-25  Alan Modra  <amodra@gmail.com>
29142         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29143         replace_equiv_address_nv.
29145 2013-04-25  Alan Modra  <amodra@gmail.com>
29147         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29149 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29151         Revert:
29152         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29153         * rtl.h (struct rtx_def): ...
29155 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29157         PR rtl-optimizations/57046
29158         * lra-constraints (split_reg): Set up lra_risky_transformations_p
29159         for multi-reg splits.
29161 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
29163         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29165 2013-04-24  Sterling Augustine  <saugustine@google.com>
29167         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29168         (comp_dir_string, debug_str_dwo_section): New.
29169         (DEBUG_STR_DWO_SECTION): Rename to ...
29170         (DEBUG_DWO_STR_SECTION): ... this.
29171         (DEBUG_NORM_STR_SECTION): Delete.
29172         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29173         (DEBUG_STR_DWO_SECTION_FLAGS): New.
29174         (find_AT_string): Move most logic to ...
29175         (find_AT_string_in_table): ... here.  New.
29176         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29177         add_skeleton_AT_string.  Delete logic.
29178         (output_skeleton_debug_sections): Remove call to
29179         add_top_level_skeleton_die_attrs.
29180         (add_comp_dir_attribute): Move logic to comp_dir_string.
29181         (dwarf2out_init): Initialize debug_str_dwo_section.
29182         (output_indirect_string): Call find_string_form.
29183         (output_indirect_strings): Rewrite.
29184         (prune_unused_types): Empty skeleton_debug_str_hash.
29185         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29186         (dwarf2out_finish):  Call output_indirect_strings.
29188 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
29190         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29192 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29194         * rtl.h (struct rtx_def): Add comment for field jump.
29195         (LRA_SUBREG_P): New macro.
29196         * recog.c (register_operand): Check LRA_SUBREG_P.
29197         * lra.c (lra): Add note at the end of RTL code. Align non-empty
29198         stack frame.
29199         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29200         (lra_final_code_change): Skip subreg change for operators.
29201         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29202         if there are no operand changes.
29203         * lra-constraints.c (curr_insn_set): New.
29204         (match_reload): Set LRA_SUBREG_P.
29205         (emit_spill_move): Ditto.
29206         (check_and_process_move): Use curr_insn_set. Process only single
29207         set insns.  Don't initialize sec_mem_p and change_p.
29208         (simplify_operand_subreg): Use LRA_SUBREG_P.
29209         (reg_in_class_p): New function.
29210         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
29211         of #ifdef.  Add code to remove cycling.
29212         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29213         non-null disp.  Reload inner instead of disp when base and index
29214         are null.  Try to put lo_sum into register.
29215         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29216         (check_and_process_move): Move code for move cost check to
29217         simple_move_p.  Remove equiv_substitution.
29218         (simple_move_p): New function.
29219         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
29220         curr_insn_set.  Call check_and_process_move only for single set
29221         insns.  Use the new function.  Move call of check_and_process_move
29222         after operand equiv substitution and address process.
29224 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
29226         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29227         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29228         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29230 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
29232         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29234 2013-04-24  Marek Polacek  <polacek@redhat.com>
29236         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29237         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29238         (select_loops_exit_conditions): Likewise.
29239         (number_of_iterations_for_all_loops): Likewise.
29240         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29241         (scev_analysis): Likewise.
29243 2013-04-02  Catherine Moore  <clm@codesourcery.com>
29244             Chao-ying Fu  <fu@mips.com>
29246         * config/mips/micromips.md (jraddiusp): New pattern.
29247         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29248         instruction if possible.
29250 2013-04-24  Alan Modra  <amodra@gmail.com>
29252         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29254 2013-04-24  Julian Brown  <julian@codesourcery.com>
29255             Chung-Lin Tang  <cltang@codesourcery.com>
29257         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29258         dependency behavior in enumeration type DIE generation. Add TODO note
29259         to comments about future DW_FORM_sdata/udata re-work of related code.
29261 2013-04-23  Lawrence Crowl  <crowl@google.com>
29263         * Makefile.in: Update as needed below.
29265         * hash-table.h (class hash_table):
29266         Correct many methods with parameter types compare_type to the correct
29267         value_type.  (Correct code was unlikely to notice the change.)
29268         (hash_table::elements_with_deleted) New.
29269         (class hashtable::iterator): New.
29270         (hashtable::begin()): New.
29271         (hashtable::end()): New.
29272         (FOR_EACH_HASH_TABLE_ELEMENT): New.
29274         * statistics.c (statistics_hashes):
29275         Change type to hash_table.  Update dependent calls and types.
29277         * tree-into-ssa.c (var_infos):
29278         Change type to hash_table.  Update dependent calls and types.
29280         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29281         Change type to hash_table.  Update dependent calls and types.
29283         * tree-ssa-loop-im.c (struct mem_ref.refs):
29284         Change type to hash_table.  Update dependent calls and types.
29286         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29287         Change type to hash_table.  Update dependent calls and types.
29289         * tree-ssa-sccvn.c (vn_tables_s::nary):
29290         Change type to hash_table.  Update dependent calls and types.
29291         (vn_tables_s::phis): Likewise.
29292         (vn_tables_s::references): Likewise.
29294         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29295         (vn_reference_eq): Update parameter and return types.
29297         * tree-ssa-structalias.c (pointer_equiv_class_table):
29298         Change type to hash_table.  Update dependent calls and types.
29299         (location_equiv_class_table): Likewise.
29301         * tree-vect-data-refs.c: Consequential changes for making
29302         peeling a hash_table.
29304         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29305         (destroy_loop_vec_info): Dependent hash_table update.
29307         * tree-vectorizer.h (peeling_htab):
29308         Change type to hash_table.  Update dependent calls and types.
29310 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
29312         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29313         to check the register content is equal or not.
29314         * lra-constraints.c (match_reload): Use lra_assign_reg_val
29315         to assign register content record.
29316         * lra-eliminations.c (update_reg_eliminate): Use
29317         lra_update_reg_val_offset to update register content offset.
29318         * lra-int.h (struct lra_reg): Add offset member.
29319         (lra_reg_val_equal_p): New static inline function.
29320         (lra_update_reg_val_offset): New static inline function.
29321         (lra_assign_reg_val): New static inline function.
29322         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29323         to assign register content record.
29324         (initialize_lra_reg_info_element): Initial offset to zero.
29326 2013-04-23  Catherine Moore  <clm@codesourcery.com>
29328         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29329         operands.  Record compression.
29331 2013-04-23  Xinliang David Li  <davidxl@google.com>
29333         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29335 2013-04-23  Richard Biener  <rguenther@suse.de>
29337         PR middle-end/57036
29338         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29339         parameter, only add abnormal goto edges from the copied body
29340         if the call could perform abnormal gotos.
29341         (copy_cfg_body): Adjust.
29343 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
29345         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29347 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
29349         * coretypes.h (gimple_stmt_iterator): Add struct to make
29350         compatible with C.
29352 2013-04-23  Richard Biener  <rguenther@suse.de>
29354         PR tree-optimization/57026
29355         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29356         from SSA names occuring in abnormal PHI nodes.
29358 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29360         * lto/lto.c (print_lto_report_1): Fix LTO report names.
29362 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29364         * lto/lto.c (print_lto_report_1): Declare early.
29365         (read_cgraph_and_symbols): Call print_lto_report_1 early.
29367 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29369         * common.opt (-flto-report-wpa): Add.
29370         * doc/invoke.texi (-flto-report-wpa): Add.
29371         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29372         (lto_main): dito.
29374 2013-04-22  Xinliang David Li  <davidxl@google.com>
29376         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29377         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29378         * Makefile.in: New dependency
29380             David Daney <ddaney.cavm@gmail.com>
29382         * configure.ac (gcc_cv_as_micromips_support):  Use the
29383         --fatal-warnings option.
29384         * configure: Regenerate.
29386 2013-04-22  Marek Polacek  <polacek@redhat.com>
29388         PR sanitizer/56990
29389         * tsan.c (instrument_expr): Don't instrument expression
29390         in case its size is zero.
29392 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
29394         PR target/57032
29395         Revert:
29396         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
29398         * config/alpha/alpha.c (TARGET_LRA_P): New define.
29400 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29402         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29403         (gimple_stmt_iterator): New typedef.
29404         * gimple.h (gimple_stmt_iterator): Rename to...
29405         (gimple_stmt_iterator_d): ... This.
29406         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29407         trees be valid for GIMPLE and GENERIC.
29408         (TARGET_GIMPLE_FOLD_BUILTIN): New.
29409         * gimple-fold.c (gimple_fold_call): Call target hook
29410         gimple_fold_builtin.
29411         * hooks.c (hook_bool_gsiptr_false): New.
29412         * hooks.h (hook_bool_gsiptr_false): New.
29413         * target.def (fold_stmt): New.
29414         * doc/tm.texi: Regenerate.
29416 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
29418         PR target/57018
29419         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29420         a set sp if no stack realignment.
29422 2013-04-22  Nick Clifton  <nickc@redhat.com>
29424         * config.gcc (tilegx-linux): Extend extra_objs rather than
29425         overwriting it.
29426         (tilepro-linux): Likewise.
29428 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29430         * config/aarch64/aarch64-builtins.c
29431         (CF): Remove.
29432         (CF0, CF1, CF2, CF3, CF4, CF10): New.
29433         (VAR<1-12>): Add MAP parameter.
29434         (BUILTIN_*): Likewise.
29435         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29436         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29437         (aarch64_ushl_n<mode>): Likewise.
29438         (aarch64_sshr_n<mode>): Likewise.
29439         (aarch64_ushr_n<mode>): Likewise.
29440         (aarch64_<maxmin><mode>): Likewise.
29441         (aarch64_sqrt<mode>): Likewise.
29442         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29443         (vshr<q>_n_*): Likewise.
29445 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29447         * config/aarch64/aarch64-builtins.c
29448         (aarch64_simd_builtin_type_mode): Handle SF types.
29449         (sf_UP): Define.
29450         (BUILTIN_GPF): Define.
29451         (aarch64_init_simd_builtins): Handle SF types.
29452         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29453         (frecps): Likewise.
29454         (frecpx): Likewise.
29455         * config/aarch64/aarch64-simd.md
29456         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29457         (aarch64_frecpe<mode>): New.
29458         (aarch64_frecps<mode>): Likewise.
29459         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29460         (v8type): Add frecp<esx>.
29461         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29462         (aarch64_frecps<mode>): Likewise.
29463         * config/aarch64/iterators.md (FRECP): New.
29464         (frecp_suffix): Likewise.
29465         * config/aarch64/arm_neon.h
29466         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29468 2013-04-22  Christian Bruel  <christian.bruel@st.com>
29470         PR target/56995
29471         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29472         (REG_CLASS_NAMES): Idem.
29473         (REG_CLASS_CONTENTS): Idem.
29474         (REGCLASS_HAS_FP_REG): Idem.
29475         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29476         (sh_conditional_register_usage): Idem.
29478 2013-04-21  Jeff Law  <law@redhat.com>
29480         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29481         (ssa_forward_propagate_and_combine): Use it.
29483 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29485         * lra.c: Update the flow chart diagram.
29487 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29489         PR rtl-optimization/56847
29490         * lra-constraints.c (process_alt_operands): Discourage alternative
29491         with non-matche doffsettable memory constraint fro memory with
29492         known offset.
29494 2013-04-19  Richard Biener  <rguenther@suse.de>
29496         PR tree-optimization/56982
29497         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29498         function.
29499         * gimplify.c (gimplify_call_expr): Notice special calls.
29500         (gimplify_modify_expr): Likewise.
29501         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29502         abnormal control flow receivers.
29503         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29504         in the same way as cfun->has_nonlocal_labels.
29505         (gimple_purge_dead_abnormal_call_edges): Likewise.
29506         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29507         receivers start a basic-block.
29509 2013-04-19  Richard Biener  <rguenther@suse.de>
29511         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29512         member ...
29513         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
29514         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29515         (SLP_TREE_LOAD_PERMUTATION): Add.
29516         (vect_transform_slp_perm_load): Adjust prototype.
29517         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29518         (vect_free_slp_instance): Likewise.
29519         (vect_create_new_slp_node): Likewise.
29520         (vect_supported_slp_permutation_p): Remove.
29521         (vect_slp_rearrange_stmts): Adjust.
29522         (vect_supported_load_permutation_p): Likewise.  Inline
29523         vect_supported_slp_permutation_p here.
29524         (vect_analyze_slp_instance): Compute load permutations per
29525         slp node instead of per instance.
29526         (vect_get_slp_defs): Adjust.
29527         (vect_transform_slp_perm_load): Likewise.
29528         (vect_schedule_slp_instance): Remove redundant code.
29529         (vect_schedule_slp): Remove hack for PR56270, add it ...
29530         * tree-vect-stmts.c (vectorizable_load): ... here, do not
29531         CSE loads for SLP.  Adjust.
29533 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29535         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29536         spelling in two comments.
29538 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29540         PR target/56797
29541         * config/arm/arm.c (load_multiple_sequence): Require SP
29542         as base register for loads if SP is in the register list.
29544 2013-04-19  Martin Jambor  <mjambor@suse.cz>
29546         PR tree-optimization/56718
29547         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29548         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29549         and made public.  Adjusted all callers.
29550         (ipa_intraprocedural_devirtualization): New function.
29551         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29552         (ipa_intraprocedural_devirtualization): Likewise.
29553         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29555 2013-04-19  Richard Biener  <rguenther@suse.de>
29557         PR tree-optimization/57000
29558         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29560 2013-04-19  Terry Guo  <terry.guo@arm.com>
29562         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29563         Replace with ...
29564         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
29565         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29566         (cortex_m4_fmacs): Use new reservations.
29567         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29569 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
29571         PR rtl-optimization/56999
29572         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29573         related code.
29574         (lra_coalesce): Remove split_origin_bitmap and related code.
29575         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
29576         ranges if necessary.
29578 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
29580         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29581         New array.
29582         (ix86_expand_call): Remove clobbered_registers array and use
29583         x86_64_ms_sysv_extra_clobbered_registers instead.
29584         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29585         Declare here.
29586         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29587         predicate.
29588         * config/i386/i386.md (*call_rex64_ms_sysv): Use
29589         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
29590         (*call_value_rex64_ms_sysv): Ditto.
29592 2013-04-18  Cary Coutant  <ccoutant@google.com>
29594         * dwarf2out.c (output_pubnames): Check die_perennial_p of
29595         parent instead of die_mark.
29597 2013-04-18  Diego Novillo  <dnovillo@google.com>
29599         * gimple.c (create_gimple_tmp): New.
29600         (get_expr_type): New.
29601         (build_assign): New.
29602         (build_type_cast): New.
29603         * gimple.h (enum ssa_mode): Define.
29604         (gimple_seq_set_location): New.
29605         * asan.c (build_check_stmt): Change some gimple_build_* calls
29606         to use build_assign and build_type_cast.
29608 2013-04-18  Richard Biener  <rguenther@suse.de>
29610         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29611         handle negative step.  Remove redundant checks.
29612         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29613         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29614         for negative step and grouped loads fail to vectorize.
29616 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29618         * emit-rtl.c (reset_insn_used_flags): New function.
29619         (reset_all_used_flags): Use it.
29620         (verify_insn_sharing): New function.
29621         (verify_rtl_sharing): Fix verification for SEQUENCEs.
29623 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
29625         PR tree-optimization/56984
29626         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29627         and (x >> M) >= N don't register any assertion if N << M is the
29628         minimum value.
29630 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29632         * lower-subreg.c (resolve_simple_move): If called self-recursive,
29633         do not delete_insn insns that have not yet been emitted, only
29634         unlink them with remove_insn.
29635         * df-scan.c (df_insn_delete): Revert r197492.
29637 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
29639         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29640         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29642 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29644         * config/arm/arm.md (movsicc_insn): Convert define_insn into
29645         define_insn_and_split.
29646         (and_scc,ior_scc,negscc): Likewise.
29647         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29649 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29651         * config/arm/arm.c (use_return_insn): Return 0 for targets that
29652         can benefit from using a sequence of LDRD instructions in epilogue
29653         instead of a single LDM instruction.
29655 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29657         PR 45688
29658         * doc/extend.texi: Fix typo.
29660 2013-04-17  Richard Biener  <rguenther@suse.de>
29662         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29663         (vect_build_slp_tree): ... here.
29664         (vect_build_slp_tree_1): Compute which stmts of the SLP group
29665         match.  Remove special-casing of mismatched complex loads.
29666         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29667         re-try the match with swapped commutative operands.
29668         (vect_supported_load_permutation_p): Remove special-casing of
29669         mismatched complex loads.
29670         (vect_analyze_slp_instance): Adjust.
29672 2013-04-17  Richard Biener  <rguenther@suse.de>
29674         PR rtl-optimization/56921
29675         * cfgloop.h (struct loop): Add simple_loop_desc member.
29676         (struct niter_desc): Mark with GTY(()).
29677         (simple_loop_desc): Do not use aux field but simple_loop_desc.
29678         * loop-iv.c (get_simple_loop_desc): Likewise.
29679         (free_simple_loop_desc): Likewise.
29681         Revert
29682         2013-04-16  Richard Biener  <rguenther@suse.de>
29684         PR rtl-optimization/56921
29685         * loop-init.c (pass_rtl_move_loop_invariants): Add
29686         TODO_do_not_ggc_collect to todo_flags_finish.
29687         (pass_rtl_unswitch): Same.
29688         (pass_rtl_unroll_and_peel_loops): Same.
29689         (pass_rtl_doloop): Same.
29691 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
29693         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29694         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29695         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29696         references.
29697         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29698         * tree-streamer.c (record_common_node): Adjust reference in comment.
29700 2013-04-17  Terry Guo  <terry.guo@arm.com>
29702         * config/arm/cortex-m4.md: Add a new bypass.
29704 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29706         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29707         New pattern.
29708         (*subs_<optab><mode>_multp2): New pattern.
29709         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29710         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29712 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29714         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29715         (*subs_mul_imm_<mode>): New pattern.
29717 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
29719         PR target/56948
29720         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29721         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
29722         (vsx_movti_32bit): Change j->wa to O->wa.
29724 2013-04-16  Richard Biener  <rguenther@suse.de>
29726         PR rtl-optimization/56921
29727         * loop-init.c (pass_rtl_move_loop_invariants): Add
29728         TODO_do_not_ggc_collect to todo_flags_finish.
29729         (pass_rtl_unswitch): Same.
29730         (pass_rtl_unroll_and_peel_loops): Same.
29731         (pass_rtl_doloop): Same.
29733 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
29735         * config/arm/arm.c (emit_multi_reg_push): New declaration
29736         for an existing function.
29737         (arm_emit_strd_push): New function.
29738         (arm_expand_prologue): Used here.
29739         (arm_emit_ldrd_pop): New function.
29740         (arm_expand_epilogue): Used here.
29741         (arm_get_frame_offsets): Update condition.
29742         (arm_emit_multi_reg_pop): Add a special case for load of a single
29743         register with writeback.
29745 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
29747         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29748         description.
29750 2013-04-16  Richard Biener  <rguenther@suse.de>
29752         PR tree-optimization/56756
29753         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29754         (first_mem_ref_loc): New.
29755         (execute_sm): Place the load temporarily before a previous
29756         access instead of in the latch edge to ensure its SSA dependencies
29757         are defined at points dominating the load.
29759 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
29761         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29762         correct fix by moving header and footer insn to the footer of
29763         the merged basic block.  Clear BB_END of the merged-away block.
29765         PR middle-end/43631
29766         * emit-rtl.c (make_note_raw): New function.
29767         (link_insn_into_chain): New static inline function.
29768         (add_insn): Use it.
29769         (add_insn_before, add_insn_after): Factor insn chain linking code...
29770         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29771         using link_insn_into_chain.
29772         (note_outside_basic_block_p): New helper function for emit_note_after
29773         and emit_note_before.
29774         (emit_note_after): Use nobb variant of add_insn_after if the note
29775         should not be contained in a basic block.
29776         (emit_note_before): Use nobb variant of add_insn_before if the note
29777         should not be contained in a basic block.
29778         (emit_note_copy): Use make_note_raw.
29779         (emit_note): Likewise.
29780         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29781         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29782         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29783         the moved barrier the tail of the basic block it follows.
29784         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29786 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
29788         PR tree-optimization/56962
29789         * gimple-ssa-strength-reduction.c (record_increment): Only set
29790         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29791         either rhs1 or rhs2 is equal to c->base_expr.
29793 2013-04-15  Richard Biener  <rguenther@suse.de>
29795         PR tree-optimization/56933
29796         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29797         member.
29798         (GROUP_READ_WRITE_DEPENDENCE): Remove.
29799         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29800         * tree-vect-data-refs.c (vect_analyze_group_access): Move
29801         dependence check ...
29802         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29803         ... here.
29804         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29805         GROUP_READ_WRITE_DEPENDENCE.
29807 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29809         * emit-rtl.c (reset_all_used_flags): New function.
29810         (verify_rtl_sharing): Call reset_all_used_flags before and after
29811         performing the checks.
29813 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29815         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29816         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29817         * config/arm/constraints.md (De): New constraint.
29818         * config/arm/neon.md (anddi3_neon): Delete.
29819         (neon_vand<mode>): Expand to standard anddi3 pattern.
29820         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29821         Move earlier in the file.
29822         (neon_inv_logic_op2): Likewise.
29823         (arm_anddi_operand_neon): New predicate.
29825 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29827         * configure.ac (gcc_cv_ld_as_needed): Set
29828         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29829         Use -z ignore, -z record on *-*-solaris2*.
29830         (HAVE_LD_AS_NEEDED): Update comment.
29831         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29832         * configure: Regenerate.
29833         * config.in: Regenerate.
29834         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29835         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29836         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29837         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29838         equivalents.  Fix markup.
29839         * doc/tm.texi: Regenerate.
29841 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
29843         * config/i386/i386.opt: New option mstack-protector-guard=.
29844         * config/i386/i386-opts.h: Add enum stack_protector_guard.
29845         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29846         TARGET_SSP_TLS_GUARD.
29847         * config/i386/i386.c (ix86_option_override_internal): Set
29848         ix86_stack_protector_guard.
29849         * config/i386/i386.md (stack_protect_set): Enable for
29850         TARGET_SSP_TLS_GUARD only.
29851         (stack_protect_set_<mode>): Ditto.
29852         (stack_protect_test): Ditto.
29853         (stack_protect_test_<mode>): Ditto.
29854         * doc/invoke.texi (i386 Option): Document.
29856 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29858         PR target/56890
29859         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29860         (S_MODES): Set H_MODE bit.
29861         (SF_MODES): Set only S_MODE and SF_MODE bits.
29862         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29863         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29864         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29865         <MODE_FLOAT>: Likewise.
29867 2013-04-15  Joey Ye  <joey.ye@arm.com>
29869         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29871 2013-04-15  Joey Ye  <joey.ye@arm.com>
29873         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29874         for real far jump.
29875         (thumb_far_jump_used_p): Count instruction size and set
29876         far_jump_used.
29878 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29880         * reorg.c (fill_simple_delay_slots): Reindent block of code.
29881         * resource.c (mark_target_live_regs): Reformat conditional block.
29883 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29885         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29886         notes, they are emitted only just before final.
29887         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29889 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29891         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29892         * cfgrtl.c (delete_insn): Call it here instead.
29893         * lra-spills.c (lra_final_code_change): Use delete_insn.
29894         * haifa-sched.c (sched_remove_insn): Likewise.
29895         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29896         returning to the nop pool.
29897         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29898         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
29900 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29902         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29903         * doc/tm.texi: Regenerated.
29905 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
29907         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
29908         QImode checks.
29910 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29912         * df-core.c (df_find_def): Compare register numbers.
29913         (df_find_use): Likewise.
29915 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
29917         PR target/56903
29918         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29919         lra_in_progress for return.
29921 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29923         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29924         define_insn into define_insn_and_split and emit movsicc patterns.
29926 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29928         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29930 2013-04-12  Richard Biener  <rguenther@suse.de>
29932         * tree-pass.h (TODO_do_not_ggc_collect): New.
29933         * passes.c (execute_one_ipa_transform_pass): Honor
29934         TODO_do_not_ggc_collect.
29935         (execute_one_pass): Likewise.
29937         Revert
29938         2013-04-10  Richard Biener  <rguenther@suse.de>
29940         * passes.c (init_optimization_passes): Remove reload pass.
29941         * ira.c (do_reload): Merge into ...
29942         (ira): ... this.
29943         (rest_of_handle_reload): Remove.
29944         (pass_reload): Likewise.
29945         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29946         of reload for vzeroupper pass placement.
29948 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
29950         PR tree-optimization/56918
29951         PR tree-optimization/56920
29952         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29953         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
29954         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
29955         use wide_mul_with_sign method.
29957 2013-04-12  Richard Biener  <rguenther@suse.de>
29959         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29960         not be considered a gimple constant.
29962 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
29964         * fold-const.c (const_binop): Handle vector shifts by a scalar.
29965         (fold_binary_loc): Call const_binop also for mixed vector-scalar
29966         operations.
29968 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29969             Jakub Jelinek  <jakub@redhat.com>
29971         * opts.c: Include diagnostic-color.h.
29972         (common_handle_option): Handle OPT_fdiagnostics_color_.
29973         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29974         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29975         (diagnostic-color.o): New.
29976         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29977         (diagnostic_color_rule): New enum.
29978         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29979         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29980         the location string.
29981         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29982         either NULL, or color kind.
29983         * diagnostic-color.c: New file.
29984         * diagnostic-color.h: New file.
29985         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29986         arguments.
29987         * doc/invoke.texi (-fdiagnostics-color): Document.
29988         * pretty-print.h (pp_show_color): Define.
29989         (struct pretty_print_info): Add show_color field.
29990         * diagnostic.c: Include diagnostic-color.h.
29991         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29992         macros.  Colorize error:, warning: etc. strings and also the location
29993         string.
29994         (diagnostic_show_locus): Colorize the caret line.
29995         * pretty-print.c: Include diagnostic-color.h.
29996         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
29997         inside of %< %> quotes or quoted through q format modifier.
29999 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30001         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
30003 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30005         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
30006         code in CC_NZ mode.
30007         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
30008         pattern.
30010 2013-04-11  Marek Polacek  <polacek@redhat.com>
30012         PR tree-optimization/48184
30013         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
30015 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
30017         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
30018         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
30019         (skip_simple_arithmetic): Tidy up.
30020         * tree.h (skip_simple_constant_arithmetic): Declare.
30022 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30024         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
30026 2013-04-11  Richard Biener  <rguenther@suse.de>
30028         * tree-vect-loop.c (get_initial_def_for_induction): Properly
30029         generate vector constants.
30031 2013-04-11  Richard Biener  <rguenther@suse.de>
30033         PR tree-optimization/56878
30034         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
30035         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
30036         New function.
30037         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30038         Prefer to align the DR with the most invariant base address.
30040 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30042         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
30043         comment.
30045 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
30047         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
30048         floating-point vector comparisons against 0.
30050 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
30052         PR tree-optimization/56899
30053         * fold-const.c (extract_muldiv_1): Apply distributive law
30054         only if TYPE_OVERFLOW_WRAPS (ctype).
30056 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
30058         PR target/56124
30059         * ira-costs.c (scan_one_insn): Check whether the source rtx of
30060         loading has side effect.
30062 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
30064         * config/sparc/sparc.c: Include tree-pass.h.
30065         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
30066         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
30067         head of file.  Change return type.  Split off gate function.
30068         (sparc_gate_work_around_errata): New function.
30069         (pass_work_around_errata): New pass definition.
30070         (insert_pass_work_around_errata) New pass insert definition to
30071         insert pass_work_around_errata just after delayed-branch scheduling.
30072         (sparc_option_override): Insert the pass.
30073         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
30075 2013-04-10  David S. Miller  <davem@davemloft.net>
30077         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
30078         or -mcpu=hypersparc.
30080         * target.def (cstore_mode): New hook.
30081         * target.h: Include insn-codes.h
30082         * targhooks.c: Likewise.
30083         (default_cstore_mode): New function.
30084         * targhooks.h: Declare it.
30085         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
30086         * doc/tm.texi: Rebuild.
30087         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
30088         target hook, rather than inspecting the insn_data.
30089         * config/sparc/sparc.c (sparc_cstore_mode): New function.
30090         (TARGET_CSTORE_MODE): Redefine.
30091         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
30092         result patterns.
30093         * config/sparc/predicates.md (cstore_result_operand): New special
30094         predicate.
30095         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
30096         Use it for operand 0.
30097         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
30098         (*snesi_special): Likewise.
30099         (*snesi_zero): Likewise.
30100         (*seqsi_zero): Likewise.
30101         (*sltu_insn): Likewise.
30102         (*sgeu_insn): Likewise.
30103         (*seqdi_special): Make operand 0 and comparison operation be of
30104         DImode.
30105         (*snedi_special): Likewise.
30106         (*snedi_special_vis3): Likewise.
30107         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
30108         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
30109         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
30110         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
30111         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
30112         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
30113         (*sltu_extend_sp64): Likewise.
30114         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
30115         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
30116         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
30117         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
30118         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
30120 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
30122         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
30123         (aarch64_start_file): Use the new function.
30125 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30126             Jason Merrill  <jason@redhat.com>
30128         * common.opt: Add -gdwarf.
30129         * opts.c (common_handle_option): Handle it.
30130         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
30132 2013-04-10  Richard Biener  <rguenther@suse.de>
30134         * passes.c (execute_todo): Do not call ggc_collect conditional here.
30135         (execute_one_ipa_transform_pass): But unconditionally here.
30136         (execute_one_pass): And here.
30137         (init_optimization_passes): Remove reload pass.
30138         * tree-pass.h (TODO_ggc_collect): Remove.
30139         (pass_reload): Likewise.
30140         * ira.c (do_reload): Merge into ...
30141         (ira): ... this.
30142         (rest_of_handle_reload): Remove.
30143         (pass_reload): Likewise.
30144         * config/i386/i386.c (ix86_option_override): Refer to ira instead
30145         of reload for vzeroupper pass placement.
30146         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30147         and todo_flags_finish of all passes.
30149 2013-04-10  Richard Biener  <rguenther@suse.de>
30151         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30152         first_const_oprnd field, rename first_def_type to first_op_type.
30153         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30154         (vect_get_and_check_slp_defs): Always use the type of the
30155         operand.  Allow mixed vect_external_def, vect_constant_def types.
30156         (vect_get_constant_vectors): Handle mixed vect_external_def,
30157         vect_constant_def types.
30159 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
30161         PR tree-optimization/55524
30162         * tree-ssa-math-opts.c
30163         (convert_mult_to_fma): Don't use an fms construct
30164         when we don't have an fms operation, but fnma, and it looks
30165         likely that we'll be able to use the latter.
30167 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
30169         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30170         function.
30171         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30172         inline fail caused by overwritable functions.
30174 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
30176         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30177         unnecessary bits in the constant power of two case.
30179 2013-04-10  Richard Biener  <rguenther@suse.de>
30181         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30182         broken code swapping operands.
30183         (vect_build_slp_tree): Do not compute load permutations here.
30184         (vect_analyze_slp_instance): Compute load permutations here,
30185         after building the SLP tree.
30187 2013-04-09  Christian Bruel  <christian.bruel@st.com>
30189         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30190         of next/prev_real_insn.
30192 2013-04-09  Jan Hubicka  <jh@suse.cz>
30194         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30195         Drop aliased parameter.
30196         (function_and_variable_visibility): Do not handle alias pairs.
30197         * cgraph.c (varpool_externally_visible_p): Update prototype.
30198         * varpool.c (varpool_add_new_variable): Update.
30200 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30202         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30204 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
30206         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30208         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30210 2013-04-09  Marek Polacek  <polacek@redhat.com>
30212         PR tree-optimization/48762
30213         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30215 2013-04-09  Richard Biener  <rguenther@suse.de>
30217         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30218         dealing with cost.
30219         (vect_build_slp_tree): Likewise.
30220         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30221         calculating the cost of a SLP instance.
30222         (vect_analyze_slp_instance): Use it from here, after building
30223         the SLP tree.
30225 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
30227         PR middle-end/56883
30228         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30229         expand_omp_for_static_chunk): Use simple_p = true in
30230         force_gimple_operand_gsi calls when assigning to addressable decls.
30232 2013-04-09  Jeff Law  <law@redhat.com>
30234         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30235         when the boolean was created by converting a wider object which
30236         had a boolean range.
30238 2013-04-09  Richard Biener  <rguenther@suse.de>
30240         * tree-vectorizer.h (slp_void_p): Remove.
30241         (slp_tree): Typedef before _slp_tree declaration.
30242         (struct _slp_tree): Use a vector of slp_tree as children.
30243         (vect_get_place_in_interleaving_chain): Remove.
30244         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30245         Move ...
30246         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30247         and make static.
30248         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30249         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30250         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30251         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30252         Use slp_node instead of slp_void_p and adjust.
30254 2013-04-09  Richard Biener  <rguenther@suse.de>
30256         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30257         work that is not necessary.
30259 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
30261         PR tree-optimization/56854
30262         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30263         forward into clobber stmts if it would change MEM_REF lhs into
30264         non-MEM_REF.
30266 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
30268         * tree.c (type_hash_lookup, type_hash_add): Make static.
30269         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30271 2013-04-09  Richard Biener  <rguenther@suse.de>
30273         * tree.h (unsave_expr_now): Remove.
30274         * tree-inline.c (mark_local_for_remap_r): Remove.
30275         (unsave_expr_1): Likewise.
30276         (unsave_r): Likewise.
30277         (unsave_expr_now): Likewise.
30278         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30279         (propagate_tree_value): Likewise.
30281 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
30283         * doc/rtl.texi (sequence): Rewrite documentation to match the
30284         current use of SEQUENCE rtl objects.
30285         * rtl.def (SEQUENCE): Likewise.
30287         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30288         Update documentation.
30289         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30290         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30292         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30294 2013-04-08  Teresa Johnson  <tejohnson@google.com>
30296         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30297         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30298         methods.
30299         (estimate_edge_size_and_time): Add comment to suggest using rounding
30300         methods.
30301         (estimate_node_size_and_time): Ditto.
30302         (remap_edge_change_prob): Use helper rounding divide methods.
30303         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30304         (gimple_mod_pow2_value_transform): Ditto.
30305         (gimple_mod_subtract_transform): Ditto.
30306         (gimple_ic_transform): Ditto.
30307         (gimple_stringops_transform): Ditto.
30308         * stmt.c (conditional_probability): Ditto.
30309         (emit_case_dispatch_table): Ditto.
30310         * lto-cgraph.c (merge_profile_summaries): Ditto.
30311         * tree-optimize.c (execute_fixup_cfg): Ditto.
30312         * cfgcleanup.c (try_forward_edges): Ditto.
30313         * cfgloopmanip.c (scale_loop_profile): Ditto.
30314         (loopify): Ditto.
30315         (duplicate_loop_to_header_edge): Ditto.
30316         (lv_adjust_loop_entry_edge): Ditto.
30317         * tree-vect-loop.c (vect_transform_loop): Ditto.
30318         * profile.c (compute_branch_probabilities): Ditto.
30319         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30320         * lto-streamer-in.c (input_cfg): Ditto.
30321         * gimple-streamer-in.c (input_bb): Ditto.
30322         * ipa-cp.c (update_profiling_info): Ditto.
30323         (update_specialized_profile): Ditto.
30324         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30325         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30326         rounding methods.
30327         * sched-rgn.c (compute_dom_prob_ps): Ditto.
30328         (compute_trg_info): Ditto.
30329         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30330         (purge_dead_edges): Ditto.
30331         * loop-unswitch.c (unswitch_loop): Ditto.
30332         * cgraphclones.c (cgraph_clone_edge): Ditto.
30333         (cgraph_clone_node): Ditto.
30334         * tree-inline.c (copy_bb): Ditto.
30335         (copy_edges_for_bb): Ditto.
30336         (initialize_cfun): Ditto.
30337         (copy_cfg_body): Ditto.
30338         (expand_call_inline): Ditto.
30340 2013-04-08  Kai Tietz  <ktietz@redhat.com>
30342         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30343         TARGET_CYGWIN64 by TARGET_64BIT.
30345 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30347         * config/epiphany/epiphany.md (GPR_1): New constant.
30348         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30349         * config/epiphany/epiphany.c (gen_compare_reg):
30350         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30351         is already in place.
30352         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30353         Don't require being called during rtl expansion; If y operlaps r0,
30354         return 0.
30355         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30356         (epiphany_expand_epilogue): Likewise.
30358         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30359         Don't use CC_FPmode for ORDERED / UNORDERED.
30360         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30362         * config/epiphany/constraints.md (CnL): New constraint.
30363         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30364         * config/epiphany/predicates.md (add_operand): Allow 1024.
30366         * config/epiphany/epiphany.md (logical_op): New code iterator.
30367         (op_mnc): New code attribute.
30368         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30369         (mov_f+1, mov_f+2): New peephole2 patterns.
30371         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30372         (cstoresi4): Also allow re-use of zero result when doing a NE
30373         comparison to a non-zero operand.
30374         Use (clobber (scratch)) for first insn if the gpr output is not needed.
30376         * config/epiphany/epiphany.md (<insn_opname>v2si3):
30377         Use gen_addsi3_i / gen_subsi3_i.
30379 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30381         PR c++/34949
30382         PR c++/50243
30383         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30384         contain anything but clobbers, at most one __builtin_stack_restore,
30385         optionally debug stmts and final resx, and if it has at least one
30386         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
30387         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30388         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30389         which isn't defaut definition, remove them.
30390         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30391         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30392         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30393         with MEM_REF LHS with SSA_NAME address.
30395 2013-04-08  Jeff Law  <law@redhat.com>
30397         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30399 2013-04-08  Richard Biener  <rguenther@suse.de>
30401         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30402         extra newline.
30403         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30404         determined vector type.
30405         (vect_analyze_data_refs): Likewise.
30406         (vect_get_new_vect_var): Adjust.
30407         (vect_create_destination_var): Preserve SSA name versions.
30408         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30409         not dump anything here.
30411 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30413         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30414         Add member lr_slot_known.
30415         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30416         if necessary.
30417         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30418         Remove code that sets lr_slot_offset according to what a previous
30419         version of epiphany_emit_save_restore used to do.
30420         (epiphany_emit_save_restore): When doing an lr save or restore,
30421         set/verify lr_slot_known and lr_slot_offset.
30423 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
30425         PR target/54338
30426         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30427         in ALL_REGS.
30429 2013-04-08  Richard Biener  <rguenther@suse.de>
30431         * alias.c (find_base_term): Fix thinko in previous change.
30433 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30435         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30436         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30437         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
30438         if possible to compute val.
30439         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30440         For QImode integers don't require anything about precision.  Use
30441         const_with_all_bytes_same to find out if the constant doesn't have
30442         repeated bytes in it.
30444 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30446         * config/s390/s390.c (s390_expand_insv): Only accept insertions
30447         within mode size.
30449 2013-04-08  Marek Polacek  <polacek@redhat.com>
30451         PR rtl-optimization/48182
30452         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30453         value to 1.
30455 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30457         PR target/55487
30458         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30459         nuses, make sure we have a label.
30461 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30463         PR target/56843
30464         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30465         (rs6000_emit_swdiv_low_precision): Remove.
30466         (rs6000_emit_swdiv): Rewrite to handle between one and four
30467         iterations of Newton-Raphson generally; modify required number of
30468         iterations for some cases.
30469         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30471 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
30473         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30474         set-but-unused variable.
30476         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30477         basic blocks of released function bodies garbage-collectable.
30479         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30480         (struct rtl_opt_pass): Add TODO_df_finish.
30482         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30484 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30486         * config/arm/constraints.md (q): New constraint.
30487         * config/arm/ldrdstrd.md: New file.
30488         * config/arm/arm.md (ldrdstrd.md) New include.
30489         (arm_movdi): Use "q" instead of "r" constraint
30490         for double-word memory access.
30491         (movdf_soft_insn): Likewise.
30492         * config/arm/vfp.md (movdi_vfp): Likewise.
30493         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30494         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30495         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30496         (mem_ok_for_ldrd_strd): Likewise.
30497         (output_move_double): Update assertion.
30499 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30501         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30503 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30505         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30506         define_insn_and_split.
30507         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30509 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30511         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30512         define_insn_and_split.
30513         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30514         (shiftsi3_compare): New pattern.
30515         (rrx): New pattern.
30516         * config/arm/unspecs.md (UNSPEC_RRX): New.
30518 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30520         * config/arm/arm.md (negdi_extendsidi): New pattern.
30521         (negdi_zero_extendsidi): Likewise.
30523 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30525         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30526         define_insn_and_split.
30527         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30528         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30530 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30532         * config/arm/arm.md (arm_subdi3): Convert define_insn into
30533         define_insn_and_split.
30534         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30535         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30537 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30539         * config/arm/arm.md (subsi3_carryin): New pattern.
30540         (subsi3_carryin_const): Likewise.
30541         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30542         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30544 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30546         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30548 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30550         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30551         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30553 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30555         * config/arm/arm.c (arm_expand_builtin): Change fcode
30556         type to unsigned int.
30558 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30560         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30562 2013-04-04  Ian Lance Taylor  <iant@google.com>
30564         * doc/standards.texi (Standards): The Go frontend supports the Go 1
30565         language standard.
30567 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
30569         PR middle-end/56729
30570         * df-scan.c (df_insn_delete): Disable failing assert.
30572 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30574         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30575         New function prototype.
30576         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30577         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30578         (arm_builtin_vectorized_function): New function.
30580 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30582         * config/arm/arm_neon_builtins.def: New file.
30583         * config/arm/arm.c (neon_builtin_data): Move contents to
30584         arm_neon_builtins.def.
30585         (enum arm_builtins): Include neon builtin definitions.
30586         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30587         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30589 2013-04-04  Marek Polacek  <polacek@redhat.com>
30591         PR tree-optimization/48186
30592         * predict.c (maybe_hot_frequency_p): Return false if
30593         HOT_BB_FREQUENCY_FRACTION is 0.
30594         (cgraph_maybe_hot_edge_p): Likewise.
30596 2013-04-04  Richard Biener  <rguenther@suse.de>
30598         PR tree-optimization/56826
30599         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30600         more accurately.
30602 2013-04-04  Richard Biener  <rguenther@suse.de>
30604         PR tree-optimization/56213
30605         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30606         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30608 2013-04-04  Richard Biener  <rguenther@suse.de>
30610         PR tree-optimization/56837
30611         * tree-loop-distribution.c (classify_partition): For non-zero
30612         values require that the value has the same precision as its
30613         mode to be useful as memset value.
30615 2013-04-03  Nick Clifton  <nickc@redhat.com>
30617         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30618         (fmssf4): Use fmsf.s on E3V5 architectures.
30619         (fnmasf4): Use fnmaf.s on E3V5 architectures.
30620         (fnmssf4): Use fnmsf.s on E3V5 architectures.
30622 2013-04-03  Jeff Law  <law@redhat.com>
30624         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30625         (lra-eliminations.o): Likewise.
30627 2013-04-03  Teresa Johnson  <tejohnson@google.com>
30629         * gcov-io.c (compute_working_sets): Moved most of body of old
30630         compute_working_sets here from profile.c.
30631         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30632         (gcov_working_set_t): Moved typedef here from basic-block.h
30633         (compute_working_set): Declare.
30634         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30635         (get_working_sets): Renamed from compute_working_set,
30636         replace most of body with call to new compute_working_sets.
30637         (get_exec_counts): Replace call to compute_working_sets
30638         to get_working_sets.
30639         * profile.h (get_working_sets): Renamed from compute_working_set.
30640         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30641         to get_working_sets.
30642         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30643         * gcov-dump.c (dump_working_sets): New function.
30645 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
30647         * hwint.c (sext_hwi, zext_hwi): New functions.
30648         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30649         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30650         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30651         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30652         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30653         (sext_hwi, zext_hwi): New functions.
30655 2013-04-03  Jeff Law  <law@redhat.com>
30657         PR tree-optimization/56799
30658         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30659         back test for widening conversion erroneously dropped in prior change.
30661 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30663         PR target/56809
30664         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30665         instead of next_real_insn.
30667 2013-04-03  Marek Polacek  <polacek@redhat.com>
30669         PR sanitizer/55702
30670         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30672 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30674         PR target/56809
30675         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30676         next_real_insn.
30677         (thumb1_output_casesi): Likewise.
30678         (thumb2_output_casesi): Likewise.
30680 2013-04-03  Richard Biener  <rguenther@suse.de>
30682         PR tree-optimization/56817
30683         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30684         Split out ...
30685         (tree_unroll_loops_completely_1): ... new function to manually
30686         walk the loop tree, properly defering outer loops of unrolled
30687         loops to later iterations.
30689 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30691         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30692         (vectorizable_load): Likewise.
30693         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30694         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30696 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30698         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30699         BIT_FIELD_REF.
30701 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30703         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30705 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
30707         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30709 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30711         PR tree-optimization/56790
30712         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30713         folding.
30715 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30717         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30718         Handle VEC_MERGE.
30719         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30720         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30721         equal arguments.
30723 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
30725         PR c/19449
30726         * tree.h (force_folding_builtin_constant_p): New decl.
30727         * builtins.c (force_folding_builtin_constant_p): New variable.
30728         (fold_builtin_constant_p): Fold immediately also if
30729         force_folding_builtin_constant_p.
30731 2013-04-03  Richard Biener  <rguenther@suse.de>
30733         PR tree-optimization/56812
30734         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30735         DRs of the same interleaving chain are independent.
30737 2013-04-02  Jason Merrill  <jason@redhat.com>
30739         * gdbinit.in (pbb): Use debug fn.
30741 2013-04-02  Lawrence Crowl  <crowl@google.com>
30743         * sese.h (struct ivtype_map_elt_s): Remove unused.
30744         (extern debug_ivtype_map): Remove unused.
30745         (extern eq_ivtype_map_elts): Remove unused.
30746         * sese.c (debug_ivtype_map): Removed unused.
30747         (debug_ivtype_map_1): Removed unused.
30748         (debug_ivtype_elt): Remove unused.
30749         (eq_ivtype_map_elts): Remove unused.
30751 2013-04-02  Kai Tietz  <ktietz@redhat.com>
30753         PR target/52790
30754         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30755         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30756         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30757         function.
30758         (legitimize_pe_coff_symbol): Likewise.
30759         (is_imported_p): New helper-function.
30760         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30761         for Windows x64 targets.
30762         (ix86_expand_prologue): Optimize for pe-coff targets.
30763         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30764         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30765         medium/large code-model.
30766         (legitimize_pic_address): Likewise.
30767         (legitimize_tls_address): Likewise.
30768         (ix86_expand_call): Likewise.
30769         (x86_output_mi_thunk): Likewise.
30770         (get_dllimport_decl): Add new beimport argument.
30771         (construct_plt_address): Don't assert for x64 pe-coff targets.
30772         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30773         targets.
30774         (SYMBOL_FLAG_STUBVAR): New macro.
30775         (SYMBOL_REF_STUBVAR_P): Likewise.
30776         * config/i386/winnt.c (stub_list): New structure.
30777         (stub_head): New local variable.
30778         (i386_pe_record_stub): New function.
30779         (i386_pe_file_end): Emit refptr-stubs.
30781 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
30783         PR rtl-optimization/56745
30784         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30785         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30787         PR c++/34949
30788         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30789         and both of them are MEM_REFs, just compare first argument for
30790         equality and attempt to deal even with differing offsets.
30792         PR c++/34949
30793         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30794         of gimple_clobber_p to be MEM_REF.
30795         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30796         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
30797         after gimplification.
30798         * asan.c (get_mem_ref_of_assignment): Don't instrument
30799         gimple_clobber_p stmts.
30800         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30801         gimple_clobber_p stmt if they have MEM_REF lhs and
30802         are dead because of another gimple_clobber_p stmt.
30803         * tree-ssa-live.c (clear_unused_block_pointer): Treat
30804         gimple_clobber_p stmts like debug stmts.
30805         (remove_unused_locals): Remove clobbers with MEM_REF lhs
30806         that refer to unused VAR_DECLs or uninitialized values.
30807         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30808         gimple_clobber_p stmts if they refer to removed parameters.
30809         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30810         formatting.
30812 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
30814         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30815         using SWI48 mode attribute.
30817 2013-04-02  Wei Mi  <wmi@google.com>
30819         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30820         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30821         *<rotate_insn><mode>3_mask in i386.md.
30823 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30825         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30827 2013-04-02  Richard Biener  <rguenther@suse.de>
30829         PR tree-optimization/56778
30830         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30831         Runtime alias tests are not supported for gather loads.
30832         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30833         stmts referenced from SSA operands before updating SSA form.
30835 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
30836             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30838         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30839         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30840         * config/arm/cortex-a53.md: New file.
30841         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30842         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30843         * config/arm/arm.c (arm_issue_rate): Likewise.
30844         * config/arm/arm-tune.md: Regenerate
30845         * config/arm/arm-tables.opt: Regenerate.
30846         * config/arm/arm-cores.def: Add cortex-a53.
30848 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30850         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30851         non-static link.
30853 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30855         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30856         scalar load/store operations using B/H registers.
30857         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30859 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30861         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30862         scalar move.
30863         * config/aarch64/aarch64.c
30864         (aarch64_simd_scalar_immediate_valid_for_move): New.
30865         * config/aarch64/aarch64-protos.h
30866         (aarch64_simd_scalar_immediate_valid_for_move): New.
30867         * config/aarch64/constraints.md (Dh, Dq): New.
30868         * config/aarch64/iterators.md (hq): New.
30870 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
30872         * reorg.c (get_branch_condition): Deal with conditional returns.
30873         (fill_simple_delay_slots): Remove dead code dealing with jumps.
30875 2013-04-01  Wei Mi  <wmi@google.com>
30877         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30878         Truncate operand 2 using %b asm operand modifier.
30879         (*<shift_insn><mode>3_mask): Ditto.
30880         (*<rotate_insn><mode>3_mask): Ditto.
30882 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
30884         PR middle-end/56798
30885         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30887 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
30889         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30890         of next_real_insn.
30891         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30893 2013-03-30  Lawrence Crowl  <crowl@google.com>
30895         * dse.c (clear_alias_sets): Remove never set.
30896         (disqualified_clear_alias_sets): Remove never set.
30897         (clear_alias_mode_pool): Remove never set.
30898         (dse_step0): Remove condition that is never true.
30899         (canon_address): Remove condition that is never true.
30900         (dse_step7): Remove condition that is never true.
30901         (rest_of_handle_dse): Remove condition that is never true.
30902         (rest_of_handle_dse::did_global): Remove never read from above.
30903         (dse_step2_spill): Remove never called from above.
30904         (dse_step5_spill): Remove never called from above.
30906 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
30908         * doc/md.texi (Standard Names) <casesi>: Update documentation for
30909         JUMP_TABLE_DATA changes.
30910         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
30911         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
30912         (Insns) <jump_table_data>: New entry.
30913         * doc/tm.texi: Regenerate.
30915         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
30917         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
30918         for table jump at the end of a basic block using tablejump_p.
30919         * targhooks.c (default_invalid_within_doloop): Likewise.
30920         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30921         target hook implementation that is identical to the default hook.
30922         (rs6000_invalid_within_doloop): Remove.
30924         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30925         unused variable from tablejump_p call.
30927         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30928         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30929         (INSN_DELETED_P): Likewise.
30930         (emit_jump_table_data): New prototype.
30931         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30932         after 4th as unused.
30933         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30934         * sched-vis.c (print_insn): Likewise.
30935         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30936         insn for compatibility with back ends that use next_active_insn to
30937         identify jump table data.
30938         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30939         (remove_insn): Likewise.
30940         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30941         to be emitted.
30942         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30943         (emit_jump_table_data): New function.
30945         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30946         basic block, a JUMP_TABLE_DATA never is.
30947         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30948         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30949         off from code handling real insns.
30950         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30951         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30952         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30953         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30954         is not a NONDEBUG_INSN_P.
30955         * ira-costs.c (scan_one_insn): Likewise.
30956         * jump.c (mark_all_labels): Likewise.
30957         (mark_jump_label_1): Likewise.
30958         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30959         * lra.c (get_insn_freq): Expect all insns reaching here to be in
30960         a basic block.
30961         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30962         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30963         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30964         JUMP_TABLE_DATA_P insns.
30965         (calculate_elim_costs_all_insns): Likewise.
30966         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30967         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30968         (delete_output_reload): Code style fixups.
30969         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30970         insn flags on this non-insn.
30971         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30972         as scheduling barriers, for pre-change compatibility.
30973         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30974         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30976         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30977         redundant JUMP_TABLE_DATA_P test.
30978         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30979         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30980         (frv_for_each_packet): Likewise.
30981         * config/i386/i386.c (min_insn_size): Likewise.
30982         (ix86_avoid_jump_mispredicts): Likewise.
30983         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30984         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30985         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30986         (mips16_insn_length): Robustify.
30987         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30988         (mips16_split_long_branches): Likewise.
30989         * config/pa/pa.c (pa_combine_instructions): Likewise.
30990         * config/rs6000/rs6000.c (get_next_active_insn): Treat
30991         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30992         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30993         as contributing to pool range lengths.
30994         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30995         Remove redundant JUMP_TABLE_DATA_P test.
30996         (sh_loop_align): Likewise.
30997         (split_branches): Likewise.
30998         (sh_insn_length_adjustment): Likewise.
30999         * config/spu/spu.c (get_branch_target): Likewise.
31001 2013-03-29  Jan Hubicka  <jh@suse.cz>
31003         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
31004         gcov streaming; stream hot bb threshold to ltrans.
31005         * predict.c (get_hot_bb_threshold): Break out from ....
31006         (maybe_hot_count_p): ... here.
31007         (set_hot_bb_threshold): New function.
31008         * lto-section-in.c (lto_section_name): Add profile.
31009         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
31010         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
31011         and data-streamer.h
31012         (histogram_entry): New structure.
31013         (histogram, histogram_pool): New global vars.
31014         (histogram_hash): New structure.
31015         (histogram_hash::hash): New method.
31016         (histogram_hash::equal): Likewise.
31017         (account_time_size): New function.
31018         (cmp_counts): New function.
31019         (dump_histogram): New function.
31020         (ipa_profile_generate_summary): New function.
31021         (ipa_profile_write_summary): New function.
31022         (ipa_profile_read_summary): New function.
31023         (ipa_profile): Decide on threshold.
31024         (pass_ipa_profile): Add ipa_profile_write_summary and
31025         ipa_profile_read_summary.
31026         * Makefile.in (ipa.o): Update dependencies.
31027         * lto-streamer.h (LTO_section_ipa_profile): New section.
31029 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
31031         * tree.h (VAR_P): New.
31033 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
31035         PR lto/56777
31036         * doc/invoke.texi ([-fwhole-program]): Fix typo.
31038 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
31040         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
31041         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31042         (control_flow_insn_p): Likewise.
31043         * cfgrtl.c (duplicate_insn_chain): Likewise.
31044         * final.c (get_attr_length_1): Likewise.
31045         (shorten_branches): Likewise.
31046         (final_scan_insn): Likewise.
31047         * function.c (instantiate_virtual_regs): Likewise.
31048         * gcse.c (insert_insn_end_basic_block): Likewise.
31049         * ira-costs.c (scan_one_insn): Likewise.
31050         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31051         * lra.c (check_rtl): Likewise.
31052         * reload1.c (elimination_costs_in_insn): Likewise.
31053         * reorg.c (follow_jumps): Likewise.
31055         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
31056         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31057         (thumb_far_jump_used_p): Likewise.
31058         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
31059         (workaround_speculation): Likewise.
31060         (add_sched_insns_for_speculation): Likewise.
31061         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
31062         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31063         (frv_for_each_packet): Likewise.
31064         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
31065         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
31066         (final_emit_insn_group_barriers): Likewise.
31067         * config/m32r/m32r.c (m32r_is_insn): Likewise.
31068         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31069         (mips16_insn_length): Likewise.
31070         * config/pa/pa.c (pa_reorg): Likewise.
31071         (pa_combine_instructions): Likewise.
31072         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
31073         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
31074         (sh_reorg): Likewise.
31075         (split_branches): Likewise.
31076         * config/spu/spu.c (get_branch_target): Likewise.
31078         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
31079         JUMP_TABLE_DATA_P.
31081 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
31083         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
31084         Fix declaration name.
31086 2013-03-28  Lawrence Crowl  <crowl@google.com>
31088         * graphds.h (struct graph.indicies): Remove unused.
31089         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
31090         (SCOP_ORIGINAL_PDDRS): Remove unused.
31091         * sese.h (extern insert_loop_close_phis): Removed unused.
31092         (extern insert_guard_phis): Removed unused.
31093         (extern ivtype_map_elt_info): Removed unused.
31094         (new_ivtype_map_elt): Removed unused.
31095         * sese.c (ivtype_map_elt_info): Removed unused.
31097 2013-03-28  Lawrence Crowl  <crowl@google.com>
31099         * Makefile.in: Add several missing include dependences.
31100         (DUMPFILE_H): New.
31101         (test-dump.o): New.  This object is not added to any executable,
31102         but is present for ad-hoc testing.
31103         * bitmap.c
31104         (debug (const bitmap_head_def &)): New.
31105         (debug (const bitmap_head_def *)): New.
31106         * bitmap.h
31107         (extern debug (const bitmap_head_def &)): New.
31108         (extern debug (const bitmap_head_def *)): New.
31109         * cfg.c
31110         (debug (edge_def &)): New.
31111         (debug (edge_def *)): New.
31112         * cfghooks.c
31113         (debug (basic_block_def &)): New.
31114         (debug (basic_block_def *)): New.
31115         * dumpfile.h
31116         (dump_node (const_tree, int, FILE *)): Correct source file.
31117         * dwarf2out.c
31118         (debug (die_struct &)): New.
31119         (debug (die_struct *)): New.
31120         * dwarf2out.h
31121         (extern debug (die_struct &)): New.
31122         (extern debug (die_struct *)): New.
31123         * gimple-pretty-print.c
31124         (debug (gimple_statement_d &)): New.
31125         (debug (gimple_statement_d *)): New.
31126         * gimple-pretty-print.h
31127         (extern debug (gimple_statement_d &)): New.
31128         (extern debug (gimple_statement_d *)): New.
31129         * ira-build.c
31130         (debug (ira_allocno_copy &)): New.
31131         (debug (ira_allocno_copy *)): New.
31132         (debug (ira_allocno &)): New.
31133         (debug (ira_allocno *)): New.
31134         * ira-int.h
31135         (extern debug (ira_allocno_copy &)): New.
31136         (extern debug (ira_allocno_copy *)): New.
31137         (extern debug (ira_allocno &)): New.
31138         (extern debug (ira_allocno *)): New.
31139         * ira-lives.c
31140         (debug (live_range &)): New.
31141         (debug (live_range *)): New.
31142         * lra-int.h
31143         (debug (lra_live_range &)): New.
31144         (debug (lra_live_range *)): New.
31145         * lra-lives.c
31146         (debug (lra_live_range &)): New.
31147         (debug (lra_live_range *)): New.
31148         * omega.c
31149         (debug (omega_pb_d &)): New.
31150         (debug (omega_pb_d *)): New.
31151         * omega.h
31152         (extern debug (omega_pb_d &)): New.
31153         (extern debug (omega_pb_d *)): New.
31154         * print-rtl.c
31155         (debug (const rtx_def &)): New.
31156         (debug (const rtx_def *)): New.
31157         * print-tree.c
31158         (debug_tree (tree): Move within file.
31159         (debug_raw (const tree_node &)): New.
31160         (debug_raw (const tree_node *)): New.
31161         (dump_tree_via_hooks (const tree_node *, int)): New.
31162         (debug (const tree_node &)): New.
31163         (debug (const tree_node *)): New.
31164         (debug_verbose (const tree_node &)): New.
31165         (debug_verbose (const tree_node *)): New.
31166         (debug_head (const tree_node &)): New.
31167         (debug_head (const tree_node *)): New.
31168         (debug_body (const tree_node &)): New.
31169         (debug_body (const tree_node *)): New.
31170         (debug_vec_tree (tree): Move and reimplement in terms of dump.
31171         (debug (vec<tree, va_gc> &)): New.
31172         (debug (vec<tree, va_gc> *)): New.
31173         * rtl.h
31174         (extern debug (const rtx_def &)): New.
31175         (extern debug (const rtx_def *)): New.
31176         * sbitmap.c
31177         (debug_raw (simple_bitmap_def &)): New.
31178         (debug_raw (simple_bitmap_def *)): New.
31179         (debug (simple_bitmap_def &)): New.
31180         (debug (simple_bitmap_def *)): New.
31181         * sbitmap.h
31182         (extern debug (simple_bitmap_def &)): New.
31183         (extern debug (simple_bitmap_def *)): New.
31184         (extern debug_raw (simple_bitmap_def &)): New.
31185         (extern debug_raw (simple_bitmap_def *)): New.
31186         * sel-sched-dump.c
31187         (debug (vinsn_def &)): New.
31188         (debug (vinsn_def *)): New.
31189         (debug_verbose (vinsn_def &)): New.
31190         (debug_verbose (vinsn_def *)): New.
31191         (debug (expr_def &)): New.
31192         (debug (expr_def *)): New.
31193         (debug_verbose (expr_def &)): New.
31194         (debug_verbose (expr_def *)): New.
31195         (debug (vec<rtx> &)): New.
31196         (debug (vec<rtx> *)): New.
31197         * sel-sched-dump.h
31198         (extern debug (vinsn_def &)): New.
31199         (extern debug (vinsn_def *)): New.
31200         (extern debug_verbose (vinsn_def &)): New.
31201         (extern debug_verbose (vinsn_def *)): New.
31202         (extern debug (expr_def &)): New.
31203         (extern debug (expr_def *)): New.
31204         (extern debug_verbose (expr_def &)): New.
31205         (extern debug_verbose (expr_def *)): New.
31206         (extern debug (vec<rtx> &)): New.
31207         (extern debug (vec<rtx> *)): New.
31208         * sel-sched-ir.h
31209         (_list_iter_cond_expr): Make inline instead of static.
31210         * sreal.c
31211         (debug (sreal &)): New.
31212         (debug (sreal *)): New.
31213         * sreal.h
31214         (extern debug (sreal &)): New.
31215         (extern debug (sreal *)): New.
31216         * tree.h
31217         (extern debug_raw (const tree_node &)): New.
31218         (extern debug_raw (const tree_node *)): New.
31219         (extern debug (const tree_node &)): New.
31220         (extern debug (const tree_node *)): New.
31221         (extern debug_verbose (const tree_node &)): New.
31222         (extern debug_verbose (const tree_node *)): New.
31223         (extern debug_head (const tree_node &)): New.
31224         (extern debug_head (const tree_node *)): New.
31225         (extern debug_body (const tree_node &)): New.
31226         (extern debug_body (const tree_node *)): New.
31227         (extern debug (vec<tree, va_gc> &)): New.
31228         (extern debug (vec<tree, va_gc> *)): New.
31229         * tree-cfg.c
31230         (debug (struct loop &)): New.
31231         (debug (struct loop *)): New.
31232         (debug_verbose (struct loop &)): New.
31233         (debug_verbose (struct loop *)): New.
31234         * tree-dump.c: Add header dependence.
31235         * tree-flow.h
31236         (extern debug (struct loop &)): New.
31237         (extern debug (struct loop *)): New.
31238         (extern debug_verbose (struct loop &)): New.
31239         (extern debug_verbose (struct loop *)): New.
31240         * tree-data-ref.c
31241         (debug (data_reference &)): New.
31242         (debug (data_reference *)): New.
31243         (debug (vec<data_reference_p> &)): New.
31244         (debug (vec<data_reference_p> *)): New.
31245         (debug (vec<ddr_p> &)): New.
31246         (debug (vec<ddr_p> *)): New.
31247         * tree-data-ref.h
31248         (extern debug (data_reference &)): New.
31249         (extern debug (data_reference *)): New.
31250         (extern debug (vec<data_reference_p> &)): New.
31251         (extern debug (vec<data_reference_p> *)): New.
31252         (extern debug (vec<ddr_p> &)): New.
31253         (extern debug (vec<ddr_p> *)): New.
31254         * tree-ssa-alias.c
31255         (debug (pt_solution &)): New.
31256         (debug (pt_solution *)): New.
31257         * tree-ssa-alias.h
31258         (extern debug (pt_solution &)): New.
31259         (extern debug (pt_solution *)): New.
31260         * tree-ssa-alias.c
31261         (debug (_var_map &)): New.
31262         (debug (_var_map *)): New.
31263         (debug (tree_live_info_d &)): New.
31264         (debug (tree_live_info_d *)): New.
31265         * tree-ssa-alias.h
31266         (extern debug (_var_map &)): New.
31267         (extern debug (_var_map *)): New.
31268         (extern debug (tree_live_info_d &)): New.
31269         (extern debug (tree_live_info_d *)): New.
31271 2013-03-28  Jan Hubicka  <jh@suse.cz>
31273         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31275 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
31277         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31278         record only when desired or required.
31280 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
31282         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31283         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
31285 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31287         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31288         (*andsi3_compare0_uxtw): New pattern.
31289         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31290         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31292 2013-03-28  Jan Hubicka  <jh@suse.cz>
31294         * data-streamer-in.c (streamer_read_gcov_count): New function.
31295         * gimple-streamer-out.c: Include value-prof.h.
31296         (output_gimple_stmt): Output histogram.
31297         (output_bb): Use streamer_write_gcov_count.
31298         * value-prof.c: Include data-streamer.h
31299         (dump_histogram_value): Add HIST_TYPE_MAX.
31300         (stream_out_histogram_value): New function.
31301         (stream_in_histogram_value): New function.
31302         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31303         (stream_out_histogram_value, stream_in_histogram_value): Declare.
31304         * data-streamer-out.c (streamer_write_gcov_count): New function.
31305         (streamer_write_gcov_count_stream): New function.
31306         * lto-cgraph.c (lto_output_edge): Update counter streaming.
31307         (lto_output_node): Likewise.
31308         (input_node, input_edge): Likewise.
31309         * lto-streamer-out.c (output_cfg): Update streaming.
31310         * lto-streamer-in.c (input_cfg): Likewise.
31311         * data-streamer.h (streamer_write_gcov_count,
31312         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31313         * gimple-streamer-in.c: Include value-prof.h
31314         (input_gimple_stmt): Input histograms.
31315         (input_bb): Update profile streaming.
31317 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31319         * genmodes.c (emit_max_int): New function.
31320         (emit_insn_modes_h): Added call to emit_max_function.
31321         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31322         Added doc.
31323         * machmode.def: Fixed comment.
31325 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31327         * combine.c (try_combine): Removed useless assert.
31328         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31330 2013-03-28  Marek Polacek  <polacek@redhat.com>
31331             Richard Biener  <rguenther@suse.de>
31333         PR tree-optimization/56695
31334         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31335         build signed result of a vector comparison.
31336         * tree-cfg.c (verify_gimple_comparison): Check that a result
31337         of a vector comparison has signed type.
31339 2013-03-28  Richard Biener  <rguenther@suse.de>
31341         PR tree-optimization/37021
31342         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31343         do not restrict gaps between groups.
31344         * tree-vect-stmts.c (vectorizable_load): Properly account for
31345         a gap between groups.
31347 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
31349         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31350         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31351         is not enabled.
31353 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
31355         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31356         * doc/extend.texi (Named Address Spaces): Ditto.
31357         (Variable Attributes): Ditto.
31359 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31361         * config.build: Add support for cygwin x64 target.
31362         * config.gcc: Likewise.
31363         * config.host: Likewise.
31364         * configure.ac: Likewise
31365         * configure: Regenerated.
31367 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31369         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31370         * config/i386/t-cygwin-w64: New file.
31371         * config/i386/cygwin-w64.h: New file.
31372         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31373         and add support for x64-cygwin target.
31374         (CPP_SPEC): Likewise.
31375         (CXX_WRAP_SPEC_LIST): Undefine before define.
31376         (LIBGCJ_SONAME): Use 15 as version.
31378 2013-03-27  Richard Biener  <rguenther@suse.de>
31380         PR tree-optimization/56716
31381         * tree-ssa-structalias.c (perform_var_substitution): Adjust
31382         dumping for ref nodes.
31384 2013-03-27  Martin Jambor  <mjambor@suse.cz>
31386         PR tree-optimization/55334
31387         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31388         restricted pointers to arrays.
31390 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
31392         * Makefile.in (.SUFFIXES): Add .cc.
31393         (.c.o): Apply same recipe for implicit rule .cc.o.
31395 2013-03-27  Richard Biener  <rguenther@suse.de>
31397         PR tree-optimization/37021
31398         * tree-vect-data-refs.c (vect_check_strided_load): Allow
31399         REALPART/IMAGPART_EXPRs around the supported refs.
31400         * tree-ssa-structalias.c (find_func_aliases): Assume that
31401         floating-point values are not used to transfer pointers.
31403 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
31405         * target.def (TARGET_HAS_IFUNC_P): New target hook.
31406         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31407         * doc/tm.texi: Regenerate.
31408         * targhooks.h (default_has_ifunc_p): New.
31409         * targhooks.c (default_has_ifunc_p): Ditto.
31410         * config/linux-protos.h: New file.
31411         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31412         hook for linux which disables support of indirect functions in android.
31413         * config/linux-android.c: New file.
31414         * config/t-linux-android.c: Ditto.
31415         * config.gcc: Added new object file linux-android.o.
31416         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31417         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31418         * varasm.c (do_assemble_alias): Likewise.
31419         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31420         doesn't support indirect functions.
31421         * configure: Regenerate.
31423 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
31425         PR target/56102
31426         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31427         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31428         mult-word mode.
31430 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31432         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31434 2013-03-27  Terry Guo  <terry.guo@arm.com>
31436         * config/arm/arm-cores.def: Added core cortex-r7.
31437         * config/arm/arm-tune.md: Regenerated.
31438         * config/arm/arm-tables.opt: Regenerated.
31439         * doc/invoke.texi: Added entry for core cortex-r7.
31441 2013-03-27  Walter Lee  <walt@tilera.com>
31443         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31444         double-decrement of next_scratch_regno.
31446 2013-03-27  Walter Lee  <walt@tilera.com>
31448         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31449         input operands.
31450         (insn_v1mulus): Ditto.
31451         (insn_v2muls): Ditto.
31453 2013-03-27  Walter Lee  <walt@tilera.com>
31455         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31456         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31458 2013-03-27  Walter Lee  <walt@tilera.com>
31460         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31461         (*sibcall_value): Ditto.
31463 2013-03-27  Walter Lee  <walt@tilera.com>
31465         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31466         (insn_mnz_v8qi): ... this ...
31467         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
31468         vector equivalent.
31469         (insn_v<n>mnz): Replaced by ...
31470         (insn_v1mnz): ... this ...
31471         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
31472         equivalent.
31473         (insn_mz_<mode>): Replaced by ...
31474         (insn_mz_v8qi): ... this ...
31475         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
31476         vector equivalent.
31477         (insn_v<n>mz): Replaced by ...
31478         (insn_v1mz): ... this ...
31479         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
31480         equivalent.
31482 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
31484         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31486 2013-03-26  Roland McGrath  <mcgrathr@google.com>
31488         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31489         than fprintf with a non-constant, non-format string.
31491 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31493         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31494         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
31495         operand 0 predicate.
31496         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31497         attribute.  Use general_x64nomem_operand as operand 1 predicate.
31498         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31499         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31500         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31501         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31502         (mov<mode>_insv_1): Remove expander.  Merge insn with
31503         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31504         Use general_x64nomem_operand as operand 1 predicate.
31505         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31506         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31507         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31508         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31509         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
31510         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31511         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31512         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31513         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
31514         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31515         (general_x64nomem_operand): Ditto.
31517 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31519         * config/rtems.opt: Add -pthread option.
31521 2013-03-26  Richard Biener  <rguenther@suse.de>
31523         * alias.c (find_base_term): Avoid redundant and not used recursion.
31524         (base_alias_check): Get the initial base term from the caller.
31525         (true_dependence_1): Compute and pass base terms to base_alias_check.
31526         (write_dependence_p): Likewise.
31527         (may_alias_p): Likewise.
31529 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
31531         * config/aarch64/aarch64.c (aarch64_classify_address): Support
31532         PC-relative load in SI modes and above only.
31534 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
31536         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31537         * config/arm/iwmmxt.md (WCGR0): Update.
31538         (WCGR1, WCGR2, WCGR3): Likewise.
31540 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31542         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31543         Use x64 and nox64 isa attributes.
31545 2013-03-26  Richard Biener  <rguenther@suse.de>
31547         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31548         alignment computations and rely on get_object_alignment_1
31549         for the !TYPE_P case.
31550         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31552 2013-03-26  Walter Lee  <walt@tilera.com>
31554         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31555         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31557 2013-03-25  Jeff Law  <law@redhat.com>
31559         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31560         check for INTEGRAL_TYPE_P that was missing due to checking in
31561         wrong version of prior patch.
31563 2013-03-25  Walter Lee  <walt@tilera.com>
31565         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31566         TILEGX_INSN_SHUFFLEBYTES1.
31567         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31568         shufflebytes1.
31569         (tilegx_builtins): Ditto.
31570         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31572 2013-03-25  Walter Lee  <walt@tilera.com>
31574         * config/tilegx/tilegx.md (floatsisf2): New pattern.
31575         (floatunssisf2): New pattern.
31576         (floatsidf2): New pattern.
31577         (floatunssidf2): New pattern.
31579 2013-03-25  Walter Lee  <walt@tilera.com>
31581         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31582         tests for constraint J, K, N, P.
31584 2013-03-25  Walter Lee  <walt@tilera.com>
31586         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31587         Use indirect/pcrel encoding.
31588         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31589         Ditto.
31591 2013-03-25  Steve Ellcey  <sellcey@mips.com>
31593         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31594         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31595         * config/mips/mips.c (mips_option_override): Set IMADD default.
31596         * config/mips/mips.h (PTF_AVOID_IMADD): New.
31597         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31598         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31599         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31600         * doc/invoke.texi (-mimadd/-mno-imadd): New.
31602 2013-03-25  Jeff Law  <law@redhat.com>
31604         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31605         slightly to avoid creating and folding useless trees.  Simplify
31606         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31608 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
31610         * config/i386/i386.md (*zero_extendsidi2): Merge with
31611         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
31612         * config/i386/predicates.md (x86_64_zext_operand): Rename from
31613         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
31614         targets.  Clarify comment.
31616 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31618         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31619         pass-through jump functions differently.
31620         (ipa_read_jump_function): Likewise.  Also use setter functions to set
31621         up jump functions.
31623 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31625         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31626         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31627         process it.
31628         (ipa_get_indirect_edge_target): New function.
31629         (devirtualization_time_bonus): New parameter known_aggs, pass it to
31630         ipa_get_indirect_edge_target.  Update all callers.
31631         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
31632         ipa_get_indirect_edge_target_1 instead of calling
31633         ipa_get_indirect_edge_target.
31634         (create_specialized_node): Pass aggvlas to
31635         ipcp_discover_new_direct_edges.
31637 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31639         * config/arm/arm.md (f_sels, f_seld): New types.
31640         (*cmov<mode>): New pattern.
31641         * config/arm/predicates.md (arm_vsel_comparison_operator): New
31642         predicate.
31644 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31646         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31647         POSIX-printf for mingw-hosted  builds.
31649 2013-03-25  Richard Biener  <rguenther@suse.de>
31651         PR middle-end/56694
31652         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31653         must-not-throw stmt location.
31655 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31657         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31658         Emit load-acquire versions when acq is true.
31659         (arm_emit_store_exclusive): Add rel parameter.
31660         Emit store-release versions when rel is true.
31661         (arm_split_compare_and_swap): Use acquire-release instructions
31662         instead.
31663         of barriers when appropriate.
31664         (arm_split_atomic_op): Likewise.
31665         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31666         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31667         (VUNSPEC_SLX): Likewise.
31668         (VUNSPEC_LDA): Likewise.
31669         (VUNSPEC_STL): Likewise.
31670         * config/arm/sync.md (atomic_load<mode>): New pattern.
31671         (atomic_store<mode>): Likewise.
31672         (arm_load_acquire_exclusive<mode>): Likewise.
31673         (arm_load_acquire_exclusivesi): Likewise.
31674         (arm_load_acquire_exclusivedi): Likewise.
31675         (arm_store_release_exclusive<mode>): Likewise.
31677 2013-03-25  Catherine Moore  <clm@codesourcery.com>
31679         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31680         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31681         * config/mip/predicates.md (lwsp_swsp_operand,
31682         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31683         sb16_operand, db4_operand, db7_operand, ib3_operand,
31684         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31685         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31686         andi16_operand): New predicates.
31687         * config/mips/mips.md (compression): New attribute.
31688         (enabled): New attribute.
31689         (length): Consider compression in computing length.
31690         (shift_compression): New code attribute.
31691         (*add<mode>3): New operands. Record compression.
31692         (sub<mode>3): Likewise.
31693         (one_cmpl<mode>2): Likewise.
31694         (*and<mode>3): Likewise.
31695         (*ior<mode>3): Likewise.
31696         (unnamed pattern for xor): Likewise.
31697         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31698         (*<optab><mode>3): Likewise.
31699         (*mov<mode>_internal: Likewise.
31700         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31701         (mips_unsigned_immediate_p): New.
31702         (umips_lwsp_swsp_address_p): New.
31703         (m16_based_address_p): New.
31704         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31705         (mips_unsigned_immediate_p): New prototype.
31706         (lwsp_swsp_address_p): New prototype.
31707         (m16_based_address_p): New prototype.
31708         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31709         (mips_signed_immediate_p): New function.
31710         (m16_based_address_p): New function.
31711         (lwsp_swsp_address_p): New function.
31712         (mips_print_operand_punctuation): Recognize short delay slot insns
31713         for microMIPS.add<mode>3"
31715 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31717         PR target/56720
31718         * config/arm/iterators.md (v_cmp_result): New mode attribute.
31719         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31721 2013-03-25  Richard Biener  <rguenther@suse.de>
31723         PR tree-optimization/56689
31724         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31725         any edge.
31727 2013-03-25  Richard Biener  <rguenther@suse.de>
31729         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31730         of bitmap.
31731         (memory_references): Likewise.
31732         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31733         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31734         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31735         (gather_mem_refs_in_loops): Fold into ...
31736         (analyze_memory_references): ... this.  Move initialization
31737         to tree_ssa_lim_initialize.
31738         (fill_always_executed_in): Rename to ...
31739         (fill_always_executed_in_1): ... this.
31740         (fill_always_executed_in): Move contains_call computation to
31741         this new function from ...
31742         (tree_ssa_lim_initialize): ... here.
31743         (tree_ssa_lim): Call fill_always_executed_in.
31745 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31747         * postreload.c (reload_combine): Fix code detecting returns.
31749 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31751         * function.c (emit_use_return_register_into_block): On cc0 targets,
31752         do not emit the sequence between cc0 setter and user.
31754 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31756         * config/i386/predicates.md (local_symbolic_operand): Interpret
31757         dll-imported symbols as none-local.
31759 2013-03-25  Richard Biener  <rguenther@suse.de>
31761         * tree-ssa-loop-im.c (struct depend): Remove.
31762         (struct lim_aux_data): Make depends a vec of gimples.
31763         (free_lim_aux_data): Adjust.
31764         (add_dependency): Likewise.
31765         (set_level): Likewise.
31767 2013-03-25  Richard Biener  <rguenther@suse.de>
31769         PR middle-end/56434
31770         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31771         the pointer returned by calls with ECF_MALLOC set.
31773 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31775         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31777 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31779         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31780         using MMXMODE mode iterator.
31781         (*move<mode>_internal): Merge with *movv2sf_internal and
31782         *movv2sf_internal_rex64 using MMXMODE mode iterator.
31784 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31786         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31787         (record_last_mem_set_info): Likewise.
31789         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31790         of XNEWVEC followed by memset.
31791         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31793 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31795         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31796         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31797         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31798         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31799         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31800         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31801         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31802         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31803         BARRIER_P instead of GET_CODE.
31805 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31807         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31808         inaccuracy in the probing code.
31810         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31811         (ctrapdi4): Likewise.
31813 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31815         * calls.c (expand_call): Add missing guard to code handling return
31816         of non-BLKmode structures in MSB.
31817         * function.c (expand_function_end): Likewise.
31819 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31821         * combine.c (try_combine): Adjust comment.  Do not add the set of
31822         insn #0 if the destination indirectly is set or dies in insn #2.
31823         Tidy up code to distribute a new note.
31825 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31827         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31828         also for alternatives 16 and 17.
31830 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31832         * config/i386/sse.md (*mov<mode>_internal): Merge with
31833         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
31834         Emit insn template depending on type attribute.  Use
31835         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31836         movd instead of movq mnemonic for interunit moves.  Rewrite mode
31837         attribute calculation.  Remove unit attribute calculation.
31838         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31839         Set prefix_data16 attribute for DImode ssemov types.
31840         Use Ym instead of y for SSE-MMX conversion alternatives.
31841         Reorder operand constraints.
31843 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
31845         * df.h (df_insn_delete): Adjust prototype.
31846         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31847         and let it decide whether mark the basic block dirty.
31848         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31849         * df-scan.c (df_insn_info_delete): New helper function, split
31850         off from df_insn_delete.
31851         (df_scan_free_bb_info): Use it.
31852         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31853         Likewise.
31854         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
31855         that the insn is actually an insn and it has a non-NULL basic block.
31856         Do not mark basic block dirty if only deleting a DEBUG_INSN.
31858 2013-03-22  Richard Biener  <rguenther@suse.de>
31860         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31861         dep_ref members.
31862         (mem_ref_alloc): Do not allocate them.
31863         (refs_independent_p): Do not query or maintain a cache.
31865 2013-03-22  Richard Biener  <rguenther@suse.de>
31867         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31868         (gather_mem_refs_in_loops): Do not compute it.
31869         (analyze_memory_references): Do not allocate it.
31870         (tree_ssa_lim_finalize): Do not free it.
31871         (for_all_locs_in_loop): Do not query all_refs_in_loop.
31873 2013-03-22  Richard Biener  <rguenther@suse.de>
31875         * is-a.h (as_a): Use gcc_checking_assert.
31877 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
31879         * config/aarch64/aarch64.c (aarch64_print_operand): New
31880         format specifier for printing a constant in hex.
31881         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31882         format specifier for printing second operand.
31884 2013-03-22  Richard Biener  <rguenther@suse.de>
31886         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31887         bitmaps.
31888         (gather_mem_refs_in_loops): Perform store accumulation here.
31889         (create_vop_ref_mapping_loop): Remove.
31890         (create_vop_ref_mapping): Likewise.
31891         (analyze_memory_references): Initialize refs_stored_in_loop.
31892         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31893         (record_indep_loop): Remove.
31894         (record_dep_loop): New function.
31895         (ref_indep_loop_p_1): Adjust to only walk over references
31896         in the loop, not its subloops.
31897         (ref_indep_loop_p): Rename to ...
31898         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31899         maintaining a more fine-grained cache.
31900         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31901         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31903 2013-03-22  Richard Biener  <rguenther@suse.de>
31905         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31906         (struct mem_ref): Make accesses_in_loop a vec of a vec of
31907         aggregate mem_ref_loc.
31908         (free_mem_ref_locs): Inline into ...
31909         (memref_free): ... this and adjust.
31910         (mem_ref_alloc): Adjust.
31911         (mem_ref_locs_alloc): Remove.
31912         (record_mem_ref_loc): Adjust.
31913         (get_all_locs_in_loop): Rewrite into ...
31914         (for_all_locs_in_loop): ... this iterator.
31915         (rewrite_mem_ref_loc): New functor.
31916         (rewrite_mem_refs): Use for_all_locs_in_loop.
31917         (sm_set_flag_if_changed): New functor.
31918         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31919         (ref_always_accessed): New functor.
31920         (ref_always_accessed_p): Use for_all_locs_in_loop.
31922 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31924         * tree-pass.h (PROP_gimple_lvec): New.
31925         * passes.c (dump_properties): Handle PROP_gimple_lvec.
31926         (init_optimization_passes): Move pass_lower_vector.
31927         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31928         PROP_gimple_lvec.
31929         (pass_lower_vector): Provide PROP_gimple_lvec.
31930         (pass_lower_vector_ssa): Likewise.
31931         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31933 2013-03-21  Mark Wielaard  <mjw@redhat.com>
31935         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31937 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31939         * config/i386/i386.md (*movdi_internal): Disparage slightly
31940         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
31941         conversion alternatives.
31943 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
31945         PR middle-end/48087
31946         * diagnostic.def (DK_WERROR): New kind.
31947         * diagnostic.h (werrorcount): Define.
31948         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31949         promoted to DK_ERROR, increment DK_WERROR counter instead of
31950         DK_ERROR counter.
31951         * toplev.c (toplev_main): Call print_ignored_options even if
31952         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
31953         even if just werrorcount is non-zero.
31955         PR debug/55608
31956         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31957         on failure.
31958         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31959         (string_cst_pool_decl): New function.
31960         (optimize_one_addr_into_implicit_ptr): New function.
31961         (resolve_addr_in_expr): Optimize DWARF location expression
31962         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31963         which doesn't live in memory, but has DW_AT_location or
31964         DW_AT_const_value, or refers to a string literal, into
31965         DW_OP_GNU_implicit_pointer.
31966         (optimize_location_into_implicit_ptr): New function.
31967         (resolve_addr): If removing DW_AT_location of a variable because
31968         it was DW_OP_addr of address of the variable, but the variable doesn't
31969         live in memory, try to emit const value attribute for the initializer.
31971 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31973         * tree.h (VECTOR_TYPE_P): New macro.
31974         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31975         TYPE_MODE): Use it.
31976         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31977         VEC_COND_EXPR cannot be lvalues.
31978         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31980 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31982         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31983         Restrict the transformation to equal modes.
31985 2013-03-21  Richard Biener  <rguenther@suse.de>
31987         PR tree-optimization/39326
31988         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31989         (MEM_ANALYZABLE): Adjust.
31990         (record_mem_ref_loc): Move bitmap ops ...
31991         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
31992         unanalyzable refs, do not record locations for it.
31993         (analyze_memory_references): Allocate ref zero as shared
31994         unanalyzable ref.
31995         (refs_independent_p): Do not test for unanalyzed mems here.
31996         (ref_indep_loop_p_1): Special-case disambiguation against
31997         the unanalyzed ref.
31998         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
32000 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
32002         * config/arm/arm-protos.h (tune_params): Add
32003         prefer_neon_for_64bits field.
32004         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
32005         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
32006         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
32007         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
32008         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
32009         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
32010         (arm_option_override): Handle -mneon-for-64bits new option.
32011         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
32012         (prefer_neon_for_64bits): Declare new variable.
32013         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
32014         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
32015         (arch_enabled): Handle new arch types. Remove support for onlya8
32016         and nota8.
32017         (one_cmpldi2): Use new arch names.
32018         (zero_extend<mode>di2, extend<mode>di2): Ditto.
32019         * config/arm/arm.opt (mneon-for-64bits): Add option.
32020         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
32021         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
32022         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
32023         of onlya8.
32024         * doc/invoke.texi (-mneon-for-64bits): Document.
32026 2013-03-21  Richard Biener  <rguenther@suse.de>
32028         PR tree-optimization/39326
32029         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
32030         (sort_bbs_in_loop_postorder_cmp): New function.
32031         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
32033 2013-03-21  Richard Biener  <rguenther@suse.de>
32035         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
32036         (vect_insert_into_interleaving_chain): Likewise.
32037         (vect_drs_dependent_in_basic_block): Inline ...
32038         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
32039         split out from ...
32040         (vect_analyze_data_ref_dependence): ... here.  Simplify.
32041         (vect_check_interleaving): Simplify.
32042         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
32043         (vect_slp_analyze_data_ref_dependences): ... this new function.
32044         (dr_group_sort_cmp): New function.
32045         (vect_analyze_data_ref_accesses): Compute data-reference groups
32046         here instead of in vect_analyze_data_ref_dependence.  Use
32047         a more efficient algorithm.
32048         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
32049         vect_slp_analyze_data_ref_dependences.  Call
32050         vect_analyze_data_ref_accesses earlier.
32051         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
32052         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
32053         (vect_slp_analyze_data_ref_dependences): New prototype.
32055 2013-03-21  Richard Biener  <rguenther@suse.de>
32057         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
32058         ref is stored in the loop.
32059         (find_refs_for_sm): Walk only over all stores.
32060         (store_motion_loop): Allocate from lim_bitmap_obstack.
32061         (store_motion): Likewise.
32063 2013-03-21  Richard Biener  <rguenther@suse.de>
32065         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
32066         Update virtual SSA form.
32068 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32070         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
32071         * configure: Regenerate.
32072         * config.in: Regenerate.
32073         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
32074         if !HAVE_LD_EH_FRAME_CIEV3.
32076 2013-03-21  Richard Biener  <rguenther@suse.de>
32078         * tree-cfg.c (verify_expr_no_block): New function.
32079         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
32080         nor DECL_VALUE_EXPR have locations with associated blocks.
32081         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
32082         (clear_unused_block_pointer): Remove code dealing with
32083         blocks in DECL_DEBUG_EXPR locations.
32085 2013-03-21  Richard Biener  <rguenther@suse.de>
32087         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
32088         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
32089         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
32090         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
32091         instead of DECL_DEBUG_EXPR_IS_FROM.
32092         * gimplify.c (gimplify_modify_expr): Likewise.
32093         * tree-cfg.c (verify_expr_location_1): Likewise.
32094         * tree-complex.c (create_one_component_var): Likewise.
32095         * tree-sra.c (create_access_replacement): Likewise.
32096         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
32097         (clear_unused_block_pointer): Likewise.
32098         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
32099         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
32100         * var-tracking.c (var_debug_decl): Likewise.
32101         (track_expr_p): Likewise.
32102         * tree-inline.c (add_local_variables): Likewise.  Set
32103         DECL_HAS_DEBUG_EXPR_P after copying it.
32104         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
32105         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
32107 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
32109         PR bootstrap/56656
32110         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
32111         * configure: Regenerate.
32112         * config.in: Regenerate.
32113         * config/i386/i386.md (*movdf_internal): Use
32114         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32115         movd instead of movq mnemonic for interunit moves.
32116         (*movdi_internal): Ditto.
32118 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32120         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
32121         (abd<mode>_3): New pattern.
32122         (aba<mode>_3): New pattern.
32123         (fabd<mode>_3): New pattern.
32125 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32127         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
32128         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
32129         occurrence of REGISTER_PREFIX as its empty string.
32131 2013-03-20  Jeff Law  <law@redhat.com>
32133         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
32134         addititional equivalences for equality comparisons between an SSA_NAME
32135         and a constant where the SSA_NAME was set from a widening conversion.
32137 2013-03-20  Walter Lee  <walt@tilera.com>
32139         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32141 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32143         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32144         depending on type attribute.
32145         (*movti_internal): Ditto.
32146         (*movtf_internal): Ditto.
32147         (*movxf_internal): Ditto.
32148         (*movdf_internal): Ditto.
32149         (*movsf_internal): Ditto.
32151 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32153         * config/i386/i386.md (*movti_internal): Set prefix attribute to
32154         maybe_vex for sselog1 and ssemov types.
32155         (*movdi_internal): Reorder operand constraints.
32156         (*movsi_internal): Ditto.  Set prefix attribute to
32157         maybe_vex for sselog1 and ssemov types.
32158         (*movtf_internal): Set prefix attribute to maybe_vex
32159         for sselog1 and ssemov types.
32160         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
32161         DImode ssemov types.  Reorder operand constraints.
32162         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
32163         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
32164         attribute for SImode ssemov types.  Reorder operand constraints.
32166 2013-03-20  Martin Jambor  <mjambor@suse.cz>
32168         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32169         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32171 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
32173         * config/rs6000/predicates.md (indexed_address, update_address_mem
32174         update_indexed_address_mem): New predicates.
32175         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32176         attribute for load/store instructions.
32177         * config/rs6000/dfp.md (movsd_store): Likewise.
32178         (movsd_load): Likewise.
32179         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32180         (unnamed HI->DI extend define_insn): Likewise.
32181         (unnamed SI->DI extend define_insn): Likewise.
32182         (unnamed QI->SI extend define_insn): Likewise.
32183         (unnamed QI->HI extend define_insn): Likewise.
32184         (unnamed HI->SI extend define_insn): Likewise.
32185         (unnamed HI->SI extend define_insn): Likewise.
32186         (extendsfdf2_fpr): Likewise.
32187         (movsi_internal1): Likewise.
32188         (movsi_internal1_single): Likewise.
32189         (movhi_internal): Likewise.
32190         (movqi_internal): Likewise.
32191         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32192         attribute for load/store instructions.
32193         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32194         instructions.
32195         (mov<mode>_softfloat): Likewise.
32196         (mov<mode>_hardfloat32): Likewise.
32197         (mov<mode>_hardfloat64): Likewise.
32198         (mov<mode>_softfloat64): Likewise.
32199         (movdi_internal32): Likewise.
32200         (movdi_internal64): Likewise.
32201         (probe_stack_<mode>): Likewise.
32203 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
32205         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32206         floating point, and decimal floating point to reload iterator.
32208         * config/rs6000/constraints.md (wl constraint): New constraints to
32209         return FLOAT_REGS if certain options are used to reduce the number
32210         of separate patterns that exist in the file.
32211         (wx constraint): Likewise.
32212         (wz constraint): Likewise.
32214         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32215         -mdebug=reg, print wg, wl, wx, and wz constraints.
32216         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32217         Initialize the reload functions for 64-bit binary/decimal floating
32218         point types.
32219         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32220         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32221         create the buffer on the stack to overcome not having a 32-bit
32222         load and store.
32223         (rs6000_emit_move): Likewise.
32224         (rs6000_secondary_memory_needed_rtx): Likewise.
32225         (rs6000_alloc_sdmode_stack_slot): Likewise.
32226         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32227         via xxlxor, just like DFmode 0.0.
32229         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32230         define as 1 if we are running on a power7 or newer.
32231         (enum r6000_reg_class_enum): Add new constraints.
32233         * config/rs6000/dfp.md (movsd): Delete, combine with binary
32234         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
32235         with other moves by using conditional constraits (wg).  Use LFIWZX
32236         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
32237         (movsd splitter): Likewise.
32238         (movsd_hardfloat): Likewise.
32239         (movsd_softfloat): Likewise.
32241         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32242         binary and decimal floating point moves.
32243         (fmove_ok): New attributes to combine binary and decimal floating
32244         point moves, and to combine power6x (mfpgpr) moves along normal
32245         floating moves.
32246         (real_value_to_target): Likewise.
32247         (f32_lr): Likewise.
32248         (f32_lm): Likewise.
32249         (f32_li): Likewise.
32250         (f32_sr): Likewise.
32251         (f32_sm): Likewise.
32252         (f32_si): Likewise.
32253         (movsf): Combine binary and decimal floating point moves.  Combine
32254         power6x (mfpgpr) moves with other moves by using conditional
32255         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
32256         (mov<mode> for SFmode/SDmode); Likewise.
32257         (SFmode/SDmode splitters): Likewise.
32258         (movsf_hardfloat): Likewise.
32259         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32260         (movsf_softfloat): Likewise.
32261         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32263         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32264         wx and wz constraints.
32266         * config/rs6000/constraints.md (wg constraint): New constraint to
32267         return FLOAT_REGS if -mmfpgpr (power6x) was used.
32269         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32270         constraint.
32272         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32273         -mdebug=reg, print wg, wl, wx, and wz constraints.
32274         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32275         Initialize the reload functions for 64-bit binary/decimal floating
32276         point types.
32277         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32278         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32279         create the buffer on the stack to overcome not having a 32-bit
32280         load and store.
32281         (rs6000_emit_move): Likewise.
32282         (rs6000_secondary_memory_needed_rtx): Likewise.
32283         (rs6000_alloc_sdmode_stack_slot): Likewise.
32284         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32285         via xxlxor, just like DFmode 0.0.
32287         * config/rs6000/dfp.md (movdd): Delete, combine with binary
32288         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
32289         with other moves by using conditional constraits (wg).  Use LFIWZX
32290         and STFIWX for loading SDmode on power7.
32291         (movdd splitters): Likewise.
32292         (movdd_hardfloat32): Likewise.
32293         (movdd_softfloat32): Likewise.
32294         (movdd_hardfloat64_mfpgpr): Likewise.
32295         (movdd_hardfloat64): Likewise.
32296         (movdd_softfloat64): Likewise.
32298         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32299         64-bit binary and decimal floating point moves.
32300         (FMOVE64X): Likewise.
32301         (movdf): Combine 64-bit binary and decimal floating point moves.
32302         Combine power6x (mfpgpr) moves with other moves by using
32303         conditional constraits (wg).
32304         (mov<mode> for DFmode/DDmode): Likewise.
32305         (DFmode/DDmode splitters): Likewise.
32306         (movdf_hardfloat32): Likewise.
32307         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32308         (movdf_softfloat32): Likewise.
32309         (movdf_hardfloat64_mfpgpr): Likewise.
32310         (movdf_hardfloat64): Likewise.
32311         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32312         (movdf_softfloat64): Likewise.
32313         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32314         (reload_<mode>_load): Move to later in the file so they aren't in
32315         the middle of the floating point move insns.
32316         (reload_<mode>_store): Likewise.
32318         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32319         constraint.
32321         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32322         constraint if -mdebug=reg.
32323         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32324         Enable using dd reload support if needed.
32326         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32327         binary and decimal floating point moves in rs6000.md.
32328         (movtd_internal): Likewise.
32330         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32331         decimal floating point moves.
32332         (movtf): Likewise.
32333         (movtf_internal): Likewise.
32334         (mov<mode>_internal, TDmode/TFmode): Likewise.
32335         (movtf_softfloat): Likewise.
32336         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32338         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32339         movdi_internal64, using wg constraint for move direct operations.
32340         (movdi_internal64): Likewise.
32342         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32343         MODES_TIEABLE_P for selected modes.  Print the numerical value of
32344         the various virtual registers. Use GPR/FPR first/last values,
32345         instead of hard coding the register numbers.  Print which modes
32346         have reload functions registered.
32347         (rs6000_option_override_internal): If -mdebug=reg, trace the options
32348         settings before/after setting cpu, target and subtarget settings.
32349         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32350         and for secondary reload failures in rs6000_secondary_reload_inner.
32351         (rs6000_secondary_reload_fail): Likewise.
32352         (rs6000_secondary_reload_inner): Likewise.
32354         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32355         macros for first/last GPR and FPR registers.
32356         (LAST_GPR_REGNO): Likewise.
32357         (FIRST_FPR_REGNO): Likewise.
32358         (LAST_FPR_REGNO): Likewise.
32360         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32361         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32362         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32363         (vcond<mode><mode>): Likewise.
32364         (vcondu<mode><mode>): Likewise.
32365         (vector_gtu<mode>): Likewise.
32366         (vector_gte<mode>): Likewise.
32367         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32368         to prevent the compiler from converting DImode operations to TImode.
32369         (ior<mode>3): Likewise.
32370         (and<mode>3): Likewise.
32371         (one_cmpl<mode>2): Likewise.
32372         (nor<mode>3): Likewise.
32373         (andc<mode>3): Likewise.
32375         * config/rs6000/constraints.md (wt constraint): New constraint
32376         that returns VSX_REGS if TImode is allowed in VSX registers.
32378         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32379         constant under VSX.
32381         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32382         similar to TImode, but it is restricted to being in the GPRs.
32384         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32385         TImode to occupy a single VSX register.
32387         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32388         -mvsx-timode for power7/power8.
32389         (power7 cpu): Likewise.
32390         (power8 cpu): Likewise.
32392         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32393         sure that TFmode/TDmode take up two registers if they are ever
32394         allowed in the upper VSX registers.
32395         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32396         registers.
32397         (rs6000_init_hard_regno_mode_ok): Likewise.
32398         (rs6000_debug_reg_global): Add debugging for PTImode and wt
32399         constraint.  Print if LRA is turned on.
32400         (rs6000_option_override_internal): Give an error if -mvsx-timode
32401         and VSX is not enabled.
32402         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
32403         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32404         to reg+offset addressing.  Use PTImode when checking offset
32405         addresses for validity.
32406         (reg_offset_addressing_ok_p): Likewise.
32407         (rs6000_legitimate_offset_address_p): Likewise.
32408         (rs6000_legitimize_address): Likewise.
32409         (rs6000_legitimize_reload_address): Likewise.
32410         (rs6000_legitimate_address_p): Likewise.
32411         (rs6000_eliminate_indexed_memrefs): Likewise.
32412         (rs6000_emit_move): Likewise.
32413         (rs6000_secondary_reload): Likewise.
32414         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
32415         reloads to fpr registers to continue to use reg+offset addressing,
32416         but 64-bit reloads to altivec registers need reg+reg addressing.
32417         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32418         it.  Treat LO_SUM like a PLUS operation.
32419         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32420         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32421         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32422         registers to share a register with a smaller sized type, since VSX
32423         puts scalars in the upper 64-bits.
32424         (print_operand): Add support for PTImode.
32425         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32426         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32427         registers, but don't have arithmetic support.
32428         (rs6000_memory_move_cost): Add test for VSX.
32429         (rs6000_opt_masks): Add -mvsx-timode.
32431         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32432         for TImode.
32433         (VSs): Likewise.
32434         (VSr): Use wt constraint for TImode.
32435         (VSv): Drop TImode support.
32436         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32437         (vsx_movti_64bit): Likewise.
32438         (vsx_movti_32bit): Likewise.
32439         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32440         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32441         one '?' on the appropriate output constraint.  Do not allow TImode
32442         logical operations on 32-bit systems.
32443         (vsx_ior<mode>3): Likewise.
32444         (vsx_xor<mode>3): Likewise.
32445         (vsx_one_cmpl<mode>2): Likewise.
32446         (vsx_nor<mode>3): Likewise.
32447         (vsx_andc<mode>3): Likewise.
32448         (vsx_concat_<mode>): Likewise.
32449         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32451         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32452         OPTION_MASK_VSX_TIMODE.
32453         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32454         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32456         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32457         (TI2 iterator): New iterator for TImode, PTImode.
32458         (wd mode attribute): Add values for vector types.
32459         (movti_string): Replace TI move operations with operations for TImode
32460         and PTImode.  Add support for TImode being allowed in VSX registers.
32461         (mov<mode>_string, TImode/PTImode): Likewise.
32462         (movti_ppc64): Likewise.
32463         (mov<mode>_ppc64, TImode/PTImode): Likewise.
32464         (TI mode splitters): Likewise.
32466         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32467         constraint.
32469 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
32471         PR tree-optimization/56355
32472         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32473         Also handle integers with undefined overflow.
32475 2013-03-20  Catherine Moore  <clm@codesourcery.com>
32476             Maciej W. Rozycki  <macro@codesourcery.com>
32477             Tom de Vries  <tom@codesourcery.com>
32478             Nathan Sidwell  <nathan@codesourcery.com>
32479             Iain Sandoe  <iain@codesourcery.com>
32480             Nathan Froyd  <froydnj@codesourcery.com>
32481             Chao-ying Fu  <fu@mips.com>
32483         * doc/extend.texi: (micromips, nomicromips, nocompression):
32484         Document new function attributes.
32485         * doc/invoke.texi (minterlink-compressed, mmicromips,
32486         m14k, m14ke, m14kec): Document new options.
32487         (minterlink-mips16): Update documentation.
32488         * doc/md.texi (ZC, ZD): Document new constraints.
32489         * configure.ac (gcc_cv_as_micromips): Check if linker
32490         supports the .set micromips directive.
32491         * configure: Regenerate.
32492         * config.in: Regenerate.
32493         * config/mips/mips-tables.opt: Regenerate.
32494         * config/mips/micromips.md: New file.
32495         * constraints.md (ZC, ZD): New constraints.
32496         * config/mips/predicates.md (movep_src_register): New predicate.
32497         (movep_src_operand): New predicate.
32498         (non_volatile_mem_operand): New predicate.
32499         * config/mips/mips.md (multimem): New type.
32500         (length): Differentiate between 17-bit and 18-bit branch offsets.
32501         (MOVEP1, MOVEP2): New mode iterator.
32502         (mov_<load>l): Use ZC constraint.
32503         (mov_<load>r): Likewise.
32504         (mov_<store>l): Likewise.
32505         (mov_<store>r): Likewise.
32506         (*branch_equality<mode>_inverted): Add microMIPS support.
32507         (*branch_equality<mode>): Likewise.
32508         (*jump_absolute): Likewise.
32509         (indirect_jump_<mode>): Likewise.
32510         (tablejump_<mode>): Likewise.
32511         (<optab>_internal): Likewise.
32512         (sibcall_internal): Likewise.
32513         (sibcall_value_internal): Likewise.
32514         (prefetch): Use constraint ZD.
32515         * config/mips/mips.opt (minterlink-compressed): New option.
32516         (minterlink-mips16): Now an alias for minterlink-compressed.
32517         (mmicromips): New option.
32518         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32519         (compare_and_swap_12): Likewise.
32520         (sync_add<mode>): Likewise.
32521         (sync_<optab>_12): Likewise.
32522         (sync_old_<optab>_12): Likewise.
32523         (sync_new_<optab>_12): Likewise.
32524         (sync_nand_12): Likewise.
32525         (sync_old_nand_12): Likewise.
32526         (sync_new_nand_12): Likewise.
32527         (sync_sub<mode>): Likewise.
32528         (sync_old_add<mode>): Likewise.
32529         (sync_old_sub<mode>): Likewise.
32530         (sync_new_add<mode>): Likewise.
32531         (sync_new_sub<mode>): Likewise.
32532         (sync_<optab><mode>): Likewise.
32533         (sync_old_<optab><mode>): Likewise.
32534         (sync_new_<optab><mode>): Likewise.
32535         (sync_nand<mode>): Likewise.
32536         (sync_old_nand<mode>): Likewise.
32537         (sync_new_nand<mode>): Likewise.
32538         (sync_lock_test_and_set<mode>): Likewise.
32539         (test_and_set_12): Likewise.
32540         (atomic_compare_and_swap<mode>): Likewise.
32541         (atomic_exchange<mode>_llsc): Likewise.
32542         (atomic_fetch_add<mode>_llsc): Likewise.
32543         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32544         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32545         (umips_save_restore_pattern_p): Likewise.
32546         (umips_load_store_pair_p): Likewise.
32547         (umips_output_load_store_pair): Likewise.
32548         (umips_movep_target_p): Likewise.
32549         (umips_12bit_offset_address_p): Likewise.
32550         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32551         (mips_base_mips16): Rename this...
32552         (mips_base_compression_flags): ...to this. Update all uses.
32553         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32554         (mips_mips16_decl_p): Delete.
32555         (mips_nomips16_decl_p): Delete.
32556         (mips_get_compress_on_flags): New function.
32557         (mips_get_compress_off_flags): New function.
32558         (mips_get_compress_mode): New function.
32559         (mips_get_compress_on_name): New function.
32560         (mips_get_compress_off_name): New function.
32561         (mips_insert_attributes): Support multiple compression types.
32562         (mips_merge_decl_attributes): Likewise.
32563         (umips_12bit_offset_address_p): New function.
32564         (mips_start_function_definition): Emit .set micromips directive.
32565         (mips_call_may_need_jalx_p): New function.
32566         (mips_function_ok_for_sibcall): Add microMIPS support.
32567         (mips_print_operand_punctuation): Support short delay slots and
32568         compact jumps.
32569         (umips_swm_mask, umips_swm_encoding): New.
32570         (umips_build_save_restore): New function.
32571         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32572         (was_mips16_p): Remove.
32573         (old_compression_mode): New.
32574         (mips_set_compression_mode): New function.
32575         (mips_set_current_function): Add microMIPS support.
32576         (mips_option_override): Likewise.
32577         (umips_save_restore_pattern_p): New function.
32578         (umips_output_save_restore): New function.
32579         (umips_load_store_pair_p_1): New function.
32580         (umips_load_store_pair_p): New function.
32581         (umips_output_load_store_pair_1): New function.
32582         (umips_output_load_store_pair): New function.
32583         (umips_movep_target_p) New function.
32584         (mips_prepare_pch_save): Add microMIPS support.
32585         * config/mips/mips.h (TARGET_COMPRESSION): New.
32586         (TARGET_CPU_CPP_BUILTINS): Update macro
32587         to use new compression flags and to support microMIPS.
32588         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32589         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32590         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32591         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32592         (ASM_SPEC): Support mmicromips and mno-micromips.
32593         (M16STORE_REG_P): New macro.
32594         (MIPS_CALL): Support TARGET_MICROMIPS.
32595         (MICROMIPS_J): New macro.
32596         (mips_base_mips16): Rename this...
32597         (mips_base_compression_flags): ...to this.
32598         (UMIPS_12BIT_OFFSET_P): New macro.
32599         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32600         (MULTILIB_DIRNAMES): Likewise.
32601 2013-03-20  Richard Biener  <rguenther@suse.de>
32603         PR tree-optimization/56661
32604         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32605         the result does not have to be distinct.
32607 2013-03-20  Richard Biener  <rguenther@suse.de>
32609         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32610         remap_gimple_op_r.
32612 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32613             Steven Bosscher  <steven@gcc.gnu.org>
32615         PR rtl-optimization/56605
32616         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32618 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32620         PR bootstrap/56656
32621         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32622         that require movd instead of movq.
32624 2013-03-20  Richard Biener  <rguenther@suse.de>
32626         * tree-ssa-structalias.c (struct variable_info): Add pointer
32627         to the first field of an aggregate with sub-vars.  Make
32628         this and the pointer to the next subfield its ID.
32629         (vi_next): New function.
32630         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32631         storedanything_id, integer_id): Increment by one.
32632         (new_var_info, get_call_vi, lookup_call_clobber_vi,
32633         get_call_clobber_vi): Adjust.
32634         (solution_set_expand): Simplify and speedup.
32635         (solution_set_add): Inline into ...
32636         (set_union_with_increment): ... this.  Adjust accordingly.
32637         (do_sd_constraint): Likewise.
32638         (do_ds_constraint): Likewise.
32639         (do_complex_constraint): Simplify.
32640         (build_pred_graph): Adjust.
32641         (solve_graph): Likewise.  Simplify and speedup.
32642         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32643         get_constraint_for_component_ref, get_constraint_for_1,
32644         first_vi_for_offset, first_or_preceding_vi_for_offset,
32645         create_function_info_for, create_variable_info_for_1,
32646         create_variable_info_for, intra_create_variable_infos): Adjust.
32647         (init_base_vars): Push NULL for ID zero.
32648         (compute_points_to_sets): Adjust.
32650 2013-03-20  Richard Biener  <rguenther@suse.de>
32652         * cfgloop.c (verify_loop_structure): Streamline and avoid
32653         ICEing on corrupt loop tree.
32654         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32655         loop tree.
32657 2013-03-20  Richard Biener  <rguenther@suse.de>
32659         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32660         check whether an SSA update is needed.
32662 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
32664         * config/mips/constraints.md (T): Rename to...
32665         (Yf): ...this.
32666         (U): Rename to...
32667         (Yd): ...this.
32668         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32669         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32671 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32673         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32674         (*subsi3_carryin_uxtw): Likewise.
32676 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32678         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32679         (*rorsi3_insn_uxtw): Likewise.
32681 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32683         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32684         (*extrsi5_insn_uxtw): Likewise.
32686 2013-03-19  Richard Biener  <rguenther@suse.de>
32688         PR tree-optimization/56273
32689         * passes.c (init_optimization_passes): Move second VRP after DOM.
32691 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
32693         * config/i386/i386.md (*movti_internal): Merge from
32694         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
32695         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
32696         nox64 isa attributes.
32698 2013-03-18  Richard Biener  <rguenther@suse.de>
32700         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32701         (unite): Likewise.
32702         (merge_node_constraints): Likewise.
32703         (build_succ_graph): Likewise.
32704         (valid_graph_edge): Inline into single caller.
32705         (unify_nodes): Likewise.  Use bitmap_set_bit return value
32706         and cache varinfo.
32707         (scc_visit): Fix formatting and variable use.
32708         (do_sd_constraint): Use gcc_checking_assert.
32709         (do_ds_constraint): Likewise.
32710         (do_complex_constraint): Likewise.
32711         (condense_visit): Likewise.  Cleanup.
32712         (dump_pred_graph): New function.
32713         (perform_var_substitution): Dump the pred-graph before
32714         variable substitution.
32715         (find_equivalent_node): Use gcc_checking_assert.
32716         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32718 2013-03-18  Richard Biener  <rguenther@suse.de>
32720         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32721         Remove cond_expr_stmt_list argument and do not gimplify the
32722         built expression.
32723         (vect_loop_versioning): Adjust.
32724         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32725         Cleanup to use less temporaries.
32726         (vect_create_data_ref_ptr): Cleanup.
32728 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32730         PR tree-optimization/56635
32731         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32732         require types_compatible_p types.
32734 2013-03-18  Nick Clifton  <nickc@redhat.com>
32736         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32737         spurious backslash.
32739         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32740         Add missing line to comment describing function.
32742 2013-03-18  Richard Biener  <rguenther@suse.de>
32744         PR tree-optimization/56210
32745         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32746         Handle string / character search functions.
32747         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32749 2013-03-18  Richard Biener  <rguenther@suse.de>
32751         PR middle-end/56483
32752         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32753         and implement properly.
32754         * gimple.h (gimple_cond_single_var_p): Remove.
32756 2013-03-18  Richard Biener  <rguenther@suse.de>
32758         * tree-data-ref.h (find_data_references_in_loop): Declare.
32759         * tree-data-ref.c (get_references_in_stmt): Use a stack
32760         vector pre-allocated in the callers.
32761         (find_data_references_in_stmt): Adjust.
32762         (graphite_find_data_references_in_stmt): Likewise.
32763         (create_rdg_vertices): Likewise.
32764         (find_data_references_in_loop): Export.
32765         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32766         Compute dependences here...
32767         (vect_analyze_data_refs): ...not here.  When we encounter
32768         a non-vectorizable data reference in basic-block vectorization
32769         truncate the data reference vector.  Do not bother to
32770         fixup data-dependence information for gather loads.
32771         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32772         of data references, as reported.
32774 2013-03-18  Richard Biener  <rguenther@suse.de>
32776         PR tree-optimization/3713
32777         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
32778         has_constants and expr.
32779         (stmt_has_constants): Properly valueize SSA names when deciding
32780         whether the stmt has constants.
32782 2013-03-18  Richard Biener  <rguenther@suse.de>
32784         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32785         whole function when there is nothing to do.
32786         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32787         * tree-vectorizer.c (vectorize_loops): Update virtual and
32788         loop-closed SSA once.
32789         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32791 2013-03-18  Richard Biener  <rguenther@suse.de>
32793         PR middle-end/56113
32794         * domwalk.c (bb_postorder): New global static.
32795         (cmp_bb_postorder): New function.
32796         (walk_dominator_tree): Replace scheme imposing an order for
32797         visiting dominator sons by one sorting them at the time they
32798         are pushed on the stack.
32800 2013-03-18  Richard Biener  <rguenther@suse.de>
32802         PR tree-optimization/39326
32803         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32804         (struct mem_ref): Replace mem member with ao_ref typed member.
32805         (MEM_ANALYZABLE): Adjust.
32806         (memref_eq): Likewise.
32807         (mem_ref_alloc): Likewise.
32808         (gather_mem_refs_stmt): Likewise.
32809         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32810         (execute_sm_if_changed_flag_set): Adjust.
32811         (execute_sm): Likewise.
32812         (ref_always_accessed_p): Likewise.
32813         (refs_independent_p): Likewise.
32814         (can_sm_ref_p): Likewise.
32816 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32818         PR c/56566
32819         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32820         return 1 even for !unsignedp.
32822 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32824         * config/i386/i386.md (isa): Add x64 and nox64.
32825         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32826         (*pushtf): Enable *roF alternative for x64 isa only.
32827         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
32828         mode attribute of integer alternatives to DImode for TARGET_64BIT.
32829         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
32830         (*movtf_internal): Merge from *movtf_internal_rex64 and
32831         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
32832         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
32833         nox64 isa attributes.
32834         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
32835         nox64 isa attributes.
32836         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32838 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32840         * config/alpha/alpha.c (TARGET_LRA_P): New define.
32842 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
32844         PR target/56640
32845         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32846         class names.  Remove trailing comma after "ALL_REGS".
32848 2013-03-16  Jan Hubicka  <jh@suse.cz>
32850         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32851         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32852         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32853         of cgraph_get_create_node.
32854         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32856 2013-03-16  Jason Merrill  <jason@redhat.com>
32858         PR debug/49090
32859         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32860         with DW_AT_default_value.
32862 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
32864         * BASE-VER: Set to 4.9.0.
32866 2013-03-14  Andi Kleen  <ak@linux.intel.com>
32868         PR target/56619
32869         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32870         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32871         Document _x* TSX intrinsics.
32873 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32874             David Holsgrove  <david.holsgrove@xilinx.com>
32876         * configure.ac: Add MicroBlaze TLS support detection.
32877         * configure: Regenerate.
32878         * config/microblaze/microblaze-protos.h
32879         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32880         symbol_mentioned_p, label_mentioned_p): Add prototypes.
32881         * config/microblaze/microblaze.c (microblaze_address_type): Add
32882         ADDRESS_TLS and tls_reloc address types.
32883         (microblaze_address_info): Add tls_reloc.
32884         (TARGET_HAVE_TLS): Define.
32885         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32886          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32887          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32888         load_tls_operand,  microblaze_call_tls_get_addr,
32889         microblaze_legitimize_tls_address): New functions.
32890         (microblaze_classify_unspec): Handle UNSPEC_TLS.
32891         (get_base_reg): Use microblaze_tls_symbol_p.
32892         (microblaze_classify_address): Handle TLS.
32893         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32894         label_mentioned_p and microblaze_tls_referenced_p.
32895         (microblaze_legitimize_address): Handle TLS.
32896         (microblaze_address_insns): Handle ADDRESS_TLS.
32897         (pic_address_needs_scratch): Handle TLS.
32898         (print_operand_address): Handle TLS.
32899         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32900         (microblaze_expand_move): Handle TLS.
32901         (microblaze_legitimate_constant_p): Check
32902         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32903         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32904         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32905         (PIC_OFFSET_TABLE_REGNUM): Set.
32906         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32907         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
32908         (addsi3, movsi_internal2, movdf_internal): Update constraints
32909         * config/microblaze/predicates.md (arith_plus_operand): Define
32910         (move_operand): Redefine as move_src_operand,
32911         check microblaze_tls_referenced_p.
32913 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32915         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
32916         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
32918 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32920         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32921         CC mode for AND.
32923 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
32925         PR tree-optimization/53265
32926         * common.opt (Waggressive-loop-optimizations): New option.
32927         * tree-ssa-loop-niter.c: Include tree-pass.h.
32928         (do_warn_aggressive_loop_optimizations): New function.
32929         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
32930         if number_of_latch_executions returned constant.
32931         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32932         early.  If number_of_latch_executions returned constant, set
32933         nb_iterations_upper_bound back to it.
32934         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32935         field.
32936         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32937         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32939         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32940         (MULTILIB_OSDIRNAMES): Set.
32941         * genmultilib: If defaultosdirname doesn't start with :: , set
32942         defaultosdirname2 instead, clear it and emit two . multilib_raw
32943         entries instead of just one.
32945 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
32947         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32948         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32949         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32950         (SUBTARGET_OVERRIDE_OPTIONS): New.
32952 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
32954         PR target/49880
32955         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32956         (musermode): Convert to Var(TARGET_USERMODE).
32957         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32958         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32959         * config/sh/sh.c (sh_option_override): Use
32960         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32961         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32962         condition.
32963         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32964         TARGET_SH4.
32965         (udivsi3_i4_single, divsi3_i4_single): Use
32966         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32968 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
32970         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32971         default setting.
32973 2013-03-13  Richard Biener  <rguenther@suse.de>
32975         PR tree-optimization/56608
32976         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32977         calls when vectorizing basic-blocks.
32979 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
32981         PR plugins/45078
32982         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32983         tm_file.
32985 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
32987         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32989 2013-03-11  Jan Hubicka  <jh@suse.cz>
32991         PR lto/56557
32992         * lto-streamer-out.c (output_symbol_p): Skip references from
32993         constructors of external variables.
32995 2013-03-11  Jan Hubicka  <jh@suse.cz>
32997         PR middle-end/56571
32998         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32999         from pseudos.
33000         * emit-rtl.c (verify_rtx_sharing): Likewise.
33001         (copy_insn_1): Likewise.
33002         * rtl.c (copy_rtx): Likewise.
33004 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
33006         PR target/56591
33007         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
33008         output_operand_lossage message.
33010 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
33012         PR target/56470
33013         * arm.c (shift_op): Validate RTL pattern on the fly.
33014         (arm_print_operand, case 'S'): Don't use shift_operator to validate
33015         the RTL.
33017 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33019         PR target/56347
33020         * config/pa/pa.md (call_value): Check for calls to powf and direct to
33021         new call patterns that clobber %fr12.
33022         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
33023         split and postreload patterns.
33024         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
33025         registers %fr12 and %fr12R as call used.
33027 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
33029         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
33030         (canon_address, record_store, replace_read, check_mem_read_rtx,
33031         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
33032         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
33033         rest_of_handle_dse): Likewise.
33035 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
33037         PR middle-end/56524
33038         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
33039         Add base_optabs.
33040         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
33041         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
33042         (save_optabs_if_changed): Replace with...
33043         (init_tree_optimization_optabs): ...this.
33044         * optabs.c (save_optabs_if_changed): Rename to...
33045         (init_tree_optimization_optabs): ...this.  Take the optimization node
33046         as argument.  Do nothing if the base optabs are already correct.
33047         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
33048         to recompute optabs.
33049         * function.h (function): Remove optabs field.
33050         * function.c (invoke_set_current_function_hook): Call
33051         init_tree_optimization_optabs.  Use the result to initialize
33052         this_fn_optabs.
33054 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
33056         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
33057         if GTMA_HAS_NO_INSTRUMENTATION.
33058         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
33059         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
33060         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
33061         * gimple-pretty-print.c (dump_gimple_transaction): Handle
33062         GTMA_HAS_NO_INSTRUMENTATION.
33064 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
33066         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
33067         libasan_preinit.o.
33069 2013-03-08  Marek Polacek  <polacek@redhat.com>
33070             Jakub Jelinek  <jakub@redhat.com>
33072         PR tree-optimization/56478
33073         * predict.c (is_comparison_with_loop_invariant_p): Change the
33074         type of loop_step to tree.
33075         (predict_loops): Adjust.
33076         (predict_iv_comparison): Perform the computations on double_ints.
33078 2013-03-08  Richard Biener  <rguenther@suse.de>
33080         PR tree-optimization/56570
33081         * tree-cfg.c (verify_expr_location_1): Verify locations for
33082         DECL_DEBUG_EXPR.
33083         * tree-sra.c (create_access_replacement): Strip locations
33084         from DECL_DEBUG_EXPRs.
33086 2013-03-08  Richard Biener  <rguenther@suse.de>
33088         * tree-inline.c (expand_call_inline): Do not associate
33089         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
33090         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
33092 2013-03-08  Richard Biener  <rguenther@suse.de>
33094         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
33095         or block changes with -Og.  Fix for location / block encoding
33096         changes and PHI arguments with locations.
33098 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
33100         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
33101         for all counters.
33102         (struct output_info): Likewise.
33103         (register_overhead): Remove bad gcc_assert.
33104         (bitmap_find_bit): If there is only a single bitmap element, do not
33105         count a miss as a search.
33106         (print_statistics): Update for counter type changes.
33107         (dump_bitmap_statistics): Likewise.  Print headers such that they
33108         are properly lined up with the printed counters.
33110 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
33112         PR tree-optimization/56559
33113         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
33114         check that it has only a single use.
33116 2013-03-07  Richard Biener  <rguenther@suse.de>
33118         * doc/invoke.texi (fwhole-program): Discourage use in combination
33119         with -flto.
33121 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
33123         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
33125         PR tree-optimization/56539
33126         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
33127         instead of GSI_CONTINUE_LINKING as last argument to
33128         force_gimple_operand_gsi.  Adjust function comment.
33130         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
33131         aarch64-cores.def.
33133         PR middle-end/56548
33134         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
33135         promoted mode, convert the result back to the original mode.
33137 2013-03-06  Richard Biener  <rguenther@suse.de>
33139         PR middle-end/56294
33140         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33141         (insert_updated_phi_nodes_compare_uids): New function.
33142         (update_ssa): Sort symbols_to_rename after UID before
33143         traversing it to insert PHI nodes.
33145 2013-03-06  Richard Biener  <rguenther@suse.de>
33147         PR middle-end/50494
33148         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33149         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33151         Revert
33152         2013-02-13  Richard Biener  <rguenther@suse.de>
33154         PR lto/50494
33155         * varasm.c (output_constant_def_1): Get the decl representing
33156         the constant as argument.
33157         (output_constant_def): Wrap output_constant_def_1.
33158         (make_decl_rtl): Use output_constant_def_1 with the decl
33159         representing the constant.
33160         (build_constant_desc): Optionally re-use a decl already
33161         representing the constant.
33162         (tree_output_constant_def): Adjust.
33164 2013-03-06  Joey Ye  <joey.ye@arm.com>
33166         PR lto/50293
33167         * gcc.c (convert_white_space): New function.
33168         (main): Handles white space in function name.
33170 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
33172         PR target/56529
33173         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33174         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
33175         to SH_DIV_CALL_TABLE for TARGET_SH2.
33176         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33177         list.
33178         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33179         call-table options.
33181 2013-03-05  Sterling Augustine  <saugustine@google.com>
33182             Cary Coutant  <ccoutant@google.com>
33184         PR debug/55364
33185         * dwarf2out.c (resolve_addr): Don't call
33186         remove_loc_list_addr_table_entries a second time for the same
33187         expression.
33189 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33191         PR debug/56510
33192         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33193         (avoid_complex_debug_insns): New function.
33194         (expand_debug_locations): Call it.
33196         PR rtl-optimization/56484
33197         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33198         lifetimes of hard registers on small register class machines.
33200 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
33202         * config/microblaze/microblaze-protos.h: Rename
33203         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33204         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33205         fast_interrupt.
33206         (microblaze_fast_interrupt_function_p): New function.
33207         (microblaze_is_interrupt_handler): Rename to
33208         microblaze_is_interrupt_variant and add fast_interrupt check.
33209         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33210         (save_restore_insns): Likewise.
33211         (compute_frame_size): Likewise.
33212         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33213         (microblaze_globalize_label): Likewise.
33214         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33215         * config/microblaze/microblaze.md: Use wrapper
33216         microblaze_is_interrupt_variant.
33218 2013-03-05  Kai Tietz  <ktietz@redhat.com>
33220         * sdbout.c (sdbout_one_type): Switch to current function's section
33221         supporting cold/hot.
33223 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
33225         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33226         -mxl-reorder.
33228 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33230         PR middle-end/56461
33231         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33232         if VALGRIND_GET_VBITS is defined, temporarily make object
33233         memory all defined, and restore previous valgrind addressability
33234         and definability afterwards.  Free this_object at the end.
33236         PR middle-end/56461
33237         * lra.c (lra): Call lra_clear_live_ranges if live_p,
33238         right before calling lra_create_live_ranges, also call it
33239         when clearing live_p.  Only call lra_clear_live_ranges
33240         at the end if live_p.
33242         PR middle-end/56461
33243         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33245 2013-03-05  Richard Biener  <rguenther@suse.de>
33247         PR tree-optimization/56521
33248         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33249         value-id.
33251 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
33253         PR c++/55135
33254         * except.h (remove_unreachable_eh_regions): New prototype.
33255         * except.c (remove_eh_handler_splicer): New function, split out
33256         of remove_eh_handler.
33257         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
33258         warning about running it on many EH regions one at a time.
33259         (remove_unreachable_eh_regions_worker): New function, walk the
33260         EH tree in depth-first order and remove non-marked regions.
33261         (remove_unreachable_eh_regions): New function.
33262         * tree-eh.c (mark_reachable_handlers): New function, split out
33263         from remove_unreachable_handlers.
33264         (remove_unreachable_handlers): Use mark_reachable_handlers and
33265         remove_unreachable_eh_regions.
33266         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33267         and remove_unreachable_eh_regions.
33269 2013-03-05  Richard Biener  <rguenther@suse.de>
33271         PR middle-end/56525
33272         * loop-init.c (fix_loop_structure): Remove loops in two stages,
33273         not freeing them until the end.
33275 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33277         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33279 2013-03-05  Richard Biener  <rguenther@suse.de>
33281         PR tree-optimization/56270
33282         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33283         of loads after scheduling an SLP instance.
33285 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33287         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33288         tic6x.exp.
33289         (check_gcc_parallelize): Run guality.exp as a separate job from
33290         vect.exp with unsorted.exp and $(dg_target_exps) separately from
33291         struct-layout-1.exp with stackalign.exp.
33293         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33295         PR middle-end/56461
33296         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33297         load_index sbitmap even if some bit in it isn't set.
33299         PR middle-end/56461
33300         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33301         (discover_iteration_bound_by_body_walk): Change queues to
33302         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
33303         spelling in comment.  Call safe_push on queues[bound_index] directly.
33304         Release queues[queue_index] in every iteration unconditionally.
33305         Release bounds vector.
33307         PR middle-end/56461
33308         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33309         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33310         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33311         inner_phis vector.
33313 2013-03-05  Richard Biener  <rguenther@suse.de>
33315         PR lto/56515
33316         * tree-inline.c (remap_blocks_to_null): New function.
33317         (expand_call_inline): When expanding a call stmt without
33318         an associated block inline remap all callee blocks to NULL.
33320 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33322         PR rtl-optimization/56494
33323         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33324         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33325         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33327         PR middle-end/56461
33328         * sel-sched-ir.c (free_sched_pools): Release
33329         succs_info_pool.stack[succs_info_pool.max_top] vectors too
33330         if succs_info_pool.max_top isn't -1.
33332         PR bootstrap/56509
33333         * opts.c (opts_obstack, opts_concat): Moved to...
33334         * opts-common.c (opts_obstack, opts_concat): ... here.
33336 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33338         PR middle-end/56461
33339         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33341 2013-03-04  Martin Jambor  <mjambor@suse.cz>
33343         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33344         all appropriate places.
33346 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
33348         PR tree-optimization/56424
33349         * ipa-split.c (split_function): Do not set the RSO flag if result is
33350         not by reference and its type is a register type.
33352 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
33354         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33355         (microblaze_legitimate_pic_operand): Likewise
33356         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33357         new function microblaze_legitimate_pic_operand
33358         * config/microblaze/microblaze-protos.h
33359         (microblaze_legitimate_pic_operand): Declare.
33361 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33363         * config/microblaze/predicates.md (call_insn_simple_operand):
33364         New predicate for supported rtx code types.
33365         * config/microblaze/microblaze.md (call_internal1): Use
33366         call_insn_simple_operand predicate.
33368 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33370         PR middle-end/56461
33371         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33372         partitions.ordered_remove.
33374         PR middle-end/56461
33375         * tree-vect-stmts.c (vectorizable_conversion): Don't call
33376         vec_oprnds0.create (1) for modifier == NONE.
33378         PR middle-end/56461
33379         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33380         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33381         vec_oprnds1 right before pushing anything to it for
33382         scalar_shift_arg.
33384         PR middle-end/56461
33385         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33386         set nbbs to 0 instead of having separate code path.
33387         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33388         instead of false as last argument if returning NULL.
33390 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
33392         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33393         the attribute is now called "target" instead of "option".
33394         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33395         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
33396         attribute/pragma name for TARGET_OPTION_VALID_P and
33397         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
33398         * doc/tm.texi: Regenerated.
33400 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
33402         * config/microblaze/microblaze.c:
33403         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33404         * config/microblaze/microblaze.h: Add -mxl-reorder to
33405         DRIVER_SELF_SPECS.
33406         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33407         instructions emitted if TARGET_REORDER.
33408         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33409         or 0 for -m/-mno case, but initialises as 2 to detect default use case
33410         separately.
33412 2013-03-01  Xinliang David Li  <davidxl@google.com>
33414         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33415         walk length.
33417 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
33419         PR middle-end/56461
33420         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33421         vector even when returning true.  Fix up function comment formatting.
33423         PR middle-end/56461
33424         * ira-build.c (ira_loop_nodes_count): New variable.
33425         (create_loop_tree_nodes): Initialize it.
33426         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33428         PR middle-end/56461
33429         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33430         method on dr_chain and result_chain.
33431         * tree-vect-stmts.c (vectorizable_store): Only call
33432         result_chain.create if j == 0.
33434         PR middle-end/56461
33435         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33436         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33437         before overwriting it.
33439 2013-03-01  Tobias Burnus  <burnus@net-b.de>
33441         * doc/extended.texi (C Extensions): Change order in @menu
33442         to match @node.
33443         (Other MIPS Built-in Functions): Move last MIPS entry before
33444         "picoChip Built-in Functions".
33445         (SH Built-in Functions): Move after RX Built-in Functions.
33446         * doc/gcc.texi (Introduction): Change order in @menu
33447         to match @node.
33448         * doc/md.texi (Constraints): Ditto.
33449         * gty.texi (Type Information): Ditto.
33450         (User-provided marking routines for template types): Make
33451         subsection.
33452         * doc/invoke.texi (AArch64 Options): Move before
33453         "Adapteva Epiphany Options".
33455 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
33456             Jakub Jelinek  <jakub@redhat.com>
33458         PR sanitizer/56454
33459         * asan.c (gate_asan): Lookup no_sanitize_address instead of
33460         no_address_safety_analysis attribute.
33461         * doc/extend.texi (no_address_safety_attribute): Rename to
33462         no_sanitize_address attribute, mention no_address_safety_analysis
33463         attribute as deprecated alias.
33465 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
33467         PR middle-end/56461
33468         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33469         type to vec<vec<tree> > *.
33470         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
33471         to be vec<tree> instead of vec<tree> *, set vec_defs
33472         to vNULL and call vec_defs.create (number_of_vects), adjust other
33473         uses of vec_defs.
33474         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33475         vectorizable_condition): Adjust vect_get_slp_defs callers.
33477 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33479         * config/aarch64/aarch64.c
33480         (aarch64_float_const_representable): Remove unused variable.
33482 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33484         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33486 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33488         * config/aarch64/aarch64-builtins.c
33489         (aarch64_init_simd_builtins): Make static.
33491 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33493         * config/aarch64/aarch64.c
33494         (aarch64_simd_make_constant): Make static.
33496 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33498         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33499         with no initialization to the RHS of debug statements.
33501 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33503         PR tree-optimization/56294
33504         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33505         Adjust dumping.
33506         (get_access_replacement): Do not call create_access_replacement.
33507         Assert a replacement exists.
33508         (get_repl_default_def_ssa_name): Create the replacement declaration
33509         itself.
33511 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33513         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33514         final_end_function.
33516 2013-02-28  Marek Polacek  <polacek@redhat.com>
33518         PR rtl-optimization/56466
33519         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33520         if we're changing a loop.
33521         (peel_loops_completely): Likewise.
33523 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
33525         PR c++/55813
33526         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33528 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33530         PR target/56445
33531         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33532         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33533         INTX_FTYPE_FX, FX_FTYPE_INTX.
33534         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33536 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33538         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33539         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33540         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33541         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33542         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33543         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33544         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33545         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33546         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33547         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33548         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33549         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33550         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33551         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33552         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33553         (avrxmega6): Increase max flash segments from 5 to 6.
33554         * config/avr/t-multilib: Regenerate.
33555         * config/avr/avr-tables.opt: Regenerate.
33556         * doc/avr-mmcu.texi: Regenerate.
33558 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33560         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33561         (avr_device_to_arch): Rename to avr_device_to_ld.
33562         (avr_device_to_as): New prototype.
33563         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33564         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33565         * config/avr/driver-avr.c (avr_device_to_as): New.
33566         (avr_device_to_arch): Rename to avr_device_to_ld.
33568 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33570         PR middle-end/56461
33571         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33572         method on dr_chain and result_chain.
33574         PR middle-end/56461
33575         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33576         pointer_set_destroy on not_executed_last_iteration.
33578         PR middle-end/56461
33579         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33581         PR middle-end/56461
33582         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33583         FOR_EACH_DEFINED_FUNCTION when freeing state.
33585         PR middle-end/56461
33586         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33587         pool_free.
33588         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33589         overwriting it.
33591         PR middle-end/56461
33592         * ipa-cp.c (decide_whether_version_node): Call vec_free on
33593         known_aggs[i].items and release known_aggs vector.
33595         PR middle-end/56461
33596         * ipa-reference.c (propagate): Free node_info even for alias nodes.
33598 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33600         * config/microblaze/microblaze.c (microblaze_emit_compare):
33601         Use xor for EQ/NE comparisions.
33602         * config/microblaze/microblaze.md (cstoresf4): Add constraints
33603         (cbranchsf4): Adjust operator to comparison_operator.
33605 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33607         PR middle-end/56461
33608         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33609         vector.
33610         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33611         vec_safe_push, always update *slot.
33612         (redirect_edge_var_map_clear): Use vec_free.
33613         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33614         (free_var_map_entry): Use vec_free.
33615         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33616         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33618 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
33620         PR middle-end/45472
33621         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33622         when the may_trap_p bit of the exprs being merged differs.
33623         Reorder tests for speculativeness in the logical and operator.
33625 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33627         * incpath.c (add_standard_paths): Use reconcat instead of concat
33628         where appropriate and avoid leaking memory.
33630         * opts.h: Include obstack.h.
33631         (opts_concat): New prototype.
33632         (opts_obstack): New declaration.
33633         * opts.c (opts_concat): New function.
33634         (opts_obstack): New variable.
33635         (init_options_struct): Call gcc_init_obstack on opts_obstack.
33636         (finish_options): Use opts_concat instead of concat
33637         and XOBNEWVEC instead of XNEWVEC.
33638         * opts-common.c (generate_canonical_option, decode_cmdline_option,
33639         generate_option): Likewise.
33640         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33641         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33643         PR target/56455
33644         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33645         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33647 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33649         PR middle-end/56461
33650         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33652 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33654         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33655         (arm_block_move_unaligned_straight): Likewise.
33656         (arm_adjust_block_mem): Likewise.
33658 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33660         PR target/48901
33661         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33662         temp, cond and label.
33663         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33665         PR target/52500
33666         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33667         * config/c6x/c6x.h (dbx_register_map): Update declaration.
33669         PR target/52501
33670         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33671         of prologue/epilogue functions.
33673         PR target/52550
33674         * config/tilegx/tilegx.c (tilegx_expand_prologue):
33675         Remove unused variable cfa_offset.
33676         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33678         PR target/54639
33679         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33680         type promotion to unsigned.
33682         PR target/54640
33683         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33684         for HOST_WIDE_INT of 32 bit / same size as int.
33685         (arm_block_move_unaligned_straight): Likewise.
33686         (arm_adjust_block_mem): Likewise.
33688         PR target/54662
33689         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33690         ALL_CFLAGS.
33692 2013-02-26  Marek Polacek  <polacek@redhat.com>
33694         PR tree-optimization/56426
33695         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33697 2013-02-26  Richard Biener  <rguenther@suse.de>
33699         PR target/56444
33700         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33701         unused variable loops.
33703 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33705         PR tree-optimization/56448
33706         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33707         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33708         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33709         later operands of the references, or even first operand for
33710         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33712         PR tree-optimization/56443
33713         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33714         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33715         to type_for_mode langhook.
33717 2013-02-25  Matt Turner  <mattst88@gmail.com>
33719         * doc/invoke.texi: Document r4700.
33721 2013-02-25  Richard Biener  <rguenther@suse.de>
33723         PR tree-optimization/56175
33724         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33725         split out from ...
33726         (simplify_bitwise_binary): ... here.  Also guard the conversion
33727         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33729 2013-02-25  Catherine Moore  <clm@codesourcery.com>
33731         Revert:
33732         2013-02-24  Catherine Moore  <clm@codesourcery.com>
33733             Maciej W. Rozycki  <macro@codesourcery.com>
33734             Tom de Vries  <tom@codesourcery.com>
33735             Nathan Sidwell  <nathan@codesourcery.com>
33736             Iain Sandoe  <iain@codesourcery.com>
33737             Nathan Froyd  <froydnj@codesourcery.com>
33738             Chao-ying Fu  <fu@mips.com>
33740         * doc/extend.texi: (micromips, nomicromips, nocompression):
33741         Document new function attributes.
33742         * doc/invoke.texi (minterlink-compressed, mmicromips,
33743         m14k, m14ke, m14kec): Document new options.
33744         (minterlink-mips16): Update documentation.
33745         * doc/md.texi (ZC, ZD): Document new constraints.
33746         * configure.ac (gcc_cv_as_micromips): Check if linker
33747         supports the .set micromips directive.
33748         * configure: Regenerate.
33749         * config.in: Regenerate.
33750         * config/mips/mips-tables.opt: Regenerate.
33751         * config/mips/micromips.md: New file.
33752         * constraints.md (ZC, AD): New constraints.
33753         * config/mips/predicates.md (movep_src_register): New predicate.
33754         (movep_src_operand): New predicate.
33755         (non_volatile_mem_operand): New predicate.
33756         * config/mips/mips.md (multimem): New type.
33757         (length): Differentiate between 17-bit and 18-bit branch offsets.
33758         (MOVEP1, MOVEP2): New mode iterator.
33759         (mov_<load>l): Use ZC constraint.
33760         (mov_<load>r): Likewise.
33761         (mov_<store>l): Likewise.
33762         (mov_<store>r): Likewise.
33763         (*branch_equality<mode>_inverted): Add microMIPS support.
33764         (*branch_equality<mode>): Likewise.
33765         (*jump_absolute): Likewise.
33766         (indirect_jump_<mode>): Likewise.
33767         (tablejump_<mode>): Likewise.
33768         (<optab>_internal): Likewise.
33769         (sibcall_internal): Likewise.
33770         (sibcall_value_internal): Likewise.
33771         (prefetch): Use constraint ZD.
33772         * config/mips/mips.opt (minterlink-compressed): New option.
33773         (minterlink-mips16): Now an alias for minterlink-compressed.
33774         (mmicromips): New option.
33775         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33776         (compare_and_swap_12): Likewise.
33777         (sync_add<mode>): Likewise.
33778         (sync_<optab>_12): Likewise.
33779         (sync_old_<optab>_12): Likewise.
33780         (sync_new_<optab>_12): Likewise.
33781         (sync_nand_12): Likewise.
33782         (sync_old_nand_12): Likewise.
33783         (sync_new_nand_12): Likewise.
33784         (sync_sub<mode>): Likewise.
33785         (sync_old_add<mode>): Likewise.
33786         (sync_old_sub<mode>): Likewise.
33787         (sync_new_add<mode>): Likewise.
33788         (sync_new_sub<mode>): Likewise.
33789         (sync_<optab><mode>): Likewise.
33790         (sync_old_<optab><mode>): Likewise.
33791         (sync_new_<optab><mode>): Likewise.
33792         (sync_nand<mode>): Likewise.
33793         (sync_old_nand<mode>): Likewise.
33794         (sync_new_nand<mode>): Likewise.
33795         (sync_lock_test_and_set<mode>): Likewise.
33796         (test_and_set_12): Likewise.
33797         (atomic_compare_and_swap<mode>): Likewise.
33798         (atomic_exchange<mode>_llsc): Likewise.
33799         (atomic_fetch_add<mode>_llsc): Likewise.
33800         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33801         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33802         (umips_save_restore_pattern_p): Likewise.
33803         (umips_load_store_pair_p): Likewise.
33804         (umips_output_load_store_pair): Likewise.
33805         (umips_movep_target_p): Likewise.
33806         (umips_12bit_offset_address_p): Likewise.
33807         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33808         (mips_base_mips16): Rename this...
33809         (mips_base_compression_flags): ...to this. Update all uses.
33810         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33811         (mips_mips16_decl_p): Delete.
33812         (mips_nomips16_decl_p): Delete.
33813         (mips_get_compress_on_flags): New function.
33814         (mips_get_compress_off_flags): New function.
33815         (mips_get_compress_mode): New function.
33816         (mips_get_compress_on_name): New function.
33817         (mips_get_compress_off_name): New function.
33818         (mips_insert_attributes): Support multiple compression types.
33819         (mips_merge_decl_attributes): Likewise.
33820         (umips_12bit_offset_address_p): New function.
33821         (mips_start_function_definition): Emit .set micromips directive.
33822         (mips_call_may_need_jalx_p): New function.
33823         (mips_function_ok_for_sibcall): Add microMIPS support.
33824         (mips_print_operand_punctuation): Support short delay slots and
33825         compact jumps.
33826         (umips_swm_mask, umips_swm_encoding): New.
33827         (umips_build_save_restore): New function.
33828         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33829         (was_mips16_p): Remove.
33830         (old_compression_mode): New.
33831         (mips_set_compression_mode): New function.
33832         (mips_set_current_function): Add microMIPS support.
33833         (mips_option_override): Likewise.
33834         (umips_save_restore_pattern_p): New function.
33835         (umips_output_save_restore): New function.
33836         (umips_load_store_pair_p_1): New function.
33837         (umips_load_store_pair_p): New function.
33838         (umips_output_load_store_pair_1): New function.
33839         (umips_output_load_store_pair): New function.
33840         (umips_movep_target_p) New function.
33841         (mips_prepare_pch_save): Add microMIPS support.
33842         * config/mips/mips.h (TARGET_COMPRESSION): New.
33843         (TARGET_CPU_CPP_BUILTINS): Update macro
33844         to use new compression flags and to support microMIPS.
33845         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33846         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33847         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33848         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33849         (ASM_SPEC): Support mmicromips and mno-micromips.
33850         (M16STORE_REG_P): New macro.
33851         (MIPS_CALL): Support TARGET_MICROMIPS.
33852         (MICROMIPS_J): New macro.
33853         (mips_base_mips16): Rename this...
33854         (mips_base_compression_flags): ...to this.
33855         (UMIPS_12BIT_OFFSET_P): New macro.
33856         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33857         (MULTILIB_DIRNAMES): Likewise.
33859 2013-02-25  Tom de Vries  <tom@codesourcery.com>
33861         PR rtl-optimization/56131
33862         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33863         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33864         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33866 2013-02-25  Tobias Burnus  <burnus@net-b.de>
33868         * doc/invoke.texi (-fsanitize=): Move from optimization
33869         to debugging options.
33871 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33873         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33875 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33876             Alexander Monakov  <amonakov@ispras.ru>
33878         PR middle-end/56077
33879         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33880         flush pending lists also on non-jumps.  Adjust comment.
33882 2013-02-24  Catherine Moore  <clm@codesourcery.com>
33883             Maciej W. Rozycki  <macro@codesourcery.com>
33884             Tom de Vries  <tom@codesourcery.com>
33885             Nathan Sidwell  <nathan@codesourcery.com>
33886             Iain Sandoe  <iain@codesourcery.com>
33887             Nathan Froyd  <froydnj@codesourcery.com>
33888             Chao-ying Fu  <fu@mips.com>
33890         * doc/extend.texi: (micromips, nomicromips, nocompression):
33891         Document new function attributes.
33892         * doc/invoke.texi (minterlink-compressed, mmicromips,
33893         m14k, m14ke, m14kec): Document new options.
33894         (minterlink-mips16): Update documentation.
33895         * doc/md.texi (ZC, ZD): Document new constraints.
33896         * configure.ac (gcc_cv_as_micromips): Check if linker
33897         supports the .set micromips directive.
33898         * configure: Regenerate.
33899         * config.in: Regenerate.
33900         * config/mips/mips-tables.opt: Regenerate.
33901         * config/mips/micromips.md: New file.
33902         * constraints.md (ZC, AD): New constraints.
33903         * config/mips/predicates.md (movep_src_register): New predicate.
33904         (movep_src_operand): New predicate.
33905         (non_volatile_mem_operand): New predicate.
33906         * config/mips/mips.md (multimem): New type.
33907         (length): Differentiate between 17-bit and 18-bit branch offsets.
33908         (MOVEP1, MOVEP2): New mode iterator.
33909         (mov_<load>l): Use ZC constraint.
33910         (mov_<load>r): Likewise.
33911         (mov_<store>l): Likewise.
33912         (mov_<store>r): Likewise.
33913         (*branch_equality<mode>_inverted): Add microMIPS support.
33914         (*branch_equality<mode>): Likewise.
33915         (*jump_absolute): Likewise.
33916         (indirect_jump_<mode>): Likewise.
33917         (tablejump_<mode>): Likewise.
33918         (<optab>_internal): Likewise.
33919         (sibcall_internal): Likewise.
33920         (sibcall_value_internal): Likewise.
33921         (prefetch): Use constraint ZD.
33922         * config/mips/mips.opt (minterlink-compressed): New option.
33923         (minterlink-mips16): Now an alias for minterlink-compressed.
33924         (mmicromips): New option.
33925         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33926         (compare_and_swap_12): Likewise.
33927         (sync_add<mode>): Likewise.
33928         (sync_<optab>_12): Likewise.
33929         (sync_old_<optab>_12): Likewise.
33930         (sync_new_<optab>_12): Likewise.
33931         (sync_nand_12): Likewise.
33932         (sync_old_nand_12): Likewise.
33933         (sync_new_nand_12): Likewise.
33934         (sync_sub<mode>): Likewise.
33935         (sync_old_add<mode>): Likewise.
33936         (sync_old_sub<mode>): Likewise.
33937         (sync_new_add<mode>): Likewise.
33938         (sync_new_sub<mode>): Likewise.
33939         (sync_<optab><mode>): Likewise.
33940         (sync_old_<optab><mode>): Likewise.
33941         (sync_new_<optab><mode>): Likewise.
33942         (sync_nand<mode>): Likewise.
33943         (sync_old_nand<mode>): Likewise.
33944         (sync_new_nand<mode>): Likewise.
33945         (sync_lock_test_and_set<mode>): Likewise.
33946         (test_and_set_12): Likewise.
33947         (atomic_compare_and_swap<mode>): Likewise.
33948         (atomic_exchange<mode>_llsc): Likewise.
33949         (atomic_fetch_add<mode>_llsc): Likewise.
33950         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33951         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33952         (umips_save_restore_pattern_p): Likewise.
33953         (umips_load_store_pair_p): Likewise.
33954         (umips_output_load_store_pair): Likewise.
33955         (umips_movep_target_p): Likewise.
33956         (umips_12bit_offset_address_p): Likewise.
33957         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33958         (mips_base_mips16): Rename this...
33959         (mips_base_compression_flags): ...to this. Update all uses.
33960         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33961         (mips_mips16_decl_p): Delete.
33962         (mips_nomips16_decl_p): Delete.
33963         (mips_get_compress_on_flags): New function.
33964         (mips_get_compress_off_flags): New function.
33965         (mips_get_compress_mode): New function.
33966         (mips_get_compress_on_name): New function.
33967         (mips_get_compress_off_name): New function.
33968         (mips_insert_attributes): Support multiple compression types.
33969         (mips_merge_decl_attributes): Likewise.
33970         (umips_12bit_offset_address_p): New function.
33971         (mips_start_function_definition): Emit .set micromips directive.
33972         (mips_call_may_need_jalx_p): New function.
33973         (mips_function_ok_for_sibcall): Add microMIPS support.
33974         (mips_print_operand_punctuation): Support short delay slots and
33975         compact jumps.
33976         (umips_swm_mask, umips_swm_encoding): New.
33977         (umips_build_save_restore): New function.
33978         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33979         (was_mips16_p): Remove.
33980         (old_compression_mode): New.
33981         (mips_set_compression_mode): New function.
33982         (mips_set_current_function): Add microMIPS support.
33983         (mips_option_override): Likewise.
33984         (umips_save_restore_pattern_p): New function.
33985         (umips_output_save_restore): New function.
33986         (umips_load_store_pair_p_1): New function.
33987         (umips_load_store_pair_p): New function.
33988         (umips_output_load_store_pair_1): New function.
33989         (umips_output_load_store_pair): New function.
33990         (umips_movep_target_p) New function.
33991         (mips_prepare_pch_save): Add microMIPS support.
33992         * config/mips/mips.h (TARGET_COMPRESSION): New.
33993         (TARGET_CPU_CPP_BUILTINS): Update macro
33994         to use new compression flags and to support microMIPS.
33995         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33996         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33997         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33998         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33999         (ASM_SPEC): Support mmicromips and mno-micromips.
34000         (M16STORE_REG_P): New macro.
34001         (MIPS_CALL): Support TARGET_MICROMIPS.
34002         (MICROMIPS_J): New macro.
34003         (mips_base_mips16): Rename this...
34004         (mips_base_compression_flags): ...to this.
34005         (UMIPS_12BIT_OFFSET_P): New macro.
34006         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34007         (MULTILIB_DIRNAMES): Likewise.
34009 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
34011         PR target/52555
34012         * target-globals.c (save_target_globals): For init_reg_sets and
34013         target_reinit remporarily set this_fn_optabs to this_target_optabs.
34015 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
34017         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
34018         * config/aarch64/t-aarch64
34019         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
34021 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
34023         PR inline-asm/56148
34024         * lra-constraints.c (process_alt_operands): Reload operand
34025         conflicting with earlier clobber only if no more other conflicting
34026         operands.
34028 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
34030         PR sanitizer/56393
34031         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
34032         if not linking a shared library.
34034 2013-02-22  Seth LaForge  <sethml@google.com>
34036         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
34038 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
34040         * config/arm/arm.md (split for extendsidi): Update condition.
34041         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
34042         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
34043         (qhs_zextenddi_cstr): Likewise.
34045 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
34047         PR middle-end/56420
34048         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
34049         avoid signed wrapping.
34050         (expand_mult): Handle properly multiplication by
34051         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
34052         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
34053         in the compiler if coeff is HOST_WIDE_INT_MIN.
34054         (expand_divmod): Don't make ext_op1 static, change it's type to
34055         uhwi.  Avoid undefined behavior in -INTVAL (op1).
34057         PR rtl-optimization/50339
34058         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
34059         field.
34060         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
34061         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
34062         into splitting_ashiftrt field.
34063         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
34064         ASHIFTRT.
34065         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
34066         choices.
34068 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
34070         PR middle-end/56108
34071         * trans-mem.c (execute_tm_mark): Do not expand transactions that
34072         are sure to go irrevocable.
34074 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
34076         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
34077         scalars are valid operands.
34079 2013-02-21  Martin Jambor  <mjambor@suse.cz>
34081         PR tree-optimization/56310
34082         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
34083         only matching indices and non-negative final offsets.
34084         (intersect_aggregates_with_edge): Pass src_idx to
34085         agg_replacements_to_vector.  Pass src_idx insstead of index to
34086         intersect_with_agg_replacements.
34088 2013-02-21  Martin Jambor  <mjambor@suse.cz>
34090         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
34091         instead of hard-wired defaults.
34093 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
34095         * doc/invoke.texi (MIPS Options): Update documentation of the
34096         floating-point multiply-accumulate instruction restrictions.
34098 2013-02-21  Kostya Serebryany  <kcc@google.com>
34100         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
34101         asan_shadow_offset on x86_64 linux.
34103 2013-02-21  Richard Biener  <rguenther@suse.de>
34105         PR tree-optimization/56415
34106         Revert
34107         2013-02-11  Richard Biener  <rguenther@suse.de>
34109         PR tree-optimization/56273
34110         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34111         first VRP run.
34113 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
34115         PR bootstrap/56258
34116         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
34117         instead of @itemx.
34119         PR inline-asm/56405
34120         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
34121         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
34123 2013-02-20  Jan Hubicka  <jh@suse.cz>
34125         PR tree-optimization/56265
34126         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
34127         when target is referenced for first time.
34129 2013-02-20  Richard Biener  <rguenther@suse.de>
34131         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
34132         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
34133         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
34134         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
34135         not return anything.
34136         (rename_ssa_copies): Do not remove unused locals.
34137         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34138         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34139         * passes.c (execute_function_todo): Do not schedule unused locals
34140         removal if cleanup_tree_cfg did something.
34141         * tree-ssa-live.c (remove_unused_locals): Dump statistics
34142         about the number of removed locals.
34144 2013-02-20  Richard Biener  <rguenther@suse.de>
34146         PR tree-optimization/56398
34147         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34149 2013-02-20  Martin Jambor  <mjambor@suse.cz>
34151         PR tree-optimization/55334
34152         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34153         restricted pointers to arrays.
34155 2013-02-20  Richard Biener  <rguenther@suse.de>
34156             Jakub Jelinek  <jakub@redhat.com>
34158         PR tree-optimization/56396
34159         * tree-ssa-ccp.c (n_const_val): New static variable.
34160         (get_value): Return NULL for SSA names we don't have a lattice
34161         entry for.
34162         (ccp_initialize): Initialize n_const_val.
34163         * tree-ssa-copy.c (n_copy_of): New static variable.
34164         (init_copy_prop): Initialize n_copy_of.
34165         (get_value): Return NULL_TREE for SSA names we don't have a
34166         lattice entry for.
34168 2013-02-20  Martin Jambor  <mjambor@suse.cz>
34170         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34172 2013-02-20  Richard Biener  <rguenther@suse.de>
34174         * genpreds.c (write_lookup_constraint): Do not compare first
34175         letter of the constraint again.
34177 2013-02-20  Richard Biener  <rguenther@suse.de>
34179         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34180         and ceil_log2.
34181         (get_use_iv_cost): Terminate hashtable walk when coming across
34182         an empty entry.
34184 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
34186         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34187         reassociation for avx2 targets.
34189 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34191         * config/microblaze/microblaze.c: microblaze_has_clz = 0
34192         Add version check for v8.10.a to enable microblaze_has_clz
34193         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34194         version and TARGET_PATTERN_COMPARE check
34195         * config/microblaze/microblaze.md: New clzsi2 instruction
34197 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34199         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34200         function before branching.
34202 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
34204         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34205         DUMP_INSN_RTX_UID.
34206         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34208 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
34210         PR middle-end/55889
34211         * sel-sched.c: Include ira.h.
34212         (implicit_clobber_conflict_p): New function.
34213         (moveup_expr): Use it.
34214         * Makefile.in (sel-sched.o): Depend on ira.h.
34216 2013-02-19  Richard Biener  <rguenther@suse.de>
34218         PR tree-optimization/56384
34219         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34220         (vn_hash_type): Split out from ...
34221         (vn_hash_constant_with_type): ... here.
34222         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34223         (vn_phi_eq): Compare types from vn_phi_s structure.
34224         (vn_phi_lookup): Populate vn_phi_s type.
34225         (vn_phi_insert): Likewise.
34227 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
34229         PR tree-optimization/56350
34230         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34231         if haven't found reduction or nested cycle operand, rather than
34232         asserting we must find it.
34234         PR tree-optimization/56381
34235         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34236         to fold_build3.
34238 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
34239             Jakub Jelinek  <jakub@redhat.com>
34241         PR target/52555
34242         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34243         (swap_optab_enable): Same.
34244         (init_all_optabs): Use argument instead of global.
34245         * tree.h (struct tree_optimization_option): New field target_optabs.
34246         * expr.h (init_all_optabs): Add argument to prototype.
34247         (TREE_OPTIMIZATION_OPTABS): New.
34248         (save_optabs_if_changed): Protoize.
34249         * optabs.h: Declare this_fn_optabs.
34250         * optabs.c (save_optabs_if_changed): New.
34251         Declare this_fn_optabs.
34252         (init_optabs): Add argument to init_all_optabs() call.
34253         * function.c (invoke_set_current_function_hook): Handle per
34254         function optabs.
34255         * function.h (struct function): New field optabs.
34256         * config/mips/mips.c (mips_set_mips16_mode): Handle when
34257         optimization_current_node has changed.
34258         * target-globals.h (save_target_globals_default_opts): Protoize.
34259         * target-globals.c (save_target_globals_default_opts): New.
34261 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34263         PR target/56347
34264         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34265         registers %fr12 and %fr12R as call used.
34267         PR target/56214
34268         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34269         and HImode, require all displacements to be an integer multiple of
34270         their mode size.
34271         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34272         only allow QImode and HImode when reload is in progress and strict is
34273         true.  Likewise for symbolic addresses.  Use base14_operand to check
34274         displacements in REG+BASE addresses.
34276 2013-02-18  Richard Biener  <rguenther@suse.de>
34278         PR tree-optimization/56366
34279         * tree-vect-loop.c (get_initial_def_for_induction): Properly
34280         handle sign-conversion of outer-loop initial induction value.
34282 2013-02-18  Richard Biener  <rguenther@suse.de>
34284         PR middle-end/56349
34285         * cfghooks.c (merge_blocks): If we merge a latch into another
34286         block adjust references to it.
34287         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34288         (verify_loop_structure): Verify that a recorded latch is in fact
34289         a latch.
34291 2013-02-18  Richard Biener  <rguenther@suse.de>
34293         PR tree-optimization/56321
34294         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34295         order SSA name release and virtual operand unlinking.
34297 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34299         * config/microblaze/microblaze.md (save_stack_block): Define.
34300         (restore_stack_block): Likewise.
34302 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34304         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34305         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34306         * config/microblaze/microblaze.c (microblaze_option_override):
34307         Bail out early for PIC modes when target does not support PIC.
34309 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34311         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34312         Replace with a microblaze version.
34313         (microblaze_trampoline_init): Adapt for microblaze.
34314         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34315         microblaze.
34317 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
34318             Dodji Seketeli  <dodji@redhat.com>
34320         PR asan/56330
34321         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34322         (instrument_mem_region_access): Do not forget to always put
34323         instrumentation of the of 'base' and 'base + len' in a "if (len !=
34324         0) statement, even for cases where either 'base' or 'base + len'
34325         are not instrumented -- because they have been previously
34326         instrumented.  Simplify the logic by putting all the statements
34327         instrument 'base + len' inside a sequence, and then insert that
34328         sequence right before the current insertion point.  Then, to
34329         instrument 'base + len', just get an iterator on that statement.
34330         And do not forget to update the pointer to iterator the function
34331         received as argument.
34333 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
34335         PR rtl-optimization/56348
34336         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34338 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
34340         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34341         (clean_graph_dump_file): Pass base to start_graph_dump.
34343 2013-02-14  Richard Henderson  <rth@redhat.com>
34345         PR target/55941
34346         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34348 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
34350         * collect2-aix.h: Define F_LOADONLY.
34352 2013-02-14  Richard Biener  <rguenther@suse.de>
34354         PR lto/50494
34355         * varasm.c (output_constant_def_1): Get the decl representing
34356         the constant as argument.
34357         (output_constant_def): Wrap output_constant_def_1.
34358         (make_decl_rtl): Use output_constant_def_1 with the decl
34359         representing the constant.
34360         (build_constant_desc): Optionally re-use a decl already
34361         representing the constant.
34362         (tree_output_constant_def): Adjust.
34364 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
34366         Fix an asan crash
34367         * asan.c (instrument_builtin_call):  Really put the length of the
34368         second source argument into src1_len.
34370 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34372         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34373         argument.  If it is false, don't create edge from then_bb to
34374         fallthru_bb.
34375         (insert_if_then_before_iter): Pass true to it.
34376         (build_check_stmt): Pass false to it.
34377         (transform_statements): Flush hash table only on extended basic
34378         block boundaries, rather than at the beginning of every bb.
34379         Don't flush hash table on nonfreeing_call_p calls.
34380         * tree-flow.h (nonfreeing_call_p): New prototype.
34381         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34383 2013-02-13  David S. Miller  <davem@davemloft.net>
34385         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34387 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
34389         PR target/56184
34390         * ira.c (max_regno_before_ira): Move from ...
34391         (ira): ... here.
34392         (fix_reg_equiv_init): Use max_regno_before_ira instead of
34393         vec_safe_length.
34395 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34397         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34399 2013-02-13  Richard Biener  <rguenther@suse.de>
34401         PR lto/56295
34402         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34403         globals in MEM_REFs.
34405 2013-02-13  Richard Biener  <rguenther@suse.de>
34407         * loop-init.c (loop_optimizer_init): Clear loop state when
34408         re-initializing preserved loops.
34409         * loop-unswitch.c (unswitch_single_loop): Return whether
34410         we unswitched the loop.  Do not verify loop state here.
34411         (unswitch_loops): When we unswitched a loop discover new loops.
34413 2013-02-13  Kostya Serebryany  <kcc@google.com>
34415         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34416         on x86_64 linux.
34417         * sanitizer.def: Rename __asan_init to __asan_init_v1.
34419 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
34421         Avoid instrumenting duplicated memory access in the same basic block
34422         * Makefile.in (asan.o): Add new dependency on hash-table.h
34423         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34424         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34425         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34426         (free_mem_ref_resources, has_mem_ref_been_instrumented)
34427         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34428         (get_mem_ref_of_assignment): New functions.
34429         (get_mem_refs_of_builtin_call): Extract from
34430         instrument_builtin_call and tweak a little bit to make it fit with
34431         the new signature.
34432         (instrument_builtin_call): Use the new
34433         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
34434         of is_gimple_builtin_call.
34435         (instrument_derefs, instrument_mem_region_access): Insert the
34436         instrumented memory reference into the hash table.
34437         (maybe_instrument_assignment): Renamed instrument_assignment into
34438         this, and change it to advance the iterator when instrumentation
34439         actually happened and return true in that case.  This makes it
34440         homogeneous with maybe_instrument_assignment, and thus give a
34441         chance to callers to be more 'regular'.
34442         (transform_statements): Clear the memory reference hash table
34443         whenever we enter a new BB, when we cross a function call, or when
34444         we are done transforming statements.  Use
34445         maybe_instrument_assignment instead of instrumentation.  No more
34446         need to special case maybe_instrument_assignment and advance the
34447         iterator after calling it; it's now handled just like
34448         maybe_instrument_call.  Update comment.
34450 2013-02-13  Richard Biener  <rguenther@suse.de>
34452         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34453         Fix loop discovery code.
34455 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
34457         PR inline-asm/56148
34458         * lra-constraints.c (process_alt_operands): Match early clobber
34459         operand with itself.  Check conflicts with earlyclobber only if
34460         the operand is not reloaded.  Prefer to reload conflicting operand
34461         if earlyclobber and matching operands are the same.
34463 2013-02-12  Richard Biener  <rguenther@suse.de>
34465         PR lto/56297
34466         * lto-streamer-out.c (write_symbol): Do not output symbols
34467         for hard register variables.
34469 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
34471         PR target/54222
34472         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34473         (umulsidi3_insn, mulsidi3_insn): New insns.
34475 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
34477         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34478         (struct tune_params): Add vec_costs field.
34479         * config/arm/arm.c (arm_builtin_vectorization_cost)
34480         (arm_add_stmt_cost): New functions.
34481         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34482         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34483         (arm_default_vec_cost): New struct of type cpu_vec_costs.
34484         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34485         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34486         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34487         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34489 2013-02-12  Richard Biener  <rguenther@suse.de>
34491         PR lto/56295
34492         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34493         decls again if possible.
34495 2013-02-12  Richard Biener  <rguenther@suse.de>
34497         PR middle-end/56288
34498         * tree-ssa.c (verify_ssa_name): Fix check, move
34499         SSA_NAME_IN_FREE_LIST check up.
34501 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
34502             Steven Bosscher   <steven@gcc.gnu.org>
34504         PR rtl-optimization/56151
34505         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34506         equal to op0 or op1, and last_insn pattern is CODE operation
34507         with MEM dest and one of the operands matches that MEM.
34509 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
34511         * doc/extend.texi: Document Function Multiversioning and "default"
34512         parameter string to target attribute.
34513         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34514         target attribute parameter is "default".
34515         (ix86_compare_version_priority): Remove checks for target attribute.
34516         (ix86_mangle_function_version_assembler_name): Change error to sorry.
34517         Remove check for target attribute equal to NULL. Add assert.
34518         (ix86_generate_version_dispatcher_body): Change error to sorry.
34520 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
34521             Jack Howarth  <howarth@bromo.med.uc.edu>
34522             Patrick Marlier  <patrick.marlier@gmail.com>
34524         PR libitm/55693
34525         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34526         define ENDFILE_SPEC as TM_DESTRUCTOR.
34527         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34529 2013-02-11  Alexander Potapenko  <glider@google.com>
34530             Jack Howarth  <howarth@bromo.med.uc.edu>
34531             Jakub Jelinek  <jakub@redhat.com>
34533         PR sanitizer/55617
34534         * config/darwin.c (cdtor_record): Rename ctor_record.
34535         (sort_cdtor_records): Rename sort_ctor_records.
34536         (finalize_dtors): New routine to sort destructors by
34537         priority before use in assemble_integer.
34538         (machopic_asm_out_destructor): Use finalize_dtors if needed.
34540 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
34542         PR rtl-optimization/56275
34543         * simplify-rtx.c (avoid_constant_pool_reference): Check that
34544         offset is non-negative and less than cmode size before
34545         calling simplify_subreg.
34547 2013-02-11  Richard Biener  <rguenther@suse.de>
34549         PR tree-optimization/56264
34550         * cfgloop.h (fix_loop_structure): Adjust prototype.
34551         * loop-init.c (fix_loop_structure): Return the number of
34552         newly discovered loops.
34553         * tree-cfgcleanup.c (repair_loop_structures): When new loops
34554         are discovered, do a full loop-closed SSA rewrite.
34556 2013-02-11  Richard Biener  <rguenther@suse.de>
34558         PR tree-optimization/56273
34559         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34560         first VRP run.
34561         (check_array_ref): Fix missing newline in dumps.
34562         (search_for_addr_array): Likewise.
34564 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
34566         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34568 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
34570         PR target/56256
34571         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34573 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
34575         PR rtl-optimization/56246
34576         * lra-constraints.c (simplify_operand_subreg): Try to reuse
34577         reload pseudo.
34578         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34579         constraints are satisfied.
34581 2013-02-08  Jeff Law  <law@redhat.com>
34583         PR debug/53948
34584         * emit-rtl.c (reg_is_parm_p): New function.
34585         * regs.h (reg_is_parm_p): New prototype.
34586         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34587         callee-clobbered registers.
34589 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
34591         PR target/56043
34592         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34593         If there is no implicit builtin declaration, just return NULL.
34595 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34597         * config/i386/sse.md (FMAMODEM): New mode iterator.
34598         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34599         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34601 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34603         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34604         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34605         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34607 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34609         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34610         (microblaze*-*-elf): Likewise.
34611         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34612         LINK_SPEC.
34613         * config/microblaze/microblaze-c.c: Add builtin defines for
34614         _LITTLE_ENDIAN and _BIG_ENDIAN.
34615         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34616         add to TARGET_DEFAULT flags.
34617         Expand ASM_SPEC and LINK_SPEC.
34618         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34619         * config/microblaze/microblaze.md: Update extendsidi2 and
34620         movdi_internal instructions to use low-order / high-order reg
34621         print_operands.
34622         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34623         options and inversemask / mask of LITTLE_ENDIAN.
34624         * config/microblaze/t-microblaze: Expand multilib options to
34625         include mlittle-endian (le) and update exceptions patterns.
34627 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
34629         PR rtl-optimization/56195
34630         * lra-constraints.c (get_reload_reg): Don't reuse regs
34631         if they have smaller mode than requested, if they have
34632         wider mode than requested, try to return a SUBREG.
34634         PR tree-optimization/56250
34635         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34636         if type is unsigned and code isn't MULT_EXPR.
34638 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34640         PR tree-optimization/56064
34641         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34642         bits according to mode.
34643         * fixed-value.h (fixed_from_double_int)
34644         (const_fixed_from_double_int): Adjust comments.
34646 2013-02-08  Richard Biener  <rguenther@suse.de>
34648         PR lto/56231
34649         * lto-streamer.h (struct data_in): Remove current_file, current_line
34650         and current_col members.
34651         * lto-streamer-out.c (lto_output_location): Stream changed bits
34652         en-block for efficiency.
34653         * lto-streamer-in.c (clear_line_info): Remove.
34654         (lto_input_location): Cache current file, line and column
34655         globally via local statics.  Read changed bits en-block.
34656         (input_function): Do not call clear_line_info.
34657         (lto_read_body): Likewise.
34658         (lto_input_toplevel_asms): Likewise.
34660 2013-02-08  Michael Matz  <matz@suse.de>
34662         PR tree-optimization/52448
34663         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34664         (nt_call_phase): New static.
34665         (add_or_mark_expr): Only mark accesses with newer phase than any
34666         call seen.
34667         (nonfreeing_call_p): New.
34668         (nt_init_block): Update nt_call_phase, mark blocks as visited.
34669         (nt_fini_block): Keep blocks marked as visited.
34670         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34672 2013-02-08  Richard Biener  <rguenther@suse.de>
34674         * ira.c (ira): Free broken dominator information.
34676 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34678         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34680 2013-02-08  Marek Polacek  <polacek@redhat.com>
34682         * cfgloop.c (verify_loop_structure): Add more checking of headers.
34684 2013-02-08  Richard Biener  <rguenther@suse.de>
34686         PR middle-end/56181
34687         * cfgloop.h (flow_loops_find): Adjust.
34688         (bb_loop_header_p): Declare.
34689         * cfgloop.c (bb_loop_header_p): New function split out from ...
34690         (flow_loops_find): ... here.  Adjust function signature,
34691         support incremental loop structure update.
34692         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
34693         * cfgloopmanip.c (fix_loop_structure): Move ...
34694         * loop-init.c (fix_loop_structure): ... here.
34695         (apply_loop_flags): Split out from ...
34696         (loop_optimizer_init): ... here.
34697         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
34698         in incremental mode, only remove dead loops here.
34700 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34702         PR target/54222
34703         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34704         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34705         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34706         (*round<mode>3.libgcc): New insns for fixed-modes.
34707         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34708         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34709         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34710         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34711         implementations.  Define to __builtin_avr_absFX,
34712         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34713         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34714         __builtin_avr_countlsFX, respectively.
34715         * config/avr/avr-c.c (target.h): Include it.
34716         (enum avr_builtin_id): New enum.
34717         (avr_resolve_overloaded_builtin): New static function.
34718         (avr_register_target_pragmas): Use it to set
34719         targetm.resolve_overloaded_builtin.
34720         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34721         tree nodes used by DEF_BUILTIN.
34722         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34723         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34724         <AVR_BUILTIN_xxBITS>: Same.
34726 2013-02-08  Richard Biener  <rguenther@suse.de>
34728         * cfgloop.c (verify_loop_structure): Properly handle
34729         a loop exiting to another loop header.
34730         * ira-int.h (ira_loops): Remove.
34731         * ira.c (ira_loops): Remove.
34732         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34733         (do_reload): Use loop_optimizer_finalize.
34734         * ira-build.c (create_loop_tree_nodes): Use get_loops and
34735         number_of_loops to access the loop tree.
34736         (more_one_region_p): Likewise.
34737         (finish_loop_tree_nodes): Likewise.
34738         (rebuild_regno_allocno_maps): Likewise.
34739         (mark_loops_for_removal): Likewise.
34740         (mark_all_loops_for_removal): Likewise.
34741         (remove_unnecessary_regions): Likewise.
34742         (ira_build): Likewise.
34743         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34745 2013-02-08  Richard Biener  <rguenther@suse.de>
34747         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34748         * ipa-pure-const.c (analyze_function): Avoid calling
34749         mark_irreducible_loops twice.
34750         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34752 2013-02-07  David S. Miller  <davem@davemloft.net>
34754         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34755         on 'reg'.
34756         * var-tracking.c (vt_add_function_parameter): Test the presence of
34757         HAVE_window_save properly and do not remap argument registers when
34758         we have a leaf function.
34760 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
34762         PR bootstrap/56227
34763         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34764         instead of "ll".
34765         * config/i386/i386.c (ix86_print_operand): Ditto.
34767 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34769         * lra-constraints.c (process_alt_operands): Fix recently added comment.
34771 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34773         PR rtl-optimization/56225
34774         * lra-constraints.c (process_alt_operands): Check that reload hard
34775         reg can hold value for strict_low_part.
34777 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34779         PR debug/56154
34780         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34781         dwarf2out_end_function.
34782         (in_first_function_p, maybe_at_text_label_p,
34783         first_loclabel_num_not_at_text_label): New variables.
34784         (dwarf2out_var_location): In the first function find out
34785         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34786         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34787         functions.
34789 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
34791         PR rtl-optimization/56178
34792         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34793         SUBREG of a register.  Tidy up related block of code.
34794         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34795         note if the source is a register or a SUBREG of a register.
34797 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34799         PR target/56228
34800         * config/rs6000/rs6000.md (ptrm): New mode attr.
34801         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34802         call_value_indirect_aix<pttrsize>,
34803         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34804         m in constraints.
34806 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34808         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34809         if -bnortl. Convert to strcmp and strncmp.
34811 2013-02-07  Alan Modra  <amodra@gmail.com>
34813         PR target/54009
34814         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34815         addresses won't wrap when offsetting.
34816         (rs6000_secondary_reload): Provide secondary reloads needed for
34817         wrapping LO_SUM addresses.
34819 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
34821         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34822         MACH, just __MACH__.
34824 2013-02-06  Richard Biener  <rguenther@suse.de>
34826         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34827         instead of calling fix_loop_structure.
34829 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
34831         PR middle-end/56217
34832         * omp-low.c (use_pointer_for_field): Return false if
34833         lower_send_shared_vars doesn't generate any copy-out code.
34835 2013-02-06  Tom de Vries  <tom@codesourcery.com>
34837         PR rtl-optimization/56131
34838         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34839         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
34840         of the label is NULL.  Add comment.
34842 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
34844         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34846         PR sanitizer/55374
34847         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34848         (STATIC_LIBTSAN_LIBS): Likewise.
34849         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34850         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34851         is defined, don't add anything else beyond that.
34852         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34853         (LINK_COMMAND_SPEC): Use them.
34855         PR tree-optimization/56205
34856         * tree-stdarg.c (check_all_va_list_escapes): Return true if
34857         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34858         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34860 2013-02-05  Richard Biener  <rguenther@suse.de>
34862         PR tree-optimization/53342
34863         PR tree-optimization/53185
34864         * tree-vectorizer.h (vect_check_strided_load): Remove.
34865         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34866         not disallow peeling for vectorized strided loads.
34867         (vect_check_strided_load): Make static and simplify.
34868         (vect_analyze_data_refs): Adjust.
34869         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34870         correctly when vectorizing strided loads.
34872 2013-02-05  Richard Biener  <rguenther@suse.de>
34874         * doc/install.texi: Refer to ISL, not PPL.
34876 2013-02-05  Jan Hubicka  <jh@suse.cz>
34878         PR tree-optimization/55789
34879         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34881 2013-02-05  Jan Hubicka  <jh@suse.cz>
34883         PR tree-optimization/55789
34884         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34885         the dead call anyway.
34887 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
34889         PR sanitizer/55374
34890         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34892 2013-02-04  Alexander Potapenko  <glider@google.com>
34893             Jack Howarth  <howarth@bromo.med.uc.edu>
34894             Jakub Jelinek  <jakub@redhat.com>
34896         PR sanitizer/55617
34897         * config/darwin.c (sort_ctor_records): Stabilized qsort
34898         on constructor priority by using original position.
34899         (finalize_ctors): New routine to sort constructors by
34900         priority before use in assemble_integer.
34901         (machopic_asm_out_constructor): Use finalize_ctors if needed.
34903 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
34905         PR libstdc++/54314
34906         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34907         about visibility on artificial decls.
34908         * config/sol2.c (solaris_assemble_visibility): Likewise.
34910 2013-02-04  Kai Tietz  <ktietz@redhat.com>
34912         PR target/56186
34913         * config/i386/i386.c (function_value_ms_64): Add additional valtype
34914         argument and improve checking of return-argument types for 16-byte
34915         modes.
34916         (ix86_function_value_1): Add additional valtype argument on call
34917         of function_value_64.
34918         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34919         handling infunction_value_64 function.
34921 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
34923         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34925 2013-02-04  Richard Biener  <rguenther@suse.de>
34927         PR tree-optimization/56188
34928         * tree-ssa-structalias.c (label_visit): Consider case with
34929         initially non-empty points-to set.
34930         (perform_var_substitution): Dump node mapping and clean up.
34932 2013-02-04  Richard Guenther  <rguenther@suse.de>
34934         PR lto/56168
34935         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34936         node prevail as last resort.
34937         (lto_symtab_merge_decls): Remove guard on LTRANS here.
34938         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34940 2013-02-04  Richard Biener  <rguenther@suse.de>
34942         PR tree-optimization/56113
34943         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34944         Merge into ...
34945         (equiv_class_lookup_or_add): ... this.
34946         (label_visit): Adjust and fix error in previous patch.
34947         (perform_var_substitution): Adjust.
34949 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
34951         * config/sh/divtab.c: Fix formatting and comments throughout the file.
34952         * config/sh/sh4-300.md: Likewise.
34953         * config/sh/sh4a.md: Likewise.
34954         * config/sh/constraints.md: Likewise.
34955         * config/sh/sh.md: Likewise.
34956         * config/sh/netbsd-elf.h: Likewise.
34957         * config/sh/predicates.md: Likewise.
34958         * config/sh/sh-protos.h: Likewise.
34959         * config/sh/ushmedia.h: Likewise.
34960         * config/sh/linux.h: Likewise.
34961         * config/sh/sh.c: Likewise.
34962         * config/sh/superh.h: Likewise.
34963         * config/sh/elf.h: Likewise.
34964         * config/sh/sh4.md: Likewise.
34965         * config/sh/sh.h: Likewise.
34967 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34969         * config/pa/constraints.md: Adjust unused letters.  Change "T"
34970         constraint to match_test floating_point_store_memory_operand().
34971         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34972         (base14_operand): New.
34973         (floating_point_store_memory_operand): New.
34974         (integer_store_memory_operand): Revise to use base14_operand and
34975         reg_plus_base_memory_operand.
34976         (move_dest_operand): Allow symbolic_memory_operands.
34977         (symbolic_memory_operand): Check for LO_SOM.
34978         (symbolic_operand): Change default case to break.
34979         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34980         CONST_DOUBLE values to be reloaded by putting them into memory when
34981         the destination is a floating point register.
34982         (movdf): Remove code to handle CONST_DOUBLE.
34983         (movsf): Likewise.
34984         (reload_indf_r1): New.
34985         (reload_insf_r1): New.
34986         Consistently use "Q" and "T" constraints with integer and floating
34987         point move instructions, respectively.
34988         (movdi): Remove FAIL.
34989         Change predicate for source operand unamed DImode move from
34990         general_operand to move_src_operand.
34991         (umulsidi3): Change predicate for destination operand to
34992         register_operand.
34993         Likewise for similar unamed patterns.
34994         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34995         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34996         (hppa_legitimize_address): Simplify mask calculation.
34997         (pa_emit_move_sequence): Revised handling of secondary reloads from
34998         REG+D addresses for floating point loads and stores.  Directly handle
34999         loading CONST0_RTX (mode) to a floating point register.
35000         (pa_secondary_reload): Handle reloading DF and SFmode constant values
35001         to floating point registers.  Don't restrict secondary reloads to
35002         floating point registers to integer modes.  Revise some comments and
35003         cleanup some code.
35004         (TARGET_LEGITIMATE_ADDRESS_P): Define.
35005         (pa_legitimate_address_p): New.
35006         (pa_legitimize_reload_address): New.
35007         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
35008         (STRICT_REG_OK_FOR_BASE_P): New.
35009         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
35010         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
35012 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
35013             Andrew Dixie  <andrewd@gentrack.com>
35015         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
35016         flag set.
35018 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
35020         * expmed.c (extract_bit_field_1): Pass the full width of the
35021         structure to get_best_reg_extraction_insn.
35023 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
35025         PR target/54601
35026         * configure.ac (use_cxa_atexit): Add AIX.
35027         * configure: Regenerate.
35029         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
35031 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
35033         PR debug/54793
35034         * final.c (need_profile_function): New variable.
35035         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
35036         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
35037         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
35038         notes, targetm.asm_out.function_prologue doesn't emit anything,
35039         HAVE_prologue and profiler should be emitted before prologue,
35040         set need_profile_function instead of emitting it.
35041         (final_scan_insn): If need_profile_function, emit
35042         profile_function on the first NOTE_INSN_BASIC_BLOCK or
35043         NOTE_INSN_FUNCTION_BEG note.
35045 2013-02-01  Richard Henderson  <rth@redhat.com>
35047         * config/rs6000/rs6000.md (smulditi3): New.
35048         (umulditi3): New.
35050         * config/alpha/alpha.md (umulditi3): New.
35052 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
35054         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
35055         (ASM_OUTPUT_ALIGNED_LOCAL): New.
35057 2013-02-01  Richard Biener  <rguenther@suse.de>
35059         PR tree-optimization/56113
35060         * tree-ssa-structalias.c (label_visit): Reduce work for
35061         single-predecessor nodes.
35063 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
35065         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
35066         range isn't testing for zero.
35068 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
35070         PR middle-end/56113
35071         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
35073 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
35074             Nick Clifton  <nickc@redhat.com>
35076         * config/v850/constraints.md (Q): Define as a memory constraint.
35077         * config/v850/predicates.md (label_ref_operand): New predicate.
35078         (e3v5_shift_operand): New predicate.
35079         (ior_operator): New predicate.
35080         * config/v850/t-v850: Add e3v5 multilib.
35081         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
35082         (v850_gen_movdi): Prototype.
35083         * config/v850/v850.c: Add support for e3v5 architecture.
35084         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
35085         TARGET_V850E_UP.
35086         (construct_save_jarl): Add e3v5 long JARL support.
35087         (v850_adjust_insn_length): New function.  Adjust length of call
35088         insns when using e3v5 instructions.
35089         (v850_gen_movdi): New function: Generate instructions to move a
35090         DImode value.
35091         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
35092         (CPP_SPEC): Define __v850e3v5__ as appropriate.
35093         (TARGET_USE_FPU): Enable for e3v5.
35094         (CONST_OK_FOR_W): New macro.
35095         (ADJUST_INSN_LENGTH): Define.
35096         * config/v850/v850.md (UNSPEC_LOOP): Define.
35097         (attr cpu): Add v850e3v5.
35098         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
35099         (movdi): New pattern.
35100         (movdi_internal): New pattern.
35101         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
35102         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
35103         (cstoresf4): Likewise.
35104         (cstoredf4): Likewise.
35105         (insv): New pattern.
35106         (rotlso3_a): New pattern.
35107         (rotlsi3_b): New pattern
35108         (rotlsi3_v850e3v5): New pattern.
35109         (doloop_begin): New pattern.
35110         (fix_loop_counter): New pattern.
35111         (doloop_end): New pattern.
35112         (branch_normal): Add e3v5 long branch support.
35113         (branch_invert): Likewise.
35114         (branch_z_normal): Likewise.
35115         (branch_z_invert): Likewise.
35116         (branch_nz_normal): Likewise.
35117         (branch_nz_invert): Likewise.
35118         (call_internal_short): Add e3v5 register-indirect JARL support.
35119         (call_internal_long): Likewise.
35120         (call_value_internal_short): Likewise.
35121         (call_value_internal_long): Likewise.
35122         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
35123         (mloop): New option.
35124         * config.gcc: Add support for configuring v840e3v5 target.
35125         * doc/invoke.texi: Document new v850 specific command line options.
35127 2013-01-31  Paul Koning  <ni1d@arrl.net>
35129         PR debug/55059
35130         PR debug/54508
35131         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
35132         children if parent is a class.
35133         (prune_unused_types_prune): Don't add DW_AT_declaration.
35135 2013-01-31  Richard Biener  <rguenther@suse.de>
35137         PR tree-optimization/56157
35138         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35139         match up operand with SLP child.
35141 2013-01-31  Jason Merrill  <jason@redhat.com>
35143         PR debug/54410
35144         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35145         parameters the first time.
35146         (gen_scheduled_generic_parms_dies): Check completeness here.
35148 2013-01-31  Richard Biener  <rguenther@suse.de>
35150         PR middle-end/53073
35151         * common.opt (faggressive-loop-optimizations): New flag,
35152         enabled by default.
35153         * doc/invoke.texi (faggressive-loop-optimizations): Document.
35154         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35155         infer_loop_bounds_from_undefined by it.
35157 2013-01-31  Richard Biener  <rguenther@suse.de>
35159         PR tree-optimization/56150
35160         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35161         visit virtual operands.
35162         (find_uses_to_rename_bb): Likewise.
35164 2013-01-31  Richard Biener  <rguenther@suse.de>
35166         PR tree-optimization/56150
35167         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35168         mixed store non-store stmts.
35170 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
35172         PR sanitizer/55374
35173         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35174         LIBASAN_EARLY_SPEC is defined.
35175         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35176         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35177         before %o.
35178         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35180         PR c++/55742
35181         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35182         invalid args instead of ICEing on it.
35183         (ix86_valid_target_attribute_tree): Return error_mark_node if
35184         ix86_valid_target_attribute_inner_p failed.
35185         (ix86_valid_target_attribute_p): Return false only if
35186         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
35187         target("default") attribute.
35188         (sorted_attr_string): Change argument from const char * to tree,
35189         merge in all target attribute arguments rather than just one.
35190         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
35191         instead of free.  Avoid using strcat.
35192         (ix86_mangle_function_version_assembler_name): Mangle
35193         target("default") as if no target attribute is present.  Adjust
35194         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
35195         instead of xmalloc and XDELETEVEC instead of free.
35196         (ix86_function_versions): Don't return true if one of the decls
35197         doesn't have target attribute.  If they don't and one of the decls
35198         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
35199         sorted_attr_string caller.  Use XDELETEVEC instead of free.
35200         (ix86_supports_function_versions): Remove.
35201         (make_name): Fix up formatting.
35202         (make_dispatcher_decl): Remove resolver_name and its initialization.
35203         Avoid leaking memory.
35204         (is_function_default_version): Return true if there is
35205         target("default") attribute rather than no target attribute at all.
35206         (make_resolver_func): Avoid leaking memory.
35207         (ix86_generate_version_dispatcher_body): Likewise.
35208         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35209         * target.def (supports_function_versions): Remove.
35210         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35211         * doc/tm.texi: Regenerated.
35213 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
35215         PR rtl-optimization/56144
35216         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35217         for values with side effects.
35219 2013-01-30  Richard Biener  <rguenther@suse.de>
35221         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35222         (sparseset_pop): Likewise.
35223         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
35224         to be able to use quick_push in the worker loop.
35226 2013-01-30  Marek Polacek  <polacek@redhat.com>
35228         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35230 2013-01-30  Richard Biener  <rguenther@suse.de>
35232         PR lto/56147
35233         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35235 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
35237         PR tree-optimization/56064
35238         * fixed-value.c (fixed_from_double_int): New function.
35239         * fixed-value.h (fixed_from_double_int): New prototype.
35240         (const_fixed_from_double_int): New static inline function.
35241         * fold-const.c (native_interpret_fixed): New static function.
35242         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35243         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35244         (native_encode_fixed): New static function.
35245         (native_encode_expr) <FIXED_CST>: Use it.
35246         (native_interpret_int): Move double_int worker code to...
35247         * double-int.c (double_int::from_buffer): ...this new static method.
35248         * double-int.h (double_int::from_buffer): Prototype it.
35250 2013-01-30  Richard Biener  <rguenther@suse.de>
35252         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35253         New pointer-map and obstack.
35254         (init_alias_vars): Allocate pointer-map and obstack.
35255         (delete_points_to_sets): Free them.
35256         (find_what_var_points_to): Cache result.
35257         (find_what_p_points_to): Adjust for changed interface of
35258         find_what_var_points_to.
35259         (compute_points_to_sets): Likewise.
35260         (ipa_pta_execute): Likewise.
35262 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35264         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35265         * configure: Regenerate.
35266         * config.in: Regenerate.
35267         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35268         #nobits/#progbits if supported.
35270 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
35272         PR target/56121
35273         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35274         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35275         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35277 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35279         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35280         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35282 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35284         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35285         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35287 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35289         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35290         declaration.
35291         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35292         * config/arm/cortex-a7.md: New bypasses using
35293         arm_mac_accumulator_is_result.
35295 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35297         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
35298         (cortex_a7_neon_mla): Likewise.
35299         (cortex_a7_fpfmad): New reservation.
35300         (cortex_a7_fpmacs): Use ffmas and update required units.
35301         (cortex_a7_fpmuld): Update required units and latency.
35302         (cortex_a7_fpmacd): Likewise.
35303         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35304         (cortex_a7_neon). Likewise.
35305         (bypass) Update participating units.
35307 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35309         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35310         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35311         from fmac to ffma.
35312         * config/arm/vfp11.md (vfp_farith): Use ffmas.
35313         (vfp_fmul): Use ffmad.
35314         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35315         (cortex_r4_fmacd): Use ffmad.
35316         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35317         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
35318         (cortex_a9_fmacd): Use ffmad.
35319         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35320         (cortex_a8_vfp_macd): Use ffmad.
35321         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35322         (cortex_a5_fpmacd): Use ffmad.
35323         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35324         (cortex_a15_vfp_macd): Use ffmad.
35325         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35327 2013-01-29  Jason Merrill  <jason@redhat.com>
35329         PR libstdc++/54314
35330         * varasm.c (default_assemble_visibility): Don't warn about
35331         visibility on artificial decls.
35333 2013-01-29  Richard Biener  <rguenther@suse.de>
35335         PR tree-optimization/56113
35336         * tree-ssa-structalias.c (equiv_class_lookup): Also return
35337         the bitmap leader.
35338         (label_visit): Free duplicate bitmaps and record the leader instead.
35339         (perform_var_substitution): Adjust.
35341 2013-01-29  Richard Biener  <rguenther@suse.de>
35343         PR tree-optimization/55270
35344         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35345         the CFG, schedule loops for fixup.
35347 2013-01-29  Nick Clifton  <nickc@redhat.com>
35349         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35350         SP_REG.
35352 2013-01-28  Leif Ekblad  <leif@rdos.net>
35354         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35355         * config/i386/i386.h (TARGET_RDOS): New macro.
35356         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35357         * config/i386/i386.c (ix86_option_override_internal): For 64bit
35358         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35359         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35360         DEFAULT_LARGE_SECTION_THRESHOLD.
35361         * config/i386/i386.md (R14_REG, R15_REG): New constants.
35362         * config/i386/rdos.h: New file.
35363         * config/i386/rdos64.h: New file.
35365 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
35367         PR other/54814
35368         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35369         TEST_HARD_REG_BIT.
35371 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35373         PR rtl-optimization/56117
35374         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35375         call cselib_lookup_from_insn on the MEM before calling
35376         add_insn_mem_dependence.
35378 2013-01-28  Richard Biener  <rguenther@suse.de>
35380         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35381         to a stmt that didn't have one.
35382         (copy_phis_for_bb): Likewise for PHI arguments.
35383         (copy_debug_stmt): Likewise for debug stmts.
35385 2013-01-28  Richard Biener  <rguenther@suse.de>
35387         PR tree-optimization/56034
35388         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35389         (partition_builtin_p): Adjust.
35390         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
35391         it is the last partition.
35392         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35393         up the vertex for the definition.
35394         (classify_partition): Classify whether a partition is a
35395         PKIND_REDUCTION, thus has uses outside of the loop.
35396         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35397         Merge all PKIND_REDUCTION partitions into the last partition.
35398         (tree_loop_distribution): Seed partitions from reductions as well.
35400 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35402         PR tree-optimization/56125
35403         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35404         pow(x,c) into sqrt(x) * powi(x, n/2) or
35405         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35406         optimizing for size.
35407         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35408         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35409         integer.
35411         PR tree-optimization/56094
35412         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35413         to UNKNOWN_LOCATION while gimplifying expr.
35415 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
35417         PR target/56114
35418         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35419         operand 0 in movabs insn template for -masm=intel asm alternative.
35420         (*movabs<mode>_2): Ditto for operand 1.
35422 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
35424         PR target/54663
35425         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35426         of microblaze-c.o
35428 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35430         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35431         tm_file.
35433 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35435         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35436         Undef to avoid warning.
35438 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35440         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35441         * configure: Regenerate.
35443 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
35445         PR tree-optimization/56098
35446         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35447         for stmts with volatile ops.
35448         (cond_store_replacement): Don't optimize if assign has volatile ops.
35449         (cond_if_else_store_replacement_1): Don't optimize if either
35450         then_assign or else_assign have volatile ops.
35451         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35452         volatile ops.
35454 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35456         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35458 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35460         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35461         missing ':' in asm example.
35463 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
35465         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35466         entries into lane and laneq entries.
35467         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35468         Remove AdvSIMD scalar modes.
35469         (aarch64_sq<r>dmulh_laneq<mode>): New.
35470         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35471         modes.
35472         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35473         builtin implementations to relfect changes in RTL in aarch64-simd.md.
35474         * config/aarch64/iterators.md (VCOND): New.
35475         (VCONQ): New.
35477 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35479         PR target/54222
35480         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35481         Add NULL LIBNAME argument to existing definitions.
35482         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35483         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35484         * config/avr/avr.c (DEF_BUILTIN): Same.
35485         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35486         (avr_expand_builtin): Expand to a vanilla call if a libgcc
35487         implementation is available (DECL_ASSEMBLER_NAME is set).
35488         (avr_fold_absfx): New static function.
35489         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35490         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35491         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35492         AVR_BUILTIN_ABSLLK.
35493         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35494         (abshk, absk, abslk, absllk): Provide as static inline functions.
35496 2013-01-25  Marek Polacek  <polacek@redhat.com>
35498         PR tree-optimization/56035
35499         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35501 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
35503         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35504         (*movtf_internal_rex64): Add (!o,C) alternative
35505         (*movxf_internal_rex64): Ditto.
35506         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35508 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
35510         * doc/invoke.texi: fix typo.
35511         * doc/objc.texi: fix typo.
35513 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
35515         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35516         for the first two alternatives.
35518 2013-01-24  Diego Novillo  <dnovillo@google.com>
35520         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
35521         (ggc-zone.o): Remove.
35522         * configure.ac: Remove option --with-gc.
35523         * configure: Re-generate.
35524         * doc/install.texi: Remove documentation for --with-gc.
35525         * gengtype.c (write_enum_defn): Remove.  Update all users.
35526         (write_Types_process_field): Remove generation of gt_e_* argument.
35527         (output_type_enum): Remove.  Update all users.
35528         (write_enum_defn): Remove.  Update all users.
35529         (enum alloc_zone): Remove.  Update all users.
35530         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35531         * ggc-common.c (ggc_splay_alloc): Remove first argument.
35532         Update all callers.
35533         (struct ptr_data): Remove field TYPE.  Update all users.
35534         (gt_pch_note_object): Remove argument TYPE.  Update all users.
35535         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35536         Update all users.
35537         * ggc-none.c (ggc_alloc_typed_stat): Remove.
35538         (struct alloc_zone): Remove.
35539         (ggc_internal_alloc_zone_stat): Remove.
35540         (ggc_internal_cleared_alloc_zone_stat): Remove.
35541         * ggc-page.c (ggc_alloc_typed_stat): Remove.
35542         (ggc_pch_count_object): Remove last argument.  Update all users.
35543         (ggc_pch_alloc_object): Remove last argument.  Update all users.
35544         (struct alloc_zone): Remove.
35545         * ggc-zone.c: Remove.
35546         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
35547         (struct alloc_zone): Remove.
35548         (ggc_alloc_typed_stat): Remove.
35549         (ggc_alloc_typed): Remove.
35550         (ggc_splay_alloc): Remove first argument.
35551         (rtl_zone): Remove.  Update all users.
35552         (tree_zone): Remove.  Update all users.
35553         (tree_id_zone): Remove.  Update all users.
35554         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
35555         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
35556         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
35557         * tree-ssanames.c: Remove references to zone allocator in comments.
35559 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
35561         * config/avr/avr.c (avr_out_fract): Make register numbers that
35562         might be outside of source operand signed.
35564 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
35566         * config/i386/constraints.md (Yf): New constraint.
35567         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35568         of f constraint to conditionaly disable x87 register preferences.
35569         (*movdf_internal): Ditto.
35570         (*movsf_internal): Ditto.
35572 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
35574         PR inline-asm/55934
35575         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35576         that have operands with impossible constraints.
35577         Add a FIXME for a speed-up opportunity.
35578         * lra-constraints.c (process_alt_operands): Verify that a class
35579         selected from constraints on asms is valid for the operand mode.
35580         (curr_insn_transform): Remove incorrect comment.
35582 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
35584         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35585         TOC operand is a valid symbol ref in the constant pool.
35587 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35589         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35591 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
35593         PR target/54222
35594         * config/avr/stdfix.h: New file.
35595         * t-avr (stdfix-gcc.h): New rule to build it.
35596         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35598 2013-01-23  Kostya Serebryany  <kcc@google.com>
35600         * config/darwin.h: remove dependency on
35601         CoreFoundation (asan on Mac OS).
35603 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
35605         PR target/49069
35606         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35607         instead of cmpdi_operand for first comparison operand.
35608         Don't assert that comparison operands aren't both constants.
35610 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35612         * doc/install.texi (Downloading the Source): Update references to
35613         downloading separate components.
35615 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35617         * doc/extend.texi (__int128): Improve grammar.
35619 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
35621         PR target/56028
35622         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35623         alternative to (o,r).
35624         (*movdi_internal_rex64): Remove (!o,n) alternative.
35625         (DImode immediate->memory splitter): Remove.
35626         (DImode immediate->memory peephole2): Remove.
35627         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35628         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35629         alternative to (!o,*r).
35630         (*movtf_internal_sse): New pattern.
35631         (*movxf_internal_rex64): New pattern.
35632         (*movxf_internal): Disable for TARGET_64BIT.
35633         (*movdf_internal_rex64): Remove (!o,F) alternative.
35635 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
35637         PR middle-end/56074
35638         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35639         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35640         * tree-vect-loop-manip.c (find_loop_location): Also ignore
35641         stmt locations where LOCATION_LOCUS of the stmt location is
35642         UNKNOWN_LOCATION or BUILTINS_LOCATION.
35644         PR target/55686
35645         * config/i386/i386.md (UNSPEC_STOS): New.
35646         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35647         *strsetqi_1): Add UNSPEC_STOS.
35649 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
35651         PR c++/56067
35652         * doc/invoke.texi: Remove left over -Wsynth example.
35654 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35656         PR tree-optimization/56051
35657         * fold-const.c (fold_binary_loc): Don't fold
35658         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35659         a narrowing conversion, or widening conversion from signed
35660         to unsigned.
35662 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35664         PR rtl-optimization/56023
35665         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35666         dependent on debug instruction.
35668 2013-01-21  Martin Jambor  <mjambor@suse.cz>
35670         PR middle-end/56022
35671         * function.c (allocate_struct_function): Call
35672         invoke_set_current_function_hook earlier.
35674 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35676         * reload1.c (init_reload): Only initialize reload_obstack
35677         during the first call.
35679 2013-01-21  Marek Polacek  <polacek@redhat.com>
35681         * cfgloop.c (verify_loop_structure): Fix up grammar.
35683 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
35685         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35686         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35688 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35690         PR target/56058
35691         * config/arm/marvell-pj4.md: Update copyright year.
35692         Fix up use of alu to alu_reg and simple_alu_imm.
35694 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35696         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35698 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
35700         PR target/55433
35701         * lra-constraints.c (curr_insn_transform): Don't reuse original
35702         insn for secondary memory move when memory mode should be different.
35704 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35706         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35707         atomic_storedi_1): New patterns.
35709 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
35711         btver2 pipeline descriptions.
35712         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35713         descriptions.
35714         * config/i386/i386.md (btver2_decode): New type attributes.
35715         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35716         type attributes.
35717         * config/i386/btver2.md: New file describing btver2 pipelines.
35719 2013-01-19  Andrew Pinski  <apinski@cavium.com>
35721         PR tree-optimization/52631
35722         * tree-ssa-sccvn (visit_use): Before looking up the original
35723         statement, try looking up the simplified expression.
35725 2013-01-19  Anthony Green  <green@moxielogic.com>
35727         * config/moxie/moxie.c (moxie_expand_prologue): Set
35728         current_function_static_stack_size.
35730 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35732         PR tree-optimization/56029
35733         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35734         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35736 2013-01-18  Sharad Singhai  <singhai@google.com>
35738         PR tree-optimization/55995
35739         * dumpfile.c (dump_loc): Print location only if available.
35740         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35742 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
35744         PR target/55433
35745         * lra-constraints.c (curr_insn_transform): Reuse original insn for
35746         secondary memory move.
35747         (inherit_reload_reg): Use rclass instead of cl for
35748         check_secondary_memory_needed_p.
35750 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35752         PR middle-end/56015
35753         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35754         the case where writing real complex part of target modifies op1.
35756 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
35758         * config/aarch64/aarch64-simd.md
35759         (aarch64_vcond_internal<mode>): Handle unordered cases.
35760         * config/aarch64/iterators.md (v_cmp_result): New.
35762 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
35763             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35765         * config/arm/marvell-pj4.md: New file.
35766         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35767         * config/arm/arm.md (generic_sched): Add marvell_pj4.
35768         (generic_vfp): Likewise.
35769         * config/arm/arm-cores.def: Add marvell-pj4.
35770         * config/arm/arm-tune.md: Regenerate.
35771         * config/arm/arm-tables.opt: Regenerate.
35772         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35773         * doc/invoke.texi: Document marvell-pj4.
35775 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
35777         * config/aarch64/arm_neon.h: Map scalar types to standard types.
35779 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35781         PR debug/54114
35782         PR debug/54402
35783         PR debug/49888
35784         * var-tracking.c (negative_power_of_two_p): New.
35785         (global_get_addr_cache, local_get_addr_cache): New.
35786         (get_addr_from_global_cache, get_addr_from_local_cache): New.
35787         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
35788         heading comment.
35789         (vt_stack_offset_p): Remove.
35790         (vt_canon_true_dep): Always canonicalize loc's address.
35791         (clobber_overlapping_mems): Make sure we have a MEM.
35792         (local_get_addr_clear_given_value): New.
35793         (val_reset): Clear local cached entries.
35794         (compute_bb_dataflow): Create and release the local cache.
35795         Disable duplicate MEMs clobbering.
35796         (emit_notes_in_bb): Clobber MEMs likewise.
35797         (vt_emit_notes): Create and release the local cache.
35798         (vt_initialize, vt_finalize): Create and release the global
35799         cache, respectively.
35800         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35802 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35804         PR libmudflap/53359
35805         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35806         not found in the symtab.
35808 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35810         PR debug/56006
35811         PR rtl-optimization/55547
35812         PR rtl-optimization/53827
35813         PR debug/53671
35814         PR debug/49888
35815         * alias.c (offset_overlap_p): New, factored out of...
35816         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
35817         the conservative special case for symbolic constants.  Don't
35818         adjust zero sizes on alignment.
35820 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
35822         PR rtl-optimization/52573
35823         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35824         REG_UNUSED for the same register.
35826 2013-01-17  Richard Biener  <rguenther@suse.de>
35827             Marek Polacek  <polacek@redhat.com>
35829         PR rtl-optimization/55833
35830         * loop-unswitch.c (unswitch_loops): Move loop verification...
35831         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
35832         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35833         Set it to true when we're removing a loop from hierarchy tree in
35834         an irreducible region.
35835         (fix_bb_placements): Adjust caller.
35836         (fix_loop_placements): Likewise.
35838 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
35840         * config/avr/builtins.def (DEF_BUILTIN): Factor out
35841         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35842         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35843         Remove ID.  Adjust comments.
35844         * config/avr/avr-c.c (avr_builtin_name): Remove.
35845         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35846         * config/avr/avr.c (avr_tolower): New static function.
35847         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
35848         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35849         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35850         default expansion.
35852 2013-01-17  Jan Hubicka  <jh@suse.cz>
35854         PR tree-optimization/55273
35855         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35857 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
35859         PR target/55981
35860         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35861         store through atomic_store<mode>_1.
35862         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35864 2013-01-17  Martin Jambor  <mjambor@suse.cz>
35866         PR tree-optimizations/55264
35867         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35868         for virtual methods.
35869         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35870         virtual methods before inlining is over.
35871         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35872         virtual functions.
35873         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35874         non-virtual.
35876 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35878         PR rtl-optimization/56005
35879         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35880         pending reads for prefetch.
35882 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
35884         * config/aarch64/aarch64.md
35885         (*cstoresi_neg_uxtw): New pattern.
35886         (*cmovsi_insn_uxtw): New pattern.
35887         (*<optab>si3_uxtw): New pattern.
35888         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35889         (*<optab>si3_insn_uxtw): New pattern.
35890         (*bswapsi2_uxtw): New pattern.
35892 2013-01-16  Richard Biener  <rguenther@suse.de>
35894         * tree-inline.c (tree_function_versioning): Remove set but
35895         never used variable.
35897 2013-01-16  Richard Biener  <rguenther@suse.de>
35899         PR tree-optimization/55964
35900         * tree-flow.h (rename_variables_in_loop): Remove.
35901         (rename_variables_in_bb): Likewise.
35902         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35903         (copy_loop_before): Adjust and delete update-ssa status.
35904         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35905         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
35906         (rename_variables_in_loop): Remove.
35907         (slpeel_update_phis_for_duplicate_loop): Likewise.
35908         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
35909         use available cfg machinery instead of duplicating it.
35910         Update PHI nodes and perform poor-mans SSA update here.
35911         (slpeel_tree_peel_loop_to_edge): Adjust.
35913 2013-01-16  Richard Biener  <rguenther@suse.de>
35915         PR tree-optimization/54767
35916         PR tree-optimization/53465
35917         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
35918         (vrp_visit_phi_node): For PHI arguments coming via backedges
35919         drop all symbolical range information.
35920         (execute_vrp): Compute backedges.
35922 2013-01-16  Richard Biener  <rguenther@suse.de>
35924         * doc/install.texi: Update CLooG and ISL requirements to
35925         0.18.0 and 0.11.1.
35927 2013-01-16  Christian Bruel  <christian.bruel@st.com>
35929         PR target/55301
35930         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35931         (broken_move): Handle UNSPECV_SP_SWITCH_B.
35932         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35934 2013-01-16  DJ Delorie  <dj@redhat.com>
35936         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35937         (UNSPECV_SP_SWITCH_E): New.
35938         (sp_switch_1): Change to an unspec.
35939         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
35940         replace $r15.
35942 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
35944         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35945         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35946         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35947         (expand_mem_thread_fence): Ditto.
35948         (expand_mem_signal_fence): Ditto.
35949         (expand_atomic_load): Ditto.
35950         (expand_atomic_store): Ditto.
35952 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
35954         PR rtl-optimization/55547
35955         PR rtl-optimization/53827
35956         PR debug/53671
35957         PR debug/49888
35958         * alias.c (memrefs_conflict_p): Set sizes to negative after
35959         AND adjustments.
35961 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35963         PR target/55940
35964         * function.c (thread_prologue_and_epilogue_insns): Always
35965         add crtl->drap_reg to set_up_by_prologue.set, even if
35966         stack_realign_drap is false.
35968 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35970         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35971         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35972         *call): Fix indention.
35974 2013-01-15  Tom de Vries  <tom@codesourcery.com>
35976         PR target/55876
35977         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35978         Update comment.
35980 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35982         PR rtl-optimization/55153
35983         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35985 2013-01-15  Martin Jambor  <mjambor@suse.cz>
35987         PR tree-optimization/55920
35988         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35989         accesses as grp_to_be_debug_replaced.
35991 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35993         PR tree-optimization/55920
35994         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35995         there is non-useless type conversion needed from debug rhs to lhs,
35996         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35998 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
35999             Mikael Pettersson  <mikpe@it.uu.se>
36001         PR target/43961
36002         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
36003         Thumb.
36004         (ASM_OUTPUT_CASE_LABEL): Remove.
36005         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
36006         * final.c (shorten_branches): Update alignment of labels before
36007         jump tables if CASE_VECTOR_SHORTEN_MODE.
36009 2013-01-15  Richard Biener  <rguenther@suse.de>
36011         PR bootstrap/55961
36012         * system.h: Do not include gmp.h for building host tools.
36014 2013-01-15  Richard Biener  <rguenther@suse.de>
36016         PR middle-end/55882
36017         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
36018         account for bitpos when computing alignment.
36020 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
36022         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
36023         (ix86_target_macros_internal): Likewise.
36025         * config/i386/i386.c (m_CORE2I7): Removed.
36026         (m_CORE_HASWELL): New macro.
36027         (m_CORE_ALL): Likewise.
36028         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
36029         (initial_ix86_arch_features): Likewise.
36030         (processor_target_table): Initializations for Core avx2.
36031         (cpu_names): New names "core-avx2".
36032         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
36033         PROCESSOR_CORE_HASWELL.
36034         (ix86_issue_rate): New case.
36035         (ia32_multipass_dfa_lookahead): Likewise.
36036         (ix86_sched_init_global): Likewise.
36038         * config/i386/i386.h (TARGET_HASWELL): New macro.
36039         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
36040         (processor_type): New PROCESSOR_HASWELL.
36042 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
36044         PR tree-optimization/55955
36045         * tree-vect-loop.c (vectorizable_reduction): Give up early on
36046         *SHIFT_EXPR and *ROTATE_EXPR codes.
36048         PR tree-optimization/48766
36049         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
36050         -ftrapv disable -fwrapv.
36052 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36054         PR target/55974
36055         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
36056         etc. to 1 and not to __flash.
36057         Use LL suffix for __INT24_MAX__ with -mint8.
36058         Use ULL suffix for __UINT24_MAX__ with -mint8.
36060 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36062         * config/avr/avr-arch.h
36063         (struct base_arch_s): Use typedef avr_arch_t instead.
36064         (struct arch_info_s): Use typedef avr_arch_info_t instead.
36065         (struct mcu_type_s): Use typedef avr_mcu_t instead.
36066         * config/avr/avr.c: Same.
36067         * config/avr/avr-devices.c: Same.
36068         * config/avr/driver-avr.c: Same.
36069         * config/avr/gen-avr-mmcu-texi.c: Same.
36070         * config/avr/avr-mcus.def: Adjust comment.
36072 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
36074         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
36075         * config/aarch64/iterators.md (VALLDI): New.
36077 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
36078             Andi Kleen  <ak@linux.intel.com>
36080         PR target/55948
36081         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
36082         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
36083         memmodel flag.
36085 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36087         * config/avr/avr-stdint.h: Remove trailing blanks.
36088         * config/avr/avr-log.h: Same.
36089         * config/avr/avr-arch.h: Same.
36090         * config/avr/avr-devices.c: Same.
36091         * config/avr/avr-dimode.md: Same.
36092         * config/avr/predicates.md: Same.
36093         * config/avr/avr-c.c: Same.  And fix typo.
36095         * config/avr/avr-protos.h: Same.  And:
36096         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
36097         (init_cumulative_args): Rename to avr_init_cumulative_args.
36098         (expand_prologue): Rename to avr_expand_prologue.
36099         (expand_epilogue): Rename to avr_expand_epilogue.
36100         (adjust_insn_length): Rename to avr_adjust_insn_length.
36101         (notice_update_cc): Rename to avr_notice_update_cc.
36102         (final_prescan_insn): Rename to avr_final_prescan_insn.
36103         * config/avr/avr.c: Same.
36104         * config/avr/avr.h: Same.
36105         * config/avr/avr.md: Remove trailing blanks.
36106         (prologue): Use avr_expand_prologue.
36107         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
36109 2013-01-14  Richard Biener  <rguenther@suse.de>
36111         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
36112         verify_location, collect_subblocks): New functions.
36113         (verify_gimple_in_cfg): Verify that locations only reference
36114         BLOCKs in the functions BLOCK tree.
36116 2013-01-14  Richard Biener  <rguenther@suse.de>
36118         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
36119         PHI argument.
36120         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
36121         unshare reference.
36122         (insert_out_of_ssa_copy_on_edge): Likewise.
36123         (rewrite_close_phi_out_of_ssa): Likewise.
36124         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
36125         debug expressions.
36126         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
36127         propagated constants.
36128         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
36129         can not be shared.
36131 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36133         * config/avr/avr-modes.def: Add GPL copyright notice.
36135 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
36137         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36138         MEMMODEL_MASK to determine memory model.
36139         (atomic_store<mode>): Ditto from operands[2].
36140         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36142 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
36144         PR fortran/55935
36145         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36146         (fold_gimple_assign): Don't call unshare_expr here.
36147         (fold_ctor_reference): Call unshare_expr.
36149 2013-01-13  Terry Guo  <terry.guo@arm.com>
36151         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36152         * doc/fragments.texi: Document MULTILIB_REUSE.
36153         * gcc.c (multilib_reuse): New internal spec.
36154         (set_multilib_dir): Also search multilib from multilib_reuse.
36155         * genmultilib (tmpmultilib3): Refactor code.
36156         (tmpmultilib4): Ditto.
36157         (multilib_reuse): New multilib argument.
36159 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
36161         * Makefile.in: Update copyright.
36163 2013-01-12  Tom de Vries  <tom@codesourcery.com>
36165         PR middle-end/55890
36166         * calls.c (expand_call): Check if arg_nr is valid.
36168 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
36170         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36171         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36172         documentation.  Add missing '__' in front of
36173         __builtin_ia32_packssdw256.
36175 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36177         PR target/55719
36178         * config/s390/s390.c (s390_preferred_reload_class): Do not return
36179         NO_REGS for larl operands.
36180         (s390_reload_larl_operand): Use s390_load_address instead of
36181         emit_move_insn.
36183 2013-01-11  Richard Biener  <rguenther@suse.de>
36185         * tree-cfg.c (verify_node_sharing_1): Split out from ...
36186         (verify_node_sharing): ... here.
36187         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36189 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
36191         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36192         Substitute TREECHECKING.
36193         * configure: Regenerate.
36194         * Makefile.in (TREECHECKING): New.
36196 2013-01-11  Richard Guenther  <rguenther@suse.de>
36198         PR tree-optimization/44061
36199         * tree-vrp.c (extract_range_basic): Compute zero as
36200         value-range for __builtin_constant_p of function parameters.
36202 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
36204         Update copyright years.
36206 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
36208         PR rtl-optimization/55672
36209         * lra-eliminations.c (mark_not_eliminable): Permit addition with
36210         const to be eliminable.
36212 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
36214         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36215         * configure: Regenerate.
36217 2013-01-10  Richard Biener  <rguenther@suse.de>
36219         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36221 2013-01-10  Richard Biener  <rguenther@suse.de>
36223         PR bootstrap/55792
36224         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36225         locations for virtual PHI arguments.
36226         (rewrite_update_phi_arguments): Likewise.
36228 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
36230         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36231         on to assembler.
36233 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
36235         PR tree-optimization/55921
36236         * tree-complex.c (expand_complex_asm): New function.
36237         (expand_complex_operations_1): Call it for GIMPLE_ASM.
36239 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36241         PR target/55718
36242         * config/s390/s390.c (s390_symref_operand_p)
36243         (s390_loadrelative_operand_p): Merge the two functions.
36244         (s390_check_qrst_address, print_operand_address): Add parameters
36245         to s390_loadrelative_operand_p invokation.
36246         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36247         (s390_reload_larl_operand, s390_secondary_reload): Use
36248         s390_loadrelative_operand_p instead of s390_symref_operand_p.
36249         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36251 2013-01-09  Mike Stump  <mikestump@comcast.net>
36253         * dse.c (record_store): Remove unnecessary assert.
36255 2013-01-09  Jan Hubicka  <jh@suse.cz>
36257         PR tree-optimization/55569
36258         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36259         * cfgloop.h (scale_loop_profile): Likewise.
36261 2013-01-09  Jan Hubicka  <jh@suse.cz>
36263         PR lto/45375
36264         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36265         functions.
36266         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36268 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
36270         PR middle-end/55114
36271         * expr.h (maybe_emit_group_store): Declare.
36272         * expr.c (maybe_emit_group_store): New function.
36273         * builtins.c (expand_builtin_int_roundingfn): Call it.
36274         (expand_builtin_int_roundingfn_2): Likewise.
36276 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
36278         PR rtl-optimization/55829
36279         * lra-constraints.c (match_reload): Add code for absent output.
36280         (curr_insn_transform): Add code for reloads of matched inputs
36281         without output.
36283 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
36285         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36286         attribute of movddup insn to DF.
36287         (*vec_interleave_lowv2df): Ditto.
36288         (vec_dupv2df): Ditto.
36290 2013-01-09  Jan Hubicka  <jh@suse.cz>
36292         PR tree-optimiation/55875
36293         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36294         EVERY_ITERATION parameter.
36295         (number_of_iterations_exit): Check if exit is executed every iteration.
36296         (idx_infer_loop_bounds): Similarly here.
36297         (n_of_executions_at_most): Simplify
36298         to only test for cases where statement is dominated by the
36299         particular bound; handle correctly the "postdominance" test.
36300         (scev_probably_wraps_p): Use max loop iterations info
36301         as a global bound first.
36303 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
36304             Nick Clifton  <nickc@redhat.com>
36306         * config/v850/v850.md (cbranchsf4): New pattern.
36307         (cstoresf4): New pattern.
36308         (cbranchdf4): New pattern.
36309         (cstoredf4): New pattern.
36310         (movsicc): Disallow floating point comparisons.
36311         (cmpsf_le_insn): Fix order of operators.
36312         (cmpsf_lt_insn): Likewise.
36313         (cmpsf_eq_insn): Likewise.
36314         (cmpdf_le_insn): Likewise.
36315         (cmpdf_lt_insn): Likewise.
36316         (cmpdf_eq_insn): Likewise.
36317         (cmpsf_ge_insn): Use LE comparison.
36318         (cmpdf_ge_insn): Likewise.
36319         (cmpsf_gt_insn): Use LT comparison.
36320         (cmpdf_gt_insn): Likewise.
36321         (cmpsf_ne_insn): Delete pattern.
36322         (cmpdf_ne_insn): Delete pattern.
36323         * config/v850/v850.c (v850_gen_float_compare): Use
36324         gen_cmpdf_eq_insn for NE comparison.
36325         (v850_float_z_comparison_operator)
36326         (v850_float_nz_comparison_operator): Move from here ...
36327         * config/v850/predicates.md: ... to here.  Move GT and GE
36328         comparisons into v850_float_z_comparison_operator.
36329         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36330         Delete prototype.
36331         (v850_float_nz_comparison_operator): Likewise.
36333 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36335         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36336         with calls to gen_insvsi/gen_insvdi.
36338 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
36340         * config/i386/i386.c (initial_ix86_tune_features): Set up
36341         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36343 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
36344             Jakub Jelinek  <jakub@redhat.com>
36346         PR tree-optimization/48189
36347         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36348         If nitercst is 0, don't predict the exit edge.
36350 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36352         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36353         in asm_fprintf with reg_names.
36354         (aarch64_print_operand_address): Likewise.
36355         (aarch64_return_addr): Likewise.
36356         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36358 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36360         * config/pa/pa.h (VAL_U6_BITS_P): Define.
36361         (INT_U6_BITS): Likewise.
36362         * config/pa/predicates.md (uint6_operand): New predicate.
36363         (shift5_operand, shift6_operand): Likewise.
36364         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36365         arith32_operand.
36366         (lshrdi3): Use shift6_operand.
36367         (shrpsi4, shrpdi4): New insn patterns.
36368         (extzv): Delete expander.
36369         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
36370         predicates in unamed zero extract patterns.  Tighten common constraint.
36371         (extv): Delete expander.
36372         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
36373         predicates in unamed sign extract patterns.  Tighten common constraint.
36374         (insv): Delete expander.
36375         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
36376         predicates in unamed insert patterns.  Tighten common constraint.
36377         Change uint32_operand predicate to uint6_operand predicate in unamed
36378         DImode pattern to insert constant values of type 1...1xxxx.
36380 2013-01-04  Jan Hubicka  <jh@suse.cz>
36382         PR tree-optimization/55823
36383         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36384         issue.
36386 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36387             Uros Bizjak  <ubizjak@gmail.com>
36389         PR rtl-optimization/55845
36390         * df-problems.c (can_move_insns_across): Stop scanning at
36391         volatile_insn_p source instruction or give up if
36392         across_from .. across_to range contains any volatile_insn_p
36393         instructions.
36395 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36397         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36398         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36399         Declare.
36400         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36401         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36403 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36405         PR fortran/55341
36406         * asan.c (asan_clear_shadow): New function.
36407         (asan_emit_stack_protection): Use it.
36409 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36411         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36412         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36413         with tab instead of space.
36415 2013-01-08  Nick Clifton  <nickc@redhat.com>
36417         * config/rl78/rl78.c (rl78_expand_prologue): Always select
36418         register bank 0 at the start of an interrupt handler.
36419         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36420         MDBH registers.
36422 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36424         * config/aarch64/aarch64-simd.md
36425         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36426         (aarch64_simd_bsl): Likewise.
36427         (aarch64_vcond_internal<mode>): Likewise.
36428         (vcond<mode><mode>): Likewise.
36429         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36430         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36432 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36434         * config/aarch64/aarch64-builtins.c
36435         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36437 2013-01-08  Martin Jambor  <mjambor@suse.cz>
36439         PR debug/55579
36440         * tree-sra.c (analyze_access_subtree): Return true also after
36441         potentially creating a debug-only replacement.
36443 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36445         PR middle-end/55890
36446         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36448         PR tree-optimization/54120
36449         * tree-vrp.c (range_fits_type_p): Don't allow
36450         src_precision < precision from signed vr to unsigned_p
36451         if vr->min or vr->max is negative.
36452         (simplify_float_conversion_using_ranges): Test can_float_p
36453         against CODE_FOR_nothing.
36455 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36456             Richard Biener  <rguenther@suse.de>
36458         PR middle-end/55851
36459         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36460         types instead of just INTEGER_TYPE types.
36462 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
36464         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36465         TF_SIZE): Define.
36467 2013-01-07  Steve Ellcey  <sellcey@mips.com>
36469         PR target/42661
36470         * config/mips/mips.opt: Change mad to mmad to match documentation.
36472 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36474         PR target/55897
36475         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36476         .progmemx.data now.
36478 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36480         PR target/55897
36481         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36482         (avr_addrspace_t): Add .section_name field.
36483         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36484         array size.
36485         (avr_addrspace): Same.  Initialize .section_name.  Remove last
36486         NULL entry.  Put __memx into .progmemx.data.
36487         (progmem_section_prefix): Remove.
36488         (avr_asm_init_sections): No need to initialize progmem_section.
36489         (avr_asm_named_section): Use avr_addrspace[].section_name to get
36490         section name prefix.
36491         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
36492         retrieve the progmem section.
36493         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36494         boundary to run over avr_addrspace[].
36495         (avr_register_target_pragmas): Ditto.
36497 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
36499         * varasm.c (output_constant_def_contents): For asan_protect_global
36500         protected strings, adjust DECL_ALIGN if needed, before testing for
36501         anchored symbols.
36502         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36503         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
36504         normal decls.
36505         (output_object_block): For asan protected decls, emit asan padding
36506         after their contents.
36507         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36508         (asan_finish_file): Test it here instead.
36510 2013-01-07  Nick Clifton  <nickc@redhat.com>
36511             Matthias Klose  <doko@debian.org>
36512             Doug Kwan  <dougkwan@google.com>
36513             H.J. Lu  <hongjiu.lu@intel.com>
36515         PR driver/55470
36516         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36518         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36520         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36522         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36524         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36526 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36528         PR target/54461
36529         * doc/install.texi (Cross-Compiler-Specific Options): Document
36530         --with-avrlibc.
36532 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
36534         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36535         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36536         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36537         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36538         vqmovun_high_s64): Fix source operand number and update copyright.
36540 2013-01-07  Richard Biener  <rguenther@suse.de>
36542         PR middle-end/55890
36543         * gimple.h (gimple_call_builtin_p): New overload.
36544         * gimple.c (validate_call): New function.
36545         (gimple_call_builtin_p): Likewise.
36546         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36547         Use gimple_call_builtin_p.
36548         (find_func_clobbers): Likewise.
36549         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36550         (strlen_optimize_stmt): Likewise.
36552 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36554         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36555         (vld1q_dup_*): Likewise.
36556         (vld1_*): Likewise.
36557         (vld1q_*): Likewise.
36558         (vld1_lane_*): Likewise.
36559         (vld1q_lane_*): Likewise.
36561 2013-01-07  Richard Biener  <rguenther@suse.de>
36563         * lto-streamer.h (LTO_minor_version): Bump to 2.
36565 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36567         * config/aarch64/aarch64-protos.h
36568         (aarch64_const_double_zero_rtx_p): Rename to...
36569         (aarch64_float_const_zero_rtx_p): ...this.
36570         (aarch64_float_const_representable_p): New.
36571         (aarch64_output_simd_mov_immediate): Likewise.
36572         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36573         move immediate case.
36574         * config/aarch64/aarch64.c
36575         (aarch64_const_double_zero_rtx_p): Rename to...
36576         (aarch64_float_const_zero_rtx_p): ...this.
36577         (aarch64_print_operand): Allow printing of new constants.
36578         (aarch64_valid_floating_const): New.
36579         (aarch64_legitimate_constant_p): Check for valid floating-point
36580         constants.
36581         (aarch64_simd_valid_immediate): Likewise.
36582         (aarch64_vect_float_const_representable_p): New.
36583         (aarch64_float_const_representable_p): Likewise.
36584         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36585         (aarch64_output_simd_mov_immediate): New.
36586         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36587         (*movdf_aarch64): Likewise.
36588         * config/aarch64/constraints.md (Ufc): New.
36589         (Y): call aarch64_float_const_zero_rtx.
36590         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36592 2013-01-07  Richard Biener  <rguenther@suse.de>
36594         PR tree-optimization/55888
36595         PR tree-optimization/55862
36596         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36597         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36598         not if it is contained therein.
36600 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36602         * config/avr/t-avr: Typo.
36604 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36606         PR55243
36607         * config/avr/t-avr: Don't automatically rebuild
36608         $(srcdir)/config/avr/t-multilib
36609         $(srcdir)/config/avr/avr-tables.opt
36610         $(srcdir)/doc/avr-mmcu.texi
36611         (avr-mcus): New phony target to build them on request.
36612         (s-avr-mlib, s-avr-mmcu-texi): Remove.
36613         * avr/avr-mcus.def: Adjust comments.
36615 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
36617         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36619 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36621         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36623 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36625         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36627 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
36629         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36630         to generate profiling.
36631         * config/rs6000/aix64.h (LIB_SPEC): Same.
36633 2013-01-04  Andrew Pinski  <apinski@cavium.com>
36635         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36636         New function.
36637         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36639 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
36641         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36642         unconditionally.
36643         (ix86_expand_move): Ditto.
36644         (ix86_zero_extend_to_Pmode): Ditto.
36645         (ix86_expand_call): Ditto.
36646         (ix86_expand_special_args_builtin): Ditto.
36647         (ix86_expand_builtin): Ditto.
36649 2013-01-04  Richard Biener  <rguenther@suse.de>
36651         PR tree-optimization/55862
36652         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36653         translating them through PHI nodes.
36655 2013-01-04  Martin Jambor  <mjambor@suse.cz>
36657         PR tree-optimization/55755
36658         * tree-sra.c (sra_modify_assign): Do not check that an access has no
36659         children when trying to avoid producing a VIEW_CONVERT_EXPR.
36661 2013-01-04  Marek Polacek  <polacek@redhat.com>
36663         PR middle-end/55859
36664         * opts.c (default_options_optimization): Clarify error message.
36666 2013-01-04  Richard Biener  <rguenther@suse.de>
36668         PR middle-end/55863
36669         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36670         reassociation.
36672 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36674         PR target/53789
36675         * config/pa/pa.md (movsi): Revert previous change.
36676         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36677         references.
36679 2013-01-03  Richard Henderson  <rth@redhat.com>
36681         * config/i386/i386.c (ix86_expand_move): Always assign to op1
36682         after eliminating TLS symbols.
36684 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
36686         PR bootstrap/50167
36687         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36688         * graphite-poly.c (debug_gmp_value): Likewise.
36690 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
36692         PR target/55712
36693         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36694         selected code model, define __code_mode_small__, __code_model_medium__,
36695         __code_model_large__, __code_model_32__ or __code_model_kernel__.
36696         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36697         xchg temporary register with %k.  Declare temporary register as
36698         early clobbered.
36699         [__x86_64__]: For medium and large code models, preserve %rbx register.
36701 2013-01-03  Richard Biener  <rguenther@suse.de>
36703         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36704         (dump_subscript): Adjust.
36705         (finalize_ddr_dependent): Do not dump redundant info.
36706         (analyze_siv_subscript): Adjust.
36707         (subscript_dependence_tester): Likewise.
36708         (compute_affine_dependence): Likewise.
36710 2013-01-03  Richard Biener  <rguenther@suse.de>
36712         Revert
36713         2013-01-03  Richard Biener  <rguenther@suse.de>
36715         PR tree-optimization/55857
36716         * tree-vect-stmts.c (vectorizable_load): Do not setup
36717         re-alignment for invariant loads.
36719         2013-01-02  Richard Biener  <rguenther@suse.de>
36721         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36722         invariant load do not generate a vector load from the scalar location.
36724 2013-01-03  Richard Biener  <rguenther@suse.de>
36726         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36727         for not vectorizing.
36728         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36729         not build INDIRECT_REFs, call get_name once only.
36730         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
36731         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36733 2013-01-03  Richard Biener  <rguenther@suse.de>
36735         PR tree-optimization/55857
36736         * tree-vect-stmts.c (vectorizable_load): Do not setup
36737         re-alignment for invariant loads.
36739 2013-01-03  Richard Biener  <rguenther@suse.de>
36741         PR lto/55848
36742         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36743         prefer a built-in decl.
36745 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36747         * gcc.c (process_command): Update copyright notice dates.
36748         * gcov.c (print_version): Likewise.
36749         * gcov-dump.c (print_version): Likewise.
36751         PR rtl-optimization/55838
36752         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36753         iv0.step, iv1.step and step.
36755 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36756             Marc Glisse  <marc.glisse@inria.fr>
36758         PR tree-optimization/55832
36759         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36760         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36761         integer_{one,zero}_node.
36763 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36765         PR debug/54402
36766         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36767         * var-tracking.c (reverse_op): Don't add reverse ops to
36768         VALUEs that have already
36769         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36771 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
36773         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36775 2013-01-02  Teresa Johnson  <tejohnson@google.com>
36777         * dumpfile.c (dump_loc): Print filename with location.
36778         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36779         new location_t parameter to emit complete unroll message with
36780         new dump framework.
36781         (canonicalize_loop_induction_variables): Compute loops location
36782         and pass to try_unroll_loop_completely.
36783         * loop-unroll.c (report_unroll_peel): New function.
36784         (peel_loops_completely): Use new dump format with location
36785         for main dumpfile message, and invoke report_unroll_peel on success.
36786         (decide_unrolling_and_peeling): Ditto.
36787         (decide_peel_once_rolling): Remove old dumpfile message subsumed
36788         by report_unroll_peel.
36789         (decide_peel_completely): Ditto.
36790         (decide_unroll_constant_iterations): Ditto.
36791         (decide_unroll_runtime_iterations): Ditto.
36792         (decide_peel_simple): Ditto.
36793         (decide_unroll_stupid): Ditto.
36794         * cfgloop.c (get_loop_location): New function.
36795         * cfgloop.h (get_loop_location): Declare.
36797 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36799         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36800         NULL.
36802 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36804         PR middle-end/55198
36805         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36806         BLKmode objects when EXPAND_MEMORY is specified.
36808 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36810         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36811         in loop predicate.
36812         (fold_builtin_cpu): Do not share cpu model decls across statements.
36814 2013-01-02  Jason Merrill  <jason@redhat.com>
36816         PR c++/55804
36817         * tree.c (build_array_type_1): Revert earlier change.
36819 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
36821         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36822         "cortex-a57".
36823         * config/aarch64/aarch64-tune.md: Re-generate.
36825 2013-01-02  Richard Biener  <rguenther@suse.de>
36827         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36828         invariant load do not generate a vector load from the scalar location.
36830 2013-01-02  Richard Biener  <rguenther@suse.de>
36832         PR bootstrap/55784
36833         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36834         * configure: Regenerate.
36836 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36838         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36839         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36840         (expand_builtin_int_roundingfn_2): Keep the original target around
36841         for the fallback case.
36843 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36845         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36846         to be clear for sign changes.
36848 2013-01-01  Jan Hubicka  <jh@suse.cz>
36850         * ipa-inline-analysis.c: Fix formatting.
36852 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
36854         PR tree-optimization/55831
36855         * tree-vect-loop.c (get_initial_def_for_induction): Use
36856         gsi_after_labels instead of gsi_start_bb.
36858 Copyright (C) 2013 Free Software Foundation, Inc.
36860 Copying and distribution of this file, with or without modification,
36861 are permitted in any medium without royalty provided the copyright
36862 notice and this notice are preserved.