2013-12-02 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob38af5b76455822f118fe21d29c04d063e8c340f8
1 2013-12-02  Richard Biener  <rguenther@suse.de>
3         PR tree-optimization/59139
4         * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
5         code in get_val_for.
6         (get_val_for): Use gcc_checking_asserts.
8 2013-12-02  Richard Biener  <rguenther@suse.de>
10         PR middle-end/59199
11         * tree-ssa-operands.c (opf_implicit): Remove.
12         (opf_address_taken): New flag.
13         (get_expr_operands): Remove early out, pass down
14         opf_address_taken for ADDR_EXPRs, add a use operand only
15         for non-opf_address_taken bases.
16         (get_indirect_ref_operands): Rename to ...
17         (get_mem_ref_operands): ... this.
18         (get_asm_expr_operands): Rename to ...
19         (get_asm_stmt_operands): ... this.
21 2013-12-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
23         * ipa-inline.c (check_callers): Add missed pointer de-reference.
25 2013-12-02  Eric Botcazou  <ebotcazou@adacore.com>
27         PR tree-optimization/59356
28         * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
29         offset computation using the precision of the index type.
31 2013-12-02  Yvan Roux  <yvan.roux@linaro.org>
33         PR target/58785
34         * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
35         when rclass is GENERAL_REGS.
37 2013-12-02 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
39         * loop-unroll.c (decide_unroll_constant_iterations): Check macro 
40         TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
42 2013-12-01  Eric Botcazou  <ebotcazou@adacore.com>
44         * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
45         identifier node.
47 2013-12-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
49         * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
51 2013-11-30  Paulo Matos  <pmatos@broadcom.com>
52             Eric Botcazou  <ebotcazou@adacore.com>
54         * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
55         as applied to nonzero_sign_valid when last_set_mode has less precision
56         than mode.
58 2013-11-30  Tobias Burnus  <burnus@net-b.de>
60         PR sanitizer/59275
61         * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
62         environment variable and link to a list with flags.
63         (-fsanitize=thread): Ditto and update link.
65 2013-11-29  Vladimir Makarov  <vmakarov@redhat.com>
67         PR rtl-optimization/59340
68         * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
70         Revert
71         2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
73         * lra.c (lra): Set lra_in_progress before check_rtl call.
74         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
75         adding clobber regs when LRA is running.
77 2013-11-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
79         PR target/59289
80         * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
82 2013-11-29  Richard Biener  <rguenther@suse.de>
84         PR middle-end/59208
85         * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
86         free_stmt_operands, update_stmt_operands): Add struct function
87         argument.
88         * tree-ssa-operands.c: Remove uses of cfun, propagate struct
89         function argument from fini_ssa_operands, verify_ssa_operands,
90         free_stmt_operands and update_stmt_operands everywhere.
91         * tree-ssanames.h (release_ssa_name_fn): New.
92         (release_ssa_name): Inline wrapper around release_ssa_name_fn.
93         * tree-ssanames.c (release_ssa_name): Rename to ...
94         (release_ssa_name_fn): ... this and add struct function argument.
95         * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
96         (update_stmt_fn): New function.
97         * tree-cfg.c (move_block_to_fn): Adjust.
98         * tree-if-conv.c (free_bb_predicate): Likewise.
99         * tree-ssa.c (verify_ssa): Likewise.
100         (delete_tree_ssa): Likewise.
101         * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
102         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
103         update_stmt_fn instead of update_stmt.
105 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
107         * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
108         for LRA.
110 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
112          * config/arm/arm.md (store_minmaxsi): Use only when
113         optimize_function_for_size_p.
115 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
116             Yury Gribov  <y.gribov@samsung.com>
118         PR sanitizer/59063
119         * config/gnu-user.h: Removed old code for setting up sanitizer
120         libs.
121         * gcc.c: Using libsanitizer spec instead of explicit libs.
123 2013-11-29  Ilya Enkovich  <ilya.enkovich@intel.com>
125         Reverted:
126         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
127         * cgraph.h (varpool_node): Add need_bounds_init field.
128         * lto-cgraph.c (lto_output_varpool_node): Output
129         need_bounds_init value.
130         (input_varpool_node): Read need_bounds_init value.
131         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
133         Reverted:
134         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
135         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
136         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
137         (gen_type_die_with_usage): Skip pointer bounds.
138         (dwarf2out_global_decl): Likewise.
140         Reverted:
141         2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
142         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
143         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
144         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
145         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
146         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
147         (gimple_call_with_bounds_p): New.
148         (gimple_call_set_with_bounds): New.
149         (gimple_call_num_nobnd_args): Remove.
150         (gimple_call_nobnd_arg): Remove.
151         * tree.h (CALL_WITH_BOUNDS_P): New.
152         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
154         Reverted:
155         2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
156         * common.opt (fcheck-pointer-bounds): Move to ...
157         * c-family/c.opt: ... here.
158         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
159         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
160         * langhooks.h (lang_hooks): Remove chkp_supported field.
161         * toplev.c (process_options): Remove chkp_supported check.
163         Reverted:
164         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
165         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
166         * tree.h (POINTER_BOUNDS_P): New.
167         (BOUNDED_TYPE_P): New.
168         (BOUNDED_P): New.
169         (pointer_bounds_type_node): New.
170         * tree.c (build_common_tree_nodes): Initialize
171         pointer_bounds_type_node.
172         * gimple.h (gimple_call_get_nobnd_arg_index): New.
173         (gimple_call_num_nobnd_args): New.
174         (gimple_call_nobnd_arg): New.
175         (gimple_return_retbnd): New.
176         (gimple_return_set_retbnd): New
177         * gimple.c (gimple_build_return): Increase number of ops
178         for return statement.
179         (gimple_call_get_nobnd_arg_index): New.
180         * gimple-pretty-print.c (dump_gimple_return): Print second op.
182         Reverted:
183         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
184         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
185         with "chkp ctor" and "bnd_legacy" attributes.
186         * gimplify.c (gimplify_init_constructor): Avoid infinite
187         loop during gimplification of bounds initializer.
189         Reverted:
190         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
191         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
192         (handle_bnd_legacy): New.
193         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
194         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
195         attributes.
197         Reverted:
198         2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
199         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
200         (BT_FN_PTR_CONST_PTR): New.
201         (BT_FN_CONST_PTR_CONST_PTR): New.
202         (BT_FN_PTR_CONST_PTR_SIZE): New.
203         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
204         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
205         (BT_FN_VOID_CONST_PTR_SIZE): New.
206         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
207         * chkp-builtins.def: New.
208         * builtins.def: include chkp-builtins.def.
209         (DEF_CHKP_BUILTIN): New.
210         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
211         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
212         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
213         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
214         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
215         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
216         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
217         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
218         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
219         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
220         * common.opt (fcheck-pointer-bounds): New.
221         * toplev.c (process_options): Check Pointer Bounds Checker is
222         supported.
223         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
225         Reverted:
226         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
227         * target.def (builtin_chkp_function): New.
228         (chkp_bound_type): New.
229         (chkp_bound_mode): New.
230         (fn_abi_va_list_bounds_size): New.
231         (load_bounds_for_arg): New.
232         (store_bounds_for_arg): New.
233         * targhooks.h (default_load_bounds_for_arg): New.
234         (default_store_bounds_for_arg): New.
235         (default_fn_abi_va_list_bounds_size): New.
236         (default_chkp_bound_type): New.
237         (default_chkp_bound_mode): New.
238         (default_builtin_chkp_function): New.
239         * targhooks.c (default_load_bounds_for_arg): New.
240         (default_store_bounds_for_arg): New.
241         (default_fn_abi_va_list_bounds_size): New.
242         (default_chkp_bound_type): New.
243         (default_chkp_bound_mode); New.
244         (default_builtin_chkp_function): New.
245         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
246         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
247         (TARGET_STORE_BOUNDS_FOR_ARG): New.
248         (TARGET_BUILTIN_CHKP_FUNCTION): New.
249         (TARGET_CHKP_BOUND_TYPE): New.
250         (TARGET_CHKP_BOUND_MODE): New.
251         * doc/tm.texi: Regenerated.
252         * langhooks.h (lang_hooks): Add chkp_supported field.
253         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
254         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
256         Reverted:
257         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
258         * config/i386/constraints.md (B): New.
259         (Ti): New.
260         (Tb): New.
261         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
262         * config/i386/i386-modes.def (BND32): New.
263         (BND64): New.
264         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
265         * config/i386/i386.c (isa_opts): Add mmpx.
266         (regclass_map): Add bound registers.
267         (dbx_register_map): Likewise.
268         (dbx64_register_map): Likewise.
269         (svr4_dbx_register_map): Likewise.
270         (PTA_MPX): New.
271         (ix86_option_override_internal): Support MPX ISA.
272         (ix86_conditional_register_usage): Support bound registers.
273         (print_reg): Likewise.
274         (ix86_code_end): Add MPX bnd prefix.
275         (output_set_got): Likewise.
276         (ix86_output_call_insn): Likewise.
277         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
278         (ix86_print_operand_punct_valid_p): Likewise.
279         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
280         UNSPEC_BNDMK_ADDR.
281         (ix86_class_likely_spilled_p): Add bound regs support.
282         (ix86_hard_regno_mode_ok): Likewise.
283         (x86_order_regs_for_local_alloc): Likewise.
284         (ix86_bnd_prefixed_insn_p): New.
285         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
286         (FIXED_REGISTERS): Add bound registers.
287         (CALL_USED_REGISTERS): Likewise.
288         (REG_ALLOC_ORDER): Likewise.
289         (HARD_REGNO_NREGS): Likewise.
290         (TARGET_MPX): New.
291         (VALID_BND_REG_MODE): New.
292         (FIRST_BND_REG): New.
293         (LAST_BND_REG): New.
294         (reg_class): Add BND_REGS.
295         (REG_CLASS_NAMES): Likewise.
296         (REG_CLASS_CONTENTS): Likewise.
297         (BND_REGNO_P): New.
298         (ANY_BND_REG_P): New.
299         (BNDmode): New.
300         (HI_REGISTER_NAMES): Add bound registers.
301         * config/i386/i386.md (UNSPEC_BNDMK): New.
302         (UNSPEC_BNDMK_ADDR): New.
303         (UNSPEC_BNDSTX): New.
304         (UNSPEC_BNDLDX): New.
305         (UNSPEC_BNDLDX_ADDR): New.
306         (UNSPEC_BNDCL): New.
307         (UNSPEC_BNDCU): New.
308         (UNSPEC_BNDCN): New.
309         (UNSPEC_MPX_FENCE): New.
310         (BND0_REG): New.
311         (BND1_REG): New.
312         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
313         (length_immediate): Likewise.
314         (prefix_0f): Likewise.
315         (memory): Likewise.
316         (prefix_rep): Check for bnd prefix.
317         (length_nobnd): New.
318         (length): Use length_nobnd if specified.
319         (BND): New.
320         (bnd_ptr): New.
321         (BNDCHECK): New.
322         (bndcheck): New.
323         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
324         (*jcc_2): Likewise.
325         (jump): Likewise.
326         (simple_return_internal): Likewise.
327         (simple_return_pop_internal): Likewise.
328         (*indirect_jump): Add MPX bnd prefix.
329         (*tablejump_1): Likewise.
330         (simple_return_internal_long): Likewise.
331         (simple_return_indirect_internal): Likewise.
332         (<mode>_mk): New.
333         (*<mode>_mk): New.
334         (mov<mode>): New.
335         (*mov<mode>_internal_mpx): New.
336         (<mode>_<bndcheck>): New.
337         (*<mode>_<bndcheck>): New.
338         (<mode>_ldx): New.
339         (*<mode>_ldx): New.
340         (<mode>_stx): New.
341         (*<mode>_stx): New.
342         * config/i386/predicates.md (lea_address_operand): Rename to...
343         (address_no_seg_operand): ... this.
344         (address_mpx_no_base_operand): New.
345         (address_mpx_no_index_operand): New.
346         (bnd_mem_operator): New.
347         * config/i386/i386.opt (mmpx): New.
348         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
349         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
351         Reverted:
352         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
353         * mode-classes.def (MODE_POINTER_BOUNDS): New.
354         * tree.def (POINTER_BOUNDS_TYPE): New.
355         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
356         (POINTER_BOUNDS_MODE): New.
357         (make_pointer_bounds_mode): New.
358         * machmode.h (POINTER_BOUNDS_MODE_P): New.
359         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
360         (layout_type): Support POINTER_BOUNDS_TYPE.
361         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
362         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
363         (type_contains_placeholder_1): Likewise.
364         * tree.h (POINTER_BOUNDS_TYPE_P): New.
365         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
366         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
368 2013-11-29  Richard Biener  <rguenther@suse.de>
370         PR middle-end/59338
371         * tree-cfg.c (verify_expr): Restrict bounds verification of
372         BIT_FIELD_REF arguments to non-aggregate typed base objects.
374 2013-11-29  Richard Biener  <rguenther@suse.de>
376         PR tree-optimization/59334
377         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
378         in previous commit.
380 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
381             Richard Biener  <rguenther@suse.de>
383         PR lto/59326
384         * omp-low.c (simd_clone_create): Return NULL if for definition
385         !cgraph_function_with_gimple_body_p (old_node).  Call cgraph_get_body
386         before calling cgraph_function_versioning.
387         (expand_simd_clones): Look for "omp declare simd" attribute first.
388         Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
389         Punt if node->global.inlined_to.
390         (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
391         Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
392         * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
394 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
396         PR lto/59326
397         * tree-core.h (enum omp_clause_schedule_kind): Add
398         OMP_CLAUSE_SCHEDULE_LAST.
399         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
400         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
401         (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
402         (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
403         * lto-streamer-out.c (lto_is_streamable): Allow streaming
404         OMP_CLAUSE.
405         (DFS_write_tree_body): Handle OMP_CLAUSE.
406         * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New
407         function.
408         (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
409         (write_ts_omp_clause_tree_pointers): New function.
410         (streamer_write_tree_body): Call it for OMP_CLAUSE.
411         (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
412         * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New
413         function.
414         (unpack_value_fields): Call it for OMP_CLAUSE.
415         (streamer_alloc_tree): Handle OMP_CLAUSE.
416         (lto_input_ts_omp_clause_tree_pointers): New function.
417         (streamer_read_tree_body): Call it for OMP_CLAUSE.
419 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
421         * doc/implement-c.texi: Document C11 implementation-defined
422         behavior.  Refer to -ffp-contract=fast for contraction behavior.
423         * doc/invoke.texi (-std=c99, std=c11): Update description of
424         completeness.
425         (-std=gnu99): Don't mention as future default.
426         (-std=gnu11): Mention as intended future default.
427         * doc/standards.texi: Update descriptions of C99 and C11 support.
428         Limit statement about C99 facilities for freestanding
429         implementations to some platforms only.
431 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
433         PR middle-end/59327
434         * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit
435         HWI hosts.
437 2013-11-28  Vladimir Makarov  <vmakarov@redhat.com>
439         PR target/57293
440         * ira.h (ira_setup_eliminable_regset): Remove parameter.
441         * ira.c (ira_setup_eliminable_regset): Ditto.  Add
442         SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
443         Don't call lra_init_elimination.
444         (ira): Call ira_setup_eliminable_regset without arguments.
445         * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
446         from ira_setup_eliminable_regset call.
447         * gcse.c (calculate_bb_reg_pressure): Ditto.
448         * haifa-sched.c (sched_init): Ditto.
449         * lra.h (lra_init_elimination): Remove the prototype.
450         * lra-int.h (lra_insn_recog_data): New member sp_offset.  Move
451         used_insn_alternative upper.
452         (lra_eliminate_regs_1): Add one more parameter.
453         (lra-eliminate): Ditto.
454         * lra.c (lra_invalidate_insn_data): Set sp_offset.
455         (setup_sp_offset): New.
456         (lra_process_new_insns): Call setup_sp_offset.
457         (lra): Add argument to lra_eliminate calls.
458         * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
459         (get_equiv_with_elimination): New.
460         (process_addr_reg): Call get_equiv_with_elimination instead of
461         get_equiv_substitution.
462         (equiv_address_substitution): Ditto.
463         (loc_equivalence_change_p): Ditto.
464         (loc_equivalence_callback, lra_constraints): Ditto.
465         (curr_insn_transform): Ditto.  Print the sp offset
466         (process_alt_operands): Prevent stack pointer reloads.
467         (lra_constraints): Remove one argument from lra_eliminate call.
468         Move it up.  Mark used hard regs bfore it.  Use
469         get_equiv_with_elimination instead of get_equiv_substitution.
470         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
471         assert for param values combination.  Use sp offset.  Add argument
472         to lra_eliminate_regs_1 calls.
473         (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
474         (curr_sp_change): New static var.
475         (mark_not_eliminable): Add parameter.  Update curr_sp_change.
476         Don't prevent elimination to sp if we can calculate its change.
477         Pass the argument to mark_not_eliminable calls.
478         (eliminate_regs_in_insn): Add a parameter.  Use sp offset.  Add
479         argument to lra_eliminate_regs_1 call.
480         (update_reg_eliminate): Move calculation of hard regs for spill
481         lower.  Switch off lra_in_progress temporarily to generate regs
482         involved into elimination.
483         (lra_init_elimination): Rename to init_elimination.  Make it
484         static.  Set up insn sp offset, check the offsets at the end of
485         BBs.
486         (process_insn_for_elimination): Add parameter.  Pass its value to
487         eliminate_regs_in_insn.
488         (lra_eliminate): : Add parameter.  Pass its value to
489         process_insn_for_elimination.  Add assert for param values
490         combination.  Call init_elimination.  Don't update offsets in
491         equivalence substitutions.
492         * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
493         for created stack slot.
494         (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
495         onto stack slot.
497 2013-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
499         * config/arm/iterators.md (vrint_conds): New int attribute.
500         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
501         (smax<mode>3): Likewise.
502         (smin<mode>3): Likewise.
504 2013-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
506         * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
507         * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
508         * tree-ssanames.h (set_range_info): Add range_type argument.
509         (duplicate_ssa_name_range_info): Likewise.
510         * tree-ssanames.c (set_range_info): Take the range type as argument
511         and store it in SSA_NAME_ANTI_RANGE_P.
512         (duplicate_ssa_name_range_info): Likewise.
513         (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
514         (set_nonzero_bits): Update call to set_range_info.
515         (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
516         * tree-ssa-copy.c (fini_copy_prop): Likewise.
517         * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
518         (vrp_finalize): Likewise, passing anti-ranges directly.
520 2013-11-28  Richard Biener  <rguenther@suse.de>
522         PR tree-optimization/59330
523         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
524         and fix delayed marking of free calls not necessary.
526 2013-11-28  Andrew MacLeod  <amacleod@redhat.com>
528         * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
529         is_gimple_reg_type.
530         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
532 2013-11-28  Terry Guo  <terry.guo@arm.com>
534         * config/arm/arm.c (v7m_extra_costs): New table.
535         (arm_v7m_tune): Use it.
537 2013-11-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
539         * config/sol2.h (TIME_LIBRARY): Define.
541 2013-11-28  Richard Biener  <rguenther@suse.de>
543         PR lto/59323
544         * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
545         CONST_DECLs in function context are not indexable.
547 2013-11-28  Chung-Ju Wu  <jasonwucj@gmail.com>
549         * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
550         not optimized for size.
552 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
554         * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
555         fields.
556         (expand_stack_vars): For -fsanitize=address, use (and set initially)
557         data->asan_base as base for vars and update asan_alignb.
558         (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
559         Pass them to asan_emit_stack_protection.
560         * asan.c (asan_detect_stack_use_after_return): New variable.
561         (asan_emit_stack_protection): Add pbase and alignb arguments.
562         Implement use after return sanitization.
563         * asan.h (asan_emit_stack_protection): Adjust prototype.
564         (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
566 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
568         * common.opt: Introduced a new option -fsimd-cost-model.
569         * doc/invoke.texi: Introduced a new openmp-simd warning and
570         a new -fsimd-cost-model option.
571         * tree-vectorizer.h (unlimited_cost_model): Interface updated
572         to rely on the particular loop info.
573         * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
574         (vect_peeling_hash_choose_best_peeling): Ditto.
575         (vect_enhance_data_refs_alignment): Ditto.
576         * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
577         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
578         plus added openmp-simd warining.
580 2013-11-27   H.J. Lu  <hongjiu.lu@intel.com>
582         PR rtl-optimization/59311
583         * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
584         * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
586 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
588         * var-tracking.c (track_expr_p): Do not track declarations for parts
589         of tracked parameters.
590         (add_stores): Do not track values for tracked parameters passed in
591         multiple locations.
592         (vt_get_decl_and_offset): Handle PARALLEL.
593         (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
595 2013-11-27  Jeff Law  <law@redhat.com>
597         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
598         clobber the loop structure thread_block was unsuccessful.  If
599         thread_block was unsuccessful, cleanup appropriately.
601 2013-11-27  Chen Liqin <liqin.gcc@gmail.com>
603         * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
604         (score_char_to_class): Likewise.
606 2013-11-27  Kenneth Zadeck  <zadeck@naturalbridge.com>
608         * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with the
609         overflow bit set.
611 2013-11-27  Richard Biener  <rguenther@suse.de>
613         PR middle-end/58723
614         * cgraphbuild.c (build_cgraph_edges): Do not build edges
615         for internal calls.
616         (rebuild_cgraph_edges): Likewise.
617         * ipa-inline-analysis.c (estimate_function_body_sizes):
618         Skip internal calls.
619         * tree-inline.c (estimate_num_insns): Estimate size of internal
620         calls as 0.
621         (gimple_expand_calls_inline): Do not try inline-expanding
622         internal calls.
623         * lto-streamer-in.c (input_cfg): Stream loop safelen,
624         force_vect and simduid.
625         (input_struct_function_base): Stream has_force_vect_loops
626         and has_simduid_loops.
627         (input_function): Adjust.
628         * lto-streamer-out.c (output_cfg): Stream loop safelen,
629         force_vect and simduid.
630         (output_struct_function_base): Stream has_force_vect_loops
631         and has_simduid_loops.
633 2013-11-27  Kai Tietz  <ktietz@redhat.com>
635         * config/i386/winnt.c (i386_pe_section_type_flags): Use const
636         pointer cast.
638 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
640         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
641         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
643 2013-11-27  Marek Polacek  <polacek@redhat.com>
645         PR sanitizer/59306
646         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
647         instead of walk_gimple_op.
648         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
650 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
651             Jakub Jelinek  <jakub@redhat.com>
653         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
654         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
655         (struct cgraph_node): Add simdclone and simd_clones fields.
656         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
657         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
658         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
659         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
660         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
661         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
662         * doc/tm.texi: Regenerated.
663         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
664         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
665         attribute is present.
666         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
667         (simd_clone_vector_of_formal_parm_types): New function.
668         (simd_clone_struct_alloc, simd_clone_struct_copy,
669         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
670         simd_clone_compute_base_data_type, simd_clone_mangle,
671         simd_clone_create, simd_clone_adjust_return_type,
672         create_tmp_simd_array, simd_clone_adjust_argument_types,
673         simd_clone_init_simd_arrays): New functions.
674         (struct modify_stmt_info): New type.
675         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
676         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
677         functions.
678         (pass_data_omp_simd_clone): New variable.
679         (pass_omp_simd_clone): New class.
680         (make_pass_omp_simd_clone): New function.
681         * passes.def (pass_omp_simd_clone): New.
682         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
683         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target
684         hooks.
685         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
686         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
687         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
688         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
689         * tree-vect-data-refs.c: Include cgraph.h.
690         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
691         and find_data_references_in_bb, if find_data_references_in_stmt
692         fails, still allow calls to #pragma omp declare simd functions
693         in #pragma omp simd loops unless they contain data references among
694         the call arguments or in lhs.
695         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
696         calls with no lhs.
697         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls without
698         lhs.
699         * tree-vectorizer.h (enum stmt_vec_info_type): Add
700         call_simd_clone_vec_info_type.
701         (struct _stmt_vec_info): Add simd_clone_fndecl field.
702         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
703         * tree-vect-stmts.c: Include tree-ssa-loop.h,
704         tree-scalar-evolution.h and cgraph.h.
705         (vectorizable_call): Handle calls without lhs.  Assert
706         !stmt_can_throw_internal instead of failing for it.  Don't update
707         EH stuff.
708         (struct simd_call_arg_info): New.
709         (vectorizable_simd_clone_call): New function.
710         (vect_transform_stmt): Call it.
711         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
712         calls without lhs.
713         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
714         if cgraph_function_with_gimple_body_p is true.
716 2013-11-27  Tom de Vries  <tom@codesourcery.com>
717             Marc Glisse  <marc.glisse@inria.fr>
719         PR middle-end/59037
720         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
721         BIT_FIELD_REF.
722         * gimple-fold.c (gimple_fold_indirect_ref): Same.
723         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
724         out-of-bounds.
726 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
728         PR middle-end/59138
729         * expr.c (emit_group_store): Don't write past the end of the structure.
730         (store_bit_field): Fix formatting.
732 2013-11-27  Richard Biener  <rguenther@suse.de>
734         PR tree-optimization/59288
735         * tree-vect-loop.c (get_initial_def_for_induction): Do not
736         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
738 2013-11-27  Marek Polacek  <polacek@redhat.com>
740         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
741         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
742         rather than ADDR_EXPRs.
744 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
746         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
748 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
750         * gengtype.c (struct seen_tag): New.
751         (already_seen_tag): New.
752         (mark_tag_as_seen): New.
753         (walk_subclasses): Support having multiple subclasses using the
754         same tag by tracking which tags have already been seen, and using
755         this to avoid adding duplicate cases to the "switch" statement.
756         The call to already_seen_tag introduces an O(N^2) when running
757         gengtype on N, the number of tags, due to the repeated linear
758         search, but currently max(N) is relatively small (the number of
759         GSS codes, which is 26).
760         (walk_type): Pass in a seen_tag for use by the walk_subclasses
761         recursion.
763         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
764         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
765         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
766         GIMPLE_OMP_RETURN happens to share the data layout of
767         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
768         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
769         underlying GSS value from GSS_OMP_PARALLEL to
770         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
771         not directly related; they merely share in-memory layout.
772         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
773         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
775         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
776         Rename to...
777         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
778         ...these.
779         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
780         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout):
781         ...these.
782         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename
783         to...
784         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
785         ...these.
787         * gimple.h (gimple_statement_resx): New subclass of
788         gimple_statement_eh_ctrl, with the invariant that
789         stmt->code == GIMPLE_RESX.
790         (gimple_statement_eh_dispatch): New subclass of
791         gimple_statement_eh_ctrl, with the invariant that
792         stmt->code == GIMPLE_EH_DISPATH.
794         (gimple_statement_omp_parallel): The existing class expressed
795         a layout (GSS_OMP_PARALLEL), but the codes with that layout
796         are not all related, so it makes more sense for this class to
797         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
798         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
799         rename the existing gimple_statement_omp_parallel class to...
800         (gimple_statement_omp_parallel_layout): ...this, expressing
801         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
802         (gimple_statement_omp_taskreg): New subclass of
803         gimple_statement_omp_parallel_layout, expressing the invariant
804         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
805         as used by the various gimple_omp_taskreg_ accessors.
806         (gimple_statement_omp_parallel): Reintroduce this class, this time
807         as a subclass of gimple_statement_omp_taskreg to express the
808         invariant stmt->code == GIMPLE_OMP_PARALLEL.
809         (gimple_statement_omp_target) New class, subclassing
810         gimple_statement_omp_parallel_layout, to express the invariant
811         stmt->code == GIMPLE_OMP_TARGET.
812         (gimple_statement_omp_task): Update to inherit from
813         gimple_statement_omp_taskreg rather than
814         gimple_statement_omp_parallel.
816         (gimple_statement_omp_single): Rename to...
817         (gimple_statement_omp_single_layout): ...this, expressing the
818         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
819         (gimple_statement_omp_single): ...and reintroduce this name as
820         a subclass of gimple_statement_omp_single_layout, expressing
821         the invariant that code == GIMPLE_OMP_SINGLE.
822         (gimple_statement_omp_teams): New class, subclassing
823         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
825         (gimple_statement_omp_atomic_store): Rename to...
826         (gimple_statement_omp_atomic_store_layout): ...this, expressing
827         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
828         (gimple_statement_omp_atomic_store): ...and reintroduce this
829         name as a subclass of gimple_statement_omp_atomic_store_layout
830         with code == GIMPLE_OMP_ATOMIC_STORE.
831         (gimple_statement_omp_return): New class, subclassing
832         gimple_statement_omp_atomic_store_layout for the code
833         GIMPLE_OMP_RETURN.
835         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
836         (is_a_helper <gimple_statement_resx>::test): New.
837         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
838         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
839         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
840         (is_a_helper <gimple_statement_omp_return>::test): New.
841         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
842         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
843         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
844         GIMPLE_OMP_TARGET.
845         (is_a_helper <gimple_statement_omp_target>::test): New.
846         (is_a_helper <gimple_statement_omp_single>::test): Only check
847         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
848         (is_a_helper <gimple_statement_omp_teams>::test): New.
850         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
851         (is_a_helper <const gimple_statement_resx>::test): New.
852         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
853         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
854         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
855         (is_a_helper <const gimple_statement_omp_return>::test): New.
856         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
857         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
858         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
859         GIMPLE_OMP_TARGET.
860         (is_a_helper <const gimple_statement_omp_target>::test): New.
861         (is_a_helper <const gimple_statement_omp_single>::test): Only
862         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
863         (is_a_helper <const gimple_statement_omp_teams>::test): New.
865         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
866         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
867         gimple_statement_omp_atomic_store with downcasts to
868         gimple_statement_omp_return, thus requiring that the code be
869         GIMPLE_OMP_RETURN.
870         (gimple_resx_region, gimple_resx_set_region): Replace bogus
871         downcasts to gimple_statement_eh_ctrl with downcasts to
872         gimple_statement_resx, thus requiring that the code be
873         GIMPLE_RESX.
874         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
875         Replace bogus downcasts to const gimple_statement_eh_ctrl with
876         downcasts to gimple_statement_eh_dispatch, thus requiring that
877         the code be GIMPLE_EH_DISPATCH.
878         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
879         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
880         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
881         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
882         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
883         gimple_statement_omp_parallel with downcasts to
884         gimple_statement_omp_taskreg, thus requiring that the code be
885         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
886         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
887         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
888         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
889         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
890         gimple_omp_target_set_data_arg): Replace bogus downcasts to
891         gimple_statement_omp_parallel with downcasts to
892         gimple_statement_omp_target, thus requiring that the code be
893         GIMPLE_OMP_TARGET.
894         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
895         gimple_omp_teams_set_clauses): Replace bogus downcasts to
896         gimple_statement_omp_single with downcasts to
897         gimple_statement_omp_teams, thus requiring that the code be
898         GIMPLE_OMP_TEAMS.
900         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
901         gimple_statement_resx.
902         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
903         gimple_statement_eh_dispatch.
905 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
907         PR tree-optimization/59014
908         * tree-vrp.c (register_edge_assert_for_1): Don't look
909         through conversions from non-integral types or through
910         narrowing conversions.
912         PR target/59229
913         * config/i386/i386.c (device_alg): Fix up formatting.
914         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
915         similarly to count && count < epilogue_size_needed.  Fix up
916         comment typo.
917         * builtins.c (determine_block_size): Fix comment typo.
919         PR sanitizer/59258
920         * ubsan.c (ubsan_source_location): Don't add any location
921         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
922         (ubsan_create_data): Strip block info from LOC.
924         PR middle-end/59273
925         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
926         if there isn't optab handler for the corresponding vector PLUS_EXPR.
928         PR rtl-optimization/59166
929         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
930         DF_REF_LOC in validate_change call.
931         (split_live_ranges_for_shrink_wrap): Likewise.
933         PR middle-end/59150
934         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
935         of references to constant size types in simd loops, defer emitting
936         initializer for the new_var, emit it later on only if not using
937         SIMD arrays for it.
939         PR middle-end/59152
940         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
941         for the inner loop if collapse_bb is non-NULL.
942         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
944 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
946         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
947         a constant immediate before force_reg.
949 2013-11-26  Richard Biener  <rguenther@suse.de>
951         PR tree-optimization/59245
952         * tree-vrp.c (set_value_range): Assert that we don't have
953         overflowed constants (but our infinities).
954         (set_value_range_to_value): Drop all overflow flags.
955         (vrp_visit_phi_node): Likewise.
956         (vrp_visit_assignment_or_call): Use set_value_range_to_value
957         to set a constant range.
959 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
961         PR target/59290
962         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
963         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
964         for zero_extend case.
966 2013-11-26   H.J. Lu  <hongjiu.lu@intel.com>
968         PR bootstrap/55552
969         * configure.ac (install_gold_as_default): New.  Set to yes for
970         --disable-ld or --enable-gold=default.
971         (gcc_cv_ld_gold_srcdir): New.
972         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
973         is yes.
974         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
975         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
976         * configure: Regenerated.
978         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
979         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
980         (original) [collect-ld && -fuse-ld=bfd]: Set to
981         $ORIGINAL_LD_BFD_FOR_TARGET.
982         (original) [collect-ld && -fuse-ld=gold]: Set to
983         $ORIGINAL_LD_GOLD_FOR_TARGET.
984         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
985         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
987 2013-11-26  Terry Guo  <terry.guo@arm.com>
989         * config/arm/arm.c (require_pic_register): Handle high pic base
990         register for thumb-1.
991         (arm_load_pic_register): Also initialize high pic base register.
992         * doc/invoke.texi: Update documentation for option -mpic-register.
994 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
996         PR target/58314
997         PR target/50751
998         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
999         Prefix function names with 'sh_'.  Make them non-static.
1000         * config/sh/sh-protos.h (sh_disp_addr_displacement,
1001         sh_max_mov_insn_displacement): Add declarations.
1002         * config/sh/constraints.md (Q): Reject QImode.
1003         (Sdd): Use match_code "mem".
1004         (Snd): Fix erroneous matching of non-memory operands.
1005         * config/sh/predicates.md (short_displacement_mem_operand): New
1006         predicate.
1007         (general_movsrc_operand): Disallow PC relative QImode loads.
1008         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1009         (*movqi, *movhi): Merge both insns into...
1010         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
1011         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
1012         on the operand types.
1014 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
1016         * config/epiphany/epiphany.c (epiphany_expand_prologue):
1017         Remove unused variable save_config.
1018         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1019         assert.
1021 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1023         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1024         using other intrinsics.
1025         (vtbx3_<psu>8): Likewise.
1027 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1029         * config/aarch64/aarch64-builtins.c
1030         (aarch64_types_bsl_p_qualifiers): New.
1031         (aarch64_types_bsl_s_qualifiers): Likewise.
1032         (aarch64_types_bsl_u_qualifiers): Likewise.
1033         (TYPES_BSL_P): Likewise.
1034         (TYPES_BSL_S): Likewise.
1035         (TYPES_BSL_U): Likewise.
1036         (BUILTIN_VALLDIF): Likewise.
1037         (BUILTIN_VDQQH): Likewise.
1038         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1039         * config/aarch64/aarch64-simd.md
1040         (aarch64_simd_bsl<mode>_internal): Handle more modes.
1041         (aarch64_simd_bsl<mode>): Likewise.
1042         * config/aarch64/arm_neon.h
1043         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1044         * config/aarch64/iterators.md (VALLDIF): New.
1045         (Vbtype): Handle more modes.
1047 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1049         * config/aarch64/aarch64-builtins.c
1050         (aarch64_type_qualifiers): Add qualifier_poly.
1051         (aarch64_build_scalar_type): Also build Poly types.
1052         (aarch64_build_vector_type): Likewise.
1053         (aarch64_build_type): Likewise.
1054         (aarch64_build_signed_type): New.
1055         (aarch64_build_unsigned_type): Likewise.
1056         (aarch64_build_poly_type): Likewise.
1057         (aarch64_init_simd_builtins): Also handle Poly types.
1059 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1061         * config/aarch64/aarch64-builtins.c
1062         (VAR1): Use new naming scheme for aarch64_builtins.
1063         (aarch64_builtin_vectorized_function): Use new
1064         aarch64_builtins names.
1066 2013-11-26  Richard Biener  <rguenther@suse.de>
1068         PR tree-optimization/59287
1069         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1070         Remove no longer necessary special-casing of union accesses.
1072 2013-11-26  Richard Biener  <rguenther@suse.de>
1074         * pretty-print.c (output_buffer::~output_buffer): Really
1075         free the obstacks.
1077 2013-11-25  Jeff Law  <law@redhat.com>
1079         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1080         invalidate loop information.
1082 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1084         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1086 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1088         PR target/53976
1089         PR target/59243
1090         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1091         comments.
1092         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1093         previously visited basic blocks before recursing instead of only one
1094         basic block.
1096 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1098         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1099         * config/aarch64/aarch64-cores.def (cortex-a53):
1100         Use cortexa53 tuning struct.
1102 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
1104         PR bootstrap/59260
1105         * fold-const.c: Include hash-table.h.
1107 2013-11-25  Marek Polacek  <polacek@redhat.com>
1109         PR sanitizer/59258
1110         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1112 2013-11-25  Richard Biener  <rguenther@suse.de>
1114         * tree-dfa.c: Remove unused convert.h include.
1116 2013-11-25  Terry Guo  <terry.guo@arm.com>
1118         * doc/invoke.texi (-mslow-flash-data): Document new option.
1119         * config/arm/arm.opt (mslow-flash-data): New option.
1120         * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
1121         it.
1122         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1123         are disabled.
1124         (arm_disable_literal_pool): Declare it.
1125         * config/arm/arm.c (arm_disable_literal_pool): New variable.
1126         (arm_option_override): Handle new option.
1127         (thumb2_legitimate_address_p): Don't allow symbol references when
1128         literal pools are disabled.
1129         (arm_max_const_double_inline_cost): New function.
1130         * config/arm/arm.md (types.md): Include it before ...
1131         (use_literal_pool): New attribute.
1132         (enabled): Use new attribute.
1133         (split pattern): Replace symbol+offset with MOVW/MOVT.
1135 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1137         PR bootstrap/59279
1138         Revert previous commit.
1140 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1142         * jump.c (reset_insn_reg_label_operand_notes): New function,
1143         split out from ...
1144         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
1145         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1146         split out from ...
1147         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
1148         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1149         expensive CFG cleanup is called for.
1150         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1151         (cfg_layout_finalize): Delete dead jump tables before re-building
1152         the insns chain.
1153         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1154         basic blocks, not before.
1155         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1157         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1158         insns chain of a scheduling extended basic block, they cannot appear
1159         there in cfglayout mode.
1161 2013-11-24  Tobias Burnus  <burnus@net-b.de>
1163         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1165 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1167         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1168         for little endian.
1170 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1172         * graphite-sese-to-poly.c: Don't include extra "expr.h".
1174 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1176         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1178 2013-11-23  David Edelson  <dje.gcc@gmail.com>
1179             Andrew Dixie  <andrewd@gentrack.com>
1181         PR target/33704
1182         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1183         (COLLECT_SHARED_FINI_FUNC): Define.
1185         * collect2.c (aix_shared_initname): Declare.
1186         (aix_shared_fininame): Declare.
1187         (symkind): Add SYM_AIXI and SYM_AIXD.
1188         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1189         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1190         (aixlazy_flag): Parse.
1191         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1192         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1194 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
1196         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1197         (rs6000_xcoff_select_section): Place decls with stricter alignment
1198         into named sections.
1199         (rs6000_xcoff_unique_section): Allow unique sections for
1200         uninitialized data with strict alignment.
1202 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
1204         PR tree-optimization/59154
1205         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1206         rhs1 of a cast and new_op is invariant, fold_convert it.
1207         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1208         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1210 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
1212         PR target/56788
1213         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1214         Declare as MULTI_ARG_1_SF instruction.
1215         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1216         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1217         from *xop_vmfrcz_<mode>.
1218         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1219         to merge scalar result with __A.
1220         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1221         result with __A.
1223 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1225         * gimplify.h (recalculate_side_effects): Delete.
1226         * gimplify.c (recalculate_side_effects): Make static and add comment.
1228 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1230         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1231         for the destination of a define_peephole2.  Likewise register_operand
1232         rather than arith_reg_operand.  Remove constraints from
1233         define_peephole2s.
1235 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1237         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1238         Delete.
1239         (mn10300_store_multiple_operation_p): Declare.
1240         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1241         Rename to...
1242         (mn10300_store_multiple_operation_p): ...this and remove mode
1243         argument.
1244         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1245         Define.
1247 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1249         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1250         (pop_multiple_operation): Delete.
1251         (analyze_push_multiple_operation): Declare.
1252         (analyze_pop_multiple_operation): Declare.
1253         * config/bfin/bfin.c (push_multiple_operation): Rename to...
1254         (analyze_push_multiple_operation): ...this and remove mode argument.
1255         (pop_multiple_operation): Rename to...
1256         (analyze_pop_multiple_operation): ...this and remove mode argument.
1257         * config/bfin/predicates.md (push_multiple_operation): Define.
1258         (pop_multiple_operation): Likewise.
1260 2013-11-23  Alan Modra  <amodra@gmail.com>
1262         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1264 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1266         PR sanitizer/59061
1267         * common.opt (static-liblsan): Add.
1268         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1269         Define.
1270         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
1271         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1272         SANITIZE_RETURN.
1273         * opts.c (common_handle_option): Handle -fsanitize=leak.
1274         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1275         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1276         (LIBUBSAN_EARLY_SPEC): Remove.
1277         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1278         (SANITIZER_SPEC): Add -fsanitize=leak handling.
1279         (sanitize_spec_function): Handle %sanitize(leak).
1280         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1282 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
1283             Jakub Jelinek  <jakub@redhat.com>
1285         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1286         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1287         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
1288         (ipa_modify_formal_parameters): Adjust caller.  Remove
1289         synth_parm_prefix argument.  Use operator enum instead of bit fields.
1290         Add assert for properly handling vector of references.  Handle
1291         creating brand new parameters.
1292         (ipa_modify_call_arguments): Use operator enum instead of bit
1293         fields.
1294         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
1295         used.
1296         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1297         New functions.
1298         (ipa_dump_param_adjustments): Rename reduction to new_decl.
1299         Use operator enum instead of bit fields.
1300         * ipa-prop.h (enum ipa_parm_op): New.
1301         (struct ipa_parm_adjustment): New field op.  Rename reduction
1302         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1303         and copy_param.
1304         (ipa_modify_formal_parameters): Remove last argument.
1305         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1306         ipa_get_adjustment_candidate): New prototypes.
1307         * tree-sra.c (turn_representatives_into_adjustments): Use operator
1308         enum.  Set arg_prefix.
1309         (get_adjustment_for_base): Use operator enum.
1310         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1311         ipa-prop.c.
1312         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1313         (ipa_sra_modify_function_body): Same.  No longer static.
1314         (sra_ipa_reset_debug_stmts): Use operator enum.
1315         (modify_function): Do not pass prefix argument.
1317 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1319         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1320         (ubsan_pass): Ignore clobber stmts.
1322         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1323         * opts.c (common_handle_option): Add -fsanitize=return.
1324         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1325         or it into SANITIZE_UNDEFINED.
1327         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1328         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1329         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1330         Don't instrument accesses to VAR_DECLs which are known to fit
1331         into their bounds and the vars are known to have shadow bytes
1332         indicating allowed access.
1333         (asan_dynamic_init_call): New function.
1334         (asan_add_global): If vnode->dynamically_initialized,
1335         set __has_dynamic_init to 1 instead of 0.
1336         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1337         * asan.h (asan_dynamic_init_call): New prototype.
1338         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1340 2013-11-22  Martin Jambor  <mjambor@suse.cz>
1342         PR rtl-optimization/10474
1343         * ira.c (interesting_dest_for_shprep_1): New function.
1344         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1345         also check parallels.
1347 2013-11-22  Jeff Law  <law@redhat.com>
1349         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1350         NULL for RHS, which we used to invalidate equivalences.
1351         (record_temporary_equivalences_from_phis): New bitmap arguments
1352         and a boolean indicating if we have passed a backedge.  If we
1353         have passed a backedge, then set the appropriate bit in the
1354         bitmaps for the SRC & DEST of PHIs creating equivalences.
1355         (invalidate_equivalences, dummy_simplify): New functions.
1356         (cond_arg_set_in_b): Remove.
1357         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1358         arguments and a boolean indicating if we have passed a backedge.
1359         If we have passed a backedge, then perform invalidations as needed.
1360         (thread_around_empty_blocks): If we have seen a backedge, then
1361         use the dummy simplify routine.
1362         (thread_through_normal_block): Likewise.  Pass bitmaps and
1363         backedge status to children.  Do not pessimize so much when
1364         traversing backedges in the CFG.
1365         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1366         If we have seen a backedge, then use the dummy simplify routine.
1367         Do not pessimize so much when traversing backedges.
1369 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
1371         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1372         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1374 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
1376         * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
1377         PTA_PCLMUL and PTA_RDRND for Silvermont.
1378         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1379         for Silvermont.
1381         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1383 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1385         * hooks.h (hook_uint_mode_0): Add Prototype.
1386         * hooks.c (hook_uint_mode_0): New default function.
1387         * target.def (atomic_align_for_mode): New target hook.
1388         * tree.c (build_atomic_base): Add alignment override parameter.
1389         (build_common_tree_nodes): Use atomic alignment override.
1390         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1391         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1393 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1395         * gimple.h: Remove all includes.
1396         (recalculate_side_effects): Move prototype to gimplify.h.
1397         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1398         * gengtype.c (open_base_files): Add gimple.h include list.
1399         * gimplify.h (recalculate_side_effects): Relocate prototype here.
1400         * gimple.c: Adjust include list.
1401         (recalculate_side_effects): Move to gimplify.c.
1402         * gimplify.c: Adjust include list.
1403         (recalculate_side_effects): Relocate from gimple.c.
1404         * alias.c: Add required include files removed from gimple.h.
1405         * asan.c: Likewise.
1406         * builtins.c: Likewise.
1407         * calls.c: Likewise.
1408         * cfgexpand.c: Likewise.
1409         * cfgloop.c: Likewise.
1410         * cfgloopmanip.c: Likewise.
1411         * cgraphbuild.c: Likewise.
1412         * cgraph.c: Likewise.
1413         * cgraphclones.c: Likewise.
1414         * cgraphunit.c: Likewise.
1415         * cilk-common.c: Likewise.
1416         * data-streamer.c: Likewise.
1417         * data-streamer-in.c: Likewise.
1418         * data-streamer-out.c: Likewise.
1419         * dse.c: Likewise.
1420         * dwarf2out.c: Likewise.
1421         * emit-rtl.c: Likewise.
1422         * except.c: Likewise.
1423         * expr.c: Likewise.
1424         * fold-const.c: Likewise.
1425         * function.c: Likewise.
1426         * gimple-builder.c: Likewise.
1427         * gimple-expr.c: Likewise.
1428         * gimple-fold.c: Likewise.
1429         * gimple-iterator.c: Likewise.
1430         * gimple-low.c: Likewise.
1431         * gimple-pretty-print.c: Likewise.
1432         * gimple-ssa-isolate-paths.c: Likewise.
1433         * gimple-ssa-strength-reduction.c: Likewise.
1434         * gimple-streamer-in.c: Likewise.
1435         * gimple-streamer-out.c: Likewise.
1436         * gimple-walk.c: Likewise.
1437         * gimplify-me.c: Likewise.
1438         * graphite-blocking.c: Likewise.
1439         * graphite.c: Likewise.
1440         * graphite-clast-to-gimple.c: Likewise.
1441         * graphite-dependences.c: Likewise.
1442         * graphite-interchange.c: Likewise.
1443         * graphite-optimize-isl.c: Likewise.
1444         * graphite-poly.c: Likewise.
1445         * graphite-scop-detection.c: Likewise.
1446         * graphite-sese-to-poly.c: Likewise.
1447         * internal-fn.c: Likewise.
1448         * ipa.c: Likewise.
1449         * ipa-cp.c: Likewise.
1450         * ipa-devirt.c: Likewise.
1451         * ipa-inline-analysis.c: Likewise.
1452         * ipa-inline.c: Likewise.
1453         * ipa-profile.c: Likewise.
1454         * ipa-prop.c: Likewise.
1455         * ipa-pure-const.c: Likewise.
1456         * ipa-reference.c: Likewise.
1457         * ipa-split.c: Likewise.
1458         * ipa-utils.c: Likewise.
1459         * langhooks.c: Likewise.
1460         * lto-cgraph.c: Likewise.
1461         * lto-compress.c: Likewise.
1462         * lto-opts.c: Likewise.
1463         * lto-section-in.c: Likewise.
1464         * lto-section-out.c: Likewise.
1465         * lto-streamer.c: Likewise.
1466         * lto-streamer-in.c: Likewise.
1467         * lto-streamer-out.c: Likewise.
1468         * omp-low.c: Likewise.
1469         * opts-global.c: Likewise.
1470         * passes.c: Likewise.
1471         * predict.c: Likewise.
1472         * profile.c: Likewise.
1473         * sese.c: Likewise.
1474         * stmt.c: Likewise.
1475         * stor-layout.c: Likewise.
1476         * symtab.c: Likewise.
1477         * targhooks.c: Likewise.
1478         * toplev.c: Likewise.
1479         * tracer.c: Likewise.
1480         * trans-mem.c: Likewise.
1481         * tree-affine.c: Likewise.
1482         * tree.c: Likewise.
1483         * tree-call-cdce.c: Likewise.
1484         * tree-cfg.c: Likewise.
1485         * tree-cfgcleanup.c: Likewise.
1486         * tree-chrec.c: Likewise.
1487         * tree-complex.c: Likewise.
1488         * tree-data-ref.c: Likewise.
1489         * tree-dfa.c: Likewise.
1490         * tree-eh.c: Likewise.
1491         * tree-emutls.c: Likewise.
1492         * tree-if-conv.c: Likewise.
1493         * tree-inline.c: Likewise.
1494         * tree-into-ssa.c: Likewise.
1495         * tree-loop-distribution.c: Likewise.
1496         * tree-nested.c: Likewise.
1497         * tree-nrv.c: Likewise.
1498         * tree-object-size.c: Likewise.
1499         * tree-outof-ssa.c: Likewise.
1500         * tree-parloops.c: Likewise.
1501         * tree-phinodes.c: Likewise.
1502         * tree-predcom.c: Likewise.
1503         * tree-pretty-print.c: Likewise.
1504         * tree-profile.c: Likewise.
1505         * tree-scalar-evolution.c: Likewise.
1506         * tree-sra.c: Likewise.
1507         * tree-ssa-address.c: Likewise.
1508         * tree-ssa-alias.c: Likewise.
1509         * tree-ssa.c: Likewise.
1510         * tree-ssa-ccp.c: Likewise.
1511         * tree-ssa-coalesce.c: Likewise.
1512         * tree-ssa-copy.c: Likewise.
1513         * tree-ssa-copyrename.c: Likewise.
1514         * tree-ssa-dce.c: Likewise.
1515         * tree-ssa-dom.c: Likewise.
1516         * tree-ssa-dse.c: Likewise.
1517         * tree-ssa-forwprop.c: Likewise.
1518         * tree-ssa-ifcombine.c: Likewise.
1519         * tree-ssa-live.c: Likewise.
1520         * tree-ssa-loop.c: Likewise.
1521         * tree-ssa-loop-ch.c: Likewise.
1522         * tree-ssa-loop-im.c: Likewise.
1523         * tree-ssa-loop-ivcanon.c: Likewise.
1524         * tree-ssa-loop-ivopts.c: Likewise.
1525         * tree-ssa-loop-manip.c: Likewise.
1526         * tree-ssa-loop-niter.c: Likewise.
1527         * tree-ssa-loop-prefetch.c: Likewise.
1528         * tree-ssa-loop-unswitch.c: Likewise.
1529         * tree-ssa-math-opts.c: Likewise.
1530         * tree-ssanames.c: Likewise.
1531         * tree-ssa-operands.c: Likewise.
1532         * tree-ssa-phiopt.c: Likewise.
1533         * tree-ssa-phiprop.c: Likewise.
1534         * tree-ssa-pre.c: Likewise.
1535         * tree-ssa-propagate.c: Likewise.
1536         * tree-ssa-reassoc.c: Likewise.
1537         * tree-ssa-sccvn.c: Likewise.
1538         * tree-ssa-sink.c: Likewise.
1539         * tree-ssa-strlen.c: Likewise.
1540         * tree-ssa-structalias.c: Likewise.
1541         * tree-ssa-tail-merge.c: Likewise.
1542         * tree-ssa-ter.c: Likewise.
1543         * tree-ssa-threadedge.c: Likewise.
1544         * tree-ssa-threadupdate.c: Likewise.
1545         * tree-ssa-uncprop.c: Likewise.
1546         * tree-ssa-uninit.c: Likewise.
1547         * tree-stdarg.c: Likewise.
1548         * tree-streamer.c: Likewise.
1549         * tree-streamer-in.c: Likewise.
1550         * tree-streamer-out.c: Likewise.
1551         * tree-switch-conversion.c: Likewise.
1552         * tree-tailcall.c: Likewise.
1553         * tree-vect-data-refs.c: Likewise.
1554         * tree-vect-generic.c: Likewise.
1555         * tree-vect-loop.c: Likewise.
1556         * tree-vect-loop-manip.c: Likewise.
1557         * tree-vectorizer.c: Likewise.
1558         * tree-vect-patterns.c: Likewise.
1559         * tree-vect-slp.c: Likewise.
1560         * tree-vect-stmts.c: Likewise.
1561         * tree-vrp.c: Likewise.
1562         * tsan.c: Likewise.
1563         * ubsan.c: Likewise.
1564         * value-prof.c: Likewise.
1565         * varpool.c: Likewise.
1566         * var-tracking.c: Likewise.
1567         * vtable-verify.c: Likewise.
1568         * config/darwin.c: Likewise.
1569         * config/aarch64/aarch64-builtins.c: Likewise.
1570         * config/aarch64/aarch64.c: Likewise.
1571         * config/alpha/alpha.c: Likewise.
1572         * config/i386/i386.c: Likewise.
1573         * config/i386/winnt.c: Likewise.
1574         * config/ia64/ia64.c: Likewise.
1575         * config/m32c/m32c.c: Likewise.
1576         * config/mep/mep.c: Likewise.
1577         * config/mips/mips.c: Likewise.
1578         * config/rs6000/rs6000.c: Likewise.
1579         * config/s390/s390.c: Likewise.
1580         * config/sh/sh.c: Likewise.
1581         * config/sparc/sparc.c: Likewise.
1582         * config/spu/spu.c: Likewise.
1583         * config/stormy16/stormy16.c: Likewise.
1584         * config/tilegx/tilegx.c: Likewise.
1585         * config/tilepro/tilepro.c: Likewise.
1586         * config/xtensa/xtensa.c: Likewise.
1588 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
1590         PR target/59216
1591         * arm.md (negdi_extendsidi): Fix invalid split.
1593 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
1595         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1596         (vmov_n_f64): Likewise.
1597         (vmov_n_p8): Likewise.
1598         (vmov_n_p16): Likewise.
1599         (vmov_n_s8): Likewise.
1600         (vmov_n_s16): Likewise.
1601         (vmov_n_s32): Likewise.
1602         (vmov_n_s64): Likewise.
1603         (vmov_n_u8): Likewise.
1604         (vmov_n_u16): Likewise.
1605         (vmov_n_u32): Likewise.
1606         (vmov_n_u64): Likewise.
1607         (vmovq_n_f32): Likewise.
1608         (vmovq_n_f64): Likewise.
1609         (vmovq_n_p8): Likewise.
1610         (vmovq_n_p16): Likewise.
1611         (vmovq_n_s8): Likewise.
1612         (vmovq_n_s16): Likewise.
1613         (vmovq_n_s32): Likewise.
1614         (vmovq_n_s64): Likewise.
1615         (vmovq_n_u8): Likewise.
1616         (vmovq_n_u16): Likewise.
1617         (vmovq_n_u32): Likewise.
1618         (vmovq_n_u64): Likewise.
1620 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1622         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1623         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1624         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1625         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1626         and also change to float UNSPEC.
1627         (reduc_maxmin_uns>_<mode>): Remove V2DI.
1628         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1629         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1630         result access for big-endian.
1631         (__LANE0): New macro used to fix up lane access of 'across-lanes'
1632         intrinsics for big-endian.
1633         * config/aarch64/iterators.md (VDQV): Add V2DI.
1634         (VDQV_S): New.
1635         (vp): New mode attribute.
1637 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1639         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1640         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1641         big-endian.
1643 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1645         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1646         for big-endian element order.
1647         (aarch64_simd_vec_setv2di): Likewise.
1648         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1649         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1650         (vec_extract): Expand using aarch64_get_lane.
1651         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1653 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1655         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1656         and stores to be ABI compliant.
1658 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1660         * input.h (input_line): Remove.
1661         (input_filename): Likewise.
1662         (in_system_header): Likewise.
1663         * tree.h (EXPR_LOC_OR_HERE): Remove.
1664         * config/bfin/bfin.c (output_file_start): Remove use of
1665         input_filename macro.
1666         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1667         * gimplify.c (internal_get_tmp_var): Likewise.
1668         EXPR_LOC_OR_HERE macro.
1669         (shortcut_cond_expr): Likewise.
1670         * tree-diagnostic.c (diagnostic_report_current_function): Remove
1671         use of input_filename macro.
1672         * tree.c (get_file_function_name): Likewise.
1674 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
1676         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1678 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1680         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1681         (same sized) elements even if the type of the CONSTRUCTOR has
1682         vector mode and target is a REG.
1684 2013-11-22  Richard Biener  <rguenther@suse.de>
1686         Revert
1687         2013-11-21  Richard Biener  <rguenther@suse.de>
1689         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1690         nb_iterations_upper_bound by one.
1692 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1694         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
1695         for Silvermont.
1697         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
1698         core-avx-i, core-avx2 and slm.
1700 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
1702         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1704 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
1706         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1707         (stzx_24_<mode>): Likewise mra_operand.
1709 2013-11-22  Jeff Law  <law@redhat.com>
1711         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1712         (thread_block_1): Do not cancel jump threads which go from
1713         inside a loop, through the header, then back inside the loop.
1714         (bb_ends_with_multiway_branch): New function.
1715         (thread_through_all_blocks): Handle threading cases which start
1716         in a loop through the loop header to a point in the loop.
1718         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1719         jump thread path properly.
1721 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
1723         * vec.h (auto_vec): New class.
1724         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1725         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1726         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1727         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1728         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1729         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1730         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1731         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1732         appropriate instead of vec for local variables.
1734 2013-11-21  Teresa Johnson  <tejohnson@google.com>
1736         PR target/59233
1737         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1738         not understood by old_insns_match_p.
1740 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
1742         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1743         little endian change.
1744         (vec_pack_sfix_trunc_v2df): Likewise.
1745         (vec_pack_ufix_trunc_v2df): Likewise.
1746         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1747         double checking of endianness.
1749 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1751         * tree-vect-generic.c (optimize_vector_constructor): New function.
1752         (expand_vector_operations_1): Call it.
1754 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
1756         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1757         ix86_zero_extend_to_Pmode where appropriate.
1758         (ix86_expand_builtin): Ditto.
1760 2013-11-21  Cary Coutant  <ccoutant@google.com>
1762         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1763         (add_linkage_name): Don't add linkage name for -g1.
1764         (decls_for_scope): Process subblocks for -g1.
1765         (dwarf2out_source_line): Output line tables for -g1.
1766         (dwarf2out_finish): Likewise.
1767         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1768         unused scopes for -g1.
1769         * opts.c (common_handle_option): Handle -g same as -g2.
1770         * doc/invoke.texi: Update description for -g1.
1772 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
1774         * doc/extend.texi: Document htm builtins.
1776 2013-11-21  Jeff Law  <law@redhat.com>
1778         PR tree-optimization/59221
1779         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1780         temporary equivalences when threading through joiner blocks.
1782 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
1784         PR rtl-optimization/55950
1785         * real.c (real_sqrt): Remove function.
1786         * real.h (real_sqrt): Remove prototype.
1787         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
1788         SQRT using real_sqrt.
1790 2013-11-21  Richard Biener  <rguenther@suse.de>
1792         PR tree-optimization/59058
1793         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
1794         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
1795         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
1796         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
1797         (NITERS_KNOWN_P): Fold into ...
1798         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
1799         (LOOP_VINFO_PEELING_FOR_NITER): Add.
1800         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1801         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1802         (vect_do_peeling_for_alignment): Re-use precomputed niter
1803         instead of re-emitting it.
1804         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1805         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1806         * tree-vect-loop.c (vect_get_loop_niters): Use
1807         number_of_latch_executions.
1808         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
1809         (vect_analyze_loop_form): Simplify.
1810         (vect_analyze_loop_operations): Move epilogue peeling code ...
1811         (vect_analyze_loop_2): ... here and adjust it to compute
1812         LOOP_VINFO_PEELING_FOR_NITER.
1813         (vect_estimate_min_profitable_iters): Use
1814         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1815         (vect_build_loop_niters): Emit on the preheader.
1816         (vect_generate_tmps_on_preheader): Likewise.
1817         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
1818         of recomputing it.  Adjust.
1820 2013-11-21  Richard Biener  <rguenther@suse.de>
1822         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1823         LOC_LINE): Remove wrappers and fix all users.
1824         (struct _loop_vec_info): Remove loop_line_number member.
1825         (LOOP_VINFO_LOC): Remove.
1826         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
1827         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
1828         and LOC_LINE.
1830 2013-11-21  Richard Biener  <rguenther@suse.de>
1832         * tree-ssa-forwprop.c (simplify_vce): New function.
1833         (ssa_forward_propagate_and_combine): Call it.
1835 2013-11-21  Richard Biener  <rguenther@suse.de>
1837         * tree-vect-loop-manip.c (vect_build_loop_niters,
1838         vect_generate_tmps_on_preheader): Move ...
1839         * tree-vect-loop.c (vect_build_loop_niters,
1840         vect_generate_tmps_on_preheader): ... here and simplify.
1841         (vect_transform_loop): Call them here and pass down results
1842         to consumers.
1843         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
1844         Get niter variables from caller.
1845         (vect_do_peeling_for_alignment): Likewise.
1846         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
1847         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1848         Adjust prototypes.
1850 2013-11-21  Richard Biener  <rguenther@suse.de>
1852         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1853         nb_iterations_upper_bound by one.
1855 2013-11-21  Richard Biener  <rguenther@suse.de>
1857         PR tree-optimization/59058
1858         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
1859         (build_size_arg_loc): Apply niter adjustment here.
1860         (generate_memset_builtin): Adjust.
1861         (generate_memcpy_builtin): Likewise.
1862         (classify_partition): Do not use number_of_exit_cond_executions
1863         but record whether niter needs to be adjusted.
1865 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1867         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
1868         could throw.
1870 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
1872         PR target/53976
1873         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
1874         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
1875         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
1876         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
1877         sh_optimize_sett_clrt pass.o to extra_objs.
1879 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1881         * cfg.c (dump_edge_info): Remove redundant comment.
1882         * cfgcleanup.c (outgoing_edges_match): Reword reference to
1883         EXIT_BLOCK_PTR in comment.
1884         (try_optimize_cfg): Likewise.
1885         * cfgrtl.c (last_bb_in_partition): Likewise.
1886         * cgraph.c (cgraph_node_cannot_return): Likewise.
1887         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1888         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
1889         * ipa-split.c (consider_split): Likewise.
1890         * profile.c (find_spanning_tree): Likewise.
1891         * sched-int.h (common_sched_info_def.add_block): Likewise.
1892         * dominance.c (calc_dfs_tree_nonrec): Reword references in
1893         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
1894         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
1895         in comments to now removed ENTRY_BLOCK_PTR macro.
1896         (tree_forwarder_block_p): Reword reference in comment to
1897         EXIT_BLOCK_PTR.
1898         * tree-inline.c (copy_cfg_body): Reword references in comments to
1899         now removed ENTRY_BLOCK_PTR macro.
1900         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1901         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
1902         a comma to the comment to clarify the meaning.
1904 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
1906         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
1907         Move to gimplify.c.
1908         (free_gimplify_stack): Add prototype.
1909         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
1910         (struct gimplify_ctx): Relocate here.
1911         (gimplify_ctxp): Make static.
1912         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
1913         list of struct gimplify_ctx.
1914         (push_gimplify_context): Add default parameters and allocate a struct
1915         from the pool.
1916         (pop_gimplify_context): Free a struct back to the pool.
1917         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1918         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
1919         use a local 'struct gimplify_ctx'.
1920         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
1921         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
1922         Likewise.
1923         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1924         lower_omp_ordered, lower_omp_critical, lower_omp_for,
1925         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
1926         lower_omp_teams, execute_lower_omp): Likewise.
1927         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
1928         * tree-inline.c (optimize_inline_calls): Likewise.
1930 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1932         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
1933         (vsx_extract_<mode>): Likewise.
1934         (*vsx_extract_<mode>_one_le): New LE variant on
1935         *vsx_extract_<mode>_zero.
1936         (vsx_extract_v4sf): Adjust for little endian.
1938 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
1940         PR rtl-optimization/59133
1941         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
1942         new pseudos.
1943         (lra_create_new_reg_with_unique_value): Pass new argument value.
1944         (lra_emit_add, lra_emit_move): Ditto.
1945         * lra-constraints.c (in_class_p): Add check for move for a new insn.
1946         (change_class): Rename to lra_change_class.  Move to lra-int.h.
1947         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
1948         change_class.
1949         (process_addr_reg, process_addr): Ditto.
1950         (curr_insn_transform): Ditto.  Add check on old pseudo for
1951         optional reload.
1952         * lra-int.h (lra_get_regno_hard_regno): Move below.
1953         (lra_change_class): Renamed change_class from lra.c.
1955 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1957         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
1958         the children of a NULL pointer.
1960 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
1962         * lra.c (lra): Set lra_in_progress before check_rtl call.
1963         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1964         adding clobber regs when LRA is running.
1966 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1968         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
1969         restriction for ISA_MIPS32R2.
1970         (ISA_HAS_LXC1_SXC1): New macro.
1971         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
1972         (ISA_HAS_NMADD4_NMSUB4): Likewise.
1973         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
1974         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
1975         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
1976         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
1977         (*<ANYF:storex>_<P:mode>): Likewise.
1979 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1981         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
1982         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
1983         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
1984         * config/mips/mips.md (recip_condition): Remove mode attribute.
1985         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
1986         <recip_condition>.
1987         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
1989 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1991         PR target/59207
1992         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
1993         Make sure neg2_ovf is set before being used.
1995 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
1997         * plugin.def: Add comment about register_callback and
1998         invoke_plugin_callbacks_full.
2000         * plugin.c (register_callback, invoke_plugin_callbacks_full):
2001         Handle PLUGIN_INCLUDE_FILE event.
2003 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2005         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2006         allow subregs of TDmode in FPRs of smaller size in little-endian.
2007         (rs6000_split_multireg_move): When splitting an access to TDmode
2008         in FPRs, do not use simplify_gen_subreg.
2010 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
2012         PR middle-end/21718
2013         * real.c: Remove comment about decimal string conversion and
2014         rounding errors.
2015         (real_from_string): Use MPFR to convert nonzero decimal constant
2016         to REAL_VALUE_TYPE.
2018 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2020         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2021         endianness of the D registers for the legacy encodings.
2023 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
2025         PR rtl-optimization/54300
2026         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2027         outputs in a single-set are killed from the value chains.
2029 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2031         * cgraph.h (varpool_node): Add need_bounds_init field.
2032         * lto-cgraph.c (lto_output_varpool_node): Output
2033         need_bounds_init value.
2034         (input_varpool_node): Read need_bounds_init value.
2035         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2037 2013-11-20  Jan Hubicka  <jh@suse.cz>
2039         * opts.c (finish_options): Imply -ffat-lto-objects with
2040         -fno-use-linker-plugin.
2041         * common.opt (fuse-linker-plugin): Add var.
2043 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2045         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2046         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2047         (gen_type_die_with_usage): Skip pointer bounds.
2048         (dwarf2out_global_decl): Likewise.
2050 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2052         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2053         from all insns.
2055 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
2057         PR target/57756
2058         * config/i386/i386.c (ix86_option_override_internal): Add missed
2059         argument prefix for 'ix86_fpmath'.
2060         * config/i386/ssemath.h: Add missed definition of
2061         TARGET_FPMATH_DEFAULT_P macros.
2063 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2064             Mike Stump  <mikestump@comcast.net>
2065             Richard Sandiford  <rdsandiford@googlemail.com>
2067         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2068         instead of TREE_INT_CST_LOW, in cases where there is a protecting
2069         tree_fits_shwi_p or tree_fits_uhwi_p.
2070         * builtins.c (fold_builtin_powi): Likewise.
2071         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2072         Likewise.
2073         * dbxout.c (dbxout_symbol): Likewise.
2074         * expr.c (expand_expr_real_1): Likewise.
2075         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2076         (fold_binary_loc): Likewise.
2077         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2078         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2079         * omp-low.c (lower_omp_for_lastprivate): Likewise.
2080         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2081         * stor-layout.c (compute_record_mode): Likewise.
2082         * tree-cfg.c (verify_expr): Likewise.
2083         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2084         * tree-pretty-print.c (dump_array_domain): Likewise.
2085         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2086         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2087         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2088         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2089         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2090         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2091         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2092         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2093         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2094         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2095         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2096         (create_variable_info_for_1): Likewise.
2097         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2098         (vect_verify_datarefs_alignment): Likewise.
2099         (vect_analyze_data_ref_accesses): Likewise.
2100         (vect_prune_runtime_alias_test_list): Likewise.
2101         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2103 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2105         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2106         overflow.  Use tree_to_shwi.
2108 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2110         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2111         HOST_WIDE_INTs when folding (x >> c) << c.
2113 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2114             Dominik Vogt  <vogt@linux.vnet.ibm.com>
2116         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2117         int comparisons with an out of range condition code.
2118         (s390_optimize_nonescaping_tx): Skip empty BBs.
2119         Generate the new tbegin RTX when removing the FPR clobbers (with
2120         two SETs).
2121         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
2122         result before doing the retry calculations.
2123         (s390_init_builtins): Make tbegin "returns_twice" and tabort
2124         "noreturn".
2125         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2126         the TDB setting part of an tbegin.
2127         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2128         ("tx_assist"): Set unused argument to an immediate zero instead of
2129         loading zero into a GPR and pass it as argument.
2130         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2131         Remove inline and related attributes.
2132         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2133         (__TM_is_illegal, __TM_is_footprint_exceeded)
2134         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2136 2013-11-20  Richard Biener  <rguenther@suse.de>
2138         PR lto/59035
2139         * lto-opts.c (lto_write_options): Write defaults only if
2140         they were not explicitely specified.  Also write
2141         -ffp-contract default.
2142         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2143         conservatively.
2144         (run_gcc): Pass through -ffp-contract.
2146 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2148         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2150 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2152         * gcc/config/aarch64/aarch64-builtins.c
2153         (aarch64_simd_itype): Remove.
2154         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2155         (VAR1): Use qualifiers.
2156         (aarch64_build_scalar_type): New.
2157         (aarch64_build_vector_type): Likewise.
2158         (aarch64_build_type): Likewise.
2159         (aarch64_init_simd_builtins): Refactor, remove special cases,
2160         consolidate main loop.
2161         (aarch64_simd_expand_args): Likewise.
2163 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
2165         PR c/53001
2166         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2168 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
2170         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2172 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2174         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2175         to "vec<>" instances.
2176         (build_pretty_printer): Register the vec<>* prettyprinter.
2178 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2180         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2181         (GdbSubprinter.handles_type): New.
2182         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2183         (GdbSubprinterRegex): New subclass of GdbSubprinter.
2184         (GdbPrettyPrinters.add_printer): Remove in favor of...
2185         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2186         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2187         (GdbPrettyPrinters.__call__): Update search for subprinter
2188         to use handles_type method.
2189         (build_pretty_printer): Update registration of subprinters to
2190         use the new API above, supporting multiple spelling of each type,
2191         and allowing for future regex-based subprinters.
2193 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2195         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2196         V16QI vector splat case for little endian.
2198 2013-11-19  Jeff Law  <law@redhat.com>
2200         * tree-ssa-threadedge.c (thread_across_edge): After threading
2201         through a joiner, allow threading a normal block requiring duplication.
2203         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2204         jump threading requests that would muck up the loop structures.
2206         * tree-ssa-threadupdate.c: Fix trailing whitespace.
2207         * tree-ssa-threadupdate.h: Likewise.
2209 2013-11-19  Mike Stump  <mikestump@comcast.net>
2211         * gdbinit.in: Add pmz to print out mpz values.
2213 2013-11-20  Jan Hubicka  <jh@suse.cz>
2215         * common.opt (ffat-lto-objects): Disable by default.
2216         * doc/invoke.texi (fat-lto-objects): Update documentation.
2217         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2219 2013-11-19  Martin Jambor  <mjambor@suse.cz>
2221         PR rtl-optimization/59099
2222         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2223         here.
2224         (ira): Move init_reg_equiv and call to
2225         split_live_ranges_for_shrink_wrap up, remove analyses around call
2226         to find_moveable_pseudos.
2228 2013-11-20  Alan Modra  <amodra@gmail.com>
2230         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2231         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2232         to strict alignment on older processors when little-endian.
2233         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2234         for ELFv2.
2236 2013-11-19  Teresa Johnson  <tejohnson@google.com>
2238         * common/config/i386/i386-common.c: Enable
2239         -freorder-blocks-and-partition at -O2 and up for x86.
2240         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2241         * opts.c (finish_options): Only warn if
2242         -freorder-blocks-and-partition was set on command line.
2244 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
2246         * final.c (final_scan_insn): Emit a label for the split
2247         cold function part.  Label name is formed by suffixing
2248         the original function name with "cold".
2250 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2252         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2253         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2254         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2255         (EXIT_BLOCK_PTR_FOR_FN): ...this.
2256         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2257         cfun be explicit.
2258         (EXIT_BLOCK_PTR): Likewise.
2259         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2260         (FOR_ALL_BB_FN): Update for renaming of
2261         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2263         * cfg.c (init_flow): Likewise.
2264         (check_bb_profile): Likewise.
2265         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2266         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2267         * cfghooks.c (account_profile_record): Likewise.
2268         * cfgloop.c (init_loops_structure): Likewise.
2269         * cgraphbuild.c (record_eh_tables): Likewise.
2270         (compute_call_stmt_bb_frequency): Likewise.
2271         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2272         * lto-streamer-in.c (input_cfg): Likewise.
2273         * predict.c (maybe_hot_frequency_p): Likewise.
2274         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2275         * tree-inline.c (initialize_cfun): Likewise.
2276         (copy_cfg_body): Likewise.
2277         (copy_body): Likewise.
2278         (tree_function_versioning): Likewise.
2280         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2281         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2282         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2283         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2284         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2285         (connect_traces): Likewise.
2286         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2287         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2288         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2289         macro.
2290         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2291         EXIT_BLOCK_PTR.
2292         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2293         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2294         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2295         (rotate_loop): Likewise.
2296         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2297         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2298         EXIT_BLOCK_PTR.
2299         (alloc_aux_for_edges): Likewise.
2300         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2301         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2302         EXIT_BLOCK_PTR.
2303         (compact_blocks): Likewise.
2304         (clear_edges): Likewise.
2305         * cfganal.c (single_pred_before_succ_order): Remove usage of
2306         ENTRY_BLOCK_PTR macro.
2307         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2308         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2309         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2310         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2311         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2312         EXIT_BLOCK_PTR.
2313         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2314         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2315         EXIT_BLOCK_PTR.
2316         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2317         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2318         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2319         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2320         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2321         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2322         EXIT_BLOCK_PTR.
2323         (print_edge_list): Likewise.
2324         (create_edge_list): Likewise.
2325         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2326         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2327         EXIT_BLOCK_PTR.
2328         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2329         macro.
2330         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2331         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2332         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2333         (try_optimize_cfg): Likewise.
2334         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2335         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2336         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2337         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2338         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2339         (try_forward_edges): Likewise.
2340         (try_simplify_condjump): Likewise.
2341         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2342         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2343         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2344         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2345         EXIT_BLOCK_PTR.
2346         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2347         (expand_gimple_tailcall): Likewise.
2348         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2349         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2350         (tidy_fallthru_edges): Likewise.
2351         (verify_flow_info): Likewise.
2352         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2353         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2354         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2355         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2356         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2357         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2358         (get_loop_body_in_dom_order): Likewise.
2359         (get_loop_body): Likewise.
2360         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2361         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2362         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2363         macro.
2364         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2365         (fix_bb_placement): Likewise.
2366         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2367         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2368         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2369         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2370         EXIT_BLOCK_PTR.
2371         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2372         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2373         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2374         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2375         macro.
2376         (fixup_fallthru_exit_predecessor): Remove uses of macros:
2377         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2378         (fixup_reorder_chain): Likewise.
2379         (relink_block_chain): Likewise.
2380         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2381         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2382         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2383         (force_one_exit_fallthru): Likewise.
2384         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2385         EXIT_BLOCK_PTR.
2386         (rtl_verify_edges): Likewise.
2387         (commit_edge_insertions): Likewise.
2388         (commit_one_edge_insertion): Likewise.
2389         (rtl_split_edge): Likewise.
2390         (force_nonfallthru_and_redirect): Likewise.
2391         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2392         (skip_insns_after_block): Likewise.
2393         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2394         EXIT_BLOCK_PTR.
2395         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2396         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2397         EXIT_BLOCK_PTR.
2398         (contains_no_active_insn_p): Likewise.
2399         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2400         (entry_of_function): Likewise.
2401         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2402         (fixup_new_cold_bb): Likewise.
2403         (patch_jump_insn): Likewise.
2404         (try_redirect_by_replacing_jump): Likewise.
2405         (block_label): Likewise.
2406         (could_fall_through): Likewise.
2407         (can_fallthru): Likewise.
2408         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2409         ENTRY_BLOCK_PTR macro.
2410         (rebuild_cgraph_edges): Likewise.
2411         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2412         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2413         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2414         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2415         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2416         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2417         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2418         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2419         macro.
2420         (reg_nonzero_bits_for_combine): Likewise.
2421         (set_nonzero_bits_and_sign_copies): Likewise.
2422         (combine_instructions): Likewise.
2423         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2424         EXIT_BLOCK_PTR.
2425         (bypass_conditional_jumps): Likewise.
2426         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2427         (find_implicit_sets): Likewise.
2428         (cprop_jump): Likewise.
2429         * cse.c (cse_cc_succs): Likewise.
2430         (cse_find_path): Likewise.
2431         * df-problems.c (df_lr_confluence_0): Likewise.
2432         * df-scan.c (df_entry_block_defs_collect): Remove usage of
2433         ENTRY_BLOCK_PTR macro.
2434         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2435         * dominance.c (iterate_fix_dominators): Remove usage of
2436         ENTRY_BLOCK_PTR macro.
2437         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2438         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2439         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2440         EXIT_BLOCK_PTR.
2441         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2442         macro.
2443         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2444         EXIT_BLOCK_PTR.
2445         * domwalk.c (cmp_bb_postorder): Likewise.
2446         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2447         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2448         macro.
2449         (sjlj_emit_function_enter): Likewise.
2450         * final.c (compute_alignments): Likewise.
2451         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2452         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2453         (reposition_prologue_and_epilogue_notes): Remove usage of
2454         EXIT_BLOCK_PTR macro.
2455         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2456         EXIT_BLOCK_PTR.
2457         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2458         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2459         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2460         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2461         (compute_code_hoist_vbeinout): Likewise.
2462         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2463         (pre_expr_reaches_here_p_work): Likewise.
2464         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2465         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2466         EXIT_BLOCK_PTR.
2467         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2468         ENTRY_BLOCK_PTR macro.
2469         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2470         macro.
2471         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2472         ENTRY_BLOCK_PTR macro.
2473         * graphite-scop-detection.c (build_scops): Likewise.
2474         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2475         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2476         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2477         macro.
2478         (unlink_bb_notes): Likewise.
2479         (create_check_block_twin): Likewise.
2480         (init_before_recovery): Likewise.
2481         (sched_extend_bb): Likewise.
2482         (priority): Likewise.
2483         * hw-doloop.c (reorder_loops): Likewise.
2484         (discover_loop): Likewise.
2485         * ifcvt.c (dead_or_predicable): Remove uses of macros:
2486         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2487         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2488         (block_has_only_trap): Likewise.
2489         (cond_exec_find_if_block): Likewise.
2490         (merge_if_block): Likewise.
2491         * ipa-inline-analysis.c (param_change_prob): Remove usage of
2492         ENTRY_BLOCK_PTR macro.
2493         (record_modified): Likewise.
2494         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2495         EXIT_BLOCK_PTR macro.
2496         (local_pure_const): Likewise.
2497         * ipa-split.c (split_function): Remove uses of macros:
2498         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2499         (find_split_points): Likewise.
2500         (consider_split): Likewise.
2501         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2502         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2503         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2504         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2505         * ira-emit.c (entered_from_non_parent_p): Remove usage of
2506         ENTRY_BLOCK_PTR macro.
2507         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2508         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2509         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2510         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2511         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2512         macro.
2513         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2514         EXIT_BLOCK_PTR.
2515         (compute_farthest): Likewise.
2516         (compute_available): Likewise.
2517         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2518         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2519         EXIT_BLOCK_PTR.
2520         (compute_earliest): Likewise.
2521         (compute_antinout_edge): Likewise.
2522         * loop-iv.c (simplify_using_initial_values): Remove usage of
2523         ENTRY_BLOCK_PTR macro.
2524         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2525         macro.
2526         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2527         macro.
2528         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2529         macro.
2530         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2531         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2532         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2533         macro.
2534         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2535         macro.
2536         * lto-streamer-out.c (output_cfg): Likewise.
2537         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2538         EXIT_BLOCK_PTR.
2539         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2540         * mode-switching.c (optimize_mode_switching): Likewise.
2541         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2542         * modulo-sched.c (rest_of_handle_sms): Likewise.
2543         (canon_loop): Likewise.
2544         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2545         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2546         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2547         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2548         macro.
2549         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2550         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2551         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2552         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2553         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2554         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2555         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2556         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2557         (gimple_predict_edge): Likewise.
2558         (probably_never_executed): Likewise.
2559         * profile.c (find_spanning_tree): Remove uses of macros:
2560         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2561         (branch_prob): Likewise.
2562         (compute_branch_probabilities): Likewise.
2563         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2564         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2565         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2566         (set_bb_counts): Likewise.
2567         (correct_negative_edge_counts): Likewise.
2568         (get_exec_counts): Likewise.
2569         (instrument_values): Likewise.
2570         (instrument_edges): Likewise.
2571         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2572         EXIT_BLOCK_PTR.
2573         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2574         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2575         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2576         (reg_to_stack): Likewise.
2577         * regs.h (REG_N_SETS): Likewise.
2578         * reload.c (find_dummy_reload): Likewise.
2579         (combine_reloads): Likewise.
2580         (push_reload): Likewise.
2581         * reload1.c (has_nonexceptional_receiver): Remove usage of
2582         EXIT_BLOCK_PTR macro.
2583         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2584         macro.
2585         (find_basic_block): Likewise.
2586         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2587         (schedule_ebbs): Likewise.
2588         * sched-int.h (sel_sched_p): Likewise.
2589         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2590         macro.
2591         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2592         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2593         EXIT_BLOCK_PTR.
2594         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2595         (extend_rgns): Likewise.
2596         (find_single_block_region): Likewise.
2597         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2598         ENTRY_BLOCK_PTR macro.
2599         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2600         (sel_create_recovery_block): Likewise.
2601         (bb_ends_ebb_p): Likewise.
2602         (sel_bb_end): Likewise.
2603         (sel_bb_head): Likewise.
2604         (free_lv_sets): Likewise.
2605         (init_lv_sets): Likewise.
2606         (tidy_control_flow): Likewise.
2607         (maybe_tidy_empty_bb): Likewise.
2608         * sel-sched-ir.h (_succ_iter_cond): Likewise.
2609         (_succ_iter_start): Likewise.
2610         (sel_bb_empty_or_nop_p): Likewise.
2611         (get_loop_exit_edges_unique_dests): Likewise.
2612         (inner_loop_header_p): Likewise.
2613         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2614         (find_block_for_bookkeeping): Likewise.
2615         * store-motion.c (remove_reachable_equiv_notes): Likewise.
2616         (insert_store): Likewise.
2617         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2618         ENTRY_BLOCK_PTR macro.
2619         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2620         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2621         (gate_tm_init): Likewise.
2622         (tm_region_init): Likewise.
2623         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2624         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2625         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2626         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2627         EXIT_BLOCK_PTR.
2628         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2629         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2630         EXIT_BLOCK_PTR.
2631         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2632         macro.
2633         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2634         EXIT_BLOCK_PTR.
2635         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2636         macro.
2637         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2638         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2639         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2640         (build_gimple_cfg): Likewise.
2641         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2642         (gimple_can_merge_blocks_p): Likewise.
2643         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2644         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2645         * tree-complex.c (update_parameter_components): Remove usage of
2646         ENTRY_BLOCK_PTR macro.
2647         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2648         EXIT_BLOCK_PTR macro.
2649         * tree-inline.c (tree_function_versioning): Remove uses of macros:
2650         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2651         (delete_unreachable_blocks_update_callgraph): Likewise.
2652         (initialize_cfun): Likewise.
2653         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2654         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2655         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2656         * tree-into-ssa.c (update_ssa): Likewise.
2657         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2658         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2659         (rewrite_into_ssa): Likewise.
2660         (rewrite_debug_stmt_uses): Likewise.
2661         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2662         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2663         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2664         ENTRY_BLOCK_PTR macro.
2665         * tree-scalar-evolution.h (block_before_loop): Likewise.
2666         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2667         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2668         EXIT_BLOCK_PTR.
2669         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2670         macro.
2671         (propagate_dereference_distances): Remove uses of macros:
2672         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2673         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2674         macro.
2675         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2676         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2677         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2678         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2679         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2680         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2681         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2682         (mark_control_dependent_edges_necessary): Remove uses of macros:
2683         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2684         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2685         ENTRY_BLOCK_PTR macro.
2686         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2687         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2688         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2689         (calculate_live_on_exit): Likewise.
2690         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2691         (loe_visit_block): Likewise.
2692         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
2693         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2694         (live_on_entry): Likewise.
2695         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
2696         EXIT_BLOCK_PTR macro.
2697         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
2698         ENTRY_BLOCK_PTR macro.
2699         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2700         (bound_difference): Likewise.
2701         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2702         of EXIT_BLOCK_PTR macro.
2703         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2704         of ENTRY_BLOCK_PTR macro.
2705         * tree-ssa-math-opts.c (register_division_in): Likewise.
2706         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2707         * tree-ssa-pre.c (compute_avail): Likewise.
2708         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2709         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2710         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2711         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2712         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2713         EXIT_BLOCK_PTR.
2714         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2715         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2716         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2717         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2718         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2719         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2720         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2721         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2722         (find_pdom): Likewise.
2723         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2724         * tree-stdarg.c (reachable_at_most_once): Likewise.
2725         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2726         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2727         (eliminate_tail_call): Likewise.
2728         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2729         macro.
2730         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2731         * var-tracking.c (vt_initialize): Remove uses of macros:
2732         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2733         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2734         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2735         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2736         EXIT_BLOCK_PTR.
2737         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2738         macro.
2739         * config/bfin/bfin.c (hwloop_optimize): Likewise.
2740         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2741         of EXIT_BLOCK_PTR macro.
2742         * config/arm/arm.c (require_pic_register): Remove usage of
2743         ENTRY_BLOCK_PTR macro.
2744         (arm_r3_live_at_start_p): Likewise.
2745         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2746         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2747         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2748         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2749         ENTRY_BLOCK_PTR macro.
2750         * config/i386/i386.c (ix86_count_insn): Likewise.
2751         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2752         (ix86_pad_short_function): Likewise.
2753         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2754         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2755         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2756         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2757         (ix86_expand_epilogue): Likewise.
2758         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2759         (ia64_expand_prologue): Likewise.
2761 2013-11-19  Catherine Moore  <clm@codesourcery.com>
2763         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2764         * config/mips/mips.opt (mfix-rm7000): New option.
2765         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2766         * config/mips/mips.c (mips_reorg_process_insns): Disable
2767         noreorder for TARGET_FIX_RM7000.
2769 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
2771         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2773 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2775         * config/arm/arm.c (arm_new_rtx_costs):
2776         Handle narrow mode add-shifts properly.
2777         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2778         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2779         Declare extern.
2781 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
2783         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
2785 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2787         * config/rs6000/vector.md ("mov<mode>"): Do not call
2788         rs6000_emit_le_vsx_move to move into or out of GPRs.
2789         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
2790         source and destination are not GPR hard regs.
2792 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2794         * basic-block.h (n_edges_for_function): Rename macro to...
2795         (n_edges_for_fn): ...this.
2796         (n_edges): Eliminate macro as work towards making uses of
2797         cfun be explicit.
2799         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
2800         to "n_edges_for_fn".
2802         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
2803         (clear_edges): Likewise.
2804         (free_edge): Likewise.
2805         * cfghooks.c (dump_flow_info): Likewise.
2806         * cprop.c (is_too_expensive): Likewise.
2807         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2808         * gcse.c (is_too_expensive): Likewise.
2809         (prune_insertions_deletions): Likewise.
2810         * mcf.c (create_fixup_graph): Likewise.
2811         * sched-rgn.c (haifa_find_rgns): Likewise.
2812         * tree-cfg.c (gimple_dump_cfg): Likewise.
2813         * var-tracking.c (variable_tracking_main_1): Likewise.
2815 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2817         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
2818         length lines.
2820 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2822         * config/aarch64/aarch64.md
2823         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
2825 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2827         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
2829 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
2831         * varasm.c (align_variable): Give error instead of warning for
2832         unsupported alignment.
2833         (assemble_noswitch_variable): Likewise.
2835 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2837         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
2838         cb_file_change.
2840 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
2842         * loop-doloop.c (doloop_optimize_loops): Remove unused
2843         loop iterator argument from FOR_EACH_LOOP.
2845 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2847         Convert gimple types from a union to C++ inheritance.
2848         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
2849         * coretypes.h (union gimple_statement_d): Remove declaration.
2850         (gimple): Convert from being a "union gimple_statement_d *"
2851         to a "struct gimple_statement_base *".
2852         (const_gimple): Likewise (with "const").
2853         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
2854         (ggc_alloc_cleared_gimple_statement_stat): ...this.
2855         * gimple-pretty-print.c (debug): Change parameter from a
2856         "gimple_statement_d &" to a "gimple_statement_base &".
2857         (debug): Change parameter from a "gimple_statement_d *" to
2858         a "gimple_statement_base *".
2859         * gimple-pretty-print.h (debug): Update declarations as above.
2860         * gimple.c (gimple_alloc_stat): Update for renaming of
2861         ggc_alloc_cleared_gimple_statement_d_stat to
2862         ggc_alloc_cleared_gimple_statement_stat.
2863         * gimple.h: Include "is-a.h" for use by is_a_helper
2864         specializations in followup autogenerated patch.
2865         (struct gimple statement_base): Make this type usable as a base
2866         class by adding "desc", "tag" and "variable_size" to GTY, thus
2867         using opting-in to gengtype's support for simple inheritance.
2868         (gimple_statement_with_ops_base): Convert to a subclass of
2869         gimple_statement_base, dropping initial "gsbase" field.  Note that
2870         this type is abstract, with no GSS_ value, and thus no GTY tag value.
2871         (gimple_statement_with_ops): Convert to a subclass of
2872         gimple_statement_with_ops_base, dropping initial "opbase" field.
2873         Add tag value to GTY marking.  Update marking of op field to
2874         reflect how num_ops field is accessed via inheritance.
2875         (gimple_statement_with_memory_ops_base): Convert to a subclass of
2876         gimple_statement_with_ops_base, dropping initial "opbase" field.
2877         Add tag value to GTY marking.
2878         (gimple_statement_with_memory_ops): Convert to a subclass of
2879         public gimple_statement_with_memory_ops_base, dropping initial
2880         "membase" field.  Add tag value to GTY marking.  Update marking
2881         of op field to reflect how num_ops field is accessed via inheritance.
2882         (gimple_statement_call): Analogous changes that also update the
2883         marking of the "u" union.
2884         (gimple_statement_omp): Convert to a subclass of
2885         gimple_statement_base, dropping initial "gsbase" field, adding
2886         tag value to GTY marking.
2887         (gimple_statement_bind): Likewise.
2888         (gimple_statement_catch): Likewise.
2889         (gimple_statement_eh_filter): Likewise.
2890         (gimple_statement_eh_else): Likewise.
2891         (gimple_statement_eh_mnt): Likewise.
2892         (gimple_statement_phi): Likewise.
2893         (gimple_statement_eh_ctrl): Likewise.
2894         (gimple_statement_try): Likewise.
2895         (gimple_statement_wce): Likewise.
2896         (gimple_statement_asm): Convert to a subclass of
2897         gimple_statement_with_memory_ops_base, dropping initial
2898         "membase" field, adding tag value to GTY marking, and updating
2899         marking of op field.
2900         (gimple_statement_omp_critical): Convert to a subclass of
2901         gimple_statement_omp, dropping initial "omp" field, adding tag
2902         value to GTY marking.
2903         (gimple_statement_omp_for): Likewise.
2904         (gimple_statement_omp_parallel): Likewise.
2905         (gimple_statement_omp_task): Convert to a subclass of
2906         gimple_statement_omp_parallel, dropping initial "par" field,
2907         adding tag value to GTY marking.
2908         (gimple_statement_omp_sections): Convert to a subclass of
2909         gimple_statement_omp, dropping initial "omp" field, adding
2910         tag value to GTY marking.
2911         (gimple_statement_omp_continue): Convert to a subclass of
2912         gimple_statement_base, dropping initial "gsbase" field, adding
2913         tag value to GTY marking.
2914         (gimple_statement_omp_single): Convert to a subclass of
2915         gimple_statement_omp, dropping initial "omp" field, adding
2916         tag value to GTY marking.
2917         (gimple_statement_omp_atomic_load): Convert to a subclass of
2918         gimple_statement_base, dropping initial "gsbase" field, adding
2919         tag value to GTY marking.
2920         (gimple_statement_omp_atomic_store): Convert to a subclass of
2921         gimple_statement_base, dropping initial "gsbase" field, adding
2922         tag value to GTY marking.
2923         (gimple_statement_transaction): Convert to a subclass of
2924         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
2925         field, adding tag value to GTY marking.
2926         (union gimple_statement_d): Remove.
2927         * system.h (CONST_CAST_GIMPLE): Update to use
2928         "struct gimple_statement_base *" rather than
2929         "union gimple_statement_d *".
2930         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
2931         gimple_statement_d to gimple_statement_base.
2933         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
2934         (gimple_set_use_ops): Port from union to usage of as_a.
2935         (gimple_set_vuse): Likewise.
2936         (gimple_set_vdef): Likewise.
2937         (gimple_call_internal_fn): Port from union to a static_cast,
2938         given that the type has already been asserted.
2939         (gimple_omp_body_ptr): Port from unchecked union usage to
2940         a static_cast.
2941         (gimple_omp_set_body): Likewise.
2943         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
2944         gimple types to a true class hierarchy.
2945         (update_call_edge_frequencies): Likewise.
2946         (gsi_insert_seq_nodes_before): Likewise.
2947         (gsi_insert_seq_nodes_after): Likewise.
2948         (gsi_split_seq_after): Likewise.
2949         (gsi_set_stmt): Likewise.
2950         (gsi_split_seq_before): Likewise.
2951         (gsi_remove): Likewise.
2952         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
2953         (gsi_next): Likewise.
2954         (gsi_prev): Likewise.
2955         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
2956         * gimple-ssa.h (gimple_vuse_op): Likewise.
2957         (gimple_vdef_op): Likewise.
2958         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
2959         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
2960         * gimple.c (gimple_set_code): Likewise.
2961         (gimple_alloc_stat): Likewise.
2962         (gimple_set_subcode): Likewise.
2963         (gimple_build_call_internal_1): Likewise.
2964         (gimple_check_failed): Likewise.
2965         (gimple_call_flags): Likewise.
2966         (gimple_set_bb): Likewise.
2967         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
2968         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
2969         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
2970         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
2971         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
2972         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
2973         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
2974         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
2975         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
2976         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
2977         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
2978         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
2979         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
2980         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
2981         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
2982         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
2983         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
2984         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
2985         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
2986         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
2987         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
2988         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
2989         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
2990         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
2991         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
2992         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
2993         Likewise.
2994         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
2995         Likewise.
2996         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
2997         Likewise.
2998         (is_a_helper <const gimple_statement_omp_atomic_store>
2999         (const_gimple)): Likewise.
3000         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3001         Likewise.
3002         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3003         Likewise.
3004         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3005         Likewise.
3006         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3007         Likewise.
3008         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3009         Likewise.
3010         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3011         Likewise.
3012         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3013         Likewise.
3014         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3015         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3016         Likewise.
3017         (gimple_seq_last): Update for conversion of gimple types to a true
3018         class hierarchy.
3019         (gimple_seq_set_last): Likewise.
3020         (gimple_code): Likewise.
3021         (gimple_bb): Likewise.
3022         (gimple_block): Likewise.
3023         (gimple_set_block): Likewise.
3024         (gimple_location): Likewise.
3025         (gimple_location_ptr): Likewise.
3026         (gimple_set_location): Likewise.
3027         (gimple_no_warning_p): Likewise.
3028         (gimple_set_no_warning): Likewise.
3029         (gimple_set_visited): Likewise.
3030         (gimple_visited_p): Likewise.
3031         (gimple_set_plf): Likewise.
3032         (gimple_plf): Likewise.
3033         (gimple_set_uid): Likewise.
3034         (gimple_uid): Likewise.
3035         (gimple_init_singleton): Likewise.
3036         (gimple_modified_p): Likewise.
3037         (gimple_set_modified): Likewise.
3038         (gimple_expr_code): Likewise.
3039         (gimple_has_volatile_ops): Likewise.
3040         (gimple_set_has_volatile_ops): Likewise.
3041         (gimple_omp_subcode): Likewise.
3042         (gimple_omp_set_subcode): Likewise.
3043         (gimple_omp_return_set_nowait): Likewise.
3044         (gimple_omp_section_set_last): Likewise.
3045         (gimple_omp_parallel_set_combined_p): Likewise.
3046         (gimple_omp_atomic_set_need_value): Likewise.
3047         (gimple_omp_atomic_set_seq_cst): Likewise.
3048         (gimple_num_ops): Likewise.
3049         (gimple_set_num_ops): Likewise.
3050         (gimple_assign_nontemporal_move_p): Likewise.
3051         (gimple_assign_set_nontemporal_move): Likewise.
3052         (gimple_assign_rhs_code): Likewise.
3053         (gimple_assign_set_rhs_code): Likewise.
3054         (gimple_call_internal_p): Likewise.
3055         (gimple_call_with_bounds_p): Likewise.
3056         (gimple_call_set_with_bounds): Likewise.
3057         (gimple_call_set_tail): Likewise.
3058         (gimple_call_tail_p): Likewise.
3059         (gimple_call_set_return_slot_opt): Likewise.
3060         (gimple_call_return_slot_opt_p): Likewise.
3061         (gimple_call_set_from_thunk): Likewise.
3062         (gimple_call_from_thunk_p): Likewise.
3063         (gimple_call_set_va_arg_pack): Likewise.
3064         (gimple_call_va_arg_pack_p): Likewise.
3065         (gimple_call_set_nothrow): Likewise.
3066         (gimple_call_set_alloca_for_var): Likewise.
3067         (gimple_call_alloca_for_var_p): Likewise.
3068         (gimple_call_copy_flags): Likewise.
3069         (gimple_cond_code): Likewise.
3070         (gimple_cond_set_code): Likewise.
3071         (gimple_cond_make_false): Likewise.
3072         (gimple_cond_make_true): Likewise.
3073         (gimple_asm_volatile_p): Likewise.
3074         (gimple_asm_set_volatile): Likewise.
3075         (gimple_asm_set_input): Likewise.
3076         (gimple_asm_input_p): Likewise.
3077         (gimple_try_kind): Likewise.
3078         (gimple_try_set_kind): Likewise.
3079         (gimple_try_catch_is_cleanup): Likewise.
3080         (gimple_try_set_catch_is_cleanup): Likewise.
3081         (gimple_wce_cleanup_eh_only): Likewise.
3082         (gimple_wce_set_cleanup_eh_only): Likewise.
3083         (gimple_debug_bind_p): Likewise.
3084         (gimple_debug_source_bind_p): Likewise.
3085         (gimple_omp_for_set_kind): Likewise.
3086         (gimple_omp_for_set_combined_p): Likewise.
3087         (gimple_omp_for_set_combined_into_p): Likewise.
3088         (gimple_omp_target_set_kind): Likewise.
3089         (gimple_transaction_subcode): Likewise.
3090         (gimple_transaction_set_subcode): Likewise.
3091         (gimple_predict_predictor): Likewise.
3092         (gimple_predict_set_predictor): Likewise.
3093         (gimple_predict_outcome): Likewise.
3094         (gimple_predict_set_outcome): Likewise.
3095         (gimple_transaction_set_label): Likewise.
3096         (gimple_transaction_set_body): Likewise.
3097         (gimple_transaction_label_ptr): Likewise.
3098         (gimple_transaction_label): Likewise.
3099         (gimple_transaction_body_ptr): Likewise.
3100         (gimple_omp_continue_set_control_use): Likewise.
3101         (gimple_omp_continue_control_use_ptr): Likewise.
3102         (gimple_omp_continue_control_use): Likewise.
3103         (gimple_omp_continue_set_control_def): Likewise.
3104         (gimple_omp_continue_control_def_ptr): Likewise.
3105         (gimple_omp_continue_control_def): Likewise.
3106         (gimple_omp_atomic_load_rhs_ptr): Likewise.
3107         (gimple_omp_atomic_load_rhs): Likewise.
3108         (gimple_omp_atomic_load_set_rhs): Likewise.
3109         (gimple_omp_atomic_load_lhs_ptr): Likewise.
3110         (gimple_omp_atomic_load_lhs): Likewise.
3111         (gimple_omp_atomic_load_set_lhs): Likewise.
3112         (gimple_omp_atomic_store_val_ptr): Likewise.
3113         (gimple_omp_atomic_store_val): Likewise.
3114         (gimple_omp_atomic_store_set_val): Likewise.
3115         (gimple_omp_for_cond): Likewise.
3116         (gimple_omp_for_set_cond): Likewise.
3117         (gimple_omp_sections_set_control): Likewise.
3118         (gimple_omp_sections_control_ptr): Likewise.
3119         (gimple_omp_sections_control): Likewise.
3120         (gimple_omp_sections_set_clauses): Likewise.
3121         (gimple_omp_sections_clauses_ptr): Likewise.
3122         (gimple_omp_sections_clauses): Likewise.
3123         (gimple_omp_teams_set_clauses): Likewise.
3124         (gimple_omp_teams_clauses_ptr): Likewise.
3125         (gimple_omp_teams_clauses): Likewise.
3126         (gimple_omp_target_set_data_arg): Likewise.
3127         (gimple_omp_target_data_arg_ptr): Likewise.
3128         (gimple_omp_target_data_arg): Likewise.
3129         (gimple_omp_target_set_child_fn): Likewise.
3130         (gimple_omp_target_child_fn_ptr): Likewise.
3131         (gimple_omp_target_child_fn): Likewise.
3132         (gimple_omp_target_set_clauses): Likewise.
3133         (gimple_omp_target_clauses_ptr): Likewise.
3134         (gimple_omp_target_clauses): Likewise.
3135         (gimple_omp_single_set_clauses): Likewise.
3136         (gimple_omp_single_clauses_ptr): Likewise.
3137         (gimple_omp_single_clauses): Likewise.
3138         (gimple_omp_task_set_arg_align): Likewise.
3139         (gimple_omp_task_arg_align_ptr): Likewise.
3140         (gimple_omp_task_arg_align): Likewise.
3141         (gimple_omp_task_set_arg_size): Likewise.
3142         (gimple_omp_task_arg_size_ptr): Likewise.
3143         (gimple_omp_task_arg_size): Likewise.
3144         (gimple_omp_task_set_copy_fn): Likewise.
3145         (gimple_omp_task_copy_fn_ptr): Likewise.
3146         (gimple_omp_task_copy_fn): Likewise.
3147         (gimple_omp_task_set_data_arg): Likewise.
3148         (gimple_omp_task_data_arg_ptr): Likewise.
3149         (gimple_omp_task_data_arg): Likewise.
3150         (gimple_omp_task_set_child_fn): Likewise.
3151         (gimple_omp_task_child_fn_ptr): Likewise.
3152         (gimple_omp_task_child_fn): Likewise.
3153         (gimple_omp_task_set_clauses): Likewise.
3154         (gimple_omp_task_clauses_ptr): Likewise.
3155         (gimple_omp_task_clauses): Likewise.
3156         (gimple_omp_parallel_set_data_arg): Likewise.
3157         (gimple_omp_parallel_data_arg_ptr): Likewise.
3158         (gimple_omp_parallel_data_arg): Likewise.
3159         (gimple_omp_parallel_set_child_fn): Likewise.
3160         (gimple_omp_parallel_child_fn_ptr): Likewise.
3161         (gimple_omp_parallel_child_fn): Likewise.
3162         (gimple_omp_parallel_set_clauses): Likewise.
3163         (gimple_omp_parallel_clauses_ptr): Likewise.
3164         (gimple_omp_parallel_clauses): Likewise.
3165         (gimple_omp_for_set_pre_body): Likewise.
3166         (gimple_omp_for_pre_body_ptr): Likewise.
3167         (gimple_omp_for_set_incr): Likewise.
3168         (gimple_omp_for_incr_ptr): Likewise.
3169         (gimple_omp_for_incr): Likewise.
3170         (gimple_omp_for_set_final): Likewise.
3171         (gimple_omp_for_final_ptr): Likewise.
3172         (gimple_omp_for_final): Likewise.
3173         (gimple_omp_for_set_initial): Likewise.
3174         (gimple_omp_for_initial_ptr): Likewise.
3175         (gimple_omp_for_initial): Likewise.
3176         (gimple_omp_for_set_index): Likewise.
3177         (gimple_omp_for_index_ptr): Likewise.
3178         (gimple_omp_for_index): Likewise.
3179         (gimple_omp_for_collapse): Likewise.
3180         (gimple_omp_for_set_clauses): Likewise.
3181         (gimple_omp_for_clauses_ptr): Likewise.
3182         (gimple_omp_for_clauses): Likewise.
3183         (gimple_omp_critical_set_name): Likewise.
3184         (gimple_omp_critical_name_ptr): Likewise.
3185         (gimple_omp_critical_name): Likewise.
3186         (gimple_eh_dispatch_set_region): Likewise.
3187         (gimple_eh_dispatch_region): Likewise.
3188         (gimple_resx_set_region): Likewise.
3189         (gimple_resx_region): Likewise.
3190         (gimple_phi_set_arg): Likewise.
3191         (gimple_phi_arg): Likewise.
3192         (gimple_phi_set_result): Likewise.
3193         (gimple_phi_result_ptr): Likewise.
3194         (gimple_phi_result): Likewise.
3195         (gimple_phi_num_args): Likewise.
3196         (gimple_phi_capacity): Likewise.
3197         (gimple_wce_set_cleanup): Likewise.
3198         (gimple_wce_cleanup_ptr): Likewise.
3199         (gimple_try_set_cleanup): Likewise.
3200         (gimple_try_set_eval): Likewise.
3201         (gimple_try_cleanup_ptr): Likewise.
3202         (gimple_try_eval_ptr): Likewise.
3203         (gimple_eh_else_set_e_body): Likewise.
3204         (gimple_eh_else_set_n_body): Likewise.
3205         (gimple_eh_else_e_body_ptr): Likewise.
3206         (gimple_eh_else_n_body_ptr): Likewise.
3207         (gimple_eh_must_not_throw_set_fndecl): Likewise.
3208         (gimple_eh_must_not_throw_fndecl): Likewise.
3209         (gimple_eh_filter_set_failure): Likewise.
3210         (gimple_eh_filter_set_types): Likewise.
3211         (gimple_eh_filter_failure_ptr): Likewise.
3212         (gimple_eh_filter_types_ptr): Likewise.
3213         (gimple_eh_filter_types): Likewise.
3214         (gimple_catch_set_handler): Likewise.
3215         (gimple_catch_set_types): Likewise.
3216         (gimple_catch_handler_ptr): Likewise.
3217         (gimple_catch_types_ptr): Likewise.
3218         (gimple_catch_types): Likewise.
3219         (gimple_asm_string): Likewise.
3220         (gimple_asm_set_label_op): Likewise.
3221         (gimple_asm_label_op): Likewise.
3222         (gimple_asm_set_clobber_op): Likewise.
3223         (gimple_asm_clobber_op): Likewise.
3224         (gimple_asm_set_output_op): Likewise.
3225         (gimple_asm_output_op_ptr): Likewise.
3226         (gimple_asm_output_op): Likewise.
3227         (gimple_asm_set_input_op): Likewise.
3228         (gimple_asm_input_op_ptr): Likewise.
3229         (gimple_asm_input_op): Likewise.
3230         (gimple_asm_nlabels): Likewise.
3231         (gimple_asm_nclobbers): Likewise.
3232         (gimple_asm_noutputs): Likewise.
3233         (gimple_asm_ninputs): Likewise.
3234         (gimple_bind_set_block): Likewise.
3235         (gimple_bind_block): Likewise.
3236         (gimple_bind_add_seq): Likewise.
3237         (gimple_bind_add_stmt): Likewise.
3238         (gimple_bind_set_body): Likewise.
3239         (gimple_bind_body_ptr): Likewise.
3240         (gimple_bind_append_vars): Likewise.
3241         (gimple_bind_set_vars): Likewise.
3242         (gimple_bind_vars): Likewise.
3243         (gimple_call_clobber_set): Likewise.
3244         (gimple_call_use_set): Likewise.
3245         (gimple_call_set_internal_fn): Likewise.
3246         (gimple_call_set_fntype): Likewise.
3247         (gimple_call_fntype): Likewise.
3248         (gimple_omp_return_lhs_ptr): Likewise.
3249         (gimple_omp_return_lhs): Likewise.
3250         (gimple_omp_return_set_lhs): Likewise.
3251         (gimple_omp_taskreg_set_data_arg): Likewise.
3252         (gimple_omp_taskreg_data_arg_ptr): Likewise.
3253         (gimple_omp_taskreg_data_arg): Likewise.
3254         (gimple_omp_taskreg_set_child_fn): Likewise.
3255         (gimple_omp_taskreg_child_fn_ptr): Likewise.
3256         (gimple_omp_taskreg_child_fn): Likewise.
3257         (gimple_omp_taskreg_set_clauses): Likewise.
3258         (gimple_omp_taskreg_clauses_ptr): Likewise.
3259         (gimple_omp_taskreg_clauses): Likewise.
3260         (gimple_vuse): Likewise.
3261         (gimple_vdef): Likewise.
3262         (gimple_vuse_ptr): Likewise.
3263         (gimple_vdef_ptr): Likewise.
3264         * tree-inline.c (copy_debug_stmt): Likewise.
3265         * tree-phinodes.c (make_phi_node): Likewise.
3267         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3268         (is_a_helper <gimple_statement_with_ops>::test): New.
3269         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3270         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3272         * gimple-streamer-in.c (input_gimple_stmt): Port from union
3273         access to use of as_a.
3274         * gimple.c (gimple_build_asm_1): Likewise.
3275         (gimple_build_try): Likewise.  Also, return a specific subclass
3276         rather than just gimple.
3277         (gimple_build_resx): Port from union access to use of as_a.
3278         (gimple_build_eh_dispatch): Likewise.
3279         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
3280         now that gengtype no longer provides a typed allocator function.
3281         (gimple_copy): Likewise.
3282         * gimple.h (gimple_build_try): Return a specific subclass rather
3283         than just gimple.
3284         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3285         with subclass access by making use of new return type of
3286         gimple_build_try.
3287         * tree-phinodes.c: (allocate_phi_node): Return a
3288         "gimple_statement_phi *" rather than just a gimple.
3289         (resize_phi_node): Likewise.
3290         (make_phi_node): Replace union access with subclass access by
3291         making use of new return type of allocate_phi_node.
3292         (reserve_phi_args_for_new_edge): Replace union access with as_a.
3293         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3294         than just a gimple.
3295         (remove_phi_args): Update for change to remove_phi_arg_num.
3297         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3298         code field to reflect inheritance, rather than embedding of
3299         the base gimple type.
3301 2013-11-19  Richard Biener  <rguenther@suse.de>
3303         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3304         and destructor and make fel_next a member function.
3305         (fel_next): Transform into ...
3306         (loop_iterator::next): ... this.
3307         (fel_init): Transform into ...
3308         (loop_iterator::loop_iterator): ... this.
3309         (loop_iterator::~loop_iterator): New.
3310         (FOR_EACH_LOOP): Remove loop-iterator argument.
3311         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3312         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3313         graphite-clast-to-gimple.c, graphite-scop-detection.c,
3314         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3315         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3316         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3317         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3318         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3319         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3320         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3321         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3322         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3323         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
3324         FOR_EACH_LOOP_BREAK with break.
3326 2013-11-19  Richard Biener  <rguenther@suse.de>
3328         PR tree-optimization/59164
3329         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3330         Uncomment assert.
3331         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3332         whether we can create an epilogue loop to reflect thecases where
3333         we create one.
3335 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
3337         * graphite-sese-to-poly.c: Include expr.h.
3339 2013-11-19  Richard Biener  <rguenther@suse.de>
3341         PR middle-end/58956
3342         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3343         loads into stmts that may clobber it.
3345 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
3347         * cgraphunit.c (symtab_terminator): New variable.
3348         (queued_nodes): Renamed from first.  Use symtab_terminator as
3349         initializer.
3350         (analyze_functions): Adjust accordingly.
3351         (cgraph_process_new_functions): Return void.
3352         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3354 2013-11-19  Marek Polacek  <polacek@redhat.com>
3356         * opts.c (common_handle_option): Add -fsanitize=null option.
3357         Turn off -fdelete-null-pointer-checks option when doing the
3358         NULL pointer checking.
3359         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3360         * tree-pass.h (make_pass_ubsan): Declare.
3361         (make_pass_sanopt): Declare.
3362         * timevar.def (TV_TREE_UBSAN): New timevar.
3363         * passes.def: Add pass_sanopt and pass_ubsan.
3364         * ubsan.h (ubsan_null_ckind): New enum.
3365         (ubsan_mismatch_data): New struct.
3366         (ubsan_expand_null_ifn): Declare.
3367         (ubsan_create_data): Adjust declaration.
3368         (ubsan_type_descriptor): Likewise.
3369         * asan.c: Include "ubsan.h".
3370         (pass_data_sanopt): New pass.
3371         (execute_sanopt): New function.
3372         (gate_sanopt): Likewise.
3373         (make_pass_sanopt): Likewise.
3374         (class pass_sanopt): New class.
3375         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3376         gimple-iterator.h and cfgloop.h.
3377         (PROB_VERY_UNLIKELY): Define.
3378         (tree_type_map_hash): New function.
3379         (ubsan_type_descriptor): Add new parameter.
3380         Improve type name generation.
3381         (ubsan_create_data): Add new parameter.  Add pointer data into
3382         ubsan structure.
3383         (ubsan_expand_null_ifn): New function.
3384         (instrument_member_call): Likewise.
3385         (instrument_mem_ref): Likewise.
3386         (instrument_null): Likewise.
3387         (ubsan_pass): Likewise.
3388         (gate_ubsan): Likewise.
3389         (make_pass_ubsan): Likewise.
3390         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3391         (class pass_ubsan): New class.
3392         (pass_data_ubsan): New pass.
3393         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3394         * internal-fn.c (expand_UBSAN_NULL): New function.
3395         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3396         even when !flag_toplevel_reorder.
3397         * internal-fn.def (UBSAN_NULL): New.
3399 2013-11-19  Jan Hubicka  <jh@suse.cz>
3401         * cgraph.c (cgraph_create_indirect_edge): Use
3402         get_polymorphic_call_info.
3403         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3404         maybe_in_construction and maybe_derived_type.
3405         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3406         (ipa_dummy_polymorphic_call_context): New global var.
3407         (possible_polymorphic_call_targets): Add context paramter.
3408         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3409         (possible_polymorphic_call_target_p): Likewise.
3410         (get_polymorphic_call_info): New function.
3411         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3412         (add_type_duplicate): Remove forgotten debug output.
3413         (method_class_type): Add sanity check.
3414         (maybe_record_node): Add FINALP parameter.
3415         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3416         by info by get_binfo_at_offset.
3417         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3418         parameters; pass them to record-binfo.
3419         (polymorphic_call_target_d): Add context and FINAL.
3420         (polymorphic_call_target_hasher::hash): Hash context.
3421         (polymorphic_call_target_hasher::equal): Compare context.
3422         (free_polymorphic_call_targets_hash):
3423         (get_class_context): New function.
3424         (contains_type_p): New function.
3425         (get_polymorphic_call_info): New function.
3426         (walk_bases): New function.
3427         (possible_polymorphic_call_targets): Add context parameter; honnor it.
3428         (dump_possible_polymorphic_call_targets): Dump context.
3429         (possible_polymorphic_call_target_p): Add context.
3430         (update_type_inheritance_graph): Update comment.s
3431         (ipa_set_jf_known_type): Assert that compoentn type is known.
3432         (ipa_note_param_call): Do not tamper with offsets.
3433         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3434         outer type.
3435         (update_indirect_edges_after_inlining): Likewise.
3436         (ipa_write_indirect_edge_info): Stream new fields.
3437         (ipa_read_indirect_edge_info): Stream in new fields.
3439 2013-11-19  Jan Hubicka  <jh@suse.cz>
3441         * tree-pretty-print.c (dump_generic_node): Print class type of
3442         OBJ_TYPE_REF.
3444 2013-11-19  Joey Ye  <joey.ye@arm.com>
3446         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3447         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3448         for new option.
3449         * config/arm/arm.c (arm_option_override): By default disable
3450         -marm-pic-data-is-text-relative.
3451         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3452         (arm_assemble_integer): Likewise.
3453         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3454         New macro to initialize -marm-pic-data-is-text-relative.
3456 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
3458         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3459         (address_cost_data): New field.
3460         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3461         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
3463 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
3465         * config/aarch64/aarch64.md: Remove v8type from all insns.
3467 2013-11-19  Richard Biener  <rguenther@suse.de>
3469         PR tree-optimization/57517
3470         * tree-predcom.c (combinable_refs_p): Verify the combination
3471         is always executed when the refs are.
3473 2013-11-19  Jeff Law  <law@redhat.com>
3475         * tree-ssa-threadupdate.c: Include ssa-iterators.h
3476         (copy_phi_arg_into_existing_phi): New function.
3477         (any_remaining_duplicated_blocks): Likewise.
3478         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3479         blocks on a jump threading path.
3481         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
3482         thread through a joiner which has the latch edge.
3484 2013-11-19  Jan Hubicka  <jh@suse.cz>
3486         * md.texi (setmem): Document new parameter.
3487         * optabs.c (maybe_gen_insn): Support 9 operands.
3488         * builtins.c (determine_block_size): Add probable_max_size;
3489         support anti-ranges.
3490         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3491         probable_max_size.
3492         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3493         emit_block_move, clear_storage_hints, set_storage_via_setmem):
3494         Likewise.
3495         * expr.h (emit_block_move_hints, clear_storage_hints,
3496         set_storage_via_setmem): Update prototype.
3497         * i386.md (setmem, movmem patterns): Add 9th operand.
3498         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3499         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3500         argument; pass it to decide_alg.
3502 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3504         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3505         (n_basic_blocks_for_fn): ...this.
3507         (n_basic_blocks): Eliminate macro as work towards making uses of
3508         cfun be explicit.
3510         * cfgloop.c (init_loops_structure): Update for renaming of
3511         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3512         * graph.c (draw_cfg_nodes_no_loops): Likewise.
3513         * ipa-utils.c (ipa_merge_profiles): Likewise.
3514         * lto-streamer-in.c (make_new_block): Likewise.
3515         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3516         (dump_function_to_file): Likewise.
3518         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3519         macro with "n_basic_blocks_for_fn (cfun)".
3520         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3521         (duplicate_computed_gotos): Likewise.
3522         (reorder_basic_blocks): Likewise.
3523         * bt-load.c (augment_live_range): Likewise.
3524         * cfg.c (expunge_block): Likewise.
3525         (compact_blocks): Likewise.
3526         * cfganal.c (single_pred_before_succ_order): Likewise.
3527         (compute_idf): Likewise.
3528         (flow_dfs_compute_reverse_init): Likewise.
3529         (pre_and_rev_post_order_compute): Likewise.
3530         (pre_and_rev_post_order_compute_fn): Likewise.
3531         (inverted_post_order_compute): Likewise.
3532         (post_order_compute): Likewise.
3533         (print_edge_list): Likewise.
3534         (find_unreachable_blocks): Likewise.
3535         (mark_dfs_back_edges): Likewise.
3536         * cfgcleanup.c (try_optimize_cfg): Likewise.
3537         (try_forward_edges): Likewise.
3538         * cfghooks.c (dump_flow_info): Likewise.
3539         * cfgloop.c (verify_loop_structure): Likewise.
3540         (get_loop_body): Likewise.
3541         (flow_loops_find): Likewise.
3542         * cfgloopmanip.c (add_loop): Likewise.
3543         (remove_path): Likewise.
3544         (find_path): Likewise.
3545         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3546         (rtl_verify_bb_layout): Likewise.
3547         (entry_of_function): Likewise.
3548         (rtl_create_basic_block): Likewise.
3549         * coverage.c (coverage_compute_cfg_checksum): Likewise.
3550         * cprop.c (one_cprop_pass): Likewise.
3551         (is_too_expensive): Likewise.
3552         * df-core.c (df_compute_cfg_image): Likewise.
3553         (df_compact_blocks): Likewise.
3554         (df_worklist_dataflow_doublequeue): Likewise.
3555         * dominance.c (calculate_dominance_info): Likewise.
3556         (calc_dfs_tree): Likewise.
3557         (calc_dfs_tree_nonrec): Likewise.
3558         (init_dom_info): Likewise.
3559         * domwalk.c (cmp_bb_postorder): Likewise.
3560         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3561         (generate_setjmp_warnings): Likewise.
3562         * fwprop.c (build_single_def_use_links): Likewise.
3563         * gcse.c (is_too_expensive): Likewise.
3564         (one_code_hoisting_pass): Likewise.
3565         (one_pre_gcse_pass): Likewise.
3566         * graphite.c (graphite_initialize): Likewise.
3567         * haifa-sched.c (haifa_sched_init): Likewise.
3568         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3569         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3570         * ira-build.c (ira_build): Likewise.
3571         * lcm.c (compute_nearerout): Likewise.
3572         (compute_available): Likewise.
3573         (compute_laterin): Likewise.
3574         (compute_antinout_edge): Likewise.
3575         * lra-lives.c (lra_create_live_ranges): Likewise.
3576         * lra.c (has_nonexceptional_receiver): Likewise.
3577         * mcf.c (create_fixup_graph): Likewise.
3578         * profile.c (branch_prob): Likewise.
3579         * reg-stack.c (convert_regs_2): Likewise.
3580         * regrename.c (regrename_analyze): Likewise.
3581         * reload1.c (has_nonexceptional_receiver): Likewise.
3582         * reorg.c (dbr_schedule): Likewise.
3583         * sched-deps.c (sched_deps_init): Likewise.
3584         * sched-ebb.c (schedule_ebbs): Likewise.
3585         * sched-rgn.c (extend_regions): Likewise.
3586         (schedule_insns): Likewise.
3587         (sched_rgn_init): Likewise.
3588         (extend_rgns): Likewise.
3589         (haifa_find_rgns): Likewise.
3590         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3591         (sel_recompute_toporder): Likewise.
3592         * sel-sched.c (run_selective_scheduling): Likewise.
3593         * store-motion.c (one_store_motion_pass): Likewise.
3594         (remove_reachable_equiv_notes): Likewise.
3595         * tracer.c (tracer): Likewise.
3596         (tail_duplicate): Likewise.
3597         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3598         (dump_cfg_stats): Likewise.
3599         (gimple_dump_cfg): Likewise.
3600         (create_bb): Likewise.
3601         (build_gimple_cfg): Likewise.
3602         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3603         * tree-inline.c (optimize_inline_calls): Likewise.
3604         (fold_marked_statements): Likewise.
3605         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3606         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3607         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3608         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3609         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3610         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3611         * tree-ssa-pre.c (do_pre): Likewise.
3612         (init_pre): Likewise.
3613         (compute_avail): Likewise.
3614         * tree-ssa-reassoc.c (init_reassoc): Likewise.
3615         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3616         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3617         (init_worklist): Likewise.
3618         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3619         * var-tracking.c (variable_tracking_main_1): Likewise.
3620         (vt_find_locations): Likewise.
3621         (vt_stack_adjustments): Likewise.
3622         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3623         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3625 2013-11-18  Jan Hubicka  <jh@suse.cz>
3627         * profile.c (compute_branch_probabilities): Do not sanity check
3628         run_max.
3630 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3632         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3633         GET_MODE_PRECISION.
3634         * fold-const.c (fold_single_bit_test_into_sign_test)
3635         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3637 2013-11-18  Teresa Johnson  <tejohnson@google.com>
3639         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3640         cfglayout after bb reordering.
3641         * passes.def: Move compgotos before bb reordering since it goes into
3642         cfglayout.
3644 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
3646         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3647         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3648         static.
3649         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3650         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3651         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3652         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3653         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3654         Remove all_lto_gen_passes.
3655         * passes.c (pass_manager::dump_passes): Remove its use.
3656         (pass_manager::register_pass): Likewise.
3657         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3658         (pass_manager::pass_manager): Don't initialize or use it.
3659         (write_lto): New static function.
3660         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3661         instead of using all_lto_gen_passes.
3662         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3663         pass_ipa_lto_finish_out): Delete.
3664         * tree-pass.h (make_pass_ipa_lto_gimple_out,
3665         make_pass_ipa_lto_finish_out): Don't declare.
3667 2013-11-18  Jeff Law  <law@redhat.com>
3669         * tree-ssa-threadupdate.c (redirection_data): Record two
3670         duplicated blocks instead of just one.
3671         (local_info): Explain why we don't create a template for the
3672         second duplicated block in a thread path.
3673         (create_block_for_threading): Accept argument indicating array
3674         index into redirection_data to store its result.
3675         (lookup_redirection_data): Initialize both duplicate blocks.
3676         (ssa_create_duplicates): If a jump threading path needs multiple
3677         blocks duplicated, then duplicate them.
3678         (ssa_fix_duplicate_block_edges): Corresponding changes.
3679         (ssa_fixup_template_block, thread_single_edge):  Likewise.
3681 2013-11-18  Marek Polacek  <polacek@redhat.com>
3683         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3685 2013-11-18  Andrew Pinski <apinski@cavium.com>
3686             Steve Ellcey  <sellcey@mips.com>
3688         PR target/56552
3689         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
3690         type restriction from equality_operator on conditonal move.
3691         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
3692         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
3694 2013-11-18  Jeff Law  <law@redhat.com>
3696         * tree-ssa-threadupdate.c: Fix file block comment.
3697         Fix minor indention issue.
3699 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
3701         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3702         ix86_address_subreg_operand.  Move subreg checks to
3703         ix86_validate_address_register.  Move address override check to
3704         ix86_legitimate_address_p.
3705         (ix86_validate_address_register): New function.
3706         (ix86_legitimate_address_p): Call ix86_validate_address_register
3707         to validate base and index registers.  Add address override check
3708         from ix86_decompose_address.
3709         (ix86_decompose_address): Remove.
3711 2013-11-18  Richard Biener  <rguenther@suse.de>
3713         PR tree-optimization/59125
3714         PR tree-optimization/54570
3715         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3716         is not complete do not treat component-references with offset zero
3717         but different fields as equal.
3718         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3719         (compute_object_sizes): Apply TLC.  Propagate the constant
3720         results into all uses and fold their stmts.
3721         * passes.def (pass_all_optimizations): Move pass_object_sizes
3722         after the first pass_forwprop and before pass_fre.
3724 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3726         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3727         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3728         (tree_ctz): Remove cast to unsigned type.
3729         * builtins.c (fold_builtin_memory_op): Likewise.
3730         * dwarf2out.c (descr_info_loc): Likewise.
3731         * godump.c (go_output_typedef): Likewise.
3732         * omp-low.c (expand_omp_simd): Likewise.
3733         * stor-layout.c (excess_unit_span): Likewise.
3734         * tree-object-size.c (addr_object_size): Likewise.
3735         * tree-sra.c (analyze_all_variable_accesses): Likewise.
3736         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3737         (simplify_rotate): Likewise.
3738         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3739         (handle_pointer_plus): Likewise.
3740         * tree-switch-conversion.c (check_range): Likewise.
3741         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3742         * tsan.c (instrument_builtin_call): Likewise.
3743         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3744         * trans-mem.c (tm_log_add): Likewise.
3745         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3746         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3747         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3748         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3750 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3752         * tree.h (host_integerp, tree_low_cst): Delete.
3753         * tree.c (host_integerp, tree_low_cst): Delete.
3755 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3757         * expr.h: Update comments to refer to tree_to_[su]hwi rather
3758         than tree_low_cst.
3759         * fold-const.c (fold_binary_loc): Likewise.
3760         * expr.c (store_constructor): Use tree_to_uhwi rather than
3761         tree_low_cst.
3762         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3763         * stmt.c (emit_case_dispatch_table): Likewise.
3764         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3766 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3768         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3769         config/aarch64/aarch64.c, config/alpha/predicates.md,
3770         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3771         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3772         config/mep/mep-pragma.c, config/mips/mips.c,
3773         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3774         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3775         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3776         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3777         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3778         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3779         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3780         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
3781         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
3782         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
3784 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3786         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
3787         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
3788         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
3789         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
3790         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
3791         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
3792         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
3793         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
3794         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
3795         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
3796         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
3798 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3800         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
3801         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
3803 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3805         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
3806         than host_integerp.
3808 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3810         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
3811         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
3812         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
3813         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
3814         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3815         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
3816         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
3817         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
3818         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
3819         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
3820         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
3821         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
3822         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
3823         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
3824         tree_fits_uhwi_p throughout.
3826 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3828         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
3829         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
3830         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
3831         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
3832         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
3833         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
3834         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
3835         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
3836         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
3837         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
3838         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
3839         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
3840         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3841         throughout.
3843 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3845         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
3846         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
3848 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3850         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
3851         flag if it kills its address, not its post-increment.
3853 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
3855         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3856         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3857         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3858         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3859         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3860         (gimple_call_with_bounds_p): New.
3861         (gimple_call_set_with_bounds): New.
3862         (gimple_call_num_nobnd_args): Remove.
3863         (gimple_call_nobnd_arg): Remove.
3864         * tree.h (CALL_WITH_BOUNDS_P): New.
3865         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3867 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
3869         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
3870         (symtab_node_name): Rename to symtab_node::name.
3871         (cgraph_node_asm_name): Remove.
3872         (varpool_node_asm_name): Remove.
3873         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
3874         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
3875         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
3876         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
3877         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
3879 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3881         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
3882         * config/arm/arm.c (arm_cortex_a53_tune): New.
3883         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
3885 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3887         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
3888         (case ${target}): Add bdver4.
3889         * config/i386/bdver3.md: Add bdver4.
3890         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3891         -march=native recognize bdver4 processors.
3892         * config/i386/i386-c.c (ix86_target_macros_internal): Add
3893         bdver4 def_and_undef
3894         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
3895         (m_BDVER4): New definition.
3896         (m_AMD_MULTIPLE): Includes m_BDVER4.
3897         (processor_target_table): Add bdver4 entry.
3898         (static const char *const cpu_names): Add bdver4 entry.
3899         (software_prefetching_beneficial_p): Add bdver3.
3900         (ix86_option_override_internal): Add bdver4 instruction sets.
3901         (ix86_issue_rate): Add bdver4.
3902         (ix86_adjust_cost): Add bdver4.
3903         (ia32_multipass_dfa_lookahead): Add bdver4.
3904         (enum processor_model): Add M_AMDFAM15H_BDVER4.
3905         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
3906         (has_dispatch): Add bdver4.
3907         * config/i386/i386.h (TARGET_BDVER4): New definition.
3908         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
3909         (enum processor_type): Add PROCESSOR_BDVER4.
3910         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
3911         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
3912         * doc/extend.texi: Add details about bdver4.
3913         * doc/invoke.texi: Add details about bdver4. Add
3914         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
3916 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3918         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
3919         sdmode_stack_slot also in little-endian mode.
3921 2013-11-17  Jan Hubicka  <jh@suse.cz>
3923         * doc/md.texi (setmem, movstr): Update documentation.
3924         * builtins.c (determine_block_size): New function.
3925         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
3926         (expand_builtin_memset_args): Use it and pass it to
3927         set_storage_via_setmem.
3928         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
3929         parameters; update call to expander.
3930         (emit_block_move_hints): Add min_size/max_size parameters.
3931         (clear_storage_hints): Likewise.
3932         (set_storage_via_setmem): Likewise.
3933         (clear_storage): Update.
3934         * expr.h (emit_block_move_hints, clear_storage_hints,
3935         set_storage_via_setmem): Update prototypes.
3936         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
3937         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3938         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3939         * i386.md (movmem, setmem): Pass parameters.
3941 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
3943         PR target/59153
3944         * config/i386/i386.c (ix86_address_subreg_operand): Do not
3945         reject non-integer subregs.
3946         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
3947         Move check for invalid x32 constant addresses ...
3948         (ix86_legitimate_address_p): ... here.
3950 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3952         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
3953         parameter and use it in REG_FRAME_RELATED_EXPR note.
3954         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
3955         parameter.
3956         (rs6000_emit_prologue): Likewise, but for little endian VSX
3957         stores, pass the source register of the store instead.
3959 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
3961         * gimple.h: Reorder prototypes to match .c declaration order, and
3962         remove protyotypes for functions not in gimple.c.
3963         (LABEL): Move to tree-into-ssa.c.
3964         * gimple.c: Remove unused prototypes.
3965         (get_base_address): Move to tree.c.
3966         * tree.c (get_base_address): Relocate from gimple.c.
3967         * builtins.h (validate_gimple_arglist): Add prototype.
3968         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
3969         * cfgexpand.h: New File.
3970         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
3971         * tree.h (build_addr): Move to tree-nested.h.
3972         * tree-nested.h: New File.
3973         (build_addr, lower_nested_functions, insert_field_into_struct): Add
3974         prototypes.
3975         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
3976         * ipa-inline-analysis.c: Include cfgexpand.h.
3977         * cgraphunit.c: Include tree-nested.h.
3978         * omp-low.c: Likewise.
3979         * tree-parloops.c: Likewise.
3980         * gimple-low.h: Likewise.
3981         * tree-profile.h: Likewise.
3982         * expr.c: Include cfgexpand.h.
3983         * tree-affine.c: Likewise.
3984         * tree-ssa.c: Likewise.
3985         * tree-ssa-loop-im.c: Include trans-mem.h.
3986         * tree-ssa-tail-merge.c: Likewise.
3987         * value-prof.c: Include builtins.h and tree-nested.h.
3988         * tree-into-ssa.c (LABEL): Define here.
3990 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3992         * config/arc/arc.c (arc_predicate_delay_insns): New function.
3993         (pass_data_arc_predicate_delay_insns): New pass_data instance.
3994         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
3995         (make_pass_arc_predicate_delay_insns): New function.
3996         (arc_init): Register pass_arc_predicate_delay_insns if
3997         flag_delayed_branch is active.
3999 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
4001         * config/arc/constraints.md (Rcq): Simplify register number test.
4003 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4005         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4007 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
4009         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4010         is null.
4012 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4014         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4015         * gimple-pretty-print.c (dump_omp_for): Add case for
4016         GF_OMP_FOR_KIND_CILKSIMD.
4017         * gimple.h (enum gf_mask): Restructure entries to add
4018         GF_OMP_FOR_KIND_CILKSIMD.
4019         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4020         (gimplify_omp_for): Handle CILK_SIMD.
4021         (gimplify_expr): Add ccase for CILK_SIMD.
4022         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4023         (build_outer_var_ref): Same.
4024         (check_omp_nesting_restrictions): Same.
4025         (lower_rec_input_clauses): Same.
4026         (lower_lastprivate_clauses): Same.
4027         (expand_omp_for): Same.
4028         (execute_expand_omp): Check flag_enable_cilkplus.
4029         (execute_lower_omp): Same.
4030         (diagnose_sb_0): Handle CILK_SIMD.
4031         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4032         (setjmp_or_longjmp_p): New.
4033         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4034         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4035         * tree.def: Add tree code for CILK_SIMD.
4037 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4039         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4040         Remove.
4041         (altivec_vperm_<mode>): Revert earlier little endian change.
4042         (*altivec_vperm_<mode>_internal): Remove.
4043         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4044         (*altivec_vperm_<mode>_uns_internal): Remove.
4045         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4047 2013-11-15  Jeff Law  <law@redhat.com>
4049         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4050         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
4051         * gimple-ssa-isolate-paths.c
4052         (find_implicit_erroneous_behaviour): Corresponding changes.
4053         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4054         (find_explicit_erroneous_behaviour): Likewise.
4056 2013-11-15  Jeff Law  <law@redhat.com>
4058         * ifcvt.c (find_cond_trap): Properly handle case where
4059         trap_bb == else_bb.
4061 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
4063         * configure: Regenerate.
4065 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
4067         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4068         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4069         where it is incorrect or missing.
4071 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
4073         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4074         host_integerp test.
4075         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4076         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4077         constant.
4078         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4079         pair with a TREE_CODE test and TREE_INT_CST_LOW.
4080         * tree-vect-generic.c (expand_vector_divmod): Likewise.
4082 2013-11-15  Richard Biener  <rguenther@suse.de>
4084         PR tree-optimization/50262
4085         * tree-ssa-alias.h (struct pt_solution): Split
4086         vars_contains_global into vars_contains_nonlocal,
4087         vars_contains_escaped and vars_contains_escaped_heap.
4088         * tree-ssa-structalias.c (label_visit): Expand comment.
4089         (handle_lhs_call): Adjust comment.
4090         (set_uids_in_ptset): Set the new flags appropriately.
4091         (pt_solution_set): Adjust.
4092         (pt_solution_set_var): Likewise.
4093         (pt_solution_ior_into): Likewise.
4094         (pt_solution_includes_global): Likewise.
4095         (pt_solutions_intersect_1): Optimize escaped handling.
4096         (compute_points_to_sets): Remove heap variable globalization.
4097         (ipa_escaped_pt): Adjust initializer.
4098         (pass_data_ipa_pta): Do not run TODO_update_ssa.
4099         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4100         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4102 2013-11-15  Richard Biener  <rguenther@suse.de>
4104         * tree-loop-distribution.c (tree_loop_distribution): Make sure
4105         to distribute all stores.
4107 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4109         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4111 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
4113         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4114         * configure.ac: Determine target_header_dir earlier.
4115         (--with-glibc-version): New configure option.
4116         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4117         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4118         * configure: Regenerate.
4119         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4120         native toolchains for default.
4121         (--with-glibc-version): Document.
4123 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
4125         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4127 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
4129         * lto-streamer-in.c (input function): Call cgraph_create_node if
4130         cgraph_get_node failed.
4132 2013-11-14   Olivier Hainque  <hainque@adacore.com>
4134         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4135         defer allocation of DECL_IGNORED_P variables at toplevel unless really
4136         small.  Factorize size threshold computation from the existing one.
4137         (expand_used_vars): Refine comment.
4139 2013-11-14  Cong Hou  <congh@google.com>
4141         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4142         address field as it can be obtained from dr.  Rename the struct.
4143         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4144         steps of data references during sort.
4145         (vect_prune_runtime_alias_test_list): Adjust with the change to
4146         struct dr_with_seg_len.
4147         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4148         Adjust with the change to struct dr_with_seg_len.
4150 2013-11-14  Jeff Law  <law@redhat.com>
4152         PR middle-end/59127
4153         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4154         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4155         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4156         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4157         edges, then ignore it.  If the statement exhibiting erroneous
4158         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4159         then we can not optimize.
4160         (find_explicit_erroneous_behaviour): Likewise.
4162 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
4164         * gimplify-me.h:  New file.  Add prototypes.
4165         * gimplify.h: Don't include gimple.h.
4166         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4167         Relocate from gimple.h.
4168         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4169         is_gimple_sizepos): Move to gimplify.h.
4170         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4171         (enum gsi_iterator_update): Move to gimple-iterator.h.
4172         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4173         * gimplify-me.c: New File.
4174         (force_gimple_operand_1, force_gimple_operand,
4175         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4176         gimple_regimplify_operands): Relocate from gimplify.c.
4177         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4178         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4179         gimple_regimplify_operands): Move to gimplify-me.c.
4180         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4181         from gimple.h.
4182         * Makefile.in (OBJS): Add gimplify-me.o
4183         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4184         required.
4185         * cfgloopmanip.c: Likewise.
4186         * cgraphunit.c: Likewise.
4187         * cilk-common.c: Likewise.
4188         * fold-const.c: Likewise.
4189         * function.c: Likewise.
4190         * gimple-expr.c: Likewise.
4191         * gimple-fold.c: Likewise.
4192         * gimple-ssa-strength-reduction.c: Likewise.
4193         * gimple.c: Likewise.
4194         * graphite-clast-to-gimple.c: Likewise.
4195         * graphite-sese-to-poly.c: Likewise.
4196         * ipa-prop.c: Likewise.
4197         * ipa-split.c: Likewise.
4198         * ipa.c: Likewise.
4199         * langhooks.c: Likewise.
4200         * omp-low.c: Likewise.
4201         * sese.c: Likewise.
4202         * stor-layout.c: Likewise.
4203         * targhooks.c: Likewise.
4204         * trans-mem.c: Likewise.
4205         * tree-affine.c: Likewise.
4206         * tree-cfg.c: Likewise.
4207         * tree-cfgcleanup.c: Likewise.
4208         * tree-complex.c: Likewise.
4209         * tree-if-conv.c: Likewise.
4210         * tree-inline.c: Likewise.
4211         * tree-loop-distribution.c: Likewise.
4212         * tree-nested.c: Likewise.
4213         * tree-parloops.c: Likewise.
4214         * tree-predcom.c: Likewise.
4215         * tree-profile.c: Likewise.
4216         * tree-scalar-evolution.c: Likewise.
4217         * tree-sra.c: Likewise.
4218         * tree-ssa-address.c: Likewise.
4219         * tree-ssa-ccp.c: Likewise.
4220         * tree-ssa-dce.c: Likewise.
4221         * tree-ssa-forwprop.c: Likewise.
4222         * tree-ssa-ifcombine.c: Likewise.
4223         * tree-ssa-loop-im.c: Likewise.
4224         * tree-ssa-loop-ivopts.c: Likewise.
4225         * tree-ssa-loop-manip.c: Likewise.
4226         * tree-ssa-loop-niter.c: Likewise.
4227         * tree-ssa-loop-prefetch.c: Likewise.
4228         * tree-ssa-loop-unswitch.c: Likewise.
4229         * tree-ssa-math-opts.c: Likewise.
4230         * tree-ssa-phiopt.c: Likewise.
4231         * tree-ssa-phiprop.c: Likewise.
4232         * tree-ssa-pre.c: Likewise.
4233         * tree-ssa-propagate.c: Likewise.
4234         * tree-ssa-reassoc.c: Likewise.
4235         * tree-ssa-sccvn.c: Likewise.
4236         * tree-ssa-strlen.c: Likewise.
4237         * tree-ssa.c: Likewise.
4238         * tree-switch-conversion.c: Likewise.
4239         * tree-tailcall.c: Likewise.
4240         * tree-vect-data-refs.c: Likewise.
4241         * tree-vect-generic.c: Likewise.
4242         * tree-vect-loop-manip.c: Likewise.
4243         * tree-vect-loop.c: Likewise.
4244         * tree-vect-patterns.c: Likewise.
4245         * tree-vect-stmts.c: Likewise.
4246         * tree.c: Likewise.
4247         * tsan.c: Likewise.
4248         * value-prof.c: Likewise.
4249         * config/aarch64/aarch64.c: Likewise.
4250         * config/alpha/alpha.c: Likewise.
4251         * config/darwin.c: Likewise.
4252         * config/i386/i386.c: Likewise.
4253         * config/ia64/ia64.c: Likewise.
4254         * config/mep/mep.c: Likewise.
4255         * config/mips/mips.c: Likewise.
4256         * config/rs6000/rs6000.c: Likewise.
4257         * config/s390/s390.c: Likewise.
4258         * config/sh/sh.c: Likewise.
4259         * config/sparc/sparc.c: Likewise.
4260         * config/spu/spu.c: Likewise.
4261         * config/stormy16/stormy16.c: Likewise.
4262         * config/tilegx/tilegx.c: Likewise.
4263         * config/tilepro/tilepro.c: Likewise.
4264         * config/xtensa/xtensa.c: Likewise.
4266 2013-11-14  Diego Novillo  <dnovillo@google.com>
4268         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4270 2013-11-14  Diego Novillo  <dnovillo@google.com>
4272         * tree.h: Include fold-const.h.
4273         (aggregate_value_p): Moved to function.h.
4274         (alloca_call_p): Moved to calls.h.
4275         (allocate_struct_function): Moved to function.h.
4276         (apply_tm_attr): Moved to attribs.h.
4277         (array_at_struct_end_p): Moved to expr.h.
4278         (array_ref_element_size): Moved to tree-dfa.h.
4279         (array_ref_low_bound): Moved to tree-dfa.h.
4280         (array_ref_up_bound): Moved to tree.h.
4281         (assemble_alias): Moved to cgraph.h.
4282         (bit_from_pos): Moved to stor-layout.h.
4283         (build_addr): Moved to tree-nested.h.
4284         (build_duplicate_type): Moved to tree-inline.h.
4285         (build_fold_addr_expr): Moved to fold-const.h.
4286         (build_fold_addr_expr_with_type): Moved to fold-const.h.
4287         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4288         (build_fold_indirect_ref): Moved to fold-const.h.
4289         (build_fold_indirect_ref_loc): Moved to fold-const.h.
4290         (build_personality_function): Moved to tree.h.
4291         (build_range_check): Moved to fold-const.h.
4292         (build_simple_mem_ref): Moved to fold-const.h.
4293         (build_simple_mem_ref_loc): Moved to fold-const.h.
4294         (build_tm_abort_call): Moved to trans-mem.h.
4295         (byte_from_pos): Moved to stor-layout.h.
4296         (call_expr_flags): Moved to calls.h.
4297         (can_move_by_pieces): Moved to expr.h.
4298         (categorize_ctor_elements): Moved to expr.h.
4299         (change_decl_assembler_name): Moved to gcc-symtab.h.
4300         (combine_comparisons): Moved to fold-const.h.
4301         (complete_ctor_at_level_p): Moved to tree.h.
4302         (component_ref_field_offset): Moved to tree-dfa.h.
4303         (compute_builtin_object_size): Moved to tree-object-size.h.
4304         (compute_record_mode): Moved to stor-layout.h.
4305         (constant_boolean_node): Moved to fold-const.h.
4306         (constructor_static_from_elts_p): Moved to varasm.h.
4307         (cxx11_attribute_p): Moved to attribs.h.
4308         (debug_body): Moved to print-tree.h.
4309         (debug_find_tree): Moved to tree-inline.h.
4310         (debug_fold_checksum): Moved to fold-const.h.
4311         (debug_head): Moved to print-tree.h.
4312         (debug_head): Moved to print-tree.h.
4313         (debug_raw): Moved to print-tree.h.
4314         (debug_tree): Moved to print-tree.h.
4315         (debug_vec_tree): Moved to print-tree.h.
4316         (debug_verbose): Moved to print-tree.h.
4317         (debug_verbose): Moved to print-tree.h.
4318         (decl_attributes): Moved to attribs.h.
4319         (decl_binds_to_current_def_p): Moved to varasm.h.
4320         (decl_default_tls_model): Moved to varasm.h.
4321         (decl_replaceable_p): Moved to varasm.h.
4322         (div_if_zero_remainder): Moved to fold-const.h.
4323         (double_int mem_ref_offset): Moved to fold-const.h.
4324         (dump_addr): Moved to print-tree.h.
4325         (element_precision): Moved to machmode.h.
4326         (expand_dummy_function_end): Moved to function.h.
4327         (expand_function_end): Moved to function.h.
4328         (expand_function_start): Moved to function.h.
4329         (expand_label): Moved to stmt.h.
4330         (expr_first): Moved to tree-iterator.h.
4331         (expr_last): Moved to tree-iterator.h.
4332         (finalize_size_functions): Moved to stor-layout.h.
4333         (finish_builtin_struct): Moved to stor-layout.h.
4334         (finish_record_layout): Moved to stor-layout.h.
4335         (fixup_signed_type): Moved to stor-layout.h.
4336         (fixup_unsigned_type): Moved to stor-layout.h.
4337         (flags_from_decl_or_type): Moved to calls.h.
4338         (fold): Moved to fold-const.h.
4339         (fold_abs_const): Moved to fold-const.h.
4340         (fold_binary): Moved to fold-const.h.
4341         (fold_binary_loc): Moved to fold-const.h.
4342         (fold_binary_to_constant): Moved to fold-const.h.
4343         (fold_build1): Moved to fold-const.h.
4344         (fold_build1_initializer_loc): Moved to fold-const.h.
4345         (fold_build1_loc): Moved to fold-const.h.
4346         (fold_build1_stat_loc): Moved to fold-const.h.
4347         (fold_build2): Moved to fold-const.h.
4348         (fold_build2_initializer_loc): Moved to fold-const.h.
4349         (fold_build2_loc): Moved to fold-const.h.
4350         (fold_build2_stat_loc): Moved to fold-const.h.
4351         (fold_build3): Moved to fold-const.h.
4352         (fold_build3_loc): Moved to fold-const.h.
4353         (fold_build3_stat_loc): Moved to fold-const.h.
4354         (fold_build_call_array): Moved to fold-const.h.
4355         (fold_build_call_array_initializer): Moved to fold-const.h.
4356         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4357         (fold_build_call_array_loc): Moved to fold-const.h.
4358         (fold_build_cleanup_point_expr): Moved to fold-const.h.
4359         (fold_convert): Moved to fold-const.h.
4360         (fold_convert_loc): Moved to fold-const.h.
4361         (fold_convertible_p): Moved to fold-const.h.
4362         (fold_defer_overflow_warnings): Moved to fold-const.h.
4363         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4364         (fold_fma): Moved to fold-const.h.
4365         (fold_ignored_result): Moved to fold-const.h.
4366         (fold_indirect_ref): Moved to fold-const.h.
4367         (fold_indirect_ref_1): Moved to fold-const.h.
4368         (fold_indirect_ref_loc): Moved to fold-const.h.
4369         (fold_read_from_constant_string): Moved to fold-const.h.
4370         (fold_real_zero_addition_p): Moved to fold-const.h.
4371         (fold_single_bit_test): Moved to fold-const.h.
4372         (fold_strip_sign_ops): Moved to fold-const.h.
4373         (fold_ternary): Moved to fold-const.h.
4374         (fold_ternary_loc): Moved to fold-const.h.
4375         (fold_unary): Moved to tree-data-ref.h.
4376         (fold_unary_ignore_overflow): Moved to fold-const.h.
4377         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4378         (fold_unary_loc): Moved to fold-const.h.
4379         (fold_unary_to_constant): Moved to fold-const.h.
4380         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4381         (fold_undefer_overflow_warnings): Moved to fold-const.h.
4382         (folding_initializer): Moved to fold-const.h.
4383         (free_temp_slots): Moved to function.h.
4384         (generate_setjmp_warnings): Moved to function.h.
4385         (get_attribute_name): Moved to attribs.h.
4386         (get_identifier): Moved to stringpool.h.
4387         (get_identifier_with_length): Moved to stringpool.h.
4388         (get_inner_reference): Moved to tree.h.
4389         (gimple_alloca_call_p): Moved to calls.h.
4390         (gimplify_parameters): Moved to function.h.
4391         (highest_pow2_factor): Moved to expr.h.
4392         (indent_to): Moved to print-tree.h.
4393         (init_attributes): Moved to attribs.h.
4394         (init_dummy_function_start): Moved to function.h.
4395         (init_function_start): Moved to function.h.
4396         (init_inline_once): Moved to tree-inline.h.
4397         (init_object_sizes): Moved to tree-object-size.h.
4398         (init_temp_slots): Moved to function.h.
4399         (init_tree_optimization_optabs): Moved to optabs.h.
4400         (initialize_sizetypes): Moved to stor-layout.h.
4401         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4402         (initializer_constant_valid_p): Moved to varasm.h.
4403         (int_const_binop): Moved to fold-const.h.
4404         (internal_reference_types): Moved to stor-layout.h.
4405         (invert_tree_comparison): Moved to fold-const.h.
4406         (invert_truthvalue): Moved to fold-const.h.
4407         (invert_truthvalue_loc): Moved to fold-const.h.
4408         (is_tm_ending_fndecl): Moved to trans-mem.h.
4409         (is_tm_may_cancel_outer): Moved to trans-mem.h.
4410         (is_tm_pure): Moved to trans-mem.h.
4411         (is_tm_safe): Moved to trans-mem.h.
4412         (layout_decl): Moved to stor-layout.h.
4413         (layout_type): Moved to stor-layout.h.
4414         (lookup_attribute_spec): Moved to attribs.h.
4415         (make_accum_type): Moved to stor-layout.h.
4416         (make_decl_one_only): Moved to varasm.h.
4417         (make_decl_rtl): Moved to tree.h.
4418         (make_decl_rtl_for_debug): Moved to varasm.h.
4419         (make_fract_type): Moved to stor-layout.h.
4420         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4421         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4422         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4423         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4424         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4425         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4426         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4427         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4428         (make_range): Moved to fold-const.h.
4429         (make_range_step): Moved to fold-const.h.
4430         (make_sat_signed_accum_type): Moved to stor-layout.h.
4431         (make_sat_signed_fract_type): Moved to stor-layout.h.
4432         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4433         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4434         (make_signed_accum_type): Moved to stor-layout.h.
4435         (make_signed_fract_type): Moved to stor-layout.h.
4436         (make_signed_type): Moved to stor-layout.h.
4437         (make_unsigned_accum_type): Moved to stor-layout.h.
4438         (make_unsigned_fract_type): Moved to stor-layout.h.
4439         (make_unsigned_type): Moved to stor-layout.h.
4440         (mark_decl_referenced): Moved to varasm.h.
4441         (mark_referenced): Moved to varasm.h.
4442         (may_negate_without_overflow_p): Moved to fold-const.h.
4443         (maybe_get_identifier): Moved to stringpool.h.
4444         (merge_ranges): Moved to fold-const.h.
4445         (merge_weak): Moved to varasm.h.
4446         (mode_for_size_tree): Moved to stor-layout.h.
4447         (multiple_of_p): Moved to fold-const.h.
4448         (must_pass_in_stack_var_size): Moved to calls.h.
4449         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4450         (native_encode_expr): Moved to fold-const.h.
4451         (native_interpret_expr): Moved to fold-const.h.
4452         (non_lvalue): Moved to fold-const.h.
4453         (non_lvalue_loc): Moved to fold-const.h.
4454         (normalize_offset): Moved to stor-layout.h.
4455         (normalize_rli): Moved to stor-layout.h.
4456         (notice_global_symbol): Moved to varasm.h.
4457         (omit_one_operand): Moved to fold-const.h.
4458         (omit_one_operand_loc): Moved to fold-const.h.
4459         (omit_two_operands): Moved to fold-const.h.
4460         (omit_two_operands_loc): Moved to fold-const.h.
4461         (operand_equal_p): Moved to tree-data-ref.h.
4462         (parse_input_constraint): Moved to stmt.h.
4463         (parse_output_constraint): Moved to stmt.h.
4464         (place_field): Moved to stor-layout.h.
4465         (pop_function_context): Moved to function.h.
4466         (pop_temp_slots): Moved to function.h.
4467         (pos_from_bit): Moved to stor-layout.h.
4468         (preserve_temp_slots): Moved to function.h.
4469         (print_node): Moved to print-tree.h.
4470         (print_node_brief): Moved to print-tree.h.
4471         (print_rtl): Moved to rtl.h.
4472         (process_pending_assemble_externals): Moved to varasm.h.
4473         (ptr_difference_const): Moved to fold-const.h.
4474         (push_function_context): Moved to function.h.
4475         (push_struct_function): Moved to function.h.
4476         (push_temp_slots): Moved to function.h.
4477         (record_tm_replacement): Moved to trans-mem.h.
4478         (relayout_decl): Moved to stor-layout.h.
4479         (resolve_asm_operand_names): Moved to stmt.h.
4480         (resolve_unique_section): Moved to varasm.h.
4481         (rli_size_so_far): Moved to stor-layout.h.
4482         (rli_size_unit_so_far): Moved to stor-layout.h.
4483         (round_down): Moved to fold-const.h.
4484         (round_down_loc): Moved to fold-const.h.
4485         (round_up): Moved to fold-const.h.
4486         (round_up_loc): Moved to fold-const.h.
4487         (set_decl_incoming_rtl): Moved to emit-rtl.h.
4488         (set_decl_rtl): Moved to tree.h.
4489         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4490         (set_user_assembler_name): Moved to varasm.h.
4491         (setjmp_call_p): Moved to calls.h.
4492         (size_binop): Moved to fold-const.h.
4493         (size_binop_loc): Moved to fold-const.h.
4494         (size_diffop): Moved to fold-const.h.
4495         (size_diffop_loc): Moved to fold-const.h.
4496         (size_int_kind): Moved to fold-const.h.
4497         (stack_protect_epilogue): Moved to function.h.
4498         (start_record_layout): Moved to stor-layout.h.
4499         (supports_one_only): Moved to varasm.h.
4500         (swap_tree_comparison): Moved to fold-const.h.
4501         (tm_malloc_replacement): Moved to trans-mem.h.
4502         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4503         (tree build_invariant_address): Moved to fold-const.h.
4504         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4505         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4506         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4507         (tree_expr_nonnegative_p): Moved to fold-const.h.
4508         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4509         (tree_output_constant_def): Moved to varasm.h.
4510         (tree_overlaps_hard_reg_set): Moved to stmt.h.
4511         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4512         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4513         (tree_swap_operands_p): Moved to fold-const.h.
4514         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4515         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4516         (update_alignment_for_field): Moved to stor-layout.h.
4517         (use_register_for_decl): Moved to function.h.
4518         (variable_size): Moved to rtl.h.
4519         (vector_type_mode): Moved to stor-layout.h.
4520         * cgraph.h: Corresponding changes.
4521         * emit-rtl.h: Corresponding changes.
4522         * expr.h: Corresponding changes.
4523         * function.h: Corresponding changes.
4524         * optabs.h: Corresponding changes.
4525         * trans-mem.h: Corresponding changes.
4526         Protect against multiple inclusion.
4527         * tree-inline.h: Corresponding changes.
4528         * tree-iterator.h: Corresponding changes.
4529         * tree-dfa.h: Include expr.h.
4530         * tree-ssanames.h: Include stringpool.h.
4531         * attribs.h: New file.
4532         * calls.h: New file.
4533         * fold-const.h: New file.
4534         * gcc-symtab.h: New file.
4535         * print-rtl.h: New file.
4536         * print-tree.h: New file.
4537         * stmt.h: New file.
4538         * stor-layout.h: New file.
4539         * strinpool.h: New file.
4540         * tree-nested.h: New file
4541         * tree-object-size.h: New file.
4542         * varasm.h: New file.
4544 2013-11-14  Diego Novillo  <dnovillo@google.com>
4546         * alias.c: Include varasm.h.
4547         Include expr.h.
4548         * asan.c: Include calls.h.
4549         Include stor-layout.h.
4550         Include varasm.h.
4551         * attribs.c: Include stringpool.h.
4552         Include attribs.h.
4553         Include stor-layout.h.
4554         * builtins.c: Include stringpool.h.
4555         Include stor-layout.h.
4556         Include calls.h.
4557         Include varasm.h.
4558         Include tree-object-size.h.
4559         * calls.c: Include stor-layout.h.
4560         Include varasm.h.
4561         Include stringpool.h.
4562         Include attribs.h.
4563         * cfgexpand.c: Include stringpool.h.
4564         Include varasm.h.
4565         Include stor-layout.h.
4566         Include stmt.h.
4567         Include print-tree.h.
4568         * cgraph.c: Include varasm.h.
4569         Include calls.h.
4570         Include print-tree.h.
4571         * cgraphclones.c: Include stringpool.h.
4572         Include function.h.
4573         Include emit-rtl.h.
4574         Move inclusion of rtl.h earlier in the file.
4575         * cgraphunit.c: Include varasm.h.
4576         Include stor-layout.h.
4577         Include stringpool.h.
4578         * cilk-common.c: Include stringpool.h.
4579         Include stor-layout.h.
4580         * combine.c: Include stor-layout.h.
4581         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4582         Include stringpool.h.
4583         Include calls.h.
4584         * config/aarch64/aarch64.c: Include stringpool.h.
4585         Include stor-layout.h.
4586         Include calls.h.
4587         Include varasm.h.
4588         * config/alpha/alpha.c: Include stor-layout.h.
4589         Include calls.h.
4590         Include varasm.h.
4591         * config/arc/arc.c: Include varasm.h.
4592         Include stor-layout.h.
4593         Include stringpool.h.
4594         Include calls.h.
4595         * config/arm/arm.c: Include stringpool.h.
4596         Include stor-layout.h.
4597         Include calls.h.
4598         Include varasm.h.
4599         * config/avr/avr-c.c: Include stor-layout.h.
4600         * config/avr/avr-log.c: Include print-tree.h.
4601         * config/avr/avr.c: Include print-tree.h.
4602         Include calls.h.
4603         Include stor-layout.h.
4604         Include stringpool.h.
4605         * config/bfin/bfin.c: Include varasm.h.
4606         Include calls.h.
4607         * config/c6x/c6x.c: Include stor-layout.h.
4608         Include varasm.h.
4609         Include calls.h.
4610         Include stringpool.h.
4611         * config/cr16/cr16.c: Include stor-layout.h.
4612         Include calls.h.
4613         * config/cris/cris.c: Include varasm.h.
4614         Include stor-layout.h.
4615         Include calls.h.
4616         Include stmt.h.
4617         * config/darwin.c: Include stringpool.h.
4618         Include varasm.h.
4619         Include stor-layout.h.
4620         * config/epiphany/epiphany.c: Include stor-layout.h.
4621         Include varasm.h.
4622         Include calls.h.
4623         Include stringpool.h.
4624         * config/fr30/fr30.c: Include stor-layout.h.
4625         Include varasm.h.
4626         * config/frv/frv.c: Include varasm.h.
4627         Include stor-layout.h.
4628         Include stringpool.h.
4629         * config/h8300/h8300.c: Include stor-layout.h.
4630         Include varasm.h.
4631         Include calls.h.
4632         Include stringpool.h.
4633         * config/i386/i386.c: Include stringpool.h.
4634         Include attribs.h.
4635         Include calls.h.
4636         Include stor-layout.h.
4637         Include varasm.h.
4638         * config/i386/winnt-cxx.c: Include stringpool.h.
4639         Include attribs.h.
4640         * config/i386/winnt.c: Include stringpool.h.
4641         Include varasm.h.
4642         * config/ia64/ia64-c.c: Include stringpool.h.
4643         * config/ia64/ia64.c: Include stringpool.h.
4644         Include stor-layout.h.
4645         Include calls.h.
4646         Include varasm.h.
4647         * config/iq2000/iq2000.c: Include stor-layout.h.
4648         Include calls.h.
4649         Include varasm.h.
4650         * config/lm32/lm32.c: Include calls.h.
4651         * config/m32c/m32c.c: Include stor-layout.h.
4652         Include varasm.h.
4653         Include calls.h.
4654         * config/m32r/m32r.c: Include stor-layout.h.
4655         Include varasm.h.
4656         Include stringpool.h.
4657         Include calls.h.
4658         * config/m68k/m68k.c: Include calls.h.
4659         Include stor-layout.h.
4660         Include varasm.h.
4661         * config/mcore/mcore.c: Include stor-layout.h.
4662         Include varasm.h.
4663         Include stringpool.h.
4664         Include calls.h.
4665         * config/mep/mep.c: Include varasm.h.
4666         Include calls.h.
4667         Include stringpool.h.
4668         Include stor-layout.h.
4669         * config/microblaze/microblaze.c: Include varasm.h.
4670         Include stor-layout.h.
4671         Include calls.h.
4672         * config/mips/mips.c: Include varasm.h.
4673         Include stringpool.h.
4674         Include stor-layout.h.
4675         Include calls.h.
4676         * config/mmix/mmix.c: Include varasm.h.
4677         Include stor-layout.h.
4678         Include calls.h.
4679         * config/mn10300/mn10300.c: Include stor-layout.h.
4680         Include varasm.h.
4681         Include calls.h.
4682         * config/moxie/moxie.c: Include stor-layout.h.
4683         Include varasm.h.
4684         Include calls.h.
4685         * config/msp430/msp430.c: Include stor-layout.h.
4686         Include calls.h.
4687         * config/nds32/nds32.c: Include stor-layout.h.
4688         Include varasm.h.
4689         Include calls.h.
4690         * config/pa/pa.c: Include stor-layout.h.
4691         Include stringpool.h.
4692         Include varasm.h.
4693         Include calls.h.
4694         * config/pdp11/pdp11.c: Include stor-layout.h.
4695         Include varasm.h.
4696         Include calls.h.
4697         * config/picochip/picochip.c: Include calls.h.
4698         Include stor-layout.h.
4699         Include stringpool.h.
4700         Include varasm.h.
4701         * config/rl78/rl78.c: Include varasm.h.
4702         Include stor-layout.h.
4703         Include calls.h.
4704         * config/rs6000/rs6000-c.c: Include stor-layout.h.
4705         Include stringpool.h.
4706         * config/rs6000/rs6000.c: Include stringpool.h.
4707         Include stor-layout.h.
4708         Include calls.h.
4709         Include print-tree.h.
4710         Include varasm.h.
4711         * config/rx/rx.c: Include varasm.h.
4712         Include stor-layout.h.
4713         Include calls.h.
4714         * config/s390/s390.c: Include print-tree.h.
4715         Include stringpool.h.
4716         Include stor-layout.h.
4717         Include varasm.h.
4718         Include calls.h.
4719         * config/score/score.c: Include stringpool.h.
4720         Include calls.h.
4721         Include varasm.h.
4722         Include stor-layout.h.
4723         * config/sh/sh-c.c: Include stringpool.h.
4724         Include attribs.h.h.
4725         * config/sh/sh.c: Include stringpool.h.
4726         Include stor-layout.h.
4727         Include calls.h.
4728         Include varasm.h.
4729         * config/sol2-c.c: Include stringpool.h.
4730         Include attribs.h.
4731         * config/sol2-cxx.c: Include stringpool.h.
4732         * config/sol2.c: Include stringpool.h.
4733         Include varasm.h.
4734         * config/sparc/sparc.c: Include stringpool.h.
4735         Include stor-layout.h.
4736         Include calls.h.
4737         Include varasm.h.
4738         * config/spu/spu-c.c: Include stringpool.h.
4739         * config/spu/spu.c: Include stringpool.h.
4740         Include stor-layout.h.
4741         Include calls.h.
4742         Include varasm.h.
4743         * config/stormy16/stormy16.c: Include stringpool.h.
4744         Include stor-layout.h.
4745         Include varasm.h.
4746         Include calls.h.
4747         * config/tilegx/tilegx.c: Include stringpool.h.
4748         Include stor-layout.h.
4749         Include varasm.h.
4750         Include calls.h.
4751         * config/tilepro/tilepro.c: Include stringpool.h.
4752         Include stor-layout.h.
4753         Include varasm.h.
4754         Include calls.h.
4755         * config/v850/v850-c.c: Include stringpool.h.
4756         Include attribs.h.
4757         * config/v850/v850.c: Include stringpool.h.
4758         Include stor-layout.h.
4759         Include varasm.h.
4760         Include calls.h.
4761         * config/vax/vax.c: Include calls.h.
4762         Include varasm.h.
4763         * config/vms/vms.c: Include stringpool.h.
4764         * config/vxworks.c: Include stringpool.h.
4765         * config/xtensa/xtensa.c: Include stringpool.h.
4766         Include stor-layout.h.
4767         Include calls.h.
4768         Include varasm.h.
4769         * convert.c: Include stor-layout.h.
4770         * coverage.c: Include stringpool.h.
4771         Include stor-layout.h.
4772         * dbxout.c: Include varasm.h.
4773         Include stor-layout.h.
4774         * dojump.c: Include stor-layout.h.
4775         * dse.c: Include stor-layout.h.
4776         * dwarf2asm.c: Include stringpool.h.
4777         Include varasm.h.
4778         * dwarf2cfi.c: Include stor-layout.h.
4779         * dwarf2out.c: Include rtl.h.
4780         Include stringpool.h.
4781         Include stor-layout.h.
4782         Include varasm.h.
4783         Include function.h.
4784         Include emit-rtl.h.
4785         Move inclusion of rtl.h earlier in the file.
4786         * emit-rtl.c: Include varasm.h.
4787         * except.c: Include stringpool.h.
4788         Include stor-layout.h.
4789         * explow.c: Include stor-layout.h.
4790         * expmed.c: Include stor-layout.h.
4791         * expr.c: Include stringpool.h.
4792         Include stor-layout.h.
4793         Include attribs.h.
4794         Include varasm.h.
4795         * final.c: Include varasm.h.
4796         * fold-const.c: Include stor-layout.h.
4797         Include calls.h.
4798         Include tree-iterator.h.
4799         * function.c: Include stor-layout.h.
4800         Include varasm.h.
4801         Include stringpool.h.
4802         * genattrtab.c (write_header): Emit includes for varasm.h,
4803         stor-layout.h and calls.h.
4804         * genautomata.c (main): Likewise.
4805         * genemit.c: Likewise.
4806         * genopinit.c: Likewise.
4807         * genoutput.c (output_prologue): Likewise.
4808         * genpeep.c: Likewise.
4809         * genpreds.c (write_insn_preds_c): Likewise.
4810         * gengtype.c (open_base_files): Add stringpool.h.
4811         * gimple-expr.c: Include stringpool.h.
4812         Include stor-layout.h.
4813         * gimple-fold.c: Include stringpool.h.
4814         Include expr.h.
4815         Include stmt.h.
4816         Include stor-layout.h.
4817         * gimple-low.c: Include tree-nested.h.
4818         Include calls.h.
4819         * gimple-pretty-print.c: Include stringpool.h.
4820         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
4821         Include expr.h.
4822         * gimple-walk.c: Include stmt.h.
4823         * gimple.c: Include calls.h.
4824         Include stmt.h.
4825         Include stor-layout.h.
4826         * gimplify.c: Include stringpool.h.
4827         Include calls.h.
4828         Include varasm.h.
4829         Include stor-layout.h.
4830         Include stmt.h.
4831         Include print-tree.h.
4832         Include expr.h.
4833         * gimplify-me.c: Include stmt.h
4834         Include stor-layout.h
4835         * internal-fn.c: Include stor-layout.h.
4836         * ipa-devirt.c: Include print-tree.h.
4837         Include calls.h.
4838         * ipa-inline-analysis.c: Include stor-layout.h.
4839         Include stringpool.h.
4840         Include print-tree.h.
4841         * ipa-inline.c: Include trans-mem.h.
4842         Include calls.h.
4843         * ipa-prop.c: Include expr.h.
4844         Include stor-layout.h.
4845         Include print-tree.h.
4846         * ipa-pure-const.c: Include print-tree.h.
4847         Include calls.h.
4848         * ipa-reference.c: Include calls.h.
4849         * ipa-split.c: Include stringpool.h.
4850         Include expr.h.
4851         Include calls.h.
4852         * ipa.c: Include calls.h.
4853         Include stringpool.h.
4854         * langhooks.c: Include stringpool.h.
4855         Include attribs.h.
4856         * lto-cgraph.c: Include stringpool.h.
4857         * lto-streamer-in.c: Include stringpool.h.
4858         * lto-streamer-out.c: Include stor-layout.h.
4859         Include stringpool.h.
4860         * omp-low.c: Include stringpool.h.
4861         Include stor-layout.h.
4862         Include expr.h.
4863         * optabs.c: Include stor-layout.h.
4864         Include stringpool.h.
4865         Include varasm.h.
4866         * passes.c: Include varasm.h.
4867         * predict.c: Include calls.h.
4868         * print-rtl.c: Include print-tree.h.
4869         * print-tree.c: Include varasm.h.
4870         Include print-rtl.h.
4871         Include stor-layout.h.
4872         * realmpfr.c: Include stor-layout.h.
4873         * reg-stack.c: Include varasm.h.
4874         * sdbout.c: Include varasm.h.
4875         Include stor-layout.h.
4876         * simplify-rtx.c: Include varasm.h.
4877         * stmt.c: Include varasm.h.
4878         Include stor-layout.h.
4879         * stor-layout.c: Include stor-layout.h.
4880         Include stringpool.h.
4881         Include varasm.h.
4882         Include print-tree.h.
4883         * symtab.c: Include rtl.h.
4884         Include print-tree.h.
4885         Include varasm.h.
4886         Include function.h.
4887         Include emit-rtl.h.
4888         * targhooks.c: Include stor-layout.h.
4889         Include varasm.h.
4890         * toplev.c: Include varasm.h.
4891         Include tree-inline.h.
4892         * trans-mem.c: Include calls.h.
4893         Include function.h.
4894         Include rtl.h.
4895         Include emit-rtl.h.
4896         * tree-affine.c: Include expr.h.
4897         * tree-browser.c: Include print-tree.h.
4898         * tree-call-cdce.c: Include stor-layout.h.
4899         * tree-cfg.c: Include trans-mem.h.
4900         Include stor-layout.h.
4901         Include print-tree.h.
4902         * tree-complex.c: Include stor-layout.h.
4903         * tree-data-ref.c: Include expr.h.
4904         * tree-dfa.c: Include stor-layout.h.
4905         * tree-eh.c: Include expr.h.
4906         Include calls.h.
4907         * tree-emutls.c: Include stor-layout.h.
4908         Include varasm.h.
4909         * tree-if-conv.c: Include stor-layout.h.
4910         * tree-inline.c: Include stor-layout.h.
4911         Include calls.h.
4912         * tree-loop-distribution.c: Include stor-layout.h.
4913         * tree-nested.c: Include stringpool.h.
4914         Include stor-layout.h.
4915         * tree-object-size.c: Include tree-object-size.h.
4916         * tree-outof-ssa.c: Include stor-layout.h.
4917         * tree-parloops.c: Include stor-layout.h.
4918         Include tree-nested.h.
4919         * tree-pretty-print.c: Include stor-layout.h.
4920         Include expr.h.
4921         * tree-profile.c: Include varasm.h.
4922         Include tree-nested.h.
4923         * tree-scalar-evolution.c: Include expr.h.
4924         * tree-sra.c: Include stor-layout.h.
4925         * tree-ssa-address.c: Include stor-layout.h.
4926         * tree-ssa-ccp.c: Include stor-layout.h.
4927         * tree-ssa-dce.c: Include calls.h.
4928         * tree-ssa-dom.c: Include stor-layout.h.
4929         * tree-ssa-forwprop.c: Include stor-layout.h.
4930         * tree-ssa-ifcombine.c: Include stor-layout.h.
4931         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
4932         * tree-ssa-loop-niter.c: Include calls.h.
4933         Include expr.h.
4934         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
4935         * tree-ssa-math-opts.c: Include stor-layout.h.
4936         * tree-ssa-operands.c: Include stmt.h.
4937         Include print-tree.h.
4938         * tree-ssa-phiopt.c: Include stor-layout.h.
4939         * tree-ssa-reassoc.c: Include stor-layout.h.
4940         * tree-ssa-sccvn.c: Include stor-layout.h.
4941         * tree-ssa-sink.c: Include stor-layout.h.
4942         * tree-ssa-strlen.c: Include stor-layout.h.
4943         * tree-ssa-structalias.c: Include stor-layout.h.
4944         Include stmt.h.
4945         * tree-ssa-tail-merge.c: Include stor-layout.h.
4946         Include trans-mem.h.
4947         * tree-ssa-uncprop.c: Include stor-layout.h.
4948         * tree-ssa.c: Include stor-layout.h.
4949         * tree-ssanames.c: Include stor-layout.h.
4950         * tree-streamer-in.c: Include stringpool.h.
4951         * tree-streamer-out.c: Include stor-layout.h.
4952         * tree-switch-conversion.c: Include varasm.h.
4953         Include stor-layout.h.
4954         * tree-tailcall.c: Include stor-layout.h.
4955         * tree-vect-data-refs.c: Include stor-layout.h.
4956         * tree-vect-generic.c: Include stor-layout.h.
4957         * tree-vect-loop.c: Include stor-layout.h.
4958         * tree-vect-patterns.c: Include stor-layout.h.
4959         * tree-vect-slp.c: Include stor-layout.h.
4960         * tree-vect-stmts.c: Include stor-layout.h.
4961         * tree-vectorizer.c: Include stor-layout.h.
4962         * tree-vrp.c: Include stor-layout.h.
4963         Include calls.h.
4964         * tree.c: Include stor-layout.h.
4965         Include calls.h.
4966         Include attribs.h.
4967         Include varasm.h.
4968         * tsan.c: Include expr.h.
4969         * ubsan.c: Include stor-layout.h.
4970         Include stringpool.h.
4971         * value-prof.c: Include tree-nested.h.
4972         Include calls.h.
4973         * var-tracking.c: Include varasm.h.
4974         Include stor-layout.h.
4975         * varasm.c: Include stor-layout.h.
4976         Include stringpool.h.
4977         Include gcc-symtab.h.
4978         Include varasm.h.
4979         * varpool.c: Include varasm.h.
4980         * vmsdbgout.c: Include varasm.h.
4981         * xcoffout.c: Include varasm.h.
4983 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
4985         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
4986         use (.&-4) idiom.
4988 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4990         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
4992 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4993             Alan Modra  <amodra@gmail.com>
4995         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
4996         (RS6000_SAVE_TOC): Remove.
4997         (RS6000_TOC_SAVE_SLOT): New macro.
4998         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
4999         (rs6000_parm_start): Use it.
5000         (rs6000_function_arg_advance_1): Likewise.
5001         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5002         (rs6000_emit_epilogue): Likewise.
5003         (rs6000_call_aix): Likewise.
5004         (rs6000_output_function_prologue): Do not save/restore r11
5005         around calling _mcount for ABI_ELFv2.
5007 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5008             Alan Modra  <amodra@gmail.com>
5010         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5011         Add prototype.
5012         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5013         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5014         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5015         (rs6000_function_parms_need_stack): Likewise.
5016         (rs6000_reg_parm_stack_space): Likewise.
5017         (rs6000_function_arg): Do not replace BLKmode by Pmode when
5018         returning a register argument.
5020 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5021             Michael Gschwind  <mkg@us.ibm.com>
5023         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5024         (ALTIVEC_ARG_MAX_RETURN): Likewise.
5025         (FUNCTION_VALUE_REGNO_P): Use them.
5026         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5027         (rs6000_return_in_msb): New function.
5028         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5029         Handle aggregates of up to 16 bytes for ELFv2.
5030         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5032 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5033             Michael Gschwind  <mkg@us.ibm.com>
5035         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5036         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5037         (rs6000_discover_homogeneous_aggregate): Likewise.
5038         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5039         (rs6000_function_arg_advance_1): Likewise.
5040         (rs6000_function_arg): Likewise.
5041         (rs6000_arg_partial_bytes): Likewise.
5042         (rs6000_psave_function_arg): Handle BLKmode arguments.
5044 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5045             Michael Gschwind  <mkg@us.ibm.com>
5047         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5048         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5049         (rs6000_discover_homogeneous_aggregate): Likewise.
5050         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5051         (rs6000_function_arg_advance_1): Likewise.
5052         (rs6000_function_arg): Likewise.
5053         (rs6000_arg_partial_bytes): Likewise.
5054         (rs6000_psave_function_arg): Handle BLKmode arguments.
5056 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5058         * config/rs6000/rs6000.c (machine_function): New member
5059         r2_setup_needed.
5060         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5061         (rs6000_output_mi_thunk): Set r2_setup_needed.
5062         (rs6000_output_function_prologue): Output global entry point
5063         prologue and local entry point marker if needed for ABI_ELFv2.
5064         Output -mprofile-kernel code here.
5065         (output_function_profiler): Do not output -mprofile-kernel
5066         code here; moved to rs6000_output_function_prologue.
5067         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5069         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5070         (rs6000_output_function_entry): Likewise.
5071         (rs6000_assemble_integer): Likewise.
5072         (rs6000_elf_encode_section_info): Likewise.
5073         (rs6000_elf_declare_function_name): Do not create dot symbols
5074         or .opd section for ABI_ELFv2.
5076         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5077         (rs6000_trampoline_init): Likewise.
5078         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5080         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
5081         for function descriptors in ABI_ELFv2.
5083         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5084         on ABI_AIX only, not ABI_ELFv2.
5085         ("*call_value_indirect_aix<mode>"): Likewise.
5086         ("*call_indirect_elfv2<mode>"): New pattern.
5087         ("*call_value_indirect_elfv2<mode>"): Likewise.
5089         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5090         check for function descriptors in ABI_ELFv2.
5091         ("current_file_function_operand"): Likewise.
5093         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5094         (toc): Undefine.
5095         (FUNC_NAME): Define ELFv2 variant.
5096         (JUMP_TARGET): Likewise.
5097         (FUNC_START): Likewise.
5098         (HIDDEN_FUNC): Likewise.
5099         (FUNC_END): Likeiwse.
5101 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5103         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5104         and --with-abi=elfv2.
5105         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5106         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5107         (mabi=elfv2): Likewise.
5108         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5109         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5110         if !RS6000_BI_ARCH.
5111         (ELFv2_ABI_CHECK): New macro.
5112         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5113         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5114         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5115         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5116         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5118         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5119         (debug_stack_info): Likewise.
5120         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5121         (rs6000_legitimize_tls_address): Likewise.
5122         (rs6000_conditional_register_usage): Likewise.
5123         (rs6000_emit_move): Likewise.
5124         (init_cumulative_args): Likewise.
5125         (rs6000_function_arg_advance_1): Likewise.
5126         (rs6000_function_arg): Likewise.
5127         (rs6000_arg_partial_bytes): Likewise.
5128         (rs6000_output_function_entry): Likewise.
5129         (rs6000_assemble_integer): Likewise.
5130         (rs6000_savres_strategy): Likewise.
5131         (rs6000_stack_info): Likewise.
5132         (rs6000_function_ok_for_sibcall): Likewise.
5133         (rs6000_emit_load_toc_table): Likewise.
5134         (rs6000_savres_routine_name): Likewise.
5135         (ptr_regno_for_savres): Likewise.
5136         (rs6000_emit_prologue): Likewise.
5137         (rs6000_emit_epilogue): Likewise.
5138         (rs6000_output_function_epilogue): Likewise.
5139         (output_profile_hook): Likewise.
5140         (output_function_profiler): Likewise.
5141         (rs6000_trampoline_size): Likewise.
5142         (rs6000_trampoline_init): Likewise.
5143         (rs6000_elf_output_toc_section_asm_op): Likewise.
5144         (rs6000_elf_encode_section_info): Likewise.
5145         (rs6000_elf_reloc_rw_mask): Likewise.
5146         (rs6000_elf_declare_function_name): Likewise.
5147         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5148         except that rs6000_compat_align_parm is always assumed false.
5149         (rs6000_gimplify_va_arg): Likewise.
5150         (rs6000_call_aix): Update comment.
5151         (rs6000_sibcall_aix): Likewise.
5152         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5153         Treat ABI_ELFv2 the same as ABI_AIX.
5154         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5155         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5156         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5157         ("load_toc_aix_si"): Likewise.
5158         ("load_toc_aix_di"): Likewise.
5159         ("call"): Likewise.
5160         ("call_value"): Likewise.
5161         ("*call_local_aix<mode>"): Likewise.
5162         ("*call_value_local_aix<mode>"): Likewise.
5163         ("*call_nonlocal_aix<mode>"): Likewise.
5164         ("*call_value_nonlocal_aix<mode>"): Likewise.
5165         ("*call_indirect_aix<mode>"): Likewise.
5166         ("*call_value_indirect_aix<mode>"): Likewise.
5167         ("sibcall"): Likewise.
5168         ("sibcall_value"): Likewise.
5169         ("*sibcall_aix<mode>"): Likewise.
5170         ("*sibcall_value_aix<mode>"): Likewise.
5171         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5172         ("current_file_function_operand"): Likewise.
5174 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5176         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5177         by making use of the fact that for vector / floating point arguments
5178         passed both in VRs/FPRs and in the fixed parameter area, the partial
5179         bytes mechanism is in fact not used.
5181 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5183         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5184         (rs6000_finish_function_arg): Likewise.
5185         (rs6000_function_arg): Use rs6000_psave_function_arg and
5186         rs6000_finish_function_arg to handle both vector and floating
5187         point arguments that are also passed in GPRs / the stack.
5189 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5191         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5192         (USE_ALTIVEC_FOR_ARG_P): Likewise.
5193         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5194         (rs6000_function_arg_advance_1):Likewise.
5195         (rs6000_darwin64_record_arg_recurse): Likewise.
5196         (rs6000_function_arg): Likewise.
5197         (rs6000_arg_partial_bytes): Likewise.
5199 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5201         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5202         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5203         (rs6000_savres_strategy): Likewise.
5204         (rs6000_return_addr): Likewise.
5205         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5206         testing for ABI_V4 (since ABI_DARWIN is impossible here).
5207         (rs6000_emit_prologue): Likewise.
5208         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5209         (rs6000_elf_declare_function_name): Remove duplicated test.
5210         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5211         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5212         ("load_toc_v4_PIC_1_normal"): Likewise.
5213         ("load_toc_v4_PIC_1_476"): Likewise.
5214         ("load_toc_v4_PIC_1b"): Likewise.
5215         ("load_toc_v4_PIC_1b_normal"): Likewise.
5216         ("load_toc_v4_PIC_1b_476"): Likewise.
5217         ("load_toc_v4_PIC_2"): Likewise.
5218         ("load_toc_v4_PIC_3b"): Likewise.
5219         ("load_toc_v4_PIC_3c"): Likewise.
5220         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5221         (RS6000_SAVE_AREA): Likewise.
5222         (FP_ARG_MAX_REG): Likewise.
5223         (RETURN_ADDRESS_OFFSET): Likewise.
5224         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5225         of ABI_AIX.
5226         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5227         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5229 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5231         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5232         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
5233         Create call insn directly instead of via various gen_... routines.
5234         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5235         (rs6000_sibcall_aix): New function.
5236         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5237         (TOC_SAVE_OFFSET_64BIT): Likewise.
5238         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5239         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5240         (AIX_FUNC_DESC_SC_32BIT): Likewise.
5241         (AIX_FUNC_DESC_SC_64BIT): Likewise.
5242         ("call" expander): Call rs6000_call_aix.
5243         ("call_value" expander): Likewise.
5244         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5245         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5246         ("*call_indirect_aix<mode>"): ... by this insn pattern.
5247         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5248         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5249         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5250         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5251         ("*call_nonlocal_aix<mode>"): ... this pattern.
5252         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5253         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5254         ("*call_local_aix<mode>"): New insn pattern.
5255         ("*call_value_local_aix<mode>"): Likewise.
5256         ("sibcall" expander): Call rs6000_sibcall_aix.
5257         ("sibcall_value" expander): Likewise.  Move earlier in file.
5258         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5259         ("*sibcall_aix<mode>"): ... this pattern.
5260         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5261         ("*sibcall_value_aix<mode>"): ... this pattern.
5262         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5263         (rs6000_call_aix): Add prototype.
5264         (rs6000_sibcall_aix): Likewise.
5266 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5268         PR sanitizer/59122
5269         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5270         isn't confused by the artificial decl.
5272 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5274         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5275         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5276         Instead, add USEs of all modified call-saved CR fields to the
5277         insn storing the result to the stack slot, and provide an
5278         appropriate REG_FRAME_RELATED_EXPR for that insn.
5279         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5280         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5282 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5283             Alan Modra  <amodra@gmail.com>
5285         * function.c (assign_parms): Use all.reg_parm_stack_space instead
5286         of re-evaluating REG_PARM_STACK_SPACE target macro.
5287         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
5288         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5289         (assign_parm_find_entry_rtl): Update call.
5290         * calls.c (initialize_argument_information): Update call.
5291         (emit_library_call_value_1): Likewise.
5292         * expr.h (locate_and_pad_parm): Update prototype.
5294 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5296         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5297         arguments.
5299 2013-11-14  DJ Delorie  <dj@redhat.com>
5301         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5302         to 16 bits.
5304 2013-11-14  Jeff Law  <law@redhat.com>
5306         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5307         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5309 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5311         * doc/invoke.texi: Update documentation for AArch64's -mcpu
5312         and -mtune options.
5314 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5316         * config/aarch64/aarch64-cores.def (example-1): Remove.
5317         (example-2): Likewise.
5318         * config/aarch64/aarch64-tune.md: Regenerate.
5319         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5320         (generic_sched): Remove "large", "small".
5321         * config/aarch64/large.md: Delete.
5322         * config/aarch64/small.md: Delete.
5324 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5326         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5327         * config/aarch64/aarch64-tune.md: Regenerate.
5328         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5329         (generic_sched): "no" if we are tuning for cortexa15.
5330         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5331         relative path.
5333 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5335         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5336         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5337         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5338         (all_cores): Use cortexa53 when tuning for "generic".
5339         (aarch64_override_options): Fix comment.
5340         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5341         * config/aarch64/aarch64-generic.md: Delete.
5343 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5345         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5347 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5349         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5350         (generic_rtx_cost_table): Remove.
5351         (aarch64_rtx_costs): Use fields from cpu_cost_table.
5352         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5353         insn_extra_cost.
5354         (cpu_rtx_cost_table): Remove.
5356 2013-11-14  Julian Brown  <julian@codesourcery.com>
5357             Joey Ye  <joey.ye@arm.com>
5359         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5360         (arm_v7m_tune): New.
5361         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5362         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5363         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5364         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5366 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
5368         PR target/57491
5369         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5370         flag setting.
5372 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5373             Uros Bizjak  <ubizjak@gmail.com>
5375         PR target/59101
5376         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5377         operands[2] satisfies_constraint_Z that might have bit 31 set.
5379 2013-11-13  Jeff Law  <law@redhat.com>
5381         PR tree-optimization/59102
5382         * gimple-ssa-isolate-paths.c
5383         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5384         gimple assignment before looking at gimple_assign_lhs.
5386 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5388         * ira.c: Add comment about threads at the top of file.
5390 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5392         * ira-color.c (coalesce_allocnos): Don't allocate and free
5393         sorted_copies.
5395 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5397         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5398         equality for GIMPLE_ASSIGN.
5400 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5402         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5403         function out of ...
5404         (gimple_equal_p): ... here.
5406 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5408         * trans-mem.c (is_tm_ending): New function.
5409         * gimple.h (is_tm_ending): Declare.
5410         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5411         BUILT_IN_TM_COMMIT.
5412         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5414 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5416         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5418 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
5420         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
5421         (struct walk_stmt_info):  Relocate here from gimple.h.
5422         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
5423         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5424         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5425         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5426         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5427         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5428         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5429         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5430         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5431         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5432         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5433         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5434         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5435         (struct walk_stmt_info): Move to gimple-walk.h.
5436         (gimple_seq_set_location): Move to gimple.c
5437         * gimple-walk.c: New File.
5438         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5439         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5440         walk_stmt_load_store_ops): Relocate here from gimple.c.
5441         * gimple-iterator.c: Include gimple-iterator.h.
5442         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5443         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5444         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5445         gimple-walk.c.
5446         (gimple_seq_set_location): Relocate from gimple.h.
5447         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5448         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5449         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5450         * Makefile.in (OBJS): Add gimple-walk.o
5451         * asan.c: Update Include list as required for gimple-iterator.h and
5452         gimple-walk.h.
5453         * cfgexpand.c: Likewise.
5454         * cfgloop.c: Likewise.
5455         * cfgloopmanip.c: Likewise.
5456         * cgraph.c: Likewise.
5457         * cgraphbuild.c: Likewise.
5458         * cgraphunit.c: Likewise.
5459         * gimple-fold.c: Likewise.
5460         * gimple-low.c: Likewise.
5461         * gimple-pretty-print.c: Likewise.
5462         * gimple-ssa-isolate-paths.c: Likewise.
5463         * gimple-ssa-strength-reduction.c: Likewise.
5464         * gimple-streamer-in.c: Likewise.
5465         * gimple-streamer-out.c: Likewise.
5466         * gimplify.c: Likewise.
5467         * graphite-blocking.c: Likewise.
5468         * graphite-clast-to-gimple.c: Likewise.
5469         * graphite-dependences.c: Likewise.
5470         * graphite-interchange.c: Likewise.
5471         * graphite-optimize-isl.c: Likewise.
5472         * graphite-poly.c: Likewise.
5473         * graphite-scop-detection.c: Likewise.
5474         * graphite-sese-to-poly.c: Likewise.
5475         * graphite.c: Likewise.
5476         * ipa-inline-analysis.c: Likewise.
5477         * ipa-profile.c: Likewise.
5478         * ipa-prop.c: Likewise.
5479         * ipa-pure-const.c: Likewise.
5480         * ipa-split.c: Likewise.
5481         * lto-streamer-in.c: Likewise.
5482         * lto-streamer-out.c: Likewise.
5483         * omp-low.c: Likewise.
5484         * predict.c: Likewise.
5485         * profile.c: Likewise.
5486         * sese.c: Likewise.
5487         * tracer.c: Likewise.
5488         * trans-mem.c: Likewise.
5489         * tree-call-cdce.c: Likewise.
5490         * tree-cfg.c: Likewise.
5491         * tree-cfgcleanup.c: Likewise.
5492         * tree-complex.c: Likewise.
5493         * tree-data-ref.c: Likewise.
5494         * tree-dfa.c: Likewise.
5495         * tree-eh.c: Likewise.
5496         * tree-emutls.c: Likewise.
5497         * tree-if-conv.c: Likewise.
5498         * tree-inline.c: Likewise.
5499         * tree-into-ssa.c: Likewise.
5500         * tree-loop-distribution.c: Likewise.
5501         * tree-nested.c: Likewise.
5502         * tree-nrv.c: Likewise.
5503         * tree-object-size.c: Likewise.
5504         * tree-outof-ssa.c: Likewise.
5505         * tree-parloops.c: Likewise.
5506         * tree-predcom.c: Likewise.
5507         * tree-profile.c: Likewise.
5508         * tree-scalar-evolution.c: Likewise.
5509         * tree-sra.c: Likewise.
5510         * tree-ssa-ccp.c: Likewise.
5511         * tree-ssa-coalesce.c: Likewise.
5512         * tree-ssa-copy.c: Likewise.
5513         * tree-ssa-copyrename.c: Likewise.
5514         * tree-ssa-dce.c: Likewise.
5515         * tree-ssa-dom.c: Likewise.
5516         * tree-ssa-dse.c: Likewise.
5517         * tree-ssa-forwprop.c: Likewise.
5518         * tree-ssa-ifcombine.c: Likewise.
5519         * tree-ssa-live.c: Likewise.
5520         * tree-ssa-loop-ch.c: Likewise.
5521         * tree-ssa-loop-im.c: Likewise.
5522         * tree-ssa-loop-ivcanon.c: Likewise.
5523         * tree-ssa-loop-ivopts.c: Likewise.
5524         * tree-ssa-loop-manip.c: Likewise.
5525         * tree-ssa-loop-niter.c: Likewise.
5526         * tree-ssa-loop-prefetch.c: Likewise.
5527         * tree-ssa-loop.c: Likewise.
5528         * tree-ssa-math-opts.c: Likewise.
5529         * tree-ssa-phiopt.c: Likewise.
5530         * tree-ssa-phiprop.c: Likewise.
5531         * tree-ssa-pre.c: Likewise.
5532         * tree-ssa-propagate.c: Likewise.
5533         * tree-ssa-reassoc.c: Likewise.
5534         * tree-ssa-sink.c: Likewise.
5535         * tree-ssa-strlen.c: Likewise.
5536         * tree-ssa-structalias.c: Likewise.
5537         * tree-ssa-tail-merge.c: Likewise.
5538         * tree-ssa-ter.c: Likewise.
5539         * tree-ssa-threadedge.c: Likewise.
5540         * tree-ssa-threadupdate.c: Likewise.
5541         * tree-ssa-uncprop.c: Likewise.
5542         * tree-ssa-uninit.c: Likewise.
5543         * tree-ssa.c: Likewise.
5544         * tree-stdarg.c: Likewise.
5545         * tree-switch-conversion.c: Likewise.
5546         * tree-tailcall.c: Likewise.
5547         * tree-vect-data-refs.c: Likewise.
5548         * tree-vect-generic.c: Likewise.
5549         * tree-vect-loop-manip.c: Likewise.
5550         * tree-vect-loop.c: Likewise.
5551         * tree-vect-patterns.c: Likewise.
5552         * tree-vect-slp.c: Likewise.
5553         * tree-vect-stmts.c: Likewise.
5554         * tree-vectorizer.c: Likewise.
5555         * tree-vrp.c: Likewise.
5556         * tree.c: Likewise.
5557         * tsan.c: Likewise.
5558         * value-prof.c: Likewise.
5559         * vtable-verify.c: Likewise.
5561 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5563         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5564         fix.
5566 2013-11-13  Jeff Law  <law@redhat.com>
5568         * PR middle-end/59119
5569         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5570         function, extracted from gimple_ssa_isolate_erroneous_paths.
5571         (find_explicit_erroneous_behaviour): Similarly.
5572         (insert_trap_and_remove_trailing_statements): Remove statements
5573         in reverse order.
5575 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5577         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5578         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
5579         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5580         looking at INSN_CODE.
5581         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5582         active_insn_p object, respect basic block boundaries.
5583         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5584         follows immediately after the jump table data label.
5585         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5586         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
5587         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5589 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5591         PR ipa/58862
5592         * predict.c (drop_profile): Error is currently too strict.
5593         (handle_missing_profiles): Pass call_count to drop_profile.
5595 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5597         PR ipa/58862
5598         * ipa-inline.c (edge_badness): Fix overflow.
5600 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5602         PR rtl-optimization/59036
5603         * ira-color.c (struct allocno_color_data): Add new members
5604         first_thread_allocno, next_thread_allocno, thread_freq.
5605         (sorted_copies): New static var.
5606         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5607         (allocno_thread_conflict_p, merge_threads)
5608         (form_threads_from_copies, form_threads_from_bucket)
5609         (form_threads_from_colorable_allocno, init_allocno_threads): New
5610         functions.
5611         (bucket_allocno_compare_func): Add comparison by thread frequency
5612         and threads.
5613         (add_allocno_to_ordered_bucket): Rename to
5614         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
5615         (push_only_colorable): Call form_threads_from_bucket.
5616         (color_pass): Call init_allocno_threads.  Use
5617         consideration_allocno_bitmap instead of coloring_allocno_bitmap
5618         for nuillify allocno color data.
5619         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5620         (coalesce_allocnos): Use static sorted copies.
5622 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
5624         * passes.c (execute_todo): Don't call do_per_function if
5625         flags are zero.
5626         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5627         execute_function_dump if dump_file is NULL.
5629 2013-11-13  Martin Jambor  <mjambor@suse.cz>
5631         * cgraph.c (cgraph_get_create_node): Do what
5632         cgraph_get_create_real_symbol_node used to do.
5633         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
5634         call cgraph_get_create_node.
5635         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5636         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5637         cgraph_get_create_node.  Assert we get a node.
5639 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5641         * config/aarch64/aarch64-simd.md (vec_extract): New.
5643 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5645         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5646         the constraint.
5648 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5650         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5651         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5652         or if optimization is enabled.
5653         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5654         require that all the names based on a PARM_DECL or a RESULT_DECL that
5655         isn't ignored for debug info be coalesced.
5657 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5659         * config/c6x/c6x.c: Include "gimple-expr.h".
5661 2013-11-13  Richard Biener  <rguenther@suse.de>
5663         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5664         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5665         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5666         dealing with type mismatches inside component reference chains.
5668 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
5670         PR tree-optimization/59077
5671         * ipa-pure-const.c (better_state): Update *state.
5673 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
5675         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5676         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5677         Update offset calculations.
5679 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5681         PR ada/35998
5682         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5683         for fields.  Do not add the attribute if the size is negative.
5685 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5687         * config/arm/arm.c: Include aarch-cost-tables.h.
5688         (generic_extra_costs): Move from here...
5689         * config/arm/aarch-cost-tables.h: ... To here.  New file.
5691 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5692             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5693             Sergey Lega  <sergey.s.lega@intel.com>
5694             Anna Tikhonova  <anna.tikhonova@intel.com>
5695             Ilya Tocar  <ilya.tocar@intel.com>
5696             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5697             Ilya Verbin  <ilya.verbin@intel.com>
5698             Kirill Yukhin  <kirill.yukhin@intel.com>
5699             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5701         * config/i386/i386.c (ix86_print_operand): Support z-masking.
5702         * config/i386/predicate.md (const_0_to_4_operand): New.
5703         (const_0_to_5_operand): Ditto.
5704         * config/i386/sse.md (UNSPEC_COMPRESS): New.
5705         (UNSPEC_COMPRESS_STORE): Ditto.
5706         (UNSPEC_EXPAND): Ditto.
5707         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5708         (define_mode_attr ssescalarsize): Ditto.
5709         (avx512f_load<mode>_mask): Ditto.
5710         (avx512f_store<mode>_mask): Ditto.
5711         (avx512f_storedqu<mode>_mask): Ditto.
5712         (avx512f_vmcmp<mode>3_mask): Ditto.
5713         (avx512f_fmadd_<mode>_mask): Ditto.
5714         (avx512f_fmadd_<mode>_mask3): Ditto.
5715         (avx512f_fmsub_<mode>_mask): Ditto.
5716         (avx512f_fmsub_<mode>_mask3): Ditto.
5717         (avx512f_fnmadd_<mode>_mask): Ditto.
5718         (avx512f_fnmadd_<mode>_mask3): Ditto.
5719         (avx512f_fnmsub_<mode>_mask): Ditto.
5720         (avx512f_fnmsub_<mode>_mask3): Ditto.
5721         (avx512f_fmaddsub_<mode>_mask): Ditto.
5722         (avx512f_fmaddsub_<mode>_mask3): Ditto.
5723         (avx512f_fmsubadd_<mode>_mask): Ditto.
5724         (avx512f_fmsubadd_<mode>_mask3): Ditto.
5725         (vec_unpacku_float_lo_v16si): Ditto.
5726         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5727         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5728         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5729         (vec_extract_lo_<mode>_maskm): Ditto.
5730         (vec_extract_hi_<mode>_maskm): Ditto.
5731         (avx512f_vternlog<mode>_mask): Ditto.
5732         (avx512f_shufps512_mask): Ditto.
5733         (avx512f_fixupimm<mode>_mask): Ditto.
5734         (avx512f_shufpd512_mask): Ditto.
5735         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5736         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5737         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5738         (ashr<mode>3<mask_name>): Ditto.
5739         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5740         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5741         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5742         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5743         (avx512f_pshufdv3_mask): Ditto.
5744         (avx512f_perm<mode>_mask): Ditto.
5745         (avx512f_vpermi2var<mode>3_mask): Ditto.
5746         (avx512f_vpermt2var<mode>3_mask): Ditto.
5747         (avx512f_compress<mode>_mask): Ditto.
5748         (avx512f_compressstore<mode>_mask): Ditto.
5749         (avx512f_expand<mode>_mask): Ditto.
5750         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5751         to support masking.
5752         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5753         (<plusminus_insn><mode>3<mask_name>): Ditto.
5754         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5755         (mul<mode>3<mask_name>): Ditto.
5756         (*mul<mode>3<mask_name>): Ditto.
5757         (<sse>_div<mode>3<mask_name>): Ditto.
5758         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5759         (<sse>_sqrt<mode>2<mask_name>): Ditto.
5760         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5761         (<code><mode>3<mask_name>/smaxmin): Ditto.
5762         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5763         (*<code><mode>3<mask_name>/smaxmin): Ditto.
5764         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5765         (ufloatv16siv16sf2<mask_name>): Ditto.
5766         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5767         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5768         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5769         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5770         (ufloatv8siv8df<mask_name>): Ditto.
5771         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5772         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5773         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5774         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5775         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5776         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5777         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5778         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5779         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5780         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5781         (vec_extract_lo_<mode><mask_name>): Ditto.
5782         (vec_extract_hi_<mode><mask_name>): Ditto.
5783         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
5784         (avx512f_movddup512<mask_name>): Ditto.
5785         (avx512f_unpcklpd512<mask_name>): Ditto.
5786         (*avx512f_unpcklpd512<mask_name>): Ditto.
5787         (*avx512f_vmscalef<mode>): Ditto.
5788         (avx512f_scalef<mode><mask_name>): Ditto.
5789         (avx512f_getexp<mode><mask_name>): Ditto.
5790         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
5791         (avx512f_rndscale<mode><mask_name>): Ditto.
5792         (avx512f_shufps512_1<mask_name>): Ditto.
5793         (avx512f_shufpd512_1<mask_name>): Ditto.
5794         (<plusminus_insn><mode>3<mask_name>): Ditto.
5795         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5796         (vec_widen_umult_even_v16si<mask_name>): Ditto.
5797         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
5798         (vec_widen_smult_even_v16si<mask_name>): Ditto.
5799         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
5800         (mul<mode>3<mask_name>): Ditto.
5801         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5802         (<shift_insn><mode>3<mask_name>): Ditto.
5803         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
5804         (avx512f_<rotate><mode><mask_name>): Ditto.
5805         (<code><mode>3<mask_name>/maxmin): Ditto.
5806         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
5807         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
5808         (*andnot<mode>3<mask_name>): Ditto.
5809         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
5810         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
5811         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
5812         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
5813         (vec_set_lo_<mode><mask_name>): Ditto.
5814         (vec_set_hi_<mode><mask_name>): Ditto.
5815         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
5816         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
5817         (avx512f_pshufd_1<mask_name>): Ditto.
5818         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
5819         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
5820         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
5821         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
5822         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
5823         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
5824         (avx512er_exp2<mode><mask_name>): Ditto.
5825         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
5826         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
5827         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
5828         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
5829         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
5830         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
5831         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
5832         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
5833         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
5834         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
5835         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
5836         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
5837         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
5838         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
5839         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
5840         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
5841         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
5842         (avx512f_getmant<mode><mask_name>): Ditto.
5843         (clz<mode>2<mask_name>): Ditto.
5844         (<mask_codefor>conflict<mode><mask_name>): Ditto.
5845         (*srcp14<mode>): Remove visibility.
5846         (*rsqrt14<mode>): Ditto.
5847         (*fma_fmsub_<mode>): Ditto.
5848         (*fma_fnmadd_<mode>): Ditto.
5849         (*avx512f_rndscale<mode>): Ditto.
5850         * config/i386/subst.md: New file.
5852 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
5854         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
5855         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
5856         (atomic_load_explicit, atomic_exchange_explicit)
5857         (atomic_compare_exchange_strong_explicit)
5858         (atomic_compare_exchange_weak_explicit): Use __auto_type to
5859         declare variable initialized with PTR argument.
5861 2013-11-12  Jeff Law  <law@redhat.com>
5863         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
5864         backedge_seen_p.  Set, use and pass it to children appropriately.
5865         (thread_through_normal_block): Similarly.
5866         (thread_across_edge): Similarly.
5868         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
5869         memory references as volatile.
5870         (insert_trap_and_remove_trailing_statements): Fix comment.
5872 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
5874         PR other/58712
5875         * ira-costs.c (record_operand_costs): Check operands number for
5876         the single set.
5878 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5880         PR target/59054
5881         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
5882         constraints that would allow DImode into the traditional Altivec
5883         registers, but cause undesirable code generation when loading 0 as
5884         a constant.
5885         (movdi_internal64): Likewise.
5886         (cmp<mode>_fpr): Do not use %x for CR register output.
5887         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
5888         -mallow-upper-sf debug switches are used.
5890 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
5892         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
5893         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
5894         Relocate prototypes from gimple.h.
5895         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
5896         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
5897         from gimple.h.
5898         * gimple.h: Move some prototypes to gimplify.h.
5899         (gimple_predicate, enum fallback, enum gimplify_status): Move to
5900         gimplify.h.
5901         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
5902         Relocate from gimpify.c.
5903         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5904         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
5905         is_gimple_reg_rhs) Relocate from gimplify.c.
5906         * gimplify.c (mark_addressable): Move to gimple-expr.c.
5907         (gimple_seq_add_stmt_without_update): Move to gimple.c.
5908         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5909         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
5910         is_gimple_reg_rhs): Move to gimple-expr.c.
5911         (should_carry_location_p): Move to gimple.c.
5912         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
5913         to gimple.h.
5914         (annotate_one_with_location, annotate_all_with_location_after,
5915         annotate_all_with_location): Move to gimple.c.
5916         (compare_case_labels, sort_case_labels,
5917         preprocess_case_label_vec_for_gimple): Move to gimple.c.
5918         (rhs_predicate_for): Make static.
5919         (gimplify_assign): Relocate from gimple.c.
5920         * gimple.c (gimplify_assign): Move to gimplify.c.
5921         (gimple_seq_add_stmt_without_update, should_carry_location_p,
5922         annotate_one_with_location, annotate_all_with_location_after,
5923         annotate_all_with_location, compare_case_labels, sort_case_labels,
5924         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
5925         * tree.h (unshare_expr, unshare_expr_without_location,
5926         mark_addressable): Move prototypes to gimplify.h.
5927         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
5928         tmp_var_id_num
5929         * asan.c: Include gimplify.h rather than gimple.h.
5930         * cfgloopmanip.c: Likewise.
5931         * cgraphunit.c: Likewise.
5932         * cilk-common.c: Likewise.
5933         * dwarf2out.c: Dont include gimple.h.
5934         * fold-const.c: Include gimplify.h rather than gimple.h.
5935         * function.c: Likewise.
5936         * gimple-fold.c: Likewise.
5937         * gimple-ssa-strength-reduction.c: Likewise.
5938         * graphite-clast-to-gimple.c: Likewise.
5939         * graphite-sese-to-poly.c: Likewise.
5940         * ipa-prop.c: Likewise.
5941         * ipa-split.c: Likewise.
5942         * ipa.c: Likewise.
5943         * langhooks.c: Dont include gimple.h.
5944         * loop-init.c: Include gimplify.h rather than gimple.h.
5945         * omp-low.c: Likewise.
5946         * sese.c: Likewise.
5947         * stor-layout.c: Likewise.
5948         * targhooks.c: Likewise.
5949         * trans-mem.c: Likewise.
5950         * tree-affine.c: Likewise.
5951         * tree-cfg.c: Likewise.
5952         * tree-cfgcleanup.c: Likewise.
5953         * tree-complex.c: Likewise.
5954         * tree-if-conv.c: Likewise.
5955         * tree-inline.c: Likewise.
5956         * tree-iterator.c: Likewise.
5957         * tree-loop-distribution.c: Likewise.
5958         * tree-nested.c: Likewise.
5959         * tree-parloops.c: Likewise.
5960         * tree-predcom.c: Likewise.
5961         * tree-profile.c: Likewise.
5962         * tree-scalar-evolution.c: Likewise.
5963         * tree-sra.c: Likewise.
5964         * tree-ssa-address.c: Likewise.
5965         * tree-ssa-ccp.c: Likewise.
5966         * tree-ssa-dce.c: Likewise.
5967         * tree-ssa-forwprop.c: Likewise.
5968         * tree-ssa-ifcombine.c: Likewise.
5969         * tree-ssa-loop-im.c: Likewise.
5970         * tree-ssa-loop-ivopts.c: Likewise.
5971         * tree-ssa-loop-manip.c: Likewise.
5972         * tree-ssa-loop-niter.c: Likewise.
5973         * tree-ssa-loop-prefetch.c: Likewise.
5974         * tree-ssa-loop-unswitch.c: Likewise.
5975         * tree-ssa-math-opts.c: Likewise.
5976         * tree-ssa-phiopt.c: Likewise.
5977         * tree-ssa-phiprop.c: Likewise.
5978         * tree-ssa-pre.c: Likewise.
5979         * tree-ssa-propagate.c: Likewise.
5980         * tree-ssa-reassoc.c: Likewise.
5981         * tree-ssa-sccvn.c: Likewise.
5982         * tree-ssa-strlen.c: Likewise.
5983         * tree-ssa.c: Likewise.
5984         * tree-switch-conversio: Likewise.n.c
5985         * tree-tailcall.c: Likewise.
5986         * tree-vect-data-refs.c: Likewise.
5987         * tree-vect-generic.c: Likewise.
5988         * tree-vect-loop-manip.c: Likewise.
5989         * tree-vect-loop.c: Likewise.
5990         * tree-vect-patterns.c: Likewise.
5991         * tree-vect-stmts.c: Likewise.
5992         * tsan.c: Likewise.
5993         * value-prof.c: Likewise.
5994         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
5995         * config/alpha/alpha.c: Likewise.
5996         * config/darwin.c: Likewise.
5997         * config/i386/i386.c: Likewise.
5998         * config/ia64/ia64.c: Likewise.
5999         * config/mep/mep.c: Likewise.
6000         * config/mips/mips.c: Likewise.
6001         * config/rs6000/rs6000.c: Likewise.
6002         * config/s390/s390.c: Likewise.
6003         * config/sh/sh.c: Likewise.
6004         * config/sparc/sparc.c: Likewise.
6005         * config/spu/spu.c: Likewise.
6006         * config/stormy16/stormy16.c: Likewise.
6007         * config/tilegx/tilegx.c: Likewise.
6008         * config/tilepro/tilepro.c: Likewise.
6009         * config/xtensa/xtensa.c: Likewise.
6011 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
6013         * tree.c (grow_tree_vec_stat): New function ...
6014         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6015         and macro front-end.
6017 2013-11-12  Marek Polacek  <polacek@redhat.com>
6019         * final.c (update_alignments): Initialize label to NULL_RTX.
6021 2013-11-12  Jeff Law  <law@redhat.com>
6023         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6024         (insert_trap_and_remove_trailing_statements): New argument OP which
6025         is the NULL pointer.  Emit the trap after the load/store through
6026         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
6027         when trivial to do so.
6028         (isolate_path): Corresponding changes.
6029         (gimple_ssa_isolate_erroneous_path): Likewise.
6031 2013-11-12  Teresa Johnson  <tejohnson@google.com>
6032             Jan Hubicka  <jh@suse.cz>
6034         * predict.c (drop_profile): New function.
6035         (handle_missing_profiles): Ditto.
6036         (counts_to_freqs): Don't overwrite estimated frequencies
6037         when function has no profile counts.
6038         * predict.h (handle_missing_profiles): Declare.
6039         * tree-inline.c (freqs_to_counts): New function.
6040         (copy_cfg_body): Invoke freqs_to_counts as needed.
6041         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6043 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6045         PR target/59088
6046         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6047         Set for m_HASWELL.
6048         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6050 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6052         PR target/59084
6053         * config/i386/i386.c (ix86_option_override_internal): Check
6054         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6055         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6056         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6057         MASK_AVX256_SPLIT_UNALIGNED_STORE.
6059         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6060         Clear m_COREI7_AVX and update comments.
6061         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6063 2013-11-12  Martin Jambor  <mjambor@suse.cz>
6065         PR rtl-optimization/10474
6066         * ira.c (interesting_dest_for_shprep): New function.
6067         (split_live_ranges_for_shrink_wrap): Likewise.
6068         (find_moveable_pseudos): Move calculation of dominance info,
6069         df_analysios and the final anlyses to...
6070         (ira): ...here, call split_live_ranges_for_shrink_wrap.
6072 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
6074         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6075         Handle type conversion.
6077 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
6078             Jan Hubicka  <jh@suse.cz>
6080         * cgraph.c (dump_cgraph_node): Profile dump added.
6081         * cgraph.h (struct cgraph_node): New time profile variable added.
6082         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6083         * gcov-io.h (gcov_type): New profiler type introduced.
6084         * ipa-profile.c (lto_output_node): Streaming for time profile added.
6085         (input_node): Time profiler is read from LTO stream.
6086         * predict.c (maybe_hot_count_p): Hot prediction changed.
6087         * profile.c (instrument_values): New case for time profiler added.
6088         (compute_value_histograms): Read of time profile.
6089         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6090         * tree-profile.c (init_ic_make_global_vars): Time profiler
6091         function added.
6092         (gimple_init_edge_profiler): TP function instrumentation.
6093         (gimple_gen_time_profiler): New.
6094         * value-prof.c (gimple_add_histogram_value): Support for time profiler
6095         added.
6096         (dump_histogram_value): TP type added to dumps.
6097         (visit_hist): More sensitive check that takes TP into account.
6098         (gimple_find_values_to_profile): TP instrumentation.
6099         * value-prof.h (hist_type): New histogram type added.
6100         (struct histogram_value_t): Pointer to struct function added.
6101         * libgcc/Makefile.in: New GCOV merge function for TP added.
6102         * libgcov.c: function_counter variable introduced.
6103         (_gcov_merge_time_profile): New.
6104         (_gcov_time_profiler): New.
6106 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
6107             Jeff Law  <law@redhat.com>
6109         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6110         ao_ref_init_from_ptr_and_size for builtins.
6112 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
6113             H.J. Lu  <hongjiu.lu@intel.com>
6115         PR target/58853
6116         * config/i386/x86-tune.def
6117         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6118         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6119         * config/i386/i386.h
6120         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6121         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
6122         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6123         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6124         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6125         misaligned_prologue_used.  Check that
6126         desired_aling <= epilogue_size_needed.
6128 2013-11-11  Cong Hou  <congh@google.com>
6130         PR tree-optimization/59050
6131         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6133 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6135         PR middle-end/59049
6136         * expmed.c (emit_store_flag): Fail for const-const comparison.
6138 2013-11-11  Tristan Gingold  <gingold@adacore.com>
6139             Eric Botcazou  <ebotcazou@adacore.com>
6141         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6142         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6143         * tree.def (CONSTRUCTOR): Likewise.
6144         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
6145         * gimplify.c (gimplify_init_constructor): Do not clear the object when
6146         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6148 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
6150         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6151         diagnostic_finish.
6153 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6155         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6156         comparisons.
6158 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6160         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6162 2013-11-08  Jeff Law  <law@redhat.com>
6164         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6165         threading paths first, then perform PHI node checks if applicable.
6167 2013-11-10  Karlson2k  <k2k@narod.ru>
6168             Kai Tietz  <ktietz@redhat.com>
6170         PR plugin/52872
6171         * configure.ac: Adding for exported symbols check
6172         and for rdynamic-check executable-extension.
6173         * configure: Regenerated.
6175 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
6177         * mode-switching.c (optimize_mode_switching): Mark block as
6178         nontransparent, if last_mode at block exit is different from no_mode.
6180 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6182         * function.c (NAME__MAIN): Move to...
6183         * cfgexpand.c (NAME__MAIN): ...here.
6185 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
6187         * target.def (can_use_doloop_p): New hook.
6188         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6189         * doc/tm.texi: Regenerate.
6190         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6191         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6192         * hooks.c (hook_bool_dint_dint_uint_true): New function.
6193         * targhooks.h (can_use_doloop_if_innermost): Declare.
6194         * targhooks.c (can_use_doloop_if_innermost): New function.
6195         * target.h: Include double-int.h.
6196         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6197         Remove iteration count, maximum iteration count, loop depth and
6198         enter-at-top inputs from doloop_begin and doloop_end.
6199         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6200         interface.
6201         * config/arc/arc.c (arc_can_use_doloop_p): New function.
6202         (TARGET_CAN_USE_DOLOOP_P): Define.
6203         * config/arm/thumb2.md (doloop_end): Update for new interface.
6204         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6205         * config/bfin/bfin.md (doloop_end): Update for new interface.
6206         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6207         (TARGET_CAN_USE_DOLOOP_P): Define.
6208         * config/c6x/c6x.md (doloop_end): Update for new interface.
6209         * config/ia64/ia64.md (doloop_end): Update for new interface.
6210         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6211         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6212         interface.
6213         * config/mep/mep.c (mep_emit_doloop): Likewise.
6214         (TARGET_CAN_USE_DOLOOP_P): Define.
6215         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6216         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6217         * config/s390/s390.md (doloop_end): Update for new interface.
6218         * config/sh/sh.md (doloop_end): Likewise.
6219         * config/spu/spu.md (doloop_end): Likewise.
6220         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6221         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6222         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6223         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6224         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6225         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6226         interface.
6227         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6229 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
6231         PR other/59055
6232         * doc/extend.texi: Move Cilk Plus Builtins node before Other
6233         Builtins node.
6235 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
6236             Joseph Myers  <joseph@codesourcery.com>
6238         * ginclude/stdatomic.h: New file.
6239         * Makefile.in (USER_H): Add stdatomic.h.
6241 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6243         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6244         comparisons.
6246 2013-11-08  Jeff Law  <law@redhat.com>
6248         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6249         * tree-ssa-threadupdate.c (delete_thread_path): New function.
6250         (ssa_redirect_edges, thread_block_1): Use it.
6251         (thread_through_loop_header, mark_threaded_blocks): Likewise.
6252         (thread_through_all_blocks, register_jump_thread): Likewise.
6253         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6255 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
6257         * config/arm/aarch-common.c
6258         (search_term): New typedef.
6259         (shift_rtx_costs): New array.
6260         (arm_rtx_shift_left_p): New.
6261         (arm_find_sub_rtx_with_search_term): Likewise.
6262         (arm_find_sub_rtx_with_code): Likewise.
6263         (arm_early_load_addr_dep): Add sanity checking.
6264         (arm_no_early_alu_shift_dep): Likewise.
6265         (arm_no_early_alu_shift_value_dep): Likewise.
6266         (arm_no_early_mul_dep): Likewise.
6267         (arm_no_early_store_addr_dep): Likewise.
6269 2013-11-08  Richard Biener  <rguenther@suse.de>
6271         PR tree-optimization/59047
6272         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6274 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
6276         * common.opt (fcheck-pointer-bounds): Move to ...
6277         * c-family/c.opt: ... here.
6278         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6279         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6280         * langhooks.h (lang_hooks): Remove chkp_supported field.
6281         * toplev.c (process_options): Remove chkp_supported check.
6283 2013-11-08  Richard Biener  <rguenther@suse.de>
6285         PR tree-optimization/59038
6286         PR tree-optimization/58955
6287         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6288         previous change.  Handle known dependences correctly.
6290 2013-11-08  Tom de Vries  <tom@codesourcery.com>
6292         * config/rs6000/t-xilinx: Remove duplicate contents.
6294 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
6295             Joseph Myers  <joseph@codesourcery.com>
6297         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6298         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6299         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6300         (struct tree_base): Add atomic_flag field.
6301         * tree.h (TYPE_ATOMIC): New accessor macro.
6302         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6303         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6304         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6305         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6306         * tree.c (set_type_quals): Set TYPE_ATOMIC.
6307         (find_atomic_core_type): New function.
6308         (build_qualified_type): Adjust alignment for qualified types.
6309         (build_atomic_base): New function
6310         (build_common_tree_nodes): Build atomicQI_type_node,
6311         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6312         atomicTI_type_node.
6313         * print-tree.c (print_node): Print atomic qualifier.
6314         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6315         * target.def (atomic_assign_expand_fenv): New hook.
6316         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6317         * doc/tm.texi: Regenerate.
6318         * targhooks.c (default_atomic_assign_expand_fenv): New function.
6319         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6320         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6321         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6322         function type.
6323         * config/i386/i386.c (enum ix86_builtins): Add
6324         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6325         IX86_BUILTIN_FNCLEX.
6326         (bdesc_special_args): Add __builtin_ia32_fnstenv,
6327         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6328         (ix86_expand_builtin): Handle the new built-in functions.
6329         (ix86_atomic_assign_expand_fenv): New function.
6330         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6331         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6332         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6333         (fnstenv, fldenv, fnstsw, fnclex): New insns.
6335 2013-11-07  Steve Ellcey  <sellcey@mips.com>
6337         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6338         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6339         (MULTILIB_DIRNAMES): Add fp64 directory.
6340         (MULTILIB_EXCEPTIONS): Add new exclusions.
6342 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
6344         * gimplify.c (gimple_regimplify_operands): Do not set
6345         SSA_NAME_DEF_STMT.
6346         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6347         (rewrite_close_phi_out_of_ssa): Same.
6348         (rewrite_phi_out_of_ssa): Same.
6349         (rewrite_degenerate_phi): Same.
6350         (handle_scalar_deps_crossing_scop_limits): Same.
6351         * tree-if-conv.c (predicate_scalar_phi): Same.
6352         * tree-parloops.c (create_loads_for_reductions): Same.
6353         (create_final_loads_for_reduction): Same.
6354         (create_loads_and_stores_for_name): Same.
6355         (transform_to_exit_first_loop): Same.
6356         (create_parallel_loop): Same.
6357         * tree-ssa-loop-im.c
6358         (move_computations_dom_walker::before_dom_children): Same.
6359         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6360         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6361         * tree-ssa-propagate.c (substitute_and_fold): Same.
6362         * tree-vect-loop.c (vect_finalize_reduction): Same.
6363         * tree-vect-stmts.c (vectorizable_call): Same.
6365 2013-11-07  Mike Stump  <mikestump@comcast.net>
6367         * config/pdp11/pdp11.c: Include dbxout.h.
6368         * config/picochip/picochip.c: Likewise.
6370 2013-11-07  Cong Hou  <congh@google.com>
6372         PR tree-optimization/56764
6373         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6374         Combine alias checks if it is possible to amortize the runtime
6375         overhead.  Return the number of alias checks after merging.
6376         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6377         Use the function vect_create_cond_for_alias_checks () to check
6378         the number of alias checks.
6380 2013-11-07  Jeff Law  <law@redhat.com>
6382         * varpool.c (ctor_for_folding): Fix typo in comment.
6384 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
6386         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6387         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
6389 2013-11-07  Jeff Law  <law@redhat.com>
6391         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6393         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6394         No longer check if we have __builtin_trap, assume it's available.
6396 2013-11-07  Diego Novillo  <dnovillo@google.com>
6398         * attribs.c (lookup_scoped_attribute_spec): Make static.
6399         (get_attribute_namespace): Likewise.
6400         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6401         (validate_arglist): Move earlier in the file. Make static.
6402         (expand_stack_restore): Move from stmt.c
6403         (expand_stack_save): Move from stmt.c
6404         (rewrite_call_expr_array): Move earlier in the file.
6405         (rewrite_call_expr_valist): Likewise.
6406         * cfgexpand.c: Include hard-reg-set.h before tree.h
6407         Include recog.h.
6408         Include output.h.
6409         (expand_asm_loc): Move from stmt.c.
6410         (n_occurrences): Move from stmt.c.
6411         (check_operand_nalternatives): Move from stmt.c.
6412         (tree_conflicts_with_clobbers_p): Move from stmt.c.
6413         (expand_asm_operands): Move from stmt.c
6414         (expand_asm_stmt): Move from stmt.c
6415         (expand_computed_goto): Move from stmt.c
6416         (expand_goto): Move from stmt.c
6417         (expand_null_return_1): Move from stmt.c
6418         (expand_null_return): Move from stmt.c
6419         (expand_value_return): Move from stmt.c
6420         (expand_return): Move from stmt.c
6421         (expand_main_function): Move from function.c
6422         (stack_protect_prologue): Move from function.c
6423         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6424         (build_function_decl_skip_args): Move from tree.c.
6425         * explow.c (tree_expr_size): Move from tree.c.
6426         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6427         (fields_length): Move from tree.c.
6428         * fold-const.c (size_low_cst): Move from tree.c.
6429         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6430         (tree_expr_nonzero_p): Make static. Move earlier in the file.
6431         (fold_build3_initializer_loc): Remove.
6432         (tree_invalid_nonnegative_warnv_p): Make static.
6433         * function.c (expand_main_function): Move to cfgexpand.c.
6434         (stack_protect_prologue): Move to cfgexpand.c.
6435         (set_insn_locations): Move earlier in the file.
6436         * gimple-fold.c: Include langhooks.h.
6437         (truth_type_for): Move from tree.c.
6438         * print-tree.c (print_vec_tree): Remove.
6439         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6440         (expand_goto): Move to cfgexpand.c.
6441         (n_occurrences): Move to cfgexpand.c.
6442         (expand_asm_loc): Move to cfgexpand.c
6443         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6444         (expand_asm_operands): Move to cfgexpand.c.
6445         (expand_asm_stmt): Move to cfgexpand.c.
6446         (check_operand_nalternatives): Move to cfgexpand.c
6447         (expand_null_return): Move to cfgexpand.c.
6448         (expand_value_return): Move to cfgexpand.c.
6449         (expand_null_return_1): Move to cfgexpand.c.
6450         (expand_return): Move to cfgexpand.c.
6451         (expand_stack_save): Move to builtins.c.
6452         (expand_stack_restore): Move to builtins.c
6453         * symtab.c: Include output.h.
6454         (decl_assembler_name_hash): Move from tree.c.
6455         (decl_assembler_name_equal): Move from tree.c.
6456         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6457         * tree-eh.c (in_array_bounds_p): Move from tree.c.
6458         (range_in_array_bounds_p): Move from tree.c.
6459         * tree-object-size.c (fini_object_sizes): Make static.
6460         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6461         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6462         * tree.c (decl_assembler_name_equal): Move to symtab.c.
6463         (tree_expr_size): Move to explow.c.
6464         (decl_assembler_name_hash): Move to symtab.c.
6465         (real_twop): Remove.
6466         (tree_expr_size): Move to explow.c.
6467         (stabilize_reference_1): Move earlier in the file. Make static.
6468         (omp_remove_redundant_declare_simd_attrs): Remove.
6469         (simple_cst_list_equal): Move earlier in the file. Make static.
6470         (size_low_cst): Move to fold-const.c.
6471         (build_type_no_quals): Remove.
6472         (build_function_type_skip_args): Move to cgraphclones.c.
6473         (build_function_decl_skip_args): Move to cgraphclones.c.
6474         (in_array_bounds_p): Move to tree-eh.c.
6475         (range_in_array_bounds_p): Move to tree-eh.c.
6476         (truth_type_for): Move to gimple-fold.c.
6477         (list_equal_p): Remove.
6478         * tree.h (decl_assembler_name_equal): Remove.
6479         (decl_assembler_name_hash): Remove.
6480         (truth_type_for): Remove.
6481         (build_type_no_quals): Remove.
6482         (build_function_decl_skip_args): Remove.
6483         (in_array_bounds_p): Remove.
6484         (range_in_array_bounds_p): Remove.
6485         (size_low_cst): Remove.
6486         (omp_remove_redundant_declare_simd_attrs): Remove.
6487         (tree_expr_size): Remove.
6488         (fields_length): Remove.
6489         (stabilize_reference_1): Remove.
6490         (expand_goto): Remove.
6491         (expand_stack_save): Remove.
6492         (expand_stack_restore): Remove.
6493         (expand_return): Remove.
6494         (fold_build3_initializer_loc): Remove.
6495         (tree_expr_nonzero_p): Remove.
6496         (tree_invalid_nonnegative_warnv_p): Remove.
6497         (tree_expr_nonzero_warnv_p): Remove.
6498         (fold_builtin_snprintf_chk): Remove.
6499         (validate_arglist): Remove.
6500         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6501         (simple_cst_list_equal): Remove.
6502         (real_twop): Remove.
6503         (expand_main_function): Remove.
6504         (stack_protect_prologue): Remove.
6505         (print_vec_tree): Remove.
6506         (lookup_scoped_attribute_spec): Remove.
6507         (get_attribute_namespace): Remove.
6508         (expand_computed_goto): Remove.
6509         (expand_asm_stmt): Remove.
6510         (list_equal_p): Remove.
6511         (ssa_name_nonnegative_p): Remove.
6512         (fini_object_sizes): Remove.
6513         (addr_expr_of_non_mem_decl_p): Remove.
6514         (is_tm_safe_or_pure): Move to trans-mem.c.
6515         (more_const_call_expr_args_p): Remove.
6516         (save_vtable_map_decl): Remove.
6518 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
6520         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6521         linker plugins, too.
6523         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6524         link to libgomp and its dependencies.
6525         * config/ia64/hpux.h (LIB_SPEC): Likewise.
6526         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6527         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6528         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6530 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
6532         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6533         (determine_value_range): Add loop argument.  Use get_range_info to
6534         improve range.
6535         (bound_difference): Adjust caller.
6537 2013-11-07  Richard Biener  <rguenther@suse.de>
6538             Jakub Jelinek  <jakub@redhat.com>
6540         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6541         latches from header PHI arguments from the latch edge.
6543 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
6545         PR c++/58176
6546         * varasm.c (output_constant): Handle NULLPTR_TYPE.
6548 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6550         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6551         misaligned_prologue_used when it has been set.
6553 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
6554             Jakub Jelinek  <jakub@redhat.com>
6556         PR sanitizer/59029
6557         * asan.c (get_mem_refs_of_builtin_call): Allow
6558         integer literals as addresses in instrumented builtins.
6560 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6562         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6563         Explain why plus_constant is not used.
6565 2013-11-07  Richard Biener  <rguenther@suse.de>
6567         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6568         (canonicalize_value): ... this.  Also handle stripping of
6569         TREE_OVERFLOW.
6570         (get_value, set_lattice_value, get_value_for_expr): Adjust.
6571         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6572         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6574 2013-11-07  Richard Biener  <rguenther@suse.de>
6576         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6578 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6580         PR target/59034
6581         * config/i386/i386.md (push peepholer/splitter): Use Pmode
6582         with stack_pointer_rtx.
6584 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6586         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6587         using operand_equal_p.
6589 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6591         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6592         * tree-affine.c (get_inner_reference_aff): Return base.
6593         * tree-affine.h (get_inner_reference_aff): Change prototype.
6595 2013-11-06  Tobias Burnus  <burnus@net-b.de>
6597         * doc/invoke.texi (Wdate-time): Fix typo.
6599 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6601         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6602         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6603         fp_arith_reg_operand instead of arith_reg_operand.
6605 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6607         * config/sh/sh.md (adddi3): Remove empty constraints.
6608         Remove can_create_pseudo_p and arith_reg_operand check.
6609         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6610         Split before reload.
6612 2013-11-06  Jeff Law  <law@redhat.com>
6613             Tom Tromey  <tromey@redhat.com>
6615         * gdbinit.in: Disable strict type checking.
6617 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
6619         * tree-pass.h (make_pass_live_range_shrinkage): New external.
6620         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6621         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6622         (rest_of_handle_live_range_shrinkage): Ditto
6623         (class pass_live_range_shrinkage): Ditto.
6624         (pass_data_live_range_shrinkage): Ditto.
6625         (make_pass_live_range_shrinkage): Ditto.
6626         * sched-int.h (initialize_live_range_shrinkage): New prototype.
6627         (finish_live_range_shrinkage): Ditto.
6628         * sched-deps.c (create_insn_reg_set): Make void return value.
6629         * passes.def: Add pass_live_range_shrinkage.
6630         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6631         * haifa-sched.c (live_range_shrinkage_p): New.
6632         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6633         New functions.
6634         (rank_for_schedule): Add code for pressure relief through live
6635         range shrinkage.
6636         (schedule_insn): Print more debug info.
6637         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6638         through live range shrinkage.
6639         * doc/invoke.texi (-flive-range-shrinkage): New.
6640         * common.opt (flive-range-shrinkage): New.
6642 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
6644         PR target/59021
6645         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6646         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6647         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6648         RTXes that return in AVX256 register.
6650 2013-11-06  Richard Biener  <rguenther@suse.de>
6652         PR tree-optimization/58653
6653         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6654         (prepare_initializers_chain): Adjust.
6656 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
6658         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6659         (gimple_in_transaction): Use bb_in_transaction.
6660         * basic-block.h (bb_in_transaction): Relocate here and rename.
6661         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6663 2013-11-06  Richard Biener  <rguenther@suse.de>
6665         * tree.c (drop_tree_overflow): New function.
6666         * tree.h (drop_tree_overflow): Declare.
6667         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6668         * tree-vrp.c (range_int_cst_singleton_p): Use
6669         is_overflow_infinity instead of testing TREE_OVERFLOW.
6670         (extract_range_from_assert): Likewise.
6671         (zero_nonzero_bits_from_vr): Likewise.
6672         (extract_range_basic): Likewise.
6673         (register_new_assert_for): Use drop_tree_overflow.
6674         (vrp_visit_phi_node): Likewise.
6676 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6678         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6679         checking for leaf functions without dynamic stack allocation.
6680         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6681         (ia64_expand_prologue): Likewise.
6682         * config/mips/mips.c (mips_expand_prologue): Likewise.
6683         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6684         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6685         (sparc_flat_expand_prologue): Likewise.
6687 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
6689         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
6690         (__ST3_LANE_FUNC): Likewise.
6691         (__ST4_LANE_FUNC): Likewise.
6693 2013-11-06  Nick Clifton  <nickc@redhat.com>
6695         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
6696         name returned by msp430_mcu_name.
6697         (LIB_SPEC): If a -T option has not been specified then set a
6698         default, mcu-specific, linker script.
6699         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6700         * config/msp430/msp430.c (msp430x_names): Likewise.
6701         Alpha sort the names for ease of comparison.
6702         (msp430_mcu_name): New function:  Returns a string suitable for
6703         use as a C preprocessor symbol based upon the name of the MCU
6704         being targeted.
6705         (msp430_option_override): Accept msp430x and msp430xv2 as generic
6706         mcu names.
6707         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6709         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6710         unless it is the last part of a spec substring.
6711         * doc/invoke.texi (Spec Files): Document space insertion
6712         behaviour of %*.
6714 2013-11-06  Christian Bruel  <christian.bruel@st.com>
6716         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6717         Factorize probabilities, Use adjust_address instead of
6718         adjust_automodify_address when possible. Enable for optimize.
6719         (sh_expand_strlen): New function.
6720         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6721         * config/sh/sh.md (strlensi): New pattern.
6722         (UNSPEC_BUILTIN_STRLEN): Define.
6724 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
6726         PR middle-end/58970
6727         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6728         (expand_assignment): If *bitpos is negative, set *offset
6729         and adjust *bitpos, so that it is not negative.
6731 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
6733         * config/i386/bdver3.md : Added two additional decoder units
6734         to support issue rate of 4 and remodeled vector unit.
6735         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6736         architectures is set to 4.
6737         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6738         lookahead is set to 4 for BD architectures.
6740 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6742         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6743         Remove restriction against use of VSX instructions when generating
6744         code for little endian mode.
6746 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6748         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6749         for both big and little endian.
6750         (mulv8hi3): Swap input operands for merge high and merge low
6751         instructions for little endian.
6753 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6755         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6756         define_insn to define_expand that uses even patterns for big
6757         endian and odd patterns for little endian.
6758         (vec_widen_smult_even_v16qi): Likewise.
6759         (vec_widen_umult_even_v8hi): Likewise.
6760         (vec_widen_smult_even_v8hi): Likewise.
6761         (vec_widen_umult_odd_v16qi): Likewise.
6762         (vec_widen_smult_odd_v16qi): Likewise.
6763         (vec_widen_umult_odd_v8hi): Likewise.
6764         (vec_widen_smult_odd_v8hi): Likewise.
6765         (altivec_vmuleub): New define_insn.
6766         (altivec_vmuloub): Likewise.
6767         (altivec_vmulesb): Likewise.
6768         (altivec_vmulosb): Likewise.
6769         (altivec_vmuleuh): Likewise.
6770         (altivec_vmulouh): Likewise.
6771         (altivec_vmulesh): Likewise.
6772         (altivec_vmulosh): Likewise.
6774 2013-11-05  Mike Stump  <mikestump@comcast.net>
6776         * Makefile.in (mostlyclean): Remove c-family objects.
6778 2013-11-05  Ian Lance Taylor  <iant@google.com>
6780         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6781         If possible, add .cfi directives to record change to bx.
6782         * config/i386/i386.c (ix86_emit_cfi): New function.
6783         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
6785 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
6787         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
6788         immediately after a label for a tablejump pattern.
6790         * config/arm/arm.c (is_jump_table): Remove.
6791         (create_fix_barrier): Use tablejump_p instead.
6792         (arm_reorg): Likewise.
6793         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
6794         (thumb2_output_casesi): Likewise.
6795         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
6796         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
6797         casesi_shift_media, casesi_load_media): Likewise.
6798         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
6799         * config/microblaze/microblaze.md: Likewise.
6801 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6803         * doc/invoke.texi (-Wdate-time): Document.
6805 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
6807         * double-int.c (lshift_double, rshift_double): Remove
6808         SHIFT_COUNT_TRUNCATED handling.
6810 2013-11-05  Jeff Law  <law@redhat.com>
6812         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
6813         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
6814         * gimple-ssa-isolate-paths.c: New file.
6815         * gimple.c (check_loadstore): New function.
6816         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
6817         Verify OP is in the argument list and the argument corresponding
6818         to OP is a pointer type.  Use operand_equal_p rather than
6819         pointer equality when testing if OP is on the nonnull list.
6820         Use check_loadstore rather than count_ptr_derefs.  Handle
6821         GIMPLE_RETURN statements.
6822         * tree-vrp.c (infer_nonnull_range): Remove.
6823         * gimple.h (infer_nonnull_range): Declare.
6824         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
6825         * passes.def: Add pass_isolate_erroneous_paths.
6826         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
6827         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
6828         * tree-ssa.c (struct count_ptr_d): Remove.
6829         (count_ptr_derefs, count_uses_and_derefs): Remove.
6830         * tree-ssa.h (count_uses_and_derefs): Remove.
6832 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6834         PR rtl-optimization/58997
6835         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
6836         get_iv_value to be in iv->mode rather than iv->extend_mode.
6837         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
6838         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
6839         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
6840         mode.
6842 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6844         * gimple.h: Move some prototypes to gimple-expr.h and add to include
6845         list.
6846         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
6847         Move to gimple-expr.h.
6848         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
6849         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
6850         is_gimple_id, virtual_operand_p, is_gimple_addressable,
6851         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
6852         Relocate here.
6853         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
6854         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
6855         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
6856         is_gimple_address, is_gimple_invariant_address,
6857         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6858         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
6859         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
6860         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
6861         gimple_decl_printable_name, useless_type_conversion_p,
6862         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
6863         gimple-expr.[ch].
6864         * gimple-expr.c: New File.
6865         (useless_type_conversion_p, gimple_set_body, gimple_body,
6866         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
6867         gimple_can_coalesce_p, extract_ops_from_tree_1,
6868         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
6869         is_gimple_address, is_gimple_invariant_address,
6870         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6871         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
6872         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
6873         is_gimple_mem_ref_addr): Relocate here.
6874         * Makefile.in (OBJS): Add gimple-expr.o.
6876 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
6878         * gengtype-parse.c (struct_field_seq): Support empty structs.
6880 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6882         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
6884 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6886         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
6887         for !TARGET_80387.
6888         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
6889         _SOFT_FLOAT here.
6890         (LONG_DOUBLE_TYPE_SIZE): New define.
6891         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
6893 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
6895         PR c++/58724
6896         * doc/extend.texi [visibility ("visibility_type")]: Add example
6897         about visibility attribute on namespace declaration.
6899 2013-11-05  Richard Biener  <rguenther@suse.de>
6901         PR ipa/58492
6902         * passes.def (all_passes): Start with pass_fixup_cfg again.
6904 2013-11-05  Richard Biener  <rguenther@suse.de>
6906         PR tree-optimization/58955
6907         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
6908         edge direction.
6910 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6912         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
6913         little endian.
6914         (vec_pack_ufix_trunc_v2df): Likewise.
6916 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
6918         PR middle-end/58981
6919         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
6920         pattern, instead of word_mode.
6922         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
6923         Pmode for size.
6924         (set_storage_via_setmem): Likewise.
6926 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6928         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
6929         gimple.h and the rest of the condition in eliminate_build.
6930         (eliminate_build): Call new routine.
6931         * gimple.h (phi_ssa_name_p): Delete.
6933 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
6935         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
6936         case of no prefix and reserving zero slots, because when that's the
6937         case we'll never get here.
6938         * vec.h (va_heap::reserve): Don't try and handle
6939         vec_prefix::calculate_allocation returning zero because that should
6940         never happen.
6942 2013-11-05  Richard Biener  <rguenther@suse.de>
6944         PR middle-end/58941
6945         * tree-dfa.c (get_ref_base_and_extent): Merge common code
6946         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
6947         process trailing array detection before diving into the
6948         view-converted object (and possibly apply some extra offset).
6950 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
6952         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
6953         New function.
6954         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
6956 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6958         PR tree-optimization/58958
6959         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
6960         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6962 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6964         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
6965         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
6967 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6969         PR tree-optimization/58984
6970         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
6971         set *SIZE_P if non-NULL on success.
6972         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
6973         callers.
6974         (ipcp_transform_function): Likewise.  Punt if size of access
6975         is different from TYPE_SIZE on v->value's type.
6977 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6979         * doc/invoke.texi (-fopenmp-simd): Document new option.
6980         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
6981         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
6982         * tree.c (attribute_value_equal): Ditto.
6984 2013-11-04  Wei Mi  <wmi@google.com>
6986         * sched-rgn.c (add_branch_dependences): Keep insns in
6987         a SCHED_GROUP at the end of BB to remain their location.
6989 2013-11-04  Wei Mi  <wmi@google.com>
6991         * config/i386/i386.c (memory_address_length): Extract a part
6992         of code to rip_relative_addr_p.
6993         (rip_relative_addr_p): New Function.
6994         (ix86_macro_fusion_p): Ditto.
6995         (ix86_macro_fusion_pair_p): Ditto.
6996         * config/i386/i386.h: Add new tune features about macro-fusion.
6997         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6998         * doc/tm.texi: Generated.
6999         * doc/tm.texi.in: Ditto.
7000         * haifa-sched.c (try_group_insn): New Function.
7001         (group_insns_for_macro_fusion): Ditto.
7002         (sched_init): Call group_insns_for_macro_fusion.
7003         * target.def: Add two hooks: macro_fusion_p and
7004         macro_fusion_pair_p.
7006 2013-11-04  Kostya Serebryany  <kcc@google.com>
7008         Update to match the changed asan API.
7009         * asan.c (asan_function_start): New function.
7010         (asan_emit_stack_protection): Update the string stored in the
7011         stack red zone to match new API.  Store the PC of the current
7012         function in the red zone.
7013         (asan_global_struct): Update the __asan_global definition to match
7014         the new API.
7015         (asan_add_global): Ditto.
7016         * asan.h (asan_function_start): New prototype.
7017         * final.c (final_start_function): Call asan_function_start.
7018         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7019         to __asan_init_v3.
7021 2013-11-04  Wei Mi  <wmi@google.com>
7023         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7024         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7025         * config/i386/i386.c (ix86_option_override_internal): Ditto.
7026         (ix86_issue_rate): Ditto.
7027         (ix86_adjust_cost): Ditto.
7028         (ia32_multipass_dfa_lookahead): Ditto.
7029         (ix86_sched_init_global): Ditto.
7030         (get_builtin_code_for_version): Ditto.
7031         * config/i386/i386.h (enum target_cpu_default): Ditto.
7032         (enum processor_type): Ditto.
7033         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7035 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7037         PR rtl-optimization/58967
7038         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7039         !lra_in_progress for mode sizes bigger word.
7041 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7043         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7044         arguments to merge instruction for little endian.
7045         (vec_widen_umult_lo_v16qi): Likewise.
7046         (vec_widen_smult_hi_v16qi): Likewise.
7047         (vec_widen_smult_lo_v16qi): Likewise.
7048         (vec_widen_umult_hi_v8hi): Likewise.
7049         (vec_widen_umult_lo_v8hi): Likewise.
7050         (vec_widen_smult_hi_v8hi): Likewise.
7051         (vec_widen_smult_lo_v8hi): Likewise.
7053 2013-11-04  Ian Lance Taylor  <iant@google.com>
7055         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7056         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7057         builtins that take pointers.
7058         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7059         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7060         (run_gcc): Pass -fnon-call-exceptions.
7062 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7064         * optabs.c (expand_vec_perm): Revert one incorrect line from
7065         2013-10-31 change.
7067         PR tree-optimization/58978
7068         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7069         use_stmt by single_imm_use directly.  Only call single_imm_use
7070         on SSA_NAMEs.
7072 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7074         PR rtl-optimization/58968
7075         * lra-spills.c (return_regno_p): New function.
7076         (lra_final_code_change): Use it.
7078 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
7080         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7081         * target.def (float_exceptions_rounding_supported_p): New hook.
7082         * targhooks.c (default_float_exceptions_rounding_supported_p): New
7083         function.
7084         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7085         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7086         New @hook.
7087         * doc/tm.texi: Regenerate.
7088         * config.gcc (powerpc*-*-linux*): Set extra_objs.
7089         * config/rs6000/rs6000-linux.c: New file.
7090         * config/rs6000/rs6000-protos.h
7091         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7092         * config/rs6000/linux.h
7093         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7094         * config/rs6000/linux64.h
7095         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7096         * config/rs6000/t-linux (rs6000-linux.o): New rule.
7097         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7099 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7101         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7102         Replace the define_insn_and_split with a define_insn and two
7103         define_splits, with the split after reload re-permuting the source
7104         register to its original value.
7105         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7106         (*vsx_le_perm_store_v8hi): Likewise.
7107         (*vsx_le_perm_store_v16qi): Likewise.
7109 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7111         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
7112         little endian.
7114 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7116         PR tree-optimization/58946
7117         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7118         bbs with bbinfo[idx].op != NULL before all blocks with
7119         bbinfo[idx].op == NULL.
7121 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
7123         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7124         (avr_dump_double_int_hex): Likewise.
7125         (avr_log_vadump): Remove %D and %X handling.
7126         * config/avr/avr.c (avr_double_int_push_digit): Delete.
7127         (avr_map_op_t): Change map from double_int to unsigned int.
7128         (avr_map_op): Update accordingly.
7129         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7130         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7131         unsigned ints rather than double_ints.
7133 2013-11-03  Marek Polacek  <polacek@redhat.com>
7135         Implement -fsanitize=vla-bound.
7136         * opts.c (common_handle_option): Handle vla-bound.
7137         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7138         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7139         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7141 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7143         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7144         little endian.
7146 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
7148         * config/i386/constraints.md (Ts, Tv): New address constrains.
7149         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7150         constraint for address_no_seg_operand.
7151         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7152         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7153         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7154         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7155         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7156         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7157         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7158         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7159         constraint for vsib_address_operand.
7161 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
7163         * gcse.c (pre_delete): Remove references to regmove from comments.
7164         * recog.c: (validate_replace_rtx_1): Likewise.
7165         * config/rl78/rl78.c: Likewise.
7166         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7167         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7168         * common/config/mmix/mmix-common.c: Likewise.
7170 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
7172         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7173         * gimplify.c (gimplify_compound_lval): Likewise.
7174         * graphite-clast-to-gimple.c (gloog): Likewise.
7175         * graphite-dependences.c (loop_is_parallel_p): Likewise.
7176         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7177         (limit_scop); Likewise.
7178         (build_scops): Likewise.
7179         (dot_scop): Likewise.
7180         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7181         (build_scop_drs): Likewise.
7182         (insert_stmts): Likewise.
7183         (insert_out_of_ssa_copy): Likewise.
7184         (remove_phi): Likewise.
7185         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7186         * hw-doloop.c (discover_loop): Likewise.
7187         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7188         * tree-dfa.c (dump_enumerated_decls): Likewise.
7189         * tree-if-conv.c (if_convertable_loop_p): Likewise.
7190         * tree-inline.c (tree_function_versioning): Likewise.
7191         * tree-loop-distribution.c (build_rdg): Likewise.
7192         (rdg_flag_vertex_and_dependent): Likewise.
7193         (distribute_loop): Likewise.
7194         * tree-parloops.c (loop_parallel_p): Likewise.
7195         (eliminate_local_variables): Likewise.
7196         (separate_decls_in_region): Likewise.
7197         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7198         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7199         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7200         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7201         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7202         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7203         (vectorizable_condition): Likewise.
7205 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
7207         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7208         * configure: Regenerate.
7209         * config/i386/i386.md (*movdi_internal): Change
7210         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7211         (*movdf_internal): Ditto.
7212         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7213         * config/i386/sse.md (vec_concatv2di): Output interunit movq
7214         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7216 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
7218         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7219         after comment.
7221 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7223         Automated part of renaming of symtab_node_base to symtab_node.
7225         Patch autogenerated by rename_symtab.py from
7226         https://github.com/davidmalcolm/gcc-refactoring-scripts
7227         revision 58bb219cc090b2f4516a9297d868c245495ee622
7228         with ChangeLog entry fixed up by hand.
7230         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7231         symtab_node.
7232         (cgraph_node_for_asm): Likewise.
7233         * cgraph.h (symtab_node_base): Likewise.
7234         (cgraph_node): Likewise.
7235         (varpool_node): Likewise.
7236         (is_a_helper <cgraph_node>::test): Likewise.
7237         (is_a_helper <varpool_node>::test): Likewise.
7238         (symtab_nodes): Likewise.
7239         (symtab_register_node): Likewise.
7240         (symtab_unregister_node): Likewise.
7241         (symtab_remove_node): Likewise.
7242         (symtab_get_node): Likewise.
7243         (symtab_node_for_asm): Likewise.
7244         (symtab_node_asm_name): Likewise.
7245         (symtab_node_name): Likewise.
7246         (symtab_insert_node_to_hashtable): Likewise.
7247         (symtab_add_to_same_comdat_group): Likewise.
7248         (symtab_dissolve_same_comdat_group_list): Likewise.
7249         (dump_symtab_node): Likewise.
7250         (debug_symtab_node): Likewise.
7251         (dump_symtab_base): Likewise.
7252         (verify_symtab_node): Likewise.
7253         (verify_symtab_base): Likewise.
7254         (symtab_used_from_object_file_p): Likewise.
7255         (symtab_alias_ultimate_target): Likewise.
7256         (symtab_resolve_alias): Likewise.
7257         (fixup_same_cpp_alias_visibility): Likewise.
7258         (symtab_for_node_and_aliases): Likewise.
7259         (symtab_nonoverwritable_alias): Likewise.
7260         (availability symtab_node_availability): Likewise.
7261         (symtab_semantically_equivalent_p): Likewise.
7262         (fixup_same_cpp_alias_visibility): Likewise.
7263         (symtab_prevail_in_asm_name_hash): Likewise.
7264         (cgraph): Likewise.
7265         (varpool): Likewise.
7266         (varpool_first_variable): Likewise.
7267         (varpool_next_variable): Likewise.
7268         (varpool_first_static_initializer): Likewise.
7269         (varpool_next_static_initializer): Likewise.
7270         (varpool_first_defined_variable): Likewise.
7271         (varpool_next_defined_variable): Likewise.
7272         (cgraph_first_defined_function): Likewise.
7273         (cgraph_next_defined_function): Likewise.
7274         (cgraph_first_function): Likewise.
7275         (cgraph_next_function): Likewise.
7276         (cgraph_first_function_with_gimple_body): Likewise.
7277         (cgraph_next_function_with_gimple_body): Likewise.
7278         (symtab_alias_target): Likewise.
7279         (symtab_real_symbol_p): Likewise.
7280         (symtab_can_be_discarded): Likewise.
7281         * cgraphbuild.c (mark_address): Likewise.
7282         (mark_load): Likewise.
7283         (mark_store): Likewise.
7284         * cgraphunit.c (decide_is_symbol_needed): Likewise.
7285         (first): Likewise.
7286         (enqueue_node): Likewise.
7287         (referred_to_p): Likewise.
7288         (cgraph_process_same_body_aliases): Likewise.
7289         (analyze_functions): Likewise.
7290         (handle_alias_pairs): Likewise.
7291         (output_weakrefs): Likewise.
7292         (compile): Likewise.
7293         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7294         * ipa-inline-analysis.c (inline_write_summary): Likewise.
7295         * ipa-prop.c (remove_described_reference): Likewise.
7296         (try_decrement_rdesc_refcount): Likewise.
7297         (ipa_edge_duplication_hook): Likewise.
7298         * ipa-ref.c (ipa_record_reference): Likewise.
7299         (ipa_maybe_record_reference): Likewise.
7300         (ipa_clone_ref): Likewise.
7301         (ipa_clone_references): Likewise.
7302         (ipa_clone_referring): Likewise.
7303         (ipa_find_reference): Likewise.
7304         (ipa_remove_stmt_references): Likewise.
7305         (ipa_clear_stmts_in_references): Likewise.
7306         * ipa-ref.h (symtab_node_base): Likewise.
7307         (ipa_ref): Likewise.
7308         (ipa_record_reference): Likewise.
7309         (ipa_maybe_record_reference): Likewise.
7310         (ipa_clone_references): Likewise.
7311         (ipa_clone_referring): Likewise.
7312         (ipa_clone_ref): Likewise.
7313         (ipa_find_reference): Likewise.
7314         (ipa_remove_stmt_references): Likewise.
7315         (ipa_clear_stmts_in_references): Likewise.
7316         * ipa-reference.c (ipa_reference_write_optimization_summary):
7317         Likewise.
7318         * ipa.c (enqueue_node): Likewise.
7319         (process_references): Likewise.
7320         (walk_polymorphic_call_targets): Likewise.
7321         (symtab_remove_unreachable_nodes): Likewise.
7322         (address_taken_from_non_vtable_p): Likewise.
7323         (comdat_can_be_unshared_p_1): Likewise.
7324         (comdat_can_be_unshared_p): Likewise.
7325         (can_replace_by_local_alias): Likewise.
7326         (function_and_variable_visibility): Likewise.
7327         * is-a.h: Likewise (within example in comment).
7328         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7329         (lto_symtab_encoder_encode): Likewise.
7330         (lto_symtab_encoder_delete_node): Likewise.
7331         (lto_symtab_encoder_in_partition_p): Likewise.
7332         (lto_set_symtab_encoder_in_partition): Likewise.
7333         (output_refs): Likewise.
7334         (compute_ltrans_boundary): Likewise.
7335         (output_symtab): Likewise.
7336         (input_node): Likewise.
7337         (input_ref): Likewise.
7338         (input_edge): Likewise.
7339         (input_cgraph_1): Likewise.
7340         (input_refs): Likewise.
7341         (output_cgraph_opt_summary): Likewise.
7342         (input_node_opt_summary): Likewise.
7343         (input_cgraph_opt_section): Likewise.
7344         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7345         Likewise.
7346         * lto-streamer-out.c (lto_output): Likewise.
7347         (output_symbol_p): Likewise.
7348         (produce_symtab): Likewise.
7349         * lto-streamer.h (lto_encoder_entry): Likewise.
7350         (lto_free_function_in_decl_state_for_node): Likewise.
7351         (lto_symtab_encoder_encode): Likewise.
7352         (lto_symtab_encoder_delete_node): Likewise.
7353         (lto_symtab_encoder_in_partition_p): Likewise.
7354         (lto_set_symtab_encoder_in_partition): Likewise.
7355         (lto_symtab_encoder_lookup): Likewise.
7356         (lsei_node): Likewise.
7357         (lto_symtab_encoder_deref): Likewise.
7358         * symtab.c (symtab_hash): Likewise.
7359         (assembler_name_hash): Likewise.
7360         (symtab_nodes): Likewise.
7361         (hash_node): Likewise.
7362         (eq_node): Likewise.
7363         (hash_node_by_assembler_name): Likewise.
7364         (eq_assembler_name): Likewise.
7365         (insert_to_assembler_name_hash): Likewise.
7366         (unlink_from_assembler_name_hash): Likewise.
7367         (symtab_prevail_in_asm_name_hash): Likewise.
7368         (symtab_register_node): Likewise.
7369         (symtab_insert_node_to_hashtable): Likewise.
7370         (symtab_unregister_node): Likewise.
7371         (symtab_get_node): Likewise.
7372         (symtab_remove_node): Likewise.
7373         (symtab_initialize_asm_name_hash): Likewise.
7374         (symtab_node_for_asm): Likewise.
7375         (symtab_add_to_same_comdat_group): Likewise.
7376         (symtab_dissolve_same_comdat_group_list): Likewise.
7377         (symtab_node_asm_name): Likewise.
7378         (symtab_node_name): Likewise.
7379         (dump_symtab_base): Likewise.
7380         (dump_symtab_node): Likewise.
7381         (dump_symtab): Likewise.
7382         (debug_symtab_node): Likewise.
7383         (verify_symtab_base): Likewise.
7384         (verify_symtab_node): Likewise.
7385         (verify_symtab): Likewise.
7386         (symtab_used_from_object_file_p): Likewise.
7387         (symtab_node_availability): Likewise.
7388         (symtab_alias_ultimate_target): Likewise.
7389         (fixup_same_cpp_alias_visibility): Likewise.
7390         (symtab_resolve_alias): Likewise.
7391         (symtab_for_node_and_aliases): Likewise.
7392         (symtab_for_node_and_aliases): Likewise.
7393         (symtab_nonoverwritable_alias_1): Likewise.
7394         (symtab_nonoverwritable_alias): Likewise.
7395         (symtab_semantically_equivalent_p): Likewise.
7396         * value-prof.c (init_node_map): Likewise.
7397         * varasm.c (find_decl): Likewise.
7398         * varpool.c (varpool_node_for_asm): Likewise.
7399         (varpool_remove_unreferenced_decls): Likewise.
7401 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7403         Manual part of renaming of symtab_node_base to symtab_node.
7405         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7406         clashes with the preferred name for the base class.
7407         (const_symtab_node): Remove redundant typedef.
7409 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7411         * optabs.c (expand_vec_perm): Avoid vector mode punning
7412         SUBREGs in SET_DEST.
7413         * expmed.c (store_bit_field_1): Likewise.
7414         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7415         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7416         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7417         * config/i386/i386.c (ix86_expand_vector_move_misalign,
7418         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7419         ix86_expand_sse_unpack, ix86_expand_args_builtin,
7420         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7421         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7422         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7423         expand_vec_perm_vpshufb2_vpermq,
7424         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7425         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7426         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7427         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
7428         than *d itself.
7430 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
7432         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7433         Use gcc_unreachable for unhandled modes.  Do not check results of
7434         expand_simple_binop.  If not expanded to target, move the result.
7436 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
7437             Shiva Chen  <shiva0217@gmail.com>
7439         * config.gcc (nds32*-*-*): Add nds32 target.
7440         * config/nds32/nds32.c: New file.
7441         * config/nds32/nds32.h: New file.
7442         * config/nds32/nds32.md: New file.
7443         * config/nds32/constants.md: New file.
7444         * config/nds32/constraints.md: New file.
7445         * config/nds32/iterators.md: New file.
7446         * config/nds32/nds32-doubleword.md: New file.
7447         * config/nds32/nds32-intrinsic.md: New file.
7448         * config/nds32/nds32_intrinsic.h: New file.
7449         * config/nds32/nds32-modes.def: New file.
7450         * config/nds32/nds32-multiple.md: New file.
7451         * config/nds32/nds32.opt: New file.
7452         * config/nds32/nds32-opts.h: New file.
7453         * config/nds32/nds32-protos.h: New file.
7454         * config/nds32/nds32-peephole2.md: New file.
7455         * config/nds32/pipelines.md: New file.
7456         * config/nds32/predicates.md: New file.
7457         * config/nds32/t-mlibs: New file.
7458         * common/config/nds32: New directory and files.
7460         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7461         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7462         * doc/install.texi (Cross-Compiler-Specific Options): Document
7463         --with-nds32-lib for nds32 target.
7464         * doc/extend.texi (Function Attributes, Target Builtins): Document
7465         nds32 specific attributes.
7467 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
7469         * lra-constraints (process_alt_operands): Use the result
7470         elimination register for operand when matching constraints.
7472 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7474         * tree-vrp.c (maybe_set_nonzero_bits): New function.
7475         (remove_range_assertions): Call it.
7477         * tree.c (tree_ctz): New function.
7478         * tree.h (tree_ctz): New prototype.
7479         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7480         first argument from tree to const_tree.
7481         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7482         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7483         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7484         static.
7485         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7486         * tree-vect-loop.c (vect_analyze_loop_operations,
7487         vect_transform_loop): Don't force scalar loop for bound just because
7488         number of iterations is unknown, only do it if it is not known to be
7489         a multiple of vectorization_factor.
7490         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7492         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7493         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
7494         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7495         (set_nonzero_bits, get_nonzero_bits): New prototypes.
7496         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7497         a default def isn't partially constant.
7498         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7499         is known to be partially zero.
7500         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7501         to see if a default def isn't partially constant.
7502         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7503         creation of a range, if VR_RANGE, try to improve nonzero_bits from
7504         the range.
7505         (set_nonzero_bits, get_nonzero_bits): New functions.
7507         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7508         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7509         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7510         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7511         uses but in the condition and ASSERT_EXPR and the other successor of
7512         the predecessor bb is __builtin_unreachable (), set_range_info of the
7513         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7515 2013-10-31  Martin Jambor  <mjambor@suse.cz>
7517         PR rtl-optimization/58934
7518         Revert:
7519         2013-10-30  Martin Jambor  <mjambor@suse.cz>
7520         PR rtl-optimization/10474
7521         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7522         nor df analysis.
7523         (interesting_dest_for_shprep): New function.
7524         (split_live_ranges_for_shrink_wrap): Likewise.
7525         (ira): Calculate dominance info and df analysis. Call
7526         split_live_ranges_for_shrink_wrap.
7528 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
7529             Yury Gribov  <y.gribov@samsung.com>
7531         PR sanitizer/58543
7532         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7533         shadow pointer to avoid clobbering the main one.
7535 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7537         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7539 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7541         PR bootstrap/58933
7542         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
7543         it for calling update_costs_from_allocno.
7544         (assign_hard_reg): Call restore_costs_from_copies only for
7545         !retry_p.  Pass new argument to update_costs_from_copies.
7546         (color_pass): Pass new argument to update_costs_from_copies.
7547         (ira_mark_allocation_change): Ditto.
7549 2013-10-30  Sharad Singhai  <singhai@google.com>
7551         PR middle-end/58134
7552         * opts.c (common_handle_option): Remove deprecated option
7553         -ftree-vectorizer-verbose.
7554         * doc/invoke.texi (Debugging Options): Ditto.
7555         * opts-global.c (handle_common_deferred_options): Ditto.
7556         (dump_remap_tree_vectorizer_verbose): Delete.
7557         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7559 2013-10-30  DJ Delorie  <dj@redhat.com>
7561         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7562         that take no arguments.
7564 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7566         PR other/58545
7567         * reload1.c (update_eliminables_and_spill): New function, broken
7568         out of reload.
7569         (reload): Use it.  Check for frame size change after frame size
7570         alignment, and call update_eliminables_and_spill first if continue-ing.
7572 2013-10-30  Cong Hou  <congh@google.com>
7574         PR target/58762
7575         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7576         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7577         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7579 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
7581         PR rtl-optimization/58369
7582         * reload1.c (compute_reload_subreg_offset): New function.
7583         (choose_reload_regs): Use it to pass endian-correct
7584         offset to subreg_regno_offset.
7586 2013-10-30  Tobias Burnus  <burnus@net-b.de>
7588         PR other/33426
7589         * tree-cfg.c (replace_loop_annotate): Replace warning by
7590         warning_at.
7592 2013-10-30  Jason Merrill  <jason@redhat.com>
7594         * configure.ac (loose_warn): Add -Wno-format if
7595         --disable-build-format-warnings.
7597 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
7599         * cgraphunit.c (analyze_functions): Split symtab_node declarations
7600         onto multiple lines to make things easier for rename_symtab.py.
7602         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7603         (symtab_semantically_equivalent_p): Likewise.
7605 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7607         PR target/58784
7608         * lra.c (check_rtl): Remove address check before LRA work.
7610 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
7612         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7613         POINTER_PLUS_EXPR in the defining statement.
7615 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7617         * regmove.c: Remove.
7618         * tree-pass.h (make_pass_regmove): Remove.
7619         * timevar.def (TV_REGMOVE): Remove.
7620         * passes.def (pass_regmove): Remove.
7621         * opts.c (default_options_table): Remove entry for regmove.
7622         * doc/passes.texi: Remove regmove pass description.
7623         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7624         options.
7625         (-fdump-rtl-regmove): Ditto.
7626         * common.opt (foptimize-register-move, fregmove): Ignore.
7627         * Makefile.in (OBJS): Remove regmove.o.
7628         * regmove.c: Remove.
7629         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7630         and type.
7631         (struct ira_allocno) New member allocno_prefs.
7632         (ALLOCNO_PREFS): New macro.
7633         (ira_prefs, ira_prefs_num): New external vars.
7634         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7635         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7636         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7637         Ditto.
7638         (ira_add_allocno_copy_to_list): Remove prototype.
7639         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7640         (ira_pref_iterator): New type.
7641         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7642         (FOR_EACH_PREF): New macro.
7643         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7644         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
7645         code.
7646         (ira_setup_alts): New function.
7647         (decrease_live_ranges_number): New function.
7648         (ira): Call the above function.
7649         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7650         (ira_create_allocno): Initialize allocno prefs.
7651         (pref_pool, pref_vec): New static vars.
7652         (initiate_prefs, find_allocno_pref, ira_create_pref): New
7653         functions.
7654         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7655         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7656         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7657         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7658         (ira_add_allocno_copy_to_list): Make static.  Rename to
7659         add_allocno_copy_to_list.
7660         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
7661         swap_allocno_copy_ends_if_necessary.
7662         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7663         ira_remove_allocno_prefs.
7664         (ira_flattening): Ditto.
7665         (ira_build): Call initiate_prefs, print_prefs.
7666         (ira_destroy): Call finish_prefs.
7667         * ira-color.c (struct update_cost_record): New.
7668         (struct allocno_color_data): Add new member update_cost_records.
7669         (update_cost_record_pool): New static var.
7670         (init_update_cost_records, get_update_cost_record): New functions.
7671         (free_update_cost_record_list, finish_update_cost_records): Ditto.
7672         (struct update_cost_queue_elem): Add member from.
7673         (initiate_cost_update): Call init_update_cost_records.
7674         (finish_cost_update): Call finish_update_cost_records.
7675         (queue_update_cost, get_next_update_cost): Add new param from.
7676         (Update_allocno_cost, update_costs_from_allocno): New functions.
7677         (update_costs_from_prefs): Ditto.
7678         (update_copy_costs): Rename to update_costs_from_copies.
7679         (restore_costs_from_copies): New function.
7680         (update_conflict_hard_regno_costs): Don't go back.
7681         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
7682         more debug info.
7683         (pop_allocnos): Add priniting more debug info.
7684         (color_allocnos): Remove prefs for conflicting hard regs.
7685         Call update_costs_from_prefs.
7686         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7687         (get_dup_num): Rename, modify, and move to ira.c
7688         (process_regs_for_copy): Add prefs.
7689         (add_insn_allocno_copies): Put src as first arg of
7690         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
7691         * ira-costs.c (record_reg_classes): Modify and move code into
7692         record_operands_costs.
7693         (find_costs_and_classes): Create prefs for the hard reg of small
7694         reg class.
7695         (process_bb_node_for_hard_reg_moves): Add prefs.
7697 2013-10-30  Richard Biener  <rguenther@suse.de>
7699         PR middle-end/57100
7700         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7701         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7702         as worker for ...
7703         (pre_and_rev_post_order_compute): ... which now wraps it.
7704         * graph.c (draw_cfg_nodes_no_loops): Use
7705         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7706         on cfun.
7708 2013-10-30  Christian Bruel  <christian.bruel@st.com>
7710         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7711         (sh_expand_cmpstr): Handle known align and schedule improvements.
7712         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7713         * config/sh/sh.md (cmpstrnsi): New pattern.
7715 2013-10-30  Martin Jambor  <mjambor@suse.cz>
7717         PR rtl-optimization/10474
7718         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7719         nor df analysis.
7720         (interesting_dest_for_shprep): New function.
7721         (split_live_ranges_for_shrink_wrap): Likewise.
7722         (ira): Calculate dominance info and df analysis. Call
7723         split_live_ranges_for_shrink_wrap.
7725 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7727         PR target/58854
7728         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7730 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7732         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7733         * tree.h (POINTER_BOUNDS_P): New.
7734         (BOUNDED_TYPE_P): New.
7735         (BOUNDED_P): New.
7736         (pointer_bounds_type_node): New.
7737         * tree.c (build_common_tree_nodes): Initialize
7738         pointer_bounds_type_node.
7739         * gimple.h (gimple_call_get_nobnd_arg_index): New.
7740         (gimple_call_num_nobnd_args): New.
7741         (gimple_call_nobnd_arg): New.
7742         (gimple_return_retbnd): New.
7743         (gimple_return_set_retbnd): New
7744         * gimple.c (gimple_build_return): Increase number of ops
7745         for return statement.
7746         (gimple_call_get_nobnd_arg_index): New.
7747         * gimple-pretty-print.c (dump_gimple_return): Print second op.
7749 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7751         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7752         with "chkp ctor" and "bnd_legacy" attributes.
7753         * gimplify.c (gimplify_init_constructor): Avoid infinite
7754         loop during gimplification of bounds initializer.
7756 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7758         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7759         (handle_bnd_legacy): New.
7760         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7761         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7762         attributes.
7764 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7766         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7767         (BT_FN_PTR_CONST_PTR): New.
7768         (BT_FN_CONST_PTR_CONST_PTR): New.
7769         (BT_FN_PTR_CONST_PTR_SIZE): New.
7770         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7771         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7772         (BT_FN_VOID_CONST_PTR_SIZE): New.
7773         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7774         * chkp-builtins.def: New.
7775         * builtins.def: include chkp-builtins.def.
7776         (DEF_CHKP_BUILTIN): New.
7777         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7778         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7779         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7780         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7781         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7782         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7783         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7784         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7785         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
7786         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7787         * common.opt (fcheck-pointer-bounds): New.
7788         * toplev.c (process_options): Check Pointer Bounds Checker is
7789         supported.
7790         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
7792 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7794         * target.def (builtin_chkp_function): New.
7795         (chkp_bound_type): New.
7796         (chkp_bound_mode): New.
7797         (fn_abi_va_list_bounds_size): New.
7798         (load_bounds_for_arg): New.
7799         (store_bounds_for_arg): New.
7800         * targhooks.h (default_load_bounds_for_arg): New.
7801         (default_store_bounds_for_arg): New.
7802         (default_fn_abi_va_list_bounds_size): New.
7803         (default_chkp_bound_type): New.
7804         (default_chkp_bound_mode): New.
7805         (default_builtin_chkp_function): New.
7806         * targhooks.c (default_load_bounds_for_arg): New.
7807         (default_store_bounds_for_arg): New.
7808         (default_fn_abi_va_list_bounds_size): New.
7809         (default_chkp_bound_type): New.
7810         (default_chkp_bound_mode); New.
7811         (default_builtin_chkp_function): New.
7812         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
7813         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7814         (TARGET_STORE_BOUNDS_FOR_ARG): New.
7815         (TARGET_BUILTIN_CHKP_FUNCTION): New.
7816         (TARGET_CHKP_BOUND_TYPE): New.
7817         (TARGET_CHKP_BOUND_MODE): New.
7818         * doc/tm.texi: Regenerated.
7819         * langhooks.h (lang_hooks): Add chkp_supported field.
7820         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
7821         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
7823 2013-10-29  Andrew Pinski <apinski@cavium.com>
7825         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
7826         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
7827         fails, combining the branches anyways.
7828         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
7829         increases the number of combinings.
7830         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
7832 2013-10-29  Mike Stump  <mikestump@comcast.net>
7834         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
7835         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
7836         (make_vector_mode): Increase namebuf to 16.
7837         (emit_insn_modes_h): When processing BImode, don't
7838         also match partial int modes.
7839         (emit_class_narrowest_mode): Likewise.
7841         * config/bfin/bfin-modes.def: Add precision to PDI.
7842         * config/m32c/m32c-modes.def: Add precision to PSI.
7843         * config/msp430/msp430-modes.def: Add precision to PSI.
7844         * config/rs6000/rs6000-modes.def: Add precision to PTI.
7845         * config/sh/sh-modes.def: Add precision to PSI and PDI.
7847 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
7849         PR target/54236
7850         * config/sh/sh.md (*addc): Rename existing variations to ...
7851         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
7852         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
7853         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
7854         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
7856 2013-10-29  Teresa Johnson  <tejohnson@google.com>
7858         PR ipa/58862
7859         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
7860         insanities when updating probabilities.
7862 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7864         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
7865         prettyprinter for cgraph_node to reflect the conversion of the
7866         symtable types to a C++ class hierarchy: it now *is* a
7867         symtab_node_base, rather than having one (named "symbol").
7869 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7871         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
7872         __cilkrts_pop_frame.  If matched, then return true for built-in
7873         function name.
7874         (expand_builtin): Added BUILT_IN_CILK_DETACH and
7875         BUILT_IN_CILK_POP_FRAME case.
7876         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
7877         (lhs_cilk_detect_spawn): Likewise.
7878         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
7879         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
7880         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
7881         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
7882         (LANG_HOOKS_CILKPLUS): Likewise.
7883         * tree.h (CILK_SPAWN_FN): Likewise.
7884         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
7885         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
7886         (OBJS): Added cilk-common.o.
7887         (BUILTINS_DEF): Added cilk-builtins.def.
7888         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
7889         (lhd_cilk_detect_spawn): Likewise.
7890         * langhooks.h (lang_hooks_for_cilkplus): New struct.
7891         (struct lang_hooks): Added new field called "cilkplus."
7892         * cilk-common.c: New file.
7893         * cilk.h: Likewise.
7894         * cilk-builtins.def: Likewise.
7895         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
7896         "__cilk" macro and set it to 200.
7897         * function.h (struct function::cilk_frame_decl): New field.
7898         (struct function::is_cilk_function): Likewise.
7899         (struct function::calls_cilk_spawn): Likewise.
7900         * gimplify.c (gimplify_call_expr): Added a check if the function call
7901         being gimplified is a spawn detach point.  If so, then add pop_frame
7902         and detach function calls.
7903         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
7904         for gimplifying _Cilk_spawn and _Cilk_sync statements.
7905         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
7906         function.  If so, added a _Cilk_sync and gimplified it.
7907         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
7908         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
7909         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
7910         spawner function.
7911         (can_inline_edge_p): Prevent inling of spawnee function.
7912         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
7913         for functions that use Cilk keywords.
7914         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
7915         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
7916         CILK_SYNC_STMT cases.
7917         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
7918         trees.
7919         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
7920         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
7921         * passes.texi (Cilk Keywords): New section that describes the compiler
7922         code changes for handling Cilk Keywords.
7924 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7926         Patch autogenerated by refactor_symtab.py from
7927         https://github.com/davidmalcolm/gcc-refactoring-scripts
7928         revision 58bb219cc090b2f4516a9297d868c245495ee622
7930         * asan.c (asan_finish_file): Update for conversion of symtab types to
7931         a true class hierarchy.
7932         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7933         * cgraph.c (cgraph_get_body): Likewise.
7934         (cgraph_get_create_real_symbol_node): Likewise.
7935         (verify_cgraph_node): Likewise.
7936         (verify_edge_corresponds_to_fndecl): Likewise.
7937         (verify_edge_count_and_frequency): Likewise.
7938         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
7939         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
7940         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
7941         (cgraph_node_cannot_return): Likewise.
7942         (cgraph_set_pure_flag_1): Likewise.
7943         (cgraph_set_const_flag_1): Likewise.
7944         (cgraph_set_nothrow_flag_1): Likewise.
7945         (cgraph_make_node_local_1): Likewise.
7946         (cgraph_for_node_and_aliases): Likewise.
7947         (cgraph_for_node_thunks_and_aliases): Likewise.
7948         (cgraph_node_can_be_local_p): Likewise.
7949         (cgraph_node_cannot_be_local_p_1): Likewise.
7950         (cgraph_function_body_availability): Likewise.
7951         (dump_cgraph_node): Likewise.
7952         (cgraph_rtl_info): Likewise.
7953         (cgraph_mark_address_taken_node): Likewise.
7954         (cgraph_remove_node): Likewise.
7955         (cgraph_release_function_body): Likewise.
7956         (cgraph_update_edges_for_call_stmt_node): Likewise.
7957         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7958         (cgraph_make_edge_direct): Likewise.
7959         (cgraph_resolve_speculation): Likewise.
7960         (cgraph_speculative_call_info): Likewise.
7961         (cgraph_turn_edge_to_speculative): Likewise.
7962         (cgraph_create_edge_1): Likewise.
7963         (cgraph_set_call_stmt): Likewise.
7964         (cgraph_node_for_asm): Likewise.
7965         (cgraph_add_thunk): Likewise.
7966         (cgraph_same_body_alias): Likewise.
7967         (cgraph_create_function_alias): Likewise.
7968         (cgraph_create_node): Likewise.
7969         (cgraph_create_empty_node): Likewise.
7970         (record_function_versions): Likewise.
7971         (used_from_object_file_p): Likewise.
7972         * cgraph.h (symtab_can_be_discarded): Likewise.
7973         (symtab_real_symbol_p): Likewise.
7974         (cgraph_mark_force_output_node): Likewise.
7975         (cgraph_edge_recursive_p): Likewise.
7976         (symtab_alias_target): Likewise.
7977         (varpool_all_refs_explicit_p): Likewise.
7978         (varpool_can_remove_if_no_refs): Likewise.
7979         (cgraph_only_called_directly_or_aliased_p): Likewise.
7980         (cgraph_next_function_with_gimple_body): Likewise.
7981         (cgraph_first_function_with_gimple_body): Likewise.
7982         (cgraph_function_with_gimple_body_p): Likewise.
7983         (cgraph_next_function): Likewise.
7984         (cgraph_first_function): Likewise.
7985         (cgraph_next_defined_function): Likewise.
7986         (cgraph_first_defined_function): Likewise.
7987         (varpool_next_defined_variable): Likewise.
7988         (varpool_first_defined_variable): Likewise.
7989         (varpool_next_static_initializer): Likewise.
7990         (varpool_first_static_initializer): Likewise.
7991         (varpool_next_variable): Likewise.
7992         (varpool_first_variable): Likewise.
7993         (varpool_node_name): Likewise.
7994         (varpool): Likewise.
7995         (cgraph): Likewise.
7996         (is_a_helper <varpool_node>::test): Likewise.
7997         (is_a_helper <cgraph_node>::test): Likewise.
7998         (varpool_variable_node): Likewise.
7999         (cgraph_function_or_thunk_node): Likewise.
8000         (varpool_alias_target): Likewise.
8001         (cgraph_alias_target): Likewise.
8002         (cgraph_node_name): Likewise.
8003         (varpool_node_asm_name): Likewise.
8004         (cgraph_node_asm_name): Likewise.
8005         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8006         (cgraph_rebuild_references): Likewise.
8007         (rebuild_cgraph_edges): Likewise.
8008         (record_eh_tables): Likewise.
8009         (build_cgraph_edges): Likewise.
8010         (mark_store): Likewise.
8011         (mark_load): Likewise.
8012         (mark_address): Likewise.
8013         (record_type_list): Likewise.
8014         (record_reference): Likewise.
8015         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8016         (cgraph_materialize_clone): Likewise.
8017         (cgraph_function_versioning): Likewise.
8018         (cgraph_copy_node_for_versioning): Likewise.
8019         (update_call_expr): Likewise.
8020         (cgraph_find_replacement_node): Likewise.
8021         (cgraph_create_virtual_clone): Likewise.
8022         (cgraph_clone_node): Likewise.
8023         * cgraphunit.c (compile): Likewise.
8024         (output_weakrefs): Likewise.
8025         (output_in_order): Likewise.
8026         (expand_function): Likewise.
8027         (assemble_thunks_and_aliases): Likewise.
8028         (expand_thunk): Likewise.
8029         (mark_functions_to_output): Likewise.
8030         (handle_alias_pairs): Likewise.
8031         (analyze_functions): Likewise.
8032         (walk_polymorphic_call_targets): Likewise.
8033         (varpool_finalize_decl): Likewise.
8034         (process_function_and_variable_attributes): Likewise.
8035         (cgraph_process_same_body_aliases): Likewise.
8036         (analyze_function): Likewise.
8037         (cgraph_add_new_function): Likewise.
8038         (cgraph_finalize_function): Likewise.
8039         (referred_to_p): Likewise.
8040         (cgraph_reset_node): Likewise.
8041         (cgraph_process_new_functions): Likewise.
8042         (enqueue_node): Likewise.
8043         (decide_is_symbol_needed): Likewise.
8044         * coverage.c (coverage_compute_profile_id): Likewise.
8045         * dbxout.c (dbxout_expand_expr): Likewise.
8046         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8047         (reference_to_unused): Likewise.
8048         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8049         * gimplify.c (unvisit_body): Likewise.
8050         (unshare_body): Likewise.
8051         * ipa-cp.c (ipcp_generate_summary): Likewise.
8052         (ipcp_decision_stage): Likewise.
8053         (identify_dead_nodes): Likewise.
8054         (decide_whether_version_node): Likewise.
8055         (decide_about_value): Likewise.
8056         (perhaps_add_new_callers): Likewise.
8057         (create_specialized_node): Likewise.
8058         (update_profiling_info): Likewise.
8059         (ipcp_propagate_stage): Likewise.
8060         (estimate_local_effects): Likewise.
8061         (good_cloning_opportunity_p): Likewise.
8062         (devirtualization_time_bonus): Likewise.
8063         (propagate_constants_accross_call): Likewise.
8064         (initialize_node_lattices): Likewise.
8065         (ipcp_cloning_candidate_p): Likewise.
8066         (determine_versionability): Likewise.
8067         (print_all_lattices): Likewise.
8068         (print_lattice): Likewise.
8069         (ipcp_discover_new_direct_edges): Likewise.
8070         * ipa-devirt.c (ipa_devirt): Likewise.
8071         (likely_target_p): Likewise.
8072         (update_type_inheritance_graph): Likewise.
8073         (possible_polymorphic_call_target_p): Likewise.
8074         (dump_possible_polymorphic_call_targets): Likewise.
8075         (devirt_variable_node_removal_hook): Likewise.
8076         (record_binfo): Likewise.
8077         (maybe_record_node): Likewise.
8078         (build_type_inheritance_graph): Likewise.
8079         * ipa-inline-analysis.c (inline_write_summary): Likewise.
8080         (inline_generate_summary): Likewise.
8081         (inline_analyze_function): Likewise.
8082         (do_estimate_growth): Likewise.
8083         (simple_edge_hints): Likewise.
8084         (estimate_node_size_and_time): Likewise.
8085         (estimate_edge_devirt_benefit): Likewise.
8086         (compute_inline_parameters): Likewise.
8087         (estimate_function_body_sizes): Likewise.
8088         (compute_bb_predicates): Likewise.
8089         (initialize_inline_failed): Likewise.
8090         (dump_inline_summary): Likewise.
8091         (dump_inline_edge_summary): Likewise.
8092         * ipa-inline-transform.c (inline_transform): Likewise.
8093         (preserve_function_body_p): Likewise.
8094         (save_inline_function_body): Likewise.
8095         (inline_call): Likewise.
8096         (clone_inlined_nodes): Likewise.
8097         (can_remove_node_now_p): Likewise.
8098         (can_remove_node_now_p_1): Likewise.
8099         * ipa-inline.c (early_inliner): Likewise.
8100         (early_inline_small_functions): Likewise.
8101         (inline_always_inline_functions): Likewise.
8102         (ipa_inline): Likewise.
8103         (flatten_function): Likewise.
8104         (inline_small_functions): Likewise.
8105         (speculation_useful_p): Likewise.
8106         (recursive_inlining): Likewise.
8107         (update_caller_keys): Likewise.
8108         (reset_edge_caches): Likewise.
8109         (update_edge_key): Likewise.
8110         (edge_badness): Likewise.
8111         (relative_time_benefit): Likewise.
8112         (want_inline_self_recursive_call_p): Likewise.
8113         (want_inline_small_function_p): Likewise.
8114         (want_early_inline_function_p): Likewise.
8115         (num_calls): Likewise.
8116         (can_early_inline_edge_p): Likewise.
8117         (can_inline_edge_p): Likewise.
8118         (report_inline_failed_reason): Likewise.
8119         * ipa-profile.c (ipa_profile): Likewise.
8120         (ipa_propagate_frequency): Likewise.
8121         (ipa_propagate_frequency_1): Likewise.
8122         (ipa_profile_generate_summary): Likewise.
8123         * ipa-prop.c (ipcp_transform_function): Likewise.
8124         (read_replacements_section): Likewise.
8125         (ipa_prop_read_section): Likewise.
8126         (ipa_modify_call_arguments): Likewise.
8127         (ipa_print_node_params): Likewise.
8128         (propagate_controlled_uses): Likewise.
8129         (update_indirect_edges_after_inlining): Likewise.
8130         (remove_described_reference): Likewise.
8131         (ipa_make_edge_direct_to_target): Likewise.
8132         (ipa_analyze_node): Likewise.
8133         (ipa_analyze_params_uses): Likewise.
8134         (ipa_compute_jump_functions): Likewise.
8135         (ipa_get_callee_param_type): Likewise.
8136         (ipa_print_node_jump_functions): Likewise.
8137         (ipa_initialize_node_params): Likewise.
8138         (ipa_populate_param_decls): Likewise.
8139         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8140         (write_agg_replacement_chain): Likewise.
8141         (ipa_write_node_info): Likewise.
8142         (ipa_edge_duplication_hook): Likewise.
8143         (try_decrement_rdesc_refcount): Likewise.
8144         * ipa-pure-const.c (propagate_nothrow): Likewise.
8145         (propagate_pure_const): Likewise.
8146         (pure_const_read_summary): Likewise.
8147         (pure_const_write_summary): Likewise.
8148         (analyze_function): Likewise.
8149         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8150         (ipa_ref_referring_ref_list): Likewise.
8151         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8152         (ipa_remove_stmt_references): Likewise.
8153         (ipa_find_reference): Likewise.
8154         (ipa_dump_referring): Likewise.
8155         (ipa_dump_references): Likewise.
8156         (ipa_record_reference): Likewise.
8157         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8158         (ipa_reference_write_optimization_summary): Likewise.
8159         (write_node_summary_p): Likewise.
8160         (propagate): Likewise.
8161         (read_write_all_from_decl): Likewise.
8162         (generate_summary): Likewise.
8163         (analyze_function): Likewise.
8164         (propagate_bits): Likewise.
8165         (ipa_reference_get_not_written_global): Likewise.
8166         (ipa_reference_get_not_read_global): Likewise.
8167         * ipa-split.c (execute_split_functions): Likewise.
8168         (split_function): Likewise.
8169         * ipa-utils.c (ipa_merge_profiles): Likewise.
8170         (dump_cgraph_node_set): Likewise.
8171         (ipa_reverse_postorder): Likewise.
8172         (ipa_edge_within_scc): Likewise.
8173         (ipa_get_nodes_in_cycle): Likewise.
8174         (ipa_free_postorder_info): Likewise.
8175         (ipa_reduced_postorder): Likewise.
8176         (searchc): Likewise.
8177         (recursive_call_p): Likewise.
8178         * ipa.c (ipa_cdtor_merge): Likewise.
8179         (record_cdtor_fn): Likewise.
8180         (function_and_variable_visibility): Likewise.
8181         (varpool_externally_visible_p): Likewise.
8182         (cgraph_externally_visible_p): Likewise.
8183         (comdat_can_be_unshared_p): Likewise.
8184         (comdat_can_be_unshared_p_1): Likewise.
8185         (address_taken_from_non_vtable_p): Likewise.
8186         (ipa_discover_readonly_nonaddressable_vars): Likewise.
8187         (symtab_remove_unreachable_nodes): Likewise.
8188         (walk_polymorphic_call_targets): Likewise.
8189         (process_references): Likewise.
8190         (enqueue_node): Likewise.
8191         (has_addr_references_p): Likewise.
8192         (cgraph_non_local_node_p_1): Likewise.
8193         * is-a.h (varpool_analyze_node): Likewise.
8194         * lto-cgraph.c (input_symtab): Likewise.
8195         (merge_profile_summaries): Likewise.
8196         (input_cgraph_1): Likewise.
8197         (input_edge): Likewise.
8198         (input_varpool_node): Likewise.
8199         (input_node): Likewise.
8200         (input_overwrite_node): Likewise.
8201         (compute_ltrans_boundary): Likewise.
8202         (output_refs): Likewise.
8203         (lto_output_varpool_node): Likewise.
8204         (lto_output_node): Likewise.
8205         (reachable_from_other_partition_p): Likewise.
8206         (referenced_from_other_partition_p): Likewise.
8207         (lto_output_edge): Likewise.
8208         (output_node_opt_summary): Likewise.
8209         (add_node_to): Likewise.
8210         (reachable_from_this_partition_p): Likewise.
8211         (lto_set_symtab_encoder_in_partition): Likewise.
8212         (lto_symtab_encoder_in_partition_p): Likewise.
8213         (lto_set_symtab_encoder_encode_initializer): Likewise.
8214         (lto_symtab_encoder_encode_initializer_p): Likewise.
8215         (lto_set_symtab_encoder_encode_body): Likewise.
8216         (lto_symtab_encoder_encode_body_p): Likewise.
8217         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8218         Likewise.
8219         * lto-streamer-in.c (lto_read_body): Likewise.
8220         (fixup_call_stmt_edges): Likewise.
8221         (fixup_call_stmt_edges_1): Likewise.
8222         * lto-streamer-out.c (produce_symtab): Likewise.
8223         (output_symbol_p): Likewise.
8224         (write_symbol): Likewise.
8225         (lto_output): Likewise.
8226         (copy_function): Likewise.
8227         (output_function): Likewise.
8228         * passes.c (function_called_by_processed_nodes_p): Likewise.
8229         (ipa_write_optimization_summaries): Likewise.
8230         (ipa_write_summaries): Likewise.
8231         (do_per_function_toporder): Likewise.
8232         (do_per_function): Likewise.
8233         (dump_passes): Likewise.
8234         * symtab.c (symtab_semantically_equivalent_p): Likewise.
8235         (symtab_nonoverwritable_alias): Likewise.
8236         (symtab_nonoverwritable_alias_1): Likewise.
8237         (symtab_for_node_and_aliases): Likewise.
8238         (symtab_resolve_alias): Likewise.
8239         (fixup_same_cpp_alias_visibility): Likewise.
8240         (symtab_alias_ultimate_target): Likewise.
8241         (symtab_used_from_object_file_p): Likewise.
8242         (verify_symtab_base): Likewise.
8243         (dump_symtab_base): Likewise.
8244         (symtab_node_name): Likewise.
8245         (symtab_node_asm_name): Likewise.
8246         (symtab_dissolve_same_comdat_group_list): Likewise.
8247         (symtab_add_to_same_comdat_group): Likewise.
8248         (symtab_unregister_node): Likewise.
8249         (symtab_insert_node_to_hashtable): Likewise.
8250         (symtab_register_node): Likewise.
8251         (unlink_from_assembler_name_hash): Likewise.
8252         (insert_to_assembler_name_hash): Likewise.
8253         (eq_assembler_name): Likewise.
8254         (hash_node_by_assembler_name): Likewise.
8255         (eq_node): Likewise.
8256         (hash_node): Likewise.
8257         * toplev.c (wrapup_global_declaration_2): Likewise.
8258         * trans-mem.c (ipa_tm_execute): Likewise.
8259         (ipa_tm_transform_clone): Likewise.
8260         (ipa_tm_transform_transaction): Likewise.
8261         (ipa_tm_transform_calls_redirect): Likewise.
8262         (ipa_tm_insert_gettmclone_call): Likewise.
8263         (ipa_tm_insert_irr_call): Likewise.
8264         (ipa_tm_create_version): Likewise.
8265         (ipa_tm_create_version_alias): Likewise.
8266         (ipa_tm_mark_forced_by_abi_node): Likewise.
8267         (ipa_tm_mark_force_output_node): Likewise.
8268         (ipa_tm_diagnose_tm_safe): Likewise.
8269         (ipa_tm_mayenterirr_function): Likewise.
8270         (ipa_tm_scan_irr_function): Likewise.
8271         (ipa_tm_note_irrevocable): Likewise.
8272         (ipa_tm_scan_calls_clone): Likewise.
8273         (get_cg_data): Likewise.
8274         * tree-eh.c (tree_could_trap_p): Likewise.
8275         * tree-emutls.c (ipa_lower_emutls): Likewise.
8276         (create_emultls_var): Likewise.
8277         (lower_emutls_function_body): Likewise.
8278         (gen_emutls_addr): Likewise.
8279         (emutls_decl): Likewise.
8280         (new_emutls_decl): Likewise.
8281         * tree-inline.c (tree_function_versioning): Likewise.
8282         (optimize_inline_calls): Likewise.
8283         (expand_call_inline): Likewise.
8284         (estimate_num_insns): Likewise.
8285         (copy_bb): Likewise.
8286         (delete_unreachable_blocks_update_callgraph): Likewise.
8287         * tree-nested.c (gimplify_all_functions): Likewise.
8288         (create_nesting_tree): Likewise.
8289         (check_for_nested_with_variably_modified): Likewise.
8290         * tree-pretty-print.c (dump_function_header): Likewise.
8291         * tree-profile.c (tree_profiling): Likewise.
8292         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8293         (modify_function): Likewise.
8294         (convert_callers): Likewise.
8295         (convert_callers_for_node): Likewise.
8296         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8297         (associate_varinfo_to_alias): Likewise.
8298         (create_variable_info_for): Likewise.
8299         (get_constraint_for_ssa_var): Likewise.
8300         * tree-vectorizer.c (increase_alignment): Likewise.
8301         * tree.c (find_decls_types_in_var): Likewise.
8302         (find_decls_types_in_node): Likewise.
8303         (free_lang_data_in_decl): Likewise.
8304         * value-prof.c (gimple_ic_transform): Likewise.
8305         (gimple_ic): Likewise.
8306         (check_ic_target): Likewise.
8307         (init_node_map): Likewise.
8308         * varasm.c (decl_binds_to_current_def_p): Likewise.
8309         (default_binds_local_p_1): Likewise.
8310         (dump_tm_clone_pairs): Likewise.
8311         (assemble_alias): Likewise.
8312         (find_decl): Likewise.
8313         (mark_decl_referenced): Likewise.
8314         * varpool.c (varpool_for_node_and_aliases): Likewise.
8315         (varpool_extra_name_alias): Likewise.
8316         (varpool_create_variable_alias): Likewise.
8317         (add_new_static_var): Likewise.
8318         (varpool_finalize_named_section_flags): Likewise.
8319         (varpool_remove_unreferenced_decls): Likewise.
8320         (enqueue_node): Likewise.
8321         (varpool_assemble_decl): Likewise.
8322         (assemble_aliases): Likewise.
8323         (varpool_analyze_node): Likewise.
8324         (cgraph_variable_initializer_availability): Likewise.
8325         (varpool_add_new_variable): Likewise.
8326         (ctor_for_folding): Likewise.
8327         (dump_varpool_node): Likewise.
8328         (varpool_remove_initializer): Likewise.
8329         (varpool_remove_node): Likewise.
8330         (varpool_node_for_decl): Likewise.
8331         (varpool_create_empty_node): Likewise.
8332         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8333         (ix86_get_function_versions_dispatcher): Likewise.
8335 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8337         * cgraph.h (symtab_node_base): Convert to a class;
8338         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8339         chain_next/prev from symtab_node_def.
8340         (cgraph_node): Inherit from symtab_node; add GTY option
8341         tag ("SYMTAB_FUNCTION").
8342         (varpool_node): Inherit from symtab_node; add GTY option
8343         tag ("SYMTAB_VARIABLE").
8344         (symtab_node_def): Remove.
8345         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8346         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8347         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8348         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8350         * ipa-ref.h (symtab_node_def): Drop.
8351         (symtab_node): Change underlying type from symtab_node_def to
8352         symtab_node_base.
8353         (const_symtab_node): Likwise.
8355         * is-a.h: Update examples in comment.
8357         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8358         (assembler_name_hash): Likewise.
8360 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
8362         * doc/tree-ssa.texi (gimple_phi_result): Document.
8363         (gimple_phi_num_args, gimple_phi_arg): Likewise.
8364         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8365         (PHI_RESULT, PHI_NUM_ARGS): Remove.
8366         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8368 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8370         * expr.h: Revert change and include tree-core.h.
8371         * rtl.h: Revert change and don't include tree-core.h.
8373 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8375         * config/darwin.c: Include gimple.h.
8376         * config/i386/winnt.c: Likewise.
8378 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
8380         PR tree-optimization/19831
8381         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8383 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8385         * tree-outof-ssa.h: Remove include files.
8386         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8387         * expr.c: Likewise.
8388         * tree-ssa-coalesce.c: Likewise.
8389         * cfgexpand.c: Likewise.
8390         * tree-ssa-ter.c: Likewise.
8391         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8392         * lto-streamer.h: Likewise.
8393         * cgraphbuild.c: Add gimple.h to include list.
8394         * data-streamer-in.c: Likewise.
8395         * ipa-cp.c: Likewise.
8396         * tree-streamer.c: Likewise.
8397         * lto-compress.c: Likewise.
8398         * ipa-reference.c: Likewise.
8399         * data-streamer-out.c: Likewise.
8400         * lto-cgraph.c: Likewise.
8401         * cgraphclones.c: Likewise.
8402         * ipa-utils.c: Likewise.
8403         * data-streamer.c: Likewise.
8404         * ipa-split.c: Likewise.
8405         * lto-section-in.c: Likewise.
8406         * tree-streamer-out.c: Likewise.
8407         * ipa-prop.c: Likewise.
8408         * tree-streamer-in.c: Likewise.
8409         * symtab.c: Likewise.
8410         * opts-global.c: Likewise.
8411         * lto-opts.c: Likewise.
8412         * lto-section-out.c: Likewise.
8413         * lto-streamer.c: Likewise.
8414         * rtl.h: Add tree-core.h to include list.
8415         * expr.h: Remove tree-core.h from include list.
8416         * gimple.h: Likewise.
8417         * ipa-utils.h: Likewise.
8418         * streamer-hooks.h: Likewise.
8419         * streamer-hooks.c: Include input.h.
8421 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8423         * config/arm/arm.c (cortexa7_extra_costs): New table.
8424         (arm_cortex_a7_tune): New.
8425         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8427 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
8429         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8431 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8433         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8434         to use autogenerated markers for a class-hierarchy, every class
8435         must have a GTY marker.
8436         * gengtype.h (struct type): Add linked list of subclasses to
8437         the "s" member of the union.
8438         (add_subclass): New decl.
8439         * gengtype-state.c (read_state_struct_type): Set up subclass
8440         linked list.
8441         * gengtype.c (get_ultimate_base_class): New.
8442         (add_subclass): New.
8443         (new_structure): Set up subclass linked list.
8444         (set_gc_used_type): Propagate usage information to subclasses.
8445         (output_mangled_typename): Use get_ultimate_base_class.
8446         (walk_subclasses): Use the subclass linked list, avoiding an
8447         O(N^2) when writing out all types.
8448         (walk_type): Issue an error if the base class is missing a tag,
8449         rather than generating bogus C code.  Add a gcc_unreachable
8450         default case, in case people omit tags from concrete subclasses,
8451         or get the values wrong.
8452         (write_func_for_structure): Issue an error for subclasses for
8453         which the base doesn't have a "desc", since otherwise the
8454         autogenerated routines for the base would silently fail to visit
8455         any subclass fields.
8456         (write_root): Use get_ultimate_base_class, tweaking constness of
8457         tp to match that function's signature.
8459 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8461         * doc/gty.texi (GTY Options): Add note about inheritance to
8462         description of desc and tag.
8463         (Inheritance and GTY): New.
8465 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8467         * gengtype-parse.c (opts_have): Drop "static" so that
8468         we can use this from gengtype.c.
8469         * gengtype.c (set_gc_used_type): Mark any base class as used;
8470         update field traversal to visit inherited fields.
8471         (output_mangled_typename):  Convert references to classes within
8472         an inheritance hierarchy to reference the ultimate base class,
8473         since only it will have gt_ functions.
8474         (get_string_option): New.
8475         (walk_subclasses): New.
8476         (walk_type): Treat GTY structs that have a "desc" as being the
8477         root of an inheritance hierarchy.  Generate a switch on it
8478         within the marking function which walks all subclasses, adding
8479         cases for them via walk_subclasses.  For subclasses, visit all
8480         fields of the type (including inherited ones).
8481         (write_func_for_structure): Don't write fns for subclasses, only
8482         for the ultimate base class within an inheritance hierarchy.
8483         Subclasses-marking will be handled by the base class marking functions.
8484         (write_types): Likewise.
8485         (write_local_func_for_structure): Likewise.
8486         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8487         a "tag" option (and are thus concrete subclasses).
8488         (write_root): Use the marker function for the ultimate base class.
8489         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8490         (opts_have): Add declaration.
8492 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
8494         * lra-spills.c (lra_final_code_change): Remove useless move insns
8495         originated from moves of pseudos.
8497 2013-10-28  Jeff Law  <law@redhat.com>
8499         * lower-subreg.c (resolve_simple_move): Fix comment typo.
8501 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
8503         * df-scan.c (df_collection_rec): Adjust.
8504         (copy_defs): New constant.
8505         (copy_uses): Likewise.
8506         (copy_eq_uses): Likewise.
8507         (copy_mw): Likewise.
8508         (copy_all): Likewise.
8509         (df_insn_rescan): Adjust.
8510         (df_notes_rescan): Likewise.
8511         (df_swap_refs): Likewise.
8512         (df_sort_and_compress_refs): Likewise.
8513         (df_sort_and_compress_mws): Likewise.
8514         (df_install_refs): Likewise.
8515         (df_install_mws): Likewise.
8516         (df_refs_add_to_chains): Add flags parameter controlling which vectors
8517         are coppied.
8518         (df_bb_refs_record): Adjust.
8519         (df_record_entry_block_defs): Likewise.
8520         (df_record_exit_block_defs): Likewise.
8521         (df_refs_verify): Likewise.
8522         (df_mws_verify): Likewise.
8523         (df_insn_refs_verify): Likewise.
8524         (df_bb_verify): Likewise.
8525         * ipa-pure-const.c (finish_state): Remove.
8526         (propagate): Adjust.
8527         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8528         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8529         var-tracking.c: Adjust.
8530         * vec.c (stack_vecs): Remove.
8531         (register_stack_vec): Likewise.
8532         (stack_vec_register_index): Likewise.
8533         (unregister_stack_vec): Likewise.
8534         * vec.h (struct va_stack): Remove.
8535         (struct vec<T, A, vl_ptr>): Specialize as
8536         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8537         allocation strategy compatable with the vl_ptr layout.
8538         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8539         specialization anyway.
8540         (class stack_vec): New class.
8541         (vec_stack_alloc): Remove.
8542         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8544 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8545             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8546             Sergey Lega  <sergey.s.lega@intel.com>
8547             Anna Tikhonova  <anna.tikhonova@intel.com>
8548             Ilya Tocar  <ilya.tocar@intel.com>
8549             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8550             Ilya Verbin  <ilya.verbin@intel.com>
8551             Kirill Yukhin  <kirill.yukhin@intel.com>
8552             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8554         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8555         (*prefetch_avx512pf_<mode>): New.
8556         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8557         (avx512f_maskcmp<mode>3): Ditto.
8558         (vashrv16si3): Ditto.
8560 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8561             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8562             Sergey Lega  <sergey.s.lega@intel.com>
8563             Anna Tikhonova  <anna.tikhonova@intel.com>
8564             Ilya Tocar  <ilya.tocar@intel.com>
8565             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8566             Ilya Verbin  <ilya.verbin@intel.com>
8567             Kirill Yukhin  <kirill.yukhin@intel.com>
8568             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8570         * config/i386/i386.md (any_truncate): New.
8571         (trunsuffix): Ditto.
8572         * config/i386/predicates.md (const_8_to_9_operand): New.
8573         (const_10_to_11_operand): Ditto.
8574         (const_12_to_13_operand): Ditto.
8575         (const_14_to_15_operand): Ditto.
8576         (const_16_to_19_operand): Ditto.
8577         (const_20_to_23_operand): Ditto.
8578         (const_24_to_27_operand): Ditto.
8579         (const_28_to_31_operand): Ditto.
8580         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8581         (cvtusi2<ssescalarmodesuffix>32): New.
8582         (cvtusi2<ssescalarmodesuffix>64): Ditto.
8583         (ufloatv16siv16sf2): Ditto.
8584         (avx512f_fix_notruncv16sfv16si): Ditto.
8585         (avx512f_ufix_notruncv16sfv16si): Ditto.
8586         (avx512f_vcvtss2usi): Ditto.
8587         (avx512f_vcvtss2usiq): Ditto.
8588         (avx512f_vcvttss2usi): Ditto.
8589         (avx512f_vcvttss2usiq): Ditto.
8590         (avx512f_vcvtsd2usi): Ditto.
8591         (avx512f_vcvtsd2usiq): Ditto.
8592         (avx512f_vcvttsd2usi): Ditto.
8593         (avx512f_vcvttsd2usiq): Ditto.
8594         (ufloatv8siv8df): Ditto.
8595         (avx512f_cvtdq2pd512_2): Ditto.
8596         (avx512f_cvtpd2dq512): Ditto.
8597         (avx512f_ufix_notruncv8dfv8si): Ditto.
8598         (avx512f_cvtpd2ps512): Ditto.
8599         (vec_unpacks_lo_v16sf): Ditto.
8600         (vec_unpacks_hi_v16sf): Ditto.
8601         (vec_unpacks_float_hi_v16si): Ditto.
8602         (vec_unpacks_float_lo_v16si): Ditto.
8603         (avx512f_unpckhps512): Ditto.
8604         (avx512f_unpcklps512): Ditto.
8605         (avx512f_movshdup512): Ditto.
8606         (avx512f_movsldup512): Ditto.
8607         (vec_extract_lo_v32hi): Ditto.
8608         (vec_extract_hi_v32hi): Ditto.
8609         (vec_extract_lo_v64qi): Ditto.
8610         (vec_extract_hi_v64qi): Ditto.
8611         (avx512f_unpckhpd512): Ditto.
8612         (avx512f_movddup512): Ditto.
8613         (avx512f_unpcklpd512): Ditto.
8614         (*avx512f_unpcklpd512): Ditto.
8615         (avx512f_shufps512_1): Ditto.
8616         (avx512f_shufpd512_1): Ditto.
8617         (avx512f_interleave_highv8di): Ditto.
8618         (avx512f_interleave_lowv8di): Ditto.
8619         (PMOV_DST_MODE): Ditto.
8620         (pmov_src_mode): Ditto.
8621         (pmov_src_lower): Ditto.
8622         (pmov_suff): Ditto.
8623         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8624         (*avx512f_<code>v8div16qi2): Ditto.
8625         (*avx512f_<code>v8div16qi2_store): Ditto.
8626         (vec_widen_umult_even_v16si): Ditto.
8627         (*vec_widen_umult_even_v16si): Ditto.
8628         (vec_widen_smult_even_v16si): Ditto.
8629         (*vec_widen_smult_even_v16si): Ditto.
8630         (avx512f_interleave_highv16si): Ditto.
8631         (avx512f_interleave_lowv16si): Ditto.
8632         (avx512f_<code>v16qiv16si2): Ditto.
8633         (avx512f_<code>v16hiv16si2): Ditto.
8634         (avx512f_<code>v8qiv8di2): Ditto.
8635         (avx512f_<code>v8hiv8di2): Ditto.
8636         (avx512f_<code>v8siv8di2): Ditto.
8637         (avx512cd_maskb_vec_dupv8di): Ditto.
8638         (avx512cd_maskw_vec_dupv16si): Ditto.
8639         (avx512f_vcvtph2ps512): Ditto.
8640         (avx512f_vcvtps2ph512): Ditto.
8641         (VEC_EXTRACT_MODE): Extened with wider modes.
8642         (VEC_PERM_AVX2): Ditto.
8643         (VEC_PERM_CONST): Ditto.
8645 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8647         * config/arc/arc.c (arc_ccfsm_post_advance):
8648         Add comment about TYPE_RETURN.
8650 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
8652         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8653         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8654         (strip_offset): Convert offset to unsigned number.
8656 2013-10-27  Tom de Vries  <tom@codesourcery.com>
8658         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8659         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8661 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
8663         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8664         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8665         (TARGET_BIG_ENDIAN): New macro.
8666         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8667         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8668         * config/sh/sh.c: Likewise.
8669         * config/sh/sh.h: Likewise.
8671 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
8673         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8674         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
8676 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8678         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8679         Fix formatting.
8680         (cmpstr_t, cmpstrsi): Fix formatting.
8682 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8684         PR target/52483
8685         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8686         addressing, do not use general_operand for memory operands.
8688 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
8690         Revert:
8691         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8692         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8694 2013-10-26  Jeff Law  <law@redhat.com>
8696         * predict.c (PRED_MUDFLAP): Remove.
8697         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
8699         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8700         (OBJS): Remove tree-nomudflap.o
8701         (GTFILES): Remove tree-mudflap.c
8702         * builtins.c (expand_builtin_alloc): Remove mudflap support.
8703         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8704         (mfwrap_spec, mflib_spec): Likewise.
8705         (cpp_unique_options, cc1_options, static_specs): Likewise.
8706         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8707         * passes.def: Likewise.
8708         * toplev.c (compile_file, process_options): Likewise.
8709         * tree-inline.c (copy_tree_r): Likewise.
8710         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8711         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8712         (build_constant_desc, output_constant_def_contents): Likewise.
8713         (categorize_decl_for_section): Likewise.
8714         * tree-mudflap.c: Removed.
8715         * tree-mudflap.h: Removed.
8716         * tree-nomudflap.c: Removed.
8717         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8718         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8719         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8720         * config/sol2.h (MFLIB_SPEC): Likewise.
8721         * doc/install.texi: Remove mudflap references.
8722         * doc/passes.texi: Similarly.
8723         * doc/sourcebuild.texi: Similarly.
8724         * doc/invoke.texi: Remove mudlfap related options.
8726 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8728         PR rtl-optimization/58759
8729         * lra-constraints.c (lra_constraints): Remove wrong condition to
8730         remove insn setting up an equivalent pseudo.
8732 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8734         * config/rs6000/rs6000-protos.h
8735         (rs6000_secondary_memory_needed_mode): New prototype.
8736         * config/rs6000/rs6000.c: Include ira.h.
8737         (TARGET_LRA_P): Redefine.
8738         (rs6000_legitimate_offset_address_p): Call
8739         legitimate_constant_pool_address_p in strict mode for LRA.
8740         (rs6000_legitimate_address_p): Ditto.
8741         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
8742         (rs6000_emit_move): Add LRA version of code to generate load/store
8743         of SDmode values.
8744         (rs6000_secondary_memory_needed_mode): New.
8745         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8746         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8747         constants, memory, and FP registers.
8748         (rs6000_lra_p): New.
8749         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8750         * config/rs6000/rs6000.opt (mlra): New option.
8751         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8753 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
8755         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8756         has_single_use () and not do the conversion if has_single_use ()
8757         returns false for the multiplication result.
8759 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
8761         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8762         to "NODE", since this works on a "tree", not an
8763         "enum tree_code".
8764         (CONSTANT_CLASS_P): Likewise.
8765         (TYPE_P): Likewise.
8766         (DECL_P): Likewise.
8767         (INDIRECT_REF_P): Likewise.
8768         (REFERENCE_CLASS_P): Likewise.
8769         (COMPARISON_CLASS_P): Likewise.
8770         (UNARY_CLASS_P): Likewise.
8771         (BINARY_CLASS_P): Likewise.
8772         (STATEMENT_CLASS_P): Likewise.
8773         (VL_EXP_CLASS_P): Likewise.
8774         (EXPRESSION_CLASS_P): Likewise.
8775         (IS_TYPE_OR_DECL_P): Likewise.
8777 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
8779         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8780         ADDR_EXPR in the defining statement.
8782 2013-10-25  Richard Biener  <rguenther@suse.de>
8784         PR tree-optimization/58626
8785         * tree-loop-distribution.c (enum rdg_dep_type): Remove
8786         anti_dd, output_dd and input_dd.
8787         (struct rdg_edge): Remove level and relation members.
8788         (RDGE_LEVEL, RDGE_RELATION): Remove.
8789         (dot_rdg_1): Adjust.
8790         (create_rdg_edge_for_ddr): Remove.
8791         (create_rdg_edges_for_scalar): Adjust.
8792         (create_edge_for_control_dependence): Likewise.
8793         (create_rdg_edges): Split into ...
8794         (create_rdg_flow_edges): ... this
8795         (create_rdg_cd_edges): ... and this.
8796         (free_rdg): Adjust.
8797         (build_rdg): Likewise, do not compute data dependences or
8798         add edges for them.
8799         (pg_add_dependence_edges): New function.
8800         (pgcmp): Likewise.
8801         (distribute_loop): First apply all non-dependence based
8802         partition mergings.  Then compute dependences between partitions
8803         and merge and order partitions according to them.
8805 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8807         PR rtl-optimization/58831
8808         * alias.c (init_alias_analysis): At the beginning of each iteration,
8809         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
8811 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8813         * recog.c (search_ofs): New static variable moved from...
8814         (peep2_find_free_register): ...here.
8815         (peephole2_optimize): Initialize it.
8817 2013-10-25  Tobias Burnus  <burnus@net-b.de>
8819         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
8821 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
8823         * config/i386/i386.h (TARGET_MPX): New define.
8824         (TARGET_MPX_P): Ditto.
8826 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8828         * config/i386/constraints.md (B): New.
8829         (Ti): New.
8830         (Tb): New.
8831         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8832         * config/i386/i386-modes.def (BND32): New.
8833         (BND64): New.
8834         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8835         * config/i386/i386.c (isa_opts): Add mmpx.
8836         (regclass_map): Add bound registers.
8837         (dbx_register_map): Likewise.
8838         (dbx64_register_map): Likewise.
8839         (svr4_dbx_register_map): Likewise.
8840         (PTA_MPX): New.
8841         (ix86_option_override_internal): Support MPX ISA.
8842         (ix86_conditional_register_usage): Support bound registers.
8843         (print_reg): Likewise.
8844         (ix86_code_end): Add MPX bnd prefix.
8845         (output_set_got): Likewise.
8846         (ix86_output_call_insn): Likewise.
8847         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
8848         (ix86_print_operand_punct_valid_p): Likewise.
8849         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
8850         UNSPEC_BNDMK_ADDR.
8851         (ix86_class_likely_spilled_p): Add bound regs support.
8852         (ix86_hard_regno_mode_ok): Likewise.
8853         (x86_order_regs_for_local_alloc): Likewise.
8854         (ix86_bnd_prefixed_insn_p): New.
8855         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
8856         (FIXED_REGISTERS): Add bound registers.
8857         (CALL_USED_REGISTERS): Likewise.
8858         (REG_ALLOC_ORDER): Likewise.
8859         (HARD_REGNO_NREGS): Likewise.
8860         (TARGET_MPX): New.
8861         (VALID_BND_REG_MODE): New.
8862         (FIRST_BND_REG): New.
8863         (LAST_BND_REG): New.
8864         (reg_class): Add BND_REGS.
8865         (REG_CLASS_NAMES): Likewise.
8866         (REG_CLASS_CONTENTS): Likewise.
8867         (BND_REGNO_P): New.
8868         (ANY_BND_REG_P): New.
8869         (BNDmode): New.
8870         (HI_REGISTER_NAMES): Add bound registers.
8871         * config/i386/i386.md (UNSPEC_BNDMK): New.
8872         (UNSPEC_BNDMK_ADDR): New.
8873         (UNSPEC_BNDSTX): New.
8874         (UNSPEC_BNDLDX): New.
8875         (UNSPEC_BNDLDX_ADDR): New.
8876         (UNSPEC_BNDCL): New.
8877         (UNSPEC_BNDCU): New.
8878         (UNSPEC_BNDCN): New.
8879         (UNSPEC_MPX_FENCE): New.
8880         (BND0_REG): New.
8881         (BND1_REG): New.
8882         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8883         (length_immediate): Likewise.
8884         (prefix_0f): Likewise.
8885         (memory): Likewise.
8886         (prefix_rep): Check for bnd prefix.
8887         (length_nobnd): New.
8888         (length): Use length_nobnd if specified.
8889         (BND): New.
8890         (bnd_ptr): New.
8891         (BNDCHECK): New.
8892         (bndcheck): New.
8893         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
8894         (*jcc_2): Likewise.
8895         (jump): Likewise.
8896         (simple_return_internal): Likewise.
8897         (simple_return_pop_internal): Likewise.
8898         (*indirect_jump): Add MPX bnd prefix.
8899         (*tablejump_1): Likewise.
8900         (simple_return_internal_long): Likewise.
8901         (simple_return_indirect_internal): Likewise.
8902         (<mode>_mk): New.
8903         (*<mode>_mk): New.
8904         (mov<mode>): New.
8905         (*mov<mode>_internal_mpx): New.
8906         (<mode>_<bndcheck>): New.
8907         (*<mode>_<bndcheck>): New.
8908         (<mode>_ldx): New.
8909         (*<mode>_ldx): New.
8910         (<mode>_stx): New.
8911         (*<mode>_stx): New.
8912         * config/i386/predicates.md (lea_address_operand): Rename to...
8913         (address_no_seg_operand): ... this.
8914         (address_mpx_no_base_operand): New.
8915         (address_mpx_no_index_operand): New.
8916         (bnd_mem_operator): New.
8917         * config/i386/i386.opt (mmpx): New.
8918         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
8919         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
8921 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8923         * mode-classes.def (MODE_POINTER_BOUNDS): New.
8924         * tree.def (POINTER_BOUNDS_TYPE): New.
8925         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
8926         (POINTER_BOUNDS_MODE): New.
8927         (make_pointer_bounds_mode): New.
8928         * machmode.h (POINTER_BOUNDS_MODE_P): New.
8929         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
8930         (layout_type): Support POINTER_BOUNDS_TYPE.
8931         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
8932         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8933         (type_contains_placeholder_1): Likewise.
8934         * tree.h (POINTER_BOUNDS_TYPE_P): New.
8935         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
8936         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
8938 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8940         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
8941         mode of address computation when calling memory_address_addr_space.
8943 2013-08-24  Richard Henderson  <rth@twiddle.net>
8945         PR rtl/58542
8946         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
8947         instead of create_convert_operand_to.
8948         (maybe_emit_sync_lock_test_and_set): Likewise.
8949         (expand_atomic_compare_and_swap): Likewise.
8950         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
8952 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
8954         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
8955         Change param_is to use the struct and not the pointer to the struct.
8957 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
8959         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
8960         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8961         Move to targhooks.c.
8962         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
8963         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8964         Relocate from gimplify.c.
8965         * targhooks.h: Add 2 prototypes.
8966         * tree.h: Delete 2 prototypes.
8968 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8970         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
8971         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
8973 2013-10-24  Cong Hou  <congh@google.com>
8975         * convert.c (convert_to_real): Guard those unsafe math function
8976         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
8977         specially.
8979 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
8981         PR ipa/58712
8982         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
8983         as argument.
8984         (cgraph_create_edge): Use the new argument.
8985         (cgraph_create_indirect_edge): Likewise.
8987 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
8989         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
8990         TYPE_UNCOND_BRANCH.
8991         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
8992         changes statep->state.
8994 2013-10-24  Tobias Burnus  <burnus@net-b.de>
8996         PR other/33426
8997         * tree-cfg.c (replace_loop_annotate): New function.
8998         (execute_build_cfg): Call it.
8999         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9000         * internal-fn.c (expand_ANNOTATE): New function.
9001         * internal-fn.def (ANNOTATE): Define as new internal function.
9002         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9003         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9004         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9005         * doc/extend.texi (Pragmas): Document #pragma ivdep.
9006         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9008 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
9009             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9011         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9012         Special case reload SP+C into none GENERAL_REGS.
9014 2013-10-24  Michael Matz  <matz@suse.de>
9016         * gengtype.c (is_file_equal): Check that files will be same length.
9018 2013-10-25  Christian Bruel  <christian.bruel@st.com>
9020         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9021         * config/sh/t-sh (sh-mem.o): New rule.
9022         * config/sh/sh-mem.cc (expand_block_move): Moved here.
9023         (sh_expand_cmpstr): New function.
9024         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9025         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9026         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9027         (rotlhi3_8): Rename.
9029 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9031         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9032         * Makefile.in (CXXDEPMODE): Assign and change users.
9033         (CCDEPMODE): Delete.
9034         * configure: Regenerate.
9036 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
9038         * gengtype-parse.c (require_without_advance): New.
9039         (type): For GTY-marked types that are not GTY((user)), parse any
9040         base classes, requiring them to be single-inheritance, and not
9041         be templates.  For non-GTY-marked types and GTY((user)),
9042         continue to skip over any C++ inheritance specification.
9043         * gengtype-state.c (state_writer::write_state_struct_type):
9044         Write base class of type (if any).
9045         (read_state_struct_type): Read base class of type (if any).
9046         * gengtype.c (new_structure): Add a "base_class" parameter.
9047         (create_optional_field_): Update for new parameter to new_structure.
9048         (adjust_field_rtx_def): Likewise.
9049         (adjust_field_tree_exp): Likewise.
9050         * gengtype.h (struct type): Add "base_class" field to the s
9051         union field.
9052         (new_structure): Add "base" parameter.
9054 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
9056         PR target/57756
9057         * config/i386/i386.c (ix86_option_override_internal):
9058         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9059         (ix86_valid_target_attribute_tree):
9060         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9061         Change TARGET_SSE to TARGET_SSE_P (opts->...)
9063 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9065         * tree-ssa-loop.h: Remove include files.
9066         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9067         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9068         * graphite-clast-to-gimple.c: Likewise.
9069         * graphite-scop-detection.c: Likewise.
9070         * graphite-sese-to-poly.c: Likewise.
9071         * ipa-inline-analysis.c: Likewise.
9072         * ipa-pure-const.c: Likewise.
9073         * loop-init.c: Likewise.
9074         * passes.c: Likewise.
9075         * predict.c: Likewise.
9076         * tree-cfg.c: Likewise.
9077         * tree-cfgcleanup.c: Likewise.
9078         * tree-chrec.c: Likewise.
9079         * tree-data-ref.c: Likewise.
9080         * tree-loop-distribution.c: Likewise.
9081         * tree-parloops.c: Likewise.
9082         * tree-predcom.c: Likewise.
9083         * tree-scalar-evolution.c: Likewise.
9084         * tree-ssa-address.c: Likewise.
9085         * tree-ssa.c: Likewise.
9086         * tree-ssa-dce.c: Likewise.
9087         * tree-ssa-loop.c: Likewise.
9088         * tree-ssa-loop-im.c: Likewise.
9089         * tree-ssa-loop-ivcanon.c: Likewise.
9090         * tree-ssa-loop-ivopts.c: Likewise.
9091         * tree-ssa-loop-manip.c: Likewise.
9092         * tree-ssa-loop-niter.c: Likewise.
9093         * tree-ssa-loop-prefetch.c: Likewise.
9094         * tree-ssa-loop-unswitch.c: Likewise.
9095         * tree-ssa-reassoc.c: Likewise.
9096         * tree-vect-data-refs.c: Likewise.
9097         * tree-vect-loop.c: Likewise.
9098         * tree-vect-loop-manip.c: Likewise.
9099         * tree-vectorizer.c: Likewise.
9100         * tree-vect-stmts.c: Likewise.
9101         * tree-vrp.c: Likewise.
9103 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9105         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9107 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9109         PR tree-optimization/58775
9110         PR tree-optimization/58791
9111         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9112         (insert_stmt_after): Rewritten, don't move the stmt, but really
9113         insert it.
9114         (get_stmt_uid_with_default): Remove.
9115         (build_and_add_sum): Use insert_stmt_after and
9116         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
9117         (update_range_test): Set uid on stmts added by
9118         force_gimple_operand_gsi.  Don't immediately modify statements
9119         in inter-bb optimization, just update oe->op values.
9120         (optimize_range_tests): Return bool whether any changed have been made.
9121         (update_ops): New function.
9122         (struct inter_bb_range_test_entry): New type.
9123         (maybe_optimize_range_tests): Perform statement changes here.
9124         (not_dominated_by, appears_later_in_bb, get_def_stmt,
9125         ensure_ops_are_available): Remove.
9126         (find_insert_point): Rewritten.
9127         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9128         return LHS of the (new resp. old) stmt.  Don't call
9129         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9130         instead of last, move new stmt at the right place.
9131         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9132         (negate_value): Likewise.  Set uids.
9133         (break_up_subtract_bb): Initialize uids.
9134         (reassociate_bb): Adjust rewrite_expr_tree caller.
9135         (do_reassoc): Don't call renumber_gimple_stmt_uids.
9137 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
9139         PR target/58838
9140         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9141         TARGET_32BIT final condition.
9142         (mulsi3_internal2 and splitter): Same.
9144 2013-10-23  Jeff Law  <law@redhat.com>
9146         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9147         through joiner blocks with abnormal outgoing edges.
9149         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9150         Add parameter JOINERS, to allow/disallow threading through joiner
9151         blocks.
9152         (thread_block): New.  Call thread_block_1.
9153         (mark_threaded_blocks): Remove code to filter out certain cases
9154         of threading through joiner blocks.
9155         (thread_through_all_blocks): Document how we can have a dangling
9156         edge AUX field and clear it.
9158 2013-10-23  Ian Lance Taylor  <iant@google.com>
9160         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9161         (C++ Dialect Options): Likewise.
9162         (Optimize Options): Likewise.
9164 2013-10-23  Tom de Vries  <tom@codesourcery.com>
9166         PR tree-optimization/58805
9167         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9169 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9171         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9172         sequence based on get_range_info returned range.
9174 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9176         * tree-ssa.h: Remove all #include's
9177         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9178         * alias.c: Move required includes from tree-ssa.h.
9179         * asan.c: Likewise.
9180         * builtins.c: Likewise.
9181         * calls.c: Likewise.
9182         * cfgexpand.c: Likewise.
9183         * cfghooks.c: Likewise.
9184         * cfgloop.c: Likewise.
9185         * cfgloopmanip.c: Likewise.
9186         * cgraph.c: Likewise.
9187         * cgraphbuild.c: Likewise.
9188         * cgraphclones.c: Likewise.
9189         * cgraphunit.c: Likewise.
9190         * dse.c: Likewise.
9191         * except.c: Likewise.
9192         * expr.c: Likewise.
9193         * final.c: Likewise.
9194         * fold-const.c: Likewise.
9195         * ggc-page.c: Likewise.
9196         * gimple-builder.c: Likewise.
9197         * gimple-fold.c: Likewise.
9198         * gimple-iterator.c: Likewise.
9199         * gimple-low.c: Likewise.
9200         * gimple-pretty-print.c: Likewise.
9201         * gimple-ssa-strength-reduction.c: Likewise.
9202         * gimple-streamer-in.c: Likewise.
9203         * gimple-streamer-out.c: Likewise.
9204         * gimplify.c: Likewise.
9205         * graphite-blocking.c: Likewise.
9206         * graphite-clast-to-gimple.c: Likewise.
9207         * graphite-dependences.c: Likewise.
9208         * graphite-interchange.c: Likewise.
9209         * graphite-optimize-isl.c: Likewise.
9210         * graphite-poly.c: Likewise.
9211         * graphite-scop-detection.c: Likewise.
9212         * graphite-sese-to-poly.c: Likewise.
9213         * graphite.c: Likewise.
9214         * ipa-cp.c: Likewise.
9215         * ipa-inline-analysis.c: Likewise.
9216         * ipa-inline-transform.c: Likewise.
9217         * ipa-inline.c: Likewise.
9218         * ipa-prop.c: Likewise.
9219         * ipa-pure-const.c: Likewise.
9220         * ipa-reference.c: Likewise.
9221         * ipa-split.c: Likewise.
9222         * ipa-utils.c: Likewise.
9223         * loop-init.c: Likewise.
9224         * lto-cgraph.c: Likewise.
9225         * lto-section-in.c: Likewise.
9226         * lto-section-out.c: Likewise.
9227         * lto-streamer-in.c: Likewise.
9228         * lto-streamer-out.c: Likewise.
9229         * lto-streamer.c: Likewise.
9230         * omp-low.c: Likewise.
9231         * passes.c: Likewise.
9232         * predict.c: Likewise.
9233         * print-tree.c: Likewise.
9234         * profile.c: Likewise.
9235         * sese.c: Likewise.
9236         * targhooks.c: Likewise.
9237         * tracer.c: Likewise.
9238         * trans-mem.c: Likewise.
9239         * tree-call-cdce.c: Likewise.
9240         * tree-cfg.c: Likewise.
9241         * tree-cfgcleanup.c: Likewise.
9242         * tree-chrec.c: Likewise.
9243         * tree-complex.c: Likewise.
9244         * tree-data-ref.c: Likewise.
9245         * tree-dfa.c: Likewise.
9246         * tree-eh.c: Likewise.
9247         * tree-emutls.c: Likewise.
9248         * tree-if-conv.c: Likewise.
9249         * tree-inline.c: Likewise.
9250         * tree-into-ssa.c: Likewise.
9251         * tree-loop-distribution.c: Likewise.
9252         * tree-mudflap.c: Likewise.
9253         * tree-nested.c: Likewise.
9254         * tree-nrv.c: Likewise.
9255         * tree-object-size.c: Likewise.
9256         * tree-outof-ssa.c: Likewise.
9257         * tree-parloops.c: Likewise.
9258         * tree-phinodes.c: Likewise.
9259         * tree-predcom.c: Likewise.
9260         * tree-pretty-print.c: Likewise.
9261         * tree-profile.c: Likewise.
9262         * tree-scalar-evolution.c: Likewise.
9263         * tree-sra.c: Likewise.
9264         * tree-ssa-address.c: Likewise.
9265         * tree-ssa-alias.c: Likewise.
9266         * tree-ssa-ccp.c: Likewise.
9267         * tree-ssa-coalesce.c: Likewise.
9268         * tree-ssa-copy.c: Likewise.
9269         * tree-ssa-copyrename.c: Likewise.
9270         * tree-ssa-dce.c: Likewise.
9271         * tree-ssa-dom.c: Likewise.
9272         * tree-ssa-dse.c: Likewise.
9273         * tree-ssa-forwprop.c: Likewise.
9274         * tree-ssa-ifcombine.c: Likewise.
9275         * tree-ssa-live.c: Likewise.
9276         * tree-ssa-loop-ch.c: Likewise.
9277         * tree-ssa-loop-im.c: Likewise.
9278         * tree-ssa-loop-ivcanon.c: Likewise.
9279         * tree-ssa-loop-ivopts.c: Likewise.
9280         * tree-ssa-loop-manip.c: Likewise.
9281         * tree-ssa-loop-niter.c: Likewise.
9282         * tree-ssa-loop-prefetch.c: Likewise.
9283         * tree-ssa-loop-unswitch.c: Likewise.
9284         * tree-ssa-loop.c: Likewise.
9285         * tree-ssa-math-opts.c: Likewise.
9286         * tree-ssa-operands.c: Likewise.
9287         * tree-ssa-phiopt.c: Likewise.
9288         * tree-ssa-phiprop.c: Likewise.
9289         * tree-ssa-pre.c: Likewise.
9290         * tree-ssa-propagate.c: Likewise.
9291         * tree-ssa-reassoc.c: Likewise.
9292         * tree-ssa-sccvn.c: Likewise.
9293         * tree-ssa-sink.c: Likewise.
9294         * tree-ssa-strlen.c: Likewise.
9295         * tree-ssa-structalias.c: Likewise.
9296         * tree-ssa-tail-merge.c: Likewise.
9297         * tree-ssa-ter.c: Likewise.
9298         * tree-ssa-threadedge.c: Likewise.
9299         * tree-ssa-threadupdate.c: Likewise.
9300         * tree-ssa-uncprop.c: Likewise.
9301         * tree-ssa-uninit.c: Likewise.
9302         * tree-ssa.c: Likewise.
9303         * tree-ssanames.c: Likewise.
9304         * tree-stdarg.c: Likewise.
9305         * tree-streamer-in.c: Likewise.
9306         * tree-switch-conversion.c: Likewise.
9307         * tree-tailcall.c: Likewise.
9308         * tree-vect-data-refs.c: Likewise.
9309         * tree-vect-generic.c: Likewise.
9310         * tree-vect-loop-manip.c: Likewise.
9311         * tree-vect-loop.c: Likewise.
9312         * tree-vect-patterns.c: Likewise.
9313         * tree-vect-slp.c: Likewise.
9314         * tree-vect-stmts.c: Likewise.
9315         * tree-vectorizer.c: Likewise.
9316         * tree-vrp.c: Likewise.
9317         * tree.c: Likewise.
9318         * tsan.c: Likewise.
9319         * value-prof.c: Likewise.
9320         * var-tracking.c: Likewise.
9321         * varpool.c: Likewise.
9322         * vtable-verify.c: Likewise.
9324 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9326         * config/tilegx/tilegx.c: Include "tree.h".
9328 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9330         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9331         the info, not after it.
9332         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9333         dump_ssaname_info call.
9334         (pp_gimple_stmt_1): Adjust caller.
9335         (dump_phi_nodes): Likewise.  Don't print "# " here.
9337 2013-10-22  Jan Hubicka  <jh@suse.cz>
9339         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9340         tuning flag.
9341         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9342         * i386.c (expand_small_movmem_or_setmem): New function.
9343         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9344         function.
9345         (alg_usable_p): Add support for value ranges; cleanup.
9346         (ix86_expand_set_or_movmem): Add support for misaligned moves.
9348 2013-10-22  Sterling Augustine  <saugustine@google.com>
9350         * doc/invoke.texi: Document -ggnu-pubnames.
9351         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9352         logic.
9353         * dwarf2out.c: Include gdb/gdb-index.h.
9354         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9355         debug_generate_pub_sections.
9356         (is_java, output_pubtables, output_pubname): New functions.
9357         (include_pubname_in_output): Handle debug_generate_pub_sections at
9358         level 2.
9359         (size_of_pubnames): Use new local space_for_flags based on
9360         debug_generate_pub_sections.
9361         (output_pubnames): Unify pubnames and pubtypes output logic.
9362         Genericize comments.  Call output_pubname.
9363         (dwarf2out_finish): Move logic to output_pubnames and call it.
9365 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
9367         PR target/58779
9368         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9369         Remove CCCmode handling.
9370         <case LTU>: Return 'c' suffix for CCCmode.
9371         <case GEU>: Return 'nc' suffix for CCCmode.
9372         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9373         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9374         (*sub<mode>3_cc_overflow): Ditto.
9375         (*subsi3_zext_cc_overflow): Ditto.
9377 2013-10-22  Steve Ellcey  <sellcey@mips.com>
9379         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
9380         (AND (NOT OP1) (NOT OP2)).
9382 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
9384         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9385         meaning of merge-high and merge-low masks for little endian; avoid
9386         use of vector-pack masks for little endian for mismatched modes.
9388 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9390         * config/tilepro/tilepro.c: Include "tree.h".
9392 2013-10-22  Andreas Schwab  <schwab@suse.de>
9394         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9395         with PRE_DEC.
9397 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
9399         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9400         [Ed Smith-Rowland]): New entries.
9401         ([Stephen M. Webb]): Update.
9403 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
9405         * tree-ssa-ter.h: Remove duplicate copy of file contents.
9407 2013-10-21  Marek Polacek  <polacek@redhat.com>
9409         PR middle-end/58809
9410         * fold-const.c (fold_range_test): Return 0 if the type is not
9411         an integral type.
9413 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
9415         * system.h: Move hwint.h include further down.
9416         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
9417         gcc_checking_asserts.
9418         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9420 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9422         Fix volatile issues in optimize_bit_field_compare.
9423         * fold-const.c (optimize_bit_field_compare): Bail out if
9424         lvolatilep or rvolatilep.
9426 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9428         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9429         and get_inner_reference returning different pmode for non-volatile
9430         bit-field members dependent on flag_strict_volatile_bitfields.
9431         * stor-layout.c (layout_decl): Remove special handling of
9432         flag_strict_volatile_bitfields.
9433         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9434         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9436 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
9438         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9439         calculations.
9441 2013-10-21  Jeff Law  <law@redhat.com>
9443         * tree-ssa-threadedge.c (thread_through_normal_block): New
9444         argument VISITED.  Remove VISISTED as a local variable.  When we
9445         have a threadable jump, verify the destination of the jump has not
9446         been visised.
9447         (thread_across_edge): Allocate VISITED bitmap once at function
9448         scope and use it throughout.  Make sure to set appropriate bits in
9449         VISITED for E (start of jump thread path).
9450         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9451         through a joiner if any edge on the path has a recorded jump thread.
9453 2013-10-21  Ian Lance Taylor  <iant@google.com>
9455         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9456         don't imply that attributes can solve all problems.
9457         (Directory Options): Fix typo.
9459 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9461         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9462         extend and extend_add.
9464 2013-10-21  Richard Biener  <rguenther@suse.de>
9466         PR tree-optimization/58794
9467         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9468         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9470 2013-10-21  Richard Biener  <rguenther@suse.de>
9472         PR middle-end/58742
9473         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9474         to (T) X for sign-changing conversions (or no conversion).
9476 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
9478         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9480 2013-10-20  Jan Hubicka  <jh@suse.cz>
9482         * config/i386/i386-tune.def: Add comment; organize into categories
9484 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9486         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9487         argument.  Update function comment.
9488         (expand_set_or_movmem_via_rep): New function combining
9489         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9490         (expand_movmem_via_rep_mov): Remove.
9491         expand_setmem_via_rep_stos): Remove.
9492         (expand_movmem_epilogue): Update calls correspondingly.
9493         (expand_setmem_epilogue_via_loop): Likewise.
9494         (emit_memset): New.
9495         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9496         (expand_set_or_movmem_prologue): New function combining
9497         expand_movmem_prologue and expand_setmem_prologue.
9498         (expand_movmem_prologue): Remove.
9499         (expand_setmem_prologue): Remove.
9500         (expand_set_or_movmem_constant_prologue): New function combining
9501         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9502         (expand_constant_movmem_prologue): Remove.
9503         (expand_constant_setmem_prologue): Remove.
9504         (promote_duplicated_reg): Allow vector-const0 value.
9505         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9506         and ix86_expand_setmem.
9507         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9508         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9510 2013-10-21  Diego Novillo  <dnovillo@google.com>
9512         * asan.c: Include tree.h
9513         * bb-reorder.c: Likewise.
9514         * cfgcleanup.c: Likewise.
9515         * cfgloopmanip.c: Likewise.
9516         * data-streamer-in.c: Likewise.
9517         * data-streamer-out.c: Likewise.
9518         * data-streamer.c: Likewise.
9519         * dwarf2cfi.c: Likewise.
9520         * graphite-blocking.c: Likewise.
9521         * graphite-clast-to-gimple.c: Likewise.
9522         * graphite-dependences.c: Likewise.
9523         * graphite-interchange.c: Likewise.
9524         * graphite-optimize-isl.c: Likewise.
9525         * graphite-poly.c: Likewise.
9526         * graphite-scop-detection.c: Likewise.
9527         * graphite-sese-to-poly.c: Likewise.
9528         * graphite.c: Likewise.
9529         * ipa-devirt.c: Likewise.
9530         * ipa-profile.c: Likewise.
9531         * ipa.c: Likewise.
9532         * ira.c: Likewise.
9533         * loop-init.c: Likewise.
9534         * loop-unroll.c: Likewise.
9535         * lower-subreg.c: Likewise.
9536         * lto/lto-object.c: Likewise.
9537         * recog.c: Likewise.
9538         * reginfo.c: Likewise.
9539         * tree-loop-distribution.c: Likewise.
9540         * tree-parloops.c: Likewise.
9541         * tree-ssa-strlen.c: Likewise.
9542         * tree-streamer.c: Likewise.
9543         * value-prof.c: Likewise.
9544         * target-globals.c: Likewise.
9545         * expr.h: Include tree-core.h instead of tree.h.
9546         * gimple.h: Likewise.
9547         * ipa-prop.h: Likewise.
9548         * ipa-utils.h: Likewise.
9549         * lto-streamer.h: Likewise.
9550         * streamer-hooks.h: Likewise.
9551         * ipa-reference.h: Include cgraph.h instead of tree.h.
9552         * cgraph.h: Include basic-block.h instead of tree.h.
9553         * tree-streamer.h: Do not include tree.h.
9554         * genattrtab.c (write_header): Generate inclusion of tree.h.
9555         * genautomata.c (main): Likewise.
9556         * genemit.c: Likewise.
9557         * genopinit.c: Likewise.
9558         * genoutput.c (output_prologue): Likewise.
9559         * genpeep.c: Likewise.
9561 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9563         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9564         little endian.
9565         (vec_unpacku_hi_v8hi): Likewise.
9566         (vec_unpacku_lo_v16qi): Likewise.
9567         (vec_unpacku_lo_v8hi): Likewise.
9569 2013-10-20  Jan Hubicka  <jh@suse.cz>
9571         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9572         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9573         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9575 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
9577         * config/mips/mips.h (ISA_HAS_WSBH): Define.
9578         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9579         constants.
9580         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9582 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
9584         PR target/58603
9585         * system.h: Undef m_slot.
9587 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9589         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9590         all elements for both endian flavors.
9592 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9594         PR target/58792
9595         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9596         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
9597         and SI_REG for 64bit SYSV ABI targets.
9599 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9601         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9602         to multi_reg_return.  Clarify that we are skipping USEs of multiple
9603         return registers.  Use bool type where appropriate.
9605 2013-10-18  Jan Hubicka  <jh@suse.cz>
9607         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9608         for cold functions.
9609         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9610         (X86_TUNE_PUSH_MEMORY): Likewise.
9611         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9612         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9613         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9614         New.
9615         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9616         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9617         Remove.
9618         (ix86_option_override_internal): Update to use tune features instead
9619         of variables.
9621 2013-10-18  Cong Hou  <congh@google.com>
9623         PR tree-optimization/58508
9624         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9625         statement that contains data refs with zero-step.
9627 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9629         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9630         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9631         * gimple-low.c (gimple_check_call_arg,
9632         gimple_check_call_matching_types): Move to cgraph.c.
9633         * gimple-low.h: Remove prototype.
9634         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9635         Relocate from gimple-low.c.
9636         * cgraph.h: Add prototype.  Don't include basic-block.h.
9637         * gimplify.c: Add gimple-low to include list.
9638         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9639         * tree-eh.c: Add gimple-low to include list.
9640         * tree-nested.c: Likewise.
9641         * cfgexpand.c: Add tree-ssa-address.h to include list.
9642         * expr.c: Likewise.
9643         * gimple-fold.c: Likewise.
9644         * gimple-ssa-strength-reduction.c: Likewise.
9645         * trans-mem.c: Likewise.
9646         * tree-mudflap.c: Likewise.
9647         * tree-ssa-loop-ivopts.c: Likewise.
9648         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9649         (degenerate_phi_result): Move to tree-phinodes.c.
9650         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9651         * tree-ssa-threadedge.c: Likewise.
9652         * tree-vrp.c: Likewise.
9653         * tree-phinodes.c (degenerate_phi_result): Relocate here.
9654         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9655         * tree-phinodes.h (degenerate_phi_result): Add prototype.
9656         * tree-ssa-copy.c: Include tree-ssa-dom.h.
9657         * tree-ssa-forwprop.c: Likewise.
9658         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9659         pass_data_cleanup_cfg_post_optimizing,
9660         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9661         * tree-optimize.c: Delete File.
9662         * graphite.c: Include tree-cfgcleanup.h.
9663         * passes.c: Likewise.
9664         * tree-cfg.c: Likewise.
9665         * tree-profile.c: Likewise.
9666         * tree-ssa-dse.c: Likewise.
9667         * tree-ssa-loop-ivcanon.c: Likewise.
9668         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9669         * tree-outof-ssa.c: Include sbitmap.h.
9670         * tree-ssa-live.c: Likewise.
9671         * tree-ssa-propagate.c: Likewise.
9672         * tree-ssa-structalias.c: Likewise.
9673         * tree-stdarg.c: Likewise.
9674         * Makefile.in (OBJS): Delete tree-optimize.o.
9675         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9676         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9677         * varasm.c: Include basic-block.h.
9678         * cfgloop.h: Include function.h instead of basic-block.h
9679         (bb_loop_depth): Move to cfgloop.c.
9680         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9682 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9684         * predict.c (probably_never_executed): Compare frequency-based
9685         count to number of training runs.
9686         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9688 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9690         * config/arm/arm.c (cortexa9_extra_costs): New table.
9691         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
9693 2013-10-18  Jeff Law  <law@redhat.com>
9695         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
9697         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
9698         (register_jump_thread): Add "registered_jump_thread" debug
9699         counter support.
9700         * dbgcnt.def (registered_jump_thread): New debug counter.
9702 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9704         * config/rs6000/rs6000.c: Include cgraph.h.
9706 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9708         * tree-ssa-tail-merge.c (replace_block_by): Update edge
9709         weights during merging.
9711 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9713         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
9714         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9715         * tree-ssa-operands.h: Remove prototype.
9716         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9717         * gimple.c (virtual_operand_p): Relocate from gimple.c.
9718         * gimple.h: Add prototype.
9719         * gimple-ssa.h: Include tree-ssa-operands.h.
9720         * tree-dump.c: Add tree-cfg.h to include list.
9721         * tree-ssa-alias.c: Add ipa-reference.h to include list.
9722         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9723         * config/i386/i386.c: Don't include tree-flow.h.
9724         * config/rs6000/rs6000.c: Likewise.
9726 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9728         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9730 2013-10-18  Richard Biener  <rguenther@suse.de>
9732         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9733         or TYPE_UNSIGNED of integral types.
9734         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9735         NULL_TREE for zero-precision integral types.
9737 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
9739         * config/aarch64/arm_neon.h
9740         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9742 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
9744         PR target/57756
9745         * opth-gen.awk: Define target_flags_explicit.
9747 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9749         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9750         fields to the reg_addr array that describes the valid addressing
9751         mode for any register, general purpose registers, floating point
9752         registers, and Altivec registers.
9753         (FIRST_RELOAD_REG_CLASS): Likewise.
9754         (LAST_RELOAD_REG_CLASS): Likewise.
9755         (struct reload_reg_map_type): Likewise.
9756         (reload_reg_map_type): Likewise.
9757         (RELOAD_REG_VALID): Likewise.
9758         (RELOAD_REG_MULTIPLE): Likewise.
9759         (RELOAD_REG_INDEXED): Likewise.
9760         (RELOAD_REG_OFFSET): Likewise.
9761         (RELOAD_REG_PRE_INCDEC): Likewise.
9762         (RELOAD_REG_PRE_MODIFY): Likewise.
9763         (reg_addr): Likewise.
9764         (mode_supports_pre_incdec_p): New helper functions to say whether
9765         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9766         (mode_supports_pre_modify_p): Likewise.
9767         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9768         print the valid address mode bits for each mode.
9769         (rs6000_debug_print_mode): Likewise.
9770         (rs6000_debug_reg_global): Likewise.
9771         (rs6000_setup_reg_addr_masks): New function to set up the address
9772         mask bits for each type.
9773         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9774         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9775         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9776         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9777         PRE_MODIFY are supported.
9778         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9779         registers, instead of {src,dest}_av_p.
9780         (rs6000_print_options_internal): Tweak the debug output slightly.
9782 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9784         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
9785         isa attribute.
9787 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
9789         * tree-flow.h (struct omp_region): Move to omp-low.c.
9790         Remove omp_ prototypes and variables.
9791         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
9792         (copy_var_decl): Relocate prototype from tree-flow.h.
9793         * gimple.c (copy_var_decl): Relocate from omp-low.c.
9794         * tree.h: Move prototype to omp-low.h.
9795         * omp-low.h: New File.  Relocate prototypes here.
9796         * omp-low.c (struct omp_region): Make local here.
9797         (root_omp_region): Make static.
9798         (copy_var_decl) Move to gimple.c.
9799         (new_omp_region): Make static.
9800         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
9801         * tree-cfg.c: Include omp-low.h.
9802         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
9803         * gimplify.c: Include omp-low.h.
9804         * tree-parloops.c: Likewise.
9806 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9808         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
9809         operands are in memory, prefer to force non-matched operand 1 to
9810         the register.
9812 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9814         PR target/58673
9815         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
9816         restrict TImode addresses to single indirect registers if both
9817         -mquad-memory and -mvsx-timode are used.
9818         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
9819         we should emit load/store quad.  Remove using %y for quad memory
9820         addresses.
9822         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
9823         constraints to allow load/store quad on machines where TImode is
9824         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
9825         for TImode to load integer constants.
9827 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9829         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
9831 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9833         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
9834         handling of STACK_REG.
9836 2013-10-17  Richard Biener  <rguenther@suse.de>
9838         PR tree-optimization/58143
9839         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
9840         New function.
9841         (rewrite_to_defined_overflow): Likewise.
9842         (move_computations_dom_walker::before_dom): Rewrite stmts
9843         with undefined signed overflow that are not always executed
9844         into unsigned arithmetic.
9846 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
9848         PR target/57756
9849         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
9850         explicit isa flag to be an options variable, instead of using
9851         global_options_set.  Remove define from rs6000.h.
9852         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
9854         * config/rs6000/rs6000.c (rs6000_option_override_internal):
9855         Initialize rs6000_isa_flags_explicit.
9856         (rs6000_function_specific_save): Add gcc_options* parameter, so
9857         that the powerpc builds after the 2013-10-15 changes.
9858         (rs6000_function_specific_restore): Likewise.
9860 2013-10-16  DJ Delorie  <dj@redhat.com>
9862         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
9863         op is a REG before checking REGNO.
9864         (rl78_alloc_physical_registers): Verify pattern is a SET before
9865         checking SET_SRC.
9867 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9869         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
9870         endianness.
9871         (vec_unpacks_lo_v4sf): Likewise.
9872         (vec_unpacks_float_hi_v4si): Likewise.
9873         (vec_unpacks_float_lo_v4si): Likewise.
9874         (vec_unpacku_float_hi_v4si): Likewise.
9875         (vec_unpacku_float_lo_v4si): Likewise.
9877 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9879         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
9880         (vsx_concat_v2sf): Likewise.
9882 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
9884         * config/aarch64/aarch64.md
9885         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
9887 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
9889         PR tree-optimization/58697
9890         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
9891         estimated_loop_iterations_int.
9892         (max_stmt_executions_int): Call get_max_loop_iterations_int.
9893         (get_max_loop_iterations_int): New.  HWINT version of
9894         get_max_loop_iterations.
9895         * cfgloop.h: Add prototypes.
9896         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
9897         * loop-unroll.c (decide_peel_once_rolling): Call
9898         get_estimated_loop_iterations_int.
9899         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
9900         * tree-ssa-loop-niter.h: Tweak prototypes.
9902 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
9904         * gengtype-parse.c (struct_field_seq): Ignore access-control
9905         keywords ("public:" etc).
9907 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9909         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
9910         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
9912 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
9914         * config/arm/arm.opt (mlra): New option.
9915         * config/arm/arm.c (arm_lra_p): New function.
9916         (TARGET_LRA_P): Define.
9918 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
9920         * tree-core.h (tree_code_name): Remove.
9921         * tree.h (get_tree_code_name): New prototype.
9922         * tree.c (tree_code_name): Make static.
9923         (get_tree_code_name): New function.
9924         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
9925         tree_class_check_failed, tree_range_check_failed,
9926         tree_not_class_check_failed, omp_clause_check_failed,
9927         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
9928         wrapper get_tree_code_name instead of calling tree_code_name directly.
9929         * tree-vrp.c (dump_asserts_for): Likewise.
9930         * tree-dump.c (dequeue_and_dump): Likewise.
9931         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
9932         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
9933         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
9934         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
9935         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
9936         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
9937         dump_gimple_omp_for): Likewise.
9938         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
9939         * tree-ssa-pre.c (print_pre_expr): Likewise.
9940         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
9941         * print-tree.c (print_node_brief, print_node): Likewise.
9942         * gimple.c (gimple_check_failed): Likewise.
9943         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
9944         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
9945         * config/mep/mep.c (mep_validate_vliw): Likewise.
9946         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
9947         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9949 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9951         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
9952         for AMD bdver3.
9954 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
9956         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9957         (MULTILIB_MATCHES): Add multilib for -march=v8.
9959 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
9961         PR target/57756
9962         * optc-save-gen.awk: Add extra parameter to the save and restore
9963         target calls.
9964         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
9965         * tree.c (build_optimization_node): New parameter.  Add extra parameter
9966         to call to cl_optimization_save.
9967         (build_target_option_node): New parameter. Add extra parameter
9968         to call to cl_target_option_save.
9969         * tree.h (build_optimization_node): New parameter.
9970         (build_target_option_node): New parameter.
9971         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
9972         build_optimization_node and build_target_option_node.
9973         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
9974         (handle_pragma_push_options): Ditto.
9975         * toplev.c (process_options): Ditto.
9976         * opts.c (init_options_struct): Check for opts_set non-null.
9977         * target.def (target_option.save): New parameter.
9978         (target_option.restore): New parameter.
9979         * tm.texi: Generate.
9980         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
9981         (ix86_pragma_target_parse): Ditto.
9982         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
9983         parameters.
9984         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
9985         to  build_optimization_node and build_target_option_node.
9986         (rs6000_valid_attribute_p): Ditto.
9987         (rs6000_pragma_target_parse): Ditto.
9988         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
9989         data.
9990         * config/i386/i386.h:
9991         TARGET_64BIT_P: New Macro
9992         TARGET_MMX_P: New Macro.
9993         TARGET_3DNOW_P: New Macro.
9994         TARGET_3DNOW_A_P: New Macro.
9995         TARGET_SSE_P: New Macro.
9996         TARGET_SSE2_P: New Macro.
9997         TARGET_SSE3_P: New Macro.
9998         TARGET_SSSE3_P: New Macro.
9999         TARGET_SSE4_1_P: New Macro.
10000         TARGET_SSE4_2_P: New Macro.
10001         TARGET_AVX_P: New Macro.
10002         TARGET_AVX2_P: New Macro.
10003         TARGET_AVX512F_P: New Macro.
10004         TARGET_AVX512PF_P: New Macro.
10005         TARGET_AVX512ER_P: New Macro.
10006         TARGET_AVX512CD_P: New Macro.
10007         TARGET_FMA_P: New Macro.
10008         TARGET_SSE4A_P: New Macro.
10009         TARGET_FMA4_P: New Macro.
10010         TARGET_XOP_P: New Macro.
10011         TARGET_LWP_P: New Macro.
10012         TARGET_ABM_P: New Macro.
10013         TARGET_BMI_P: New Macro.
10014         TARGET_BMI2_P: New Macro.
10015         TARGET_LZCNT_P: New Macro.
10016         TARGET_TBM_P: New Macro.
10017         TARGET_POPCNT_P: New Macro.
10018         TARGET_SAHF_P: New Macro.
10019         TARGET_MOVBE_P: New Macro.
10020         TARGET_CRC32_P: New Macro.
10021         TARGET_AES_P: New Macro.
10022         TARGET_PCLMUL_P: New Macro.
10023         TARGET_CMPXCHG16B_P: New Macro.
10024         TARGET_FSGSBASE_P: New Macro.
10025         TARGET_RDRND_P: New Macro.
10026         TARGET_F16C_P: New Macro.
10027         TARGET_RTM_P: New Macro.
10028         TARGET_HLE_P: New Macro.
10029         TARGET_RDSEED_P: New Macro.
10030         TARGET_PRFCHW_P: New Macro.
10031         TARGET_ADX_P: New Macro.
10032         TARGET_FXSR_P: New Macro.
10033         TARGET_XSAVE_P: New Macro.
10034         TARGET_XSAVEOPT_P: New Macro.
10035         TARGET_LP64_P: New Macro.
10036         TARGET_X32_P: New Macro.
10037         TARGET_FPMATH_DEFAULT_P: New Macro.
10038         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10039         * config/i386/i386.c (ix86_option_override_internal): New parameters.
10040         opts and opts_set.
10041         Change ix86_tune_string to access opts->x_ix86_tune_string.
10042         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10043         Change ix86_arch_string to access opts->x_ix86_arch_string.
10044         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10045         Change ix86_pmode to access opts->x_ix86_pmode.
10046         Change ix86_abi to access opts->x_ix86_abi.
10047         Change ix86_cmodel to access opts->x_ix86_cmodel.
10048         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10049         Change ix86_isa_flags_explicit to access
10050         opts->x_ix86_isa_flags_explicit.
10051         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10052         Change ix86_regparm to access opts->x_ix86_regparm.
10053         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10054         Change ix86_preferred_stack_boundary_arg to access
10055         opts->x_ix86_preferred_stack_boundary_arg.
10056         Change ix86_force_align_arg_pointer to access
10057         opts->x_ix86_force_align_arg_pointer.
10058         Change ix86_incoming_stack_boundar_arg to access
10059         opts->x_ix86_incoming_stack_boundar_arg.
10060         Change ix86_fpmath to access opts->x_ix86_fpmath.
10061         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10062         Change ix86_recip_name to access opts->x_ix86_recip_name.
10063         Change ix86_stack_protector_guard to access
10064         opts->x_ix86_stack_protector_guard.
10065         Change ix86_tune_memcpy_strategy to access
10066         opts->x_ix86_tune_memcpy_strategy.
10067         Change ix86_tune_memset_strategy to access
10068         opts->x_ix86_tune_memset_strategy.
10069         Change global_options to access opts.
10070         Change global_options_set to access opts_set.
10071         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10072         Change TARGET_MMX to TARGET_MMX_P (opts->...).
10073         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10074         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10075         Change TARGET_SSE to TARGET_SSE_P (opts->...).
10076         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10077         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10078         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10079         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10080         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10081         Change TARGET_AVX to TARGET_AVX_P (opts->...).
10082         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10083         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10084         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10085         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10086         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10087         Change TARGET_FMA to TARGET_FMA_P (opts->...).
10088         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10089         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10090         Change TARGET_XOP to TARGET_XOP_P (opts->...).
10091         Change TARGET_LWP to TARGET_LWP_P (opts->...).
10092         Change TARGET_ABM to TARGET_ABM_P (opts->...).
10093         Change TARGET_BMI to TARGET_BMI_P (opts->...).
10094         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10095         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10096         Change TARGET_TBM to TARGET_TBM_P (opts->...).
10097         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10098         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10099         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10100         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10101         Change TARGET_AES to TARGET_AES_P (opts->...).
10102         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10103         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10104         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10105         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10106         Change TARGET_F16C to TARGET_F16C_P (opts->...).
10107         Change TARGET_RTM to TARGET_RTM_P (opts->...).
10108         Change TARGET_HLE to TARGET_HLE_P (opts->...).
10109         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10110         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10111         Change TARGET_ADX to TARGET_ADX_P (opts->...).
10112         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10113         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10114         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10115         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10116         Change TARGET_X32 to TARGET_X32_P (opts->...).
10117         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10118         Change TARGET_FLOAT_RETURNS_IN_80387 to
10119         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10120         (ix86_function_specific_save): New parameter. Use opts-> fields
10121         to replace global fields.
10122         (ix86_function_specific_restore): Ditto.
10123         (ix86_valid_target_attribute_inner_p): New parameters.
10124         Fix recursive call.
10125         Fix call to ix86_handle_option and set_option.
10126         (ix86_valid_target_attribute_tree): New parameters.
10127         Change global_options to access opts.
10128         Change global_options_set to access opts_set.
10129         Fix call to ix86_valid_target_attribute_inner_p.
10130         Change ix86_tune_string to access opts->x_ix86_tune_string.
10131         Change ix86_arch_string to access opts->x_ix86_arch_string.
10132         Change ix86_fpmath to access opts->x_ix86_fpmath
10133         Fix call to ix86_option_override_internal.
10134         Fix call to ix86_add_new_builtins.
10135         Fix calls to build_optimization_node and build_target_option_node.
10136         (ix86_valid_target_attribute_p): Remove access to global_options.
10137         Use new gcc_options structure func_options.
10138         Fix call to ix86_valid_target_attribute_tree.
10139         Fix call to  build_optimization_node.
10140         (get_builtin_code_for_version): Fix call to
10141         ix86_valid_target_attribute_tree.
10143 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
10145         * Makefile.in (PICFLAG): New.
10146         (enable_host_shared): New.
10147         (INTERNAL_CFLAGS): Use PICFLAG.
10148         (LIBIBERTY): Use pic build of libiberty.a if configured with
10149         --enable-host-shared.
10150         * configure.ac: Add --enable-host-shared, setting up new
10151         PICFLAG variable.
10152         * configure: Regenerate.
10153         * doc/install.texi (--enable-shared): Add note contrasting it with ...
10154         (--enable-host-shared): New option.
10156 2013-10-15  Richard Biener  <rguenther@suse.de>
10158         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10159         for built-in functions.
10161 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10163         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10164         (optimize_range_tests_1): New function,
10165         extracted from optimize_range_tests.
10166         (optimize_range_tests_xor): Similarly.
10167         (optimize_range_tests_diff): New function.
10168         (optimize_range_tests): Use optimize_range_tests_1.
10170 2013-10-15  Cong Hou  <congh@google.com>
10172         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10173         requirement of the reduction pattern so that one operand of the
10174         reduction operation can come from outside of the loop.
10176 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10178         * config/arm/neon-schedgen.ml: Remove.
10179         * config/arm/cortex-a9-neon.md: Remove comment regarding
10180         neon-schedgen.ml.
10182 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10184         * config/arm/types: Remove old neon types.
10186 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10188         * config/arm/cortex-a7.md
10189         (cortex_a7_neon_type): New.
10190         (cortex_a7_neon_mul): Update for new types.
10191         (cortex_a7_neon_mla): Likewise.
10192         (cortex_a7_neon): Likewise.
10194 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10196         * config/arm/cortex-a15-neon.md
10197         (cortex_a15_neon_type): New,
10199         (cortex_a15_neon_int_1): Remove.
10200         (cortex_a15_neon_int_2): Likewise.
10201         (cortex_a15_neon_int_3): Likewise.
10202         (cortex_a15_neon_int_4): Likewise.
10203         (cortex_a15_neon_int_5): Likewise.
10204         (cortex_a15_neon_vqneg_vqabs): Likewise.
10205         (cortex_a15_neon_vmov): Likewise.
10206         (cortex_a15_neon_vaba): Likewise.
10207         (cortex_a15_neon_vaba_qqq): Likewise.
10208         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10209         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10210         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10211         Likewise.
10212         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10213         (cortex_a15_neon_mla_qqq_8_16): Likewise.
10214         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10215         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10216         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10217         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10218         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10219         (cortex_a15_neon_shift_1): Likewise.
10220         (cortex_a15_neon_shift_2): Likewise.
10221         (cortex_a15_neon_shift_3): Likewise.
10222         (cortex_a15_neon_vshl_ddd): Likewise.
10223         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10224         (cortex_a15_neon_vsra_vrsra): Likewise.
10225         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10226         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10227         (cortex_a15_neon_bp_3cycle): Likewise.
10228         (cortex_a15_neon_ldm_2): Likewise.
10229         (cortex_a15_neon_stm_2): Likewise.
10230         (cortex_a15_neon_mcr): Likewise.
10231         (cortex_a15_neon_mrc): Likewise.
10232         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10233         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10234         (cortex_a15_neon_fp_vmul_ddd): Likewise.
10235         (cortex_a15_neon_fp_vmul_qqd): Likewise.
10236         (cortex_a15_neon_fp_vmla_ddd): Likewise.
10237         (cortex_a15_neon_fp_vmla_qqq): Likewise.
10238         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10239         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10240         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10241         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10242         (cortex_a15_neon_bp_simple): Likewise.
10243         (cortex_a15_neon_bp_2cycle): Likewise.
10244         (cortex_a15_neon_bp_3cycle): Likewise.
10245         (cortex_a15_neon_vld1_1_2_regs): Likewise.
10246         (cortex_a15_neon_vld1_3_4_regs): Likewise.
10247         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10248         (cortex_a15_neon_vld2_4_regs): Likewise.
10249         (cortex_a15_neon_vld3_vld4): Likewise.
10250         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10251         (cortex_a15_neon_vst1_3_4_regs): Likewise.
10252         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10253         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10254         (cortex_a15_neon_vst3_vst4): Rename to...
10255         (cortex_a15_neon_vst4): This, update for new attributes.
10256         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10257         (cortex_a15_neon_vld3_vld4_lane): Likewise.
10258         (cortex_a15_neon_vst1_vst2_lane): Likewise.
10259         (cortex_a15_neon_vst3_vst4_lane): Likewise.
10260         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10261         (cortex_a15_neon_ldm_2): Likewise.
10262         (cortex_a15_neon_stm_2): Likewise.
10263         (cortex_a15_neon_mcr): Likewise.
10264         (cortex_a15_neon_mcr_2_mcrr): Likewise.
10265         (cortex_a15_neon_mrc): Likewise.
10266         (cortex_a15_neon_mrrc): Likewise.
10268         (cortex_a15_neon_abd): New.
10269         (cortex_a15_neon_abd_q): Likewise.
10270         (cortex_a15_neon_aba): Likewise.
10271         (cortex_a15_neon_aba_q): Likewise.
10272         (cortex_a15_neon_acc): Likewise.
10273         (cortex_a15_neon_acc_q): Likewise.
10274         (cortex_a15_neon_arith_basic): Likewise.
10275         (cortex_a15_neon_arith_complex): Likewise.
10276         (cortex_a15_neon_multiply): Likewise.
10277         (cortex_a15_neon_multiply_q): Likewise.
10278         (cortex_a15_neon_mla): Likewise.
10279         (cortex_a15_neon_mla_q): Likewise.
10280         (cortex_a15_neon_sat_mla_long): Likewise.
10281         (cortex_a15_neon_shift_acc): Likewise.
10282         (cortex_a15_neon_shift_imm_basic): Likewise.
10283         (cortex_a15_neon_shift_imm_complex): Likewise.
10284         (cortex_a15_neon_shift_reg_basic): Likewise.
10285         (cortex_a15_neon_shift_reg_basic_q): Likewise.
10286         (cortex_a15_neon_shift_reg_complex): Likewise.
10287         (cortex_a15_neon_shift_reg_complex_q): Likewise.
10288         (cortex_a15_neon_fp_negabs): Likewise
10289         (cortex_a15_neon_fp_arith): Likewise
10290         (cortex_a15_neon_fp_arith_q): Likewise
10291         (cortex_a15_neon_fp_cvt_int): Likewise
10292         (cortex_a15_neon_fp_cvt_int_q): Likewise
10293         (cortex_a15_neon_fp_cvt_16): Likewise
10294         (cortex_a15_neon_fp_mul): Likewise
10295         (cortex_a15_neon_fp_mul_q): Likewise
10296         (cortex_a15_neon_fp_mla): Likewise
10297         (cortex_a15_neon_fp_mla_q): Likewise
10298         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10299         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10300         (cortex_a15_neon_bitops): Likewise.
10301         (cortex_a15_neon_bitops_q): Likewise.
10302         (cortex_a15_neon_from_gp): Likewise.
10303         (cortex_a15_neon_from_gp_q): Likewise.
10304         (cortex_a15_neon_tbl3_tbl4): Likewise.
10305         (cortex_a15_neon_zip_q): Likewise.
10306         (cortex_a15_neon_to_gp): Likewise.
10307         (cortex_a15_neon_load_a): Likewise.
10308         (cortex_a15_neon_load_b): Likewise.
10309         (cortex_a15_neon_load_c): Likewise.
10310         (cortex_a15_neon_load_d): Likewise.
10311         (cortex_a15_neon_load_e): Likewise.
10312         (cortex_a15_neon_load_f): Likewise.
10313         (cortex_a15_neon_store_a): Likewise.
10314         (cortex_a15_neon_store_b): Likewise.
10315         (cortex_a15_neon_store_c): Likewise.
10316         (cortex_a15_neon_store_d): Likewise.
10317         (cortex_a15_neon_store_e): Likewise.
10318         (cortex_a15_neon_store_f): Likewise.
10319         (cortex_a15_neon_store_g): Likewise.
10320         (cortex_a15_neon_store_h): Likewise.
10321         (cortex_a15_vfp_to_from_gp): Likewise.
10323 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10325         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10327         (cortex_a9_neon_vshl_ddd): Remove.
10328         (cortex_a9_neon_vst3_vst4): Likewise.
10329         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10331         (cortex_a9_neon_bit_ops_q): New.
10333         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10334         (cortex_a9_neon_int_2): Likewise.
10335         (cortex_a9_neon_int_3): Likewise.
10336         (cortex_a9_neon_int_4): Likewise.
10337         (cortex_a9_neon_int_5): Likewise.
10338         (cortex_a9_neon_vqneg_vqabs): Likewise.
10339         (cortex_a9_neon_vmov): Likewise.
10340         (cortex_a9_neon_vaba): Likewise.
10341         (cortex_a9_neon_vaba_qqq): Likewise.
10342         (cortex_a9_neon_shift_1): Likewise.
10343         (cortex_a9_neon_shift_2): Likewise.
10344         (cortex_a9_neon_shift_3): Likewise.
10345         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10346         (cortex_a9_neon_vsra_vrsra): Likewise.
10347         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10348         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10349         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10350         Likewise.
10351         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10352         (cortex_a9_neon_mla_qqq_8_16): Likewise.
10353         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10354         Likewise.
10355         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10356         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10357         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10358         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10359         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10360         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10361         (cortex_a9_neon_fp_vsum): Likewise.
10362         (cortex_a9_neon_fp_vmul_ddd): Likewise.
10363         (cortex_a9_neon_fp_vmul_qqd): Likewise.
10364         (cortex_a9_neon_fp_vmla_ddd): Likewise.
10365         (cortex_a9_neon_fp_vmla_qqq): Likewise.
10366         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10367         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10368         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10369         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10370         (cortex_a9_neon_bp_simple): Likewise.
10371         (cortex_a9_neon_bp_2cycle): Likewise.
10372         (cortex_a9_neon_bp_3cycle): Likewise.
10373         (cortex_a9_neon_ldr): Likewise.
10374         (cortex_a9_neon_str): Likewise.
10375         (cortex_a9_neon_vld1_1_2_regs): Likewise.
10376         (cortex_a9_neon_vld1_3_4_regs): Likewise.
10377         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10378         (cortex_a9_neon_vld2_4_regs): Likewise.
10379         (cortex_a9_neon_vld3_vld4): Likewise.
10380         (cortex_a9_neon_vld1_vld2_lane): Likewise.
10381         (cortex_a9_neon_vld3_vld4_lane): Likewise.
10382         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10383         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10384         (cortex_a9_neon_vst1_3_4_regs): Likewise.
10385         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10386         (cortex_a9_neon_vst1_vst2_lane): Likewise.
10387         (cortex_a9_neon_vst3_vst4_lane): Likewise.
10388         (cortex_a9_neon_mcr): Likewise.
10389         (cortex_a9_neon_mcr_2_mcrr): Likewise.
10390         (cortex_a9_neon_mrc): Likewise.
10391         (cortex_a9_neon_mrrc): Likewise.
10393 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10395         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10397         (cortex_a8_neon_vshl_ddd): Remove.
10398         (cortex_a8_neon_vst3_vst4): Likewise.
10399         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10401         (cortex_a8_neon_bit_ops_q): New.
10403         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10404         (cortex_a8_neon_int_2): Likewise..
10405         (cortex_a8_neon_int_3): Likewise.
10406         (cortex_a8_neon_int_5): Likewise.
10407         (cortex_a8_neon_vqneg_vqabs): Likewise.
10408         (cortex_a8_neon_int_4): Likewise.
10409         (cortex_a8_neon_vaba): Likewise.
10410         (cortex_a8_neon_vaba_qqq): Likewise.
10411         (cortex_a8_neon_shift_1): Likewise.
10412         (cortex_a8_neon_shift_2): Likewise.
10413         (cortex_a8_neon_shift_3): Likewise.
10414         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10415         (cortex_a8_neon_vsra_vrsra): Likewise.
10416         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10417         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10418         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10419         Likewise.
10420         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10421         (cortex_a8_neon_mla_qqq_8_16): Likewise.
10422         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10423         Likewise.
10424         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10425         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10426         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10427         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10428         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10429         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10430         (cortex_a8_neon_fp_vsum): Likewise.
10431         (cortex_a8_neon_fp_vmul_ddd): Likewise.
10432         (cortex_a8_neon_fp_vmul_qqd): Likewise.
10433         (cortex_a8_neon_fp_vmla_ddd): Likewise.
10434         (cortex_a8_neon_fp_vmla_qqq): Likewise.
10435         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10436         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10437         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10438         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10439         (cortex_a8_neon_bp_simple): Likewise.
10440         (cortex_a8_neon_bp_2cycle): Likewise.
10441         (cortex_a8_neon_bp_3cycle): Likewise.
10442         (cortex_a8_neon_ldr): Likewise.
10443         (cortex_a8_neon_str): Likewise.
10444         (cortex_a8_neon_vld1_1_2_regs): Likewise.
10445         (cortex_a8_neon_vld1_3_4_regs): Likewise.
10446         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10447         (cortex_a8_neon_vld2_4_regs): Likewise.
10448         (cortex_a8_neon_vld3_vld4): Likewise.
10449         (cortex_a8_neon_vld1_vld2_lane): Likewise.
10450         (cortex_a8_neon_vld3_vld4_lane): Likewise.
10451         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10452         (cortex_a8_neon_vst1_3_4_regs): Likewise.
10453         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10454         (cortex_a8_neon_vst1_vst2_lane): Likewise.
10455         (cortex_a8_neon_vst3_vst4_lane): Likewise.
10456         (cortex_a8_neon_mcr): Likewise.
10457         (cortex_a8_neon_mcr_2_mcrr): Likewise.
10458         (cortex_a8_neon_mrc): Likewise.
10459         (cortex_a8_neon_mrrc): Likewise.
10461 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10463         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10464         (fp): New.
10465         * config/aarch64/aarch64-simd.md (neon_type): Remove.
10466         (aarch64_simd_dup<mode>): Add "type" attribute.
10467         (aarch64_dup_lane<mode>): Likewise.
10468         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10469         (*aarch64_simd_mov<mode>): Likewise.
10470         (aarch64_simd_mov_from_<mode>low): Likewise.
10471         (aarch64_simd_mov_from_<mode>high): Likewise.
10472         (orn<mode>3): Likewise.
10473         (bic<mode>3): Likewise.
10474         (add<mode>3): Likewise.
10475         (sub<mode>3): Likewise.
10476         (mul<mode>3): Likewise.
10477         (*aarch64_mul3_elt<mode>): Likewise.
10478         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10479         (*aarch64_mul3_elt_to_128df): Likewise.
10480         (*aarch64_mul3_elt_to_64v2df): Likewise.
10481         (neg<mode>2): Likewise.
10482         (abs<mode>2): Likewise.
10483         (abd<mode>_3): Likewise.
10484         (aba<mode>_3): Likewise.
10485         (fabd<mode>_3): Likewise.
10486         (*fabd_scalar<mode>3): Likewise.
10487         (and<mode>3): Likewise.
10488         (ior<mode>3): Likewise.
10489         (xor<mode>3): Likewise.
10490         (one_cmpl<mode>2): Likewise.
10491         (aarch64_simd_vec_set<mode>): Likewise.
10492         (aarch64_simd_lshr<mode>): Likewise.
10493         (aarch64_simd_ashr<mode>): Likewise.
10494         (aarch64_simd_imm_shl<mode>): Likewise.
10495         (aarch64_simd_reg_sshl<mode): Likewise.
10496         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10497         (aarch64_simd_reg_shl<mode>_signed): Likewise.
10498         (aarch64_simd_vec_setv2di): Likewise.
10499         (aarch64_simd_vec_set<mode>): Likewise.
10500         (aarch64_mla<mode>): Likewise.
10501         (*aarch64_mla_elt<mode>): Likewise.
10502         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10503         (aarch64_mls<mode>): Likewise.
10504         (*aarch64_mls_elt<mode>): Likewise.
10505         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10506         (<su><maxmin><mode>3): Likewise.
10507         (move_lo_quad_<mode>): Likewise.
10508         (aarch64_simd_move_hi_quad_<mode>): Likewise.
10509         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10510         (vec_pack_trunc_<mode>): Likewise.
10511         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10512         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10513         (*aarch64_<su>mlal_lo<mode>): Likewise.
10514         (*aarch64_<su>mlal_hi<mode>): Likewise.
10515         (*aarch64_<su>mlsl_lo<mode>): Likewise.
10516         (*aarch64_<su>mlsl_hi<mode>): Likewise.
10517         (*aarch64_<su>mlal<mode>): Likewise.
10518         (*aarch64_<su>mlsl<mode>): Likewise.
10519         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10520         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10521         (add<mode>3): Likewise.
10522         (sub<mode>3): Likewise.
10523         (mul<mode>3): Likewise.
10524         (div<mode>3): Likewise.
10525         (neg<mode>2): Likewise.
10526         (abs<mode>2): Likewise.
10527         (fma<mode>4): Likewise.
10528         (*aarch64_fma4_elt<mode>): Likewise.
10529         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10530         (*aarch64_fma4_elt_to_128df): Likewise.
10531         (*aarch64_fma4_elt_to_64v2df): Likewise.
10532         (fnma<mode>4): Likewise.
10533         (*aarch64_fnma4_elt<mode>): Likewise.
10534         (*aarch64_fnma4_elt_<vswap_width_name><mode>
10535         (*aarch64_fnma4_elt_to_128df): Likewise.
10536         (*aarch64_fnma4_elt_to_64v2df): Likewise.
10537         (<frint_pattern><mode>2): Likewise.
10538         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10539         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10540         (vec_unpacks_lo_v4sf): Likewise.
10541         (aarch64_float_extend_lo_v2df): Likewise.
10542         (vec_unpacks_hi_v4sf): Likewise.
10543         (aarch64_float_truncate_lo_v2sf): Likewise.
10544         (aarch64_float_truncate_hi_v4sf): Likewise.
10545         (aarch64_vmls<mode>): Likewise.
10546         (<su><maxmin><mode>3): Likewise.
10547         (<maxmin_uns><mode>3): Likewise.
10548         (reduc_<sur>plus_<mode>): Likewise.
10549         (reduc_<sur>plus_v2di): Likewise.
10550         (reduc_<sur>plus_v2si): Likewise.
10551         (reduc_<sur>plus_<mode>): Likewise.
10552         (aarch64_addpv4sf): Likewise.
10553         (clz<mode>2): Likewise.
10554         (reduc_<maxmin_uns>_<mode>): Likewise.
10555         (reduc_<maxmin_uns>_v2di): Likewise.
10556         (reduc_<maxmin_uns>_v2si): Likewise.
10557         (reduc_<maxmin_uns>_<mode>): Likewise.
10558         (reduc_<maxmin_uns>_v4sf): Likewise.
10559         (aarch64_simd_bsl<mode>_internal): Likewise.
10560         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10561         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10562         (aarch64_get_lane<mode>): Likewise.
10563         (*aarch64_combinez<mode>): Likewise.
10564         (aarch64_combine<mode>): Likewise.
10565         (aarch64_simd_combine<mode>): Likewise.
10566         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10567         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10568         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10569         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10570         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10571         (aarch64_<sur>h<addsub><mode>): Likewise.
10572         (aarch64_<sur><addsub>hn<mode>): Likewise.
10573         (aarch64_<sur><addsub>hn2<mode>): Likewise.
10574         (aarch64_pmul<mode>): Likewise.
10575         (aarch64_<su_optab><optab><mode>): Likewise.
10576         (aarch64_<sur>qadd<mode>): Likewise.
10577         (aarch64_sqmovun<mode>): Likewise.
10578         (aarch64_<sur>qmovn<mode>): Likewise.
10579         (aarch64_s<optab><mode>): Likewise.
10580         (aarch64_sq<r>dmulh<mode>): Likewise.
10581         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10582         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10583         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10584         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10585         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10586         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10587         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10588         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10589         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10590         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10591         (aarch64_sqdmull<mode>): Likewise.
10592         (aarch64_sqdmull_lane<mode>_internal): Likewise.
10593         (aarch64_sqdmull_n<mode>): Likewise.
10594         (aarch64_sqdmull2<mode>_internal): Likewise.
10595         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10596         (aarch64_sqdmull2_n<mode>_internal): Likewise.
10597         (aarch64_<sur>shl<mode>): Likewise.
10598         (aarch64_<sur>q<r>shl<mode>
10599         (aarch64_<sur>shll_n<mode>): Likewise.
10600         (aarch64_<sur>shll2_n<mode>): Likewise.
10601         (aarch64_<sur>shr_n<mode>): Likewise.
10602         (aarch64_<sur>sra_n<mode>): Likewise.
10603         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10604         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10605         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10606         (aarch64_cm<optab><mode>): Likewise.
10607         (aarch64_cm<optab>di): Likewise.
10608         (aarch64_cm<optab><mode>): Likewise.
10609         (aarch64_cm<optab>di): Likewise.
10610         (aarch64_cmtst<mode>): Likewise.
10611         (aarch64_cmtstdi): Likewise.
10612         (aarch64_cm<optab><mode>): Likewise.
10613         (*aarch64_fac<optab><mode>): Likewise.
10614         (aarch64_addp<mode>): Likewise.
10615         (aarch64_addpdi): Likewise.
10616         (sqrt<mode>2): Likewise.
10617         (vec_load_lanesoi<mode>): Likewise.
10618         (vec_store_lanesoi<mode>): Likewise.
10619         (vec_load_lanesci<mode>): Likewise.
10620         (vec_store_lanesci<mode>): Likewise.
10621         (vec_load_lanesxi<mode>): Likewise.
10622         (vec_store_lanesxi<mode>): Likewise.
10623         (*aarch64_mov<mode>): Likewise.
10624         (aarch64_ld2<mode>_dreg): Likewise.
10625         (aarch64_ld2<mode>_dreg): Likewise.
10626         (aarch64_ld3<mode>_dreg): Likewise.
10627         (aarch64_ld3<mode>_dreg): Likewise.
10628         (aarch64_ld4<mode>_dreg): Likewise.
10629         (aarch64_ld4<mode>_dreg): Likewise.
10630         (aarch64_tbl1<mode>): Likewise.
10631         (aarch64_tbl2v16qi): Likewise.
10632         (aarch64_combinev16qi): Likewise.
10633         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10634         (aarch64_st2<mode>_dreg): Likewise.
10635         (aarch64_st2<mode>_dreg): Likewise.
10636         (aarch64_st3<mode>_dreg): Likewise.
10637         (aarch64_st3<mode>_dreg): Likewise.
10638         (aarch64_st4<mode>_dreg): Likewise.
10639         (aarch64_st4<mode>_dreg): Likewise.
10640         (*aarch64_simd_ld1r<mode>): Likewise.
10641         (aarch64_frecpe<mode>): Likewise.
10642         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10643         (aarch64_frecps<mode>): Likewise.
10645 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10647         * config/arm/iterators.md (V_elem_ch): New.
10648         (q): Likewise.
10649         (VQH_type): Likewise.
10650         * config/arm/arm.md (is_neon_type): New.
10651         (conds): Use is_neon_type.
10652         (anddi3_insn): Update type attribute.
10653         (xordi3_insn): Likewise.
10654         (one_cmpldi2): Likewise.
10655         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10656         * config/arm/neon.md (neon_mov): Update type attribute.
10657         (*movmisalign<mode>_neon_store): Likewise.
10658         (*movmisalign<mode>_neon_load): Likewise.
10659         (vec_set<mode>_internal): Likewise.
10660         (vec_set<mode>_internal): Likewise.
10661         (vec_setv2di_internal): Likewise.
10662         (vec_extract<mode>): Likewise.
10663         (vec_extract<mode>): Likewise.
10664         (vec_extractv2di): Likewise.
10665         (*add<mode>3_neon): Likewise.
10666         (adddi3_neon): Likewise.
10667         (*sub<mode>3_neon): Likewise.
10668         (subdi3_neon): Likewise.
10669         (fma<VCVTF:mode>4): Likewise.
10670         (fma<VCVTF:mode>4_intrinsic): Likewise.
10671         (*fmsub<VCVTF:mode>4): Likewise.
10672         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10673         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10674         (ior<mode>3): Likewise.
10675         (and<mode>3): Likewise.
10676         (orn<mode>3_neon): Likewise.
10677         (orndi3_neon): Likewise.
10678         (bic<mode>3_neon): Likewise.
10679         (bicdi3_neon): Likewise.
10680         (xor<mode>3): Likewise.
10681         (one_cmpl<mode>2): Likewise.
10682         (abs<mode>2): Likewise.
10683         (neg<mode>2): Likewise.
10684         (negdi2_neon): Likewise.
10685         (*umin<mode>3_neon): Likewise.
10686         (*umax<mode>3_neon): Likewise.
10687         (*smin<mode>3_neon): Likewise.
10688         (*smax<mode>3_neon): Likewise.
10689         (vashl<mode>3): Likewise.
10690         (vashr<mode>3_imm): Likewise.
10691         (vlshr<mode>3_imm): Likewise.
10692         (ashl<mode>3_signed): Likewise.
10693         (ashl<mode>3_unsigned): Likewise.
10694         (neon_load_count): Likewise.
10695         (ashldi3_neon_noclobber): Likewise.
10696         (ashldi3_neon): Likewise.
10697         (signed_shift_di3_neon): Likewise.
10698         (unsigned_shift_di3_neon): Likewise.
10699         (ashrdi3_neon_imm_noclobber): Likewise.
10700         (lshrdi3_neon_imm_noclobber): Likewise.
10701         (<shift>di3_neon): Likewise.
10702         (widen_ssum<mode>3): Likewise.
10703         (widen_usum<mode>3): Likewise.
10704         (quad_halves_<code>v4si): Likewise.
10705         (quad_halves_<code>v4sf): Likewise.
10706         (quad_halves_<code>v8hi): Likewise.
10707         (quad_halves_<code>v16qi): Likewise.
10708         (reduc_splus_v2di): Likewise.
10709         (neon_vpadd_internal<mode>): Likewise.
10710         (neon_vpsmin<mode>): Likewise.
10711         (neon_vpsmax<mode>): Likewise.
10712         (neon_vpumin<mode>): Likewise.
10713         (neon_vpumax<mode>): Likewise.
10714         (*ss_add<mode>_neon): Likewise.
10715         (*us_add<mode>_neon): Likewise.
10716         (*ss_sub<mode>_neon): Likewise.
10717         (*us_sub<mode>_neon): Likewise.
10718         (neon_vadd<mode>_unspec): Likewise.
10719         (neon_vaddl<mode>): Likewise.
10720         (neon_vaddw<mode>): Likewise.
10721         (neon_vhadd<mode>): Likewise.
10722         (neon_vqadd<mode>): Likewise.
10723         (neon_vaddhn<mode>): Likewise.
10724         (neon_vmul<mode>): Likewise.
10725         (neon_vfms<VCVTF:mode>): Likewise.
10726         (neon_vmlal<mode>): Likewise.
10727         (neon_vmls<mode>): Likewise.
10728         (neon_vmlsl<mode>): Likewise.
10729         (neon_vqdmulh<mode>): Likewise.
10730         (neon_vqdmlal<mode>): Likewise.
10731         (neon_vqdmlsl<mode>): Likewise.
10732         (neon_vmull<mode>): Likewise.
10733         (neon_vqdmull<mode>): Likewise.
10734         (neon_vsub<mode>_unspec): Likewise.
10735         (neon_vsubl<mode>): Likewise.
10736         (neon_vsubw<mode>): Likewise.
10737         (neon_vqsub<mode>): Likewise.
10738         (neon_vhsub<mode>): Likewise.
10739         (neon_vsubhn<mode>): Likewise.
10740         (neon_vceq<mode>): Likewise.
10741         (neon_vcge<mode>): Likewise.
10742         (neon_vcgeu<mode>): Likewise.
10743         (neon_vcgt<mode>): Likewise.
10744         (neon_vcgtu<mode>): Likewise.
10745         (neon_vcle<mode>): Likewise.
10746         (neon_vclt<mode>): Likewise.
10747         (neon_vcage<mode>): Likewise.
10748         (neon_vcagt<mode>): Likewise.
10749         (neon_vtst<mode>): Likewise.
10750         (neon_vabd<mode>): Likewise.
10751         (neon_vabdl<mode>): Likewise.
10752         (neon_vaba<mode>): Likewise.
10753         (neon_vabal<mode>): Likewise.
10754         (neon_vmax<mode>): Likewise.
10755         (neon_vmin<mode>): Likewise.
10756         (neon_vpaddl<mode>): Likewise.
10757         (neon_vpadal<mode>): Likewise.
10758         (neon_vpmax<mode>): Likewise.
10759         (neon_vpmin<mode>): Likewise.
10760         (neon_vrecps<mode>): Likewise.
10761         (neon_vrsqrts<mode>): Likewise.
10762         (neon_vqabs<mode>): Likewise.
10763         (neon_vqneg<mode>): Likewise.
10764         (neon_vcls<mode>): Likewise.
10765         (clz<mode>2): Likewise.
10766         (popcount<mode>2): Likewise.
10767         (neon_vrecpe<mode>): Likewise.
10768         (neon_vrsqrte<mode>): Likewise.
10769         (neon_vget_lane<mode>_sext_internal): Likewise.
10770         (neon_vget_lane<mode>_zext_internal): Likewise.
10771         (neon_vdup_n<mode>): Likewise.
10772         (neon_vdup_n<mode>): Likewise.
10773         (neon_vdup_nv2di): Likewise.
10774         (neon_vdup_lane<mode>_interal): Likewise.
10775         (*neon_vswp<mode>): Likewise.
10776         (neon_vcombine<mode>): Likewise.
10777         (float<mode><V_cvtto>2): Likewise.
10778         (floatuns<mode><V_cvtto>2): Likewise.
10779         (fix_trunc<mode><V_cvtto>2): Likewise.
10780         (fixuns_trunc<mode><V_cvtto>2
10781         (neon_vcvt<mode>): Likewise.
10782         (neon_vcvt<mode>): Likewise.
10783         (neon_vcvtv4sfv4hf): Likewise.
10784         (neon_vcvtv4hfv4sf): Likewise.
10785         (neon_vcvt_n<mode>): Likewise.
10786         (neon_vcvt_n<mode>): Likewise.
10787         (neon_vmovn<mode>): Likewise.
10788         (neon_vqmovn<mode>): Likewise.
10789         (neon_vqmovun<mode>): Likewise.
10790         (neon_vmovl<mode>): Likewise.
10791         (neon_vmul_lane<mode>): Likewise.
10792         (neon_vmul_lane<mode>): Likewise.
10793         (neon_vmull_lane<mode>): Likewise.
10794         (neon_vqdmull_lane<mode>): Likewise.
10795         (neon_vqdmulh_lane<mode>): Likewise.
10796         (neon_vqdmulh_lane<mode>): Likewise.
10797         (neon_vmla_lane<mode>): Likewise.
10798         (neon_vmla_lane<mode>): Likewise.
10799         (neon_vmlal_lane<mode>): Likewise.
10800         (neon_vqdmlal_lane<mode>): Likewise.
10801         (neon_vmls_lane<mode>): Likewise.
10802         (neon_vmls_lane<mode>): Likewise.
10803         (neon_vmlsl_lane<mode>): Likewise.
10804         (neon_vqdmlsl_lane<mode>): Likewise.
10805         (neon_vext<mode>): Likewise.
10806         (neon_vrev64<mode>): Likewise.
10807         (neon_vrev32<mode>): Likewise.
10808         (neon_vrev16<mode>): Likewise.
10809         (neon_vbsl<mode>_internal): Likewise.
10810         (neon_vshl<mode>): Likewise.
10811         (neon_vqshl<mode>): Likewise.
10812         (neon_vshr_n<mode>): Likewise.
10813         (neon_vshrn_n<mode>): Likewise.
10814         (neon_vqshrn_n<mode>): Likewise.
10815         (neon_vqshrun_n<mode>): Likewise.
10816         (neon_vshl_n<mode>): Likewise.
10817         (neon_vqshl_n<mode>): Likewise.
10818         (neon_vqshlu_n<mode>): Likewise.
10819         (neon_vshll_n<mode>): Likewise.
10820         (neon_vsra_n<mode>): Likewise.
10821         (neon_vsri_n<mode>): Likewise.
10822         (neon_vsli_n<mode>): Likewise.
10823         (neon_vtbl1v8qi): Likewise.
10824         (neon_vtbl2v8qi): Likewise.
10825         (neon_vtbl3v8qi): Likewise.
10826         (neon_vtbl4v8qi): Likewise.
10827         (neon_vtbl1v16qi): Likewise.
10828         (neon_vtbl2v16qi): Likewise.
10829         (neon_vcombinev16qi): Likewise.
10830         (neon_vtbx1v8qi): Likewise.
10831         (neon_vtbx2v8qi): Likewise.
10832         (neon_vtbx3v8qi): Likewise.
10833         (neon_vtbx4v8qi): Likewise.
10834         (*neon_vtrn<mode>_insn): Likewise.
10835         (*neon_vzip<mode>_insn): Likewise.
10836         (*neon_vuzp<mode>_insn): Likewise.
10837         (neon_vld1<mode>): Likewise.
10838         (neon_vld1_lane<mode>): Likewise.
10839         (neon_vld1_lane<mode>): Likewise.
10840         (neon_vld1_dup<mode>): Likewise.
10841         (neon_vld1_dup<mode>): Likewise.
10842         (neon_vld1_dupv2di): Likewise.
10843         (neon_vst1<mode>): Likewise.
10844         (neon_vst1_lane<mode>): Likewise.
10845         (neon_vst1_lane<mode>): Likewise.
10846         (neon_vld2<mode>): Likewise.
10847         (neon_vld2<mode>): Likewise.
10848         (neon_vld2_lane<mode>): Likewise.
10849         (neon_vld2_lane<mode>): Likewise.
10850         (neon_vld2_dup<mode>): Likewise.
10851         (neon_vst2<mode>): Likewise.
10852         (neon_vst2<mode>): Likewise.
10853         (neon_vst2_lane<mode>): Likewise.
10854         (neon_vst2_lane<mode>): Likewise.
10855         (neon_vld3<mode>): Likewise.
10856         (neon_vld3qa<mode>): Likewise.
10857         (neon_vld3qb<mode>): Likewise.
10858         (neon_vld3_lane<mode>): Likewise.
10859         (neon_vld3_lane<mode>): Likewise.
10860         (neon_vld3_dup<mode>): Likewise.
10861         (neon_vst3<mode>): Likewise.
10862         (neon_vst3qa<mode>): Likewise.
10863         (neon_vst3qb<mode>): Likewise.
10864         (neon_vst3_lane<mode>): Likewise.
10865         (neon_vst3_lane<mode>): Likewise.
10866         (neon_vld4<mode>): Likewise.
10867         (neon_vld4qa<mode>): Likewise.
10868         (neon_vld4qb<mode>): Likewise.
10869         (neon_vld4_lane<mode>): Likewise.
10870         (neon_vld4_lane<mode>): Likewise.
10871         (neon_vld4_dup<mode>): Likewise.
10872         (neon_vst4<mode>): Likewise.
10873         (neon_vst4qa<mode>): Likewise.
10874         (neon_vst4qb<mode>): Likewise.
10875         (neon_vst4_lane<mode>): Likewise.
10876         (neon_vst4_lane<mode>): Likewise.
10877         (neon_vec_unpack<US>_lo_<mode>): Likewise.
10878         (neon_vec_unpack<US>_hi_<mode>): Likewise.
10879         (neon_vec_<US>mult_lo_<mode>): Likewise.
10880         (neon_vec_<US>mult_hi_<mode>): Likewise.
10881         (neon_vec_<US>shiftl_<mode>): Likewise.
10882         (neon_unpack<US>_<mode>): Likewise.
10883         (neon_vec_<US>mult_<mode>): Likewise.
10884         (vec_pack_trunc_<mode>): Likewise.
10885         (neon_vec_pack_trunc_<mode>): Likewise.
10886         (neon_vabd<mode>_2): Likewise.
10887         (neon_vabd<mode>_3): Likewise.
10889 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10891         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
10892         (load_pair): Update type attribute.
10893         (store_pair): Update type attribute.
10894         * config/aarch64/iterators.md (q): New.
10896 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10898         * config/arm/types.md: Add new types for Neon insns.
10900 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10901             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10902             Sergey Lega  <sergey.s.lega@intel.com>
10903             Anna Tikhonova  <anna.tikhonova@intel.com>
10904             Ilya Tocar  <ilya.tocar@intel.com>
10905             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10906             Ilya Verbin  <ilya.verbin@intel.com>
10907             Kirill Yukhin  <kirill.yukhin@intel.com>
10908             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10910         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
10911         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
10912         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
10913         (rcp14<mode>): New.
10914         (srcp14<mode>): Ditto.
10915         (rsqrt14<mode>): Ditto.
10916         (rsqrt14<mode>): Ditto.
10917         (avx512f_vmscalef<mode>): Ditto.
10918         (avx512f_scalef<mode>): Ditto.
10919         (avx512f_getexp<mode>): Ditto.
10920         (avx512f_sgetexp<mode>): Ditto.
10921         (avx512f_fixupimm<mode>): Ditto.
10922         (avx512f_sfixupimm<mode>): Ditto.
10923         (avx512f_rndscale<mode>): Ditto.
10924         (*avx512er_exp2<mode>): Ditto.
10925         (*avx512er_rcp28<mode>): Ditto.
10926         (avx512er_rsqrt28<mode>): Ditto.
10927         (avx512f_getmant<mode>): Ditto.
10928         (avx512f_getmant<mode>): Ditto.
10929         (avx512f_rndscale<mode>): Fix formatting.
10931 2013-10-15  Martin Jambor  <mjambor@suse.cz>
10933         * ipa-utils.h (ipa_edge_within_scc): Declare.
10934         * ipa-cp.c (edge_within_scc): Moved...
10935         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
10937 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10938             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10939             Sergey Lega  <sergey.s.lega@intel.com>
10940             Anna Tikhonova  <anna.tikhonova@intel.com>
10941             Ilya Tocar  <ilya.tocar@intel.com>
10942             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10943             Ilya Verbin  <ilya.verbin@intel.com>
10944             Kirill Yukhin  <kirill.yukhin@intel.com>
10945             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10947         * config/i386/predicates.md (const_8_to_15_operand): New.
10948         (const_16_to_31_operand): Ditto.
10949         * config/i386/sse.md (V8FI): New.
10950         (V16FI): Ditto.
10951         (reduc_splus_v8df): Ditto.
10952         (reduc_splus_v16sf): Ditto.
10953         (avx512f_vextract<shuffletype>32x4_1): Ditto.
10954         (vec_extract_hi_<mode>): Ditto.
10955         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
10956         (vec_set_lo_<mode>): Ditto.
10957         (vec_set_hi_<mode>): Ditto.
10958         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
10959         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
10960         (avx512f_pshufd_1): Ditto.
10961         (avx512f_broadcast<mode>): Ditto.
10962         (avx512f_broadcast<mode>): Ditto.
10963         (define_split): Split vec_extract_lo into move.
10964         (ssequartermode): Ditto.
10965         (ssedoublemode): Extened with wider modes.
10966         (vec_extract_lo_<mode>): Ditto.
10968 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10969             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10970             Sergey Lega  <sergey.s.lega@intel.com>
10971             Anna Tikhonova  <anna.tikhonova@intel.com>
10972             Ilya Tocar  <ilya.tocar@intel.com>
10973             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10974             Ilya Verbin  <ilya.verbin@intel.com>
10975             Kirill Yukhin  <kirill.yukhin@intel.com>
10976             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10978         * config/i386/predicates.md (register_or_constm1_operand): New.
10979         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
10980         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
10981         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
10982         UNSPEC_SCATTER_PREFETCH
10983         (VI48_512): New.
10984         (avx512f_ucmp<mode>3): Ditto.
10985         (avx512f_vternlog<mode>): Ditto.
10986         (avx512f_align<mode>): Ditto.
10987         (<shift_insn><mode>3): Ditto.
10988         (avx512f_<rotate>v<mode>): Ditto.
10989         (avx512f_<rotate><mode>): Ditto.
10990         (avx512f_eq<mode>3): Ditto.
10991         (avx512f_eq<mode>3_1): Ditto.
10992         (avx512f_gt<mode>3): Ditto.
10993         (avx512f_testm<mode>3): Ditto.
10994         (avx512f_testnm<mode>3): Ditto.
10995         (avx512pf_gatherpf<mode>): Ditto.
10996         (*avx512pf_gatherpf<mode>_mask): Ditto.
10997         (*avx512pf_gatherpf<mode>): Ditto.
10998         (avx512pf_scatterpf<mode>): Ditto.
10999         (*avx512pf_scatterpf<mode>_mask): Ditto.
11000         (*avx512pf_scatterpf<mode>): Ditto.
11001         (avx512f_vec_dup_gpr<mode>): Ditto.
11002         (clz<mode>2): Ditto.
11003         (conflict<mode>): Ditto.
11004         (REDUC_SMINMAX_MODE): Extened with wider modes.
11005         (reduc_<code>_<mode>): Ditto.
11006         (vlshr<mode>3): Ditto.
11007         (vashl<mode>3): Ditto.
11009 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11010             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11011             Sergey Lega  <sergey.s.lega@intel.com>
11012             Anna Tikhonova  <anna.tikhonova@intel.com>
11013             Ilya Tocar  <ilya.tocar@intel.com>
11014             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11015             Ilya Verbin  <ilya.verbin@intel.com>
11016             Kirill Yukhin  <kirill.yukhin@intel.com>
11017             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11019         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11020         UNSPEC_SCATTER.
11021         (VI48F_512): New.
11022         (avx512fmaskmode): Ditto.
11023         (bcstscalarsuff): Ditto.
11024         (avx512f_blendm<mode>): Ditto.
11025         (cmp_imm_predicate): Ditto.
11026         (avx512f_cmp<mode>3): Ditto.
11027         (avx512f_vec_dup<mode>): Ditto.
11028         (avx512f_vec_dup_mem<mode>): Ditto.
11029         (avx512f_vpermi2var<mode>3): Ditto.
11030         (avx512f_vpermt2var<mode>3): Ditto.
11031         (vec_init<mode>): Ditto.
11032         (avx512f_gathersi<mode>): Ditto.
11033         (*avx512f_gathersi<mode>): Ditto.
11034         (*avx512f_gathersi<mode>_2): Ditto.
11035         (avx512f_gatherdi<mode>): Ditto.
11036         (*avx512f_gatherdi<mode>): Ditto.
11037         (*avx512f_gatherdi<mode>_2): Ditto.
11038         (avx512f_scattersi<mode>): Ditto.
11039         (*avx512f_scattersi<mode>): Ditto.
11040         (avx512f_scatterdi<mode>): Ditto.
11041         (*avx512f_scatterdi<mode>): Ditto.
11042         (sseintprefix): Extened with wider modes.
11043         (VEC_GATHER_IDXSI): Ditto.
11044         (VEC_GATHER_IDXDI): Ditto.
11045         (VEC_GATHER_SRCDI): Ditto.
11047 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11048             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11050         * config/arm/t-aprofile: New file.
11051         * config.gcc: Handle --with-multilib-list option.
11053 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
11055         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11056         the input for r2.
11058 2013-10-15  Richard Biener  <rguenther@suse.de>
11060         * tree-loop-distribution.c (build_empty_rdg): Inline into
11061         single user.
11062         (rdg_flag_vertex): Inline into single user.
11063         (rdg_flag_vertex_and_dependent): Likewise.
11064         (build_rdg_partition_for_vertex): Remove processed bitmap.
11065         (rdg_build_partitions): Simplify.
11067 2013-10-15  Richard Biener  <rguenther@suse.de>
11069         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11070         Restructure forwarding through conversions and copies to
11071         avoid performing copy-propagation the wrong way.  Adjust
11072         recursion invocations.
11073         (forward_propagate_addr_expr): Add argument stating if we
11074         are recursing from a single-use.
11075         (ssa_forward_propagate_and_combine): Adjust.
11077 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
11079         * dumpfile.h (gcc::dump_manager): New class, to hold state
11080         relating to dumpfile management.
11081         (get_dump_file_name): Remove in favor of method of dump_manager.
11082         (dump_initialized_p): Likewise.
11083         (dump_start): Likewise.
11084         (dump_finish): Likewise.
11085         (dump_switch_p): Likewise.
11086         (dump_register): Likewise.
11087         (get_dump_file_info): Likewise.
11088         * context.c (gcc::context::context): Construct the dump_manager
11089         instance.
11090         * context.h (gcc::context::get_dumps): New.
11091         (gcc::context::m_dumps): New.
11092         * coverage.c (coverage_init): Port to dump_manager API.
11093         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11094         (extra_dump_files_in_use): Likewise.
11095         (extra_dump_files_alloced): Likewise.
11096         (gcc::dump_manager::dump_manager): New.
11097         (dump_register): Convert to...
11098         (gcc::dump_manager::dump_register): ...method, replacing
11099         function-static next_dump with m_next_dump field.
11100         (get_dump_file_info): Convert to...
11101         (gcc::dump_manager::get_dump_file_info): ...method.
11102         (get_dump_file_name): Convert to...
11103         (gcc::dump_manager::get_dump_file_name): ...method.
11104         (dump_start): Convert to...
11105         (gcc::dump_manager::dump_start): ...method.
11106         (dump_finish): Convert to...
11107         (gcc::dump_manager::dump_finish): ...method.
11108         (dump_begin): Replace body with...
11109         (gcc::dump_manager::dump_begin): ...new method.
11110         (dump_phase_enabled_p): Convert to...
11111         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11112         (dump_phase_enabled_p): Convert to...
11113         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11114         (dump_initialized_p):  Convert to...
11115         (gcc::dump_manager::dump_initialized_p): ...method.
11116         (dump_flag_name): Replace body with...
11117         (gcc::dump_manager::dump_flag_name): ...new method.
11118         (dump_enable_all): Convert to...
11119         (gcc::dump_manager::dump_enable_all): ...new method.
11120         (opt_info_enable_passes): Convert to...
11121         (gcc::dump_manager::opt_info_enable_passes): ...new method.
11122         (dump_switch_p_1): Convert to...
11123         (gcc::dump_manager::dump_switch_p_1): ...new method.
11124         (dump_switch_p):  Convert to...
11125         (gcc::dump_manager::dump_switch_p): ...new method.
11126         (opt_info_switch_p): Port to dump_manager API.
11127         (enable_rtl_dump_file): Likewise.
11128         * opts-global.c (handle_common_deferred_options): Port to new
11129         dump_manager API.
11130         * passes.c (pass_manager::finish_optimization_passes): Likewise.
11131         (pass_manager::register_one_dump_file): Likewise.
11132         (pass_manager::register_pass): Likewise.
11133         (pass_init_dump_file): Likewise.
11134         (pass_fini_dump_file): Likewise.
11135         * statistics.c (statistics_early_init): Likewise.
11137 2013-10-14  Richard Biener  <rguenther@suse.de>
11139         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11140         iterative_hash_canonical_type, gimple_canonical_type_hash,
11141         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11142         gimple_register_canonical_type, print_gimple_types_stats,
11143         free_gimple_type_tables): Move to lto/lto.c
11144         (gt-gimple.h): Do not include.
11145         * gimple.h (gimple_register_canonical_type,
11146         print_gimple_types_stats, free_gimple_type_tables): Remove.
11147         * Makefile.in (GTFILES): Remove gimple.c.
11149 2013-10-14  Travis Snoozy  <quandary@remstate.com>
11151         PR target/58716
11152         * config/msp430/msp430.c (msp430_option_override): Correct thinko
11153         scanning for msp430x targets.
11155 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
11157         PR bootstrap/58509
11158         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11159         (registers_ok_for_ldd_peep): Move around.
11160         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11161         * config/sparc/sparc.md (widening peepholes): Use it.
11163 2013-10-14  Richard Biener  <rguenther@suse.de>
11165         PR middle-end/58712
11166         PR middle-end/55358
11167         * gimple.c (iterative_hash_canonical_type): Make sure to
11168         record the hash into the correct hashtable slot.
11170 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
11172         PR rtl-optimization/58662
11173         * combine.c (try_combine): Take into account death nodes on I2 when
11174         splitting a PARALLEL of two independent SETs.  Fix dump message.
11176 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
11178         PR target/51244
11179         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11180         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11181         extra_objs.
11182         * config/sh/t-sh (sh_treg_combine.o): New entry.
11183         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11184         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11185         (register_sh_passes): New function.  Register sh_treg_combine pass.
11186         (sh_option_override): Invoke it.
11187         (sh_canonicalize_comparison): Handle op0_preserve_value.
11188         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11189         opportunities.  Canonicalize branch condition.
11190         (nott): Allow only if pseudos can be created for non-SH2A.
11192 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
11194         PR target/58690
11195         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11196         (ix86_expand_movmem): Replace copy_addr_to_reg with
11197         ix86_copy_addr_to_reg.
11198         (ix86_expand_setmem): Likewise.
11200 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
11202         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11203         provided by ix86_fp_compare_mode instead of CCFPUmode.
11205 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
11207         * config/aarch64/arm_neon.h
11208         (vtbx<1,3>_<psu>8): Fix register constriants.
11210 2013-10-11  Jeff Law  <law@redhat.com>
11212         PR tree-optimization/58640
11213         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11214         threading paths that cross over two loop entry points.
11216 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11218         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11219         handle vector float as well.
11220         (*vsx_le_perm_load_v4si): Likewise.
11221         (*vsx_le_perm_store_v2di): Likewise.
11222         (*vsx_le_perm_store_v4si): Likewise.
11224 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11226         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11227         directly to circumvent subtract from splat{31} workaround.
11228         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11229         prototype.
11230         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11231         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11232         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11233         (altivec_vperm_<mode>): Convert to define_insn_and_split to
11234         separate big and little endian logic.
11235         (*altivec_vperm_<mode>_internal): New define_insn.
11236         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11237         separate big and little endian logic.
11238         (*altivec_vperm_<mode>_uns_internal): New define_insn.
11239         (vec_permv16qi): Add little endian logic.
11241 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
11243         * doc/extend.texi (returns_nonnull): Remove arguments.
11245 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11246             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11247             Sergey Lega  <sergey.s.lega@intel.com>
11248             Anna Tikhonova  <anna.tikhonova@intel.com>
11249             Ilya Tocar  <ilya.tocar@intel.com>
11250             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11251             Ilya Verbin  <ilya.verbin@intel.com>
11252             Kirill Yukhin  <kirill.yukhin@intel.com>
11253             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11255         * config/i386/sse.md (VI48F_256_512): New.
11256         (avx2_permvar<mode>): Change to ...
11257         (<avx2_avx512f>_permvar<mode>): This.
11259 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11260             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11261             Sergey Lega  <sergey.s.lega@intel.com>
11262             Anna Tikhonova  <anna.tikhonova@intel.com>
11263             Ilya Tocar  <ilya.tocar@intel.com>
11264             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11265             Ilya Verbin  <ilya.verbin@intel.com>
11266             Kirill Yukhin  <kirill.yukhin@intel.com>
11267             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11269         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11270         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11271         * config/i386/sse.md (VI4_AVX): New.
11272         (sf2simodelower): Ditto.
11273         (sse2_cvtps2dq): Change to ...
11274         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11276 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11277             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11278             Sergey Lega  <sergey.s.lega@intel.com>
11279             Anna Tikhonova  <anna.tikhonova@intel.com>
11280             Ilya Tocar  <ilya.tocar@intel.com>
11281             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11282             Ilya Verbin  <ilya.verbin@intel.com>
11283             Kirill Yukhin  <kirill.yukhin@intel.com>
11284             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11286         * config/i386/sse.md (V_512): New.
11287         (VI_512): Ditto.
11288         (vcond<V_512:mode><VF_512:mode>): Ditto.
11289         (vcond<V_512:mode><VI_512:mode>): Ditto.
11290         (vcondu<V_512:mode><VI_512:mode>): Ditto.
11292 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11293             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11294             Sergey Lega  <sergey.s.lega@intel.com>
11295             Anna Tikhonova  <anna.tikhonova@intel.com>
11296             Ilya Tocar  <ilya.tocar@intel.com>
11297             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11298             Ilya Verbin  <ilya.verbin@intel.com>
11299             Kirill Yukhin  <kirill.yukhin@intel.com>
11300             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11302         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11303         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11304         (FMAMODE): Ditto.
11305         (fma<mode>4): Removed condition.
11306         (fms<mode>4): Ditto.
11307         (fnma<mode>4): Ditto.
11308         (fnms<mode>4): Ditto.
11309         (fma4i_fmadd_<mode>): Ditto.
11310         (*fma_fmadd_<mode>): Ditto.
11311         (*fma_fmsub_<mode>): Ditto.
11312         (*fma_fnmadd_<mode>): Ditto.
11313         (*fma_fnmsub_<mode>): Ditto.
11314         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11315         (*fma_fmaddsub_<mode>): Ditto.
11316         (*fma_fmsubadd_<mode>): Ditto.
11317         (*fmai_fmadd_<mode>): Ditto.
11318         (*fmai_fmsub_<mode>): Ditto.
11319         (*fmai_fnmadd_<mode>): Ditto.
11320         (*fmai_fnmsub_<mode>): Ditto.
11322 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11323             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11324             Sergey Lega  <sergey.s.lega@intel.com>
11325             Anna Tikhonova  <anna.tikhonova@intel.com>
11326             Ilya Tocar  <ilya.tocar@intel.com>
11327             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11328             Ilya Verbin  <ilya.verbin@intel.com>
11329             Kirill Yukhin  <kirill.yukhin@intel.com>
11330             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11332         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11333         (VI124_256): Changed to ...
11334         (VI124_256_48_512): This.
11335         (ssepackmode): Extended with wider modes.
11336         (<code><mode>3): Changed iterator.
11337         (*avx2_<code><mode>3): Ditto.
11338         (vec_pack_trunc_<mode>): Ditto.
11340 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11341             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11342             Sergey Lega  <sergey.s.lega@intel.com>
11343             Anna Tikhonova  <anna.tikhonova@intel.com>
11344             Ilya Tocar  <ilya.tocar@intel.com>
11345             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11346             Ilya Verbin  <ilya.verbin@intel.com>
11347             Kirill Yukhin  <kirill.yukhin@intel.com>
11348             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11350         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11351         (VI8F_256_512): Ditto.
11352         (abs<mode>2): Changed iterator.
11353         (avx2_perm<mode>): Changed to ...
11354         (<avx2_avx512f>_perm<mode>): This.
11355         (avx2_perm<mode>_1): Changed to ...
11356         (<avx2_avx512f>_perm<mode>_1): This.
11358 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11359             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11360             Sergey Lega  <sergey.s.lega@intel.com>
11361             Anna Tikhonova  <anna.tikhonova@intel.com>
11362             Ilya Tocar  <ilya.tocar@intel.com>
11363             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11364             Ilya Verbin  <ilya.verbin@intel.com>
11365             Kirill Yukhin  <kirill.yukhin@intel.com>
11366             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11368         * config/i386/sse.md (VI48_AVX512F): New.
11369         (VI48_AVX2): Changed to ...
11370         (VI48_AVX2_48_AVX512F): This.
11371         (avx2_ashrv<mode>): Changed to ...
11372         (<avx2_avx512f>_ashrv<mode>): This.
11373         (avx2_<shift_insn>v<mode>): Changed to ...
11374         (<avx2_avx512f>_<shift_insn>v<mode>): This.
11376 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11377             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11378             Sergey Lega  <sergey.s.lega@intel.com>
11379             Anna Tikhonova  <anna.tikhonova@intel.com>
11380             Ilya Tocar  <ilya.tocar@intel.com>
11381             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11382             Ilya Verbin  <ilya.verbin@intel.com>
11383             Kirill Yukhin  <kirill.yukhin@intel.com>
11384             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11386         * config/i386/sse.md (VI4_AVX512F): New.
11387         (VI8_AVX2_AVX512F): Ditto.
11388         (mul<mode>3): Extended with wider modes.
11389         (*<sse4_1_avx2>_mul<mode>3): Ditto.
11390         (mul<mode>3): Ditto.
11391         (vec_widen_<s>mult_odd_<mode>): Ditto.
11393 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11394             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11395             Sergey Lega  <sergey.s.lega@intel.com>
11396             Anna Tikhonova  <anna.tikhonova@intel.com>
11397             Ilya Tocar  <ilya.tocar@intel.com>
11398             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11399             Ilya Verbin  <ilya.verbin@intel.com>
11400             Kirill Yukhin  <kirill.yukhin@intel.com>
11401             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11403         * config/i386/sse.md (VI2_AVX512F): New.
11404         (VI124_AVX512F): Ditto.
11405         (sseunpackmode): Extended with wider modes.
11406         (sseunpackfltmode): Ditto.
11407         (vec_unpacks_float_hi_<mode>): Ditto.
11408         (vec_unpacks_float_lo_<mode>): Ditto.
11409         (vec_unpacku_float_hi_<mode>): Ditto.
11410         (vec_unpacku_float_lo_<mode>): Ditto.
11411         (vec_unpacks_lo_<mode>): Ditto.
11412         (vec_unpacks_hi_<mode>): Ditto.
11413         (vec_unpacku_lo_<mode>): Ditto.
11414         (vec_unpacku_hi_<mode>): Ditto.
11416 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11417             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11418             Sergey Lega  <sergey.s.lega@intel.com>
11419             Anna Tikhonova  <anna.tikhonova@intel.com>
11420             Ilya Tocar  <ilya.tocar@intel.com>
11421             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11422             Ilya Verbin  <ilya.verbin@intel.com>
11423             Kirill Yukhin  <kirill.yukhin@intel.com>
11424             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11426         * config/i386/i386.md (multdiv): New.
11427         (multdiv_mnemonic): Ditto.
11428         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11429         (<sse>_vm<multdiv_mnemonic><mode>3): This.
11430         (<sse>_vmdiv<mode>3): Removed.
11432 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11433             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11434             Sergey Lega  <sergey.s.lega@intel.com>
11435             Anna Tikhonova  <anna.tikhonova@intel.com>
11436             Ilya Tocar  <ilya.tocar@intel.com>
11437             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11438             Ilya Verbin  <ilya.verbin@intel.com>
11439             Kirill Yukhin  <kirill.yukhin@intel.com>
11440             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11442         * config/i386/sse.md (V): Extended with wider modes.
11443         (VF2): Ditto.
11444         (ssehalfvecmode): Ditto.
11445         (i128): Ditto.
11446         (ssepackfltmode): Ditto.
11447         (avx_vec_concat<mode>): Ditto.
11448         (V_256_512): New iterator.
11449         (VF2_512_256): Ditto.
11450         (si2dfmode): New attribute.
11451         (si2dfmodelower): Ditto.
11452         (sf2dfmode): Ditto.
11453         (concat_tg_mode): Ditto.
11454         (floatv4siv4df2): Changed to ...
11455         (float<si2dfmodelower><mode>2): This.
11456         (avx_cvtps2pd256): Changed to ...
11457         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11458         (vec_pack_trunc_v4df): Changed to ...
11459         (vec_pack_trunc_<mode>): This.
11460         (avx_vpermil<mode>): Changed to ...
11461         (<sse2_avx_avx512f>_vpermil<mode>): This.
11462         (<fixsuffix>fix_truncv8dfv8si2): New.
11463         (vec_pack_sfix_trunc_v8df): Ditto.
11464         (avx512f_rndscale<mode>): Ditto.
11465         (avx512f_roundpd512): Ditto.
11466         (vec_pack_ufix_trunc_<mode>): Updated iterator.
11468 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11469             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11470             Sergey Lega  <sergey.s.lega@intel.com>
11471             Anna Tikhonova  <anna.tikhonova@intel.com>
11472             Ilya Tocar  <ilya.tocar@intel.com>
11473             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11474             Ilya Verbin  <ilya.verbin@intel.com>
11475             Kirill Yukhin  <kirill.yukhin@intel.com>
11476             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11478         * config/i386/i386.md (any_fix): New iterator.
11479         (fixsuffix): New attribute.
11480         * config/i386/sse.md (VF1): Extened with wider modes.
11481         (VI): Ditto.
11482         (VI_AVX2): Ditto.
11483         (VI8): Ditto.
11484         (sseintvecmodelower): Ditto.
11485         (ssescalarmode): Ditto.
11486         (ssescalarnum): Ditto.
11487         (VF1_128_256): New.
11488         (ssexmmmode): Ditto.
11489         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11490         (<sse>_rcp<mode>2): Change iterator.
11491         (rsqrt<mode>2): Ditto.
11492         (<sse>_rsqrt<mode>2): Ditto.
11493         (avx2_vec_dup<mode>): Ditto.
11494         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11495         (round<mode>2_sfix): Ditto.
11496         (avx2_pbroadcast<mode>): Ditto.
11497         (*andnot<mode>3): Handle XI mode.
11498         (*<code><mode>3): Ditto.
11499         (AVXTOSSEMODE): Removed.
11500         (avx_vpermil<mode>): Changed to ...
11501         (<sse2_avx_avx512f>_vpermil<mode>): This.
11503 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11504             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11505             Sergey Lega  <sergey.s.lega@intel.com>
11506             Anna Tikhonova  <anna.tikhonova@intel.com>
11507             Ilya Tocar  <ilya.tocar@intel.com>
11508             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11509             Ilya Verbin  <ilya.verbin@intel.com>
11510             Kirill Yukhin  <kirill.yukhin@intel.com>
11511             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11513         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11514         (<sse>_comi): Ditto.
11515         (<sse>_ucomi): Ditto.
11516         (sse_cvtss2siq_2): Ditto.
11517         (sse2_cvtsd2si): Ditto.
11518         (sse2_cvtsd2siq): Ditto.
11519         (sse2_cvttsd2si): Ditto.
11520         (sse2_cvttsd2siq): Ditto.
11521         (<shift_insn><mode>3): Ditto.
11522         (sse2_cvtsi2sdq): Update constraint and prefix.
11523         (sse_cvtsi2ss): Update prefix.
11524         (sse_cvtsi2ssq): Ditto.
11526 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11528         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11529         ignore internal calls.
11531 2013-10-11  Richard Biener  <rguenther@suse.de>
11533         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11534         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
11535         TREE_OVERFLOW is set.
11537 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
11539         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11541         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11542         * gimple.h: Likewise.
11544         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11546         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11547         macros.
11549         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11551         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11552         * configure: Regenerate.
11554 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11556         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11557         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11558         formatting fixes, use pp_colon instead of pp_character (..., ':'),
11559         similarly pp_right_paren.
11560         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11561         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11562         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11563         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11564         clauses.
11565         (omp_declare_simd_clauses_equal,
11566         omp_remove_redundant_declare_simd_attrs): New functions.
11567         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11568         (walk_tree_1): Handle new OpenMP 4.0 clauses.
11569         * tree.h (OMP_LOOP_CHECK): Define.
11570         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11571         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11572         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11573         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11574         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11575         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11576         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11577         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11578         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11579         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11580         OMP_CLAUSE_SIMDLEN_EXPR): Define.
11581         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11582         (omp_remove_redundant_declare_simd_attrs): New prototype.
11583         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11584         GIMPLE_OMP_TEAMS): New codes.
11585         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11586         * omp-low.c (struct omp_context): Add cancel_label and cancellable
11587         fields.
11588         (target_nesting_level): New variable.
11589         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11590         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
11591         for collapse > 1 static schedule unless ordered.
11592         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
11593         (determine_parallel_type): Adjust get_ws_args_for caller.
11594         (install_var_field): Handle mask & 4 for double indirection.
11595         (scan_sharing_clauses): Ignore shared clause on teams construct.
11596         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11597         (create_omp_child_function): If inside target or declare target
11598         constructs, set "omp declare target" attribute on the child function.
11599         (find_combined_for): New function.
11600         (scan_omp_parallel): Handle combined loops.
11601         (scan_omp_target, scan_omp_teams): New functions.
11602         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11603         restrictions and set ctx->cancellable for cancellable constructs.
11604         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11605         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
11606         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11607         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11608         (omp_clause_aligned_alignment): New function.
11609         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11610         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
11611         on teams constructs.  Handle user defined reductions and new
11612         OpenMP 4.0 clauses.
11613         (lower_reduction_clauses): Don't set placeholder to address of ref
11614         if it has already the right type.
11615         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11616         (expand_parallel_call): Use the new non-_start suffixed builtins,
11617         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11618         and GOMP_parallel_end after the call.
11619         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11620         (expand_omp_for_init_counts): Handle combined loops.
11621         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11622         loops.
11623         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
11624         end of cancellable loops.
11625         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11626         Likewise.  Handle collapse > 1 loops.
11627         (expand_omp_simd): Handle combined loops.
11628         (expand_omp_for): Add inner_stmt argument, adjust callers of
11629         expand_omp_for* functions, use expand_omp_for_static*chunk even
11630         for collapse > 1 unless ordered.
11631         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11632         of cancellable sections.
11633         (expand_omp_single): Remove need_barrier variable, just rely on
11634         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
11635         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11636         (expand_omp_atomic_load, expand_omp_atomic_store,
11637         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11638         (expand_omp_target): New function.
11639         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
11640         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11641         (build_omp_regions_1): Immediately close region for
11642         GF_OMP_TARGET_KIND_UPDATE.
11643         (maybe_add_implicit_barrier_cancel): New function.
11644         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
11645         cancellation.
11646         (lower_omp_single): Likewise.  Add clobber after the barrier.
11647         (lower_omp_taskgroup): New function.
11648         (lower_omp_for): Handle combined loops.  Adjust
11649         lower_rec_input_clauses caller.  Handle cancellation.
11650         (lower_depend_clauses): New function.
11651         (lower_omp_taskreg): Lower depend clauses.  Adjust
11652         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
11653         cancellation.
11654         (lower_omp_target, lower_omp_teams): New functions.
11655         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
11656         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11657         and GOMP_cancellation_point calls.
11658         (lower_omp): Fold stmts inside of target region.
11659         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11660         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11661         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11662         (BT_FN_VOID_OMPFN_PTR_UINT,
11663         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11664         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11665         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11666         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11667         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11668         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11669         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11670         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11671         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11672         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11673         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11674         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11675         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11676         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
11677         BUILT_IN_GOMP_PARALLEL_END.
11678         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11679         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11680         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11681         GF_OMP_FOR_KIND_DISTRIBUTE.
11682         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11683         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11684         (dump_gimple_omp_return): Print lhs if it has any.
11685         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11686         gimple_omp_atomic_seq_cst_p.
11687         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11688         and GIMPLE_OMP_TEAMS.
11689         * langhooks.c (lhd_omp_mappable_type): New function.
11690         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
11691         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
11692         hook.
11693         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
11694         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
11695         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
11696         (struct gimplify_omp_ctx): Add combined_loop field.
11697         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
11698         on stmts inside of target region.
11699         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11700         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11701         ORT_TARGET and ORT_TARGET_DATA.
11702         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11703         Handle GOVD_MAP.
11704         (omp_notice_threadprivate_variable): Complain about threadprivate
11705         variables in target region.
11706         (omp_notice_variable): Complain about vars with non-mappable type
11707         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11708         (omp_check_private): Ignore ORT_TARGET* regions.
11709         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11710         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11711         (find_combined_omp_for): New function.
11712         (gimplify_omp_for): Handle gimplification of combined loops.
11713         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11714         OMP_TEAMS.
11715         (gimplify_omp_target_update): New function.
11716         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11717         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11718         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11719         (gimplify_body): If fndecl has "omp declare target" attribute, add
11720         implicit ORT_TARGET context around it.
11721         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11722         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11723         * tree-nested.c (convert_nonlocal_reference_stmt,
11724         convert_local_reference_stmt, convert_gimple_call): Handle
11725         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11726         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11727         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11728         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11729         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11730         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11731         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11732         BUILT_IN_GOMP_LOOP_END_CANCEL,
11733         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11734         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11735         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11736         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11737         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11738         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11739         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11740         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11741         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11742         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11743         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11744         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11745         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11746         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11747         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11748         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11749         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11750         gimple_build_omp_teams): New functions.
11751         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11752         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
11753         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11754         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11755         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11756         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11757         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11758         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11759         GF_OMP_ATOMIC_SEQ_CST): New.
11760         (gimple_build_omp_taskgroup, gimple_build_omp_target,
11761         gimple_build_omp_teams): New prototypes.
11762         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11763         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11764         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11765         GIMPLE_OMP_SINGLE as end of range.
11766         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11767         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11768         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11769         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11770         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11771         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11772         gimple_omp_target_kind, gimple_omp_target_set_kind,
11773         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11774         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11775         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11776         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11777         gimple_omp_teams_set_clauses): New inlines.
11778         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11779         and GIMPLE_OMP_TASKGROUP.
11780         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
11781         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
11782         enum omp_clause_proc_bind_kind): New.
11783         (union omp_clause_subcode): Add depend_kind, map_kind and
11784         proc_bind_kind fields.
11785         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
11786         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11787         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
11788         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
11789         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11791 2013-10-10  Teresa Johnson  <tejohnson@google.com>
11793         * predict.c (tree_estimate_probability): Add new parameter
11794         for estimate_bb_frequencies.
11795         (estimate_bb_frequencies): Add new parameter to force estimation.
11796         (rebuild_frequencies): When max frequency in function is small,
11797         recompute counts from frequencies.
11798         * predict.h (estimate_bb_frequencies): New parameter.
11800 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11802         * ipa-inline.c (ipa_inline): Fix leak of "order" when
11803         optimizations are disabled.
11805 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11807         * coverage.c (coverage_finish): Fix leak of da_file_name.
11809 2013-10-10  Jan Hubicka  <jh@suse.cz>
11811         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
11812         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
11813         Bobcat and generic.
11815 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
11817         PR middle-end/58670
11818         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
11819         if any labels are in FALLTHRU_BB, use a special label emitted
11820         immediately after the asm goto insn rather than label_rtx
11821         of the LABEL_DECL.
11822         (expand_asm_stmt): Adjust caller.
11823         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
11824         edge if the last insn in predecessor is a jump with single successor,
11825         but it isn't simplejump_p.
11827 2013-10-10  Richard Biener  <rguenther@suse.de>
11829         PR tree-optimization/58656
11830         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
11832 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11834         * gimplify.c: Include expr.h and tm_p.h for targets with special
11835         va-arg padding requirements.
11837 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11839         * tree-flow.h: Move some prototypes to gimple.h.
11840         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
11841         * gimple.h: Relocate some prototypes from tree-flow.h
11842         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
11843         Move to gimplify.c.
11844         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
11845         (build_va_arg_indirect_ref): Relocate and make static.
11846         (std_gimplify_va_arg_expr): Relocate here.
11847         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
11848         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
11850 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11852         * doc/md.texi: Document the mnemonic attribute.
11854 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11856         PR target/57377
11857         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
11858         (set_attr_alternative x ...) when searching for user defined
11859         mnemonic attribute.
11861 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11863         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
11865 2013-10-09  Easwaran Raman <eraman@google.com>
11867         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
11868         * cfgexpand.c (defer_stack_allocation): ...use here
11869         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
11871 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11873         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
11874         (operand_equal_for_value_replacement): New function, extracted from
11875         value_replacement and enhanced to catch more cases.
11876         (value_replacement): Use operand_equal_for_value_replacement.
11878 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11880         * loop-doloop.c (doloop_modify, doloop_optimize): Use
11881         get_max_loop_iterations.
11883 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11885         * config/arm/aarch-common.c (arm_early_load_addr_dep):
11886         Place comment above function.
11888 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11890         * tree-flow.h: Remove all remaining prototypes, enums and structs that
11891         are not related to tree-cfg.c.
11892         * tree-ssa-address.h: New file.  Relocate prototypes.
11893         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
11894         (addr_for_mem_ref): New.  Combine call to get_address_description and
11895         return addr_for_mem_ref.
11896         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
11897         * tree-ssa-live.h: Adjust prototypes.
11898         * passes.c: Include tree-ssa-live.h.
11899         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
11900         * graphite.c (graphite_transform_loops): Make static.
11901         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11902         make_pass_graphite, pass_data_graphite_transforms,
11903         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
11904         * ipa-pure-const.c (warn_function_noreturn): Make static.
11905         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11906         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11907         Relocate from tree-cfg.c
11908         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
11909         static.
11910         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11911         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11912         Move to ipa-pure-const.c.
11913         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
11914         Relocate from tree-optimize.c.
11915         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
11916         make_pass_fixup_cfg): Move to tree-cfg.c.
11917         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
11918         Relocate some prototypes.
11919         * tree-data-ref.h (tree_check_data_deps) Add prototype.
11920         * tree-dump.c (dump_function_to_file): Remove prototype.
11921         Add tree-flow.h to the include file.
11922         * tree-dump.h: Remove prototype.
11923         * tree-parloops.h: New File.  Add prototypes.
11924         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
11925         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
11926         from tree-ssa-loop.c.
11927         * tree-predcom.c (run_tree_predictive_commoning,
11928         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
11929         Relocate here from tree-ssa-loop.c.
11930         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
11931         ssa_name_values.release ().
11932         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
11933         (ssa_name_values): Relocate from tree-flow.h.
11934         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
11935         * tree-ssa-loop.c (run_tree_predictive_commoning,
11936         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
11937         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11938         make_pass_graphite, pass_data_graphite_transforms,
11939         make_pass_graphite_transforms, gate_tree_parallelize_loops,
11940         tree_parallelize_loops, pass_data_parallelize_loops,
11941         make_pass_parallelize_loops): Move to other files.
11942         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
11943         moved here.
11944         * tree.h: Remove prototypes from tree-address.c.
11946 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11948         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
11949         (struct int_tree_map): Move to tree-hasher.h
11950         (SCALE, LABEL, PERCENT): Move to gimple.h
11951         * tree-flow-inline.h: Delete.  Move functions to other files.
11952         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
11953         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
11954         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
11955         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
11956         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
11957         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
11958         * tree-hasher.h: Don't include tree-flow.h.
11959         (struct int_tree_map): Relocate from tree-flow.h.
11960         * tree-sra.c (contains_view_convert_expr_p): Relocate from
11961         tree-flow-inline.h and make static.
11962         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
11963         tree-flow-inline.h.
11964         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
11965         tree-flow-inline.h and make static.
11966         * tree.h (is_global_var, may_be_aliased): Relocate from
11967         tree-flow-inline.h.
11968         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
11969         * value-prof.c: No longer include tree-flow-inline.h.
11970         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
11972 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11974         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
11975         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
11976         (enum move_pos): Move to tree-ssa-loop-im.h
11977         * cfgloop.h: Move some prototypes.
11978         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
11979         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
11980         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
11981         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
11982         (loop_containing_stmt): Relocate from tree-flow-inline.h.
11983         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
11984         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
11985         (enum move_pos): Relocate here.
11986         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
11987         tree-ssa-loop.c.
11988         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
11989         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
11990         make_pass_lim): Relocate here from tree-ssa-loop.c.
11991         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
11992         tree-ssa-loop.c.
11993         (loop_edge_to_cancel, unloop_loops): Make static.
11994         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11995         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
11996         (tree_complete_unroll, gate_tree_complete_unroll,
11997         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
11998         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11999         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12000         * tree-ssa-loop-ivopts.c: Remove local prototypes.
12001         (stmt_invariant_in_loop_p): Remove unused function.
12002         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
12003         * tree-ssa-loop-manip.h: New file.  Add prototypes.
12004         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12005         (gcov_type_to_double_int): Move to cfgloop.h.
12006         (double_int_cmp, bound_index,
12007         estimate_numbers_of_iterations_loop): Make static.
12008         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12009         (max_loop_iterations): Factor out get_max_loop_iterations.
12010         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12011         cfgloop.c.
12012         * tree-ssa-loop-niter.h: New file.  Add prototypes.
12013         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12014         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12015         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12016         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12017         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12018         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12019         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12020         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12021         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12022         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12023         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12024         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12025         pass_data_complete_unroll, make_pass_complete_unroll,
12026         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12027         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12028         tree-ssa-loop-ivcanon.c.
12029         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12030         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12031         tree-ssa-loop-prefetch.c.
12032         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12033         tree-ssa-loop-im.c.
12034         (get_lsm_tmp_name): Relocate and add suffix parameter.
12035         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12036         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12037         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12038         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12039         (get_estimated_loop_iterations): Factor out accessor from
12040         estimated_loop_iterations in tree-ssa-loop-niter.c.
12041         (get_max_loop_iterations): Factor out accessor from
12042         _max_loop_iterations in tree-ssa-niter.c.
12043         * loop-unroll.c (decide_unroll_constant_iterations,
12044         decide_unroll_runtime_iterations, decide_peel_simple,
12045         decide_unroll_stupid): Use new get_* accessors.
12047 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
12049         PR tree-optimization/20318
12050         * doc/extend.texi (returns_nonnull): New function attribute.
12051         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12052         attribute.
12053         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12054         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12056 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
12058         PR middle-end/58570
12059         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12060         false if both components are bitfields.
12062 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12064         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12065         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12066         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12067         * config/aarch64/aarch64.h
12068         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12069         * config/aarch64/aarch64-simd-builtins.def
12070         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12072 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12074         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12076 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12078         * config/aarch64/arm_neon.h (vdiv_f64): Added.
12080 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12082         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12083         (vneg_f64): New intrinsic.
12084         (vneg_s8): Asm replaced with C.
12085         (vneg_s16): Likewise.
12086         (vneg_s32): Likewise.
12087         (vneg_s64): New intrinsic.
12088         (vnegq_f32): Asm replaced with C.
12089         (vnegq_f64): Likewise.
12090         (vnegq_s8): Likewise.
12091         (vnegq_s16): Likewise.
12092         (vnegq_s32): Likewise.
12093         (vnegq_s64): Likewise.
12095 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
12097         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12099 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12101         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12102         packed stack special handling.
12103         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12104         back to fixed stack slots for FPRs saved due to stdarg.
12106 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12108         * config/s390/s390.c (s390_frame_info): Restructure function.
12110 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12112         * config/s390/s390.c (struct s390_frame_layout): New field
12113         gpr_save_slots.
12114         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12115         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12116         regs_ever_clobbered to char*.
12117         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12118         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
12119         (s390_register_info): Enable FPR save slots.  Move/Copy some
12120         functionality into ...
12121         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12122         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12123         function.
12124         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
12125         not imply a stack frame.
12126         (s390_init_frame_layout): Remove variable clobbered_regs.
12127         (s390_update_register_info): Remove function.
12128         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12129         cannot be used for register renaming.
12130         (s390_hard_regno_scratch_ok): New function.
12131         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12132         (s390_initial_elimination_offset): Change offset calculation of
12133         the return address pointer.
12134         (save_gprs): Deal with only r6 being saved from the call-saved regs.
12135         (restore_gprs): Set frame related flag.
12136         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12137         (s390_emit_prologue): Call s390_register_info instead of
12138         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
12139         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12140         (s390_optimize_prologue): Call s390_optimize_register_info.
12141         Try to remove also FPR slot save/restore INSNs.  Remove frame
12142         related flags from restore INSNs.
12144 2013-10-08  DJ Delorie  <dj@redhat.com>
12146         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12147         (movhi): Likewise.
12149         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12150         avoid conflict with the MI use of %c.
12151         * config/rl78/rl78-real.md: change %c to %C throughout.
12152         * config/rl78/rl78-virt.md: Likewise.
12154 2013-10-08  Jan Hubicka  <jh@suse.cz>
12156         * config/i386/i386.c (ix86_option_override_internal): Switch
12157         to SSE math for -ffast-math when target ISA supports SSE2.
12159 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
12161         * tree-flow.h: Remove some prototypes.
12162         * tree.h: Remove some protypes, add a couple.
12163         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12164         using_eh_for_cleanups_p): Add interface routines for front ends.
12165         * tree-eh.h: New file.  Add protoptyes.
12166         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12167         (add_stmt_to_eh_lp_fn): Make static.
12168         (lower_try_finally): Use new using_eh_for_cleanups_p.
12169         * emit-rtl.c: Include tree-eh.h.
12170         * gimple.h: Include tree-eh.h.
12172 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
12174         PR tree-optimization/58480
12175         * tree-vrp.c (infer_nonnull_range): New function.
12176         (infer_value_range): Call infer_nonnull_range.
12178 2013-10-08  Dehao Chen  <dehao@google.com>
12180         PR tree-optimization/58619
12181         * tree-inline.c (copy_phis_for_bb): Combine location data
12182         only if non-null.
12184 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12186         PR target/58423
12187         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12188         RTX_FRAME_RELATED_P on INSN.
12190 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12192         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12193         (altivec_expand_vec_perm_const): Call it.
12195 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12197         * config/rs6000/vector.md (mov<mode>): Emit permuted move
12198         sequences for LE VSX loads and stores at expand time.
12199         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12200         prototype.
12201         * config/rs6000/rs6000.c (rs6000_const_vec): New.
12202         (rs6000_gen_le_vsx_permute): New.
12203         (rs6000_gen_le_vsx_load): New.
12204         (rs6000_gen_le_vsx_store): New.
12205         (rs6000_gen_le_vsx_move): New.
12206         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12207         (*vsx_le_perm_load_v4si): New.
12208         (*vsx_le_perm_load_v8hi): New.
12209         (*vsx_le_perm_load_v16qi): New.
12210         (*vsx_le_perm_store_v2di): New.
12211         (*vsx_le_perm_store_v4si): New.
12212         (*vsx_le_perm_store_v8hi): New.
12213         (*vsx_le_perm_store_v16qi): New.
12214         (*vsx_xxpermdi2_le_<mode>): New.
12215         (*vsx_xxpermdi4_le_<mode>): New.
12216         (*vsx_xxpermdi8_le_V8HI): New.
12217         (*vsx_xxpermdi16_le_V16QI): New.
12218         (*vsx_lxvd2x2_le_<mode>): New.
12219         (*vsx_lxvd2x4_le_<mode>): New.
12220         (*vsx_lxvd2x8_le_V8HI): New.
12221         (*vsx_lxvd2x16_le_V16QI): New.
12222         (*vsx_stxvd2x2_le_<mode>): New.
12223         (*vsx_stxvd2x4_le_<mode>): New.
12224         (*vsx_stxvd2x8_le_V8HI): New.
12225         (*vsx_stxvd2x16_le_V16QI): New.
12227 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
12229         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12231 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12233         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12234         loop to work also for 31bit ABI.
12235         Save the stack pointer for frame_size > 0.
12237 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12239         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12240         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12241         constraint letters from expanders.
12242         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12243         retry count to general_operand.
12244         ("tabort"): Give operand 0 a mode.
12245         ("tabort_1"): Add mode and constraint letter for operand 0.
12246         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12248 2013-10-04  Jeff Law  <law@redhat.com>
12250         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12252         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12253         out of ...
12254         (thread_across_edge): Here.  Call it.
12256 2013-10-04  Cary Coutant  <ccoutant@google.com>
12258         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12259         discarding a location list expression (or a piece of one).
12261 2013-10-03  Jan Hubicka  <jh@suse.cz>
12263         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12264         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
12265         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12267 2013-10-03  Jan Hubicka  <jh@suse.cz>
12269         * config/i386/i386.c (ix86_option_override_internal): Do not enable
12270         accumulate-outgoing-args when producing unwind info.
12272 2013-10-03  Wei Mi  <wmi@google.com>
12274         * lra-constraints.c (insert_move_for_subreg): New function
12275         extracted from simplify_operand_subreg.
12276         (simplify_operand_subreg): Add reload for paradoxical subreg.
12278 2013-10-03  Rong Xu  <xur@google.com>
12280         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12281         the candidate of builtin_expect such that we should fix the
12282         size/time estimation.
12283         (estimate_function_body_sizes): Do the acutally size/time fix-up
12284         for builtin_expect.
12286 2013-10-03  Rong Xu  <xur@google.com>
12288         * predict.c (tree_predict_by_opcode): Get the probability
12289         for builtin_expect from param builtin_expect_probability.
12290         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12291         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12292         * doc/invoke.texi: Add documentation for builtin-expect-probability.
12294 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
12296         PR c++/19476
12297         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12298         * calls.c (alloca_call_p): Use get_callee_fndecl.
12299         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12300         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12301         Likewise.
12302         (vrp_visit_stmt): Remove duplicated code.
12304 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12306         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12307         ceildf2, btruncdf2, instead of vsx_* name.
12309         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12310         iterators to only do V2DF and V4SF here.  Move the DF code to
12311         rs6000.md where it is combined with SF mode.  Replace <VSv> with
12312         just 'v' since only vector operations are handled with these insns
12313         after moving the DF support to rs6000.md.
12314         (vsx_sub<mode>3): Likewise.
12315         (vsx_mul<mode>3): Likewise.
12316         (vsx_div<mode>3): Likewise.
12317         (vsx_fre<mode>2): Likewise.
12318         (vsx_neg<mode>2): Likewise.
12319         (vsx_abs<mode>2): Likewise.
12320         (vsx_nabs<mode>2): Likewise.
12321         (vsx_smax<mode>3): Likewise.
12322         (vsx_smin<mode>3): Likewise.
12323         (vsx_sqrt<mode>2): Likewise.
12324         (vsx_rsqrte<mode>2): Likewise.
12325         (vsx_fms<mode>4): Likewise.
12326         (vsx_nfma<mode>4): Likewise.
12327         (vsx_copysign<mode>3): Likewise.
12328         (vsx_btrunc<mode>2): Likewise.
12329         (vsx_floor<mode>2): Likewise.
12330         (vsx_ceil<mode>2): Likewise.
12331         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12332         (vsx_sminsf3): Likewise.
12333         (vsx_fmadf4): Likewise.
12334         (vsx_fmsdf4): Likewise.
12335         (vsx_nfmadf4): Likewise.
12336         (vsx_nfmsdf4): Likewise.
12337         (vsx_cmpdf_internal1): Likewise.
12339         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12340         simpler to select whether a target has SPE or traditional floating
12341         point support in iterators.
12342         (TARGET_DF_SPE): Likewise.
12343         (TARGET_SF_FPR): Likewise.
12344         (TARGET_DF_FPR): Likewise.
12345         (TARGET_SF_INSN): Macros to say whether floating point support
12346         exists for a given operation for expanders.
12347         (TARGET_DF_INSN): Likewise.
12349         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12350         combining of SF/DF mode operations, using both traditional and VSX
12351         registers.
12352         (Fvsx): Likewise.
12353         (Ff): Likewise.
12354         (Fv): Likewise.
12355         (Fs): Likewise.
12356         (Ffre): Likewise.
12357         (FFRE): Likewise.
12358         (abs<mode>2): Combine SF/DF modes using traditional floating point
12359         instructions.  Add support for using the upper DF registers with
12360         VSX support, and SF registers with power8-vector support.  Update
12361         expanders for operations supported by both the SPE and traditional
12362         floating point units.
12363         (abs<mode>2_fpr): Likewise.
12364         (nabs<mode>2): Likewise.
12365         (nabs<mode>2_fpr): Likewise.
12366         (neg<mode>2): Likewise.
12367         (neg<mode>2_fpr): Likewise.
12368         (add<mode>3): Likewise.
12369         (add<mode>3_fpr): Likewise.
12370         (sub<mode>3): Likewise.
12371         (sub<mode>3_fpr): Likewise.
12372         (mul<mode>3): Likewise.
12373         (mul<mode>3_fpr): Likewise.
12374         (div<mode>3): Likewise.
12375         (div<mode>3_fpr): Likewise.
12376         (sqrt<mode>3): Likewise.
12377         (sqrt<mode>3_fpr): Likewise.
12378         (fre<Fs>): Likewise.
12379         (rsqrt<mode>2): Likewise.
12380         (cmp<mode>_fpr): Likewise.
12381         (smax<mode>3): Likewise.
12382         (smin<mode>3): Likewise.
12383         (smax<mode>3_vsx): Likewise.
12384         (smin<mode>3_vsx): Likewise.
12385         (negsf2): Delete SF operations that are merged with DF.
12386         (abssf2): Likewise.
12387         (addsf3): Likewise.
12388         (subsf3): Likewise.
12389         (mulsf3): Likewise.
12390         (divsf3): Likewise.
12391         (fres): Likewise.
12392         (fmasf4_fpr): Likewise.
12393         (fmssf4_fpr): Likewise.
12394         (nfmasf4_fpr): Likewise.
12395         (nfmssf4_fpr): Likewise.
12396         (sqrtsf2): Likewise.
12397         (rsqrtsf_internal1): Likewise.
12398         (smaxsf3): Likewise.
12399         (sminsf3): Likewise.
12400         (cmpsf_internal1): Likewise.
12401         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12402         (negdf2): Delete DF operations that are merged with SF.
12403         (absdf2): Likewise.
12404         (nabsdf2): Likewise.
12405         (adddf3): Likewise.
12406         (subdf3): Likewise.
12407         (muldf3): Likewise.
12408         (divdf3): Likewise.
12409         (fred): Likewise.
12410         (rsqrtdf_internal1): Likewise.
12411         (fmadf4_fpr): Likewise.
12412         (fmsdf4_fpr): Likewise.
12413         (nfmadf4_fpr): Likewise.
12414         (nfmsdf4_fpr): Likewise.
12415         (sqrtdf2): Likewise.
12416         (smaxdf3): Likewise.
12417         (smindf3): Likewise.
12418         (cmpdf_internal1): Likewise.
12419         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12420         (btrunc<mode>2): Delete separate expander, and combine with the
12421         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
12422         (btrunc<mode>2_fpr): Likewise.
12423         (ceil<mode>2): Likewise.
12424         (ceil<mode>2_fpr): Likewise.
12425         (floor<mode>2): Likewise.
12426         (floor<mode>2_fpr): Likewise.
12427         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12428         Add support for using the upper registers with VSX and
12429         power8-vector.  Move insns to be closer to the define_expands. On
12430         VSX systems, prefer the traditional form of FMA over the VSX
12431         version, since the traditional form allows the target not to
12432         overlap with the inputs.
12433         (fms<mode>4_fpr): Likewise.
12434         (nfma<mode>4_fpr): Likewise.
12435         (nfms<mode>4_fpr): Likewise.
12437 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12438             Richard Earnshaw  <richard.earnshaw@arm.com>
12440         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12441         (struct mult_cost_table): Likewise.
12442         (struct mem_cost_table): Likewise.
12443         (struct fp_cost_table): Likewise.
12444         (struct vector_cost_table): Likewise.
12445         (cpu_cost_table): Likewise.
12446         * config/arm/arm.opt (mold-rts-costs): New option.
12447         (mnew-generic-costs): Likewise.
12448         * config/arm/arm.c (generic_extra_costs): New table.
12449         (cortexa15_extra_costs): Likewise.
12450         (arm_slowmul_tune): Use NULL as new costs.
12451         (arm_fastmul_tune): Likewise.
12452         (arm_strongarm_tune): Likewise.
12453         (arm_xscale_tune): Likewise.
12454         (arm_9e_tune): Likewise.
12455         (arm_v6t2_tune): Likewise.
12456         (arm_cortex_a5_tune): Likewise.
12457         (arm_cortex_a9_tune): Likewise.
12458         (arm_v6m_tune): Likewise.
12459         (arm_fa726te_tune): Likewise.
12460         (arm_cortex_a15_tune): Use cortex15_extra_costs.
12461         (arm_cortex_tune): Use generict_extra_costs.
12462         (shifter_op_p): New function.
12463         (arm_unspec_cost): Likewise.
12464         (LIBCALL_COST): Define.
12465         (arm_new_rtx_costs): New function.
12466         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12467         table is available. Use old costs otherwise unless mnew-generic-costs
12468         is specified.
12469         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12470         (cpu_cost_table): Declare.
12472 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12474         PR target/58460
12475         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12476         (*subs_mul_imm_<mode>)
12477         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12478         (*sub_<shift>_<mode>)
12479         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12480         Remove k constraint.
12482 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
12484         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12485         code.
12486         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12488 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12490         * predict.c (probably_never_executed): New function.
12491         (probably_never_executed_bb_p): Invoke probably_never_executed.
12492         (probably_never_executed_edge_p): Ditto.
12493         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12494         Treat profile insanities conservatively.
12496 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
12498         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12500 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
12502         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12503         use it.  Use smaller increase for scratch.  Don't increase reject
12504         for early clobber scratch.
12505         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12506         setting eliminated regs except setting fp from hfp.
12507         (lra_eliminate): Check lra_insn_recog_data on NULL.
12509 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12511         PR target/58587
12512         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12513         setting -mvsx-timode by default until the underlying problem is fixed.
12514         (RS6000_CPU, power7 defaults): Likewise.
12516 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12518         * config/x-linux (host-linux.o): Remove header dependencies.
12519         Use $(COMPILE) and $(POSTCOMPILE).
12520         * config/t-linux-android (linux-android.o): Ditto.
12522 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12524         * Makefile.in (expmed.o-warn): Remove.
12526 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12528         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12529         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12531 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12533         * dojump.c (do_jump_1): Divide probability between
12534         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12536 2013-10-02  Tom Tromey  <tromey@redhat.com>
12538         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12540 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12542         * tree-flow.h: Remove some prototypes.
12543         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12544         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12545         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12546         mark_virtual_phi_result_for_renaming): Relocate here.
12547         * tree-into-ssa.h: Add prototypes.
12548         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12549         single_pred_before_succ_order.
12550         (blocks_in_phiopt_order): Rename and move to cfganal.c.
12551         (nonfreeing_call_p) Move to gimple.c.
12552         * cfganal.c (single_pred_before_succ_order): Move and renamed from
12553         tree-ssa-phiopt.c.
12554         * basic-block.h (single_pred_before_succ_order): Add prototype.
12555         * gimple.c (nonfreeing_call_p): Relocate here.
12556         * gimple.h: Add prototype.
12557         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12558         * tree-ssa-dom.h: New file.  Relocate prototypes here.
12559         * tree-ssa.h: Include tree-ssa-dom.h.
12561 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12563         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12564         Use $(COMPILE) and $(POSTCOMPILE).
12566         * config/alpha/x-alpha (driver-alpha.o): Ditto.
12568 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12570         * tree-flow.h: Remove some prototypes.
12571         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12572         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12573         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12574         propagate_tree_value*): Move from here to...
12575         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12576         propagate_tree_value*): Relocate here.
12577         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12578         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12579         * gimple-fold.c: Remove gimple-fold.h from include list.
12580         * tree-vrp.c: Remove gimple-fold.h from include list.
12581         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12582         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12583         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12584         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12585         * sese.c: Add tree-ssa-propagate.h to include list.
12587 2013-10-02  Richard Biener  <rguenther@suse.de>
12589         * tree-loop-distribution.c: Include tree-vectorizer.h for
12590         find_loop_location.
12591         (enum partition_kind): Remove PKIND_REDUCTION.
12592         (struct partition_s): Remove has_writes member, add reduction_p member.
12593         (partition_alloc): Adjust.
12594         (partition_builtin_p): Likewise.
12595         (partition_has_writes): Remove.
12596         (partition_reduction_p): New function.
12597         (partition_merge_into): Likewise.
12598         (generate_code_for_partition): Commonize builtin partition
12599         handling tail.
12600         (rdg_cannot_recompute_vertex_p): Remove.
12601         (already_processed_vertex_p): Likewise.
12602         (rdg_flag_vertex): Do not set has_writes.
12603         (classify_partition): Adjust.
12604         (rdg_build_partitions): Do not set has_writes, treat all
12605         partitions as useful.
12606         (distribute_loop): Record number of library calls generated.  Adjust.
12607         (tree_loop_distribution): Report number of loops and library
12608         calls generated as opt-info.
12610 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12612         * tree-flow.h: Include new .h files.  Move prototypes.
12613         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
12614         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
12615         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12616         * tree-pretty-print.h: Add prototypes from tree-flow.h.
12617         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
12618         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12619         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12620         * tree.h (get_ref_base_and_extent): Move prototype out.
12621         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12622         tree-dfa.h.
12623         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
12624         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12625         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12626         * tree-scalar-evolution.c: Include tree.h.
12627         * sese.c: Include tree.h.
12628         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12629         * dwarf2out.c: Include tree-dfa.h.
12630         * tree-chrec.c: Include tree.h.
12631         * tree-data-ref.c: Include tree.h.
12633 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
12635         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12636         Fix whitespace.
12638 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12640         * config/t-sol2 (sol2-c.o): Remove header dependencies.
12641         Use $(COMPILE) and $(POSTCOMPILE).
12642         (sol2-cxx.o): Likewise.
12643         (sol2-stubs.o): Likewise.
12644         (sol2.o): Likewise.
12645         * config/x-solaris (host-solaris.o): Likewise.
12647         * config/sparc/t-sparc (sparc.o): Remove.
12648         (sparc-c.o): Remove header dependencies.
12649         Use $(COMPILE) and $(POSTCOMPILE).
12650         * config/sparc/x-sparc: Likewise.
12652 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
12654         * config/arc/arc-opts.h: Add 2013 to Copyright years.
12655         * config/arc/arc700.md: Likewise.
12656         * config/arc/arc-modes.def: Likewise.
12657         * config/arc/arc-simd.h: Likewise.
12658         * config/arc/t-arc-uClibc: Likewise.
12659         * config/arc/t-arc-newlib: Likewise.
12661 2013-10-02  Renlin Li  <renlin.li@arm.com>
12663         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12664         plus_constant.
12665         (aarch64_expand_epilogue): Likewise.
12667 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12668             Yufeng Zhang  <yufeng.zhang@arm.com>
12670         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12671         declaration.
12672         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12673         'base_in' represent a conversion and legal_cast_p_1 holds; set
12674         'base_in' with the returned value from get_unwidened.
12676 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12678         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12679         plus_constant is not used.
12681 2013-10-01  Wei Mi  <wmi@google.com>
12683         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12684         * config/i386/i386.md: Add define_peephole2 to
12685         break partial reg stall for cvtss2sd/cvtsd2ss.
12687 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12689         * config/arc/arc.c (pass_arc_ifcvt::clone):
12690         Update for ctxt_ -> m_ctxt change.
12692 2013-10-01  Jeff Law  <law@redhat.com>
12694         * tree-ssa-threadupdate.c (struct redirection_data): Delete
12695         outgoing_edge and intermediate_edge fields.  Instead store the path.
12696         (redirection_data::hash): Hash on the last edge's destination index.
12697         (redirection_data::equal): Check the entire thread path.
12698         (lookup_redirectio_data): Corresponding changes.
12699         (create_edge_and_update_destination_phis): Likewise.
12700         (thread_single_edge): Likewise.
12702 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12703             Diego Novillo <dnovillo@google.com>
12705         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12706         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12707         (vld32wh_insn, vld32wl_insn): Delete commented-out old
12708         versions of these patterns.
12710         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12711         (__builtin_arc_aligned): Likewise.
12713         * config/arc/arc.md: Expand adc_0 comment stating the intended
12714         purpose and why it isn't ready.
12715         Replace commented out call_value_via_label_mixed with a
12716         plain comment about bl_s.
12718         * config/arc/arc.c (stdio.h): Don't include directly.
12719         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12720         Remove if (1) condition.
12721         (arc_encode_section_info): Fix comment.
12723 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12725         * config/arc/arc.c (arc_conditional_register_usage):
12726         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12727         Also set reg_alloc_order for DMA config regs.
12729 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12730             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12732         * doc/install.texi (--with-cpu): Mention ARC.
12733         (arc-*-elf32): New paragraph.
12734         (arc-linux-uclibc): Likewise.
12735         * doc/md.texi (Machine Constraints): Add ARC part.
12736         * doc/invoke.texi: (menu): Add ARC Options.
12737         (Machine Dependent Options) <ARC Options>: Add synopsis.
12738         (node ARC Options): Add.
12739         * doc/extend.texi (long_call / short_call attribute): Add ARC.
12740         (ARC Built-in Functions): New section defining
12741         generic ARC built-in functions.
12742         (ARC SIMD Built-in Functions): New section defining SIMD specific
12743         built-in functions.
12744         (Declaring Attributes of Functions): Extended
12745         description of short_call and long_call attributes for ARC and
12746         added index entries.
12748 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
12749             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
12750             Joern Rennecke  <joern.rennecke@embecosm.com>
12751             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
12752             Brendan Kehoe  <brendan@zen.org>
12753             Michael Eager  <eager@eagercon.com>
12754             Simon Cook  <simon.cook@embecosm.com>
12755             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12757         * config/arc, common/config/arc: New directories.
12759 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12760             Brendan Kehoe  <brendan@zen.org>
12761             Simon Cook  <simon.cook@embecosm.com>
12763         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12765 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12767         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12768         * tree-ssa-coalesce.h: New. Move prototype to here.
12769         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12770         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12771         (gimple_can_coalesce_p): Move to...
12772         * gimple.c (gimple_can_coalesce_p): Here.
12774 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12776         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12777         (dump_decl_set): Move to gimple.c.
12778         * gimple.h: Don't include tree-ssa-operands.h.
12779         (dump_decl_set): Add prototype.
12780         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12781         Move to gimple-ssa.h.
12782         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
12783         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
12784         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
12785         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
12786         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
12787         than PHI_ARG_DEF.
12788         (dump_decl_set): Relocate here.
12789         * gimple-ssa.h: New file.
12790         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12791         Relocate from gimple.h.
12792         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
12793         * tree-ssa-operands.c (swap_ssa_operands): Rename from
12794         swap_tree_operands and remove non-ssa path.
12795         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
12796         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
12797         swap_ssa_operands.
12798         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
12799         vect_is_simple_reduction_1): Use swap_ssa_operands.
12800         * tree-flow.h: Move various prototypes to tree-phinodes.h.
12801         (enum need_phi_state): Move to tree-into-ssa.c.
12802         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12803         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
12804         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
12805         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
12806         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12807         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12808         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12809         num_imm_uses): Move to ssa-iterators.h.
12810         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
12811         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
12812         tree-phinodes.h.
12813         (op_iter_done, op_iter_next_def, op_iter_next_tree,
12814         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
12815         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
12816         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
12817         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
12818         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
12819         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
12820         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
12821         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
12822         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
12823         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
12824         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
12825         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
12826         (set_phi_nodes): Move to tree-phinodes.h.
12827         * tree-ssa-operands.h (enum ssa_op_iter_type,
12828         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
12829         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
12830         (dump_decl_set): Remove prototype.
12831         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
12832         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
12833         (set_phi_nodes): Relocate from tree-flow-inline.h.
12834         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
12835         tree-flow-inline.h
12836         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
12837         include list.  Temporarily add gimple.h to include list.
12838         * ssa-iterators.h: New file.
12839         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12840         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
12841         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
12842         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
12843         Relocate from tree-ssa-operands.h.
12844         (delink_imm_use, link_imm_use_to_list, link_imm_use,
12845         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12846         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12847         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12848         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
12849         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
12850         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
12851         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
12852         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
12853         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
12854         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
12855         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
12856         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
12857         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
12858         Relocate from tree-flow-inline.h.
12859         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
12861 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
12863         * aarch64-simd.md
12864         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
12865         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
12866         Insert '\t' to output template.
12867         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
12868         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
12869         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
12870         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
12872 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
12874         * doc/install.texi (Host/target specific installation notes for GCC):
12875         Put @anchor before @heading.
12876         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
12877         Use @email for email addresses.
12879 2013-10-01  Jeff Law  <law@redhat.com>
12881         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
12882         a vec.  Only delete the path if we create one without successfully
12883         registering a jump thread.
12884         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
12885         as a pointer.
12886         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
12887         (paths): New vector of jump threading paths.
12888         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
12889         (THREAD_PATH): New accessor macro for the entire thread path.
12890         (lookup_redirection_data): Get intermediate and final outgoing edge
12891         from the thread path.
12892         (create_edge_and_update_destination_phis): Copy the threading path.
12893         (ssa_fix_duplicate_block_edges): Get edges and block types from the
12894         jump threading path.
12895         (ssa_redirect_edges): Get edges and block types from the jump threading
12896         path.  Free the path vector.
12897         (thread_block): Get edges from the jump threading path.  Look at the
12898         entire path to see if we thread to a loop exit.  If we cancel a jump
12899         thread request, then free the path vector.
12900         (thread_single_edge): Get edges and block types from the jump threading
12901         path.  Free the path vector.
12902         (thread_through_loop_header): Get edges and block types from the jump
12903         threading path.  Free the path vector.
12904         (mark_threaded_blocks): Iterate over the vector of paths and store
12905         the path on the appropriate edge.  Get edges and block types from the
12906         jump threading path.
12907         (mark_threaded_blocks): Get edges and block types from the jump
12908         threading path.  Free the path vector.
12909         (thread_through_all_blocks): Use the vector of paths rather than
12910         a vector of 3-edge sets.
12911         (register_jump_thread): Accept pointer to a path vector rather
12912         than the path vector itself.  Store the path vector for later use.
12913         Simplify.
12915 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
12916             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12918         PR target/58574
12919         * config/s390/s390.c (s390_split_branches): Modify check for table
12920         jump insns.
12921         (s390_chunkify_start): Rearrange table jump insn check in order to
12922         deal with compare and branch insns correctly.
12924 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
12926         PR target/58578
12927         Revert
12928         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
12929         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
12930         define_insn_and_split.
12931         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
12932         (shiftsi3_compare): New pattern.
12933         (rrx): New pattern.
12934         * config/arm/unspecs.md (UNSPEC_RRX): New.
12936 2013-10-01  Alan Modra  <amodra@gmail.com>
12938         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
12939         casing inout operands.
12941 2013-10-01  Richard Biener  <rguenther@suse.de>
12943         PR tree-optimization/58553
12944         * tree-loop-distribution.c (struct partition_s): Add niter member.
12945         (classify_partition): Populate niter member for the partition
12946         and properly identify whether the relevant store happens before
12947         or after the loop exit.
12948         (generate_memset_builtin): Use niter member from the partition.
12949         (generate_memcpy_builtin): Likewise.
12951 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12953         * vec.h (vec_prefix, vec): Prefix member names with "m_".
12954         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
12956 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12958         * basic-block.h (edge_list): Prefix member names with "m_".
12959         * context.h (context): Likewise.
12960         * domwalk.h (dom_walker): Likewise.
12961         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
12962         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
12963         * hash-table.h (hash_table): Likewise.
12964         * machmode.h (bit_field_mode_iterator): Likewise.
12965         * pass_manager.h (pass_list): Likewise.
12966         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
12967         * tree-pass.h (pass_data): Likewise.
12968         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
12969         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
12970         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
12971         * asan.c (pass_data_asan): Update accordingly.
12972         * cfganal.c (control_dependences::find_control_dependence): Likewise.
12973         (control_dependences::control_dependences): Likewise.
12974         (control_dependences::~control_dependences): Likewise.
12975         (control_dependences::~control_dependences): Likewise.
12976         (control_dependences::get_edges_dependent_on): Likewise.
12977         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
12978         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
12979         * context.c (gcc::context::context): Likewise.
12980         * cprop.c (pass_rtl_cprop::clone): Likewise.
12981         * domwalk.c (dom_walker::walk): Likewise.
12982         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
12983         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
12984         * mode-switching.c (pass_mode_switching::clone): Likewise.
12985         * passes.c (opt_pass::opt_pass): Likewise.
12986         (pass_manager::pass_manager): Likewise.
12987         * predict.c (pass_strip_predict_hints::clone): Likewise.
12988         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
12989         (pass_split_all_insns::clone): Likewise.
12990         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
12991         Likewise.
12992         (bit_field_mode_iterator::next_mode): Likewise.
12993         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
12994         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
12995         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
12996         * tree-complex.c (pass_lower_complex::clone): Likewise.
12997         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
12998         * tree-object-size.c (pass_object_sizes::clone): Likewise.
12999         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13000         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13001         (pass_fold_builtins::clone): Likewise.
13002         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13003         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13004         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13005         (pass_cd_dce::clone): Likewise.
13006         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13007         (pass_phi_only_cprop::clone): Likewise.
13008         * tree-ssa-dse.c (pass_dse::clone): Likewise.
13009         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13010         * tree-ssa-loop.c (pass_lim::clone): Likewise.
13011         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13012         * tree-ssa-pre.c (pass_fre::clone): Likewise.
13013         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13014         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13015         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13016         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13017         * tree-vrp.c (pass_vrp::clone): Likewise.
13018         * tsan.c (pass_tsan::clone): Likewise.
13020 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
13022         PR middle-end/58564
13023         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13024         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13026         PR middle-end/58564
13027         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13028         optimization, punt if sign_bit_p looked through any zero extension.
13030 2013-09-30  Teresa Johnson  <tejohnson@google.com>
13032         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13033         Update redirected out edge count in joiner case.
13034         (ssa_redirect_edges): Common the joiner and non-joiner cases
13035         so that joiner case gets profile updates.
13037 2013-09-30  Richard Biener  <rguenther@suse.de>
13039         PR tree-optimization/58554
13040         * tree-loop-distribution.c (classify_partition): Require
13041         unconditionally executed stores for memcpy and memset recognition.
13042         (tree_loop_distribution): Calculate dominance info.
13044 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
13046         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13047         (NO_PROFILE_COUNTERS): Likewise.
13048         (PROFILE_HOOK): Likewise.
13049         (FUNCTION_PROFILER): Likewise.
13050         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13052 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
13054         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13055         calls and defines in TARGET_MACHO conditional.
13056         (load_macho_picbase_di): Likewise.
13057         (reload_macho_picbase): Likewise.
13058         (reload_macho_picbase_si): Likewise.
13059         (reload_macho_picbase_di): Likewise.
13060         (nonlocal_goto_receiver): Likewise.
13062 2013-09-30  Nick Clifton  <nickc@redhat.com>
13064         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
13065         that use the MSP430X ISA.
13066         (msp430_option_override): Scan -mmcu command line option for any
13067         MCU name that supports the MSP430X ISA.
13068         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13069         -mmcu options which enable the MSP430X ISA.
13071 2013-09-30  Richard Biener  <rguenther@suse.de>
13073         PR middle-end/58532
13074         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13075         before looking for setjmp-like calls.
13077 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13079         PR target/10901
13080         * config/darwin-protos.h (machopic_get_function_picbase): New.
13081         * config/darwin.c (machopic_get_function_picbase): New.
13082         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13083         label for a new func.  (load_macho_picbase_di): Likewise.
13084         (reload_macho_picbase): New expand.
13085         (reload_macho_picbase_si): New insn.
13086         (reload_macho_picbase_di): New insn.
13087         (nonlocal_goto_receiver): New define and split.
13088         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13089         (unspecv enum): Add UNSPECV_NLGR.
13091 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13093         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13094         that altivec registers are correctly sized on Darwin.
13096 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13098         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13099         darwin-driver.o): Use COMPILE and POSTCOMPILE.
13100         * config/x-darwin (host-darwin.o): Likewise.
13101         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13102         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13103         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13105 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
13107         * doc/invoke.texi: Fix usage of @tie{} command.
13109 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
13111         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13113 2013-09-28  Jan Hubicka  <jh@suse.cz>
13115         * config/i386/x86-tune.def: Add documentation for each of the options;
13116         add whitespace.
13118 2013-09-28  Jan Hubicka  <jh@suse.cz>
13120         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13121         generic.
13122         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13123         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13124         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13125         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13126         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13128 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
13130         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13131         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13132         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13133         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13134         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13135         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13136         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13137         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13138         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13139         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13140         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13141         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13142         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13143         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13144         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13145         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13146         gimple.h, godump.c, graphite-clast-to-gimple.c,
13147         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13148         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13149         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13150         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13151         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13152         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13153         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13154         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13155         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13156         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13157         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13158         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13159         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13160         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13161         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13162         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13163         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13164         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13165         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13166         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13167         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13168         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13169         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13170         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13171         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13172         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13173         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13174         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13175         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13176         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13177         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13178         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13179         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13180         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13181         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13182         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13183         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13184         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13185         whitespace before "(".
13187 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
13189         * expr.h (extract_bit_field): Remove packedp parameter.
13190         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13191         from forward declaration.
13192         (store_split_bit_field): Remove packedp arg from calls to
13193         extract_fixed_bit_field.
13194         (extract_bit_field_1): Remove packedp parameter and packedp
13195         argument from recursive calls and calls to extract_fixed_bit_field.
13196         (extract_bit_field): Remove packedp parameter and corresponding
13197         arg to extract_bit_field_1.
13198         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
13199         to issue warnings.
13200         (extract_split_bit_field): Remove packedp arg from call to
13201         extract_fixed_bit_field.
13202         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13203         (copy_blkmode_from_reg): Likewise.
13204         (copy_blkmode_to_reg): Likewise.
13205         (read_complex_part): Likewise.
13206         (store_field): Likewise.
13207         (expand_expr_real_1): Likewise.
13208         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13209         to extract_bit_field.
13210         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13211         call to extract_bit_field.
13212         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13213         call to extract_bit_field.
13214         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13215         and special packedp behavior from -fstrict-volatile-bitfields
13216         documentation.
13218 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13220         * lra-eliminations.c (init_elim_table): Guard value_p.
13222 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
13224         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13225         DFmode, DImode, and SFmode in the upper VSX registers based on the
13226         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
13227         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
13228         of the VSX register handling.
13230         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13231         (f32_sv): Likewise.
13232         (zero_extendsidi2_lfiwzx): Add support for loading into the
13233         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
13234         only do VSX memory options on Altivec registers.
13235         (extendsidi2_lfiwax): Likewise.
13236         (extendsfdf2_fpr): Likewise.
13237         (mov<mode>_hardfloat, SF/SD modes): Likewise.
13238         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13239         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13240         (movdi_internal64): Likewise.
13242 2013-09-27  Xinliang David Li  <davidxl@google.com>
13244         * opts.c (finish_options): Adjust parameters
13245         according to vect cost model.
13246         (common_handle_option): Set dynamic vect cost
13247         model for FDO.
13248         targhooks.c (default_add_stmt_cost): Compute stmt cost
13249         unconditionally.
13250         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13251         Use helper function.
13252         * tree-vectorizer.h (unlimited_cost_model): New function.
13253         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13254         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13255         function.
13256         (vect_enhance_data_refs_alignment): Ditto.
13257         * flag-types.h: New enum.
13258         * common/config/i386/i386-common.c (ix86_option_init_struct):
13259         No need to initialize vect_cost_model flag.
13260         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13261         unconditionally.
13263 2013-09-27  Diego Novillo  <dnovillo@google.com>
13265         * gimple.h (enum ssa_mode): Remove.
13267 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
13269         * cfgloop.h (number_of_loops): Fix typo in check for null.
13271 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
13273         PR middle-end/58551
13274         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13275         are children of outermost saved_cfun's loop, and set it up to
13276         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
13277         if loop != loop0 and SESE region contains bbs that belong to loop0.
13279 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13281         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13282         (binary_scale_code_p, get_base_term, get_index_term): New functions.
13283         (set_address_segment, set_address_base, set_address_index)
13284         (set_address_disp): Accept the argument unconditionally.
13285         (baseness): Remove must_be_base_p and must_be_index_p checks.
13286         (decompose_normal_address): Classify as much as possible in the
13287         main loop.
13289 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13291         * cse.c (count_reg_usage): Handle INT_LIST.
13292         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13293         * reginfo.c (reg_scan_mark_refs): Likewise.
13294         * reload1.c (eliminate_regs_1): Likewise.
13296 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
13298         PR middle-end/58547
13299         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13300         signed.
13302 2013-09-27  Richard Biener  <rguenther@suse.de>
13304         PR tree-optimization/58459
13305         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13306         restriction not propagating into loops.
13308 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
13310         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13311         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13312         * doc/tree-ssa.texi (Walking use-def chains): Delete.
13314 2013-09-26  Richard Biener  <rguenther@suse.de>
13316         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13318 2013-09-26  Richard Biener  <rguenther@suse.de>
13320         * alias.h (component_uses_parent_alias_set): Rename to ...
13321         (component_uses_parent_alias_set_from): ... this.
13322         * alias.c (component_uses_parent_alias_set): Rename to ...
13323         (component_uses_parent_alias_set_from): ... this and return
13324         the desired parent.
13325         (reference_alias_ptr_type_1): Use the result from
13326         component_uses_parent_alias_set_from instead of stripping
13327         components one at a time.
13328         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13330 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
13332         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13333         Move prototypes to...
13334         * tree-ssa-ter.h: New File.  Move prototypes here.
13335         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13336         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13337         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
13338         from is_replaceable_p.
13339         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13340         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
13341         (process_replaceable): Use ter_is_replaceable_p.
13342         (find_replaceable_in_bb): Use ter_is_replaceable_p.
13343         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
13344         newly refactored ssa_is_replaceable_p.
13345         * cfgexpand.c: Include tree-outof-ssa.h.
13346         * ssaexpand.h: Delete.
13348 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
13350         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13351         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13352         tree-ssa.c
13353         (create_gimple_tmp): Delete.
13354         (get_expr_type, build_assign, build_type_cast): Move to...
13355         * gimple-builder.c: New File.
13356         (get_expr_type): Relocate from gimple.c.
13357         (build_assign, build_type_cast): Change to only create ssanames.
13358         * gimple.h: Move prototypes to...
13359         * gimple-builder.h: New File. Here.
13360         * tree-ssa.h: And here.
13361         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13362         count_uses_and_derefs): Relocate from gimple.c.
13363         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13364         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13365         * tree-ssa-math-opts (execute_cse_reciprocals): Use
13366         gimple_replace_ssa_lhs.
13367         * asan.c: Include gimple-builder.h.
13368         * Makefile.in: Add gimple-builder.o.
13370 2013-09-26  Richard Biener  <rguenther@suse.de>
13372         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13373         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13374         (loe_visit_block): Use gcc_checking_assert.
13375         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13376         gimple_assign_ssa_name_copy_p.
13377         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13378         change.
13380 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
13382         * config/rs6000/t-rs6000 (rs6000.o): Remove.
13383         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13385 2013-09-26  Richard Biener  <rguenther@suse.de>
13387         PR tree-optimization/58539
13388         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13389         the fact that debug statements are not taking part in loop-closed
13390         SSA construction.
13392 2013-09-26  Nick Clifton  <nickc@redhat.com>
13394         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13395         time warning message.
13396         (msp430_print_operand_raw): Delete unused letter parameter.
13397         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13398         (msp430_print_operand_address): New function.
13399         (msp430_print_operand): Move address printing code from here to
13400         new function.
13401         * config/msp430/msp430.md (movsipsi2): Add comment in generated
13402         assembler.
13403         (zero_extendpsisi2): Likewise.
13404         (extendpsisi2): New pattern.
13405         (andneghi3): New pattern.
13407 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
13409         * config/aarch64/aarch64.opt (mlra): New option.
13410         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13411         (TARGET_LRA_P): Define.
13413 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
13415         * expr.c (expand_assignment): Remove obsolete comment.
13417 2013-09-25  Jeff Law  <law@redhat.com>
13419         * tree-flow.h (thread_through_all_blocks): Prototype moved into
13420         tree-ssa-threadupdate.h.
13421         (register_jump_thread): Similarly.
13422         * tree-ssa-threadupdate.h: New header file.
13423         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13424         * tree-vrp.c: Likewise.
13425         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13426         (thread_around_empty_blocks): Change type of path vector argument to
13427         an edge,type pair from just an edge.  Initialize both elements when
13428         appending to a jump threading path.  Tweak references to elements
13429         appropriately.
13430         (thread_across_edge): Similarly.  Release memory for the elements
13431         as needed.
13432         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13433         (dump_jump_thread_path): New function broken out from
13434         register_jump_thread.
13435         (register_jump_thread): Use dump_jump_thread_path.  Change type of
13436         path vector entries.  Search the path for NULL edges and dump
13437         the path if one is found.  Tweak the conversion of path to 3-edge
13438         form to use the block copy type information embedded in the path.
13440 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13442         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13444 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13445             Vladimir Makarov  <vmakarov@redhat.com>
13447         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13448         from the least significant bit.
13449         (strip_address_mutations): Add bitfield operations handling.
13450         (must_be_index_p): Add shifting and rotate operations handling.
13451         (set_address_base): Use must_be_base_p predicate.
13452         (set_address_index): Use must_be_index_p predicate.
13454 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13455             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13456             Sergey Lega  <sergey.s.lega@intel.com>
13457             Anna Tikhonova  <anna.tikhonova@intel.com>
13458             Ilya Tocar  <ilya.tocar@intel.com>
13459             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13460             Ilya Verbin  <ilya.verbin@intel.com>
13461             Kirill Yukhin  <kirill.yukhin@intel.com>
13462             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13464         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13465         Use new names.
13466         (ix86_expand_vector_move_misalign): Support new unaligned load and
13467         stores and use new names.
13468         (CODE_FOR_sse2_storedqu): Rename to ...
13469         (CODE_FOR_sse2_storedquv16qi): ... this.
13470         (CODE_FOR_sse2_loaddqu): Rename to ...
13471         (CODE_FOR_sse2_loaddquv16qi): ... this.
13472         (CODE_FOR_avx_loaddqu256): Rename to ...
13473         (CODE_FOR_avx_loaddquv32qi): ... this.
13474         (CODE_FOR_avx_storedqu256): Rename to ...
13475         (CODE_FOR_avx_storedquv32qi): ... this.
13476         * config/i386/i386.md (fpint_logic): New.
13477         * config/i386/sse.md (VMOVE): Extend for AVX512.
13478         (VF): Ditto.
13479         (VF_128_256): New.
13480         (VF_512): Ditto.
13481         (VI_UNALIGNED_LOADSTORE): Ditto.
13482         (sse2_avx_avx512f): Ditto.
13483         (sse2_avx2): Extend for AVX512.
13484         (sse4_1_avx2): Ditto.
13485         (avx2_avx512f): New.
13486         (sse): Extend for AVX512.
13487         (sse2): Ditto.
13488         (sse4_1): Ditto.
13489         (avxsizesuffix): Ditto.
13490         (sseintvecmode): Ditto.
13491         (ssePSmode): Ditto.
13492         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13493         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13494         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13495         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13496         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13497         (<sse2_avx_avx512f>_storedqu<mode): ... this.
13498         (<sse>_movnt<mode>): Replace constraint "x" with "v".
13499         (STORENT_MODE): Extend for AVX512.
13500         (*absneg<mode>2): Replace constraint "x" with "v".
13501         (*mul<mode>3): Ditto.
13502         (*ieee_smin<mode>3): Ditto.
13503         (*ieee_smax<mode>3): Ditto.
13504         (avx_cmp<mode>3): Replace VF with VF_128_256.
13505         (*<sse>_maskcmp<mode>3_comm): Ditto.
13506         (<sse>_maskcmp<mode>3): Ditto.
13507         (<sse>_andnot<mode>3): Extend for AVX512.
13508         (<code><mode>3, anylogic): Replace VF with VF_128_256.
13509         (<code><mode>3, fpint_logic): New.
13510         (*<code><mode>3): Extend for AVX512.
13511         (avx512flogicsuff): New.
13512         (avx512f_<logic><mode>): Ditto.
13513         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13514         VF_128_256.
13515         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13516         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13517         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13518         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13519         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13520         (xop_vpermil2<mode>3): Ditto.
13521         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13522         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13523         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13524         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13526 2013-09-25  Tom Tromey  <tromey@redhat.com>
13528         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13529         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13530         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13531         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13532         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13533         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13534         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13535         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13536         (GRAPHITE_HTAB_H): Remove.
13538 2013-09-25  Tom Tromey  <tromey@redhat.com>
13540         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13542 2013-09-25  Tom Tromey  <tromey@redhat.com>
13544         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13546 2013-09-25  Tom Tromey  <tromey@redhat.com>
13548         * config/i386/t-i386 (i386.o): Remove.
13549         (i386-c.o): Use COMPILE and POSTCOMPILE.
13551 2013-09-25  Tom Tromey  <tromey@redhat.com>
13553         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13555 2013-09-25  Tom Tromey  <tromey@redhat.com>
13557         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13558         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13559         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13560         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13561         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13562         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13563         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13564         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13565         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13566         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13567         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13568         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13569         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13570         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13571         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13572         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13573         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13574         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13575         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13576         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13577         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13578         (tree-ssa-pre.o, tree-ssa-sccvn.o)
13579         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13580         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13581         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13582         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13583         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13584         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13585         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13586         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13587         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13588         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13589         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13590         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13591         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13592         (graphite-clast-to-gimple.o, graphite-dependences.o)
13593         (graphite-interchange.o, graphite-poly.o)
13594         (graphite-scop-detection.o, graphite-sese-to-poly.o)
13595         (graphite-optimize-isl.o, tree-vect-loop.o)
13596         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13597         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13598         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13599         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13600         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13601         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13602         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13603         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13604         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13605         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13606         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13607         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13608         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13609         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13610         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13611         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13612         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13613         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13614         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13615         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13616         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13617         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13618         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13619         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13620         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13621         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13622         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13623         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13624         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13625         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13626         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13627         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13628         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13629         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13630         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13631         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13632         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13633         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13634         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13635         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13636         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13637         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13638         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13639         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13640         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13641         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13642         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13643         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13644         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13645         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13646         (gcov-dump.o): Remove.
13647         (default-c.o): Use COMPILE and POSTCOMPILE.
13648         (CFLAGS-gcc.o): New variable.
13649         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13651 2013-09-25  Tom Tromey  <tromey@redhat.com>
13653         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13654         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13655         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13656         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13657         (c-family/c-pragma.o, c-family/c-pretty-print.o)
13658         (c-family/c-semantics.o, c-family/c-ada-spec.o)
13659         (c-family/array-notation-common.o, c-family/stub-objc.o)
13660         (c-family/c-ubsan.o): Remove.
13662 2013-09-25  Tom Tromey  <tromey@redhat.com>
13664         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13666 2013-09-25  Tom Tromey  <tromey@redhat.com>
13668         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13669         to add -DENABLE_SHARED_LIBGCC.
13670         (gcc.o): Don't use subshell.
13672 2013-09-25  Tom Tromey  <tromey@redhat.com>
13674         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13675         * configure.ac: Don't invoke AM_PROG_CC_C_O.
13676         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13677         * configure, config.in: Rebuild.
13679 2013-09-25  Tom Tromey  <tromey@redhat.com>
13681         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13682         (COMPILE, POSTCOMPILE): New variables.
13683         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13684         (DEPFILES): New variable.
13685         Include ".Po" files.
13686         * configure.ac: Add checks for dependency checking.
13687         * configure, aclocal.m4: Regenerate.
13689 2013-09-25  Tom Tromey  <tromey@redhat.com>
13691         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
13692         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
13694 2013-09-25  Tom Tromey  <tromey@redhat.com>
13696         * Makefile.in (generated_files): Add options.h,
13697         target-hooks-def.h, insn-opinit.h,
13698         common/common-target-hooks-def.h, pass-instances.def,
13699         c-family/c-target-hooks-def.h.
13701 2013-09-25  Jeff Law  <law@redhat.com>
13703         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13704         than foo[foo.length () - 1] to access last member in a vec.
13705         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13707 2013-09-25  Richard Biener  <rguenther@suse.de>
13709         PR middle-end/58521
13710         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13712 2013-09-25  Jan Hubicka  <jh@suse.cz>
13714         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13715         test.
13717 2013-09-25  Marek Polacek  <polacek@redhat.com>
13719         PR sanitizer/58420
13720         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13721         when determining the type name.
13723 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
13725         * config/sh/sh.md: Fix formatting.
13727 2013-09-24  Xinliang David Li  <davidxl@google.com>
13729         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13730         max peel iterations parameter.
13731         * param.def: New parameter.
13732         * doc/invoke.texi: Document New parameter.
13734 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
13736         * gimple-pretty-print.c: Various whitespace tweaks.
13737         * tree-core.h: Likewise.
13738         * tree-pretty-print.c: Likewise.
13739         * tree-ssa-alias.c: Likewise.
13740         * tree-ssa-copy.c: Likewise.
13741         * tree-ssanames.c: Likewise.
13742         * tree-ssanames.h: Likewise.
13743         * tree-vrp.c: Likewise.
13745 2013-09-24  Alan Modra  <amodra@gmail.com>
13747         PR middle-end/57134
13748         PR middle-end/57586
13749         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13750         for output operands that disallow regs.  Don't use EXPAND_WRITE on
13751         inout operands.
13753 2013-09-24  Richard Biener  <rguenther@suse.de>
13755         PR middle-end/58513
13756         * tree.c (reference_alias_ptr_type): Move ...
13757         * alias.c (reference_alias_ptr_type): ... here and implement
13758         in terms of the new reference_alias_ptr_type_1.
13759         (ref_all_alias_ptr_type_p): New helper.
13760         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13761         use ref_all_alias_ptr_type_p.
13762         (get_deref_alias_set): Add flag_strict_aliasing check here.
13763         (reference_alias_ptr_type_1): New function, split out from ...
13764         (get_alias_set): ... here.
13765         (alias_ptr_types_compatible_p): New function.
13766         * alias.h (reference_alias_ptr_type): Declare.
13767         (alias_ptr_types_compatible_p): Likewise.
13768         * tree.h (reference_alias_ptr_type): Remove.
13769         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13770         to compare MEM_REF alias types.
13772 2013-09-24  Richard Biener  <rguenther@suse.de>
13774         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13776 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13778         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13779         reload helper function arrays into a single array reg_addr.
13780         (reload_fpr_gpr): Likewise.
13781         (reload_gpr_vsx): Likewise.
13782         (reload_vsx_gpr): Likewise.
13783         (struct rs6000_reg_addr): Likewise.
13784         (reg_addr): Likewise.
13785         (rs6000_debug_reg_global): Change rs6000_vector_reload,
13786         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
13787         (rs6000_init_hard_regno_mode_ok): Likewise.
13788         (rs6000_secondary_reload_direct_move): Likewise.
13789         (rs6000_secondary_reload): Likewise.
13791         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
13792         constraints: wu, ww, and wy.  Repurpose wv constraint added during
13793         power8 changes.  Put wg constraint in alphabetical order.
13795         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
13796         for future work to add ISA 2.07 VSX single precision support.
13797         (-mvsx-scalar-double): Change default from -1 to 1, update
13798         documentation comment.
13799         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
13800         (-mupper-regs-df): New debug switch to control whether DF values
13801         can go in the traditional Altivec registers.
13802         (-mupper-regs-sf): New debug switch to control whether SF values
13803         can go in the traditional Altivec registers.
13805         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
13806         and wy constraints.
13807         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
13808         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
13809         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
13810         (rs6000_debug_legitimate_address_p): Print if we are running
13811         before, during, or after reload.
13812         (rs6000_secondary_reload): Add a comment.
13813         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
13815         * config/rs6000/constraints.md (wa constraint): Sort w<x>
13816         constraints.  Update documentation string.
13817         (wd constraint): Likewise.
13818         (wf constraint): Likewise.
13819         (wg constraint): Likewise.
13820         (wn constraint): Likewise.
13821         (ws constraint): Likewise.
13822         (wt constraint): Likewise.
13823         (wx constraint): Likewise.
13824         (wz constraint): Likewise.
13825         (wu constraint): New constraint for ISA 2.07 SFmode scalar
13826         instructions.
13827         (ww constraint): Likewise.
13828         (wy constraint): Likewise.
13829         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
13830         in the previous submissions.
13831         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
13833 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
13835         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
13836         (REG_BR_PROB): Say that the probability is stored in an int_list.
13837         * reg-notes.def: Update commentary to mention INT_LIST.
13838         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
13839         (INT_LIST): New rtx.
13840         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
13841         * rtlanal.c (int_reg_note_p): New function.
13842         (alloc_reg_note): Assert that the note does not have an int argument.
13843         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
13844         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
13845         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
13846         rather than an INSN_LIST.  Handle INT_LIST.
13847         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
13848         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
13849         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
13850         Manipulate them as ints rather than rtxes.
13851         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
13852         * regmove.c (copy_src_to_dest): Likewise.
13853         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
13855         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
13856         into the cases that need it.
13857         * config/arm/arm.c (arm_unwind_emit): Likewise.
13859         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
13860         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
13861         * loop-doloop.c (add_test, doloop_modify): Likewise.
13862         * loop-unswitch.c (compare_and_jump_seq): Likewise.
13863         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
13864         * predict.c (combine_predictions_for_insn): Likewise.
13865         * print-rtl.c (print_rtx): Handle INT_LIST.
13866         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
13867         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
13868         * config/arm/arm.c (emit_unlikely_jump): Likewise.
13869         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
13870         (ix86_split_fp_branch, predict_jump): Likewise.
13871         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
13872         * config/sh/sh.c (expand_cbranchsi4): Likewise.
13873         * config/spu/spu.c (ea_load_store_inline): Likewise.
13875         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
13876         value of a REG_BR_PROB note.
13877         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13878         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
13879         * emit-rtl.c (try_split): Likewise.
13880         * predict.c (br_prob_note_reliable_p): Likewise.
13881         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
13882         * reorg.c (mostly_true_jump): Likewise.
13883         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
13884         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
13885         * config/i386/i386.c (ix86_print_operand): Likewise.
13886         * config/ia64/ia64.c (ia64_print_operand): Likewise.
13887         * config/mmix/mmix.c (mmix_print_operand): Likewise.
13888         * config/rs6000/rs6000.c (output_cbranch): Likewise.
13889         * config/s390/s390.c (s390_expand_tbegin): Likewise.
13890         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
13891         * config/sparc/sparc.c (output_cbranch): Likewise.
13892         * config/spu/spu.c (get_branch_target): Likewise.
13893         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
13894         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
13896 2013-09-23  Jan Hubicka  <jh@suse.cz>
13898         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
13899         for ipa-devirt.
13900         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
13901         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
13902         of external calls
13903         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
13904         (gimple_fold_call): Dump inconsistent devirtualizations; add
13905         sanity check for type based devirtualizations.
13906         * ipa-prop.c: Include ipa-utils.h
13907         (ipa_intraprocedural_devirtualization): Add sanity check.
13908         (try_make_edge_direct_virtual_call): Likewise.
13910 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
13912         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
13913         assignment statements.
13915 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13917         * gimple-pretty-print.c (dump_ssaname_info): New function.
13918         (dump_gimple_phi): Call it.
13919         (pp_gimple_stmt_1): Likewise.
13920         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
13921         (range_info_def): Declare.
13922         * tree-pretty-print.c (pp_double_int): New function.
13923         (dump_generic_node): Call it.
13924         * tree-pretty-print.h (pp_double_int): Declare.
13925         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
13926         * tree-ssanames.h (range_info_def): New structure.
13927         (value_range_type): Move definition here.
13928         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
13929         Declare.
13930         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
13931         initialization.
13932         (set_range_info): New function.
13933         (get_range_info): Likewise.
13934         (duplicate_ssa_name_range_info): Likewise.
13935         (duplicate_ssa_name_fn): Check pointer type and call
13936         duplicate_ssa_name_range_info.
13937         * tree-ssa-copy.c (fini_copy_prop): Likewise.
13938         * tree-vrp.c (value_range_type): Remove definition, now in
13939         tree-ssanames.h.
13940         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
13941         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
13942         (SSA_NAME_RANGE_INFO): New macro.
13944 2013-09-23  Richard Biener  <rguenther@suse.de>
13946         PR tree-optimization/58464
13947         * tree-ssa-pre.c (phi_trans_lookup): Remove.
13948         (phi_trans_add): Change to add conditionally on being not present.
13949         (phi_translate_1): Remove recursion detection here.
13950         (phi_translate): Pre-seed the cache with NULL to catch
13951         recursion here in a more generic way.
13952         (bitmap_find_leader): Adjust comment.
13953         (get_representative_for): Dump value-numbers.
13954         (create_expression_by_pieces): Likewise.
13955         (insert_into_preds_of_block): Likewise.
13957 2013-09-23  Christian Bruel  <christian.bruel@st.com>
13959         PR target/58475
13960         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
13961         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
13963 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
13965         Revert r202780:
13966         2013-09-20  Renlin Li  <renlin.li@arm.com>
13968         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13969         plus_constant.
13970         (aarch64_expand_epilogue): Likewise.
13971         (aarch64_legitimize_reload_address): Likewise.
13973 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
13975         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
13976         NULL_TREE before pushing them onto the vector.  Likewise for labels.
13978 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
13980         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
13981         comparison operators when -fno-trapping-math is in effect.
13982         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
13983         comparison operators in TFmode and assert that unsupported operators
13984         cannot reach here.
13985         (ia64_print_operand): Likewise.
13987 2013-09-21  Jan Hubicka  <jh@suse.cz>
13989         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
13990         (sse_typeless_stores): Enable for core
13991         (sse_load0_by_pxor): Likewise.
13992         (four_jump_limit): Disable for core.
13993         (pad_returns): Likewise.
13994         (avoid_vector_decode): Likewise.
13995         (fuse_cmp_and_branch): Enable for cores.
13996         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
13998 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
14000         PR middle-end/56791
14001         * config/pa/pa.c (pa_option_override): Disable auto increment and
14002         decrement instructions until reload is completed.
14004         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14005         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14006         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14008 2013-09-20  DJ Delorie  <dj@redhat.com>
14009             Nick Clifton  <nickc@redhat.com>
14011         * config/rl78/rl78.c: Various whitespace and comment tweaks.
14012         (need_to_save): Save bank 0 on interrupts.
14013         (characterize_address): Strip far address wrappers.
14014         (rl78_as_legitimate_address): Likewise.
14015         (transcode_memory_rtx): Likewise.
14016         (rl78_peep_movhi_p): Disable this peephole after devirt.
14017         (rl78_propogate_register_origins): Forget all origins when a
14018         CLOBBER is seen.
14019         * config/rl78/rl78-virt.md: Various whitespace tweaks.
14020         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
14021         peephole2's.
14022         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14023         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14024         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14025         relocating.
14026         * config/rl78/constraints.md: Various whitespace and paren tweaks.
14028 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
14030         * config/pa/pa.md: In "scc" insn patterns, change output template to
14031         handle const0_rtx in reg_or_0_operand operands.
14033 2013-09-20  Martin Husemann  <martin@NetBSD.org>
14035         PR target/56875
14036         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14037         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14039 2013-09-20  Richard Biener  <rguenther@suse.de>
14041         PR middle-end/58484
14042         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14043         remembering SSA name version and block index.
14044         (new_scev_info_str): Adjust.
14045         (hash_scev_info): Likewise.  Also hash the block index.
14046         (eq_scev_info): Adjust.
14047         (find_var_scev_info): Likewise.
14048         (struct instantiate_cache_entry): Remove.
14049         (struct instantiate_cache_type): Use a htab to map name, block
14050         to chrec.
14051         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14052         (get_instantiated_value_entry): Likewise.
14053         (hash_idx_scev_info, eq_idx_scev_info): New functions.
14054         (instantiate_scev_name): Adjust.
14056 2013-09-20  Jeff Law  <law@redhat.com>
14058         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14060 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
14062         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14063         Call aarch64_simd_expand_args to update op[argc].
14065 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14067         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14068         plugin argument.
14070 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14072         * gengtype.c (file_rules): Added rule for *.cc files.
14073         (get_output_file_with_visibility): Give fatal message when no
14074         rules found.
14076 2013-09-20  Renlin Li  <renlin.li@arm.com>
14078         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14079         (aarch64_expand_epilogue): Likewise.
14080         (aarch64_legitimize_reload_address): Likewise.
14082 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14084         PR middle-end/57748
14085         * expr.c (expand_assignment): Remove misalignp code path.
14087 2013-09-20  Marek Polacek  <polacek@redhat.com>
14089         PR sanitizer/58413
14090         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14091         TYPE_PRECISION.  Add asserts.
14093 2013-09-20  Richard Biener  <rguenther@suse.de>
14095         PR tree-optimization/58453
14096         * tree-loop-distribution.c (distribute_loop): Apply the cost
14097         model for -ftree-loop-distribute-patterns, too.
14099 2013-09-20  Richard Biener  <rguenther@suse.de>
14101         PR middle-end/58473
14102         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14103         make type comparison less strict.
14105 2013-09-20  Alan Modra  <amodra@gmail.com>
14107         * configure: Regenerate.
14108         * aclocal.m4: Regenerate.
14110 2013-09-20  Marek Polacek  <polacek@redhat.com>
14112         PR other/58467
14113         * doc/extend.texi: Document that attribute used is meant to be used
14114         on variables with static storage duration.
14116 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14118         PR tree-optimization/58472
14119         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14120         simd_lane_access set inv_p = false.
14121         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14122         the simduid magic VAR_DECL.
14124 2013-09-19  Jan Hubicka  <jh@suse.cz>
14126         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14128 2013-09-17  Jeff Law  <law@redhat.com>
14130         * tree-ssa-dom.c (record_temporary_equivalences): New function
14131         split out of dom_opt_dom_walker::after_dom_children.
14132         (dom_opt_dom_walker::thread_across_edge): Move common code
14133         in here from dom_opt_dom_walker::after_dom_children.
14134         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14136 2013-09-19  Jan Hubicka  <jh@suse.cz>
14138         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14139         (TARGET_GENERIC): Use PROCESOR_GENERIC
14140         (enum processor_type): Unify generic32 and 64.
14141         * i386.md (cpu): Likewise.
14142         * x86-tune.def (use_leave): Enable for generic32.
14143         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14144         * athlon.md: Change generic64 to generic in all occurences.
14145         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14146         (ix86_target_macros_internal): Likewise.
14147         * driver-i386.c (host_detect_local_cpu): Likewise.
14148         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14149         to ..
14150         (generic_memcpy, generic_memset, generic_cost): This one.
14151         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14152         (m_GENERIC32, m_GENERIC64): Remove.
14153         (m_GENERIC): Turn into one flag.
14154         (processor_target): Unify generic tunnings.
14155         (ix86_option_override_internal): Replace generic32/64 by generic.
14156         (ix86_issue_rate): Likewise.
14157         (ix86_adjust_cost): Likewise.
14159 2013-09-19  Jan Hubicka  <jh@suse.cz>
14161         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14162         of speculative flag.
14164 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14166         * omp-low.c (expand_omp_sections): Always pass len - 1 to
14167         GOMP_sections_start, even if !exit_reachable.
14169 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14171         * lra-constraints.c (need_for_all_save_p): Use macro
14172         HARD_REGNO_CALL_PART_CLOBBERED.
14173         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14174         set up pseudo conflict hard regs.
14176 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14178         PR target/58452
14179         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14180         operands.
14182 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14184         PR rtl-optimization/58438
14185         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14186         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14187         from previous subpasses.
14189 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
14191         * arm.c (arm_get_frame_offsets): Validate architecture supports
14192         LDRD/STRD before accepting the tuning preference.
14193         (arm_expand_prologue): Likewise.
14194         (arm_expand_epilogue): Likewise.
14196 2013-09-18  Richard Biener  <rguenther@suse.de>
14198         PR tree-optimization/58417
14199         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14200         have chrecs with symbols defined in the loop as operands.
14201         (chrec_fold_multiply): Likewise.
14202         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14203         parameters before folding binary operations.
14204         (struct instantiate_cache_entry_hasher): Remove.
14205         (struct instantiate_cache_type): Use a pointer-map.
14206         (instantiate_cache_type::instantiate_cache_type): New function.
14207         (instantiate_cache_type::get): Likewise.
14208         (instantiate_cache_type::set): Likewise.
14209         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14210         (get_instantiated_value_entry): Likewise.
14211         (global_cache): New global.
14212         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14213         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14214         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14215         (instantiate_scev_name): Adjust.
14216         (instantiate_scev): Construct global instead of local cache.
14217         (resolve_mixers): Likewise.
14219 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
14220             Paolo Carlini  <paolo.carlini@oracle.com>
14222         PR c++/58458
14223         * doc/implement-cxx.texi: Fix references to the C++ standards.
14225 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
14227         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14228         * tree-vect-data-refs.c (vect_analyze_data_refs): For
14229         simd_lane_access drs, update also DR_ALIGNED_TO.
14231 2013-09-18  Marek Polacek  <polacek@redhat.com>
14233         PR sanitizer/58411
14234         * doc/extend.texi: Document no_sanitize_undefined attribute.
14235         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14236         no_sanitize_undefined attribute.
14238 2013-09-18  Nick Clifton  <nickc@redhat.com>
14240         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14241         (ASM_DECLARE_FUNCTION_NAME): Define.
14243 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
14245         * compare-elim.c (find_comparison_dom_walker): New class
14246         (find_comparisons_in_bb): Rename to
14247         find_comparison_dom_walker::before_dom_children
14248         (find_comparisons): Adjust
14249         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14250         adjust.
14251         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14252         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14253         (init_walk_dominator_tree): Remove declaration.
14254         (fini_walk_dominator_tree): Remove declaration.
14255         * fwprop.c (single_def_use_dom_walker): New class
14256         (single_def_use_enter_block): Convert to
14257         single_def_use_dom_walker::before_dom_children.
14258         (single_def_use_leave_block): Convert to
14259         single_def_use_dom_walker::after_dom_children.
14260         (build_single_def_use_links): Adjust.
14261         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14262         class.
14263         (find_candidates_in_block): Convert to
14264         find_candidates_dom_walker::before_dom_children.
14265         (execute_strength_reduction): Adjust.
14266         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14267         (sese_dom_walker): New class.
14268         (sese_dom_walker::sese_dom_walker): New constructor.
14269         (sese_dom_walker::~sese_dom_walker): New destructor.
14270         (build_sese_conditions_before): Convert to
14271         sese_dom_walker::before_dom_children.
14272         (build_sese_conditions_after): Convert to
14273         sese_dom_walker::after_dom_children.
14274         (build_poly_scop): Adjust
14275         * tree-into-ssa.c (rewrite_dom_walker): New class
14276         (rewrite_enter_block): Convert to
14277         rewrite_dom_walker::before_dom_children.
14278         (rewrite_leave_block): Convert to
14279         rewrite_dom_walker::after_dom_children.
14280         (rewrite_update_dom_walker): New class.
14281         (rewrite_update_enter_block): Convert to
14282         rewrite_update_dom_walker::before_dom_children.
14283         (rewrite_update_leave_block): Convert to
14284         rewrite_update_dom_walker::after_dom_children.
14285         (rewrite_blocks, rewrite_into_ssa): Adjust.
14286         (mark_def_dom_walker): New class.
14287         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14288         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14289         (mark_def_sites_blocks): Convert to
14290         mark_def_dom_walker::before_dom_children.
14291         (mark_def_site_blocks): Remove.
14292         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14293         (tree_ssa_dominator_optimize): Adjust.
14294         (dom_thread_across_edge): Convert to method
14295         dom_opt_dom_walker::thread_across_edge.
14296         (dom_opt_enter_block): Convert to member function
14297         dom_opt_dom_walker::before_dom_children.
14298         (dom_opt_leave_block): Convert to member function
14299         dom_opt_dom_walker::after_dom_children.
14300         * tree-ssa-dse.c (dse_dom_walker): New class.
14301         (dse_enter_block): Convert to member function
14302         dse_dom_walker::before_dom_children.
14303         (tree_ssa_dse): Adjust.
14304         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14305         (determine_invariantness_stmt): Convert to method
14306         invariantness_dom_walker::before_dom_children.
14307         (determine_invariantness): Remove
14308         (move_computations_dom_walker): New class.
14309         (move_computations_stmt): Convert to method
14310         move_computations_dom_walker::before_dom_children.
14311         (move_computations, tree_ssa_lim): Adjust.
14312         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14313         (nt_init_block): Convert to method
14314         notrappping_dom_walker::before_dom_children.
14315         (nt_fini_block): Convert to method
14316         method nontrapping_dom_walker::after_dom_children.
14317         (get_non_trapping): Adjust.
14318         * tree-ssa-pre.c (eliminate_dom_walker): New class.
14319         (eliminate_bb): Convert to method
14320         eliminate_dom_walker::before_dom_children.
14321         (eliminate_leave_block): Convert to method
14322         eliminate_dom_walker::after_dom_children.
14323         (eliminate): Adjust.
14324         * tree-ssa-strlen.c (strlen_dom_walker): New class.
14325         (strlen_enter_block): Convert to method
14326         strlen_dom_walker::before_dom_children.
14327         (strlen_leave_block): Convert to method
14328         method strlen_dom_walker::after_dom_children.
14329         (tree_ssa_strlen): Adjust.
14330         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14331         (tree_ssa_uncprop): Adjust.
14332         (uncprop_leave_block): Convert to method
14333         uncprop_dom_walker::after_dom_children.
14334         (uncprop_leave_block): Convert to method
14335         uncprop_dom_walker::before_dom_children.
14337 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
14339         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14340         branch in same basic block.  Check both src and dest of the move insn.
14342 2013-09-17  Nick Clifton  <nickc@redhat.com>
14344         * config/rl78/rl78-real.md (bf): New pattern.
14345         (bt): New pattern.
14346         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14347         (rl78_print_operand): Do not put a # before a %B.
14348         * config/rl78/rl78.opt: Tweak doc strings.
14350 2013-09-17  DJ Delorie  <dj@redhat.com>
14352         * config/rl78/constraints.md (Wcv): Allow up to $r31.
14353         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14354         (rl78_option_override): Likewise, if -mallregs.
14355         (is_virtual_register): Likewise.
14356         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14357         (REGNO_OK_FOR_BASE_P): Likewise.
14358         * config/rl78/rl78.opt (-mallregs): New.
14360 2013-09-17  Nick Clifton  <nickc@redhat.com>
14362         * config/rl78/rl78.c (need_to_save): Change return type to bool.
14363         For interrupt functions: save all call clobbered registers if the
14364         interrupt handler is not a leaf function.
14365         (rl78_expand_prologue): Always recompute the frame information.
14366         For interrupt functions: only select bank 0 if one of the bank 0
14367         registers is going to be psuhed.
14369 2013-09-17  DJ Delorie  <dj@redhat.com>
14371         * config/rl78/constraints.md: For each W* constraint, rename to C*
14372         and create a W* constraint that checks for an optional ES: prefix
14373         pattern also.
14374         * config/rl78/rl78.md (UNS_ES_ADDR): New.
14375         (es_addr): New.  Used to wrap far addresses.
14376         * config/rl78/rl78-protos.h (rl78_es_addr): New.
14377         (rl78_es_base): New.
14378         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14379         wrapped far addresses.
14380         (rl78_print_operand_1): Unwrap far addresses before processing.
14381         (rl78_lo16): Wrap far addresses in unspecs.
14382         (rl78_es_addr): New.
14383         (rl78_es_base): New.
14384         (insn_ok_now): Check for not-yet-wrapped far addresses.
14385         (transcode_memory_rtx): Properly re-wrap far addresses.
14387 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14389         * config/sparc/t-rtems: Add leon3 multilibs.
14391 2013-09-17  Cong Hou  <congh@google.com>
14393         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14394         when checking the dot production pattern. The type of rhs operand
14395         of multiply is now checked correctly.
14397 2013-09-17  Jeff Law  <law@redhat.com>
14399         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14400         edge implied equivalences into successor phis.
14401         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14402         here from tree-ssa-threadedge.c.
14403         (mark_threaded_blocks): When threading through a joiner, if both
14404         successors of the joiner's clone reach the same block, verify the
14405         PHI arguments are equal.  If not, cancel the jump threading request.
14406         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14407         tree-ssa-threadupdate.c
14408         (thread_across_edge): Don't check PHI argument equality when
14409         threading through joiner block here.
14411 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
14413         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14414         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14415         (warn_uninit, warn_uninitialized_vars,
14416         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14417         Move to tree-ssa-uninit.c.
14418         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14419         (has_undefined_value_p): New.  Pass dependant parts of
14420         ssa_undefined_value_p.
14421         (uninit_undefined_value_p): Use has_undefined_value_p.
14422         (warn_uninit, warn_uninitialized_vars,
14423         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14424         Move from tree-ssa.c.
14425         * tree-ssa.h: Adjust prototypes.
14427 2013-09-17  Jan Hubicka  <jh@suse.cz>
14429         PR middle-end/58332
14430         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14431         * ipa-inline.c (can_inline_edge_p): Do not downgrade
14432         FUNCTION_NOT_OPTIMIZED.
14433         * ipa-inline-analysis.c (compute_inline_parameters): Function
14434         not optimized is not inlinable unless it is alwaysinline.
14435         (inline_analyze_function): Force calls in not optimized
14436         function not inlinable.
14438 2013-09-17  Jan Hubicka  <jh@suse.cz>
14440         PR middle-end/58329
14441         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14442         to return NULL.
14443         * ipa.c (function_and_variable_visibility): Likewise.
14444         * ipa-profile.c (ipa_profile): Likewise.
14446 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14448         PR ipa/58398
14449         * cgraph.c (cgraph_function_body_availability): Check for ifunc
14450         attribute, and don't inline the resolver in this case.
14452 2013-09-17  Teresa Johnson  <tejohnson@google.com>
14454         * coverage.c (get_coverage_counts): Add missing newline.
14456 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14458         PR tree-optimization/58088
14459         * fold-const.c (mask_with_trailing_zeros): New function.
14460         (fold_binary_loc): Make sure we don't recurse infinitely
14461         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14462         Use mask_with_trailing_zeros where appropriate.
14464 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
14466         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14467         of 'prev' var to get better distance estimation.
14469 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14471         * tree-inline.h (struct copy_body_data): Add transform_parameter.
14472         * tree-inline.c (is_parameter_of): New predicate.
14473         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14474         a parameter has been remapped.
14475         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14476         (optimize_inline_calls): Initialize transform_parameter.
14477         (copy_gimple_seq_and_replace_locals): Likewise.
14478         (tree_function_versioning): Likewise.
14479         (maybe_inline_call_in_expr): Likewise.
14481 2013-09-17  Nick Clifton  <nickc@redhat.com>
14483         * config/msp430/msp430-protos.h: Add prototypes for new functions.
14484         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14485         interrupt handlers.
14486         (is_attr_func): New function.
14487         (msp430_is_interrupt_func): New function.
14488         (is_naked_func): New function.
14489         (is_reentrant_func): New function.
14490         (is_critical_func): New function.
14491         (msp430_start_function): Add annotations for function attributes.
14492         (msp430_attr): New function.
14493         (msp430_attribute_table): New.
14494         (msp430_function_section): New function.
14495         (TARGET_ASM_FUNCTION_SECTION): Define.
14496         (msp430_builtin): New enum.
14497         (msp430_init_builtins): New function.
14498         (msp430_builtin_devl): New function.
14499         (msp430_expand_builtin): New function.
14500         (TARGET_INIT_BUILTINS): Define.
14501         (TARGET_EXPAND_BUILTINS): Define.
14502         (TARGET_BUILTIN_DECL): Define.
14503         (msp430_expand_prologue): Add support for naked, interrupt,
14504         critical and reentrant functions.
14505         (msp430_expand_epilogue): Likewise.
14506         (msp430_print_operand): Handle 'O' character.
14507         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14508         NO_TRAMPOLINES.
14509         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14510         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14511         (pushm): Use a 'n' rather than an 'i' constraint.
14512         (msp_return): Add generation of the interrupt return instruction.
14513         (disable_interrupts): New pattern.
14514         (enable_interrupts): New pattern.
14515         (push_intr_state): New pattern.
14516         (pop_intr_state): New pattern.
14517         (bic_SR): New pattern.
14518         (bis_SR): New pattern.
14519         * doc/extend.texi: Document MSP430 function attributes and builtin
14520         functions.
14522 2013-09-17  Richard Biener  <rguenther@suse.de>
14524         PR tree-optimization/58432
14525         * tree-loop-distribution.c (tree_loop_distribution): Also
14526         scan PHIs for outside loop uses and seed a partition from them.
14528 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
14530         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14531         (restructure_reference): Call backtrace_base_for_ref.
14533 2013-09-17  Alan Modra  <amodra@gmail.com>
14535         PR target/57589
14536         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14537         patch.
14539 2013-09-16  DJ Delorie  <dj@redhat.com>
14541         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14542         vregs location for RL78/G10.
14543         (rl78_expand_prologue): Avoid SEL on G10.
14544         (rl78_expand_epilogue): Likewise.
14545         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14546         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14547         __RL78_G10__ when appropriate.
14548         (ASM_SPEC): Pass -mg10 along to the assembler.
14549         * config/rl78/rl78.md (sel_rb): Disable for G10.
14550         * config/rl78/rl78.opt: Add -mg10 option.
14551         * config/rl78/t-rl78: Add -mg10 multilib.
14553 2013-09-16  Xinliang David Li  <davidxl@google.com>
14555         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14556         * omp-low.c (omp_max_vf): Ditto.
14557         (expand_omp_simd): Ditto.
14558         * tree-vectorizer.c (vectorize_loops): Ditto.
14559         (gate_vect_slp): Ditto.
14560         (gate_increase_alignment): Ditto.
14561         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14562         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14563         (gate_tree_vectorize): Name change.
14564         (tree_vectorize): Ditto.
14565         (pass_vectorize::gate): Call new function.
14566         (pass_vectorize::execute): Ditto.
14567         * opts.c: O3 default setting change.
14568         (finish_options): Check new flag.
14569         * doc/invoke.texi: Document new flags.
14570         * common.opt: New flags.
14572 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
14574         * doc/tm.texi.in (Cond Exec Macros): Remove node.
14575         (Condition Code): Don't reference it.
14576         * doc/tm.texi: Regenerate.
14578 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
14580         PR middle-end/58418
14581         * lra-constraints.c (undo_optional_reloads): Consider all optional
14582         reload even if it did not get a hard reg.
14584 2013-09-16  Teresa Johnson  <tejohnson@google.com>
14586         * dumpfile.c (dump_loc): Remove newline emission.
14587         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14588         emission to dump_printf_loc calls where missing.
14589         (vect_mark_for_runtime_alias_test): Ditto.
14590         (vect_analyze_data_ref_dependence): Ditto.
14591         (vect_analyze_data_ref_dependences): Ditto.
14592         (vect_slp_analyze_data_ref_dependence): Ditto.
14593         (vect_slp_analyze_data_ref_dependences): Ditto.
14594         (vect_compute_data_ref_alignment): Ditto.
14595         (vect_update_misalignment_for_peel): Ditto.
14596         (vect_verify_datarefs_alignment): Ditto.
14597         (vector_alignment_reachable_p): Ditto.
14598         (vect_get_data_access_cost): Ditto.
14599         (vect_enhance_data_refs_alignment): Ditto.
14600         (vect_find_same_alignment_drs): Ditto.
14601         (vect_analyze_data_refs_alignment): Ditto.
14602         (vect_analyze_group_access): Ditto.
14603         (vect_analyze_data_ref_access): Ditto.
14604         (vect_analyze_data_ref_accesses): Ditto.
14605         (vect_prune_runtime_alias_test_list): Ditto.
14606         (vect_analyze_data_refs): Ditto.
14607         (vect_create_addr_base_for_vector_ref): Ditto.
14608         (vect_create_data_ref_ptr): Ditto.
14609         (vect_grouped_store_supported): Ditto.
14610         (vect_grouped_load_supported): Ditto.
14611         * value-prof.c (check_counter): Ditto.
14612         (check_ic_target): Ditto.
14613         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14614         (vect_recog_widen_mult_pattern): Ditto.
14615         (vect_recog_widen_sum_pattern): Ditto.
14616         (vect_recog_over_widening_pattern): Ditto.
14617         (vect_recog_widen_shift_pattern): Ditto.
14618         (vect_recog_rotate_pattern): Ditto.
14619         (vect_recog_vector_vector_shift_pattern): Ditto.
14620         (vect_recog_divmod_pattern): Ditto.
14621         (vect_recog_mixed_size_cond_pattern): Ditto.
14622         (vect_recog_bool_pattern): Ditto.
14623         (vect_pattern_recog_1): Ditto.
14624         (vect_pattern_recog): Ditto.
14625         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14626         (vect_is_simple_iv_evolution): Ditto.
14627         (vect_analyze_scalar_cycles_1): Ditto.
14628         (vect_get_loop_niters): Ditto.
14629         (vect_analyze_loop_1): Ditto.
14630         (vect_analyze_loop_form): Ditto.
14631         (vect_analyze_loop_operations): Ditto.
14632         (vect_analyze_loop_2): Ditto.
14633         (vect_analyze_loop): Ditto.
14634         (report_vect_op): Ditto.
14635         (vect_is_slp_reduction): Ditto.
14636         (vect_is_simple_reduction_1): Ditto.
14637         (vect_get_known_peeling_cost): Ditto.
14638         (vect_estimate_min_profitable_iters): Ditto.
14639         (vect_model_reduction_cost): Ditto.
14640         (vect_model_induction_cost): Ditto.
14641         (get_initial_def_for_induction): Ditto.
14642         (vect_create_epilog_for_reduction): Ditto.
14643         (vectorizable_reduction): Ditto.
14644         (vectorizable_induction): Ditto.
14645         (vectorizable_live_operation): Ditto.
14646         (vect_loop_kill_debug_uses): Ditto.
14647         (vect_transform_loop): Ditto.
14648         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14649         (vect_stmt_relevant_p): Ditto.
14650         (process_use): Ditto.
14651         (vect_mark_stmts_to_be_vectorized): Ditto.
14652         (vect_model_simple_cost): Ditto.
14653         (vect_model_promotion_demotion_cost): Ditto.
14654         (vect_model_store_cost): Ditto.
14655         (vect_get_store_cost): Ditto.
14656         (vect_model_load_cost): Ditto.
14657         (vect_get_load_cost): Ditto.
14658         (vect_init_vector_1): Ditto.
14659         (vect_get_vec_def_for_operand): Ditto.
14660         (vect_finish_stmt_generation): Ditto.
14661         (vectorizable_call): Ditto.
14662         (vectorizable_conversion): Ditto.
14663         (vectorizable_assignment): Ditto.
14664         (vectorizable_shift): Ditto.
14665         (vectorizable_operation): Ditto.
14666         (vectorizable_store): Ditto.
14667         (vectorizable_load): Ditto.
14668         (vectorizable_condition): Ditto.
14669         (vect_analyze_stmt): Ditto.
14670         (vect_transform_stmt): Ditto.
14671         (vect_is_simple_use): Ditto.
14672         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14673         (vect_can_advance_ivs_p): Ditto.
14674         (vect_update_ivs_after_vectorizer): Ditto.
14675         (vect_do_peeling_for_loop_bound): Ditto.
14676         (vect_gen_niters_for_prolog_loop): Ditto.
14677         (vect_update_inits_of_drs): Ditto.
14678         (vect_create_cond_for_alias_checks): Ditto.
14679         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14680         (vect_build_slp_tree_1): Ditto.
14681         (vect_supported_load_permutation_p): Ditto.
14682         (vect_analyze_slp_instance): Ditto.
14683         (vect_analyze_slp): Ditto.
14684         (vect_make_slp_decision): Ditto.
14685         (vect_detect_hybrid_slp): Ditto.
14686         (vect_bb_vectorization_profitable_p): Ditto.
14687         (vect_slp_analyze_bb_1): Ditto.
14688         (vect_update_slp_costs_according_to_vf): Ditto.
14689         (vect_get_mask_element): Ditto.
14690         (vect_transform_slp_perm_load): Ditto.
14691         (vect_schedule_slp_instance): Ditto.
14692         (vect_schedule_slp): Ditto.
14693         (vect_slp_transform_bb): Ditto.
14694         * profile.c (read_profile_edge_counts): Ditto.
14695         (compute_branch_probabilities): Ditto.
14696         * coverage.c (get_coverage_counts): Ditto.
14698 2013-09-16  Diego Novillo  <dnovillo@google.com>
14700         * tree-core.h: Add missing comment lines from refactoring of tree.h.
14702 2013-09-16  Jan Hubicka  <jh@suse.cz>
14704         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14705         abstract functions; for static functions check the presence of body.
14707 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14709         * config/aarch64/aarch64-simd-builtins.def (fma): New.
14710         * config/aarch64/aarch64-simd.md
14711         (aarch64_mla_elt<mode>): New.
14712         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14713         (aarch64_mls_elt<mode>): Likewise.
14714         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14715         (aarch64_fma4_elt<mode>): Likewise.
14716         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14717         (aarch64_fma4_elt_to_128v2df): Likewise.
14718         (aarch64_fma4_elt_to_64df): Likewise.
14719         (fnma<mode>4): Likewise.
14720         (aarch64_fnma4_elt<mode>): Likewise.
14721         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14722         (aarch64_fnma4_elt_to_128v2df): Likewise.
14723         (aarch64_fnma4_elt_to_64df): Likewise.
14724         * config/aarch64/iterators.md (VDQSF): New.
14725         * config/aarch64/arm_neon.h
14726         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14727         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14729 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14731         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14732         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14733         (aarch64_mul3_elt_to_128df): Likewise.
14734         (aarch64_mul3_elt_to_64v2df): Likewise.
14735         * config/aarch64/iterators.md (VEL): Also handle DFmode.
14736         (VMUL): New.
14737         (VMUL_CHANGE_NLANES) Likewise.
14738         (h_con): Likewise.
14739         (f): Likewise.
14740         * config/aarch64/arm_neon.h
14741         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14743 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14745         * config/aarch64/arm_neon.h
14746         (vcvtx_high_f32_f64): Fix parameters.
14748 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14749             Uros Bizjak  <ubizjak@gmail.com>
14751         * config/alpha.c: Include tree-ssanames.h.
14753 2013-09-16  Richard Biener  <rguenther@suse.de>
14755         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14756         (dot_rdg_1): Handle control_dd.
14757         (create_edge_for_control_dependence): New function.
14758         (create_rdg_edges): Add control dependences if asked for.
14759         (build_rdg): Likewise.
14760         (generate_loops_for_partition): If there are not necessary
14761         control stmts remove all their dependencies.
14762         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14763         (distribute_loop): Pass on control dependences.
14764         (tree_loop_distribution): Compute control dependences and remove
14765         restriction on number of loop nodes.
14767 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
14769         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14770         for internal calls.
14772 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
14774         * cse.c (try_const_anchors): Punt on CC modes.
14776 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14778         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14780 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
14782         PR target/58382
14783         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
14784         calls to word_mode.
14786 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14788         PR target/48094
14789         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
14790         seen.
14791         (darwin_objc1_section): Likewise.
14792         (darwin_file_end): Emit Image Info section when required.
14794 2013-09-14  Jan Hubicka  <jh@suse.cz>
14796         * tree-into-ssa.c (gate_into_ssa): New.
14797         (pass_data_build_ssa): Use it.
14798         * cgraph.h (expand_thunk): Update prototype.
14799         * cgraphunit.c (analyze_function): Expand thunks early.
14800         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
14801         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
14802         set lowered flag; do not add new function.
14803         (assemble_thunks_and_aliases): Update.
14804         * tree-ssa.c (gate_init_datastructures): New gate.
14805         (pass_data_init_datastructures): Use it.
14807 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14809         PR target/58269
14810         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
14811         xmm register set described in the psABI.
14813 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
14815         * dwarf2out.c (should_emit_struct_debug): Add check
14816         for type_decl variable is not NULL.
14818 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
14820         * config.gcc: Use new winnt-c.c target hooks
14821         * config/t-winnt: New file
14822         * config/winnt-c.c: New file
14823         * doc/tm.texi.in: Document new hook
14824         * doc/tm.texi: Regenerated
14826 2013-09-13  Jan Hubicka  <jh@suse.cz>
14828         PR middle-end/58094
14829         * ipa-inline.c (check_callers): New function.
14830         (check_caller_edge): Remove.
14831         (want_inline_function_to_all_callers_p): Also permit alises that are
14832         called dirrectly.
14833         (inline_to_all_callers): Terminate the walk when devirtualization
14834         introduce new calls.
14836 2013-09-13  Jan Hubicka  <jh@suse.cz>
14838         * ipa-inline-analysis.c (struct growth_data): Add node.
14839         (do_estimate_growth_1): Fix detection of recursion.
14841 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
14843         PR tree-optimization/58392
14844         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
14845         to avoid shadowing of outer loop variable.  If
14846         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
14847         replace_by_duplicate_decl simduid of loops that have it set and
14848         set dest_cfun->has_simduid_loops and/or
14849         dest_cfun->has_force_vect_loops.
14850         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
14851         instead of maybe_lookup_decl.
14852         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
14853         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
14854         call.  Copy over force_vect and copy and remap simduid.  Set
14855         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
14856         (copy_cfg_body): Remove blocks_to_copy argument.  Use
14857         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
14858         caller.  Don't set cfun->has_simduid_loops and/or
14859         cfun->has_force_vect_loops here.
14860         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
14861         caller.
14862         (expand_call_inline, tree_function_versioning): Adjust copy_body
14863         callers.
14865 2013-09-13  Martin Jambor  <mjambor@suse.cz>
14867         PR bootstrap/58388
14868         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
14869         the assert if the edge was a speculative one.
14871 2013-09-13  Richard Biener  <rguenther@suse.de>
14873         * tree-data-ref.h (known_dependences_p): Move here ...
14874         * tree-loop-distribution.c (known_dependences_p): ... from here.
14875         (dump_rdg_component, debug_rdg_component): Remove.
14876         (dump_rdg): Adjust.
14877         (generate_loops_for_partition): Use gimple_uid instead of
14878         relying on matching stmt visit order.
14879         (rdg_build_partitions): Take starting stmt vector.
14880         (ldist_gen): Merge into ...
14881         (distribute_loop): ... this function.  Do not compute starting
14882         vertices vector.
14883         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
14885 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14887         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
14888         Set type attribute correctly. Set predicable_short_it attribute.
14889         (cmpsi_shiftsi): Remove %? from output template.
14891 2013-09-13  Richard Biener  <rguenther@suse.de>
14893         * tree-loop-distribution.c (struct rdg_component,
14894         rdg_defs_used_in_other_loops_p, free_rdg_components,
14895         rdg_build_components): Remove.
14896         (stmts_from_loop): Do not record virtual PHIs.
14897         (generate_loops_for_partition): Skip virtual PHIs.
14898         (build_rdg_partition_for_component): Rename to ...
14899         (build_rdg_partition_for_vertex): ... this and adjust.
14900         (rdg_build_partitions): Take a vector of starting vertices
14901         instead of components.  Remove unnecessary leftover handling.
14902         (ldist_gen): Do not build components or record other stores.
14903         (distribute_loop): Do not distribute loops containing stmts
14904         with side-effects.
14906 2013-09-13  Christian Bruel  <christian.bruel@st.com>
14908         PR target/58314
14909         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
14911 2013-09-13  Kai Tietz  <ktietz@redhat.com>
14913         * config.gcc: Separate cases for mingw and cygwin targets,
14914         and add 64-bit cygwin target case.
14916         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
14917         dll-export inline-functions.
14918         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
14920 2013-09-13  Jeff Law  <law@redhat.com>
14922         PR middle-end/58387
14923         Revert:
14924         2013-09-06  Jeff Law  <law@redhat.com>
14926         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14927         edge implied equivalences into successor phis.
14929 2013-09-12  DJ Delorie  <dj@redhat.com>
14931         * config/rl78/rl78-virt.md: Change from | to \; for asm line
14932         separators.
14934 2013-09-12  Brooks Moses  <bmoses@google.com>
14936         PR driver/42955
14937         * Makefile.in: Do not install driver binaries in $(target)/bin.
14939 2013-09-12  DJ Delorie  <dj@redhat.com>
14941         * config/rl78/rl78.opt (mrelax): New.
14942         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
14943         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
14945         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
14946         between SP and FP.
14947         (rl78_expand_epilogue): Likewise.
14949 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
14951         PR middle-end/58335
14952         * lra-eliminations.c (remove_reg_equal_offset_note): New.
14953         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
14954         pointer elimination with using remove_reg_equal_offset_note.
14956 2013-09-12  DJ Delorie  <dj@redhat.com>
14958         * config/msp430/: New port.
14959         * config.gcc (msp430): Added.
14960         * doc/invoke.texi: Document MSP430 options.
14961         * doc/install.texi: Document msp430-elf
14962         * doc/md.texi: Document msp430-elf
14963         * doc/contrib.texi: Document msp430-elf
14965         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
14966         PSImode.
14968 2013-09-12  Martin Jambor  <mjambor@suse.cz>
14970         PR ipa/58389
14971         * ipa-prop.c (remove_described_reference): Give up if the edge in the
14972         reference descriptor is NULL.
14973         (ipa_edge_removal_hook): If owning a reference descriptor, set its
14974         edge to NULL.
14976 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14978         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
14979         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
14980         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
14981         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
14982         make_temp_ssa_name): move to tree-ssanames.h
14983         * tree-ssa-alias.h: Move prototype.
14984         * tree-ssa.h: Include tree-ssanames.h.
14985         * tree-ssanames.c (FREE_SSANAMES): Move to here.
14986         * tree-ssanames.h: New.  Move items from tree-flow*.h
14987         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
14989 2013-09-12  Richard Biener  <rguenther@suse.de>
14991         PR tree-optimization/58404
14992         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
14993         propagate non-invariant addresses into dereferences wrapped
14994         in component references.
14996 2013-09-12  Richard Biener  <rguenther@suse.de>
14998         PR tree-optimization/58402
14999         * passes.def: Move pass_late_warn_uninitialized later.
15001 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
15003         * tree-ssa.h: New.  Move content from tree-flow.h and
15004         tree-flow-inline.h.
15005         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15006         Move prototypes belonging to tree-ssa.c.
15007         * tree-flow-inline.h (redirect_edge_var_map_def,
15008         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15009         tree-ssa.h.
15010         * gimple.h: Adjust prototypes.
15011         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15012         to...
15013         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15014         * tree.h: Move prototype to tree-ssa.h.
15015         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15016         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15017         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15018         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15019         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15020         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15021         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15022         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15023         graphite-blocking.c, graphite-clast-to-gimple.c,
15024         graphite-dependences.c, graphite-interchange.c,
15025         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15026         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15027         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15028         ipa-reference.c, ipa-split.c, ipa-utils.c,
15029         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15030         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15031         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15032         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15033         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15034         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15035         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15036         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15037         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15038         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15039         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15040         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15041         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15042         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15043         value-prof.c, var-tracking.c,
15044         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15046 2013-09-12  Richard Biener  <rguenther@suse.de>
15048         PR tree-optimization/58396
15049         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15050         (build_rdg): Take a loop-nest parameter, fix memleaks.
15051         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15053 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
15055         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15056         for SLM.
15058 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
15060         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15061         The FMA instruction names should have a 'v' prefix.
15063 2013-09-12  Richard Biener  <rguenther@suse.de>
15065         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15066         (dot_rdg): Use popen instead of system in optional code.
15067         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15068         (already_processed_vertex_p): Adjust.
15069         (has_anti_or_output_dependence, predecessor_has_mem_write,
15070         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15071         rdg_flag_uses): Remove.
15072         (rdg_flag_vertex): Simplify.
15073         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15074         remove recursion.
15075         (build_rdg_partition_for_component): Process the first vertex
15076         of a component only.
15077         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15079 2013-09-12  Alan Modra  <amodra@gmail.com>
15081         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15083 2013-09-11  DJ Delorie  <dj@redhat.com>
15084             Nick Clifton  <nickc@redhat.com>
15086         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15087         (rl78_stack_based_mem): New.
15088         * config/rl78/constraints.md (Iv08): New.
15089         (Iv16): New.
15090         (Iv24): New.
15091         (Is09): New.
15092         (Is17): New.
15093         (Is25): New.
15094         (ISsi): New.
15095         (IShi): New.
15096         (ISqi): New.
15097         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15098         (movhi): Likewise.
15099         (movsi): Change from expand to insn-and-split.
15100         (ashrsi3): Clobber AX.
15101         (lshrsi3): New.
15102         (ashlsi3): New.
15103         (cbranchsi4): New.
15104         * config/rl78/rl78.md (CC_REG): Fix.
15105         (addsi3): Allow memory and immediate operands.
15106         (addsi3_internal): Split into...
15107         (addsi3_internal_virt): ...new, and ...
15108         (addsi3_internal_real): ...new.
15109         (subsi): New.
15110         (subsi3_internal_virt): New.
15111         (subsi3_internal_real): New.
15112         (mulsi3): Add memory operand.
15113         (mulsi3_rl78): Likewise.
15114         (mulsi3_g13): Likewise.
15115         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15116         (cbranchqi4_real): Add more constraint options.
15117         (cbranchhi4_real): Expand pattern.
15118         (cbranchhi4_real_signed): New.
15119         (cbranchhi4_real_inverted): New.
15120         (cbranchsi4_real_lt): New.
15121         (cbranchsi4_real_ge): New.
15122         (cbranchsi4_real_signed): New.
15123         (cbranchsi4_real): New.
15124         (peephole2): New.
15125         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15126         constant shifts.
15127         (lshrsi3_virt): Likewise.
15128         (ashlsi3_virt): Likewise.
15129         (cbranchqi4_virt_signed): New.
15130         (cbranchhi4_virt_signed): New.
15131         (cbranchsi4_virt): New.
15132         * config/rl78/rl78.c: Whitespace fixes throughout.
15133         (move_elim_pass): New.
15134         (pass_data_rl78_move_elim): New.
15135         (pass_rl78_move_elim): New.
15136         (make_pass_rl78_move_elim): New.
15137         (rl78_devirt_info): Run devirt earlier.
15138         (rl78_move_elim_info): New.
15139         (rl78_asm_file_start): Register it.
15140         (rl78_split_movsi): New.
15141         (rl78_as_legitimate_address): Allow virtual base registers when
15142         appropriate.
15143         (rl78_addr_space_convert): Remove spurious debug stuff.
15144         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15145         (rl78_print_operand): More cases for not printing '#'.
15146         (rl78_expand_compare): Remove most of the logic.
15147         (content_memory): New.
15148         (clear_content_memory): New.
15149         (get_content_index): New.
15150         (get_content_name): New.
15151         (display_content_memory): New.
15152         (update_content): New.
15153         (record_content): New.
15154         (already_contains): New.
15155         (insn_ok_now): Re-recog insns with virtual registers.
15156         (add_postponed_content_update): New.
15157         (process_postponed_content_update): New.
15158         (gen_and_emit_move): New.
15159         (transcode_memory_rtx): Record new location content.
15160         Use gen_and_emit_move.
15161         (force_into_acc): New.
15162         (move_to_acc): Use gen_and_emit_move.
15163         (move_from_acc): Likewise.
15164         (move_acc_to_reg): Likewise.
15165         (move_to_x): Likewise.
15166         (move_to_hl): Likewise.
15167         (move_to_de): Likewise.
15168         (rl78_alloc_physical_registers_op1): Record location content.
15169         (has_constraint): New.
15170         (rl78_alloc_physical_registers_op2): Record location content.
15171         Optimize use of HL.
15172         (rl78_alloc_physical_registers_ro1): Likewise.
15173         (rl78_alloc_physical_registers_cmp): Likewise.
15174         (rl78_alloc_physical_registers_umul): Likewise.
15175         (rl78_alloc_address_registers_macax): New.
15176         (rl78_alloc_physical_registers): Initialize and set location
15177         content memory as needed.
15178         (rl78_reorg): Make sure split2 is called.
15179         (rl78_rtx_costs): New.
15181 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
15183         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15184         for (not (neg ...)) and (neg (not ...)) cases.
15186 2013-09-11  Richard Biener  <rguenther@suse.de>
15188         PR middle-end/58377
15189         * passes.def: Split critical edges before late uninit warning passes.
15190         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15192 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
15194         PR tree-optimization/58385
15195         * fold-const.c (build_range_check): If both low and high are NULL,
15196         use omit_one_operand_loc to preserve exp side-effects.
15198 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15200         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15202 2013-09-11  Richard Biener  <rguenther@suse.de>
15204         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15205         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15206         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15207         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15208         stmts_from_loop, known_dependences_p, build_empty_rdg,
15209         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15210         * tree-loop-distribution.c: ... here.
15211         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15212         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15213         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15214         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15215         * tree-loop-distribution.c: ... here.
15216         * tree-loop-distribution.c: Include gimple-pretty-print.h.
15217         (struct partition_s): Add loops member.
15218         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15219         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15220         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15222 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15223             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15224             Sergey Lega  <sergey.s.lega@intel.com>
15225             Anna Tikhonova  <anna.tikhonova@intel.com>
15226             Ilya Tocar  <ilya.tocar@intel.com>
15227             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15228             Ilya Verbin  <ilya.verbin@intel.com>
15229             Kirill Yukhin  <kirill.yukhin@intel.com>
15230             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15232         * config/i386/constraints.md (k): New.
15233         (Yk): Ditto.
15234         * config/i386/i386.c (const regclass_map): Add new mask registers.
15235         (dbx_register_map): Ditto.
15236         (dbx64_register_map): Ditto.
15237         (svr4_dbx_register_map): Ditto.
15238         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15239         disabled.
15240         (ix86_preferred_reload_class): Disable constants for mask registers.
15241         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15242         (ix86_hard_regno_mode_ok): Support new mask registers.
15243         (x86_order_regs_for_local_alloc): Ditto.
15244         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15245         (FIXED_REGISTERS): Add new mask registers.
15246         (CALL_USED_REGISTERS): Ditto.
15247         (REG_ALLOC_ORDER): Ditto.
15248         (VALID_MASK_REG_MODE): New.
15249         (FIRST_MASK_REG): Ditto.
15250         (LAST_MASK_REG): Ditto.
15251         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15252         (MAYBE_MASK_CLASS_P): New.
15253         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15254         (REG_CLASS_CONTENTS): Ditto.
15255         (MASK_REGNO_P): New.
15256         (ANY_MASK_REG_P): Ditto.
15257         (HI_REGISTER_NAMES): Add new mask registers.
15258         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15259         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15260         mask registers.
15261         (attribute "type"): Add mskmov, msklog.
15262         (attribute "length_immediate"): Support them.
15263         (attribute "memory"): Ditto.
15264         (attribute "prefix_0f"): Ditto.
15265         (*movhi_internal): Support new mask registers.
15266         (*movqi_internal): Ditto.
15267         (define_split): Split out clobber pattern is a logic
15268         insn on mask registers.
15269         (*k<logic><mode>): New.
15270         (*andhi_1): Extend to support mask regs.
15271         (*andqi_1): Extend to support mask regs.
15272         (kandn<mode>): New.
15273         (define_split): Split and-not to and and not if operands
15274         are not mask regs.
15275         (*<code><mode>_1): Separate HI mode to new pattern...
15276         (*<code>hi_1): This.
15277         (*<code>qi_1): Extend to support mask regs.
15278         (kxnor<mode>): New.
15279         (kortestzhi): Ditto.
15280         (kortestchi): Ditto.
15281         (kunpckhi): Ditto.
15282         (*one_cmpl<mode>2_1): Remove HImode and handle it...
15283         (*one_cmplhi2_1): ...Here, now with mask registers support.
15284         (*one_cmplqi2_1): Support new mask registers.
15285         (HI/QImode arithmetics splitter): Don't split if mask registers
15286         are used.
15287         (HI/QImode not splitter): Ditto.
15288         * config/i386/predicated.md (mask_reg_operand): New.
15289         (general_reg_operand): Ditto.
15291 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15293         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15294         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15296 2013-09-10  Jeff Law  <law@redhat.com>
15298         PR tree-optimization/58380
15299         * tree-ssa-threadupdate.c (thread_block): Recognize another case
15300         of threading through a buried loop header.
15302         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15303         return value for single successor case.
15305 2013-09-10  Jan Hubicka  <jh@suse.cz>
15307         * ipa-devirt.c (ipa_devirt): Enable with LTO.
15309 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
15311         PR target/58361
15312         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15313         support conditional execution.
15314         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15316 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
15318         * lra.c (lra): Clear lra_optional_reload_pseudos before every
15319         constraint pass.
15320         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15321         Check destination too to check move insn.
15322         (undo_optional_reloads): Add check that the original peudo did not
15323         changed its allocation and the optional reload was inherited on last
15324         inheritance pass.  Break loop after deciding to keep optional reload.
15325         (lra_undo_inheritance): Add check that inherited pseudo still in
15326         memory.
15328 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
15330         * config/aarch64/aarch64.md (generic_sched): New.
15331         * config/aarch64/aarch64-generic.md (load): Make conditional
15332         on generic_sched attribute.
15333         (nonload): Likewise.
15335 2013-09-10  Jan Hubicka  <jh@suse.cz>
15337         * lto-cgraph.c: Include ipa-utils.h.
15338         (compute_ltrans_boundary): Also add possible targets into the boundary.
15340 2013-09-10  Jan Hubicka  <jh@suse.cz>
15342         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15343         VAR_DECL of vtable rather than full expression.
15345 2013-09-10  Jan Hubicka  <jh@suse.cz>
15346             Paolo Carlini  <paolo.carlini@oracle.com>
15348         * cgraphunit.c (analyze_functions): Save input_location, set it
15349         to UNKNOWN_LOCATION and restore it at the end.
15351 2013-09-10  Martin Jambor  <mjambor@suse.cz>
15353         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15354         represented by a thunk.
15356 2013-09-10  Jeff Law  <law@redhat.com>
15358         PR tree-optimization/58343
15359         * tree-ssa-threadupdate.c (thread_block): Identify and disable
15360         jump threading requests through loop headers buried in the middle
15361         of a jump threading path.
15363         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15364         in return value/type.
15366 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
15368         PR rtl-optimization/58365
15369         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15370         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15371         it differs.
15373 2013-09-10  Richard Biener  <rguenther@suse.de>
15375         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15376         * tree-data-ref.c (create_rdg_vertices): Collect all data
15377         references, signal failure to the caller, use data-ref API.
15378         (build_rdg): Compute data references only once.  Maintain lifetime
15379         of data references and data dependences from within RDG.
15380         (free_rdg): Free dependence relations.
15381         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15382         inventing extra dependences.
15383         (distribute_loop): Update for RDG API changes.
15385 2013-09-10  Kai Tietz  <ktietz@redhat.com>
15387         * doc/invoke.texi (fms-extensions): Document changed
15388         behavior for ms-abi targets.
15389         * config/i386/i386.c (ix86_option_override_internal):
15390         Set default value of option -fms-extension for ms-abi targets.
15392 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15394         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15396 2013-09-10  Alan Modra  <amodra@gmail.com>
15398         PR target/58330
15399         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15401 2013-09-10  Alan Modra  <amodra@gmail.com>
15403         * config/rs6000/predicates.md (add_cint_operand): New.
15404         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15405         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15406         using add_cint_operand.
15407         (largetoc_high_plus_aix): Likewise.
15409 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
15411         PR tree-optimization/58364
15412         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15413         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15414         the current range can't be an unconditional true or false.
15416 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
15418         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15420 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
15422         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15424 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15426         PR c++/43452
15427         * doc/invoke.texi (-Wdelete-incomplete): Document it.
15429 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
15431         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15432         NO_REGS for immediate that can't be moved directly into FP_REGS.
15434 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15436         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15437         comparison with negated operand.
15438         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15439         RTL form.
15441 2013-09-09  Richard Biener  <rguenther@suse.de>
15443         PR middle-end/58326
15444         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15445         of a subloop record all its block as affecting loop-closed SSA form.
15447 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15449         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15450         of an rtx/bitpos pair.
15451         (store_fixed_bit_field): Update accordingly.
15453 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15455         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15456         GEN_INT.
15457         * builtins.c (expand_errno_check): Likewise.
15458         * dwarf2cfi.c (init_return_column_size): Likewise.
15459         * except.c (sjlj_mark_call_sites): Likewise.
15460         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15461         * lra-constraints.c (emit_inc): Likewise.
15462         * ree.c (combine_set_extension): Likewise.
15463         * regmove.c (fixup_match_2): Likewise.
15464         * reload1.c (inc_for_reload): Likewise.
15466 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15468         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15469         (force_to_mode, simplify_shift_const_1, simplify_comparison):
15470         Use gen_int_mode with the mode of the associated simplify_* call.
15471         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15472         * expmed.c (expand_shift_1): Likewise.
15473         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15474         * loop-iv.c (iv_number_of_iterations): Likewise.
15475         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15476         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15478 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15480         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15481         of the associated expand_* call.
15482         (asan_emit_stack_protection): Likewise.
15483         * builtins.c (round_trampoline_addr): Likewise.
15484         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15485         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15486         (emit_store_flag): Likewise.
15487         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15488         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15489         Likewise.
15490         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15491         * ifcvt.c (noce_try_store_flag_constants): Likewise.
15492         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15493         * modulo-sched.c (generate_prolog_epilog): Likewise.
15494         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15495         (expand_ctz, expand_ffs, expand_unop): Likewise.
15497 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15499         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15500         of the associated gen_rtx_* call.
15501         * caller-save.c (init_caller_save): Likewise.
15502         * combine.c (find_split_point, make_extraction): Likewise.
15503         (make_compound_operation): Likewise.
15504         * dwarf2out.c (mem_loc_descriptor): Likewise.
15505         * explow.c (plus_constant, probe_stack_range): Likewise.
15506         * expmed.c (expand_mult_const): Likewise.
15507         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15508         * reload1.c (init_reload): Likewise.
15509         * valtrack.c (cleanup_auto_inc_dec): Likewise.
15510         * var-tracking.c (adjust_mems): Likewise.
15511         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15512         rather than gen_rtx_fmt_ee.
15514 2013-09-09  Jan Hubicka  <jh@suse.cz>
15516         PR middle-end/58294
15517         * value-prof.c (gimple_ic): Copy also abnormal edges.
15519 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15521         * asan.c (asan_shadow_cst): Use gen_int_mode.
15523 2013-09-08  Jan Hubicka  <jh@suse.cz>
15525         * ipa-profile.c: Add toplevel comment.
15526         (ipa_propagate_frequency_1): Be more conservative when profile is read.
15527         (contains_hot_call_p): New function.
15528         (ipa_propagate_frequency): Set frequencies based on counts when
15529         profile is read.
15530         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15531         profile; do not tamper with profile after inlining if it is read.
15533 2013-09-08  Jan Hubicka  <jh@suse.cz>
15535         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15536         speculative edges.
15538 2013-09-08  Jan Hubicka  <jh@suse.cz>
15540         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15541         summary generation.
15543 2013-09-08  Jeff Law  <law@redhat.com>
15545         PR bootstrap/58340
15546         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15547         of 'found'.
15549 2013-09-08  Andi Kleen  <ak@linux.intel.com>
15551         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15553 2013-09-08  Jan Hubicka  <jh@suse.cz>
15555         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15557 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
15559         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15560         for non-debug insns.
15561         * lra.c (new_insn_reg): Take the containing insn as a parameter.
15562         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15563         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15564         accordingly.
15566 2013-09-08  Jan Hubicka  <jh@suse.cz>
15568         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15569         targets and devirtualize to BUILT_IN_UNREACHABLE.
15570         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15571         * ipa.c (walk_polymorphic_call_targets): New function.
15572         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15573         functions; use the new timevar.
15574         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15575         was removed from the program.
15576         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15577         not consider it in the walk when its vtable is dead.
15578         (possible_polymorphic_call_targets_1): Pass anonymous flag to
15579         record_binfo.
15580         (devirt_variable_node_removal_hook): New function.
15581         (possible_polymorphic_call_targets): Also register
15582         devirt_variable_node_removal_hook.
15583         (ipa_devirt): Do not do non-speculative devirtualization.
15584         (gate_ipa_devirt): One execute if devirtualizing speculatively.
15586 2013-09-08  Jan Hubicka  <jh@suse.cz>
15588         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15589         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15590         varpool_remove_variable_insertion_hook): Declare.
15591         * varpool.c (varpool_node_hook_list): New structure.
15592         (first_varpool_node_removal_hook,
15593         first_varpool_variable_insertion_hook): New variables.
15594         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15595         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15596         varpool_remove_variable_insertion_hook,
15597         varpool_call_variable_insertion_hooks): New functions.
15598         (varpool_remove_node): Use it.
15600 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
15602         PR c++/54941
15603         * diagnostic.c (diagnostic_build_prefix): When s.file is
15604         "<built-in>" don't output line and column numbers.
15606 2013-09-06  Jan Hubicka  <jh@suse.cz>
15608         * cgraphunit.c (expand_thunk): Get body before touching arguments.
15609         * lto-streamer-out.c: Stream thunks, too.
15610         * lto-streamer-in.c (input_function): Pop cfun here
15611         (lto_read_body): Instead of here.
15613 2013-09-06  Caroline Tice  <cmtice@google.com>
15615         * doc/install.texi: Add documentation for the --enable-vtable-verify
15616         and the --disable-libvtv configure options.
15618 2013-09-06  Jeff Law  <law@redhat.com>
15620         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15621         edge implied equivalences into successor phis.
15623 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
15625         * resource.c (mark_referenced_resources): Handle COND_EXEC.
15627 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
15629         * resource.c (mark_target_live_regs): Compute resources taking
15630         into account if a call is predicated or not.
15632 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15634         * toplev.c (output_stack_usage): Be prepared for suffixes created by
15635         the compiler in the function names.
15637 2013-09-06  Jan Hubicka  <jh@suse.cz>
15639         PR middle-end/58094
15640         * ipa-inline.c (has_caller_p): New function.
15641         (want_inline_function_to_all_callers_p): Use it.
15642         (sum_callers, inline_to_all_callers): Break out from ...
15643         (ipa_inline): ... here.
15645 2013-09-06  Jan Hubicka  <jh@suse.cz>
15647         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15648         only when AVX is enabled.
15650 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15652         * config/aarch64/aarch64.md
15653         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15654         is fpsimd_<load/store>2.
15655         (load_pair<mode>): Likewise.
15656         (store_pair<mode>): Likewise.
15658 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15660         * config/arm/types.md (type): Add "mrs" type.
15661         * config/aarch64/aarch64.md
15662         (aarch64_load_tp_hard): Make type "mrs".
15663         * config/arm/arm.md
15664         (load_tp_hard): Make type "mrs".
15665         * config/arm/cortex-a15.md: Update with new attributes.
15666         * config/arm/cortex-a5.md: Update with new attributes.
15667         * config/arm/cortex-a53.md: Update with new attributes.
15668         * config/arm/cortex-a7.md: Update with new attributes.
15669         * config/arm/cortex-a8.md: Update with new attributes.
15670         * config/arm/cortex-a9.md: Update with new attributes.
15671         * config/arm/cortex-m4.md: Update with new attributes.
15672         * config/arm/cortex-r4.md: Update with new attributes.
15673         * config/arm/fa526.md: Update with new attributes.
15674         * config/arm/fa606te.md: Update with new attributes.
15675         * config/arm/fa626te.md: Update with new attributes.
15676         * config/arm/fa726te.md: Update with new attributes.
15678 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15680         * config/aarch64/aarch64.md
15681         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15682         (*movtf_aarch64): Likewise.
15683         * config/arm/arm.md
15684         (thumb1_movdi_insn): Use "multiple" for type where more than one
15685         instruction is used for a move.
15686         (*arm32_movhf): Likewise.
15687         (*thumb_movdf_insn): Likewise.
15689 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15691         * config/arm/types.md (type): Rename fcpys to fmov.
15692         * config/arm/vfp.md
15693         (*arm_movsi_vfp): Rename type fcpys as fmov.
15694         (*thumb2_movsi_vfp): Likewise
15695         (*movhf_vfp_neon): Likewise
15696         (*movhf_vfp): Likewise
15697         (*movsf_vfp): Likewise
15698         (*thumb2_movsf_vfp): Likewise
15699         (*movsfcc_vfp): Likewise
15700         (*thumb2_movsfcc_vfp): Likewise
15701         * config/aarch64/aarch64-simd.md
15702         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15703         * config/aarch64/aarch64.md
15704         (*movsi_aarch64): Replace type mov_reg with fmovs.
15705         (*movdi_aarch64): Likewise
15706         (*movsf_aarch64): Likewise
15707         (*movdf_aarch64): Likewise
15708         * config/arm/arm.c
15709         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15710         * config/arm/iwmmxt.md
15711         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15712         * config/arm/arm1020e.md: Update with new attributes.
15713         * config/arm/cortex-a15-neon.md: Update with new attributes.
15714         * config/arm/cortex-a5.md: Update with new attributes.
15715         * config/arm/cortex-a53.md: Update with new attributes.
15716         * config/arm/cortex-a7.md: Update with new attributes.
15717         * config/arm/cortex-a8-neon.md: Update with new attributes.
15718         * config/arm/cortex-a9.md: Update with new attributes.
15719         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15720         * config/arm/cortex-r4f.md: Update with new attributes.
15721         * config/arm/marvell-pj4.md: Update with new attributes.
15722         * config/arm/vfp11.md: Update with new attributes.
15724 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15726         * config/aarch64/aarch64.md
15727         (*madd<mode>): Fix type attribute.
15728         (*maddsi_uxtw): Likewise.
15729         (*msub<mode>): Likewise.
15730         (*msubsi_uxtw): Likewise.
15731         (<su_optab>maddsidi4): Likewise.
15732         (<su_optab>msubsidi4): Likewise.
15734 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15736         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15737         * config/arm/arm.md (core_cycles): Remove fdiv.
15738         * config/arm/vfp.md:
15739         (*sqrtsf2_vfp): Update for attribute changes.
15740         (*sqrtdf2_vfp): Likewise.
15741         * config/aarch64/aarch64.md:
15742         (sqrt<mode>2): Update for attribute changes.
15743         * config/arm/arm1020e.md: Update with new attributes.
15744         * config/arm/cortex-a15-neon.md: Update with new attributes.
15745         * config/arm/cortex-a5.md: Update with new attributes.
15746         * config/arm/cortex-a53.md: Update with new attributes.
15747         * config/arm/cortex-a7.md: Update with new attributes.
15748         * config/arm/cortex-a8-neon.md: Update with new attributes.
15749         * config/arm/cortex-a9.md: Update with new attributes.
15750         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15751         * config/arm/cortex-r4f.md: Update with new attributes.
15752         * config/arm/marvell-pj4.md: Update with new attributes.
15753         * config/arm/vfp11.md: Update with new attributes.
15755 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15757         * config/arm/types.md
15758         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15759         * config/aarch64/aarch64.md
15760         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15761         new attributes.
15762         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15763         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15764         (float<GPI:mode><GPF:mode>2): Likewise.
15765         * config/arm/vfp.md
15766         (*truncsisf2_vfp): Update with new attributes.
15767         (*truncsidf2_vfp): Likewise.
15768         (fixuns_truncsfsi2): Likewise.
15769         (fixuns_truncdfsi2): Likewise.
15770         (*floatsisf2_vfp): Likewise.
15771         (*floatsidf2_vfp): Likewise.
15772         (floatunssisf2): Likewise.
15773         (floatunssidf2): Likewise.
15774         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15775         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15776         * config/arm/arm1020e.md: Update with new attributes.
15777         * config/arm/cortex-a15-neon.md: Update with new attributes.
15778         * config/arm/cortex-a5.md: Update with new attributes.
15779         * config/arm/cortex-a53.md: Update with new attributes.
15780         * config/arm/cortex-a7.md: Update with new attributes.
15781         * config/arm/cortex-a8-neon.md: Update with new attributes.
15782         * config/arm/cortex-a9.md: Update with new attributes.
15783         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15784         * config/arm/cortex-r4f.md: Update with new attributes.
15785         * config/arm/marvell-pj4.md: Update with new attributes.
15786         * config/arm/vfp11.md: Update with new attributes.
15788 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15790         * config/aarch64/arm_neon.h
15791         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
15792         (vqtbx<1,2,3,4><q>_s8): Likewise.
15794 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15796         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
15797         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
15798         (add<mode>3): Add type attribute.
15799         (add<mode>3): Likewise.
15800         (usadd<mode>3): Likewise.
15801         (ssadd<mode>3): Likewise.
15802         (sub<mode>3): Likewise.
15803         (sub<mode>3): Likewise.
15804         (ussub<mode>3): Likewise.
15805         (sssub<mode>3): Likewise.
15806         (ssmulsa3): Likewise.
15807         (usmulusa3): Likewise.
15808         (arm_usatsihi): Likewise.
15809         * config/arm/vfp.md
15810         (*movdi_vfp): Add types for all instructions.
15811         (*movdi_vfp_cortexa8): Likewise.
15812         (*movhf_vfp_neon): Likewise.
15813         (*movhf_vfp): Likewise.
15814         (*movdf_vfp): Likewise.
15815         (*thumb2_movdf_vfp): Likewise.
15816         (*thumb2_movdfcc_vfp): Likewise.
15817         * config/arm/arm.md: Add type attribute to all insn patterns.
15818         (*thumb1_adddi3): Add type attribute.
15819         (*arm_adddi3): Likewise.
15820         (*adddi_sesidi_di): Likewise.
15821         (*adddi_zesidi_di): Likewise.
15822         (*thumb1_addsi3): Likewise.
15823         (addsi3_compare0): Likewise.
15824         (*addsi3_compare0_scratch): Likewise.
15825         (*compare_negsi_si): Likewise.
15826         (cmpsi2_addneg): Likewise.
15827         (*addsi3_carryin_<optab>): Likewise.
15828         (*addsi3_carryin_alt2_<optab>): Likewise.
15829         (*addsi3_carryin_clobercc_<optab>): Likewise.
15830         (*subsi3_carryin): Likewise.
15831         (*subsi3_carryin_const): Likewise.
15832         (*subsi3_carryin_compare): Likewise.
15833         (*subsi3_carryin_compare_const): Likewise.
15834         (*arm_subdi3): Likewise.
15835         (*thumb_subdi3): Likewise.
15836         (*subdi_di_zesidi): Likewise.
15837         (*subdi_di_sesidi): Likewise.
15838         (*subdi_zesidi_di): Likewise.
15839         (*subdi_sesidi_di): Likewise.
15840         (*subdi_zesidi_ze): Likewise.
15841         (thumb1_subsi3_insn): Likewise.
15842         (*arm_subsi3_insn): Likewise.
15843         (*anddi3_insn): Likewise.
15844         (*anddi_zesidi_di): Likewise.
15845         (*anddi_sesdi_di): Likewise.
15846         (*ne_zeroextracts): Likewise.
15847         (*ne_zeroextracts): Likewise.
15848         (*ite_ne_zeroextr): Likewise.
15849         (*ite_ne_zeroextr): Likewise.
15850         (*anddi_notdi_di): Likewise.
15851         (*anddi_notzesidi): Likewise.
15852         (*anddi_notsesidi): Likewise.
15853         (andsi_notsi_si): Likewise.
15854         (thumb1_bicsi3): Likewise.
15855         (*iordi3_insn): Likewise.
15856         (*iordi_zesidi_di): Likewise.
15857         (*iordi_sesidi_di): Likewise.
15858         (*thumb1_iorsi3_insn): Likewise.
15859         (*xordi3_insn): Likewise.
15860         (*xordi_zesidi_di): Likewise.
15861         (*xordi_sesidi_di): Likewise.
15862         (*arm_xorsi3): Likewise.
15863         (*andsi_iorsi3_no): Likewise.
15864         (*smax_0): Likewise.
15865         (*smax_m1): Likewise.
15866         (*arm_smax_insn): Likewise.
15867         (*smin_0): Likewise.
15868         (*arm_smin_insn): Likewise.
15869         (*arm_umaxsi3): Likewise.
15870         (*arm_uminsi3): Likewise.
15871         (*minmax_arithsi): Likewise.
15872         (*minmax_arithsi_): Likewise.
15873         (*satsi_<SAT:code>): Likewise.
15874         (arm_ashldi3_1bit): Likewise.
15875         (arm_ashrdi3_1bit): Likewise.
15876         (arm_lshrdi3_1bit): Likewise.
15877         (*arm_negdi2): Likewise.
15878         (*thumb1_negdi2): Likewise.
15879         (*arm_negsi2): Likewise.
15880         (*thumb1_negsi2): Likewise.
15881         (*negdi_extendsid): Likewise.
15882         (*negdi_zero_extend): Likewise.
15883         (*arm_abssi2): Likewise.
15884         (*thumb1_abssi2): Likewise.
15885         (*arm_neg_abssi2): Likewise.
15886         (*thumb1_neg_abss): Likewise.
15887         (one_cmpldi2): Likewise.
15888         (extend<mode>di2): Likewise.
15889         (*compareqi_eq0): Likewise.
15890         (*arm_extendhisi2addsi): Likewise.
15891         (*arm_movdi): Likewise.
15892         (*thumb1_movdi_insn): Likewise.
15893         (*arm_movt): Likewise.
15894         (*thumb1_movsi_insn): Likewise.
15895         (pic_add_dot_plus_four): Likewise.
15896         (pic_add_dot_plus_eight): Likewise.
15897         (tls_load_dot_plus_eight): Likewise.
15898         (*thumb1_movhi_insn): Likewise.
15899         (*thumb1_movsf_insn): Likewise.
15900         (*movdf_soft_insn): Likewise.
15901         (*thumb_movdf_insn): Likewise.
15902         (cbranchsi4_insn): Likewise.
15903         (cbranchsi4_scratch): Likewise.
15904         (*negated_cbranchsi4): Likewise.
15905         (*tbit_cbranch): Likewise.
15906         (*tlobits_cbranch): Likewise.
15907         (*tstsi3_cbranch): Likewise.
15908         (*cbranchne_decr1): Likewise.
15909         (*addsi3_cbranch): Likewise.
15910         (*addsi3_cbranch_scratch): Likewise.
15911         (*arm_cmpdi_insn): Likewise.
15912         (*arm_cmpdi_unsig): Likewise.
15913         (*arm_cmpdi_zero): Likewise.
15914         (*thumb_cmpdi_zero): Likewise.
15915         (*deleted_compare): Likewise.
15916         (*mov_scc): Likewise.
15917         (*mov_negscc): Likewise.
15918         (*mov_notscc): Likewise.
15919         (*cstoresi_eq0_thumb1_insn): Likewise.
15920         (cstoresi_nltu_thumb1): Likewise.
15921         (cstoresi_ltu_thu): Likewise.
15922         (thumb1_addsi3_addgeu): Likewise.
15923         (*arm_jump): Likewise.
15924         (*thumb_jump): Likewise.
15925         (*check_arch2): Likewise.
15926         (arm_casesi_internal): Likewise.
15927         (thumb1_casesi_dispatch): Likewise.
15928         (*arm_indirect_jump): Likewise.
15929         (*thumb1_indirect_jump): Likewise.
15930         (nop): Likewise.
15931         (*and_scc): Likewise.
15932         (*ior_scc): Likewise.
15933         (*compare_scc): Likewise.
15934         (*cond_move): Likewise.
15935         (*cond_arith): Likewise.
15936         (*cond_sub): Likewise.
15937         (*cmp_ite0): Likewise.
15938         (*cmp_ite1): Likewise.
15939         (*cmp_and): Likewise.
15940         (*cmp_ior): Likewise.
15941         (*ior_scc_scc): Likewise.
15942         (*ior_scc_scc_cmp): Likewise.
15943         (*and_scc_scc): Likewise.
15944         (*and_scc_scc_cmp): Likewise.
15945         (*and_scc_scc_nod): Likewise.
15946         (*negscc): Likewise.
15947         (movcond_addsi): Likewise.
15948         (movcond): Likewise.
15949         (*ifcompare_plus_move): Likewise.
15950         (*if_plus_move): Likewise.
15951         (*ifcompare_move_plus): Likewise.
15952         (*if_move_plus): Likewise.
15953         (*ifcompare_arith_arith): Likewise.
15954         (*if_arith_arith): Likewise.
15955         (*ifcompare_arith_move): Likewise.
15956         (*if_arith_move): Likewise.
15957         (*ifcompare_move_arith): Likewise.
15958         (*if_move_arith): Likewise.
15959         (*ifcompare_move_not): Likewise.
15960         (*if_move_not): Likewise.
15961         (*ifcompare_not_move): Likewise.
15962         (*if_not_move): Likewise.
15963         (*ifcompare_shift_move): Likewise.
15964         (*if_shift_move): Likewise.
15965         (*ifcompare_move_shift): Likewise.
15966         (*if_move_shift): Likewise.
15967         (*ifcompare_shift_shift): Likewise.
15968         (*ifcompare_not_arith): Likewise.
15969         (*ifcompare_arith_not): Likewise.
15970         (*if_arith_not): Likewise.
15971         (*ifcompare_neg_move): Likewise.
15972         (*if_neg_move): Likewise.
15973         (*ifcompare_move_neg): Likewise.
15974         (*if_move_neg): Likewise.
15975         (prologue_thumb1_interwork): Likewise.
15976         (*cond_move_not): Likewise.
15977         (*sign_extract_onebit): Likewise.
15978         (*not_signextract_onebit): Likewise.
15979         (stack_tie): Likewise.
15980         (align_4): Likewise.
15981         (align_8): Likewise.
15982         (consttable_end): Likewise.
15983         (consttable_1): Likewise.
15984         (consttable_2): Likewise.
15985         (consttable_4): Likewise.
15986         (consttable_8): Likewise.
15987         (consttable_16): Likewise.
15988         (*thumb1_tablejump): Likewise.
15989         (prefetch): Likewise.
15990         (force_register_use): Likewise.
15991         (thumb_eh_return): Likewise.
15992         (load_tp_hard): Likewise.
15993         (load_tp_soft): Likewise.
15994         (tlscall): Likewise.
15995         (*arm_movtas_ze): Likewise.
15996         (*arm_rev): Likewise.
15997         (*arm_revsh): Likewise.
15998         (*arm_rev16): Likewise.
15999         * config/arm/thumb2.md
16000         (*thumb2_smaxsi3): Likewise.
16001         (*thumb2_sminsi3): Likewise.
16002         (*thumb32_umaxsi3): Likewise.
16003         (*thumb2_uminsi3): Likewise.
16004         (*thumb2_negdi2): Likewise.
16005         (*thumb2_abssi2): Likewise.
16006         (*thumb2_neg_abss): Likewise.
16007         (*thumb2_movsi_insn): Likewise.
16008         (tls_load_dot_plus_four): Likewise.
16009         (*thumb2_movhi_insn): Likewise.
16010         (*thumb2_mov_scc): Likewise.
16011         (*thumb2_mov_negs): Likewise.
16012         (*thumb2_mov_negs): Likewise.
16013         (*thumb2_mov_nots): Likewise.
16014         (*thumb2_mov_nots): Likewise.
16015         (*thumb2_movsicc_): Likewise.
16016         (*thumb2_movsfcc_soft_insn): Likewise.
16017         (*thumb2_indirect_jump): Likewise.
16018         (*thumb2_and_scc): Likewise.
16019         (*thumb2_ior_scc): Likewise.
16020         (*thumb2_ior_scc_strict_it): Likewise.
16021         (*thumb2_cond_move): Likewise.
16022         (*thumb2_cond_arith): Likewise.
16023         (*thumb2_cond_ari): Likewise.
16024         (*thumb2_cond_sub): Likewise.
16025         (*thumb2_negscc): Likewise.
16026         (*thumb2_movcond): Likewise.
16027         (thumb2_casesi_internal): Likewise.
16028         (thumb2_casesi_internal_pic): Likewise.
16029         (*thumb2_alusi3_short): Likewise.
16030         (*thumb2_mov<mode>_shortim): Likewise.
16031         (*thumb2_addsi_short): Likewise.
16032         (*thumb2_subsi_short): Likewise.
16033         (thumb2_addsi3_compare0): Likewise.
16034         (*thumb2_cbz): Likewise.
16035         (*thumb2_cbnz): Likewise.
16036         (*thumb2_one_cmplsi2_short): Likewise.
16037         (*thumb2_negsi2_short): Likewise.
16038         (*orsi_notsi_si): Likewise.
16039         * config/arm/arm1020e.md: Update with new attributes.
16040         * config/arm/arm1026ejs.md: Update with new attributes.
16041         * config/arm/arm1136jfs.md: Update with new attributes.
16042         * config/arm/arm926ejs.md: Update with new attributes.
16043         * config/arm/cortex-a15.md: Update with new attributes.
16044         * config/arm/cortex-a5.md: Update with new attributes.
16045         * config/arm/cortex-a53.md: Update with new attributes.
16046         * config/arm/cortex-a7.md: Update with new attributes.
16047         * config/arm/cortex-a8.md: Update with new attributes.
16048         * config/arm/cortex-a9.md: Update with new attributes.
16049         * config/arm/cortex-m4.md: Update with new attributes.
16050         * config/arm/cortex-r4.md: Update with new attributes.
16051         * config/arm/fa526.md: Update with new attributes.
16052         * config/arm/fa606te.md: Update with new attributes.
16053         * config/arm/fa626te.md: Update with new attributes.
16054         * config/arm/fa726te.md: Update with new attributes.
16056 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16058         * config/aarch64/aarch64-simd.md
16059         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16060         <vwx> iterator to ensure correct register choice.
16061         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16062         (aarch64_sqdmull_n<mode>): Likewise.
16063         (aarch64_sqdmull2_n<mode>_internal): Likewise.
16064         * config/aarch64/arm_neon.h
16065         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16066         (vml<as><q>_n_<su>16): Likewise.
16067         (vml<as>l_high_lane<q>_<su>16): Likewise.
16068         (vml<as>l_high_n_<su>16): Likewise.
16069         (vml<as>l_lane<q>_<su>16): Likewise.
16070         (vml<as>l_n_<su>16): Likewise.
16071         (vmul<q>_lane<q>_<su>16): Likewise.
16072         (vmul<q>_n_<su>16): Likewise.
16073         (vmull_lane<q>_<su>16): Likewise.
16074         (vmull_n_<su>16): Likewise.
16075         (vmull_high_lane<q>_<su>16): Likewise.
16076         (vmull_high_n_<su>16): Likewise.
16077         (vqrdmulh<q>_n_s16): Likewise.
16079 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
16081         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16082         have the correct lane parameter.
16084 2013-09-06  Richard Biener <rguenther@suse.de>
16086         * cfganal.c (control_dependences::~control_dependences):
16087         Properly free all of the vector.
16089 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
16091         PR target/58269
16092         * config/i386/i386.c (ix86_conditional_register_usage):
16093         Proper initialize extended SSE registers.
16095 2013-09-06  Jan Hubicka  <jh@suse.cz>
16097         PR tree-optimization/58311
16098         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16100 2013-09-06  Jan Hubicka  <jh@suse.cz>
16102         * Makefile.in (tree-sra.o): Update dependencies.
16103         * tree-sra.c: Include ipa-utils.h
16104         (scan_function): Use recursive_call_p.
16105         (has_caller_p): New function.
16106         (cgraph_for_node_and_aliases): Count also callers of aliases.
16108 2013-09-06  Jan Hubicka  <jh@suse.cz>
16110         PR middle-end/58094
16111         * cgraph.h (symtab_semantically_equivalent_p): Declare.
16112         * tree-tailcall.c: Include ipa-utils.h.
16113         (find_tail_calls): Use it.
16114         * ipa-pure-const.c (check_call): Likewise.
16115         * ipa-utils.c (recursive_call_p): New function.
16116         * ipa-utils.h (recursive_call_p): Dclare.
16117         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16118         (symtab_semantically_equivalent_p): New function.
16119         * Makefile.in (tree-tailcall.o): Update dependencies.
16121 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
16123         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16124         non-inlinable part.
16126 2013-09-06  Richard Biener  <rguenther@suse.de>
16128         * lto-streamer.h (lto_global_var_decls): Remove.
16129         * Makefile.in (OBJS): Remove lto-symtab.o.
16130         (lto-symtab.o): Remove.
16131         (GTFILES): Remove lto-symtab.c
16132         * lto-symtab.c: Move to lto/
16134 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16136         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16137         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16138         (UNSPEC_FPINT_RINT): New constant definitions.
16139         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16140         definition with 2 attributes.
16141         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16142         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16143         definitions.
16145 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16147         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16148         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16149         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
16150         attribute to "z196_alone".
16151         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16152         "zEC12_simple".
16154 2013-09-06  Richard Biener  <rguenther@suse.de>
16156         * basic-block.h (class control_dependences): New.
16157         * tree-ssa-dce.c (control_dependence_map): Remove.
16158         (cd): New global.
16159         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16160         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16161         find_pdom, find_control_dependence, find_all_control_dependences):
16162         Move to cfganal.c.
16163         (mark_control_dependent_edges_necessary,
16164         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16165         tree_dce_done, perform_tree_ssa_dce): Adjust.
16166         * cfganal.c (set_control_dependence_map_bit,
16167         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16168         find_all_control_dependences): Move from tree-ssa-dce.c and
16169         implement as methods of control_dependences class.
16170         (control_dependences::control_dependences): New.
16171         (control_dependences::~control_dependences): Likewise.
16172         (control_dependences::get_edges_dependent_on): Likewise.
16173         (control_dependences::get_edge): Likewise.
16175 2013-09-04  Jan Hubicka  <jh@suse.cz>
16177         * tree.c (types_same_for_odr): Drop overactive check.
16178         * ipa-devirt.c (hash_type_name): Likewise.
16180 2013-09-04  Jan Hubicka  <jh@suse.cz>
16182         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16183         (analyze_functions): ... here.
16185 2013-09-04  Jan Hubicka  <jh@suse.cz>
16187         PR middle-end/58201
16188         * cgraphunit.c (analyze_functions): Clear AUX fields
16189         after processing; initialize assembler name has.
16191 2013-09-05  Jeff Law  <law@redhat.com>
16193         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16194         from thread_around_empty_block.  Record threading path into PATH.
16195         Recurse if threading through the initial block is successful.
16196         (thread_across_edge): Corresponding changes to slightly simplify.
16198 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16200         * config/aarch64/aarch64.md
16201         (type): Remove frecpe, frecps, frecpx.
16202         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16203         fix to be a TARGET_SIMD instruction.
16204         (aarch64_frecps): Remove.
16205         * config/aarch64/aarch64-simd.md
16206         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16207         (aarch64_frecps<mode>): Handle all float/vector of float modes.
16209 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16210             Sofiane Naci  <sofiane.naci@arm.com>
16212         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16213         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16214         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16215         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16216         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
16217         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16218         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
16219         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
16220         into "clz, "rbit".  Rename "shift" to "shift_imm".
16221         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16222         changes.  Update for attribute changes all occurrences of arlo_* and
16223         shift* types.
16224         * config/arm/arm-fixed.md: Update for attribute changes
16225         all occurrences of arlo_* types.
16226         * config/arm/thumb2.md: Update for attribute changes all occurrences
16227         of arlo_* types.
16228         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
16229         (cortexa7_older_only): Likewise.
16230         (cortexa7_younger):  Likewise.
16231         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16232         (1020alu_shift_op): Likewise.
16233         (1020alu_shift_reg_op): Likewise.
16234         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16235         (alu_shift_op): Likewise.
16236         (alu_shift_reg_op): Likewise.
16237         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16238         (11_alu_shift_op): Likewise.
16239         (11_alu_shift_reg_op): Likewise.
16240         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16241         (9_alu_shift_reg_op): Likewise.
16242         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16243         attribute changes.
16244         (cortex_a15_alu_shift): Likewise.
16245         (cortex_a15_alu_shift_reg): Likewise.
16246         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16247         attribute changes.
16248         (cortex_a5_alu_shift): Likewise.
16249         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16250         attribute changes.
16251         (cortex_a53_alu_shift): Likewise.
16252         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16253         attribute changes.
16254         (cortex_a7_alu_reg): Likewise.
16255         (cortex_a7_alu_shift): Likewise.
16256         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16257         attribute changes.
16258         (cortex_a8_alu_shift): Likewise.
16259         (cortex_a8_alu_shift_reg): Likewise.
16260         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16261         (cortex_a9_dp_shift): Likewise.
16262         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16263         attribute changes.
16264         * config/arm/cortex-r4.md
16265         (cortex_r4_alu): Update for attribute changes.
16266         (cortex_r4_mov): Likewise.
16267         (cortex_r4_alu_shift_reg): Likewise.
16268         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16269         (526_alu_shift_op): Likewise.
16270         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16271         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16272         (626te_alu_shift_op): Likewise.
16273         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16274         (726te_alu_shift_op): Likewise.
16275         (726te_alu_shift_reg_op): Likewise.
16276         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16277         (mp626_alu_shift_op): Likewise.
16278         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16279         (pj4_alu_conds): Likewise.
16280         (pj4_shift): Likewise.
16281         (pj4_shift_conds): Likewise.
16282         (pj4_alu_shift): Likewise.
16283         (pj4_alu_shift_conds): Likewise.
16284         * config/aarch64/aarch64.md: Update for attribute change
16285         all occurrences of arlo_* and shift* types.
16287 2013-09-05  Mike Stump  <mikestump@comcast.net>
16289         * tree.h: Move documentation for tree_function_decl to tree-core.h
16290         with the declaration.
16292 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
16294         PR target/58139
16295         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16296         looking for widest mode.
16298 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
16300         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16302 2013-09-05  Richard Biener  <rguenther@suse.de>
16304         PR tree-optimization/58137
16305         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16306         Do not create vectors of pointers.
16307         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16308         types for the components of the vector initializer.
16309         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16310         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16312 2013-09-05  Martin Jambor  <mjambor@suse.cz>
16314         * ipa-prop.c (remove_described_reference): Accept missing references,
16315         return false if that hppens, otherwise return true.
16316         (cgraph_node_for_jfunc): New function.
16317         (try_decrement_rdesc_refcount): Likewise.
16318         (try_make_edge_direct_simple_call): Use them.
16319         (ipa_edge_removal_hook): Remove references from rdescs.
16320         (ipa_edge_duplication_hook): Clone rdescs and their references
16321         when the new edge has the same caller as the old one.
16322         * cgraph.c (cgraph_resolve_speculation): Remove speculative
16323         reference before removing any edges.
16325 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
16327         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16328         initial store.
16329         * thumb2.md (thumb2_storewb_parisi): New pattern.
16331 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
16333         * config/aarch64/aarch64-option-extensions.def: Add
16334         AARCH64_OPT_EXTENSION of 'crc'.
16335         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16336         (AARCH64_ISA_CRC): Ditto.
16337         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16338         description of the CRC extension.
16340 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16342         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16343         * config/rs6000/linux.h: Ditto.
16344         * alpha/linux.h: Ditto.
16345         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16346         no_c99_libc_has_function.
16347         * config/c6x/uclinux-elf.h: Ditto.
16348         * config/lm32/uclinux-elf.h: Ditto.
16349         * config/m68k/uclinux.h: Ditto.
16350         * config/moxie/uclinux.h: Ditto.
16351         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16352         (crisv32-*-linux*, cris-*-linux*): Ditto.
16353         * config/bfin/bfin.c: Include "tm_p.h".
16355 2013-09-05  Richard Biener  <rguenther@suse.de>
16357         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16358         check for a definition without a basic-block.
16360 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16361             Sofiane Naci <sofiane.naci@arm.com>
16363         * config/aarch64/aarch64.md
16364         (*movti_aarch64): Rename r_2_f and f_2_r.
16365         (*movsf_aarch64): Likewise.
16366         (*movdf_aarch64): Likewise.
16367         (*movtf_aarch64): Likewise.
16368         (aarch64_movdi_<mode>low): Likewise.
16369         (aarch64_movdi_<mode>high): Likewise.
16370         (aarch64_mov<mode>high_di): Likewise.
16371         (aarch64_mov<mode>low_di): Likewise.
16372         (aarch64_movtilow_tilow): Likewise.
16373         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
16374         values to config/arm/types.md
16375         (attribute "conds"): Update for attribute change.
16376         (anddi3_insn): Likewise.
16377         (iordi3_insn): Likewise.
16378         (xordi3_insn): Likewise.
16379         (one_cmpldi2): Likewise.
16380         * config/arm/types.md (type): Add Neon types.
16381         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16382         use "type" attribute.
16383         (movmisalign<mode>_neon_store): Likewise.
16384         (movmisalign<mode>_neon_load): Likewise.
16385         (vec_set<mode>_internal): Likewise.
16386         (vec_setv2di_internal): Likewise.
16387         (vec_extract<mode>): Likewise.
16388         (vec_extractv2di): Likewise.
16389         (add<mode>3_neon): Likewise.
16390         (adddi3_neon): Likewise.
16391         (sub<mode>3_neon): Likewise.
16392         (subdi3_neon): Likewise.
16393         (mul<mode>3_neon): Likewise.
16394         (mul<mode>3add<mode>_neon): Likewise.
16395         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16396         (fma<VCVTF:mode>4)): Likewise.
16397         (fma<VCVTF:mode>4_intrinsic): Likewise.
16398         (fmsub<VCVTF:mode>4)): Likewise.
16399         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16400         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16401         (ior<mode>3): Likewise.
16402         (and<mode>3): Likewise.
16403         (anddi3_neon): Likewise.
16404         (orn<mode>3_neon): Likewise.
16405         (orndi3_neon): Likewise.
16406         (bic<mode>3_neon): Likewise.
16407         (bicdi3_neon): Likewise.
16408         (xor<mode>3): Likewise.
16409         (one_cmpl<mode>2): Likewise.
16410         (abs<mode>2): Likewise.
16411         (neg<mode>2): Likewise.
16412         (umin<mode>3_neon): Likewise.
16413         (umax<mode>3_neon): Likewise.
16414         (smin<mode>3_neon): Likewise.
16415         (smax<mode>3_neon): Likewise.
16416         (vashl<mode>3): Likewise.
16417         (vashr<mode>3_imm): Likewise.
16418         (vlshr<mode>3_imm): Likewise.
16419         (ashl<mode>3_signed): Likewise.
16420         (ashl<mode>3_unsigned): Likewise.
16421         (neon_load_count): Likewise.
16422         (ashldi3_neon_noclobber): Likewise.
16423         (signed_shift_di3_neon): Likewise.
16424         (unsigned_shift_di3_neon): Likewise.
16425         (ashrdi3_neon_imm_noclobber): Likewise.
16426         (lshrdi3_neon_imm_noclobber): Likewise.
16427         (widen_ssum<mode>3): Likewise.
16428         (widen_usum<mode>3): Likewise.
16429         (quad_halves_<code>v4si): Likewise.
16430         (quad_halves_<code>v4sf): Likewise.
16431         (quad_halves_<code>v8hi): Likewise.
16432         (quad_halves_<code>v16qi): Likewise.
16433         (reduc_splus_v2di): Likewise.
16434         (neon_vpadd_internal<mode>): Likewise.
16435         (neon_vpsmin<mode>): Likewise.
16436         (neon_vpsmax<mode>): Likewise.
16437         (neon_vpumin<mode>): Likewise.
16438         (neon_vpumax<mode>): Likewise.
16439         (ss_add<mode>_neon): Likewise.
16440         (us_add<mode>_neon): Likewise.
16441         (ss_sub<mode>_neon): Likewise.
16442         (us_sub<mode>_neon): Likewise.
16443         (neon_vadd<mode>_unspec): Likewise.
16444         (neon_vaddl<mode>): Likewise.
16445         (neon_vaddw<mode>): Likewise.
16446         (neon_vhadd<mode>): Likewise.
16447         (neon_vqadd<mode>): Likewise.
16448         (neon_vaddhn<mode>): Likewise.
16449         (neon_vmul<mode>): Likewise.
16450         (neon_vmla<mode>): Likewise.
16451         (neon_vmlal<mode>): Likewise.
16452         (neon_vmls<mode>): Likewise.
16453         (neon_vmlsl<mode>): Likewise.
16454         (neon_vqdmulh<mode>): Likewise.
16455         (neon_vqdmlal<mode>): Likewise.
16456         (neon_vqdmlsl<mode>): Likewise.
16457         (neon_vmull<mode>): Likewise.
16458         (neon_vqdmull<mode>): Likewise.
16459         (neon_vsub<mode>_unspec): Likewise.
16460         (neon_vsubl<mode>): Likewise.
16461         (neon_vsubw<mode>): Likewise.
16462         (neon_vqsub<mode>): Likewise.
16463         (neon_vhsub<mode>): Likewise.
16464         (neon_vsubhn<mode>): Likewise.
16465         (neon_vceq<mode>): Likewise.
16466         (neon_vcge<mode>): Likewise.
16467         (neon_vcgeu<mode>): Likewise.
16468         (neon_vcgt<mode>): Likewise.
16469         (neon_vcgtu<mode>): Likewise.
16470         (neon_vcle<mode>): Likewise.
16471         (neon_vclt<mode>): Likewise.
16472         (neon_vcage<mode>): Likewise.
16473         (neon_vcagt<mode>): Likewise.
16474         (neon_vtst<mode>): Likewise.
16475         (neon_vabd<mode>): Likewise.
16476         (neon_vabdl<mode>): Likewise.
16477         (neon_vaba<mode>): Likewise.
16478         (neon_vabal<mode>): Likewise.
16479         (neon_vmax<mode>): Likewise.
16480         (neon_vmin<mode>): Likewise.
16481         (neon_vpaddl<mode>): Likewise.
16482         (neon_vpadal<mode>): Likewise.
16483         (neon_vpmax<mode>): Likewise.
16484         (neon_vpmin<mode>): Likewise.
16485         (neon_vrecps<mode>): Likewise.
16486         (neon_vrsqrts<mode>): Likewise.
16487         (neon_vqabs<mode>): Likewise.
16488         (neon_vqneg<mode>): Likewise.
16489         (neon_vcls<mode>): Likewise.
16490         (clz<mode>2): Likewise.
16491         (popcount<mode>2): Likewise.
16492         (neon_vrecpe): Likewise.
16493         (neon_vrsqrte): Likewise.
16494         (neon_vget_lane<mode>_sext_internal): Likewise.
16495         (neon_vget_lane<mode>_zext_internal): Likewise.
16496         (neon_vdup_n<mode>): Likewise.
16497         (neon_vdup_nv2di): Likewise.
16498         (neon_vdpu_lane<mode>_internal): Likewise.
16499         (neon_vswp<mode>): Likewise.
16500         (float<mode><V_cvtto>2): Likewise.
16501         (floatuns<mode><V_cvtto>2): Likewise.
16502         (fix_trunc<mode><V_cvtto>)2): Likewise
16503         (fixuns_trunc<mode><V_cvtto)2): Likewise.
16504         (neon_vcvt<mode>): Likewise.
16505         (neon_vcvtv4sfv4hf): Likewise.
16506         (neon_vcvtv4hfv4sf): Likewise.
16507         (neon_vcvt_n<mode>): Likewise.
16508         (neon_vmovn<mode>): Likewise.
16509         (neon_vqmovn<mode>): Likewise.
16510         (neon_vqmovun<mode>): Likewise.
16511         (neon_vmovl<mode>): Likewise.
16512         (neon_vmul_lane<mode>): Likewise.
16513         (neon_vmull_lane<mode>): Likewise.
16514         (neon_vqdmull_lane<mode>): Likewise.
16515         (neon_vqdmulh_lane<mode>): Likewise.
16516         (neon_vmla_lane<mode>): Likewise.
16517         (neon_vmlal_lane<mode>): Likewise.
16518         (neon_vqdmlal_lane<mode>): Likewise.
16519         (neon_vmls_lane<mode>): Likewise.
16520         (neon_vmlsl_lane<mode>): Likewise.
16521         (neon_vqdmlsl_lane<mode>): Likewise.
16522         (neon_vext<mode>): Likewise.
16523         (neon_vrev64<mode>): Likewise.
16524         (neon_vrev32<mode>): Likewise.
16525         (neon_vrev16<mode>): Likewise.
16526         (neon_vbsl<mode>_internal): Likewise.
16527         (neon_vshl<mode>): Likewise.
16528         (neon_vqshl<mode>): Likewise.
16529         (neon_vshr_n<mode>): Likewise.
16530         (neon_vshrn_n<mode>): Likewise.
16531         (neon_vqshrn_n<mode>): Likewise.
16532         (neon_vqshrun_n<mode>): Likewise.
16533         (neon_vshl_n<mode>): Likewise.
16534         (neon_vqshl_n<mode>): Likewise.
16535         (neon_vqshlu_n<mode>): Likewise.
16536         (neon_vshll_n<mode>): Likewise.
16537         (neon_vsra_n<mode>): Likewise.
16538         (neon_vsri_n<mode>): Likewise.
16539         (neon_vsli_n<mode>): Likewise.
16540         (neon_vtbl1v8qi): Likewise.
16541         (neon_vtbl2v8qi): Likewise.
16542         (neon_vtbl3v8qi): Likewise.
16543         (neon_vtbl4v8qi): Likewise.
16544         (neon_vtbx1v8qi): Likewise.
16545         (neon_vtbx2v8qi): Likewise.
16546         (neon_vtbx3v8qi): Likewise.
16547         (neon_vtbx4v8qi): Likewise.
16548         (neon_vtrn<mode>_internal): Likewise.
16549         (neon_vzip<mode>_internal): Likewise.
16550         (neon_vuzp<mode>_internal): Likewise.
16551         (neon_vld1<mode>): Likewise.
16552         (neon_vld1_lane<mode>): Likewise.
16553         (neon_vld1_dup<mode>): Likewise.
16554         (neon_vld1_dupv2di): Likewise.
16555         (neon_vst1<mode>): Likewise.
16556         (neon_vst1_lane<mode>): Likewise.
16557         (neon_vld2<mode>): Likewise.
16558         (neon_vld2_lane<mode>): Likewise.
16559         (neon_vld2_dup<mode>): Likewise.
16560         (neon_vst2<mode>): Likewise.
16561         (neon_vst2_lane<mode>): Likewise.
16562         (neon_vld3<mode>): Likewise.
16563         (neon_vld3qa<mode>): Likewise.
16564         (neon_vld3qb<mode>): Likewise.
16565         (neon_vld3_lane<mode>): Likewise.
16566         (neon_vld3_dup<mode>): Likewise.
16567         (neon_vst3<mode>): Likewise.
16568         (neon_vst3qa<mode>): Likewise.
16569         (neon_vst3qb<mode>): Likewise.
16570         (neon_vst3_lane<mode>): Likewise.
16571         (neon_vld4<mode>): Likewise.
16572         (neon_vld4qa<mode>): Likewise.
16573         (neon_vld4qb<mode>): Likewise.
16574         (neon_vld4_lane<mode>): Likewise.
16575         (neon_vld4_dup<mode>): Likewise.
16576         (neon_vst4<mode>): Likewise.
16577         (neon_vst4qa<mode>): Likewise.
16578         (neon_vst4qb<mode>): Likewise.
16579         (neon_vst4_lane<mode>): Likewise.
16580         (neon_vec_unpack<US>_lo_<mode>): Likewise.
16581         (neon_vec_unpack<US>_hi_<mode>): Likewise.
16582         (neon_vec_<US>mult_lo_<mode>): Likewise.
16583         (neon_vec_<US>mult_hi_<mode>): Likewise.
16584         (neon_vec_<US>shiftl_<mode>): Likewise.
16585         (neon_unpack<US>_<mode>): Likewise.
16586         (neon_vec_<US>mult_<mode>): Likewise.
16587         (vec_pack_trunc_<mode>): Likewise.
16588         (neon_vec_pack_trunk_<mode>): Likewise.
16589         (neon_vabd<mode>_2): Likewise.
16590         (neon_vabd<mode>_3): Likewise.
16591         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16592         (thumb2_movsi_vfp): Likewise.
16593         (movdi_vfp): Likewise.
16594         (movdi_vfp_cortexa8): Likewise.
16595         (movhf_vfp_neon): Likewise.
16596         (movhf_vfp): Likewiwse.
16597         (movsf_vfp): Likewiwse.
16598         (thumb2_movsf_vfp): Likewiwse.
16599         (movdf_vfp): Likewise.
16600         (thumb2_movdf_vfp): Likewise.
16601         (movsfcc_vfp): Likewise.
16602         (thumb2_movsfcc_vfp): Likewise.
16603         (movdfcc_vfp): Likewise.
16604         (thumb2_movdfcc_vfp): Likewise.
16605         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16606         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16607         (v10_v2c): Likewise.
16608         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16609         attribute change.
16610         (cortex_a15_neon_int_2): Likewise.
16611         (cortex_a15_neon_int_3): Likewise.
16612         (cortex_a15_neon_int_4): Likewise.
16613         (cortex_a15_neon_int_5): Likewise.
16614         (cortex_a15_neon_vqneg_vqabs): Likewise.
16615         (cortex_a15_neon_vmov): Likewise.
16616         (cortex_a15_neon_vaba): Likewise.
16617         (cortex_a15_neon_vaba_qqq): Likewise.
16618         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16619         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16620         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16621         scalar_64_32_long_scalar): Likewise.
16622         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16623         (cortex_a15_neon_mla_qqq_8_16): Likewise.
16624         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16625         lotype_qdd_64_32_long): Likewise.
16626         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16627         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16628         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16629         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16630         (cortex_a15_neon_shift_1): Likewise.
16631         (cortex_a15_neon_shift_2): Likewise.
16632         (cortex_a15_neon_shift_3): Likewise.
16633         (cortex_a15_neon_vshl_ddd): Likewise.
16634         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16635         (cortex_a15_neon_vsra_vrsra): Likewise.
16636         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16637         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16638         (cortex_a15_neon_fp_vmul_ddd): Likewise.
16639         (cortex_a15_neon_fp_vmul_qqd): Likewise.
16640         (cortex_a15_neon_fp_vmla_ddd): Likewise.
16641         (cortex_a15_neon_fp_vmla_qqq): Likewise.
16642         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16643         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16644         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16645         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16646         (cortex_a15_neon_bp_simple): Likewise.
16647         (cortex_a15_neon_bp_2cycle): Likewise.
16648         (cortex_a15_neon_bp_3cycle): Likewise.
16649         (cortex_a15_neon_vld1_1_2_regs): Likewise.
16650         (cortex_a15_neon_vld1_3_4_regs): Likewise.
16651         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16652         (cortex_a15_neon_vld2_4_regs): Likewise.
16653         (cortex_a15_neon_vld3_vld4): Likewise.
16654         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16655         (cortex_a15_neon_vst1_3_4_regs): Likewise.
16656         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16657         (cortex_a15_neon_vst3_vst4): Likewise.
16658         (cortex_a15_neon_vld1_vld2_lane): Likewise.
16659         (cortex_a15_neon_vld3_vld4_lane" 10
16660         (cortex_a15_neon_vst1_vst2_lane): Likewise.
16661         (cortex_a15_neon_vst3_vst4_lane): Likewise.
16662         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16663         (cortex_a15_neon_ldm_2): Likewise.0
16664         (cortex_a15_neon_stm_2): Likewise.
16665         (cortex_a15_neon_mcr): Likewise.
16666         (cortex_a15_neon_mcr_2_mcrr): Likewise.
16667         (cortex_a15_neon_mrc): Likewise.
16668         (cortex_a15_neon_mrrc): Likewise.
16669         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16670         change.
16671         (cortex_a15_alu_shift): Likewise.
16672         (cortex_a15_alu_shift_reg): Likewise.
16673         (cortex_a15_mult32): Likewise.
16674         (cortex_a15_mult64): Likewise.
16675         (cortex_a15_block): Likewise.
16676         (cortex_a15_branch): Likewise.
16677         (cortex_a15_load1): Likewise.
16678         (cortex_a15_load3): Likewise.
16679         (cortex_a15_store1): Likewise.
16680         (cortex_a15_store3): Likewise.
16681         (cortex_a15_call): Likewise.
16682         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16683         (cortex_a5_f2r): Likewise.
16684         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16685         change.
16686         (cortex_a53_f2r): Likewise.
16687         * config/arm/cortex-a7.md
16688         (cortex_a7_branch): Update for attribute change.
16689         (cortex_a7_call): Likewise.
16690         (cortex_a7_alu_imm): Likewise.
16691         (cortex_a7_alu_reg): Likewise.
16692         (cortex_a7_alu_shift): Likewise.
16693         (cortex_a7_mul): Likewise.
16694         (cortex_a7_load1): Likewise.
16695         (cortex_a7_store1): Likewise.
16696         (cortex_a7_load2): Likewise.
16697         (cortex_a7_store2): Likewise.
16698         (cortex_a7_load3): Likewise.
16699         (cortex_a7_store3): Likewise.
16700         (cortex_a7_load4): Likewise.
16701         (cortex_a7_store4): Likewise.
16702         (cortex_a7_fpalu): Likewise.
16703         (cortex_a7_fconst): Likewise.
16704         (cortex_a7_fpmuls): Likewise.
16705         (cortex_a7_neon_mul): Likewise.
16706         (cortex_a7_fpmacs): Likewise.
16707         (cortex_a7_neon_mla: Likewise.
16708         (cortex_a7_fpmuld: Likewise.
16709         (cortex_a7_fpmacd: Likewise.
16710         (cortex_a7_fpfmad: Likewise.
16711         (cortex_a7_fdivs: Likewise.
16712         (cortex_a7_fdivd: Likewise.
16713         (cortex_a7_r2f: Likewise.
16714         (cortex_a7_f2r: Likewise.
16715         (cortex_a7_f_flags: Likewise.
16716         (cortex_a7_f_loads: Likewise.
16717         (cortex_a7_f_loadd: Likewise.
16718         (cortex_a7_f_stores: Likewise.
16719         (cortex_a7_f_stored: Likewise.
16720         (cortex_a7_neon): Likewise.
16721         * config/arm/cortex-a8-neon.md
16722         (cortex_a8_neon_mrc): Update for attribute change.
16723         (cortex_a8_neon_mrrc): Likewise.
16724         (cortex_a8_neon_int_1): Likewise.
16725         (cortex_a8_neon_int_2): Likewise.
16726         (cortex_a8_neon_int_3): Likewise.
16727         (cortex_a8_neon_int_4): Likewise.
16728         (cortex_a8_neon_int_5): Likewise.
16729         (cortex_a8_neon_vqneg_vqabs): Likewise.
16730         (cortex_a8_neon_vmov): Likewise.
16731         (cortex_a8_neon_vaba): Likewise.
16732         (cortex_a8_neon_vaba_qqq): Likewise.
16733         (cortex_a8_neon_vsma): Likewise.
16734         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16735         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16736         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16737         long_scalar): Likewise.
16738         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16739         (cortex_a8_neon_mla_qqq_8_16): Likewise.
16740         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16741         long_scalar_qdd_64_32_long): Likewise.
16742         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16743         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16744         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16745         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16746         (cortex_a8_neon_shift_1): Likewise.
16747         (cortex_a8_neon_shift_2): Likewise.
16748         (cortex_a8_neon_shift_3): Likewise.
16749         (cortex_a8_neon_vshl_ddd): Likewise.
16750         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16751         (cortex_a8_neon_vsra_vrsra): Likewise.
16752         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16753         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16754         (cortex_a8_neon_fp_vsum): Likewise.
16755         (cortex_a8_neon_fp_vmul_ddd): Likewise.
16756         (cortex_a8_neon_fp_vmul_qqd): Likewise.
16757         (cortex_a8_neon_fp_vmla_ddd): Likewise.
16758         (cortex_a8_neon_fp_vmla_qqq): Likewise.
16759         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16760         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16761         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16762         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16763         (cortex_a8_neon_bp_simple): Likewise.
16764         (cortex_a8_neon_bp_2cycle): Likewise.
16765         (cortex_a8_neon_bp_3cycle): Likewise.
16766         (cortex_a8_neon_ldr): Likewise.
16767         (cortex_a8_neon_str): Likewise.
16768         (cortex_a8_neon_vld1_1_2_regs): Likewise.
16769         (cortex_a8_neon_vld1_3_4_regs): Likewise.
16770         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16771         (cortex_a8_neon_vld2_4_regs): Likewise.
16772         (cortex_a8_neon_vld3_vld4): Likewise.
16773         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16774         (cortex_a8_neon_vst1_3_4_regs): Likewise.
16775         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16776         (cortex_a8_neon_vst3_vst4): Likewise.
16777         (cortex_a8_neon_vld1_vld2_lane): Likewise.
16778         (cortex_a8_neon_vld3_vld4_lane): Likewise.
16779         (cortex_a8_neon_vst1_vst2_lane): Likewise.
16780         (cortex_a8_neon_vst3_vst4_lane): Likewise.
16781         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
16782         (cortex_a8_neon_mcr): Likewise.
16783         (cortex_a8_neon_mcr_2_mcrr): Likewise.
16784         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
16785         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
16786         change.
16787         (ca9_neon_mrrc): Likewise.
16788         (cortex_a9_neon_int_1): Likewise.
16789         (cortex_a9_neon_int_2): Likewise.
16790         (cortex_a9_neon_int_3): Likewise.
16791         (cortex_a9_neon_int_4): Likewise.
16792         (cortex_a9_neon_int_5): Likewise.
16793         (cortex_a9_neon_vqneg_vqabs): Likewise.
16794         (cortex_a9_neon_vmov): Likewise.
16795         (cortex_a9_neon_vaba): Likewise.
16796         (cortex_a9_neon_vaba_qqq): Likewise.
16797         (cortex_a9_neon_vsma): Likewise.
16798         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16799         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16800         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16801         long_scalar): Likewise.
16802         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16803         (cortex_a9_neon_mla_qqq_8_16): Likewise.
16804         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16805         long_scalar_qdd_64_32_long): Likewise.
16806         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16807         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16808         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
16809         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16810         (cortex_a9_neon_shift_1): Likewise.
16811         (cortex_a9_neon_shift_2): Likewise.
16812         (cortex_a9_neon_shift_3): Likewise.
16813         (cortex_a9_neon_vshl_ddd): Likewise.
16814         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16815         (cortex_a9_neon_vsra_vrsra): Likewise.
16816         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
16817         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
16818         (cortex_a9_neon_fp_vsum): Likewise.
16819         (cortex_a9_neon_fp_vmul_ddd): Likewise.
16820         (cortex_a9_neon_fp_vmul_qqd): Likewise.
16821         (cortex_a9_neon_fp_vmla_ddd): Likewise.
16822         (cortex_a9_neon_fp_vmla_qqq): Likewise.
16823         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
16824         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
16825         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16826         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16827         (cortex_a9_neon_bp_simple): Likewise.
16828         (cortex_a9_neon_bp_2cycle): Likewise.
16829         (cortex_a9_neon_bp_3cycle): Likewise.
16830         (cortex_a9_neon_ldr): Likewise.
16831         (cortex_a9_neon_str): Likewise.
16832         (cortex_a9_neon_vld1_1_2_regs): Likewise.
16833         (cortex_a9_neon_vld1_3_4_regs): Likewise.
16834         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16835         (cortex_a9_neon_vld2_4_regs): Likewise.
16836         (cortex_a9_neon_vld3_vld4): Likewise.
16837         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16838         (cortex_a9_neon_vst1_3_4_regs): Likewise.
16839         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
16840         (cortex_a9_neon_vst3_vst4): Likewise.
16841         (cortex_a9_neon_vld1_vld2_lane): Likewise.
16842         (cortex_a9_neon_vld3_vld4_lane): Likewise.
16843         (cortex_a9_neon_vst1_vst2_lane): Likewise.
16844         (cortex_a9_neon_vst3_vst4_lane): Likewise.
16845         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
16846         (cortex_a9_neon_mcr): Likewise.
16847         (cortex_a9_neon_mcr_2_mcrr): Likewise.
16848         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
16849         (cortex_a9_fps): Likewise.
16850         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
16851         change.
16852         (cortex_m4_fmuls): Likewise.
16853         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
16854         change.
16855         (cortex_r4_mrc): Likewise.
16856         * config/arm/iterators.md: Update comment referring to neon_type.
16857         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
16858         (iwmmxt_movsi_insn): Likewise.
16859         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
16860         attribute change.
16861         (pj4_core_to_vfp): Likewise.
16862         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
16863         attribute change.
16864         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
16865         (vfp_fstore): Likewise.
16866         * doc/md.texi: Change references to neon_type to refer to type.
16868 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16870         * tree.h (DECL_BUILT_IN): Fix typo in comment.
16872 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
16874         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
16875         lglobl if not weak.
16877 2013-09-04  Easwaran Raman  <eraman@google.com>
16879         PR middle-end/57370
16880         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
16881         (build_and_add_sum): Use it.
16882         (appears_later_in_bb): Simplify code.
16884 2013-09-04  Teresa Johnson  <tejohnson@google.com>
16886         * dumpfile.c (dump_finish): Don't close stderr/stdout.
16888 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
16890         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
16892 2013-09-04  Jan Hubicka  <jh@suse.cz>
16894         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
16895         * ipa-devirt.c: Include diganostic.h
16896         (odr_type_d): Add types and types_set.
16897         (hash_type_name): Work for types with vtables during LTO.
16898         (odr_hasher::remove): Fix comment; destroy types_set.
16899         (add_type_duplicate): New function,
16900         (get_odr_type): Use it.
16901         (dump_type_inheritance_graph): Dump type duplicates.
16902         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
16903         graph.
16904         * tree.c (types_same_for_odr): Give exact answers on types with
16905         virtual tables.
16907 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16909         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
16910         explaining their differences.
16912 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
16914         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
16916 2013-09-03  Jeff Law  <law@redhat.com>
16918         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
16919         when not threading through a joiner block.  Pass joiner/no joiner
16920         state to register_jump_thread.
16921         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
16922         state from argument rather than implying on path length.
16923         Dump the entire jump thread path into debugging dump.
16924         * tree-flow.h (register_jump_thread): Update prototype.
16926 2013-08-29  Xinliang David Li  <davidxl@google.com>
16928         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16929         Remove a trivial gcc_assert.
16931 2013-08-29  Xinliang David Li  <davidxl@google.com>
16933         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
16934         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
16935         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16936         Delay base decl alignment adjustment.
16937         * tree-vectorizer.c (vect_destroy_datarefs): New function.
16938         * tree-vectorizer.h: New data structure.
16939         (set_dr_misalignment): New function.
16940         (dr_misalignment): Ditto.
16941         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
16942         (vectorizable_load): Ditto.
16943         (ensure_base_align): New function.
16944         (vectorize_loops): Add dbg_cnt support.
16945         (execute_vect_slp): Ditto.
16946         * dbgcnt.def: New debug counter.
16947         * Makefile: New dependency.
16949 2013-09-03  Meador Inge  <meadori@codesourcery.com>
16951         Revert:
16953         2013-08-30  Meador Inge  <meadori@codesourcery.com>
16955         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16957 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
16959         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
16960         function descriptor.
16962 2013-09-03  Richard Biener  <rguenther@suse.de>
16964         * tree-affine.c (add_elt_to_tree): Fix association issue,
16965         avoid useless converts and make sure to always return a
16966         properly typed result.
16968 2013-09-03  Richard Biener  <rguenther@suse.de>
16970         PR middle-end/57656
16971         * fold-const.c (negate_expr_p): Fix division case.
16972         (negate_expr): Likewise.
16974 2013-09-03  Richard Biener  <rguenther@suse.de>
16976         PR lto/58285
16977         * tree-streamer-out.c: Include tm.h.
16978         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
16980 2013-09-03  Jan Hubicka  <jh@suse.cz>
16982         * tree-profile.c (tree_profiling): Cleanup CFG when done.
16984 2013-09-03  Alan Modra  <amodra@gmail.com>
16986         * config.gcc (powerpc*-*-linux*): Add support for little-endian
16987         multilibs to big-endian target and vice versa.
16988         * config/rs6000/t-linux64: Use := assignment on all vars.
16989         (MULTILIB_EXTRA_OPTS): Remove fPIC.
16990         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
16991         * config/rs6000/t-linux64le: New file.
16992         * config/rs6000/t-linux64bele: New file.
16993         * config/rs6000/t-linux64lebe: New file.
16995 2013-09-02  Jan Hubicka  <jh@suse.cz>
16997         * ipa-inline-transform.c (inline_transform): Do not
16998         optimize_inline_calls when not optimizing.
17000 2013-09-02  Jan Hubicka  <jh@suse.cz>
17002         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17003         duplicated nodes for assembler names.
17004         * symtab.c (symtab_unregister_node): Do not attempt to unlink
17005         hard registers from assembler name hash.
17007 2013-09-02  Jan Hubicka  <jh@suse.cz>
17009         * ipa-split.c (execute_split_functions): Split externally visible
17010         functions called once.
17012 2013-09-02  Martin Jambor  <mjambor@suse.cz>
17014         PR ipa/58106
17015         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17016         linked list.  When finding the correct duplicate, also consider also
17017         the caller in additon to its inlined_to node.
17019 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
17021         * config/aarch64/aarch64-simd-builtins.def
17022         (dup_lane_scalar): Remove.
17023         * config/aarch64/aarch64-simd.md
17024         (aarch64_simd_dup): Add 'w->w' alternative.
17025         (aarch64_dup_lane<mode>): Allow for VALL.
17026         (aarch64_dup_lane_scalar<mode>): Remove.
17027         (aarch64_dup_lane_<vswap_width_name><mode>): New.
17028         (aarch64_get_lane_signed<mode>): Add w->w altenative.
17029         (aarch64_get_lane_unsigned<mode>): Likewise.
17030         (aarch64_get_lane<mode>): Likewise.
17031         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17032         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17033         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17034         (VCON): Change container of V2SF.
17035         (vswap_width_name): Likewise.
17036         * config/aarch64/arm_neon.h
17037         (__aarch64_vdup_lane_any): New.
17038         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17039         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17040         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17042 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
17044         PR middle-end/56382
17045         * expr.c (emit_move_complex): Do not move complex FP values as parts if
17046         the source or the destination is a single hard register.
17048 2013-09-02  Richard Biener  <rguenther@suse.de>
17050         PR middle-end/57511
17051         * tree-scalar-evolution.c (instantiate_scev_name): Allow
17052         non-linear SCEVs.
17054 2013-09-02  Richard Biener  <rguenther@suse.de>
17056         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17057         arithmetic to sizetype.
17059 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
17061         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17062         Find auto-increment use both before and after candidate.
17064 2013-09-02  Marek Polacek  <polacek@redhat.com>
17066         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17068 2013-09-01  Jan Hubicka  <jh@suse.cz>
17070         * Makefile.in: Add ipa-profile.o
17071         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17072         * cgraph.c (struct cgraph_propagate_frequency_data,
17073         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17074         ipa-profile.c; replace cgraph_ by ipa_ prefix.
17075         * cgraph.h (cgraph_propagate_frequency): Remove.
17076         * ipa-inline-analysis.c: Include ipa-utils.h;
17077         drop duplicated cfgloop.h.
17078         (inline_update_callee_summaries): Update.
17079         * ipa-profile.c: New file.
17080         * ipa-utils.h (ipa_propagate_frequency): Declare.
17081         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17082         data-streamer.h, value-prof.h.
17083         (symtab_remove_unreachable_nodes): Update profile.
17084         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17085         account_time_size, cmp_counts, dump_histogram,
17086         ipa_profile_generate_summary, ipa_profile_write_summary,
17087         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17088         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17089         Move to ipa-profile.c.
17091 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
17093         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17095 2013-09-01  Jan Hubicka  <jh@suse.cz>
17097         * common.opt (fdevirtualize-speculatively): New function.
17098         * invoke.texi (fdevirtualize-speculatively): Document.
17099         * ipa-devirt.c: Include ipa-inline.h
17100         (likely_target_p): New function.
17101         (ipa_devirt): New function.
17102         (gate_ipa_devirt): New function.
17103         (pass_data_ipa_devirt): New static var.
17104         (pass_ipa_devirt): Likewise.
17105         (make_pass_ipa_devirt): New function.
17106         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17107         (common_handle_option): Disable devirtualization when
17108         value range profiling is available.
17109         * passes.def (pass_ipa_devirt): Add.
17110         * timever.def (TV_IPA_DEVIRT): New timevar.
17111         * tree-pass.h (make_pass_ipa_devirt):
17113 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
17115         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17116         include sanitize(undefined).
17118 2013-08-31  Diego Novillo  <dnovillo@google.com>
17120         * Makefile.in (TREE_CORE_H): Define.
17121         (TREE_H): Use.
17122         (GTFILES): Add tree-core.h.
17123         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17124         size the array.
17125         * tree-core.h: New file.
17126         Move all data structures, enum, typedefs, global
17127         declarations and constants from ...
17128         * tree.h: ... here.
17130 2013-08-31  Jan Hubicka  <jh@suse.cz>
17132         * bulitins.c (expand_builtin): Do not early exit for gcov
17133         instrumented functions.
17135 2013-08-31  Marek Polacek  <polacek@redhat.com>
17137         * ubsan.c: Include tm_p.h.
17139 2013-08-31  Jan Hubicka  <jh@suse.cz>
17141         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17142         warning.
17144         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17145         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17146         * tree-cfg.c (verify_gimple_label): ... here.
17147         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17148         (ipa_merge_profiles): New function.
17149         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17150         (lto_input_function_body): Likewise.
17151         * ipa-utils.h (ipa_merge_profiles): Declare.
17152         * lto-streamer.h (lto_input_function_body): Update prototype.
17153         (emit_label_in_global_context_p): Remove.
17154         * lto-symtab.c: Include ipa-utils.h
17155         (lto_cgraph_replace_node): Use ipa_merge_profiles.
17157 2013-08-31  Jan Hubicka  <jh@suse.cz>
17159         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17161 2013-08-31  Jan Hubicka  <jh@suse.cz>
17163         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17165 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
17167         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17168         "cmp" RTX before signed_comparison_operator check to account
17169         for "code" changes.
17171 2013-08-30  Jan Hubicka  <jh@suse.cz>
17173         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17174         (detect_type_change_1): Rename to ...
17175         (detect_type_change): ... this one; early return on non-polymorphic
17176         types.
17177         (detect_type_change_ssa): Add comp_type parameter; update
17178         use of detect_type_change.
17179         (compute_complex_assign_jump_func): Add param_type parameter;
17180         update use of detect_type_change_ssa.
17181         (compute_complex_ancestor_jump_func): Likewise.
17182         (ipa_get_callee_param_type): New function.
17183         (ipa_compute_jump_functions_for_edge): Compute parameter type;
17184         update calls to the jump function computation functions.
17186 2013-08-30  Teresa Johnson  <tejohnson@google.com>
17187             Steven Bosscher  <steven@gcc.gnu.org>
17189         * cfgrtl.c (fixup_new_cold_bb): New routine.
17190         (commit_edge_insertions): Invoke fixup_partitions.
17191         (find_partition_fixes): New routine.
17192         (fixup_partitions): Ditto.
17193         (verify_hot_cold_block_grouping): Update comments.
17194         (rtl_verify_edges): Invoke find_partition_fixes.
17195         (rtl_verify_bb_pointers): Update comments.
17196         (rtl_verify_bb_layout): Ditto.
17197         * basic-block.h (probably_never_executed_edge_p): Declare.
17198         (fixup_partitions): Ditto.
17199         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17200         * bb-reorder.c (sanitize_hot_paths): New function.
17201         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17202         sanitize_hot_paths.
17203         * predict.c (probably_never_executed_edge_p): New routine.
17204         * cfg.c (check_bb_profile): Add partition insanity warnings.
17206 2013-08-30  Meador Inge  <meadori@codesourcery.com>
17208         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17210 2013-08-30  Marek Polacek  <polacek@redhat.com>
17212         * Makefile.in (ubsan.o): Add.
17213         (c-family/c-ubsan.o): Add.
17214         (builtins.o): Add ubsan.h dependency.
17215         * ubsan.h: New file.
17216         * ubsan.c: New file.
17217         * common.opt: Add -fsanitize=undefined option.
17218         (flag_sanitize): Add variable.
17219         (fsanitize=): Add option.  Add Driver.
17220         (fsanitize=thread): Remove option.
17221         (fsanitize=address): Likewise.
17222         (static-libubsan): New option.
17223         * doc/invoke.texi: Document the new flag and -static-libubsan.
17224         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17225         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17226         * builtin-attrs.def (ATTR_COLD): Define.
17227         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17228         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17229         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17230         * flag-types.h (sanitize_code): New enum.
17231         * opts.c (common_handle_option): Parse command line arguments
17232         of -fsanitize=.  Add -fsanitize=unreachable option.
17233         * varasm.c (get_variable_section): Adjust.
17234         (assemble_noswitch_variable): Likewise.
17235         (assemble_variable): Likewise.
17236         (output_constant_def_contents): Likewise.
17237         (categorize_decl_for_section): Likewise.
17238         (place_block_symbol): Likewise.
17239         (output_object_block): Likewise.
17240         * builtins.def: Likewise.
17241         * toplev.c (compile_file): Likewise.
17242         (process_options): Likewise.
17243         * cppbuiltin.c: Likewise.
17244         * tsan.c (tsan_pass): Likewise.
17245         (tsan_gate): Likewise.
17246         (tsan_gate_O0): Likewise.
17247         * cfgexpand.c (partition_stack_vars): Likewise.
17248         (expand_stack_vars): Likewise.
17249         (defer_stack_allocation): Likewise.
17250         (expand_used_vars): Likewise.
17251         * cfgcleanup.c (old_insns_match_p): Likewise.
17252         * asan.c (asan_finish_file): Likewise.
17253         (asan_instrument): Likewise.
17254         (gate_asan): Likewise.
17255         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17256         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17257         (asan_global_struct): Use pointer_sized_int_node instead
17258         calling build_nonstandard_integer_type.
17259         (initialize_sanitizer_builtins): Likewise.
17260         (asan_finish_file): Likewise.
17261         * gcc.c: Document %{%:function(args):X}.
17262         (static_spec_functions): Add sanitize.
17263         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17264         store funcval != NULL there.
17265         (do_spec_1): Adjust handle_spec_function caller.
17266         (handle_braces): Allow %:function(args) as condition.
17267         (sanitize_spec_function): New function.
17268         (ADD_STATIC_LIBUBSAN_LIBS): Define.
17269         (LIBUBSAN_SPEC): Likewise.
17270         (LIBUBSAN_EARLY_SPEC): Likewise.
17271         (SANITIZER_SPEC): Handle libubsan.
17272         (SANITIZER_EARLY_SPEC): Likewise.
17273         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17274         instead of fsanitize=address.
17275         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17276         instead of fsanitize=address*.
17277         * builtins.c: Include ubsan.h.
17278         (fold_builtin_0): Instrument __builtin_unreachable.
17279         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17280         instead of flag_asan.
17281         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17282         (pointer_sized_int_node): Define.
17283         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17285 2013-08-30  Mike Stump  <mikestump@comcast.net>
17287         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17288         with RE patterns.
17290 2013-08-29  Jan Hubicka  <jh@suse.cz>
17292         * cgraph.c (cgraph_function_body_availability): Handle weakref
17293         correctly.
17294         * passes.def: Remove pass_fixup_cfg.
17295         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17296         track when we need to remove functions.
17297         (gate_ipa_inline): Execute inlining always; add comment why.
17298         (pass_data_ipa_inline): Remove TODO_remove_functions.
17299         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17300         do not produce summaries.
17301         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17302         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17303         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17304         constant pool and vtable.
17306 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
17308         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17309         New arm_neon.h's internal macros to specify 64-bit constants.
17310         Avoid using stdint.h's macros.
17312 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17314         * recog.c (verify_changes): Verify that changes[i].old is non-zero
17315         before applying REG_P.
17317 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
17319         PR tree-optimization/58277
17320         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17321         after seeing too many stmts with vdef in between dombb and current
17322         bb, invalidate everything.
17324 2013-08-30  Richard Biener  <rguenther@suse.de>
17326         * fold-const.c (fold_single_bit_test): Fix overflow test.
17328 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
17330         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17331         and which can live in a register, always retrieve the value on entry.
17332         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17333         passed by invisible reference specially.
17334         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17335         (vt_add_function_parameter): Correctly deal with a parameter passed by
17336         invisible reference.
17338 2013-08-30  Jan Hubicka  <jh@suse.cz>
17340         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17342 2013-08-30  Richard Biener  <rguenther@suse.de>
17344         PR tree-optimization/58228
17345         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17346         allow invariant loads in nested loop vectorization.
17348 2013-08-30  Richard Biener  <rguenther@suse.de>
17350         PR tree-optimization/58223
17351         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17352         (has_anti_or_output_dependence): ... this and adjust to also
17353         look for output dependences.
17354         (mark_nodes_having_upstream_mem_writes): Adjust.
17355         (rdg_flag_uses): Likewise.
17357 2013-08-30  Richard Biener  <rguenther@suse.de>
17359         PR tree-optimization/58010
17360         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17361         assert that we have a loop-closed PHI.
17363 2013-08-29  Jan Hubicka  <jh@suse.cz>
17365         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17366         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17367         * lto-section-in.c (lto_free_function_in_decl_state): New function.
17368         (lto_free_function_in_decl_state_for_node): New function.
17370 2013-08-29  Xinliang David Li  <davidxl@google.com>
17372         * loop-unroll.c (report_unroll_peel): Minor message change.
17373         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17374         Emit alignment peeling message with default -fopt-info.
17375         (vect_loop_versioning): Emit loop version info message.
17376         * tree-vectorizer.c (vectorize_loops): Minor message change.
17377         (execute_vect_slp): Ditto.
17379 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
17381         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17382         of the clone from the DECL_NAME of the original function.
17384 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
17386         * passes.c (register_pass): Add overload.
17387         * tree-pass.h (register_pass): Forward declare it.  Add comment.
17389 2013-08-29  Jan Hubicka  <jh@suse.cz>
17391         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17392         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17393         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17394         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17395         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17396         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17397         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17398         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17400 2013-08-29  Teresa Johnson  <tejohnson@google.com>
17402         * dumpfile.c (dump_loc): Output column number.
17403         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17404         * doc/invoke.texi: Document optall -fopt-info flag.
17405         * profile.c (read_profile_edge_counts): Use new dump framework.
17406         (compute_branch_probabilities): Ditto.
17407         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17408         when pass not in any opt group.
17409         * pass_manager.h (pass_manager::get_pass_profile): New method.
17410         * value-prof.c (check_counter): Use new dump framework.
17411         (check_ic_target): Ditto.
17412         * coverage.c (get_coverage_counts): Ditto.
17413         (coverage_init): Setup new dump framework.
17415 2013-08-29  Richard Biener  <rguenther@suse.de>
17417         PR tree-optimization/58246
17418         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17419         handle the dominance check inside a basic-block.
17421 2013-08-29  Richard Biener  <rguenther@suse.de>
17423         PR middle-end/57287
17424         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17425         of default defs that appear in abnormal PHI nodes.
17427 2013-08-29  Richard Biener  <rguenther@suse.de>
17429         PR tree-optimization/57685
17430         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17431         single-use operands to avoid exponential complexity.
17433 2013-08-28  Dehao Chen  <dehao@google.com>
17435         * ipa-inline.c (edge_badness): Fix integer underflow.
17437 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
17439         * gtm-builtins.def (_ITM_free): Declare leaf.
17441 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17443         PR target/58067
17444         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17445         (*tls_local_dynamic_base_64_largepic): Likewise.
17446         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17447         Remove predicate from call operand.
17448         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17449         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17451 2013-08-28  Jeff Law  <law@redhat.com>
17453         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17454         checks for the number of predecessors and successors allowed.
17455         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17456         which require copying a joiner block if there is a request which
17457         is a subpath that requires no joiner block copying.
17459 2013-08-28  Jan Hubicka  <jh@suse.cz>
17461         * lto-streamer-out.c (DFS_write_tree_body): Drop
17462         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17463         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17464         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17465         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17466         Do not read DECL_ERROR_ISSUED.
17467         (unpack_ts_decl_with_vis_value_fields): Do not read
17468         DECL_DEFER_OUTPUT.
17469         (lto_input_ts_binfo_tree_pointers): Do not read
17470         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17471         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17472         write DECL_ERROR_ISSUED..
17473         (pack_ts_decl_with_vis_value_fields): Do not write
17474         DECL_DEFER_OUTPUT.
17475         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17476         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17477         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17478         * tree.h (tree_decl_common): Update comment.
17479         (DECL_ERROR_ISSUED): Remove.
17481 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17483         PR middle-end/58257
17484         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17486 2013-08-28  Jan Hubicka  <jh@suse.cz>
17488         * builtins.def (free): Declare leaf.
17490 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
17492         * gdbhooks.py: New.
17493         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17494         * configure: Regenerate.
17496 2013-08-27  Martin Jambor  <mjambor@suse.cz>
17498         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17499         (ipa_ancestor_jf_data): Likewise.
17500         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17501         (ipa_get_jf_pass_through_type_preserved): New function.
17502         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17503         (ipa_get_jf_ancestor_type_preserved): New function.
17504         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17505         (ipa_get_jf_ancestor_result): Likewise.
17506         (propagate_vals_accross_pass_through): Use
17507         ipa_get_jf_pass_through_result to do all the value mappings.
17508         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17509         type_preserved flag.
17510         (ipa_set_jf_cst_copy): New function.
17511         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17512         (ipa_set_jf_arith_pass_through): Likewise.
17513         (ipa_set_ancestor_jf): Likewise.
17514         (compute_complex_assign_jump_func): Set type_preserved instead of
17515         punting.
17516         (ipa_compute_jump_functions_for_edge): Likewise.
17517         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17518         (update_jump_functions_after_inlining): Update type_preserved.
17519         Explicitely create jump functions when combining one with pass_through.
17520         (ipa_write_jump_function): Stream the type_preserved flags.
17521         (ipa_read_jump_function): Likewise.
17523 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
17524             Aldy Hernandez  <aldyh@redhat.com>
17526         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17527         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17528         * function.h (struct function): Add has_force_vect_loops and
17529         has_simduid_loops.
17530         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17531         * gimple.c (gimple_build_omp_critical): Add KIND argument and
17532         handle it.
17533         * gimple.def: Update CLAUSES comments.
17534         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17535         (gimple_build_omp_for): Add argument to prototype.
17536         (gimple_omp_for_kind): New.
17537         (gimple_omp_for_set_kind): New.
17538         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17539         GOVD_DATA_SHARE_CLASS.
17540         (enum omp_region_type): Add ORT_SIMD.
17541         (gimple_add_tmp_var): Handle ORT_SIMD.
17542         (gimplify_var_or_parm_decl): Same.
17543         (is_gimple_stmt): Same.
17544         (omp_firstprivatize_variable): Same.
17545         (omp_add_variable): Only use splay_tree_insert if lookup failed.
17546         (omp_notice_variable): Handle ORT_SIMD.
17547         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17548         (omp_check_private): Handle ORT_SIMD.
17549         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17550         OMP_CLAUSE_SAFELEN.
17551         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17552         Handle OMP_CLAUSE_LASTPRIVATE.
17553         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17554         OMP_CLAUSE_SAFELEN.
17555         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17556         (gimplify_expr): Handle OMP_SIMD.
17557         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17558         (expand_GOMP_SIMD_VF): New.
17559         (expand_GOMP_SIMD_LAST_LANE): New.
17560         * internal-fn.def (GOMP_SIMD_LANE): New.
17561         (GOMP_SIMD_VF): New.
17562         (GOMP_SIMD_LAST_LANE): New.
17563         * omp-low.c: Include target.h.
17564         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17565         OMP_CLAUSE_SAFELEN.
17566         (check_omp_nesting_restrictions): Same.
17567         (omp_max_vf): New.
17568         (lower_rec_simd_input_clauses): New.
17569         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17570         OMP_CLAUSE_LINEAR.
17571         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17572         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17573         (expand_omp_build_assign): New.
17574         (expand_omp_for_init_counts): New.
17575         (expand_omp_for_init_vars): New.
17576         (extract_omp_for_update_vars): New.
17577         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17578         and rewrite accordingly.
17579         (expand_omp_simd): New.
17580         (expand_omp_for): Use expand_omp_simd.
17581         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17582         (lower_omp_for): Do not lower the body.
17583         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17584         in their own loops.
17585         * tree-flow.h (find_omp_clause): Remove prototype.
17586         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17587         forcing vectorization of the loop, or if flag_tree_vectorize.
17588         (gate_tree_if_conversion): Similarly.
17589         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17590         gimple_build_omp_for.
17591         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17592         * tree-parloops (create_parallel_loop): Pass kind argument to
17593         gimple_build_omp_for.
17594         * tree-pretty-print.c (dump_omp_clause): Add cases for
17595         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17596         OMP_CLAUSE__SIMDUID_.
17597         (dump_generic_node): Handle OMP_SIMD.
17598         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17599         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17600         unroll OMP_SIMD loops here.
17601         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17602         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17603         loop->safelen.
17604         (vect_analyze_data_refs): Handle simd loops.
17605         * tree-vect-loop.c (vectorizable_live_operation): Handle
17606         IFN_GOMP_SIMD*.
17607         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17608         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17609         (vectorizable_load): Same.
17610         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17611         (struct simduid_to_vf): New.
17612         (simduid_to_vf::hash): New.
17613         (simduid_to-vf::equal): New.
17614         (struct simd_array_to_simduid): New.
17615         (simd_array_to_simduid::hash): New.
17616         (simd_array_to_simduid::equal): New.
17617         (adjust_simduid_builtins): New.
17618         (struct note_simd_array_uses_struct): New.
17619         (note_simd_array_uses_cb): New.
17620         (note_simd_array_uses): New.
17621         (vectorize_loops): Handle simd hints and adjust simd builtins
17622         accordingly.
17623         * tree-vectorizer.h (struct _stmt_vec_info): Add
17624         simd_lane_access_p field.
17625         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17626         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17627         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17628         (omp_clause_code_name): Same.
17629         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17630         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17631         * tree.def (OMP_SIMD): New entry.
17632         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17633         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17634         (OMP_CLAUSE_DECL): Adjust range for new clauses.
17635         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17636         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17637         (OMP_CLAUSE_LINEAR_STEP): New.
17638         (OMP_CLAUSE_SAFELEN_EXPR): New.
17639         (OMP_CLAUSE__SIMDUID__DECL): New.
17640         (find_omp_clause): New prototype.
17642 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
17644         * config/i386/driver-i386.c (host_detect_local_cpu): Update
17645         Haswell processor detection.
17647 2013-08-27  Christian Widmer  <shadow@umbrox.de>
17649         PR target/57927
17650         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17651         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
17652         AVX2 capable processors.
17654 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
17656         * config/aarch64/arm_neon.h: Replace all inline asm implementations
17657         of vget_low_* with implementations in terms of other intrinsics.
17659 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
17661         PR middle-end/57219
17662         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17663         values to -1, 0 and 1.
17665 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
17667         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17668         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17669         (<optab><mode>3_insn): Remove.
17670         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17671         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17672         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17673         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17674         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17675         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17676         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17677         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17678         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17679         (ror<mode>3_insn): Likewise.
17680         * config/aarch64/predicates.md (aarch64_simd_register): New.
17682 2013-08-27  Richard Biener  <rguenther@suse.de>
17684         PR tree-optimization/57521
17685         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17686         one edge is non-critical.
17687         (find_phi_replacement_condition): Make sure to use a non-critical
17688         edge.  Cleanup and remove old bug workarounds.
17689         (bb_postdominates_preds): Remove.
17690         (if_convertible_loop_p_1): Do not compute post-dominators.
17691         (combine_blocks): Do not free post-dominators.
17692         (main_tree_if_conversion): Likewise.
17693         (pass_data_if_conversion): Add TODO_verify_ssa.
17695 2013-08-27  DJ Delorie  <dj@redhat.com>
17697         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
17699 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
17701         * function.c (assign_parm_find_data_types): Set passed_mode and
17702         nominal_mode to the TYPE_MODE of nominal_type for the built
17703         pointer type in case of the struct-pass-by-reference.
17705 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17707         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17708         (UINT16_TYPE): Change default to "unsigned int".
17710         * config/avr/avr.opt (mfract-convert-truncate): New option.
17711         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17712         is set, round negative fractional integers according to n1169
17713         when converting to integer types.
17715 2013-08-26  Jan Hubicka  <jh@suse.cz>
17717         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17718         methods can not be called indirectly when their address is not taken.
17720 2013-08-26  Jan Hubicka  <jh@suse.cz>
17722         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17723         ctor_for_folding.
17725 2013-08-26  Jan Hubicka  <jh@suse.cz>
17727         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17728         can be unshared.
17730 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17732         * reload.c (find_valid_class): Allow classes that do not include
17733         FIRST_PSEUDO_REGISTER - 1.
17735 2013-08-26  Jan Hubicka  <jh@suse.cz>
17737         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17738         fix edge count/frequency when speculation failed; fix type check
17739         for the direct call.
17741 2013-08-26  Jan Hubicka  <jh@suse.cz>
17743         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17745 2013-08-26  Jan Hubicka  <jh@suse.cz>
17747         * ipa-inline-transform.c (inline_transform): Be ready for basic block
17748         to be changed by edge redirection.
17750 2013-08-26  Jan Hubicka  <jh@suse.cz>
17752         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17753         formating; add sanity check.
17754         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17755         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17756         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17757         (resolve_noninline_speculation): Update callee keys, too.
17759 2013-08-26  Jan Hubicka  <jh@suse.cz>
17761         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17762         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17764 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17766         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17767         into proper place.
17769 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
17771         * config/i386/i386.c (ix86_debug_options): Remove prototype.
17772         (x86_64_elf_select_section): Ditto.
17773         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17774         arguments.
17775         (ix86_pass_by_reference): Ditto.
17776         (output_set_got): Ditto.
17777         (ix86_unary_operator_ok): Ditto.
17778         (ix86_expand_builtin): Ditto.
17780 2013-08-23  Jan Hubicka  <jh@suse.cz>
17782         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
17784 2013-08-23  Jan Hubicka  <jh@suse.cz>
17786         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
17787         (tree_decl_with_vis): Add FINAL field.
17789 2013-08-23  Jeff Law  <law@redhat.com>
17791         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
17792         the debugging dump when the expression is fully redundant.
17794 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17796         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
17797         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
17798         * pretty-print.c (pp_formatted_text_data): Likewise.
17799         (pp_write_text_to_stream): Likewise.
17800         (pp_write_text_as_dot_label_to_stream): Likewise.
17801         (pp_append_r): Likewise.
17802         (pp_format): Likewise.
17803         (pp_flush): Likewise.
17804         (pp_clear_output_area): Likewise.
17805         (pp_append_text): Likewise.
17806         (pp_formatted_text): Likewise.
17807         (pp_remaining_character_count_for_line): Likewise.
17808         (pp_newline): Likewise.
17809         (pp_character): Likewise.
17810         (output_buffer::~output_buffer): Define.
17811         (pretty_printer::~pretty_printer): Destruct output buffer.
17812         * pretty-print.h (output_buffer::~output_buffer): Declare.
17813         (pretty_printer::~pretty_printer): Declare virtual.
17815 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
17817         PR other/57324
17818         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
17819         HOST_WIDE_INT_M1U): New macros.
17820         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
17821         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
17822         unsigned -1 for lshift.
17823         * cse.c (cse_insn): Likewise.
17824         * double-int.c (rshift_double, lshift_double): Likewise.
17825         * builtins.c (fold_builtin_bitop): Likewise.
17826         * combine.c (force_to_mode): Likewise.
17827         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
17828         * simplify-rtx.c (simplify_const_unary_operation,
17829         simplify_const_binary_operation): Likewise.
17830         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
17831         check_va_list_escapes): Likewise.
17832         * rtlanal.c (nonzero_bits1): Likewise.
17833         * expmed.c (expand_smod_pow2): Likewise.
17834         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
17836 2013-08-23  Jan Hubicka  <jh@suse.cz>
17838         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
17839         as having address taken.
17841 2013-08-23  Jan Hubicka  <jh@suse.cz>
17843         * ipa-utils.h (method_class_type): Declare.
17844         * ipa-devirt.c (method_class_type): Export.
17846         * cgraphunit.c (analyze_functions): Do basic devirtualization;
17847         do not walk base classes of anonymous types.
17849 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
17851         PR rtl-optimization/58220
17852         PR regression/58221
17853         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
17854         handle SEQUENCE insns properly.
17856 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17858         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
17859         definition.
17860         (pp_newline_and_indent): Likewise.
17861         (pp_separate_with): Likewise.
17862         * pretty-print.c (pp_newline_and_flush): Define.
17863         (pp_newline_and_indent): Likewise.
17864         (pp_separate_with): Likewise.
17866 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17868         PR target/58218
17869         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
17870         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
17872 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
17874         * config/i386/predicates.md (ext_sse_reg_operand): New.
17875         * config/i386/i386.md (*movti_internal): Use
17876         predicate to determine if EVEX is needed.
17877         (*movsi_internal): Ditto.
17878         (*movdf_internal): Ditto.
17879         (*movsf_internal): Ditto.
17880         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
17882 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17884         PR tree-optimization/58209
17885         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
17886         (find_tail_calls): Give up for pointer result types if m is non-NULL.
17887         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
17888         emit POINTER_PLUS_EXPR.
17889         (create_tailcall_accumulator): For pointer result type accumulate in
17890         sizetype type.
17892 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
17894         * configure.ac: Add backslashes missing from the last change.
17895         * configure: Regenerate.
17897 2013-08-22  Jan Hubicka  <jh@susue.cz>
17899         * ipa.c (function_and_variable_visibility): First remember function
17900         was global and then make it local.
17902 2013-08-22  Julian Brown  <julian@codesourcery.com>
17904         * configure.ac: Add aarch64 to list of arches which use "nop" in
17905         debug_line test.
17906         * configure: Regenerate.
17908 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17910         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
17911         gnu_libc_has_function.
17912         * config/s390/tpf.h: Likewise.
17914 2013-08-22  Jan Hubicka  <jh@susue.cz>
17916         * timevar.c (validate_phases): Add cast.
17918 2013-08-22  Jan Hubicka  <jh@susue.cz>
17920         * timevar.c (validate_phases): Use size_t for memory.
17921         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
17923 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17925         * pretty-print.h (output_buffer::output_buffer): Declare.
17926         (pretty_printer::pretty_printer): Likewise.
17927         (pp_construct): Remove.
17928         * pretty-print.c (output_buffer::output_buffer): Define.
17929         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
17930         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
17931         (print_gimple_expr): Likewise.
17932         (print_gimple_seq): Likewise.
17933         (gimple_dump_bb): Likewise.
17934         * sched-vis.c (dump_value_slim): Likewise.
17935         (dump_insn_slim): Likewise.
17936         (dump_rtl_slim): Likewise.
17937         (str_pattern_slim): Likewise.
17938         * tree-mudflap.c (mf_varname_tree): Likewise.
17939         * graph.c (print_graph_cfg): Likewise.
17940         (start_graph_dump): Likewise.
17941         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
17942         placement-new.
17943         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
17944         pretty printer initialization.
17945         * coretypes.h (diagnostic_context): Remove superflous type alias
17946         declaration.
17947         (pretty_printer): Likewise.  Declare directly as a class.
17948         (pretty_print_info): Remove declaration as class.
17949         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
17950         and pp_clear_output_area.
17951         (asan_add_global): Likewise.
17953 2013-08-22  Jan Hubicka  <jh@suse.cz>
17955         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
17956         * ipa-utils.h (update_type_inheritance_graph): Declare.
17957         (possible_polymorphic_call_target_p): Declare.
17958         (possible_polymorphic_call_target_p): New.
17959         * ipa-devirt.c: Update toplevel comments.
17960         (cached_polymorphic_call_targets): Move up.
17961         (odr_type_d): Move ID down.
17962         (polymorphic_type_binfo_p): Update comment.
17963         (odr_hasher::remove): Likewise;
17964         (get_odr_type): Set anonymous_namespace.
17965         (dump_odr_type): Dump it.
17966         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
17967         (maybe_record_node): Record node in cached_polymorphic_call_targets.
17968         (record_binfo): Add comment.
17969         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
17970         built.
17971         (devirt_node_removal_hook): Do not iCE when cache is freed.
17972         (possible_polymorphic_call_target_p): New predicate.
17973         (update_type_inheritance_graph): New function.
17975 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17976             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17977             Sergey Lega  <sergey.s.lega@intel.com>
17978             Anna Tikhonova  <anna.tikhonova@intel.com>
17979             Ilya Tocar  <ilya.tocar@intel.com>
17980             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17981             Ilya Verbin  <ilya.verbin@intel.com>
17982             Kirill Yukhin  <kirill.yukhin@intel.com>
17983             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17985         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
17986         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
17987         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
17988         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
17989         (OPTION_MASK_ISA_AVX2_UNSET): Update.
17990         (OPTION_MASK_ISA_AVX512F_UNSET): New.
17991         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
17992         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
17993         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
17994         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
17995         OPT_mavx512pf, OPT_mavx512er cases.
17996         * config/i386/constraints.md (v): New constraint.
17997         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
17998         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
17999         (bit_AVX512CD): New.
18000         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18001         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18002         * config/i386/i386-c.c (ix86_target_macros_internal):
18003         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18004         __AVX512PF__.
18005         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18006         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18007         * config/i386/i386.c (regclass_map, dbx_register_map)
18008         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18009         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18010         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18011         -mavx512pf options.
18012         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18013         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
18014         -mavx512pf options.  Fix formatting.
18015         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18016         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
18017         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18018         -mavx512cd, -mavx512pf options.
18019         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18020         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18021         (ix86_preferred_output_reload_class): Replace SSE_REGS with
18022         ALL_SSE_REGS.
18023         (ix86_hard_regno_mode_ok): Support 512-bit registers.
18024         (ix86_set_reg_reg_cost): Ditto.
18025         (x86_order_regs_for_local_alloc): Ditto.
18026         (MAX_VECT_LEN): Extend to 64-byte.
18027         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18028         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18029         (TARGET_AVX512ER, TARGET_AVX512CD): New.
18030         (BIGGEST_ALIGNMENT): Extend to 512-bits.
18031         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18032         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18033         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18034         (SSE_REG_MODE_P): Support new modes.
18035         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18036         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18037         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18038         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18039         (REG_CLASS_CONTENTS): Add new registers.
18040         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18041         (EXT_REX_SSE_REGNO_P): New.
18042         (HI_REGISTER_NAMES): Add new registers.
18043         * config/i386/i386.md: Define constants for new registers.
18044         (mode): Add new 512-bit modes.
18045         (prefix): Support evex prefix.
18046         (isa): Support avx512f, noavx512f, fma_avx512f.
18047         (ssemodesuffix): Add new 512-bit modes.
18048         (movxi): New.
18049         (*movxi_internal_avx512f): Ditto.
18050         (*movdi_internal): Replace constraint "x" with the new constraint "v".
18051         Support MODE_XI.
18052         (*movsi_internal): Likewise.
18053         (*movdf_internal): Likewise.
18054         (*movsf_internal): Likewise.
18055         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18056         (<code><mode>3): Likewise.
18057         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18058         New.
18059         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18060         with the new constraint "v".
18061         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18062         modes.
18063         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18064         with the new constraint "v".
18065         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18066         (<sse2>_storedqu<avxsizesuffix>): Likewise.
18067         (*<plusminus_insn><mode>3): Likewise.
18068         (<sse>_vm<plusminus_insn><mode>3): Likewise.
18069         (*mul<mode>3): Likewise.
18070         (<sse>_vmmul<mode>3): Likewise.
18071         (<sse>_div<mode>3): Likewise.
18072         (<sse>_vmdiv<mode>3): Likewise.
18073         (<sse>_sqrt<mode>2): Likewise.
18074         (<sse>_vmsqrt<mode>2): Likewise.
18075         (*<code><mode>3_finite): Likewise.
18076         (*<code><mode>3) <smaxmin>: Likewise.
18077         (<sse>_vm<code><mode>3): Likewise.
18078         (*<code><mode>3) <any_logic>: Likewise.
18079         (*fma_fmadd_<mode>): Likewise.
18080         (*fma_fmsub_<mode>): Likewise.
18081         (*fma_fnmadd_<mode>): Likewise.
18082         (*fma_fnmsub_<mode>): Likewise.
18083         (*fma_fmaddsub_<mode>): Likewise.
18084         (*fma_fmsubadd_<mode>): Likewise.
18085         (*fmai_fmadd_<mode>): Likewise.
18086         (*fmai_fmsub_<mode>): Likewise.
18087         (*fmai_fnmadd_<mode>): Likewise.
18088         (*fmai_fnmsub_<mode>): Likewise.
18089         (sse_cvtsi2ss): Likewise.
18090         (sse_cvtsi2ssq): Likewise.
18091         (sse_cvtss2si): Likewise.
18092         (sse_cvtss2si_2): Likewise.
18093         (sse_cvtss2siq): Likewise.
18094         (sse_cvtss2siq_2): Likewise.
18095         (sse_cvttss2si): Likewise.
18096         (sse_cvtss2siq_2): Likewise.
18097         (float<sseintvecmodelower><mode>2): Likewise.
18098         (sse2_cvtsd2si_2): Likewise.
18099         (sse2_cvtsd2siq_2): Likewise.
18100         (*<plusminus_insn><mode>3): Likewise.
18101         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18102         (*<sse4_1_avx2>_mul<mode>3): Likewise.
18103         (ashr<mode>3): Likewise.
18104         (<shift_insn><mode>3): Likewise.
18105         (avx2_<code><mode>3): Likewise.
18106         (*avx2_<code><mode>3): Likewise.
18107         (*andnot<mode>3): Likewise.
18108         (*<code><mode>3) <any_logic>: Likewise.
18109         (abs<mode>2): Likewise.
18110         (avx2_permvar<mode>): Likewise.
18111         (avx2_perm<mode>_1): Likewise.
18112         (*avx_vpermilp<mode>): Likewise.
18113         (avx_vpermilvar<mode>3): Likewise.
18114         (avx2_ashrv<mode>): Likewise.
18115         (avx2_<shift_insn>v<mode>): Likewise.
18116         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18117         -mavx512cd.
18118         * doc/rtl.texi: Document XImode.
18120 2013-08-21  Jeff Law  <law@redhat.com>
18122         * tree-flow.h (register_jump_thread): Pass vector of edges
18123         instead of each important edge.
18124         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18125         thread path into a vector and pass that to register_jump_thread.
18126         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18127         passed in edge vector to the current 3-edge form.
18129         Revert:
18130         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18132         * dce.c (fini_dce): Call df_analyze again just in case
18133         delete_unmarked_insns removed anything.
18135 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
18137         * reload.h (struct reg_equivs): Rename to ..
18138         (struct reg_equivs_s): .. this.
18140 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
18142         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18144 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18146         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18148 2013-08-21  Jeff Law  <law@redhat.com>
18150         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18151         simplify assignments too.  If the RHS collapses to a singleton
18152         range, then return the value for the range.
18154 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18156         * config/i386/sse.md (V16): Rename to...
18157         (VMOVE): this.
18158         (mov<mode>): Update iterator name.
18159         (*mov<mode>_internal): Ditto.
18160         (push<mode>1): Ditto.
18161         (movmisalign<mode>): Ditto.
18163 2013-08-20  Jan Hubicka  <jh@suse.cz>
18165         PR bootstrap/58186
18166         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18167         entry for direct edges.
18168         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18170 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18172         Revert my last two changes, r201865 and r201864:
18174         Revert r201865:
18175         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18177         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18178         instances can own GC refs.
18180         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18181         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18182         (gcc::context::gt_pch_nx): Likewise.
18183         (gcc::context::gt_pch_nx):  Likewise.
18184         * ggc.h (gt_ggc_mx <T>): New.
18185         (gt_pch_nx_with_op <T>): New.
18186         (gt_pch_nx <T>): New.
18187         * passes.c (opt_pass::gt_ggc_mx): New.
18188         (opt_pass::gt_pch_nx): New.
18189         (opt_pass::gt_pch_nx_with_op): New.
18190         (pass_manager::gt_ggc_mx): New.
18191         (pass_manager::gt_pch_nx): New.
18192         (pass_manager::gt_pch_nx_with_op): New.
18193         (pass_manager::operator new): Use
18194         ggc_internal_cleared_alloc_stat rather than xcalloc.
18195         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18196         (pass_manager::gt_ggc_mx): New.
18197         (pass_manager::gt_pch_nx): New.
18198         (pass_manager::gt_pch_nx_with_op): New.
18199         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18200         (opt_pass::operator new): New.
18201         (opt_pass::gt_ggc_mx): New.
18202         (opt_pass::gt_pch_nx): New.
18203         (opt_pass::gt_pch_nx_with_op): New.
18205         Revert r201864:
18206         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18208         * Makefile.in (GTFILES): Add context.h.
18209         * context.c (gcc::context::operator new): New.
18210         (gcc::context::gt_ggc_mx): New.
18211         (gcc::context::gt_pch_nx): New.
18212         (gcc::context::gt_pch_nx): New.
18213         * context.h (gcc::context): Add GTY((user)) marking.
18214         (gcc::context::operator new): New.
18215         (gcc::context::gt_ggc_mx): New.
18216         (gcc::context::gt_pch_nx): New.
18217         (gcc::context::gt_pch_nx): New.
18218         (g): Add GTY marking.
18219         (gt_ggc_mx (gcc::context *)): New.
18220         (gt_pch_nx (gcc::context *)): New.
18221         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18222         void *cookie)): New.
18223         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18225 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18227         * dce.c (fini_dce): Call df_analyze again just in case
18228         delete_unmarked_insns removed anything.
18230 2013-08-20  Teresa Johnson  <tejohnson@google.com>
18232         PR rtl-optimizations/57451
18233         * final.c (reemit_insn_block_notes): Prevent lexical blocks
18234         from crossing split section boundaries.
18236 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
18238         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18239         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18240         with MULTLIB_DEFAULTS.
18242 2013-08-20  Nick Clifton  <nickc@redhat.com>
18244         * target.def (narrow_volatile_bitfield): Note that the default
18245         value is false, not !TARGET_STRICT_ALIGN.
18246         * doc/tm.texi: Regenerate.
18248 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
18250         Fix LIB_SPEC for systems without libpthread.
18252         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18253         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18254         for Android.
18255         * config/i386/linux-common.h: Likewise.
18256         * config/mips/linux-common.h: Likewise.
18258 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18260         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18261         checks.
18263 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18265         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18266         instances can own GC refs.
18268         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18269         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18270         (gcc::context::gt_pch_nx): Likewise.
18271         (gcc::context::gt_pch_nx):  Likewise.
18272         * ggc.h (gt_ggc_mx <T>): New.
18273         (gt_pch_nx_with_op <T>): New.
18274         (gt_pch_nx <T>): New.
18275         * passes.c (opt_pass::gt_ggc_mx): New.
18276         (opt_pass::gt_pch_nx): New.
18277         (opt_pass::gt_pch_nx_with_op): New.
18278         (pass_manager::gt_ggc_mx): New.
18279         (pass_manager::gt_pch_nx): New.
18280         (pass_manager::gt_pch_nx_with_op): New.
18281         (pass_manager::operator new): Use
18282         ggc_internal_cleared_alloc_stat rather than xcalloc.
18283         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18284         (pass_manager::gt_ggc_mx): New.
18285         (pass_manager::gt_pch_nx): New.
18286         (pass_manager::gt_pch_nx_with_op): New.
18287         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18288         (opt_pass::operator new): New.
18289         (opt_pass::gt_ggc_mx): New.
18290         (opt_pass::gt_pch_nx): New.
18291         (opt_pass::gt_pch_nx_with_op): New.
18293 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18295         * Makefile.in (GTFILES): Add context.h.
18296         * context.c (gcc::context::operator new): New.
18297         (gcc::context::gt_ggc_mx): New.
18298         (gcc::context::gt_pch_nx): New.
18299         (gcc::context::gt_pch_nx): New.
18300         * context.h (gcc::context): Add GTY((user)) marking.
18301         (gcc::context::operator new): New.
18302         (gcc::context::gt_ggc_mx): New.
18303         (gcc::context::gt_pch_nx): New.
18304         (gcc::context::gt_pch_nx): New.
18305         (g): Add GTY marking.
18306         (gt_ggc_mx (gcc::context *)): New.
18307         (gt_pch_nx (gcc::context *)): New.
18308         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18309         void *cookie)): New.
18310         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18312 2013-08-20  Alan Modra  <amodra@gmail.com>
18314         PR target/57865
18315         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18316         (rs6000_emit_epilogue): Likewise.
18318 2013-08-19  Dehao Chen  <dehao@google.com>
18320         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18322 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
18323             Jakub Jelinek  <jakub@redhat.com>
18325         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18326         (BUILT_IN_FABSD64): Likewise.
18327         (BUILT_IN_FABSD128): Likewise.
18328         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18329         (fold_builtin_1): Likewise.
18330         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18331         destination and source operands.
18332         (*abstd2_fpr): Likewise.
18333         (*nabstd2_fpr): Likewise.
18335 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
18337         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18338         JUMP_P and INSN_P.
18340 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
18342         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18343         incomplete.
18345 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18347         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18348         * builtins.c (default_libc_has_function): New.
18349         (gnu_libc_has_function): Ditto.
18350         (no_c99_libc_has_function): Ditto.
18351         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18352         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18353         (fold_builtin_sincos): Likewise.
18354         (fold_builtin_cexp): Likewise.
18355         * builtins.def (DEF_C94_BUILTIN): Likewise.
18356         (DEF_C99_BUILTIN): Likewise.
18357         (DEF_C99_C90RES_BUILTIN): Likewise.
18358         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18359         definitions to using this define.
18360         * config/darwin-protos.h (darwin_libc_has_function): New.
18361         * config/darwin.c (darwin_libc_has_function): Ditto.
18362         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18363         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18364         * config/darwin.h: Ditto.
18365         * config/elfos.h: Ditto.
18366         * config/freebsd.h: Ditto.
18367         * config/i386/cygming.h: Ditto.
18368         * config/i386/djgpp.h: Ditto.
18369         * config/i386/i386-interix.h: Ditto.
18370         * config/microblaze/microblaze.h: Ditto.
18371         * config/mmix/mmix.h: Ditto.
18372         * config/gnu-user.h: Ditto.
18373         * config/ia64/hpux.h: Ditto.
18374         * config/pa/pa-hpux.h: Ditto.
18375         * config/pdp11/pdp11.h: Ditto.
18376         * config/picochip/picochip.h: Ditto.
18377         * config/linux.h: Ditto.
18378         * config/netbsd.h: Ditto.
18379         * config/openbsd.h: Ditto.
18380         * config/rs6000/aix43.h: Ditto.
18381         * config/rs6000/aix51.h: Ditto.
18382         * config/rs6000/aix52.h: Ditto.
18383         * config/rs6000/aix53.h: Ditto.
18384         * config/rs6000/aix61.h: Ditto.
18385         * config/rs6000/darwin.h: Ditto.
18386         * config/rs6000/linux.h: Ditto.
18387         * config/rs6000/linux64.h: Ditto.
18388         * config/s390/tpf.h: Ditto.
18389         * config/sol2-10.h: Ditto.
18390         * config/sol2.h: Ditto.
18391         * config/vms/vms.h: Ditto.
18392         * config/vxworks.h: Ditto.
18393         * config/linux-android.c (linux_android_libc_has_function):
18394         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18395         * config/linux-protos.h (linux_android_libc_has_function):
18396         New declaration.
18397         * config/i386/i386.c (ix86_libc_has_function): New.
18398         * config/i386/i386-protos.h
18399         (ix86_libc_has_function): New declaration.
18400         * config/i386/i386.md
18401         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18402         ("isinf<mode>2): Likewise.
18403         * convert.c (convert_to_integer): Using new target hook
18404         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18405         TARGET_C99_FUNCTIONS.
18406         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18407         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18408         * coretypes.h (function_class): New enum for different
18409         classes of functions.
18410         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18411         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18412         (TARGET_HAS_SINCOS): Likewise.
18413         (TARGET_LIBC_HAS_FUNCTION): New.
18414         * doc/tm.texi: Regenerated.
18415         * targhooks.h (default_libc_has_function): New declaration.
18416         (no_c99_libc_has_function): Ditto.
18417         (gnu_libc_has_function): Ditto.
18418         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18419         and TARGET_HAS_SINCOS.
18421 2013-08-18  Jan Hubicka  <jh@suse.cz>
18423         * Makeifle-in (ipa-devirt.o): New.
18424         (GTFILES): Add ipa-utils.h and ipa-devirt.c
18425         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18426         (analyze_functions): Look into possible targets of polymorphic call.
18427         * dumpfile.c (dump_files): Add type-inheritance dump.
18428         * dumpfile.h (TDI_inheritance): New.
18429         * ipa-devirt.c: New file.
18430         * ipa-utils.h (odr_type_d): Forward declare.
18431         (odr_type): New type.
18432         (build_type_inheritance_graph): Declare.
18433         (possible_polymorphic_call_targets): Declare and introduce inline
18434         variant when only edge is pased.
18435         (dump_possible_polymorphic_call_targets): Likewise.
18436         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18437         * tree.c (type_in_anonymous_namespace_p): Break out from ...
18438         (types_same_for_odr): ... here.
18439         * tree.h (type_in_anonymous_namespace_p): Declare.
18441 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
18443         PR tree-optimization/58006
18444         * tree-parloops.c (take_address_of): Don't ICE if get_name
18445         returns NULL.
18446         (eliminate_local_variables_stmt): Remove clobber stmts.
18448 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
18450         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18451         error message is issued for an alias to undefined symbol.
18453 2013-08-18  Jan Hubicka  <jh@suse.cz>
18455         * cgraph.c (cgraph_create_indirect_edge): Discover
18456         polymorphic calls and record basic info into indirect_info.
18457         * gimple-fold.c (gimple_fold_call): When doing BINFO based
18458         devirtualization, ignore objc function calls.
18459         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18460         call with no parm index info.
18461         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18462         * tree.c (virtual_method_call_p): New function.
18463         * tree.h (virtual_method_call_p): Declare.
18465 2013-08-16  Jan Hubicka  <jh@suse.cz>
18467         PR middle-end/58179
18468         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18470 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
18472         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18473         attribute.
18475 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18477         * gengtype.c (type_for_name): Add special-case support for
18478         locating types within the "gcc::" namespace.
18479         (open_base_files): Emit a "using namespace gcc" directive.
18481 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
18483         PR target/58160
18484         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18485         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18487         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18488         array instead of each individual operand as a separate argument.
18489         (emit_fusion_gpr_load): Likewise.
18490         (expand_fusion_gpr_load): Add new function declaration.
18492         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18493         signature to have the operands passed as an array, instead of as
18494         separate arguments.  Allow ZERO_EXTEND to be in the memory
18495         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
18496         depend on the register live/dead flags when peepholes are run.
18497         (expand_fusion_gpr_load): New function to be called from the
18498         peephole2 pass, to change the register that addis sets to be the
18499         target register.
18500         (emit_fusion_gpr_load): Change the calling signature to have the
18501         operands passed as an array, instead of as separate arguments.
18502         Allow ZERO_EXTEND to be in the memory address, and also
18503         SIGN_EXTEND if -mpower8-fusion-sign.
18505         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18506         unspec enumeration.
18507         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18508         adjust the register addis loads up in the peephole2 pass.  Do not
18509         depend on the register live/dead state when the peephole pass is done.
18511 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18513         * gengtype.c (create_user_defined_type): Ensure that the kind
18514         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18515         declaration is seen before the GTY((user)) marking.
18517 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18519         PR target/58105
18520         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18522 2013-08-16  Jan Hubicka  <jh@suse.cz>
18524         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18525         arugment expected_type.
18526         (gimple_fold_call): Use it.
18527         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18528         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18529         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18530         (try_make_edge_direct_virtual_call): Likewise.
18531         * tree.c (obj_type_ref_class): New.
18532         * tree.h (obj_type_ref_class): Use it.
18534 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18536         * sched-vis.c (rtl_slim_pp_initialized): Remove.
18537         (rtl_slim_pp): Likewise.
18538         (init_rtl_slim_pretty_print): Likewise.
18539         (dump_value_slim):  Don't call it.  Use local pretty printer.
18540         (dump_insn_slim): Likewise.
18541         (dump_rtl_slim): Likewise.
18542         (str_pattern_slim): Likewise.
18543         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18544         Simplify.
18546 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
18548         PR tree-optimization/58164
18549         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18550         walk gimple_goto_dest of GIMPLE_GOTO.
18552         PR tree-optimization/58165
18553         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18554         bi_call must be the last stmt in a bb, don't split_block, instead
18555         use fallthru edge from it and give up if there is none.
18556         Release conds vector when returning early.
18558 2013-08-14  Xinliang David Li  <davidxl@google.com>
18560         * config/i386/i386.c (ix86_option_override_internal):
18561         Remove unused variable and field.
18563 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18565         PR target/57949
18566         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18567         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18568         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18569         and Linux, correct BLKmode alignment when 128-bit alignment is
18570         required and compatibility flag is not set.
18571         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18572         for zero-size arguments when compatibility flag is not set.
18574 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18576         PR tree-optimization/58145
18577         * tree-sra.c (build_ref_for_offset): If prev_base has
18578         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18580 2013-08-14  Xinliang David Li  <davidxl@google.com>
18582         * config/i386/i386.c (ix86_option_override_internal):
18583         Fix uninitialized variable error.
18585 2013-08-14  Xinliang David Li  <davidxl@google.com>
18587         * config/i386/i386.opt: Define two new options.
18588         * config/i386/x86-tune.def: Add arch selector field in macros.
18589         * config/i386/i386.h: Adjust macro definition.
18590         * config/i386/i386.c (ix86_option_override_internal):
18591         Refactor the code.
18592         (parse_mtune_ctrl_str): New function.
18593         (set_ix86_tune_features): New function.
18594         (ix86_function_specific_restore): Call the new helper function.
18596 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
18598         PR rtl-optimization/57662
18599         * sel-sched.c (code_motion_process_successors): When the current insn
18600         is removed after the recursive traversal, break from the loop.
18601         Add comments and debug printouts.
18603 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18604             Alexandre Oliva  <aoliva@redhat.com>
18606         PR target/58067
18607         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18608         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18609         there also UNSPEC_PLTOFF.
18611 2013-08-14  Marek Polacek  <polacek@redhat.com>
18613         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18614         NUM_CONDITIONS bit positions.
18616 2013-08-13  Cary Coutant  <ccoutant@google.com>
18618         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18619         (attr_checksum): Hash vector contents instead of pointer.
18620         (attr_checksum_ordered): Likewise.
18622 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
18624         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18625         when Pmode != word_mode.  Add length_address attribute.
18626         (sse3_monitor_<mode>): Merge from sse3_monitor and
18627         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
18628         Pmode != word_mode.  Update insn length attribute.
18629         * config/i386/i386.c (ix86_option_override_internal): Update
18630         ix86_gen_monitor selection for merged sse3_monitor insn.
18632 2013-08-13  Julian Brown  <julian@codesourcery.com>
18634         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18635         perform invalid legitimization on greater-than-word-size modes for
18636         TARGET_E500_DOUBLE.
18638 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18640         * ira.c (setup_class_translate_array): Use aclass instead of cl
18641         for classes not fully covered by allocno classes.
18643 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
18645         PR tree-optimization/57661
18646         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18647         * tree-inline.c (tree_function_versioning): Initialize it.
18648         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18649         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18650         that is not being copied.
18652         PR sanitizer/56417
18653         * asan.c (instrument_strlen_call): Fix typo in comment.
18654         Use char * type even for the lhs of POINTER_PLUS_EXPR.
18656 2013-08-13  Steve Ellcey  <sellcey@mips.com>
18658         * config/mips/mips.md (prefetch): Use lw instead of ld on
18659         loongson in 32bit mode.
18661 2013-08-13  Nick Clifton  <nickc@redhat.com>
18663         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18665 2013-08-13  Jan Hubicka  <jh@suse.cz>
18667         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18668         introduced edge; fix typo in sanity check.
18669         (cgraph_resolve_speculation): Export; improve diagnostic.
18670         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18671         speculation at type mismatch.
18672         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18673         (cgraph_resolve_speculation): Declare.
18674         (symtab_can_be_discarded): New function.
18675         * value-prof.c (gimple_ic_transform): Remove actual transform code.
18676         * ipa-inline-transform.c (speculation_removed): New global var.
18677         (clone_inlined_nodes): See if speculation can be removed.
18678         (inline_call): If speculations was removed, we growths may not match.
18679         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18680         (speculation_useful_p): New function.
18681         (resolve_noninline_speculation): New function.
18682         (inline_small_functions): Resolve useless speculations.
18683         * ipa-inline.h (speculation_useful_p): Declare
18684         * ipa.c (can_replace_by_local_alias): Simplify.
18685         (ipa_profile): Produce speculative calls in non-lto, too;
18686         add simple cost model; produce local aliases.
18688 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
18690         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
18691         PASS_MANAGER_H.
18693 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
18695         * config/i386/i386.c (ix86_function_versions): Use error + inform.
18697 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
18699         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18700         iterator instead of X87MODEF.
18702 2013-08-12  Perez Read  <netfirewall@gmail.com>
18704         PR target/58132
18705         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
18706         operand 0 for intel asm alternative.
18707         (*movabs<mode>_2): Ditto for operand 1.
18709 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
18711         * config/aarch64/arm_none.h
18712         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18714 2013-08-12  Nick Clifton  <nickc@redhat.com>
18716         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18718 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
18720         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18721         expand for QI/HImode operand to produce more effictive code for
18722         unsigned char(short) --> float(double) conversion.
18724 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
18726         * doc/invoke.texi: Mention that -ftls-model does not force the final
18727         model.
18729 2013-08-12  Marek Polacek  <polacek@redhat.com>
18730             Marc Glisse  <marc.glisse@inria.fr>
18732         PR tree-optimization/57980
18733         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18734         when creating -1 constant.
18736 2013-08-10  Jan Hubicka  <jh@suse.cz>
18738         Workaround binutils PR14342.
18739         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18740         (gimple_init_edge_profiler): Likewise.
18741         (gimple_gen_ic_func_profiler): Likewise.
18743 2013-08-09  Jan Hubicka  <jh@suse.cz>
18745         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18747 2013-08-09  Xinliang David Li  <davidxl@google.com>
18749         * config/i386/stringop.def: New file.
18750         * config/i386/stringop.opt: New file.
18751         * config/i386/i386-opts.h: Include stringopt.def.
18752         * config/i386/i386.opt: Include stringopt.opt.
18753         * config/i386/i386.c (ix86_option_override_internal):
18754         Override default size based stringop inline strategies with options.
18755         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18756         New function.
18758 2013-08-09  Jan Hubicka  <jh@suse.cz>
18760         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18762 2013-08-09  Jan Hubicka  <jh@suse.cz>
18764         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18765         CGRAPH_FREQ_MAX.
18766         (dump_cgraph_node): Dump profile-id.
18767         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18768         and common_target_probability.
18769         * lto-cgraph.c (lto_output_edge): Stream common targets.
18770         (lto_output_node): Stream profile ids.
18771         (input_node): Stream profile ids.
18772         (input_edge): Stream common targets.
18773         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18774         * ipa.c: Include value-prof.h
18775         (ipa_profile_generate_summary): Turn indirect call statement histograms
18776         into common targets.
18777         (ipa_profile): Turn common targets into speculative edges.
18779 2013-08-09  Jan Hubicka  <jh@suse.cz>
18781         * cgraph.h (cgraph_node): Add profile_id.
18782         * value-prof.c (cgraph_node_map): Turn into pointer_map.
18783         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
18784         (del_node_map): Update.
18785         (find_func_by_funcdef_no): Replace by ...
18786         (find_func_by_profile_id): ... this one.
18787         (gimple_ic_transform): Do not remove useful histograms when
18788         speculation is not done; dump info when indirect call removal
18789         can happen at LTO.
18790         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
18791         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
18792         (__gcov_indirect_call_profiler_v2): .. this one.
18793         * profile.h (init_node_map): Update.
18794         * coverage.c (coverage_compute_profile_id): New function.
18795         * coverage.h (coverage_compute_profile_id): Declare.
18796         * tree-profile.c (init_ic_make_global_vars): Make
18797         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
18798         (gimple_init_edge_profiler): Update prototype of
18799         __gcov_indirect_call_profiler.
18800         (gimple_gen_ic_func_profiler): Simplify.
18801         (tree_profiling): Use init_node_map
18803 2013-08-09  Jan Hubicka  <jh@suse.cz>
18805         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
18806         non-speculative refs.
18807         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
18808         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
18809         (cgraph_set_call_stmt): Likewise.
18810         (cgraph_create_edge_1): Fix release checking compilatoin;
18811         clear lto_stmt_uid.
18812         (cgraph_free_edge): Free indirect info.
18813         (cgraph_turn_edge_to_speculative): New function.
18814         (cgraph_speculative_call_info): New function.
18815         (cgraph_make_edge_direct): Return direct edge; handle speculation.
18816         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
18817         (dump_cgraph_node): Dump speculation.
18818         (verify_edge_count_and_frequency): Accept speculative edges.
18819         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
18820         (verify_cgraph_node): Handle speculation.
18821         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
18822         (cgraph_set_call_stmt): Update prototype.
18823         (cgraph_make_edge_direct): Update prototype.
18824         (cgraph_speculative_call_info): Declare.
18825         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
18826         to change; update call of ipa_find_references.
18827         * ipa-ref.c (ipa_record_reference): Fix return value; clear
18828         lto_stmt_uid and speculative flags.
18829         (ipa_dump_references): Dump speculation.
18830         (ipa_clone_references): Clone speculative flag.
18831         (ipa_clone_referring): Likewise.
18832         (ipa_clone_ref): New function.
18833         (ipa_find_reference): Look into lto_stmt_uids
18834         (ipa_clear_stmts_in_references): Do not clear speculative calls.
18835         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
18836         (ipa_find_reference): Update declaration.
18837         (ipa_clone_ref): Declare.
18838         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
18839         stream speculative flag.
18840         (lto_output_ref): Stream statements uids and speculation.
18841         (input_ref): Likewise.
18842         (input_edge): Stream speuclation.
18843         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
18844         (cgraph_set_call_stmt_including_clones): Handle speculation.
18845         * ipa-inline.c (heap_edge_removal_hook): New function.
18846         (inline_small_functions): Register it.
18847         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
18848         also initialize refs.
18849         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
18850         edge to change.
18851         (try_make_edge_direct_simple_call): Likewise.
18852         (try_make_edge_direct_simple_call): Likewise.
18853         (update_indirect_edges_after_inlining): Likewise.
18854         (remove_described_reference): Look proper lto_stmt_uid.
18855         (propagate_controlled_uses): Likewise.
18856         (propagate_controlled_uses): Liekwise.
18857         * tree-inline.c (copy_bb): Copy speculative edges.
18858         (redirect_all_calls): New function.
18859         (copy_cfg_body): Do redirection after loop info is updated.
18860         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
18862 2013-08-09  Jan Hubicka  <jh@suse.cz>
18864         * lto-streamer-out.c (output_function): Renumber PHIs.
18865         * lto-streamer-in.c (input_function): Likewise.
18867 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
18869         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
18870         (get_lane_unsigned): Likewise.
18871         (dup_lane_scalar): Likewise.
18872         (get_lane): enable for VALL.
18873         * config/aarch64/aarch64-simd.md
18874         (aarch64_dup_lane_scalar<mode>): Remove.
18875         (aarch64_get_lane_signed<mode>): Likewise.
18876         (aarch64_get_lane_unsigned<mode>): Likewise.
18877         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
18878         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
18879         (aarch64_get_lane<mode>): Enable for all vector modes.
18880         (aarch64_get_lanedi): Remove misleading constraints.
18881         * config/aarch64/arm_neon.h
18882         (__aarch64_vget_lane_any): Define.
18883         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
18884         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
18885         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
18886         * config/aarch64/iterators.md (VDQQH): New.
18887         (VDQQHS): Likewise.
18888         (vwcore): Likewise.
18890 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
18892         * configure.ac: Add GAS check for LEON instructions on SPARC.
18893         * configure: Regenerate.
18894         * config.in: Likewise.
18895         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
18896         sparc*-*-* block.
18897         * config/sparc/sparc.opt (LEON, LEON3): New masks.
18898         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
18899         for LEON or LEON3.
18900         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
18901         (AS_LEON_FLAG): New macro.
18902         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
18903         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
18904         Deal with LEON and LEON3 for the memory model.
18905         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
18906         (atomic_compare_and_swap<mode>_1): Likewise.
18907         (*atomic_compare_and_swap<mode>_1): Likewise.
18909 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18911         * config/arm/neon.md (vcond): Fix floating-point vector
18912         comparisons against 0.
18914 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
18916         * lra-constraints.c (emit_spill_move): Remove assert.
18917         (process_alt_operands): Add more debugging
18918         output.  Increase reject for spilling into memory.  Decrease
18919         reject for reloading scratch.
18920         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
18922 2013-08-08  Steve Ellcey  <sellcey@mips.com>
18924         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
18925         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
18926         micromips incompatible.  Add nan2008.
18927         (MULTILIB_DIRNAMES): Add nan2008.
18928         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18929         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
18930         and micromips incompatible.  Add nan2008.
18931         (MULTILIB_DIRNAMES): Add nan2008.
18932         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18934 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
18936         PR rtl-optimization/58079
18937         * combine.c (combine_simplify_rtx): Avoid using SUBST if
18938         simplify_comparison has widened a comparison with an integer.
18940 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18942         * config/arm/neon.md (movmisalign<mode>): Disable when we
18943         don't allow unaligned accesses.
18944         (*movmisalign<mode>_neon_store): Likewise.
18945         (*movmisalign<mode>_neon_load): Likewise.
18946         (*movmisalign<mode>_neon_store): Likewise.
18947         (*movmisalign<mode>_neon_load): Likewise.
18949 2013-08-08  Jan Hubicka  <jh@suse.cz>
18951         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
18952         (make_pass_rebuild_cgraph_edges): Also clear references.
18953         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
18954         * ipa-inline-transform.c (inline_transform): Remove all references
18955         after inlining.
18956         * cgraphunit.c (expand_function): Remove all references after
18957         expansion.
18958         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
18959         (ipa_find_reference): Rewrite to iterator.
18960         (remove_stmt_references): Likewise.
18961         (ipa_clear_stmts_in_references): New function.
18962         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
18963         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
18964         clear references.
18965         * ipa-split.c (split_function): Remove references in split function.
18967 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18969         PR target/57431
18970         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
18971         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
18973 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18975         PR target/56979
18976         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
18977         suggested mode for the assignment isn't compatible with the
18978         registers required.
18980 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18982         PR target/58065
18983         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
18985 2013-08-07  Xinliang David Li  <davidxl@google.com>
18987         * config/i386/i386.opt: New option -mtune-ctrl=.
18988         * config/i386/x86-tune.def: New file.
18989         * config/i386/i386.h: include x86-tune.def.
18990         * config/i386/i386.c (ix86_option_override_internal):
18991         Parsing -mtune-ctrl= option and set tune features.
18993 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
18995         PR other/12081
18996         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
18997         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
18998         to gen_2arg_fn_t.
19000 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
19002         * rtl.h (update_alignments): Declare.
19003         * final.c (grow_label_align): New function extracted from...
19004         (shorten_branches): ...here.  Call it.
19005         (update_alignments): New function.
19006         * reorg.c (sibling_labels): New variable.
19007         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
19008         the new label along with it onto the sibling_labels vector.
19009         (fill_simple_delay_slots): Adjust call to get_label_before.
19010         (fill_slots_from_thread): Likewise.
19011         (relax_delay_slots): Likewise.
19012         (make_return_insns): Likewise.
19013         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19015 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
19017         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19018         document its semantics.
19019         (diagnostic_report_diagnostic): Adjust accordingly.
19021 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19023         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19024         (sparc_option_override): ...and port to new C++ pass API.
19025         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19027 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
19029         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19031 2013-08-06  Caroline Tice  <cmtice@google.com>
19033         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19034         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19035         * tree-pass.h: Add pass_vtable_verify.
19036         * varasm.c (assemble_variable): Add code to properly set the comdat
19037         section and name for the .vtable_map_vars section.
19038         (assemble_vtyv_preinit_initializer): New function.
19039         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
19040         LINK_ONCE flag.
19041         * output.h: Add function decl for assemble_vtv_preinit_initializer.
19042         * vtable-verify.c: New file.
19043         * vtable-verify.h: New file.
19044         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19045         initialiation levels.
19046         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19047         * passes.def: Insert pass_vtable_verify.
19048         * aclocal.m4: Reorder includes.
19049         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
19050         -fvtv-counts options.
19051         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19052         as appropriate, if -fvtable-verify=... is used.
19053         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19054         -fvtable-verify=... is used.
19055         * Makefile.in (OBJS):  Add vtable-verify.o to list.
19056         (vtable-verify.o): Add new build rule.
19057         (GTFILES): Add vtable-verify.c to list.
19058         * common.opt (fvtable-verify=): New flag.
19059         (vtv_priority): Values for fvtable-verify= flag.
19060         (fvtv-counts): New flag.
19061         (fvtv-debug): New flag.
19062         * tree.h (save_vtable_map_decl): New extern function decl.
19064 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19066         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19067         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19068         (pass_data_rl78_devirt): ...new pass_data instance and...
19069         (make_pass_rl78_devirt): ...new function.
19070         (rl78_asm_file_start): Port pass registration to new C++ API.
19072 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19074         * coretypes.h (rtl_opt_pass): Add.
19075         (gcc::context): Add.
19076         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19077         (epiphany_init): Port to new C++ pass API.
19078         (epiphany_optimize_mode_switching): Likewise.
19079         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19080         (pass_manager::get_pass_mode_switching): New.
19081         (pass_manager::get_pass_peephole2): New.
19082         * mode-switching.c (pass_mode_switching): Add clone method.
19083         * recog.c (pass_peephole2): Add clone method.
19084         (pass_split_all_insns): Add clone method.
19086 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
19088         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19089         (mips_option_override): ...here, porting to new C++ API for passes.
19091 2013-08-06  Jan Hubicka  <jh@suse.cz>
19093         * cgraph.c (cgraph_get_body): New function based on lto.c
19094         implementation.
19095         * cgraph.h (cgraph_get_body): Declare.
19096         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19097         LTO paths.
19098         * cgraphunit.c (expand_function): Get body prior expanding.
19099         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19100         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19101         really need.
19102         * passes.c (do_per_function_toporder): Get body.
19103         * tree-inline.c (expand_call_inline): Get body prior inlining it.
19104         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19106 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19108         PR fortran/57987
19109         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19110         is not re-finalized.  Rename second parameter to no_collect.
19112 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19114         PR middle-end/58041
19115         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19116         MEM_REF has proper alignment information.
19118 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
19120         PR other/12081
19121         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19122         class insn_gen_fn.
19123         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19124         rtx (*) (rtx, ...) with insn_gen_fn.
19125         * genoutput.c (output_insn_data): Cast gen_? function pointers to
19126         insn_gen_fn::stored_funcptr.  Add initializer braces.
19128 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19130         Rewrite how instances of passes are cloned to remove assumptions
19131         about their sizes (thus allowing pass subclasses to have
19132         additional data fields, albeit non-GC-managed ones at this point).
19134         * passes.c (make_pass_instance): Now that passes have clone
19135         methods, rewrite this function to eliminate XNEW and memcpy
19136         calls that used hardcoded sizes.  Since this function no longer
19137         creates pass instances, rename it to...
19138         (add_pass_instance): ...this.  Document the old way that passes were
19139         numbered and flagged, and rework this function to continue using it.
19140         (next_pass_1): Add an initial_pass argument for use by
19141         add_pass_instance.
19142         (position_pass): When adding multiple instances of a pass, use
19143         the pass's clone method, rather than relying on the XNEW/memcpy
19144         within the former make_pass_instance (now add_pass_instance).
19145         (pass_manager::pass_manager): When invoking next_pass_1, also supply
19146         the initial instance of the current pass within the pass manager.
19148 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19150         This is the automated part of the conversion of passes from C
19151         structs to C++ classes.
19153         Patch autogenerated by refactor_passes.py from
19154         https://github.com/davidmalcolm/gcc-refactoring-scripts
19155         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19157         * asan.c (pass_asan): Convert from a global struct to a subclass of
19158         gimple_opt_pass along with...
19159         (pass_data_asan): ...new pass_data instance and...
19160         (make_pass_asan): ...new function.
19161         (pass_asan_O0): Convert from a global struct to a subclass of
19162         gimple_opt_pass along with...
19163         (pass_data_asan_O0): ...new pass_data instance and...
19164         (make_pass_asan_O0): ...new function.
19165         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19166         subclass of rtl_opt_pass along with...
19167         (pass_data_inc_dec): ...new pass_data instance and...
19168         (make_pass_inc_dec): ...new function.
19169         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19170         a subclass of rtl_opt_pass along with...
19171         (pass_data_reorder_blocks): ...new pass_data instance and...
19172         (make_pass_reorder_blocks): ...new function.
19173         (pass_duplicate_computed_gotos): Convert from a global struct to a
19174         subclass of rtl_opt_pass along with...
19175         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19176         (make_pass_duplicate_computed_gotos): ...new function.
19177         (pass_partition_blocks): Convert from a global struct to a subclass of
19178         rtl_opt_pass along with...
19179         (pass_data_partition_blocks): ...new pass_data instance and...
19180         (make_pass_partition_blocks): ...new function.
19181         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19182         struct to a subclass of rtl_opt_pass along with...
19183         (pass_data_branch_target_load_optimize1): ...new pass_data instance
19184         and...
19185         (make_pass_branch_target_load_optimize1): ...new function.
19186         (pass_branch_target_load_optimize2): Convert from a global struct to a
19187         subclass of rtl_opt_pass along with...
19188         (pass_data_branch_target_load_optimize2): ...new pass_data instance
19189         and...
19190         (make_pass_branch_target_load_optimize2): ...new function.
19191         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19192         of rtl_opt_pass along with...
19193         (pass_data_jump): ...new pass_data instance and...
19194         (make_pass_jump): ...new function.
19195         (pass_jump2): Convert from a global struct to a subclass of
19196         rtl_opt_pass along with...
19197         (pass_data_jump2): ...new pass_data instance and...
19198         (make_pass_jump2): ...new function.
19199         * cfgexpand.c (pass_expand): Convert from a global struct to a
19200         subclass of rtl_opt_pass along with...
19201         (pass_data_expand): ...new pass_data instance and...
19202         (make_pass_expand): ...new function.
19203         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19204         of rtl_opt_pass along with...
19205         (pass_data_free_cfg): ...new pass_data instance and...
19206         (make_pass_free_cfg): ...new function.
19207         (pass_into_cfg_layout_mode): Convert from a global struct to a
19208         subclass of rtl_opt_pass along with...
19209         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19210         (make_pass_into_cfg_layout_mode): ...new function.
19211         (pass_outof_cfg_layout_mode): Convert from a global struct to a
19212         subclass of rtl_opt_pass along with...
19213         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19214         (make_pass_outof_cfg_layout_mode): ...new function.
19215         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19216         struct to a subclass of gimple_opt_pass along with...
19217         (pass_data_build_cgraph_edges): ...new pass_data instance and...
19218         (make_pass_build_cgraph_edges): ...new function.
19219         (pass_rebuild_cgraph_edges): Convert from a global struct to a
19220         subclass of gimple_opt_pass along with...
19221         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19222         (make_pass_rebuild_cgraph_edges): ...new function.
19223         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19224         subclass of gimple_opt_pass along with...
19225         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19226         and...
19227         (make_pass_remove_cgraph_callee_edges): ...new function.
19228         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19229         struct to a subclass of rtl_opt_pass along with...
19230         (pass_data_stack_adjustments): ...new pass_data instance and...
19231         (make_pass_stack_adjustments): ...new function.
19232         * combine.c (pass_combine): Convert from a global struct to a subclass
19233         of rtl_opt_pass along with...
19234         (pass_data_combine): ...new pass_data instance and...
19235         (make_pass_combine): ...new function.
19236         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19237         global struct to a subclass of rtl_opt_pass along with...
19238         (pass_data_compare_elim_after_reload): ...new pass_data instance
19239         and...
19240         (make_pass_compare_elim_after_reload): ...new function.
19241         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19242         of rtl_opt_pass along with...
19243         (pass_data_rtl_cprop): ...new pass_data instance and...
19244         (make_pass_rtl_cprop): ...new function.
19245         * cse.c (pass_cse): Convert from a global struct to a subclass of
19246         rtl_opt_pass along with...
19247         (pass_data_cse): ...new pass_data instance and...
19248         (make_pass_cse): ...new function.
19249         (pass_cse2): Convert from a global struct to a subclass of
19250         rtl_opt_pass along with...
19251         (pass_data_cse2): ...new pass_data instance and...
19252         (make_pass_cse2): ...new function.
19253         (pass_cse_after_global_opts): Convert from a global struct to a
19254         subclass of rtl_opt_pass along with...
19255         (pass_data_cse_after_global_opts): ...new pass_data instance and...
19256         (make_pass_cse_after_global_opts): ...new function.
19257         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19258         of rtl_opt_pass along with...
19259         (pass_data_ud_rtl_dce): ...new pass_data instance and...
19260         (make_pass_ud_rtl_dce): ...new function.
19261         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19262         rtl_opt_pass along with...
19263         (pass_data_fast_rtl_dce): ...new pass_data instance and...
19264         (make_pass_fast_rtl_dce): ...new function.
19265         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19266         a subclass of rtl_opt_pass along with...
19267         (pass_data_df_initialize_opt): ...new pass_data instance and...
19268         (make_pass_df_initialize_opt): ...new function.
19269         (pass_df_initialize_no_opt): Convert from a global struct to a
19270         subclass of rtl_opt_pass along with...
19271         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19272         (make_pass_df_initialize_no_opt): ...new function.
19273         (pass_df_finish): Convert from a global struct to a subclass of
19274         rtl_opt_pass along with...
19275         (pass_data_df_finish): ...new pass_data instance and...
19276         (make_pass_df_finish): ...new function.
19277         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19278         rtl_opt_pass along with...
19279         (pass_data_rtl_dse1): ...new pass_data instance and...
19280         (make_pass_rtl_dse1): ...new function.
19281         (pass_rtl_dse2): Convert from a global struct to a subclass of
19282         rtl_opt_pass along with...
19283         (pass_data_rtl_dse2): ...new pass_data instance and...
19284         (make_pass_rtl_dse2): ...new function.
19285         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19286         subclass of rtl_opt_pass along with...
19287         (pass_data_dwarf2_frame): ...new pass_data instance and...
19288         (make_pass_dwarf2_frame): ...new function.
19289         * except.c (pass_set_nothrow_function_flags): Convert from a global
19290         struct to a subclass of rtl_opt_pass along with...
19291         (pass_data_set_nothrow_function_flags): ...new pass_data instance
19292         and...
19293         (make_pass_set_nothrow_function_flags): ...new function.
19294         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19295         subclass of rtl_opt_pass along with...
19296         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19297         and...
19298         (make_pass_convert_to_eh_region_ranges): ...new function.
19299         * final.c (pass_compute_alignments): Convert from a global struct to a
19300         subclass of rtl_opt_pass along with...
19301         (pass_data_compute_alignments): ...new pass_data instance and...
19302         (make_pass_compute_alignments): ...new function.
19303         (pass_final): Convert from a global struct to a subclass of
19304         rtl_opt_pass along with...
19305         (pass_data_final): ...new pass_data instance and...
19306         (make_pass_final): ...new function.
19307         (pass_shorten_branches): Convert from a global struct to a subclass of
19308         rtl_opt_pass along with...
19309         (pass_data_shorten_branches): ...new pass_data instance and...
19310         (make_pass_shorten_branches): ...new function.
19311         (pass_clean_state): Convert from a global struct to a subclass of
19312         rtl_opt_pass along with...
19313         (pass_data_clean_state): ...new pass_data instance and...
19314         (make_pass_clean_state): ...new function.
19315         * function.c (pass_instantiate_virtual_regs): Convert from a global
19316         struct to a subclass of rtl_opt_pass along with...
19317         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19318         (make_pass_instantiate_virtual_regs): ...new function.
19319         (pass_leaf_regs): Convert from a global struct to a subclass of
19320         rtl_opt_pass along with...
19321         (pass_data_leaf_regs): ...new pass_data instance and...
19322         (make_pass_leaf_regs): ...new function.
19323         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19324         subclass of rtl_opt_pass along with...
19325         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19326         and...
19327         (make_pass_thread_prologue_and_epilogue): ...new function.
19328         (pass_match_asm_constraints): Convert from a global struct to a
19329         subclass of rtl_opt_pass along with...
19330         (pass_data_match_asm_constraints): ...new pass_data instance and...
19331         (make_pass_match_asm_constraints): ...new function.
19332         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19333         subclass of rtl_opt_pass along with...
19334         (pass_data_rtl_fwprop): ...new pass_data instance and...
19335         (make_pass_rtl_fwprop): ...new function.
19336         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19337         rtl_opt_pass along with...
19338         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19339         (make_pass_rtl_fwprop_addr): ...new function.
19340         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19341         rtl_opt_pass along with...
19342         (pass_data_rtl_pre): ...new pass_data instance and...
19343         (make_pass_rtl_pre): ...new function.
19344         (pass_rtl_hoist): Convert from a global struct to a subclass of
19345         rtl_opt_pass along with...
19346         (pass_data_rtl_hoist): ...new pass_data instance and...
19347         (make_pass_rtl_hoist): ...new function.
19348         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19349         subclass of gimple_opt_pass along with...
19350         (pass_data_lower_cf): ...new pass_data instance and...
19351         (make_pass_lower_cf): ...new function.
19352         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19353         from a global struct to a subclass of gimple_opt_pass along with...
19354         (pass_data_strength_reduction): ...new pass_data instance and...
19355         (make_pass_strength_reduction): ...new function.
19356         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19357         of rtl_opt_pass along with...
19358         (pass_data_rtl_ifcvt): ...new pass_data instance and...
19359         (make_pass_rtl_ifcvt): ...new function.
19360         (pass_if_after_combine): Convert from a global struct to a subclass of
19361         rtl_opt_pass along with...
19362         (pass_data_if_after_combine): ...new pass_data instance and...
19363         (make_pass_if_after_combine): ...new function.
19364         (pass_if_after_reload): Convert from a global struct to a subclass of
19365         rtl_opt_pass along with...
19366         (pass_data_if_after_reload): ...new pass_data instance and...
19367         (make_pass_if_after_reload): ...new function.
19368         * init-regs.c (pass_initialize_regs): Convert from a global struct to
19369         a subclass of rtl_opt_pass along with...
19370         (pass_data_initialize_regs): ...new pass_data instance and...
19371         (make_pass_initialize_regs): ...new function.
19372         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19373         of ipa_opt_pass_d along with...
19374         (pass_data_ipa_cp): ...new pass_data instance and...
19375         (make_pass_ipa_cp): ...new function.
19376         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19377         global struct to a subclass of gimple_opt_pass along with...
19378         (pass_data_inline_parameters): ...new pass_data instance and...
19379         (make_pass_inline_parameters): ...new function.
19380         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19381         subclass of gimple_opt_pass along with...
19382         (pass_data_early_inline): ...new pass_data instance and...
19383         (make_pass_early_inline): ...new function.
19384         (pass_ipa_inline): Convert from a global struct to a subclass of
19385         ipa_opt_pass_d along with...
19386         (pass_data_ipa_inline): ...new pass_data instance and...
19387         (make_pass_ipa_inline): ...new function.
19388         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19389         struct to a subclass of gimple_opt_pass along with...
19390         (pass_data_local_pure_const): ...new pass_data instance and...
19391         (make_pass_local_pure_const): ...new function.
19392         (pass_ipa_pure_const): Convert from a global struct to a subclass of
19393         ipa_opt_pass_d along with...
19394         (pass_data_ipa_pure_const): ...new pass_data instance and...
19395         (make_pass_ipa_pure_const): ...new function.
19396         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19397         to a subclass of ipa_opt_pass_d along with...
19398         (pass_data_ipa_reference): ...new pass_data instance and...
19399         (make_pass_ipa_reference): ...new function.
19400         * ipa-split.c (pass_split_functions): Convert from a global struct to
19401         a subclass of gimple_opt_pass along with...
19402         (pass_data_split_functions): ...new pass_data instance and...
19403         (make_pass_split_functions): ...new function.
19404         (pass_feedback_split_functions): Convert from a global struct to a
19405         subclass of gimple_opt_pass along with...
19406         (pass_data_feedback_split_functions): ...new pass_data instance and...
19407         (make_pass_feedback_split_functions): ...new function.
19408         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19409         global struct to a subclass of simple_ipa_opt_pass along with...
19410         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19411         instance and...
19412         (make_pass_ipa_function_and_variable_visibility): ...new function.
19413         (pass_ipa_free_inline_summary): Convert from a global struct to a
19414         subclass of simple_ipa_opt_pass along with...
19415         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19416         (make_pass_ipa_free_inline_summary): ...new function.
19417         (pass_ipa_whole_program_visibility): Convert from a global struct to a
19418         subclass of ipa_opt_pass_d along with...
19419         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19420         and...
19421         (make_pass_ipa_whole_program_visibility): ...new function.
19422         (pass_ipa_profile): Convert from a global struct to a subclass of
19423         ipa_opt_pass_d along with...
19424         (pass_data_ipa_profile): ...new pass_data instance and...
19425         (make_pass_ipa_profile): ...new function.
19426         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19427         ipa_opt_pass_d along with...
19428         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19429         (make_pass_ipa_cdtor_merge): ...new function.
19430         * ira.c (pass_ira): Convert from a global struct to a subclass of
19431         rtl_opt_pass along with...
19432         (pass_data_ira): ...new pass_data instance and...
19433         (make_pass_ira): ...new function.
19434         (pass_reload): Convert from a global struct to a subclass of
19435         rtl_opt_pass along with...
19436         (pass_data_reload): ...new pass_data instance and...
19437         (make_pass_reload): ...new function.
19438         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19439         subclass of rtl_opt_pass along with...
19440         (pass_data_cleanup_barriers): ...new pass_data instance and...
19441         (make_pass_cleanup_barriers): ...new function.
19442         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19443         of rtl_opt_pass along with...
19444         (pass_data_loop2): ...new pass_data instance and...
19445         (make_pass_loop2): ...new function.
19446         (pass_rtl_loop_init): Convert from a global struct to a subclass of
19447         rtl_opt_pass along with...
19448         (pass_data_rtl_loop_init): ...new pass_data instance and...
19449         (make_pass_rtl_loop_init): ...new function.
19450         (pass_rtl_loop_done): Convert from a global struct to a subclass of
19451         rtl_opt_pass along with...
19452         (pass_data_rtl_loop_done): ...new pass_data instance and...
19453         (make_pass_rtl_loop_done): ...new function.
19454         (pass_rtl_move_loop_invariants): Convert from a global struct to a
19455         subclass of rtl_opt_pass along with...
19456         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19457         (make_pass_rtl_move_loop_invariants): ...new function.
19458         (pass_rtl_unswitch): Convert from a global struct to a subclass of
19459         rtl_opt_pass along with...
19460         (pass_data_rtl_unswitch): ...new pass_data instance and...
19461         (make_pass_rtl_unswitch): ...new function.
19462         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19463         subclass of rtl_opt_pass along with...
19464         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19465         and...
19466         (make_pass_rtl_unroll_and_peel_loops): ...new function.
19467         (pass_rtl_doloop): Convert from a global struct to a subclass of
19468         rtl_opt_pass along with...
19469         (pass_data_rtl_doloop): ...new pass_data instance and...
19470         (make_pass_rtl_doloop): ...new function.
19471         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19472         a subclass of rtl_opt_pass along with...
19473         (pass_data_lower_subreg): ...new pass_data instance and...
19474         (make_pass_lower_subreg): ...new function.
19475         (pass_lower_subreg2): Convert from a global struct to a subclass of
19476         rtl_opt_pass along with...
19477         (pass_data_lower_subreg2): ...new pass_data instance and...
19478         (make_pass_lower_subreg2): ...new function.
19479         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19480         struct to a subclass of ipa_opt_pass_d along with...
19481         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19482         (make_pass_ipa_lto_gimple_out): ...new function.
19483         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19484         of ipa_opt_pass_d along with...
19485         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19486         (make_pass_ipa_lto_finish_out): ...new function.
19487         * mode-switching.c (pass_mode_switching): Convert from a global struct
19488         to a subclass of rtl_opt_pass along with...
19489         (pass_data_mode_switching): ...new pass_data instance and...
19490         (make_pass_mode_switching): ...new function.
19491         * modulo-sched.c (pass_sms): Convert from a global struct to a
19492         subclass of rtl_opt_pass along with...
19493         (pass_data_sms): ...new pass_data instance and...
19494         (make_pass_sms): ...new function.
19495         * omp-low.c (pass_expand_omp): Convert from a global struct to a
19496         subclass of gimple_opt_pass along with...
19497         (pass_data_expand_omp): ...new pass_data instance and...
19498         (make_pass_expand_omp): ...new function.
19499         (pass_lower_omp): Convert from a global struct to a subclass of
19500         gimple_opt_pass along with...
19501         (pass_data_lower_omp): ...new pass_data instance and...
19502         (make_pass_lower_omp): ...new function.
19503         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19504         of gimple_opt_pass along with...
19505         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19506         (make_pass_diagnose_omp_blocks): ...new function.
19507         * passes.c (pass_early_local_passes): Convert from a global struct to
19508         a subclass of simple_ipa_opt_pass along with...
19509         (pass_data_early_local_passes): ...new pass_data instance and...
19510         (make_pass_early_local_passes): ...new function.
19511         (pass_all_early_optimizations): Convert from a global struct to a
19512         subclass of gimple_opt_pass along with...
19513         (pass_data_all_early_optimizations): ...new pass_data instance and...
19514         (make_pass_all_early_optimizations): ...new function.
19515         (pass_all_optimizations): Convert from a global struct to a subclass
19516         of gimple_opt_pass along with...
19517         (pass_data_all_optimizations): ...new pass_data instance and...
19518         (make_pass_all_optimizations): ...new function.
19519         (pass_all_optimizations_g): Convert from a global struct to a subclass
19520         of gimple_opt_pass along with...
19521         (pass_data_all_optimizations_g): ...new pass_data instance and...
19522         (make_pass_all_optimizations_g): ...new function.
19523         (pass_rest_of_compilation): Convert from a global struct to a subclass
19524         of rtl_opt_pass along with...
19525         (pass_data_rest_of_compilation): ...new pass_data instance and...
19526         (make_pass_rest_of_compilation): ...new function.
19527         (pass_postreload): Convert from a global struct to a subclass of
19528         rtl_opt_pass along with...
19529         (pass_data_postreload): ...new pass_data instance and...
19530         (make_pass_postreload): ...new function.
19531         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19532         subclass of rtl_opt_pass along with...
19533         (pass_data_gcse2): ...new pass_data instance and...
19534         (make_pass_gcse2): ...new function.
19535         * postreload.c (pass_postreload_cse): Convert from a global struct to
19536         a subclass of rtl_opt_pass along with...
19537         (pass_data_postreload_cse): ...new pass_data instance and...
19538         (make_pass_postreload_cse): ...new function.
19539         * predict.c (pass_profile): Convert from a global struct to a subclass
19540         of gimple_opt_pass along with...
19541         (pass_data_profile): ...new pass_data instance and...
19542         (make_pass_profile): ...new function.
19543         (pass_strip_predict_hints): Convert from a global struct to a subclass
19544         of gimple_opt_pass along with...
19545         (pass_data_strip_predict_hints): ...new pass_data instance and...
19546         (make_pass_strip_predict_hints): ...new function.
19547         * recog.c (pass_peephole2): Convert from a global struct to a subclass
19548         of rtl_opt_pass along with...
19549         (pass_data_peephole2): ...new pass_data instance and...
19550         (make_pass_peephole2): ...new function.
19551         (pass_split_all_insns): Convert from a global struct to a subclass of
19552         rtl_opt_pass along with...
19553         (pass_data_split_all_insns): ...new pass_data instance and...
19554         (make_pass_split_all_insns): ...new function.
19555         (pass_split_after_reload): Convert from a global struct to a subclass
19556         of rtl_opt_pass along with...
19557         (pass_data_split_after_reload): ...new pass_data instance and...
19558         (make_pass_split_after_reload): ...new function.
19559         (pass_split_before_regstack): Convert from a global struct to a
19560         subclass of rtl_opt_pass along with...
19561         (pass_data_split_before_regstack): ...new pass_data instance and...
19562         (make_pass_split_before_regstack): ...new function.
19563         (pass_split_before_sched2): Convert from a global struct to a subclass
19564         of rtl_opt_pass along with...
19565         (pass_data_split_before_sched2): ...new pass_data instance and...
19566         (make_pass_split_before_sched2): ...new function.
19567         (pass_split_for_shorten_branches): Convert from a global struct to a
19568         subclass of rtl_opt_pass along with...
19569         (pass_data_split_for_shorten_branches): ...new pass_data instance
19570         and...
19571         (make_pass_split_for_shorten_branches): ...new function.
19572         * ree.c (pass_ree): Convert from a global struct to a subclass of
19573         rtl_opt_pass along with...
19574         (pass_data_ree): ...new pass_data instance and...
19575         (make_pass_ree): ...new function.
19576         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19577         subclass of rtl_opt_pass along with...
19578         (pass_data_stack_regs): ...new pass_data instance and...
19579         (make_pass_stack_regs): ...new function.
19580         (pass_stack_regs_run): Convert from a global struct to a subclass of
19581         rtl_opt_pass along with...
19582         (pass_data_stack_regs_run): ...new pass_data instance and...
19583         (make_pass_stack_regs_run): ...new function.
19584         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19585         subclass of rtl_opt_pass along with...
19586         (pass_data_cprop_hardreg): ...new pass_data instance and...
19587         (make_pass_cprop_hardreg): ...new function.
19588         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19589         subclass of rtl_opt_pass along with...
19590         (pass_data_reginfo_init): ...new pass_data instance and...
19591         (make_pass_reginfo_init): ...new function.
19592         * regmove.c (pass_regmove): Convert from a global struct to a subclass
19593         of rtl_opt_pass along with...
19594         (pass_data_regmove): ...new pass_data instance and...
19595         (make_pass_regmove): ...new function.
19596         * regrename.c (pass_regrename): Convert from a global struct to a
19597         subclass of rtl_opt_pass along with...
19598         (pass_data_regrename): ...new pass_data instance and...
19599         (make_pass_regrename): ...new function.
19600         * reorg.c (pass_delay_slots): Convert from a global struct to a
19601         subclass of rtl_opt_pass along with...
19602         (pass_data_delay_slots): ...new pass_data instance and...
19603         (make_pass_delay_slots): ...new function.
19604         (pass_machine_reorg): Convert from a global struct to a subclass of
19605         rtl_opt_pass along with...
19606         (pass_data_machine_reorg): ...new pass_data instance and...
19607         (make_pass_machine_reorg): ...new function.
19608         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19609         of rtl_opt_pass along with...
19610         (pass_data_sched): ...new pass_data instance and...
19611         (make_pass_sched): ...new function.
19612         (pass_sched2): Convert from a global struct to a subclass of
19613         rtl_opt_pass along with...
19614         (pass_data_sched2): ...new pass_data instance and...
19615         (make_pass_sched2): ...new function.
19616         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19617         to a subclass of rtl_opt_pass along with...
19618         (pass_data_stack_ptr_mod): ...new pass_data instance and...
19619         (make_pass_stack_ptr_mod): ...new function.
19620         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19621         to a subclass of rtl_opt_pass along with...
19622         (pass_data_rtl_store_motion): ...new pass_data instance and...
19623         (make_pass_rtl_store_motion): ...new function.
19624         * tracer.c (pass_tracer): Convert from a global struct to a subclass
19625         of gimple_opt_pass along with...
19626         (pass_data_tracer): ...new pass_data instance and...
19627         (make_pass_tracer): ...new function.
19628         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19629         to a subclass of gimple_opt_pass along with...
19630         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19631         (make_pass_diagnose_tm_blocks): ...new function.
19632         (pass_lower_tm): Convert from a global struct to a subclass of
19633         gimple_opt_pass along with...
19634         (pass_data_lower_tm): ...new pass_data instance and...
19635         (make_pass_lower_tm): ...new function.
19636         (pass_tm_init): Convert from a global struct to a subclass of
19637         gimple_opt_pass along with...
19638         (pass_data_tm_init): ...new pass_data instance and...
19639         (make_pass_tm_init): ...new function.
19640         (pass_tm_mark): Convert from a global struct to a subclass of
19641         gimple_opt_pass along with...
19642         (pass_data_tm_mark): ...new pass_data instance and...
19643         (make_pass_tm_mark): ...new function.
19644         (pass_tm_edges): Convert from a global struct to a subclass of
19645         gimple_opt_pass along with...
19646         (pass_data_tm_edges): ...new pass_data instance and...
19647         (make_pass_tm_edges): ...new function.
19648         (pass_tm_memopt): Convert from a global struct to a subclass of
19649         gimple_opt_pass along with...
19650         (pass_data_tm_memopt): ...new pass_data instance and...
19651         (make_pass_tm_memopt): ...new function.
19652         (pass_ipa_tm): Convert from a global struct to a subclass of
19653         simple_ipa_opt_pass along with...
19654         (pass_data_ipa_tm): ...new pass_data instance and...
19655         (make_pass_ipa_tm): ...new function.
19656         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19657         subclass of gimple_opt_pass along with...
19658         (pass_data_call_cdce): ...new pass_data instance and...
19659         (make_pass_call_cdce): ...new function.
19660         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19661         subclass of gimple_opt_pass along with...
19662         (pass_data_build_cfg): ...new pass_data instance and...
19663         (make_pass_build_cfg): ...new function.
19664         (pass_split_crit_edges): Convert from a global struct to a subclass of
19665         gimple_opt_pass along with...
19666         (pass_data_split_crit_edges): ...new pass_data instance and...
19667         (make_pass_split_crit_edges): ...new function.
19668         (pass_warn_function_return): Convert from a global struct to a
19669         subclass of gimple_opt_pass along with...
19670         (pass_data_warn_function_return): ...new pass_data instance and...
19671         (make_pass_warn_function_return): ...new function.
19672         (pass_warn_function_noreturn): Convert from a global struct to a
19673         subclass of gimple_opt_pass along with...
19674         (pass_data_warn_function_noreturn): ...new pass_data instance and...
19675         (make_pass_warn_function_noreturn): ...new function.
19676         (pass_warn_unused_result): Convert from a global struct to a subclass
19677         of gimple_opt_pass along with...
19678         (pass_data_warn_unused_result): ...new pass_data instance and...
19679         (make_pass_warn_unused_result): ...new function.
19680         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19681         a subclass of gimple_opt_pass along with...
19682         (pass_data_merge_phi): ...new pass_data instance and...
19683         (make_pass_merge_phi): ...new function.
19684         * tree-complex.c (pass_lower_complex): Convert from a global struct to
19685         a subclass of gimple_opt_pass along with...
19686         (pass_data_lower_complex): ...new pass_data instance and...
19687         (make_pass_lower_complex): ...new function.
19688         (pass_lower_complex_O0): Convert from a global struct to a subclass of
19689         gimple_opt_pass along with...
19690         (pass_data_lower_complex_O0): ...new pass_data instance and...
19691         (make_pass_lower_complex_O0): ...new function.
19692         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
19693         subclass of gimple_opt_pass along with...
19694         (pass_data_lower_eh): ...new pass_data instance and...
19695         (make_pass_lower_eh): ...new function.
19696         (pass_refactor_eh): Convert from a global struct to a subclass of
19697         gimple_opt_pass along with...
19698         (pass_data_refactor_eh): ...new pass_data instance and...
19699         (make_pass_refactor_eh): ...new function.
19700         (pass_lower_resx): Convert from a global struct to a subclass of
19701         gimple_opt_pass along with...
19702         (pass_data_lower_resx): ...new pass_data instance and...
19703         (make_pass_lower_resx): ...new function.
19704         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19705         of gimple_opt_pass along with...
19706         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19707         (make_pass_lower_eh_dispatch): ...new function.
19708         (pass_cleanup_eh): Convert from a global struct to a subclass of
19709         gimple_opt_pass along with...
19710         (pass_data_cleanup_eh): ...new pass_data instance and...
19711         (make_pass_cleanup_eh): ...new function.
19712         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19713         to a subclass of simple_ipa_opt_pass along with...
19714         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19715         (make_pass_ipa_lower_emutls): ...new function.
19716         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19717         a subclass of gimple_opt_pass along with...
19718         (pass_data_if_conversion): ...new pass_data instance and...
19719         (make_pass_if_conversion): ...new function.
19720         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19721         subclass of gimple_opt_pass along with...
19722         (pass_data_build_ssa): ...new pass_data instance and...
19723         (make_pass_build_ssa): ...new function.
19724         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19725         global struct to a subclass of gimple_opt_pass along with...
19726         (pass_data_loop_distribution): ...new pass_data instance and...
19727         (make_pass_loop_distribution): ...new function.
19728         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19729         subclass of gimple_opt_pass along with...
19730         (pass_data_mudflap_1): ...new pass_data instance and...
19731         (make_pass_mudflap_1): ...new function.
19732         (pass_mudflap_2): Convert from a global struct to a subclass of
19733         gimple_opt_pass along with...
19734         (pass_data_mudflap_2): ...new pass_data instance and...
19735         (make_pass_mudflap_2): ...new function.
19736         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19737         subclass of gimple_opt_pass along with...
19738         (pass_data_mudflap_1): ...new pass_data instance and...
19739         (make_pass_mudflap_1): ...new function.
19740         (pass_mudflap_2): Convert from a global struct to a subclass of
19741         gimple_opt_pass along with...
19742         (pass_data_mudflap_2): ...new pass_data instance and...
19743         (make_pass_mudflap_2): ...new function.
19744         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19745         gimple_opt_pass along with...
19746         (pass_data_nrv): ...new pass_data instance and...
19747         (make_pass_nrv): ...new function.
19748         (pass_return_slot): Convert from a global struct to a subclass of
19749         gimple_opt_pass along with...
19750         (pass_data_return_slot): ...new pass_data instance and...
19751         (make_pass_return_slot): ...new function.
19752         * tree-object-size.c (pass_object_sizes): Convert from a global struct
19753         to a subclass of gimple_opt_pass along with...
19754         (pass_data_object_sizes): ...new pass_data instance and...
19755         (make_pass_object_sizes): ...new function.
19756         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19757         global struct to a subclass of gimple_opt_pass along with...
19758         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19759         and...
19760         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19761         (pass_fixup_cfg): Convert from a global struct to a subclass of
19762         gimple_opt_pass along with...
19763         (pass_data_fixup_cfg): ...new pass_data instance and...
19764         (make_pass_fixup_cfg): ...new function.
19765         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19766         (make_pass_mudflap_1): ...new function.
19767         (pass_mudflap_2): Replace declaration with that of...
19768         (make_pass_mudflap_2): ...new function.
19769         (pass_asan): Replace declaration with that of...
19770         (make_pass_asan): ...new function.
19771         (pass_asan_O0): Replace declaration with that of...
19772         (make_pass_asan_O0): ...new function.
19773         (pass_tsan): Replace declaration with that of...
19774         (make_pass_tsan): ...new function.
19775         (pass_tsan_O0): Replace declaration with that of...
19776         (make_pass_tsan_O0): ...new function.
19777         (pass_lower_cf): Replace declaration with that of...
19778         (make_pass_lower_cf): ...new function.
19779         (pass_refactor_eh): Replace declaration with that of...
19780         (make_pass_refactor_eh): ...new function.
19781         (pass_lower_eh): Replace declaration with that of...
19782         (make_pass_lower_eh): ...new function.
19783         (pass_lower_eh_dispatch): Replace declaration with that of...
19784         (make_pass_lower_eh_dispatch): ...new function.
19785         (pass_lower_resx): Replace declaration with that of...
19786         (make_pass_lower_resx): ...new function.
19787         (pass_build_cfg): Replace declaration with that of...
19788         (make_pass_build_cfg): ...new function.
19789         (pass_early_tree_profile): Replace declaration with that of...
19790         (make_pass_early_tree_profile): ...new function.
19791         (pass_cleanup_eh): Replace declaration with that of...
19792         (make_pass_cleanup_eh): ...new function.
19793         (pass_sra): Replace declaration with that of...
19794         (make_pass_sra): ...new function.
19795         (pass_sra_early): Replace declaration with that of...
19796         (make_pass_sra_early): ...new function.
19797         (pass_early_ipa_sra): Replace declaration with that of...
19798         (make_pass_early_ipa_sra): ...new function.
19799         (pass_tail_recursion): Replace declaration with that of...
19800         (make_pass_tail_recursion): ...new function.
19801         (pass_tail_calls): Replace declaration with that of...
19802         (make_pass_tail_calls): ...new function.
19803         (pass_tree_loop): Replace declaration with that of...
19804         (make_pass_tree_loop): ...new function.
19805         (pass_tree_loop_init): Replace declaration with that of...
19806         (make_pass_tree_loop_init): ...new function.
19807         (pass_lim): Replace declaration with that of...
19808         (make_pass_lim): ...new function.
19809         (pass_tree_unswitch): Replace declaration with that of...
19810         (make_pass_tree_unswitch): ...new function.
19811         (pass_predcom): Replace declaration with that of...
19812         (make_pass_predcom): ...new function.
19813         (pass_iv_canon): Replace declaration with that of...
19814         (make_pass_iv_canon): ...new function.
19815         (pass_scev_cprop): Replace declaration with that of...
19816         (make_pass_scev_cprop): ...new function.
19817         (pass_empty_loop): Replace declaration with that of...
19818         (make_pass_empty_loop): ...new function.
19819         (pass_record_bounds): Replace declaration with that of...
19820         (make_pass_record_bounds): ...new function.
19821         (pass_graphite): Replace declaration with that of...
19822         (make_pass_graphite): ...new function.
19823         (pass_graphite_transforms): Replace declaration with that of...
19824         (make_pass_graphite_transforms): ...new function.
19825         (pass_if_conversion): Replace declaration with that of...
19826         (make_pass_if_conversion): ...new function.
19827         (pass_loop_distribution): Replace declaration with that of...
19828         (make_pass_loop_distribution): ...new function.
19829         (pass_vectorize): Replace declaration with that of...
19830         (make_pass_vectorize): ...new function.
19831         (pass_slp_vectorize): Replace declaration with that of...
19832         (make_pass_slp_vectorize): ...new function.
19833         (pass_complete_unroll): Replace declaration with that of...
19834         (make_pass_complete_unroll): ...new function.
19835         (pass_complete_unrolli): Replace declaration with that of...
19836         (make_pass_complete_unrolli): ...new function.
19837         (pass_parallelize_loops): Replace declaration with that of...
19838         (make_pass_parallelize_loops): ...new function.
19839         (pass_loop_prefetch): Replace declaration with that of...
19840         (make_pass_loop_prefetch): ...new function.
19841         (pass_iv_optimize): Replace declaration with that of...
19842         (make_pass_iv_optimize): ...new function.
19843         (pass_tree_loop_done): Replace declaration with that of...
19844         (make_pass_tree_loop_done): ...new function.
19845         (pass_ch): Replace declaration with that of...
19846         (make_pass_ch): ...new function.
19847         (pass_ccp): Replace declaration with that of...
19848         (make_pass_ccp): ...new function.
19849         (pass_phi_only_cprop): Replace declaration with that of...
19850         (make_pass_phi_only_cprop): ...new function.
19851         (pass_build_ssa): Replace declaration with that of...
19852         (make_pass_build_ssa): ...new function.
19853         (pass_build_alias): Replace declaration with that of...
19854         (make_pass_build_alias): ...new function.
19855         (pass_build_ealias): Replace declaration with that of...
19856         (make_pass_build_ealias): ...new function.
19857         (pass_dominator): Replace declaration with that of...
19858         (make_pass_dominator): ...new function.
19859         (pass_dce): Replace declaration with that of...
19860         (make_pass_dce): ...new function.
19861         (pass_dce_loop): Replace declaration with that of...
19862         (make_pass_dce_loop): ...new function.
19863         (pass_cd_dce): Replace declaration with that of...
19864         (make_pass_cd_dce): ...new function.
19865         (pass_call_cdce): Replace declaration with that of...
19866         (make_pass_call_cdce): ...new function.
19867         (pass_merge_phi): Replace declaration with that of...
19868         (make_pass_merge_phi): ...new function.
19869         (pass_split_crit_edges): Replace declaration with that of...
19870         (make_pass_split_crit_edges): ...new function.
19871         (pass_pre): Replace declaration with that of...
19872         (make_pass_pre): ...new function.
19873         (pass_profile): Replace declaration with that of...
19874         (make_pass_profile): ...new function.
19875         (pass_strip_predict_hints): Replace declaration with that of...
19876         (make_pass_strip_predict_hints): ...new function.
19877         (pass_lower_complex_O0): Replace declaration with that of...
19878         (make_pass_lower_complex_O0): ...new function.
19879         (pass_lower_complex): Replace declaration with that of...
19880         (make_pass_lower_complex): ...new function.
19881         (pass_lower_vector): Replace declaration with that of...
19882         (make_pass_lower_vector): ...new function.
19883         (pass_lower_vector_ssa): Replace declaration with that of...
19884         (make_pass_lower_vector_ssa): ...new function.
19885         (pass_lower_omp): Replace declaration with that of...
19886         (make_pass_lower_omp): ...new function.
19887         (pass_diagnose_omp_blocks): Replace declaration with that of...
19888         (make_pass_diagnose_omp_blocks): ...new function.
19889         (pass_expand_omp): Replace declaration with that of...
19890         (make_pass_expand_omp): ...new function.
19891         (pass_expand_omp_ssa): Replace declaration with that of...
19892         (make_pass_expand_omp_ssa): ...new function.
19893         (pass_object_sizes): Replace declaration with that of...
19894         (make_pass_object_sizes): ...new function.
19895         (pass_strlen): Replace declaration with that of...
19896         (make_pass_strlen): ...new function.
19897         (pass_fold_builtins): Replace declaration with that of...
19898         (make_pass_fold_builtins): ...new function.
19899         (pass_stdarg): Replace declaration with that of...
19900         (make_pass_stdarg): ...new function.
19901         (pass_early_warn_uninitialized): Replace declaration with that of...
19902         (make_pass_early_warn_uninitialized): ...new function.
19903         (pass_late_warn_uninitialized): Replace declaration with that of...
19904         (make_pass_late_warn_uninitialized): ...new function.
19905         (pass_cse_reciprocals): Replace declaration with that of...
19906         (make_pass_cse_reciprocals): ...new function.
19907         (pass_cse_sincos): Replace declaration with that of...
19908         (make_pass_cse_sincos): ...new function.
19909         (pass_optimize_bswap): Replace declaration with that of...
19910         (make_pass_optimize_bswap): ...new function.
19911         (pass_optimize_widening_mul): Replace declaration with that of...
19912         (make_pass_optimize_widening_mul): ...new function.
19913         (pass_warn_function_return): Replace declaration with that of...
19914         (make_pass_warn_function_return): ...new function.
19915         (pass_warn_function_noreturn): Replace declaration with that of...
19916         (make_pass_warn_function_noreturn): ...new function.
19917         (pass_cselim): Replace declaration with that of...
19918         (make_pass_cselim): ...new function.
19919         (pass_phiopt): Replace declaration with that of...
19920         (make_pass_phiopt): ...new function.
19921         (pass_forwprop): Replace declaration with that of...
19922         (make_pass_forwprop): ...new function.
19923         (pass_phiprop): Replace declaration with that of...
19924         (make_pass_phiprop): ...new function.
19925         (pass_tree_ifcombine): Replace declaration with that of...
19926         (make_pass_tree_ifcombine): ...new function.
19927         (pass_dse): Replace declaration with that of...
19928         (make_pass_dse): ...new function.
19929         (pass_nrv): Replace declaration with that of...
19930         (make_pass_nrv): ...new function.
19931         (pass_rename_ssa_copies): Replace declaration with that of...
19932         (make_pass_rename_ssa_copies): ...new function.
19933         (pass_sink_code): Replace declaration with that of...
19934         (make_pass_sink_code): ...new function.
19935         (pass_fre): Replace declaration with that of...
19936         (make_pass_fre): ...new function.
19937         (pass_check_data_deps): Replace declaration with that of...
19938         (make_pass_check_data_deps): ...new function.
19939         (pass_copy_prop): Replace declaration with that of...
19940         (make_pass_copy_prop): ...new function.
19941         (pass_vrp): Replace declaration with that of...
19942         (make_pass_vrp): ...new function.
19943         (pass_uncprop): Replace declaration with that of...
19944         (make_pass_uncprop): ...new function.
19945         (pass_return_slot): Replace declaration with that of...
19946         (make_pass_return_slot): ...new function.
19947         (pass_reassoc): Replace declaration with that of...
19948         (make_pass_reassoc): ...new function.
19949         (pass_rebuild_cgraph_edges): Replace declaration with that of...
19950         (make_pass_rebuild_cgraph_edges): ...new function.
19951         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
19952         (make_pass_remove_cgraph_callee_edges): ...new function.
19953         (pass_build_cgraph_edges): Replace declaration with that of...
19954         (make_pass_build_cgraph_edges): ...new function.
19955         (pass_local_pure_const): Replace declaration with that of...
19956         (make_pass_local_pure_const): ...new function.
19957         (pass_tracer): Replace declaration with that of...
19958         (make_pass_tracer): ...new function.
19959         (pass_warn_unused_result): Replace declaration with that of...
19960         (make_pass_warn_unused_result): ...new function.
19961         (pass_diagnose_tm_blocks): Replace declaration with that of...
19962         (make_pass_diagnose_tm_blocks): ...new function.
19963         (pass_lower_tm): Replace declaration with that of...
19964         (make_pass_lower_tm): ...new function.
19965         (pass_tm_init): Replace declaration with that of...
19966         (make_pass_tm_init): ...new function.
19967         (pass_tm_mark): Replace declaration with that of...
19968         (make_pass_tm_mark): ...new function.
19969         (pass_tm_memopt): Replace declaration with that of...
19970         (make_pass_tm_memopt): ...new function.
19971         (pass_tm_edges): Replace declaration with that of...
19972         (make_pass_tm_edges): ...new function.
19973         (pass_split_functions): Replace declaration with that of...
19974         (make_pass_split_functions): ...new function.
19975         (pass_feedback_split_functions): Replace declaration with that of...
19976         (make_pass_feedback_split_functions): ...new function.
19977         (pass_strength_reduction): Replace declaration with that of...
19978         (make_pass_strength_reduction): ...new function.
19979         (pass_ipa_lower_emutls): Replace declaration with that of...
19980         (make_pass_ipa_lower_emutls): ...new function.
19981         (pass_ipa_function_and_variable_visibility): Replace declaration with
19982         that of...
19983         (make_pass_ipa_function_and_variable_visibility): ...new function.
19984         (pass_ipa_tree_profile): Replace declaration with that of...
19985         (make_pass_ipa_tree_profile): ...new function.
19986         (pass_early_local_passes): Replace declaration with that of...
19987         (make_pass_early_local_passes): ...new function.
19988         (pass_ipa_whole_program_visibility): Replace declaration with that
19989         of...
19990         (make_pass_ipa_whole_program_visibility): ...new function.
19991         (pass_ipa_lto_gimple_out): Replace declaration with that of...
19992         (make_pass_ipa_lto_gimple_out): ...new function.
19993         (pass_ipa_increase_alignment): Replace declaration with that of...
19994         (make_pass_ipa_increase_alignment): ...new function.
19995         (pass_ipa_inline): Replace declaration with that of...
19996         (make_pass_ipa_inline): ...new function.
19997         (pass_ipa_free_lang_data): Replace declaration with that of...
19998         (make_pass_ipa_free_lang_data): ...new function.
19999         (pass_ipa_free_inline_summary): Replace declaration with that of...
20000         (make_pass_ipa_free_inline_summary): ...new function.
20001         (pass_ipa_cp): Replace declaration with that of...
20002         (make_pass_ipa_cp): ...new function.
20003         (pass_ipa_reference): Replace declaration with that of...
20004         (make_pass_ipa_reference): ...new function.
20005         (pass_ipa_pure_const): Replace declaration with that of...
20006         (make_pass_ipa_pure_const): ...new function.
20007         (pass_ipa_pta): Replace declaration with that of...
20008         (make_pass_ipa_pta): ...new function.
20009         (pass_ipa_lto_finish_out): Replace declaration with that of...
20010         (make_pass_ipa_lto_finish_out): ...new function.
20011         (pass_ipa_tm): Replace declaration with that of...
20012         (make_pass_ipa_tm): ...new function.
20013         (pass_ipa_profile): Replace declaration with that of...
20014         (make_pass_ipa_profile): ...new function.
20015         (pass_ipa_cdtor_merge): Replace declaration with that of...
20016         (make_pass_ipa_cdtor_merge): ...new function.
20017         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20018         of...
20019         (make_pass_cleanup_cfg_post_optimizing): ...new function.
20020         (pass_init_datastructures): Replace declaration with that of...
20021         (make_pass_init_datastructures): ...new function.
20022         (pass_fixup_cfg): Replace declaration with that of...
20023         (make_pass_fixup_cfg): ...new function.
20024         (pass_expand): Replace declaration with that of...
20025         (make_pass_expand): ...new function.
20026         (pass_instantiate_virtual_regs): Replace declaration with that of...
20027         (make_pass_instantiate_virtual_regs): ...new function.
20028         (pass_rtl_fwprop): Replace declaration with that of...
20029         (make_pass_rtl_fwprop): ...new function.
20030         (pass_rtl_fwprop_addr): Replace declaration with that of...
20031         (make_pass_rtl_fwprop_addr): ...new function.
20032         (pass_jump): Replace declaration with that of...
20033         (make_pass_jump): ...new function.
20034         (pass_jump2): Replace declaration with that of...
20035         (make_pass_jump2): ...new function.
20036         (pass_lower_subreg): Replace declaration with that of...
20037         (make_pass_lower_subreg): ...new function.
20038         (pass_cse): Replace declaration with that of...
20039         (make_pass_cse): ...new function.
20040         (pass_fast_rtl_dce): Replace declaration with that of...
20041         (make_pass_fast_rtl_dce): ...new function.
20042         (pass_ud_rtl_dce): Replace declaration with that of...
20043         (make_pass_ud_rtl_dce): ...new function.
20044         (pass_rtl_dce): Replace declaration with that of...
20045         (make_pass_rtl_dce): ...new function.
20046         (pass_rtl_dse1): Replace declaration with that of...
20047         (make_pass_rtl_dse1): ...new function.
20048         (pass_rtl_dse2): Replace declaration with that of...
20049         (make_pass_rtl_dse2): ...new function.
20050         (pass_rtl_dse3): Replace declaration with that of...
20051         (make_pass_rtl_dse3): ...new function.
20052         (pass_rtl_cprop): Replace declaration with that of...
20053         (make_pass_rtl_cprop): ...new function.
20054         (pass_rtl_pre): Replace declaration with that of...
20055         (make_pass_rtl_pre): ...new function.
20056         (pass_rtl_hoist): Replace declaration with that of...
20057         (make_pass_rtl_hoist): ...new function.
20058         (pass_rtl_store_motion): Replace declaration with that of...
20059         (make_pass_rtl_store_motion): ...new function.
20060         (pass_cse_after_global_opts): Replace declaration with that of...
20061         (make_pass_cse_after_global_opts): ...new function.
20062         (pass_rtl_ifcvt): Replace declaration with that of...
20063         (make_pass_rtl_ifcvt): ...new function.
20064         (pass_into_cfg_layout_mode): Replace declaration with that of...
20065         (make_pass_into_cfg_layout_mode): ...new function.
20066         (pass_outof_cfg_layout_mode): Replace declaration with that of...
20067         (make_pass_outof_cfg_layout_mode): ...new function.
20068         (pass_loop2): Replace declaration with that of...
20069         (make_pass_loop2): ...new function.
20070         (pass_rtl_loop_init): Replace declaration with that of...
20071         (make_pass_rtl_loop_init): ...new function.
20072         (pass_rtl_move_loop_invariants): Replace declaration with that of...
20073         (make_pass_rtl_move_loop_invariants): ...new function.
20074         (pass_rtl_unswitch): Replace declaration with that of...
20075         (make_pass_rtl_unswitch): ...new function.
20076         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20077         (make_pass_rtl_unroll_and_peel_loops): ...new function.
20078         (pass_rtl_doloop): Replace declaration with that of...
20079         (make_pass_rtl_doloop): ...new function.
20080         (pass_rtl_loop_done): Replace declaration with that of...
20081         (make_pass_rtl_loop_done): ...new function.
20082         (pass_web): Replace declaration with that of...
20083         (make_pass_web): ...new function.
20084         (pass_cse2): Replace declaration with that of...
20085         (make_pass_cse2): ...new function.
20086         (pass_df_initialize_opt): Replace declaration with that of...
20087         (make_pass_df_initialize_opt): ...new function.
20088         (pass_df_initialize_no_opt): Replace declaration with that of...
20089         (make_pass_df_initialize_no_opt): ...new function.
20090         (pass_reginfo_init): Replace declaration with that of...
20091         (make_pass_reginfo_init): ...new function.
20092         (pass_inc_dec): Replace declaration with that of...
20093         (make_pass_inc_dec): ...new function.
20094         (pass_stack_ptr_mod): Replace declaration with that of...
20095         (make_pass_stack_ptr_mod): ...new function.
20096         (pass_initialize_regs): Replace declaration with that of...
20097         (make_pass_initialize_regs): ...new function.
20098         (pass_combine): Replace declaration with that of...
20099         (make_pass_combine): ...new function.
20100         (pass_if_after_combine): Replace declaration with that of...
20101         (make_pass_if_after_combine): ...new function.
20102         (pass_ree): Replace declaration with that of...
20103         (make_pass_ree): ...new function.
20104         (pass_partition_blocks): Replace declaration with that of...
20105         (make_pass_partition_blocks): ...new function.
20106         (pass_match_asm_constraints): Replace declaration with that of...
20107         (make_pass_match_asm_constraints): ...new function.
20108         (pass_regmove): Replace declaration with that of...
20109         (make_pass_regmove): ...new function.
20110         (pass_split_all_insns): Replace declaration with that of...
20111         (make_pass_split_all_insns): ...new function.
20112         (pass_fast_rtl_byte_dce): Replace declaration with that of...
20113         (make_pass_fast_rtl_byte_dce): ...new function.
20114         (pass_lower_subreg2): Replace declaration with that of...
20115         (make_pass_lower_subreg2): ...new function.
20116         (pass_mode_switching): Replace declaration with that of...
20117         (make_pass_mode_switching): ...new function.
20118         (pass_sms): Replace declaration with that of...
20119         (make_pass_sms): ...new function.
20120         (pass_sched): Replace declaration with that of...
20121         (make_pass_sched): ...new function.
20122         (pass_ira): Replace declaration with that of...
20123         (make_pass_ira): ...new function.
20124         (pass_reload): Replace declaration with that of...
20125         (make_pass_reload): ...new function.
20126         (pass_clean_state): Replace declaration with that of...
20127         (make_pass_clean_state): ...new function.
20128         (pass_branch_prob): Replace declaration with that of...
20129         (make_pass_branch_prob): ...new function.
20130         (pass_value_profile_transformations): Replace declaration with that
20131         of...
20132         (make_pass_value_profile_transformations): ...new function.
20133         (pass_postreload_cse): Replace declaration with that of...
20134         (make_pass_postreload_cse): ...new function.
20135         (pass_gcse2): Replace declaration with that of...
20136         (make_pass_gcse2): ...new function.
20137         (pass_split_after_reload): Replace declaration with that of...
20138         (make_pass_split_after_reload): ...new function.
20139         (pass_branch_target_load_optimize1): Replace declaration with that
20140         of...
20141         (make_pass_branch_target_load_optimize1): ...new function.
20142         (pass_thread_prologue_and_epilogue): Replace declaration with that
20143         of...
20144         (make_pass_thread_prologue_and_epilogue): ...new function.
20145         (pass_stack_adjustments): Replace declaration with that of...
20146         (make_pass_stack_adjustments): ...new function.
20147         (pass_peephole2): Replace declaration with that of...
20148         (make_pass_peephole2): ...new function.
20149         (pass_if_after_reload): Replace declaration with that of...
20150         (make_pass_if_after_reload): ...new function.
20151         (pass_regrename): Replace declaration with that of...
20152         (make_pass_regrename): ...new function.
20153         (pass_cprop_hardreg): Replace declaration with that of...
20154         (make_pass_cprop_hardreg): ...new function.
20155         (pass_reorder_blocks): Replace declaration with that of...
20156         (make_pass_reorder_blocks): ...new function.
20157         (pass_branch_target_load_optimize2): Replace declaration with that
20158         of...
20159         (make_pass_branch_target_load_optimize2): ...new function.
20160         (pass_leaf_regs): Replace declaration with that of...
20161         (make_pass_leaf_regs): ...new function.
20162         (pass_split_before_sched2): Replace declaration with that of...
20163         (make_pass_split_before_sched2): ...new function.
20164         (pass_compare_elim_after_reload): Replace declaration with that of...
20165         (make_pass_compare_elim_after_reload): ...new function.
20166         (pass_sched2): Replace declaration with that of...
20167         (make_pass_sched2): ...new function.
20168         (pass_stack_regs): Replace declaration with that of...
20169         (make_pass_stack_regs): ...new function.
20170         (pass_stack_regs_run): Replace declaration with that of...
20171         (make_pass_stack_regs_run): ...new function.
20172         (pass_df_finish): Replace declaration with that of...
20173         (make_pass_df_finish): ...new function.
20174         (pass_compute_alignments): Replace declaration with that of...
20175         (make_pass_compute_alignments): ...new function.
20176         (pass_duplicate_computed_gotos): Replace declaration with that of...
20177         (make_pass_duplicate_computed_gotos): ...new function.
20178         (pass_variable_tracking): Replace declaration with that of...
20179         (make_pass_variable_tracking): ...new function.
20180         (pass_free_cfg): Replace declaration with that of...
20181         (make_pass_free_cfg): ...new function.
20182         (pass_machine_reorg): Replace declaration with that of...
20183         (make_pass_machine_reorg): ...new function.
20184         (pass_cleanup_barriers): Replace declaration with that of...
20185         (make_pass_cleanup_barriers): ...new function.
20186         (pass_delay_slots): Replace declaration with that of...
20187         (make_pass_delay_slots): ...new function.
20188         (pass_split_for_shorten_branches): Replace declaration with that of...
20189         (make_pass_split_for_shorten_branches): ...new function.
20190         (pass_split_before_regstack): Replace declaration with that of...
20191         (make_pass_split_before_regstack): ...new function.
20192         (pass_convert_to_eh_region_ranges): Replace declaration with that
20193         of...
20194         (make_pass_convert_to_eh_region_ranges): ...new function.
20195         (pass_shorten_branches): Replace declaration with that of...
20196         (make_pass_shorten_branches): ...new function.
20197         (pass_set_nothrow_function_flags): Replace declaration with that of...
20198         (make_pass_set_nothrow_function_flags): ...new function.
20199         (pass_dwarf2_frame): Replace declaration with that of...
20200         (make_pass_dwarf2_frame): ...new function.
20201         (pass_final): Replace declaration with that of...
20202         (make_pass_final): ...new function.
20203         (pass_rtl_seqabstr): Replace declaration with that of...
20204         (make_pass_rtl_seqabstr): ...new function.
20205         (pass_release_ssa_names): Replace declaration with that of...
20206         (make_pass_release_ssa_names): ...new function.
20207         (pass_early_inline): Replace declaration with that of...
20208         (make_pass_early_inline): ...new function.
20209         (pass_inline_parameters): Replace declaration with that of...
20210         (make_pass_inline_parameters): ...new function.
20211         (pass_update_address_taken): Replace declaration with that of...
20212         (make_pass_update_address_taken): ...new function.
20213         (pass_convert_switch): Replace declaration with that of...
20214         (make_pass_convert_switch): ...new function.
20215         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20216         to a subclass of simple_ipa_opt_pass along with...
20217         (pass_data_ipa_tree_profile): ...new pass_data instance and...
20218         (make_pass_ipa_tree_profile): ...new function.
20219         * tree-sra.c (pass_sra_early): Convert from a global struct to a
20220         subclass of gimple_opt_pass along with...
20221         (pass_data_sra_early): ...new pass_data instance and...
20222         (make_pass_sra_early): ...new function.
20223         (pass_sra): Convert from a global struct to a subclass of
20224         gimple_opt_pass along with...
20225         (pass_data_sra): ...new pass_data instance and...
20226         (make_pass_sra): ...new function.
20227         (pass_early_ipa_sra): Convert from a global struct to a subclass of
20228         gimple_opt_pass along with...
20229         (pass_data_early_ipa_sra): ...new pass_data instance and...
20230         (make_pass_early_ipa_sra): ...new function.
20231         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20232         subclass of gimple_opt_pass along with...
20233         (pass_data_ccp): ...new pass_data instance and...
20234         (make_pass_ccp): ...new function.
20235         (pass_fold_builtins): Convert from a global struct to a subclass of
20236         gimple_opt_pass along with...
20237         (pass_data_fold_builtins): ...new pass_data instance and...
20238         (make_pass_fold_builtins): ...new function.
20239         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20240         subclass of gimple_opt_pass along with...
20241         (pass_data_copy_prop): ...new pass_data instance and...
20242         (make_pass_copy_prop): ...new function.
20243         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20244         global struct to a subclass of gimple_opt_pass along with...
20245         (pass_data_rename_ssa_copies): ...new pass_data instance and...
20246         (make_pass_rename_ssa_copies): ...new function.
20247         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20248         subclass of gimple_opt_pass along with...
20249         (pass_data_dce): ...new pass_data instance and...
20250         (make_pass_dce): ...new function.
20251         (pass_dce_loop): Convert from a global struct to a subclass of
20252         gimple_opt_pass along with...
20253         (pass_data_dce_loop): ...new pass_data instance and...
20254         (make_pass_dce_loop): ...new function.
20255         (pass_cd_dce): Convert from a global struct to a subclass of
20256         gimple_opt_pass along with...
20257         (pass_data_cd_dce): ...new pass_data instance and...
20258         (make_pass_cd_dce): ...new function.
20259         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20260         subclass of gimple_opt_pass along with...
20261         (pass_data_dominator): ...new pass_data instance and...
20262         (make_pass_dominator): ...new function.
20263         (pass_phi_only_cprop): Convert from a global struct to a subclass of
20264         gimple_opt_pass along with...
20265         (pass_data_phi_only_cprop): ...new pass_data instance and...
20266         (make_pass_phi_only_cprop): ...new function.
20267         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20268         subclass of gimple_opt_pass along with...
20269         (pass_data_dse): ...new pass_data instance and...
20270         (make_pass_dse): ...new function.
20271         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20272         a subclass of gimple_opt_pass along with...
20273         (pass_data_forwprop): ...new pass_data instance and...
20274         (make_pass_forwprop): ...new function.
20275         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20276         struct to a subclass of gimple_opt_pass along with...
20277         (pass_data_tree_ifcombine): ...new pass_data instance and...
20278         (make_pass_tree_ifcombine): ...new function.
20279         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20280         subclass of gimple_opt_pass along with...
20281         (pass_data_ch): ...new pass_data instance and...
20282         (make_pass_ch): ...new function.
20283         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20284         subclass of gimple_opt_pass along with...
20285         (pass_data_tree_loop): ...new pass_data instance and...
20286         (make_pass_tree_loop): ...new function.
20287         (pass_tree_loop_init): Convert from a global struct to a subclass of
20288         gimple_opt_pass along with...
20289         (pass_data_tree_loop_init): ...new pass_data instance and...
20290         (make_pass_tree_loop_init): ...new function.
20291         (pass_lim): Convert from a global struct to a subclass of
20292         gimple_opt_pass along with...
20293         (pass_data_lim): ...new pass_data instance and...
20294         (make_pass_lim): ...new function.
20295         (pass_tree_unswitch): Convert from a global struct to a subclass of
20296         gimple_opt_pass along with...
20297         (pass_data_tree_unswitch): ...new pass_data instance and...
20298         (make_pass_tree_unswitch): ...new function.
20299         (pass_predcom): Convert from a global struct to a subclass of
20300         gimple_opt_pass along with...
20301         (pass_data_predcom): ...new pass_data instance and...
20302         (make_pass_predcom): ...new function.
20303         (pass_vectorize): Convert from a global struct to a subclass of
20304         gimple_opt_pass along with...
20305         (pass_data_vectorize): ...new pass_data instance and...
20306         (make_pass_vectorize): ...new function.
20307         (pass_graphite): Convert from a global struct to a subclass of
20308         gimple_opt_pass along with...
20309         (pass_data_graphite): ...new pass_data instance and...
20310         (make_pass_graphite): ...new function.
20311         (pass_graphite_transforms): Convert from a global struct to a subclass
20312         of gimple_opt_pass along with...
20313         (pass_data_graphite_transforms): ...new pass_data instance and...
20314         (make_pass_graphite_transforms): ...new function.
20315         (pass_check_data_deps): Convert from a global struct to a subclass of
20316         gimple_opt_pass along with...
20317         (pass_data_check_data_deps): ...new pass_data instance and...
20318         (make_pass_check_data_deps): ...new function.
20319         (pass_iv_canon): Convert from a global struct to a subclass of
20320         gimple_opt_pass along with...
20321         (pass_data_iv_canon): ...new pass_data instance and...
20322         (make_pass_iv_canon): ...new function.
20323         (pass_scev_cprop): Convert from a global struct to a subclass of
20324         gimple_opt_pass along with...
20325         (pass_data_scev_cprop): ...new pass_data instance and...
20326         (make_pass_scev_cprop): ...new function.
20327         (pass_record_bounds): Convert from a global struct to a subclass of
20328         gimple_opt_pass along with...
20329         (pass_data_record_bounds): ...new pass_data instance and...
20330         (make_pass_record_bounds): ...new function.
20331         (pass_complete_unroll): Convert from a global struct to a subclass of
20332         gimple_opt_pass along with...
20333         (pass_data_complete_unroll): ...new pass_data instance and...
20334         (make_pass_complete_unroll): ...new function.
20335         (pass_complete_unrolli): Convert from a global struct to a subclass of
20336         gimple_opt_pass along with...
20337         (pass_data_complete_unrolli): ...new pass_data instance and...
20338         (make_pass_complete_unrolli): ...new function.
20339         (pass_parallelize_loops): Convert from a global struct to a subclass
20340         of gimple_opt_pass along with...
20341         (pass_data_parallelize_loops): ...new pass_data instance and...
20342         (make_pass_parallelize_loops): ...new function.
20343         (pass_loop_prefetch): Convert from a global struct to a subclass of
20344         gimple_opt_pass along with...
20345         (pass_data_loop_prefetch): ...new pass_data instance and...
20346         (make_pass_loop_prefetch): ...new function.
20347         (pass_iv_optimize): Convert from a global struct to a subclass of
20348         gimple_opt_pass along with...
20349         (pass_data_iv_optimize): ...new pass_data instance and...
20350         (make_pass_iv_optimize): ...new function.
20351         (pass_tree_loop_done): Convert from a global struct to a subclass of
20352         gimple_opt_pass along with...
20353         (pass_data_tree_loop_done): ...new pass_data instance and...
20354         (make_pass_tree_loop_done): ...new function.
20355         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20356         struct to a subclass of gimple_opt_pass along with...
20357         (pass_data_cse_reciprocals): ...new pass_data instance and...
20358         (make_pass_cse_reciprocals): ...new function.
20359         (pass_cse_sincos): Convert from a global struct to a subclass of
20360         gimple_opt_pass along with...
20361         (pass_data_cse_sincos): ...new pass_data instance and...
20362         (make_pass_cse_sincos): ...new function.
20363         (pass_optimize_bswap): Convert from a global struct to a subclass of
20364         gimple_opt_pass along with...
20365         (pass_data_optimize_bswap): ...new pass_data instance and...
20366         (make_pass_optimize_bswap): ...new function.
20367         (pass_optimize_widening_mul): Convert from a global struct to a
20368         subclass of gimple_opt_pass along with...
20369         (pass_data_optimize_widening_mul): ...new pass_data instance and...
20370         (make_pass_optimize_widening_mul): ...new function.
20371         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20372         subclass of gimple_opt_pass along with...
20373         (pass_data_phiopt): ...new pass_data instance and...
20374         (make_pass_phiopt): ...new function.
20375         (pass_cselim): Convert from a global struct to a subclass of
20376         gimple_opt_pass along with...
20377         (pass_data_cselim): ...new pass_data instance and...
20378         (make_pass_cselim): ...new function.
20379         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20380         subclass of gimple_opt_pass along with...
20381         (pass_data_phiprop): ...new pass_data instance and...
20382         (make_pass_phiprop): ...new function.
20383         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20384         subclass of gimple_opt_pass along with...
20385         (pass_data_pre): ...new pass_data instance and...
20386         (make_pass_pre): ...new function.
20387         (pass_fre): Convert from a global struct to a subclass of
20388         gimple_opt_pass along with...
20389         (pass_data_fre): ...new pass_data instance and...
20390         (make_pass_fre): ...new function.
20391         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20392         subclass of gimple_opt_pass along with...
20393         (pass_data_reassoc): ...new pass_data instance and...
20394         (make_pass_reassoc): ...new function.
20395         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20396         subclass of gimple_opt_pass along with...
20397         (pass_data_sink_code): ...new pass_data instance and...
20398         (make_pass_sink_code): ...new function.
20399         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20400         subclass of gimple_opt_pass along with...
20401         (pass_data_strlen): ...new pass_data instance and...
20402         (make_pass_strlen): ...new function.
20403         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20404         struct to a subclass of gimple_opt_pass along with...
20405         (pass_data_build_alias): ...new pass_data instance and...
20406         (make_pass_build_alias): ...new function.
20407         (pass_build_ealias): Convert from a global struct to a subclass of
20408         gimple_opt_pass along with...
20409         (pass_data_build_ealias): ...new pass_data instance and...
20410         (make_pass_build_ealias): ...new function.
20411         (pass_ipa_pta): Convert from a global struct to a subclass of
20412         simple_ipa_opt_pass along with...
20413         (pass_data_ipa_pta): ...new pass_data instance and...
20414         (make_pass_ipa_pta): ...new function.
20415         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20416         subclass of gimple_opt_pass along with...
20417         (pass_data_uncprop): ...new pass_data instance and...
20418         (make_pass_uncprop): ...new function.
20419         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20420         global struct to a subclass of gimple_opt_pass along with...
20421         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20422         (make_pass_late_warn_uninitialized): ...new function.
20423         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20424         to a subclass of gimple_opt_pass along with...
20425         (pass_data_init_datastructures): ...new pass_data instance and...
20426         (make_pass_init_datastructures): ...new function.
20427         (pass_early_warn_uninitialized): Convert from a global struct to a
20428         subclass of gimple_opt_pass along with...
20429         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20430         (make_pass_early_warn_uninitialized): ...new function.
20431         (pass_update_address_taken): Convert from a global struct to a
20432         subclass of gimple_opt_pass along with...
20433         (pass_data_update_address_taken): ...new pass_data instance and...
20434         (make_pass_update_address_taken): ...new function.
20435         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20436         struct to a subclass of gimple_opt_pass along with...
20437         (pass_data_release_ssa_names): ...new pass_data instance and...
20438         (make_pass_release_ssa_names): ...new function.
20439         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20440         subclass of gimple_opt_pass along with...
20441         (pass_data_stdarg): ...new pass_data instance and...
20442         (make_pass_stdarg): ...new function.
20443         * tree-switch-conversion.c (pass_convert_switch): Convert from a
20444         global struct to a subclass of gimple_opt_pass along with...
20445         (pass_data_convert_switch): ...new pass_data instance and...
20446         (make_pass_convert_switch): ...new function.
20447         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20448         to a subclass of gimple_opt_pass along with...
20449         (pass_data_tail_recursion): ...new pass_data instance and...
20450         (make_pass_tail_recursion): ...new function.
20451         (pass_tail_calls): Convert from a global struct to a subclass of
20452         gimple_opt_pass along with...
20453         (pass_data_tail_calls): ...new pass_data instance and...
20454         (make_pass_tail_calls): ...new function.
20455         * tree-vect-generic.c (pass_lower_vector): Convert from a global
20456         struct to a subclass of gimple_opt_pass along with...
20457         (pass_data_lower_vector): ...new pass_data instance and...
20458         (make_pass_lower_vector): ...new function.
20459         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20460         gimple_opt_pass along with...
20461         (pass_data_lower_vector_ssa): ...new pass_data instance and...
20462         (make_pass_lower_vector_ssa): ...new function.
20463         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20464         to a subclass of gimple_opt_pass along with...
20465         (pass_data_slp_vectorize): ...new pass_data instance and...
20466         (make_pass_slp_vectorize): ...new function.
20467         (pass_ipa_increase_alignment): Convert from a global struct to a
20468         subclass of simple_ipa_opt_pass along with...
20469         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20470         (make_pass_ipa_increase_alignment): ...new function.
20471         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20472         gimple_opt_pass along with...
20473         (pass_data_vrp): ...new pass_data instance and...
20474         (make_pass_vrp): ...new function.
20475         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20476         subclass of simple_ipa_opt_pass along with...
20477         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20478         (make_pass_ipa_free_lang_data): ...new function.
20479         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20480         gimple_opt_pass along with...
20481         (pass_data_tsan): ...new pass_data instance and...
20482         (make_pass_tsan): ...new function.
20483         (pass_tsan_O0): Convert from a global struct to a subclass of
20484         gimple_opt_pass along with...
20485         (pass_data_tsan_O0): ...new pass_data instance and...
20486         (make_pass_tsan_O0): ...new function.
20487         * var-tracking.c (pass_variable_tracking): Convert from a global
20488         struct to a subclass of rtl_opt_pass along with...
20489         (pass_data_variable_tracking): ...new pass_data instance and...
20490         (make_pass_variable_tracking): ...new function.
20491         * web.c (pass_web): Convert from a global struct to a subclass of
20492         rtl_opt_pass along with...
20493         (pass_data_web): ...new pass_data instance and...
20494         (make_pass_web): ...new function.
20495         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20496         declaration with that of...
20497         (make_pass_mode_switch_use): ...new function.
20498         (pass_resolve_sw_modes): Replace declaration with that of...
20499         (make_pass_resolve_sw_modes): ...new function.
20500         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20501         from a global struct to a subclass of rtl_opt_pass along with...
20502         (pass_data_mode_switch_use): ...new pass_data instance and...
20503         (make_pass_mode_switch_use): ...new function.
20504         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20505         from a global struct to a subclass of rtl_opt_pass along with...
20506         (pass_data_resolve_sw_modes): ...new pass_data instance and...
20507         (make_pass_resolve_sw_modes): ...new function.
20508         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20509         struct to a subclass of rtl_opt_pass along with...
20510         (pass_data_insert_vzeroupper): ...new pass_data instance and...
20511         (make_pass_insert_vzeroupper): ...new function.
20512         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20513         global struct to a subclass of rtl_opt_pass along with...
20514         (pass_data_work_around_errata): ...new pass_data instance and...
20515         (make_pass_work_around_errata): ...new function.
20516         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20517         struct to a subclass of rtl_opt_pass along with...
20518         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20519         (make_pass_mips_machine_reorg2): ...new function.
20521 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20523         * passes.c (pass_manager::operator new): New.
20525 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20527         Handwritten part of conversion of passes to C++ classes.
20529         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20530         (toplev.o): Add dep on PASS_MANAGER_H.
20531         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20532         of early local pases to reflect this moving from a global to a
20533         member of gcc::pass_manager.
20534         (cgraph_add_new_function): Likewise.
20535         * lto-cgraph.c (lto_output_node): Update for conversion of
20536         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20537         * passes.c (opt_pass::clone): New.
20538         (opt_pass::gate): New.
20539         (opt_pass::execute): New.
20540         (opt_pass::opt_pass): New.
20541         (pass_manager::execute_early_local_passes): New.
20542         (pass_manager::execute_pass_mode_switching): new.
20543         (finish_optimization_passes): Convert to...
20544         (pass_manager::finish_optimization_passes): ...this.
20545         (finish_optimization_passes): Update for conversion of passes to
20546         C++ classes.
20547         (register_dump_files_1): Use has_gate since we cannot portably
20548         check a vtable entry against NULL.
20549         (dump_one_pass): Likewise.
20550         (ipa_write_summaries_2): Likewise.
20551         (ipa_write_optimization_summaries_1): Likewise.
20552         (ipa_read_summaries_1): Likewise.
20553         (ipa_read_optimization_summaries_1): Likewise.
20554         (execute_ipa_stmt_fixups): Likewise.
20555         (pass_manager::pass_manager): Rewrite pass-creation, invoking
20556         pass-creation functions rather than wiring up globals, and
20557         storing the results in fields of pass_manager generated using
20558         pass-instances.def.
20559         (pass_manager::dump_profile_report): Update for conversion of
20560         passes to C++ classes.
20561         (pass_manager::execute_ipa_summary_passes): Likewise.
20562         (execute_one_ipa_transform_pass): Likewise.
20563         (execute_one_pass): Use has_gate and has_execute since we cannot
20564         portably check a vtable entry against NULL.
20565         * pass_manager.h (pass_manager::finish_optimization_passes): New.
20566         (pass_manager): Use pass-instances.def to add fields for the
20567         various pass instances.
20568         * toplev.c (finalize): Update for move of
20569         finish_optimization_passes to a method of gcc::pass_manager.
20570         * toplev.h (finish_optimization_passes): Move to method of class
20571         pass_manager.
20572         * tree-pass.h (struct pass_data): New.
20573         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20574         (opt_pass::gate): Convert to virtual function.
20575         (opt_pass::~opt_pass): New.
20576         (opt_pass::clone): New.
20577         (opt_pass::execute): Convert to virtual function.
20578         (opt_pass::opt_pass): New.
20579         (opt_pass::ctxt_): new.
20580         (gimple_opt_pass): Convert to subclass of opt_pass.
20581         (gimple_opt_pass::gimple_opt_pass): New.
20582         (rtl_opt_pass): Convert to subclass of opt_pass.
20583         (rtl_opt_pass::rtl_opt_pass): New.
20584         (ipa_opt_pass_d): Convert to subclass of opt_pass.
20585         (ipa_opt_pass_d::ipa_opt_pass_d): New.
20586         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20587         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20588         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20589         invocation of pass_mode_switching to reflect this moving from a
20590         global to a member of gcc::pass_manager.
20591         (ix86_option_override): Rework how pass_insert_vzeroupper is
20592         added to the pass_manager to reflect autogenerated changes.
20593         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20595 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
20597         PR rtl-optimization/57708
20598         * recog.c (peep2_find_free_register): Validate all regs in a
20599         multi-reg mode.
20601 2013-08-05  Jan Hubicka  <jh@suse.cz>
20603         PR lto/57602
20604         * cgraph.c (verify_cgraph_node): Accept local flags from other
20605         partitions.
20606         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20607         (function_and_variable_visibility): Likewise.
20608         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20610 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20612         * graph.c (init_graph_slim_pretty_print): Remove.
20613         (print_graph_cfg): Do not call it.  Use local pretty printer.
20614         (start_graph_dump): Likewise.
20616 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20618         * gimple-pretty-print.c (buffer): Remove.
20619         (initialized): Likewise.
20620         (maybe_init_pretty_print): Likewise.
20621         (print_gimple_stmt): Do not call it.  Use non-static local
20622         pretty_printer variable.
20623         (print_gimple_expr): Likewise.
20624         (print_gimple_seq): Likewise.
20625         (gimple_dump_bb): Likewise.
20627 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20629         * asan.c (asan_pp): Remove.
20630         (asan_pp_initialized): Likewise.
20631         (asan_pp_initialize): Likewise.
20632         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
20633         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
20634         (asan_add_global): Likewise.
20636 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20638         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
20639         * diagnostic.h (diagnostic_flush_buffer): Adjust.
20640         * pretty-print.c (pp_formatted_text_data): Likewise.
20641         (pp_indent): Rename from pp_base_indent.
20642         (pp_format): Rename from pp_base_format.
20643         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20644         (pp_format_verbatim): Rename from pp_base_format_verbatim.
20645         (pp_flush): Rename from pp_base_flush.
20646         (pp_set_line_maximum_length): Rename from
20647         pp_base_set_line_maximum_length.
20648         (pp_clear_output_area): Rename from pp_base_clear_output_area.
20649         (pp_set_prefix): Rename from pp_base_set_prefix.
20650         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20651         (pp_emit_prefix): Rename from pp_base_emit_prefix.
20652         (pp_append_text): Rename from pp_base_append_text.
20653         (pp_formatted_text): Rename from pp_base_formatted_text.
20654         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20655         (pp_remaining_character_count_for_line): Rename from
20656         pp_base_remaining_character_count_for_line.
20657         (pp_newline): Rename from pp_base_newline.
20658         (pp_character): Rename from pp_base_character.
20659         (pp_string): Rename from pp_base_string.
20660         (pp_maybe_space): Rename from pp_base_maybe_space.
20661         * asan.c (asan_pp_string): Adjust.
20662         (asan_emit_stack_protection): Likewise.
20663         (asan_add_global): Likewise.
20664         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20665         * tree-mudflap.c (mf_varname_tree): Likewise.
20666         * tree-pretty-print.c (pp_tree_identifier): Rename from
20667         pp_base_tree_identifier.
20668         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20669         Declare as function.
20671 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20673         * pretty-print.h (pp_bar_bar): New.
20674         (pp_ampersand_ampersand): Likewise.
20675         (pp_less_equal): Likewise.
20676         (pp_greater_equal): Likewise.
20677         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20678         printer functions instead of pp_string or operators and punctuators.
20679         (dump_gimple_call): Likewise.
20680         (dump_gimple_omp_for): Likewise.
20681         (dump_gimple_transaction): Likewise.
20682         (dump_gimple_phi): Likewise.
20683         (pp_gimple_stmt_1): Likewise.
20684         * sched-vis.c (print_insn): Likewise.
20685         * tree-mudflap.c (mf_varname_tree): Likewise.
20686         * tree-pretty-print.c (dump_block_node): Likewise.
20687         (dump_generic_node): Likewise.
20689 2013-08-02  Jan Hubicka  <jh@suse.cz>
20691         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
20692         boundaries.
20693         * lto-streamer-out.c (tree_is_indexable): Results decls and
20694         parm decls are not indexable.
20695         (DFS_write_tree_body): Do not follow args and results.
20696         (hash_tree): Likewise.
20697         (output_functions): Rearrange so struct function is needed
20698         only when real body is output; be able to also ouptut abstract
20699         functions; output DECL_ARGUMENTS and DECL_RESULT.
20700         (lto_output): When not in WPA, ale store abstract functions.
20701         (write_symbol): Do not care about RESULT_DECL.
20702         (output_symbol_p): Handle correctly sbtract decls.
20703         * lto-streamer-in.c (input_function): Rearrange so struct
20704         function can be NULL at entry; allow streaming of
20705         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20706         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20707         sanity check during LTO.
20708         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20709         RESULT_DECl and DECL_ARGUMENTS.
20710         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20711         Likewise.
20713 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20715         * pretty-print.h (pp_underscore): New.
20716         (pp_comma): Tidy.
20717         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20718         printer functions instead of pp_character.
20719         (dump_binary_rhs): Likewise.
20720         (dump_ternary_rhs): Likewise.
20721         (dump_gimple_call_args): Likewise.
20722         (pp_points_to_solution): Likewise.
20723         (dump_gimple_call): Likewise.
20724         (dump_gimple_switch): Likewise.
20725         (dump_gimple_cond): Likewise.
20726         (dump_gimple_bind): Likewise.
20727         (dump_gimple_try): Likewise.
20728         (dump_gimple_omp_for): Likewise.
20729         (dump_gimple_omp_continue): Likewise.
20730         (dump_gimple_omp_single): Likewise.
20731         (dump_gimple_omp_sections): Likewise.
20732         (dump_gimple_omp_block): Likewise.
20733         (dump_gimple_omp_critical): Likewise.
20734         (dump_gimple_transaction): Likewise.
20735         (dump_gimple_asm): Likewise.
20736         (dump_gimple_phi): Likewise.
20737         (dump_gimple_omp_parallel): Likewise.
20738         (dump_gimple_omp_task): Likewise.
20739         (dump_gimple_omp_atomic_load): Likewise.
20740         (dump_gimple_omp_atomic_store): Likewise.
20741         (dump_gimple_mem_ops): Likewise.
20742         (pp_gimple_stmt_1): Likewise.
20743         (pp_cfg_jump): Likewise.
20744         (dump_implicit_edges): Likewise.
20745         (gimple_dump_bb_for_graph): Likewise.
20746         * graph.c (draw_cfg_node): Likewise.
20747         * langhooks.c (lhd_print_error_function): Likewise.
20748         * sched-vis.c (print_exp): Likewise.
20749         (print_value): Likewise.
20750         (print_pattern): Likewise.
20751         (print_insn): Likewise.
20752         (rtl_dump_bb_for_graph): Likewise.
20753         * tree-pretty-print.c (dump_function_declaration): Likewise.
20754         (dump_array_domain): Likewise.
20755         (dump_omp_clause): Likewise.
20756         (dump_location): Likewise.
20757         (dump_generic_node): Likewise.
20758         (print_struct_decl): Likewise.
20759         * diagnostic.c (diagnostic_show_locus): Use pp_space.
20761 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20763         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20764         candidate table when replacing a candidate statement.
20765         (replace_rhs_if_not_dup): Likewise.
20766         (replace_one_candidate): Likewise.
20768 2013-08-02  Jan Hubicka  <jh@suse.cz>
20769             Martin Liska  <marxin.liska@gmail.com>
20771         * cgraphunit.c (add_new_function): Fix logic when adding from
20772         late IPA pass.
20773         (assemble_thunk): Rename to ...
20774         (expand_thunk); .. this one; export; get it working with
20775         general functions; make produced gimple valid.
20776         * cgraph.h (expand_thunk): Declare.
20778 2013-08-02  Jan Hubicka  <jh@suse.cz>
20780         * ipa-cp.c (gather_context_independent_values): Use
20781         ipa_get_param_move_cost.
20782         (get_replacement_map): Remove PARAM; move parameter folding
20783         into tree-inline.c
20784         (create_specialized_node): Update.
20785         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
20786         assert that we have gimple body; update move_cost.
20787         (count_formal_params): Assert that we have gimple body.
20788         (ipa_dump_param): New function.
20789         (ipa_alloc_node_params): Break out from ...
20790         (ipa_initialize_node_params): ... here.
20791         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
20792         (ipa_write_node_info): Stream move costs.
20793         (ipa_read_node_info): Read move costs.
20794         (ipa_update_after_lto_read): Do not recompute node params.
20795         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
20796         (ipa_get_param): Check we are not in WPA.
20797         (ipa_get_param_move_cost): New.
20798         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
20799         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
20800         parm numbers to be present.
20802 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20804         PR rtl-optimization/58048
20805         * lra-constraints.c (process_alt_operands): Don't check asm
20806         operand on register.
20808 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
20810         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
20811         the implied StoreLoad barrier for atomic operations if before.
20813 2013-08-02  Jan Hubicka  <jh@suse.cz>
20814             Martin Liska  <marxin.liska@gmail.com>
20816         * cgraph.c (cgraph_function_body_availability): Do not check
20817         cgraph flags.
20818         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
20819         symtab_node_availability): Declare.
20820         * ipa.c (can_replace_by_local_alias): New.
20821         (function_and_variable_visibility): Use it.
20822         * symtab.c (symtab_for_node_and_aliases,
20823         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
20825 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20827         PR rtl-optimization/57963
20828         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
20829         (lra_constraints): Use them.
20831 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
20833         * config/arm/types.md (define_attr "type"): Add "load_acq"
20834         and "store_rel".
20835         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
20836         changes.
20837         (cortex_a53_store1): Likewise.
20839 2013-08-01  Jan Hubicka  <jh@suse.cz>
20841         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
20842         partitions are not needed.
20844 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
20846         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
20847         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
20848         MAYBE_NON_Q_CLASS_P where appropriate.
20850 2013-08-01  Jan Hubicka  <jh@suse.cz>
20852         * cgraph.h (release_function_body): Declare.
20853         * tree.c (free_lang_data_in_decl): Free, parameters and return values
20854         of unused delcarations.
20856 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20858         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
20859         RTL form when subtracting a constant.
20861 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20863         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
20864         Generate canonical plus rtx with negated immediate instead of minus
20865         where appropriate.
20866         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
20868 2013-08-01  Jan Hubicka  <jh@suse.cz>
20870         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
20871         (cgraph_release_function_body): Likewise.
20872         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
20873         * cgraph.h (cgrpah_node): Rename abstract_and_needed
20874         to used_as_abstract_origin.
20875         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
20876         symbols used as abstract origins.
20877         * cgraphunit.c (analyze_functions): Update.
20878         * ipa.c (symtab_remove_unreachable_nodes): Recompute
20879         used_as_abstract_origin.
20880         * tree-inline.c (tree_function_versioning): Update
20881         used_as_abstract_origin; be ready for DECL_RESULT and
20882         DECL_ARGUMENTS to be NULL.
20884         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
20885         for abstract functions.
20886         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
20887         real symbols.
20889 2013-08-01  Jan Hubicka  <jh@suse.cz>
20891         * profile.c (compute_value_histograms): Fix thinko.
20893 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20895         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
20896         aarch-common-protos.h to extra_headers.
20897         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20898         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
20899         * config/aarch64/t-aarch64 (aarch-common.o): Define.
20901 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20903         * config/aarch64/aarch64.md (define_attr "type"): Delete.
20904         Include "../arm/types.md".  Define "type" attribute for all patterns.
20905         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
20906         attribute changes.
20908 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
20910         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
20911         to support power8 load fusion.
20912         (fusion_gpr_mem_load): Likewise.
20914         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
20916         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
20917         declarations for power8 load fusion.
20918         (emit_fusion_gpr_load): Likewise.
20920         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20921         tuning for power8, turn on fusion mode by default.  Turn on sign
20922         extending fusion mode if normal fusion mode is on, and we are at
20923         -O2 or -O3.
20924         (fusion_gpr_load_p): New function, return true if we can fuse an
20925         addis instruction with a dependent load to a GPR.
20926         (emit_fusion_gpr_load): Emit the instructions for power8 load
20927         fusion to GPRs.
20929         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
20930         (VSX load fusion peepholes): New peepholes to fuse together an
20931         addi instruction with a VSX load instruction.
20933         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
20934         peepholes to fuse an addis instruction with a load to a GPR base
20935         register.  If we are supporting sign extending fusions, convert
20936         sign extending loads to zero extending loads and add an explicit
20937         sign extension.
20939 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20941         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
20942         aarch-common-protos.h to extra_headers.
20943         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20944         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
20945         (arm_early_store_addr_dep): Likewise.
20946         (arm_no_early_alu_shift_dep): Likewise.
20947         (arm_no_early_alu_shift_value_dep): Likewise.
20948         (arm_no_early_mul_dep): Likewise.
20949         (arm_no_early_store_addr_dep): Likewise.
20950         (arm_mac_accumulator_is_mul_result): Likewise.
20951         (arm_mac_accumulator_is_result): Likewise.
20952         * config/arm/aarch-common.c: ... here.  New file.
20953         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
20954         here to ...
20955         (arm_early_store_addr_dep): Likewise.
20956         (arm_no_early_alu_shift_dep): Likewise.
20957         (arm_no_early_alu_shift_value_dep): Likewise.
20958         (arm_no_early_mul_dep): Likewise.
20959         (arm_no_early_store_addr_dep): Likewise.
20960         (arm_mac_accumulator_is_mul_result): Likewise.
20961         (arm_mac_accumulator_is_result): Likewise.
20962         * config/arm/aarch-common-protos.h: ... here.  New file.
20963         * config/arm/t-arm (aarch-common.o): Define.
20965 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20967         * config/arm/arm.md: Include new file "types.md".
20968         (define_attr "type"): Move from here to ...
20969         (define_attr "mul32"): Likewise.
20970         (define_attr "mul64"): Likewise.
20971         * config/arm/types.md: ... here.  New file.
20973 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20975         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
20976         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
20978 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20980         * gen-pass-instances.awk: Fix offset of substr().
20982 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
20984         * Makefile.in (pass-instances.def): New.
20985         (passes.o): Replace dependency on passes.def with one on
20986         pass-instances.def
20988         * gen-pass-instances.awk: New.
20990         * passes.c (pass_manager::pass_manager): Use pass-instances.def
20991         rather than passes.def, updating local definition of NEXT_PASS
20992         macro to add an extra NUM parameter (currently unused).
20994 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
20996         * Makefile.in (PASS_MANAGER_H): New.
20997         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
20998         (passes.o): Likewise.
20999         (statistics.o): Likewise.
21000         (cgraphunit.o): Likewise.
21001         (context.o): Depend on PASS_MANAGER_H.
21003         * pass_manager.h: New.
21005         * cgraphunit.c (cgraph_add_new_function): Update for moves
21006         of globals to fields of pass_manager.
21007         (analyze_function): Likewise.
21008         (expand_function): Likewise.
21009         (ipa_passes): Likewise.
21010         (compile): Likewise.
21012         * context.c (context::context): New.
21013         * context.h  (context::context): New.
21014         (context::get_passes): New.
21015         (context::passes_): New.
21017         * lto-cgraph.c (input_node): Update for moves of globals to
21018         fields of pass_manager.
21020         * passes.c (all_passes): Remove, in favor of a field of the
21021         same name within the new class pass_manager.
21022         (all_small_ipa_passes): Likewise.
21023         (all_lowering_passes): Likewise.
21024         (all_regular_ipa_passes): Likewise.
21025         (all_late_ipa_passes): Likewise.
21026         (all_lto_gen_passes): Likewise.
21027         (passes_by_id): Likewise.
21028         (passes_by_id_size): Likewise.
21029         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21030         the new class pass_manager.
21031         (set_pass_for_id): Convert to...
21032         (pass_manager::set_pass_for_id): ...method.
21033         (get_pass_for_id): Convert to...
21034         (pass_manager::get_pass_for_id): ...method.
21035         (register_one_dump_file): Move body of implementation into...
21036         (pass_manager::register_one_dump_file): ...here.
21037         (register_dump_files_1): Convert to...
21038         (pass_manager::register_dump_files_1): ...method.
21039         (register_dump_files): Convert to...
21040         (pass_manager::register_dump_files): ...method.
21041         (create_pass_tab): Update for moves of globals to fields of
21042         pass_manager.
21043         (dump_passes): Move body of implementation into...
21044         (pass_manager::dump_passes): ...here.
21045         (register_pass): Move body of implementation into...
21046         (pass_manager::register_pass): ...here.
21047         (init_optimization_passes): Convert into...
21048         (pass_manager::pass_manager): ...constructor for new
21049         pass_manager class, and initialize the pass_lists array.
21050         (check_profile_consistency): Update for moves of globals to
21051         fields of pass_manager.
21052         (dump_profile_report): Move body of implementation into...
21053         (pass_manager::dump_profile_report): ...here.
21054         (ipa_write_summaries_1): Update for moves of pass lists from
21055         being globals to fields of pass_manager.
21056         (ipa_write_optimization_summaries): Likewise.
21057         (ipa_read_summaries):  Likewise.
21058         (ipa_read_optimization_summaries): Likewise.
21059         (execute_all_ipa_stmt_fixups): Likewise.
21061         * statistics.c (statistics_fini): Update for moves of globals to
21062         fields of pass_manager.
21064         * toplev.c (general_init): Replace call to
21065         init_optimization_passes with construction of the pass_manager
21066         instance.
21068         * tree-pass.h (all_passes): Remove, in favor of a field of the
21069         same name within the new class pass_manager.
21070         (all_small_ipa_passes): Likewise.
21071         (all_lowering_passes): Likewise.
21072         (all_regular_ipa_passes): Likewise.
21073         (all_lto_gen_passes): Likewise.
21074         (all_late_ipa_passes): Likewise.
21075         (passes_by_id): Likewise.
21076         (passes_by_id_size): Likewise.
21077         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21078         the new class pass_manager.
21079         (get_pass_for_id): Remove.
21081 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21083         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21084         configs.
21086 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21088         * arm.md (mulhi3): New expand pattern.
21090 2013-07-30  Jan Hubicka  <jh@suse.cz>
21091             Martin Liska  <marxin.liska@gmail.com>
21093         * profile.c (compute_value_histograms): Do not ICE when
21094         there is mismatch only on some counters.
21096 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21098         PR rtl-optimization/57637
21099         * function.c (move_insn_for_shrink_wrap): Also check the
21100         GEN set of the LIVE problem for the liveness analysis
21101         if it exists, otherwise give up.
21103 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21105         PR tree-optimization/57993
21106         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21107         replaced statement in the candidate table.
21108         (phi_add_costs): Return infinite cost when the hidden basis does
21109         not dominate all phis on which the candidate is dependent.
21110         (replace_one_candidate): Record replaced statement in the
21111         candidate table.
21113 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21115         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21116         (ashlv2si3): New expander.
21117         (*ashlv2si3_i): New define_insn_and_split.
21118         * predicates.md (float_operation): Allow patterns with three
21119         basic sub-patterns.
21121         PR rtl-optimization/58021
21122         * mode-switching.c (create_pre_exit): Always split off preceding
21123         insns if we are not at the basic block head.
21125 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
21127         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21128         (UCLIBC_DYNAMIC_LINKER): New macro.
21129         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21130         `-mnan=2008'.
21131         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21132         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
21133         `-mnan=2008'.
21134         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21135         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21136         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21137         for SF and DF modes.  Use ieee_quad_format for TF mode.
21138         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21139         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21140         (mips_option_override): Handle `-mnan=legacy'.
21141         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21142         `-mabs=2008' and `-mnan=2008'.
21143         (OPTION_DEFAULT_SPECS): Add "nan" default.
21144         (ASM_SPEC): Handle `-mnan='.
21145         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21146         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21147         comment accordingly.
21148         (neg<mode>2): Likewise.
21149         * config/mips/mips.opt (mabs, mnan): New options.
21150         * doc/install.texi (Configuration): Document `--with-nan=' option.
21151         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21152         `-mnan=' options.
21153         (MIPS Options): Document them.
21154         * config.gcc <mips*-*-*>: Handle `--with-nan='.
21155         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21156         * configure: Regenerate.
21157         * config.in: Regenerate.
21159 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21161         * config/i386/i386.md (float post-reload splitters): Do not check
21162         for subregs of SSE registers.
21164 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21165             H.J. Lu  <hongjiu.lu@intel.com>
21167         PR target/57954
21168         PR target/57988
21169         * config/i386/i386.md (post-reload splitter
21170         to avoid partial SSE reg dependency stalls): New pattern.
21172 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21174         * config/s390/s390.md ("movcc"): Swap load and store instructions.
21176 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
21178         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21179         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21181 2013-07-26  Cary Coutant  <ccoutant@google.com>
21183         * dwarf2out.c (die_checksum_ordered): Don't include template
21184         instantiations in signature.
21185         (is_template_parameter): New function.
21186         (is_template_instantiation): New function.
21187         (generate_skeleton_bottom_up): Don't include template instantiations
21188         in type unit DIE.
21189         (generate_skeleton): Likewise.
21190         (break_out_comdat_types): Move recursive call to break out nested
21191         types earlier.
21192         (prune_unused_types_mark_generic_parms_dies): Call
21193         is_template_parameter.
21195 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
21197         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21198         uses vector registers.
21199         * config/aarch64/iterators.md: Add attributes rtn and vas.
21201 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21202             Richard Earnshaw  <richard.earnshaw@arm.com>
21204         * combine.c (simplify_comparison): Re-canonicalize operands
21205         where appropriate.
21206         * config/arm/arm.md (movcond_addsi): New splitter.
21208 2013-07-25  Sterling Augustine  <saugustine@google.com>
21210         * dwarf2out.c (size_of_pubnames): Move code to...
21211         (include_pubname_in_output): ...here.  New.
21212         (want_pubnames): Rearrange.
21213         (output_pubnames): Call include_pubname_in_output.  Move assertion.
21215 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21217         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21219 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21221         PR target/38836
21222         * doc/extend.texi: Remove obsolete builtins. Fix
21223         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21225 2013-07-25  Jan Hubicka  <jh@suse.cz>
21227         * cgraph.c (release_function_body): Break out from ...
21228         (cgraph_release_function_body): ... this one; also release DECL_RESULT
21229         and DECL_ARGUMENTS.
21230         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21231         old_tree in the map.
21232         (create_specialized_node): Update.
21233         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21234         into index.
21235         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21236         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21237         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21238         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21239         DECL_RESULT.
21241 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21243         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21244         addsi3_carryin_alt2_<optab>): Correct output template.
21246 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21248         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21249         Adjust for arm_restrict_it.
21250         Remove trailing whitespace.
21252 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
21254         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21255         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21257         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21259 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
21261         PR rtl-optimization/57960
21262         * lra-constraints.c (process_alt_operands): Use the right mode
21263         when checking strict_low.
21265 2013-07-25  Jan Hubicka  <jh@suse.cz>
21267         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21268         * cgraph.c (cgraph_remove_node): Do not release function body
21269         when in cgraph streaming.
21270         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21271         in other partitions are not considered reachable; fix handling of
21272         clones.
21274 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21276         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21278 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21280         PR target/19599
21281         PR target/57731
21282         PR target/57837
21283         * config/arm/arm.md ("*sibcall_insn): Replace use of
21284         Ss with US. Adjust output for v5 and v4t.
21285         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21287         * config/arm/constraints.md ("Ss"): Rename to US.
21289 2013-07-25  Terry Guo  <terry.guo@arm.com>
21291         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21292         shift_add/shift_sub0/shift_sub1 RTXs.
21294 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
21295             Anton Blanchard  <anton@au1.ibm.com>
21297         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21298         (altivec_vpks<VI_char>ss): Likewise.
21299         (altivec_vpks<VI_char>us): Likewise.
21300         (altivec_vpku<VI_char>us): Likewise.
21301         (altivec_vpku<VI_char>um): Likewise.
21303 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
21305         Introduce context class.
21307         * Makefile.in (CONTEXT_H): New.
21308         (OBJS): Add context.o.
21309         (toplev.o): Add CONTEXT_H to dependencies.
21310         (context.o): New.
21312         * toplev.c (general_init): Create the singleton gcc::context instance.
21314         * context.c: New.
21316         * context.h: New.
21318 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
21320         PR rtl-optimization/57968
21321         * mode-switching.c (create_pre_exit): Allow instructions that
21322         don't set a return register to need a non-exit mode.
21324 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21325             Anton Blanchard  <anton@au1.ibm.com>
21327         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21328         operands to vperm for little endian.
21329         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21330         of lvsl to create the control mask for a vperm for little endian.
21332 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21333             Anton Blanchard  <anton@au1.ibm.com>
21335         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21336         two operands for little-endian.
21338 2013-07-23  Steve Ellcey  <sellcey@mips.com>
21340         * config/mips/mips.c (mips_case_values_threshold): New.
21341         (TARGET_CASE_VALUES_THRESHOLD): Define.
21343 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21344             Anton Blanchard  <anton@au1.ibm.com>
21346         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21347         selection of field for vector splat in little endian mode.
21349 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
21351         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21352         expanders to rs6000.md.
21353         (ior<mode>3): Likewise.
21354         (and<mode>3): Likewise.
21355         (one_cmpl<mode>2): Likewise.
21356         (nor<mode>3): Likewise.
21357         (andc<mode>3): Likewise.
21358         (eqv<mode>3): Likewise.
21359         (nand<mode>3): Likewise.
21360         (orc<mode>3): Likewise.
21362         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21363         declaration.
21365         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21366         to split multi-word logical operations.
21367         (rs6000_split_logical_di): Likewise.
21368         (rs6000_split_logical): Likewise.
21370         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21371         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21372         and allow TImode operations in 32-bit.
21373         (vsx_and<mode>3_64bit): Likewise.
21374         (vsx_ior<mode>3_32bit): Likewise.
21375         (vsx_ior<mode>3_64bit): Likewise.
21376         (vsx_xor<mode>3_32bit): Likewise.
21377         (vsx_xor<mode>3_64bit): Likewise.
21378         (vsx_one_cmpl<mode>2_32bit): Likewise.
21379         (vsx_one_cmpl<mode>2_64bit): Likewise.
21380         (vsx_nor<mode>3_32bit): Likewise.
21381         (vsx_nor<mode>3_64bit): Likewise.
21382         (vsx_andc<mode>3_32bit): Likewise.
21383         (vsx_andc<mode>3_64bit): Likewise.
21384         (vsx_eqv<mode>3_32bit): Likewise.
21385         (vsx_eqv<mode>3_64bit): Likewise.
21386         (vsx_nand<mode>3_32bit): Likewise.
21387         (vsx_nand<mode>3_64bit): Likewise.
21388         (vsx_orc<mode>3_32bit): Likewise.
21389         (vsx_orc<mode>3_64bit): Likewise.
21391         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21392         logical types in GPRs.
21394         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21395         logical insns to rs6000.md, and allow TImode operations in
21396         32-bit.
21397         (altivec_ior<mode>3): Likewise.
21398         (altivec_xor<mode>3): Likewise.
21399         (altivec_one_cmpl<mode>2): Likewise.
21400         (altivec_nor<mode>3): Likewise.
21401         (altivec_andc<mode>3): Likewise.
21403         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21404         attributes for moving the 128-bit logical operations into
21405         rs6000.md.
21406         (BOOL_REGS_OUTPUT): Likewise.
21407         (BOOL_REGS_OP1): Likewise.
21408         (BOOL_REGS_OP2): Likewise.
21409         (BOOL_REGS_UNARY): Likewise.
21410         (BOOL_REGS_AND_CR0): Likewise.
21411         (one_cmpl<mode>2): Add support for DI logical operations on
21412         32-bit, splitting the operations to 32-bit.
21413         (anddi3): Likewise.
21414         (iordi3): Likewise.
21415         (xordi3): Likewise.
21416         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21417         changes to combine the 32/64-bit code, allow logical operations on
21418         TI mode in 32-bit, and to use similar match_operator patterns like
21419         scalar mode uses.  Combine the Altivec and VSX code for logical
21420         operations, and move it here.
21421         (ior<mode>3, 128-bit types): Likewise.
21422         (xor<mode>3, 128-bit types): Likewise.
21423         (one_cmpl<mode>3, 128-bit types): Likewise.
21424         (nor<mode>3, 128-bit types): Likewise.
21425         (andc<mode>3, 128-bit types): Likewise.
21426         (eqv<mode>3, 128-bit types): Likewise.
21427         (nand<mode>3, 128-bit types): Likewise.
21428         (orc<mode>3, 128-bit types): Likewise.
21429         (and<mode>3_internal): Likewise.
21430         (bool<mode>3_internal): Likewise.
21431         (boolc<mode>3_internal1): Likewise.
21432         (boolc<mode>3_internal2): Likewise.
21433         (boolcc<mode>3_internal1): Likewise.
21434         (boolcc<mode>3_internal2): Likewise.
21435         (eqv<mode>3_internal1): Likewise.
21436         (eqv<mode>3_internal2): Likewise.
21437         (one_cmpl1<mode>3_internal): Likewise.
21439 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21441         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21442         Rename flag_stack_usage to flag_stack_usage_info.
21444 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21446         * config/microblaze/sync.md: New file.
21447         * config/microblaze/microblaze.md: Include sync.md
21448         * config/microblaze/microblaze.c: Add print_operand 'y'.
21449         * config/microblaze/constraints.md: Add memory_contraint
21450         'Q' which is a single register.
21452 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
21454         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21456 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21458         * reload.c (find_reloads): Exit loop once we find this operand
21459         cannot be reloaded somehow for this alternative.
21461         * reload.c (find_reloads): Exit loop once we find a hard register.
21463         * rtlanal.c (computed_jump_p): Exit loop once we find label
21464         reference is used.
21466         * i386.c (ix86_pad_returns): Exit loop after setting replace.
21468         * cfgloopmanip.c (remove_path): Exit loop after setting
21469         irred_invalidated.
21471         * gensupport.c (subst_dup): Avoid loop if code is not
21472         MATCH_DUP nor MATCH_OP_DUP.
21474 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
21476         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21478 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21480         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21481         true for SP_REGNUM if mode == ptr_mode.
21482         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21483         with value R0_REGNUM + 31.
21485 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21487         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21488         pad pointer-typed argument downward.
21490 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21492         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21493         and __ILP32__ when the ILP32 model is in use.
21495 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21497         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21498         (aarch64_load_symref_appropriately): In the case of
21499         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21500         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21501         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21502         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21503         if 'mode' doesn't equal to 'ptr_mode'.
21504         (aarch64_output_mi_thunk): Add an assertion on the alignment of
21505         'vcall_offset'; change to call aarch64_emit_move differently depending
21506         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21507         to calculate the upper bound of 'vcall_offset'.
21508         (aarch64_cannot_force_const_mem): Change to also return true if
21509         mode != ptr_mode.
21510         (aarch64_legitimize_reload_address): In the case of large
21511         displacements, add new local variable 'xmode' and an assertion
21512         based on it; change to use 'xmode' to generate the new rtx and
21513         reload.
21514         (aarch64_asm_trampoline_template): Change to generate the template
21515         differently depending on TARGET_ILP32 or not; change to use
21516         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21517         (aarch64_trampoline_size): Removed.
21518         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21519         and replace immediate literals with it.  Change to use 'ptr_mode'
21520         instead of 'DImode' and call convert_memory_address if the mode
21521         of 'fnaddr' doesn't equal to 'ptr_mode'.
21522         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21523         to output symbol.
21524         (aarch64_elf_asm_destructor): Likewise.
21525         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21526         on TARGET_ILP32 instead of aarch64_trampoline_size.
21527         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21528         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21529         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21530         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
21531         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21532         (storewb_pair<GPI:mode>_<P:mode>): ... this.
21533         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21534         depending on the value of 'mode'.
21535         (add_losym_<mode>): New.
21536         (ldr_got_small_<mode>): New, based on ldr_got_small.
21537         (ldr_got_small): Remove.
21538         (ldr_got_small_sidi): New.
21539         * config/aarch64/iterators.md (P): New.
21540         (PTR): Change to 'ptr_mode' in the condition.
21542 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21544         * config.gcc (aarch64*-*-*): Support --with-abi.
21545         (aarch64*-*-elf): Support --with-multilib-list.
21546         (aarch64*-*-linux*): Likewise.
21547         (supported_defaults): Add abi to aarch64*-*-*.
21548         * configure.ac: Mention AArch64 for --with-multilib-list.
21549         * configure: Re-generated.
21550         * config/aarch64/biarchilp32.h: New file.
21551         * config/aarch64/biarchlp64.h: New file.
21552         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21553         (ABI_SPEC): Ditto.
21554         (MULTILIB_DEFAULTS): Ditto.
21555         (DRIVER_SELF_SPECS): Ditto.
21556         (ASM_SPEC): Update to also substitute -mabi.
21557         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21558         file whose name depends on -mabi= and -mbig-endian.
21559         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21560         TARGET_ILP32.
21561         (POINTER_SIZE): New define.
21562         (POINTERS_EXTEND_UNSIGNED): Ditto.
21563         (enum aarch64_abi_type): New enumeration tag.
21564         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21565         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21566         (TARGET_ILP32): New define.
21567         * config/aarch64/aarch64.opt (mabi): New.
21568         (aarch64_abi): New.
21569         (ilp32, lp64): New values for -mabi.
21570         * config/aarch64/t-aarch64 (comma): New define.
21571         (MULTILIB_OPTIONS): Ditto.
21572         (MULTILIB_DIRNAMES): Ditto.
21573         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21574         * doc/invoke.texi: Document -mabi for AArch64.
21576 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
21578         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21580 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21581             Anton Blanchard  <anton@au1.ibm.com>
21583         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21584         endianness when selecting field to splat.
21586 2013-07-22  Eric Christopher  <echristo@gmail.com>
21588         * dwarf2out.c (die_odr_checksum): New function to use
21589         CHECKSUM_ macros and ULEB128 for DIE tag.
21590         (generate_type_signature): Use.
21592 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
21594         * config.gcc (sparc*-*-*): Accept leon3 processor.
21595         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21596         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21597         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21598         * config/sparc/sparc.opt (enum processor_type): Add leon3.
21599         (mfix-ut699): Adjust comment.
21600         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21601         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21602         (CPP_CPU_SPEC): Likewise.
21603         (ASM_CPU_SPEC): Likewise.
21604         * config/sparc/sparc.c (leon3_cost): New constant.
21605         (sparc_option_override): Add leon3 support.
21606         (mem_ref): New function.
21607         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21608         (sparc_do_work_around_errata): Look into the instruction in the delay
21609         slot and adjust accordingly.  Add fix for the data cache nullify issues
21610         of the UT699.  Change insertion position for the NOP.
21611         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21612         (leon3_load): New reservation.
21613         (leon_store): Bump latency to 2.
21614         (grfpu): New automaton.
21615         (grfpu_alu): New unit.
21616         (grfpu_ds): Likewise.
21617         (leon_fp_alu): Adjust.
21618         (leon_fp_mult): Delete.
21619         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21620         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21621         * config/sparc/sparc.md (cpu): Add leon3.
21622         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21623         (swapsi): Likewise.
21624         (atomic_test_and_set): Likewise.
21625         (ldstub): Likewise.
21627 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
21629         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
21630         default for R5900 targets.
21631         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21632         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21633         * config/mips/mips.c (mips_option_override): Report an error for
21634         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
21635         for -march=r5900 -mhard-float.
21637 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21639         * df-problems.c (can_move_insns_across): Exit loop once we
21640         find a non-fixed, non-global register.
21642         * ipa-pure-const.c (propagate_nothrow): Exit loop after
21643         setting can_throw.
21645         * omega.c (omega_eliminate_red): Break after setting red_found.
21646         (omega_problem_has_red_equations): Similarly after setting found.
21647         (omega_query_variable): Similarly after setting coupled.
21649 2013-07-22  Marek Polacek  <polacek@redhat.com>
21651         * gimplify.c: Don't include gimple.h twice.
21653 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21655         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21656         instead of TARGET_THUMB1.
21657         (Pz): New constraint.
21658         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21659         encodings.
21660         (compare_negsi_si): Likewise.
21661         (compare_addsi2_op0): Likewise.
21662         (compare_addsi2_op1): Likewise.
21663         (addsi3_carryin_<optab>): Likewise.
21664         (addsi3_carryin_alt2_<optab>): Likewise.
21665         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21666         for arm_restrict_it.
21667         (subsi3_carryin): Likewise.
21668         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21669         (minmax_arithsi): Disable for arm_restrict_it.
21670         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21671         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21672         (satsi_<SAT:code>_shift): Likewise.
21673         (arm_shiftsi3): Add alternative for 16-bit encoding.
21674         (arm32_movhf): Disable for arm_restrict_it.
21675         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21676         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21678 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
21680         * config/arm/arm.md (attribute "insn"): Delete.
21681         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21682         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21683         (not_shiftsi): Update for attribute change.
21684         (not_shiftsi_compare0): Likewise.
21685         (not_shiftsi_compare0_scratch): Likewise.
21686         (arm_one_cmplsi2): Likewise.
21687         (thumb1_one_cmplsi2): Likewise.
21688         (notsi_compare0): Likewise.
21689         (notsi_compare0_scratch): Likewise.
21690         (thumb1_movdi_insn): Likewise.
21691         (arm_movsi_insn): Likewise.
21692         (movhi_insn_arch4): Likewise.
21693         (movhi_bytes): Likewise.
21694         (arm_movqi_insn): Likewise.
21695         (thumb1_movqi_insn): Likewise.
21696         (arm32_movhf): Likewise.
21697         (thumb1_movhf): Likewise.
21698         (arm_movsf_soft_insn): Likewise.
21699         (thumb1_movsf_insn): Likewise.
21700         (thumb_movdf_insn): Likewise.
21701         (movsicc_insn): Likewise.
21702         (movsfcc_soft_insn): Likewise.
21703         (and_scc): Likewise.
21704         (cond_move): Likewise.
21705         (if_move_not): Likewise.
21706         (if_not_move): Likewise.
21707         (if_shift_move): Likewise.
21708         (if_move_shift): Likewise.
21709         (if_shift_shift): Likewise.
21710         (if_not_arith): Likewise.
21711         (if_arith_not): Likewise.
21712         (cond_move_not): Likewise.
21713         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21714         (neon_mov<mode>): Likewise.
21715         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21716         (thumb2_movsi_vfp): Likewise.
21717         (movsf_vfp): Likewise.
21718         (thumb2_movsf_vfp): Likewise.
21719         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21720         change.
21721         (cortexa7_older_only): Likewise.
21722         (cortexa7_younger): Likewise.
21723         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21724         (1020alu_shift_op): Likewise.
21725         (1020alu_shift_reg_op): Likewise.
21726         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21727         (alu_shift_op): Likewise.
21728         (alu_shift_reg_op): Likewise.
21729         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21730         (11_alu_shift_op): Likewise.
21731         (11_alu_shift_reg_op): Likewise.
21732         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21733         (9_alu_shift_reg_op): Likewise.
21734         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21735         change.
21736         (cortex_a15_alu_shift): Likewise.
21737         (cortex_a15_alu_shift_reg): Likewise.
21738         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21739         (cortex_a5_alu_shift): Likewise.
21740         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21741         change.
21742         (cortex_a53_alu_shift): Likewise.
21743         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21744         change.
21745         (cortex_a7_alu_reg): Likewise.
21746         (cortex_a7_alu_shift): Likewise.
21747         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21748         (cortex_a8_alu_shift): Likewise.
21749         (cortex_a8_alu_shift_reg): Likewise.
21750         (cortex_a8_mov): Likewise.
21751         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21752         (cortex_a9_dp_shift): Likewise.
21753         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21754         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21755         (cortex_r4_mov): Likewise.
21756         (cortex_r4_alu_shift): Likewise.
21757         (cortex_r4_alu_shift_reg): Likewise.
21758         * config/arm/fa526.md (526_alu_op): Update for attribute change.
21759         (526_alu_shift_op): Likewise.
21760         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21761         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21762         (626te_alu_shift_op): Likewise.
21763         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21764         (726te_alu_op): Likewise.
21765         (726te_alu_shift_op): Likewise.
21766         (726te_alu_shift_reg_op): Likewise.
21767         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21768         (mp626_alu_shift_op): Likewise.
21769         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21770         (pj4_alu_e1_conds): Likewise.
21771         (pj4_alu): Likewise.
21772         (pj4_alu_conds): Likewise.
21773         (pj4_shift): Likewise.
21774         (pj4_shift_conds): Likewise.
21775         (pj4_alu_shift): Likewise.
21776         (pj4_alu_shift_conds): Likewise.
21778 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21780         * config/arm/predicates.md (shiftable_operator_strict_it):
21781         New predicate.
21782         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
21783         Disable cond_exec version for arm_restrict_it.
21784         (thumb2_smaxsi3): Convert to generate cond_exec.
21785         (thumb2_sminsi3): Likewise.
21786         (thumb32_umaxsi3): Likewise.
21787         (thumb2_uminsi3): Likewise.
21788         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
21789         (thumb2_neg_abssi2): Likewise.
21790         (thumb2_mov_scc): Add alternative for 16-bit encoding.
21791         (thumb2_movsicc_insn): Adjust alternatives.
21792         (thumb2_mov_negscc): Disable for arm_restrict_it.
21793         (thumb2_mov_negscc_strict_it): New pattern.
21794         (thumb2_mov_notscc_strict_it): New pattern.
21795         (thumb2_mov_notscc): Disable for arm_restrict_it.
21796         (thumb2_ior_scc): Likewise.
21797         (thumb2_ior_scc_strict_it): New pattern.
21798         (thumb2_cond_move): Adjust for arm_restrict_it.
21799         (thumb2_cond_arith): Disable for arm_restrict_it.
21800         (thumb2_cond_arith_strict_it): New pattern.
21801         (thumb2_cond_sub): Adjust for arm_restrict_it.
21802         (thumb2_movcond): Likewise.
21803         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
21804         (thumb2_zero_extendhisi2_v6): Likewise.
21805         (thumb2_zero_extendqisi2_v6): Likewise.
21806         (orsi_notsi_si): Likewise.
21807         (orsi_not_shiftsi_si): Likewise.
21809 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
21811         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
21812         instruction sequence is 1 byte shorter.
21814 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
21816         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
21817         it is not needed after split.
21819 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
21821         PR target/51784
21822         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
21823         second label for nonlocal goto receivers. Don't output pic base labels
21824         unless we're producing PIC; mark that action unreachable().
21825         (ix86_save_reg): If the function contains a nonlocal label, save the
21826         PIC base reg.
21827         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
21828         * config/darwin.c (emitted_pic_label_num): New GTY.
21829         (update_pic_label_number_if_needed): New.
21830         (machopic_output_function_base_name): Adjust for nonlocal receiver
21831         case.
21832         (machopic_should_output_picbase_label): New.
21833         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
21834         (nonlocal_goto_receiver): New insn and split.
21836 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
21838         * config/aarch64/aarch64-builtins.c
21839         (aarch64_fold_builtin): Fold abs in all modes.
21840         * config/aarch64/aarch64-simd-builtins.def
21841         (abs): Enable for all modes.
21842         * config/aarch64/arm_neon.h
21843         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
21844         (vabs_f64): Add missing intrinsic.
21846 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
21848         * config/aarch64/arm_neon.h (vabs_s64): New function
21850 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
21852         PR target/57516
21853         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
21854         * config/avr/avr.md (adjust_len): Add `round'.
21855         * config/avr/avr-protos.h (avr_out_round): New prototype.
21856         (avr_out_plus): Add `out_label' argument.
21857         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
21858         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
21859         Handle the case where `insn' is just a pattern.
21860         (avr_out_bitop): Handle the case where `insn' is just a pattern.
21861         (avr_out_round): New function.
21862         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
21864 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
21866         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21867         Add check for flag_stack_usage to handle -fstack-usage support
21869 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
21871         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
21872         interaction for new Power8 flags and VSX.
21874 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
21876         PR middle-end/57698
21877         * tree-inline.c (expand_call_inline): Emit errors during
21878         early_inlining only if optimization is not turned on.
21880 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21882         * passes.def: New.
21884         * passes.c (init_optimization_passes): Move the construction of
21885         the pass hierarchy into a new passes.def file.
21887         * Makefile.in (passes.o): Add dependency on passes.def.
21889 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21891         * passes.c (init_optimization_passes): Introduce macros for
21892         constructing the tree of passes (INSERT_PASSES_AFTER,
21893         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
21894         TERMINATE_PASS_LIST).
21896 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
21897             Wei Mi  <wmi@google.com>
21899         PR rtl-optimization/57878
21900         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
21901         top.
21902         (reload_pseudo_compare_func): Check nregs first for reload
21903         pseudos.
21905 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21907         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
21909 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
21911         * read-rtl.c (validate_const_int): Once an invalid character is
21912         seen, quit the loop.
21914         * gengtype.c (write_roots): Similarly once we find the "deletable"
21915         or "if_marked" option.
21917 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21919         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
21920         "xtab" and "sat".  Move value "clz" from here to ...
21921         (attriubte "type"): ... here.
21922         (satsi_<SAT:code>): Delete "insn" attribute.
21923         (satsi_<SAT:code>_shift): Likewise.
21924         (arm_zero_extendqisi2addsi): Likewise.
21925         (arm_extendqisi2addsi): Likewise.
21926         (clzsi2): Update for attribute changes.
21927         (rbitsi2): Likewise.
21928         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
21929         attribute.
21930         (arm_usatsihi): Likewise.
21931         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21933 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21935         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
21936         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
21937         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
21938         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
21939         in alphabetical order.
21940         (attribute "core_cycles"): Update for attribute changes.
21941         (arm_addsi3): Likewise.
21942         (addsi3_compare0): Likewise.
21943         (addsi3_compare0_scratch): Likewise.
21944         (addsi3_compare_op1): Likewise.
21945         (addsi3_compare_op2): Likewise.
21946         (compare_addsi2_op0): Likewise.
21947         (compare_addsi2_op1): Likewise.
21948         (addsi3_carryin_shift_<optab>): Likewise.
21949         (subsi3_carryin_shift): Likewise.
21950         (rsbsi3_carryin_shift): Likewise.
21951         (arm_subsi3_insn): Likewise.
21952         (subsi3_compare0): Likewise.
21953         (subsi3_compare): Likewise.
21954         (arm_andsi3_insn): Likewise.
21955         (thumb1_andsi3_insn): Likewise.
21956         (andsi3_compare0): Likewise.
21957         (andsi3_compare0_scratch): Likewise.
21958         (zeroextractsi_compare0_scratch
21959         (andsi_not_shiftsi_si): Likewise.
21960         (iorsi3_insn): Likewise.
21961         (iorsi3_compare0): Likewise.
21962         (iorsi3_compare0_scratch): Likewise.
21963         (arm_xorsi3): Likewise.
21964         (thumb1_xorsi3_insn): Likewise.
21965         (xorsi3_compare0): Likewise.
21966         (xorsi3_compare0_scratch): Likewise.
21967         (satsi_<SAT:code>_shift): Likewise.
21968         (rrx): Likewise.
21969         (arm_shiftsi3): Likewise.
21970         (shiftsi3_compare0): Likewise.
21971         (not_shiftsi): Likewise.
21972         (not_shiftsi_compare0): Likewise.
21973         (not_shiftsi_compare0_scratch): Likewise.
21974         (arm_one_cmplsi2): Likewise.
21975         (thumb_one_complsi2): Likewise.
21976         (notsi_compare0): Likewise.
21977         (notsi_compare0_scratch): Likewise.
21978         (thumb1_zero_extendhisi2): Likewise.
21979         (arm_zero_extendhisi2): Likewise.
21980         (arm_zero_extendhisi2_v6): Likewise.
21981         (arm_zero_extendhisi2addsi): Likewise.
21982         (thumb1_zero_extendqisi2): Likewise.
21983         (thumb1_zero_extendqisi2_v6): Likewise.
21984         (arm_zero_extendqisi2): Likewise.
21985         (arm_zero_extendqisi2_v6): Likewise.
21986         (arm_zero_extendqisi2addsi): Likewise.
21987         (thumb1_extendhisi2): Likewise.
21988         (arm_extendhisi2): Likewise.
21989         (arm_extendhisi2_v6): Likewise.
21990         (arm_extendqisi): Likewise.
21991         (arm_extendqisi_v6): Likewise.
21992         (arm_extendqisi2addsi): Likewise.
21993         (thumb1_extendqisi2): Likewise.
21994         (thumb1_movdi_insn): Likewise.
21995         (arm_movsi_insn): Likewise.
21996         (movsi_compare0): Likewise.
21997         (movhi_insn_arch4): Likewise.
21998         (movhi_bytes): Likewise.
21999         (arm_movqi_insn): Likewise.
22000         (thumb1_movqi_insn): Likewise.
22001         (arm32_movhf): Likewise.
22002         (thumb1_movhf): Likewise.
22003         (arm_movsf_soft_insn): Likewise.
22004         (thumb1_movsf_insn): Likewise.
22005         (movdf_soft_insn): Likewise.
22006         (thumb_movdf_insn): Likewise.
22007         (arm_cmpsi_insn): Likewise.
22008         (cmpsi_shiftsi): Likewise.
22009         (cmpsi_shiftsi_swp): Likewise.
22010         (arm_cmpsi_negshiftsi_si): Likewise.
22011         (movsicc_insn): Likewise.
22012         (movsfcc_soft_insn): Likewise.
22013         (arith_shiftsi): Likewise.
22014         (arith_shiftsi_compare0
22015         (arith_shiftsi_compare0_scratch
22016         (sub_shiftsi): Likewise.
22017         (sub_shiftsi_compare0
22018         (sub_shiftsi_compare0_scratch
22019         (and_scc): Likewise.
22020         (cond_move): Likewise.
22021         (if_plus_move): Likewise.
22022         (if_move_plus): Likewise.
22023         (if_move_not): Likewise.
22024         (if_not_move): Likewise.
22025         (if_shift_move): Likewise.
22026         (if_move_shift): Likewise.
22027         (if_shift_shift): Likewise.
22028         (if_not_arith): Likewise.
22029         (if_arith_not): Likewise.
22030         (cond_move_not): Likewise.
22031         (thumb1_ashlsi3): Set type attribute.
22032         (thumb1_ashrsi3): Likewise.
22033         (thumb1_lshrsi3): Likewise.
22034         (thumb1_rotrsi3): Likewise.
22035         (shiftsi3_compare0_scratch): Likewise.
22036         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22037         (neon_mov<mode>): Likewise.
22038         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22039         attribute changes.
22040         (thumb2_movsi_insn): Likewise.
22041         (thumb2_cmpsi_neg_shiftsi): Likewise.
22042         (thumb2_extendqisi_v6): Likewise.
22043         (thumb2_zero_extendhisi2_v6): Likewise.
22044         (thumb2_zero_extendqisi2_v6): Likewise.
22045         (thumb2_shiftsi3_short): Likewise.
22046         (thumb2_addsi3_compare0_scratch): Likewise.
22047         (orsi_not_shiftsi_si): Likewise.
22048         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22049         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22050         changes.
22051         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22052         (1020alu_shift_op): Likewise.
22053         (1020alu_shift_reg_op): Likewise.
22054         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22055         (alu_shift_op): Likewise.
22056         (alu_shift_reg_op): Likewise.
22057         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22058         (11_alu_shift_op): Likewise.
22059         (11_alu_shift_reg_op): Likewise.
22060         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22061         (9_alu_shift_reg_op): Likewise.
22062         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22063         changes.
22064         (cortex_a15_alu_shift): Likewise.
22065         (cortex_a15_alu_shift_reg): Likewise.
22066         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22067         changes.
22068         (cortex_a5_alu_shift): Likewise.
22069         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22070         changes.
22071         (cortex_a53_alu_shift): Likewise.
22072         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22073         changes.
22074         (cortex_a7_alu_reg): Likewise.
22075         (cortex_a7_alu_shift): Likewise.
22076         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22077         changes.
22078         (cortex_a8_alu_shift): Likewise.
22079         (cortex_a8_alu_shift_reg): Likewise.
22080         (cortex_a8_mov): Likewise.
22081         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22082         (cortex_a9_dp_shift): Likewise.
22083         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22084         changes.
22085         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22086         changes.
22087         (cortex_r4_mov): Likewise.
22088         (cortex_r4_alu_shift): Likewise.
22089         (cortex_r4_alu_shift_reg): Likewise.
22090         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22091         (526_alu_shift_op): Likewise.
22092         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22093         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22094         (626te_alu_shift_op): Likewise.
22095         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22096         (726te_alu_op): Likewise.
22097         (726te_alu_shift_op): Likewise.
22098         (726te_alu_shift_reg_op): Likewise.
22099         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22100         (mp626_alu_shift_op): Likewise.
22101         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22102         (pj4_alu_e1_conds): Likewise.
22103         (pj4_alu): Likewise.
22104         (pj4_alu_conds): Likewise.
22105         (pj4_shift): Likewise.
22106         (pj4_shift_conds): Likewise.
22107         (pj4_alu_shift): Likewise.
22108         (pj4_alu_shift_conds): Likewise.
22109         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22110         changes.
22111         (cortexa7_older_only): Likewise.
22112         (cortexa7_younger): Likewise.
22114 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22116         * ipa-pure-const.c (generate_summary): Rename to...
22117         (pure_const_generate_summary): ... this.
22119 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
22121         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22123 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
22125         PR target/57909
22126         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22127         usage in HI mode.
22129 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22131         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22132         enabled without -march=zEC12.
22133         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22134         flags to be set.
22136 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22138         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22139         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22140         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22141         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22142         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22143         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22144         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22145         ISA_HAS_FP4.
22146         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22147         and ISA_HAS_NMADD3_NMSUB3.
22148         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22149         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22150         (nmsub4<mode>, nmsub3<mode>): Likewise.
22151         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22153 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22155         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22156         TARGET_MIPS5400 checking.
22158 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
22159             Peter Bergner  <bergner@vnet.ibm.com>
22161         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22162         registers in the comment.
22163         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22164         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22165         rather than FIRST_PSEUDO_REGISTERS.
22167 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
22169         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22170         enable extra ISA flags with TARGET_HTM.
22172 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22174         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22175         Fix comment typos.
22177 2013-07-15  Cong Hou  <congh@google.com>
22179         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22180         in compare function for sorting.
22182 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
22184         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22185         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22186         * config/rs6000/rs6000.opt: Add -mhtm option.
22187         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22188         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22189         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22190         __HTM__ if the HTM instructions are available.
22191         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22192         htm_spr_reg_operand): New define_predicates.
22193         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22194         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22195         Include htm.md.
22196         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22197         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22198         HTM builtin functions.
22199         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22200         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22201         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22202         (rs6000_builtin_mask_calculate): Likewise.
22203         (rs6000_option_override_internal): Likewise.
22204         (bdesc_htm): Add new HTM builtin support.
22205         (htm_spr_num): New function.
22206         (htm_spr_regno): Likewise.
22207         (rs6000_htm_spr_icode): Likewise.
22208         (htm_expand_builtin): Likewise.
22209         (htm_init_builtins): Likewise.
22210         (rs6000_expand_builtin): Add support for HTM builtin functions.
22211         (rs6000_init_builtins): Likewise.
22212         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22213         option.
22214         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22215         (TARGET_HTM, MASK_HTM): Define macros.
22216         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22217         (FIXED_REGISTERS): Likewise.
22218         (CALL_USED_REGISTERS): Likewise.
22219         (CALL_REALLY_USED_REGISTERS): Likewise.
22220         (REG_ALLOC_ORDER): Likewise.
22221         (enum reg_class): Likewise.
22222         (REG_CLASS_NAMES): Likewise.
22223         (REG_CLASS_CONTENTS): Likewise.
22224         (REGISTER_NAMES): Likewise.
22225         (ADDITIONAL_REGISTER_NAMES): Likewise.
22226         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22227         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22228         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22229         * config/rs6000/htm.md: New file.
22230         * config/rs6000/htmintrin.h: New file.
22231         * config/rs6000/htmxlintrin.h: New file.
22233 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22235         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22236         Define SYMBOL_TINY_GOT, update comment.
22237         * config/aarch64/aarch64.c
22238         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22239         (aarch64_expand_mov_immediate): Likewise.
22240         (aarch64_print_operand): Likewise.
22241         (aarch64_classify_symbol): Likewise.
22242         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22243         (ldr_got_tiny): Define.
22245 2013-07-13  Tobias Grosser  <tobias@grosser.es>
22247         PR tree-optimization/54094
22248         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22249           scheduling dimension for the parallelism check from the polyhedral
22250           information in the AST.
22251         * graphite-dependences.c (carries_deps): Do not assume the schedule is
22252           in 2D + 1 form.
22254 2013-07-13  Jason Merrill  <jason@redhat.com>
22256         * print-tree.c (debug_vec_tree): Use debug_raw.
22257         (debug_raw (vec<tree, va_gc> &)): New.
22258         (debug_raw (vec<tree, va_gc> *)): New.
22259         * tree.h: Declare them.
22261 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
22263         * ifcvt.c (ifcvt_after_combine): New static variable.
22264         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22265         for size.
22266         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
22267         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22268         rest_of_handle_if_after_reload): Pass new argument for if_convert.
22270 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
22272         * config/mips/mips.c (mips_expand_call): Remove empty statement.
22274 2013-07-12  Michael Matz  <matz@suse.de>
22276         PR middle-end/55771
22277         * convert.c (convert_to_real): Reject non-float inner types.
22279 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
22281         * config/aarch64/aarch64-protos.h
22282         (aarch64_simd_immediate_valid_for_move): Remove.
22283         * config/aarch64/aarch64.c (simd_immediate_info): New member.
22284         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22285         cases.
22286         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22288 2013-07-11  Steve Ellcey  <sellcey@mips.com>
22290         * config/mips/mips.c (mips_conditional_register_usage): Do not
22291         use t[0-7] registers in MIPS16 mode when optimizing for size.
22293 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
22295         * config/i386/i386.c (dispatch_function_versions): Fix array
22296         indexing of function_version_info to match actual_versions.
22298 2013-07-11  Teresa Johnson  <tejohnson@google.com>
22300         * vec.h (struct va_gc): Move release out-of-line.
22301         (va_gc::release): Call ggc_free on released vec.
22303 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22305         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22306         Require GOT register as additional operand in UNSPEC.
22307         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22308         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22309         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22310         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22311         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22312         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22313         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22315 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
22317         PR target/57631
22318         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22319         name seen by assembler/linker rather if available.
22321 2013-07-11  Andreas Schwab  <schwab@suse.de>
22323         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22325 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
22327         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22329 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
22331         * doc/tm.texi.in: Move hook documentation to ....
22332         * target.def: ... here.
22334         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22335         text on @hook line.
22336         * doc/tm.texi: Regenerate.
22338 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
22340         PR c++/57869
22341         * doc/invoke.texi: Document -Wconditionally-supported.
22343 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22345         PR target/57844
22346         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22347         of my_fp.
22349 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22351         PR target/57506
22352         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22353         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22354         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22355         Remove duplicate devices.
22356         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22357         * config/avr/t-multilib: Regenerate.
22358         * config/avr/avr-tables.opt: Regenerate.
22359         * doc/avr-mmcu.texi: Regenerate.
22361 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22363         PR target/56987
22364         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22366 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
22368         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22369         the cost of MULT when optimizing for size.
22371 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22373         * config/cr16/cr16-protos.h: Don't include target.h.
22375 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
22377         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22378         adjust register size for TDmode and TFmode for VSX registers.
22380 2013-07-08  Kai Tietz  <ktietz@redhat.com>
22382         PR target/56892
22383         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22384         hook_bool_const_tree_true.
22386 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22388         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22389         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22390         * config/s390/s390.md: Define FPR*_REGNUM constants.
22391         Fix FPR2_REGNUM constant (18 -> 17).
22392         ("*trunc<BFP:mode><DFP_ALL:mode>2")
22393         ("*trunc<DFP_ALL:mode><BFP:mode>2")
22394         ("trunc<BFP:mode><DFP_ALL:mode>2")
22395         ("trunc<DFP_ALL:mode><BFP:mode>2")
22396         ("*extend<BFP:mode><DFP_ALL:mode>2")
22397         ("*extend<DFP_ALL:mode><BFP:mode>2")
22398         ("extend<BFP:mode><DFP_ALL:mode>2")
22399         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22400         FPR4_REGNUM.
22402 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
22404         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22406 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22408         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22409         and cfun_fpr_bit_p to cfun_fpr_save_p.
22410         (s390_frame_area, s390_register_info, s390_frame_info)
22411         (s390_emit_prologue, s390_emit_epilogue)
22412         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22413         register numbers.
22414         * config/s390/s390.h: Define *_REGNUM macros for floating point
22415         register numbers.
22417 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22419         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22421 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
22423         PR rtl-optimization/57786
22424         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22425         and break out of the loop when it is set to false.
22427 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
22429         PR target/57819
22430         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22431         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22432         (const_int 63)) 0)).
22433         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22434         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22435         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22437         PR rtl-optimization/57829
22438         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22439         mask bits outside of mode are just sign-extension from mode to HWI.
22441 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22443         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22444         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22445         adjust_address instead of change_address to keep info about alignment.
22446         (emit_strmov): Remove.
22447         (emit_memmov): New function.
22448         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22449         (expand_movmem_epilogue): Likewise and return updated rtx for
22450         destination.
22451         (expand_constant_movmem_prologue): Likewise and return updated rtx for
22452         destination and source.
22453         (decide_alignment): Refactor, handle vector_loop.
22454         (ix86_expand_movmem): Likewise.
22455         (ix86_expand_setmem): Likewise.
22456         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22458 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
22460         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22461         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22463 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22465         * config/i386/sse.md (sse_movlhps): Change alternative 3
22466         of operand 2 to "m".
22468 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22470         PR target/57807
22471         * config/i386/sse.md (iptr): New mode attribute.
22472         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22473         (<sse>_vm<plusminus_insn><mode>3): Ditto.
22474         (<sse>_vmmul<mode>3): Ditto.
22475         (<sse>_vmdiv<mode>3): Ditto.
22476         (sse_vmrcpv4sf2): Ditto.
22477         (<sse>_vmsqrt<mode>2): Ditto.
22478         (sse_vmrsqrtv4sf2): Ditto.
22479         (<sse>_vm<code><mode>3): Ditto.
22480         (avx_vmcmp<mode>3): Ditto.
22481         (<sse>_vmmaskcmp<mode>3): Ditto.
22482         (<sse>_comi): Ditto.
22483         (<sse>_ucomi): Ditto.
22484         (*xop_vmfrcz_<mode>): Ditto.
22485         (*fmai_fmadd_<mode>): Ditto.
22486         (*fmai_fmsub_<mode>): Ditto.
22487         (*fmai_fnmadd_<mode>): Ditto.
22488         (*fmai_fnmsub_<mode>): Ditto.
22489         (*fma4i_vmfmadd_<mode>): Ditto.
22490         (*fma4i_vmfmsub_<mode>): Ditto.
22491         (*fma4i_vmfnmadd_<mode>): Ditto.
22492         (*fma4i_vmfnmsub_<mode>): Ditto.
22493         (*xop_vmfrcz_<mode>): Ditto.
22494         (sse_cvtps2pi): Ditto.
22495         (sse_cvttps2pi): Ditto.
22496         (sse_cvtss2si): Ditto.
22497         (sse_cvtss2si_2): Ditto.
22498         (sse_cvtss2siq_2): Ditto.
22499         (sse_cvttss2si): Ditto.
22500         (sse_cvttss2siq): Ditto.
22501         (sse_cvtsd2si): Ditto.
22502         (sse_cvtsd2si_2): Ditto.
22503         (sse_cvtsd2siq_2): Ditto.
22504         (sse_cvttsd2si): Ditto.
22505         (sse_cvttsd2siq): Ditto.
22506         (sse_cvtsd2ss): Ditto.
22507         (sse_cvtss2sd): Ditto.
22508         (avx2_pbroadcast<mode>): Ditto.
22509         (avx2_pbroadcast<mode>_1): Ditto.
22510         (*avx_vperm_broadcast_v4sf): Ditto.
22512         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22513         (sse_movlhps): Ditto.
22514         (sse_storehps): Ditto.
22515         (sse_loadhps): Ditto.
22516         (sse_storelps): Ditto.
22517         (sse_loadlps): Ditto.
22518         (*vec_concatv4sf): Ditto.
22519         (*vec_interleave_highv2df): Ditto.
22520         (*vec_interleave_lowv2df): Ditto.
22521         (*vec_extractv2df_1_sse): Ditto.
22522         (*vec_extractv2df_0_sse): Ditto.
22523         (sse2_storelpd): Ditto.
22524         (sse2_loadlpd): Ditto.
22525         (sse2_movsd): Ditto.
22526         (*vec_concatv4si): Ditto.
22527         (vec_concatv2di): Ditto.
22529         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22530         for Intel asm dialect.
22531         (mmx_punpcklwd): Ditto.
22532         (mmx_punpckldq): Ditto.
22534         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22535         for intel assembler dialect.
22537 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
22539         PR target/29776
22540         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22541         for BUILT_IN_C{LZ,LRSB}*.
22542         * tree.h (CASE_INT_FN): Add FN##IMAX case.
22543         * tree-vrp.c (extract_range_basic): Handle
22544         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
22545         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22546         fall thru to code calling set_value*.
22547         * builtins.c (expand_builtin): Remove *IMAX cases.
22548         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22549         if width is bigger than 2*HWI.
22551 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
22553         PR rtl-optimization/55342
22554         * lra-int.h (lra_subreg_reload_pseudos): New.
22555         * lra.c: Add undoing optional reloads to the block diagram.
22556         (lra_subreg_reload_pseudos): New.
22557         (lra_optional_reload_pseudos): Change comments.
22558         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
22559         lra_optional_reload_pseudos after undo transformations.
22560         * lra-assigns.c (pseudo_prefix_title): New.
22561         (lra_setup_reg_renumber): Use it.
22562         (spill_for): Ditto.  Check subreg reload pseudos too.
22563         (assign_by_spills): Consider subreg reload pseudos too.
22564         * lra-constraints.c (simplify_operand_subreg): Use
22565         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22566         (curr_insn_transform): Recognize and do optional reloads.
22567         (undo_optional_reloads): New.
22568         (lra_undo_inheritance): Call undo_optional_reloads.
22570 2013-07-05  Thomas Quinot  <quinot@adacore.com>
22572         * tree-complex.c (expand_complex_operations_1): Fix typo.
22574 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
22576         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22577         (tune_params): New member 'const vec_costs'.
22578         * config/aarch64/aarch64.c (generic_vector_cost): New.
22579         (generic_tunings): New member 'generic_vector_cost'.
22580         (aarch64_builtin_vectorization_cost): New.
22581         (aarch64_add_stmt_cost): New.
22582         (TARGET_VECTORIZE_ADD_STMT_COST): New.
22583         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22585 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
22587         PR target/57777
22588         * config/i386/predicates.md (vsib_address_operand): Disallow
22589         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22591 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
22593         PR middle-end/55030
22594         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22595         expand_builtin_setjmp_receiver.
22596         (expand_label): Adjust, call expand_builtin_setjmp_receiver
22597         with NULL for the label parameter.
22598         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22599         the frame-pointer.  Adjust comments.
22600         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22601         only if LABEL is non-NULL.
22603 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
22605         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22606         (ARM_ABI_AAPCS64): Ditto.
22607         (arm_abi): Ditto.
22608         (ARM_DEFAULT_ABI): Ditto.
22610 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22612         * config/aarch64/aarch64-builtins.c
22613         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22614         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22615         (st1): Likewise.
22616         * config/aarch64/aarch64-simd.md
22617         (aarch64_ld1<VALL:mode>): New.
22618         (aarch64_st1<VALL:mode>): Likewise.
22619         * config/aarch64/arm_neon.h
22620         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22622 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
22624         * config/i386/i386.c (gate_insert_vzeroupper): Check if
22625         target ISA is AVX.
22626         (ix86_option_override_internal):Turn on all -mavx target flags by
22627         default as they are dependent on AVX anyway.
22629 2013-07-02  Cary Coutant  <ccoutant@google.com>
22631         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22632         deterministic hash.
22633         (loc_checksum_ordered): Likewise.
22634         (hash_loc_operands): Remove inline keyword.
22636 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
22638         PR tree-optimization/57741
22639         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22640         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22641         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22642         Allow REAL_CST step_exprs if flag_associative_math.
22643         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22645 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22647         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22649 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22651         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22653 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22655         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22656         encoding.
22657         (iorsi3_insn): Likewise.
22658         (arm_xorsi3): Likewise.
22660 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
22662         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
22663         to ...
22664         (attribute "type"): ... here, and prefix with "wmmx_".
22665         (attribute "core_cycles"): Update for attribute changes.
22666         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22667         (tbcstv4hi): Likewise.
22668         (tbcstv2si): Likewise.
22669         (iwmmxt_iordi3): Likewise.
22670         (iwmmxt_xordi3): Likewise.
22671         (iwmmxt_anddi3): Likewise.
22672         (iwmmxt_nanddi3): Likewise.
22673         (iwmmxt_arm_movdi): Likewise.
22674         (iwmmxt_movsi_insn): Likewise.
22675         (mov<mode>_internal): Likewise.
22676         (and<mode>3_iwmmxt): Likewise.
22677         (ior<mode>3_iwmmxt): Likewise.
22678         (xor<mode>3_iwmmxt): Likewise.
22679         (add<mode>3_iwmmxt): Likewise.
22680         (ssaddv8qi3): Likewise.
22681         (ssaddv4hi3): Likewise.
22682         (ssaddv2si3): Likewise.
22683         (usaddv8qi3): Likewise.
22684         (usaddv4hi3): Likewise.
22685         (usaddv2si3): Likewise.
22686         (sub<mode>3_iwmmxt): Likewise.
22687         (sssubv8qi3): Likewise.
22688         (sssubv4hi3): Likewise.
22689         (sssubv2si3): Likewise.
22690         (ussubv8qi3): Likewise.
22691         (ussubv4hi3): Likewise.
22692         (ussubv2si3): Likewise.
22693         (mulv4hi3_iwmmxt): Likewise.
22694         (smulv4hi3_highpart): Likewise.
22695         (umulv4hi3_highpart): Likewise.
22696         (iwmmxt_wmacs): Likewise.
22697         (iwmmxt_wmacsz): Likewise.
22698         (iwmmxt_wmacu): Likewise.
22699         (iwmmxt_wmacuz): Likewise.
22700         (iwmmxt_clrdi): Likewise.
22701         (iwmmxt_clrv8qi): Likewise.
22702         (iwmmxt_clr4hi): Likewise.
22703         (iwmmxt_clr2si): Likewise.
22704         (iwmmxt_uavgrndv8qi3): Likewise.
22705         (iwmmxt_uavgrndv4hi3): Likewise.
22706         (iwmmxt_uavgv8qi3): Likewise.
22707         (iwmmxt_uavgv4hi3): Likewise.
22708         (iwmmxt_tinsrb): Likewise.
22709         (iwmmxt_tinsrh): Likewise.
22710         (iwmmxt_tinsrw): Likewise.
22711         (iwmmxt_textrmub): Likewise.
22712         (iwmmxt_textrmsb): Likewise.
22713         (iwmmxt_textrmuh): Likewise.
22714         (iwmmxt_textrmsh): Likewise.
22715         (iwmmxt_textrmw): Likewise.
22716         (iwmxxt_wshufh): Likewise.
22717         (eqv8qi3): Likewise.
22718         (eqv4hi3): Likewise.
22719         (eqv2si3): Likewise.
22720         (gtuv8qi3): Likewise.
22721         (gtuv4hi3): Likewise.
22722         (gtuv2si3): Likewise.
22723         (gtv8qi3): Likewise.
22724         (gtv4hi3): Likewise.
22725         (gtv2si3): Likewise.
22726         (smax<mode>3_iwmmxt): Likewise.
22727         (umax<mode>3_iwmmxt): Likewise.
22728         (smin<mode>3_iwmmxt): Likewise.
22729         (umin<mode>3_iwmmxt): Likewise.
22730         (iwmmxt_wpackhss): Likewise.
22731         (iwmmxt_wpackwss): Likewise.
22732         (iwmmxt_wpackdss): Likewise.
22733         (iwmmxt_wpackhus): Likewise.
22734         (iwmmxt_wpackwus): Likewise.
22735         (iwmmxt_wpackdus): Likewise.
22736         (iwmmxt_wunpckihb): Likewise.
22737         (iwmmxt_wunpckihh): Likewise.
22738         (iwmmxt_wunpckihw): Likewise.
22739         (iwmmxt_wunpckilb): Likewise.
22740         (iwmmxt_wunpckilh): Likewise.
22741         (iwmmxt_wunpckilw): Likewise.
22742         (iwmmxt_wunpckehub): Likewise.
22743         (iwmmxt_wunpckehuh): Likewise.
22744         (iwmmxt_wunpckehuw): Likewise.
22745         (iwmmxt_wunpckehsb): Likewise.
22746         (iwmmxt_wunpckehsh): Likewise.
22747         (iwmmxt_wunpckehsw): Likewise.
22748         (iwmmxt_wunpckelub): Likewise.
22749         (iwmmxt_wunpckeluh): Likewise.
22750         (iwmmxt_wunpckeluw): Likewise.
22751         (iwmmxt_wunpckelsb): Likewise.
22752         (iwmmxt_wunpckelsh): Likewise.
22753         (iwmmxt_wunpckelsw): Likewise.
22754         (ror<mode>3): Likewise.
22755         (ashr<mode>3_iwmmxt): Likewise.
22756         (lshr<mode>3_iwmmxt): Likewise.
22757         (ashl<mode>3_iwmmxt): Likewise.
22758         (ror<mode>3_di): Likewise.
22759         (ashr<mode>3_di): Likewise.
22760         (lshr<mode>3_di): Likewise.
22761         (ashl<mode>3_di): Likewise.
22762         (iwmmxt_wmadds): Likewise.
22763         (iwmmxt_wmaddu): Likewise.
22764         (iwmmxt_tmia): Likewise.
22765         (iwmmxt_tmiaph): Likewise.
22766         (iwmmxt_tmiabb): Likewise.
22767         (iwmmxt_tmiatb): Likewise.
22768         (iwmmxt_tmiabt): Likewise.
22769         (iwmmxt_tmiatt): Likewise.
22770         (iwmmxt_tmovmskb): Likewise.
22771         (iwmmxt_tmovmskh): Likewise.
22772         (iwmmxt_tmovmskw): Likewise.
22773         (iwmmxt_waccb): Likewise.
22774         (iwmmxt_wacch): Likewise.
22775         (iwmmxt_waccw): Likewise.
22776         (iwmmxt_waligni): Likewise.
22777         (iwmmxt_walignr): Likewise.
22778         (iwmmxt_walignr0): Likewise.
22779         (iwmmxt_walignr1): Likewise.
22780         (iwmmxt_walignr2): Likewise.
22781         (iwmmxt_walignr3): Likewise.
22782         (iwmmxt_wsadb): Likewise.
22783         (iwmmxt_wsadh): Likewise.
22784         (iwmmxt_wsadbz): Likewise.
22785         (iwmmxt_wsadhz): Likewise.
22786         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
22787         (iwmmxt_wabsdiffb): Likewise.
22788         (iwmmxt_wabsdiffh): Likewise.
22789         (iwmmxt_wabsdiffw): Likewise.
22790         (iwmmxt_waddsubhx): Likewise
22791         (iwmmxt_wsubaddhx): Likewise.
22792         (addc<mode>3): Likewise.
22793         (iwmmxt_avg4): Likewise.
22794         (iwmmxt_avg4r): Likewise.
22795         (iwmmxt_wmaddsx): Likewise.
22796         (iwmmxt_wmaddux): Likewise.
22797         (iwmmxt_wmaddsn): Likewise.
22798         (iwmmxt_wmaddun): Likewise.
22799         (iwmmxt_wmulwsm): Likewise.
22800         (iwmmxt_wmulwum): Likewise.
22801         (iwmmxt_wmulsmr): Likewise.
22802         (iwmmxt_wmulumr): Likewise.
22803         (iwmmxt_wmulwsmr): Likewise.
22804         (iwmmxt_wmulwumr): Likewise.
22805         (iwmmxt_wmulwl): Likewise.
22806         (iwmmxt_wqmulm): Likewise.
22807         (iwmmxt_wqmulwm): Likewise.
22808         (iwmmxt_wqmulmr): Likewise.
22809         (iwmmxt_wqmulwmr): Likewise.
22810         (iwmmxt_waddbhusm): Likewise.
22811         (iwmmxt_waddbhusl): Likewise.
22812         (iwmmxt_wqmiabb): Likewise.
22813         (iwmmxt_wqmiabt): Likewise.
22814         (iwmmxt_wqmiatb): Likewise.
22815         (iwmmxt_wqmiatt): Likewise.
22816         (iwmmxt_wqmiabbn): Likewise.
22817         (iwmmxt_wqmiabtn): Likewise.
22818         (iwmmxt_wqmiatbn): Likewise.
22819         (iwmmxt_wqmiattn): Likewise.
22820         (iwmmxt_wmiabb): Likewise.
22821         (iwmmxt_wmiabt): Likewise.
22822         (iwmmxt_wmiatb): Likewise.
22823         (iwmmxt_wmiatt): Likewise.
22824         (iwmmxt_wmiabbn): Likewise.
22825         (iwmmxt_wmiabtn): Likewise.
22826         (iwmmxt_wmiatbn): Likewise.
22827         (iwmmxt_wmiattn): Likewise.
22828         (iwmmxt_wmiawbb): Likewise.
22829         (iwmmxt_wmiawbt): Likewise.
22830         (iwmmxt_wmiawtb): Likewise.
22831         (iwmmxt_wmiawtt): Likewise.
22832         (iwmmxt_wmiawbbn): Likewise.
22833         (iwmmxt_wmiawbtn): Likewise.
22834         (iwmmxt_wmiawtbn): Likewise.
22835         (iwmmxt_wmiawttn): Likewise.
22836         (iwmmxt_wmerge): Likewise.
22837         (iwmmxt_tandc<mode>3): Likewise.
22838         (iwmmxt_torc<mode>3): Likewise.
22839         (iwmmxt_torvsc<mode>3): Likewise.
22840         (iwmmxt_textrc<mode>3): Likewise.
22841         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
22842         (wmmxt_pack): Likewise.
22843         (wmmxt_mult_c1): Likewise.
22844         (wmmxt_mult_c2): Likewise.
22845         (wmmxt_alu_c1): Likewise.
22846         (wmmxt_alu_c2): Likewise.
22847         (wmmxt_alu_c3): Likewise.
22848         (wmmxt_transfer_c1): Likewise.
22849         (wmmxt_transfer_c2): Likewise.
22850         (wmmxt_transfer_c3): Likewise.
22851         (marvell_f_iwmmxt_wstr): Likewise.
22852         (marvell_f_iwmmxt_wldr): Likewise.
22854 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
22856         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
22858 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22860         Revert:
22861         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22862         * lra-constraints.c (need_for_split_p): Check call used hard regs
22863         living through calls.
22865         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
22866         call used regs for call insn.
22868 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
22870         PR target/57736
22871         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
22872         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
22874 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
22876         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
22878 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22880         * lra-constraints.c (need_for_split_p): Check call used hard regs
22881         living through calls.
22883 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
22885         PR target/57744
22886         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
22887         to tie with any other modes.  Eliminate Altivec vector mode tests,
22888         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
22889         code, to return 0 if testing MODE2 for a condition, if we've
22890         already tested MODE1 for the same condition.
22892 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22894         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
22895         layout.
22897 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22899         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22900         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
22902 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22904         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
22905         Define.
22906         (aarch64_symbolic_constant_p): Remove.
22907         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
22908         static.  Fix line length and white space.
22909         (aarch64_symbolic_constant_p): Remove.
22910         * config/aarch64/predicates.md (aarch64_valid_symref):
22911         Use aarch64_classify_symbol_expression.
22913 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22915         * config/arm/constraints.md (Ts): New constraint.
22916         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
22917         16-bit encodings.
22918         (compare_scc): Use "Ts" constraint for operand 0.
22919         (ior_scc_scc): Likewise.
22920         (and_scc_scc): Likewise.
22921         (and_scc_scc_nodom): Likewise.
22922         (ior_scc_scc_cmp): Likewise for operand 7.
22923         (and_scc_scc_cmp): Likewise.
22924         * config/arm/thumb2.md (thumb2_movsi_insn):
22925         Add alternatives for 16-bit encodings.
22926         (thumb2_movhi_insn): Likewise.
22927         (thumb2_movsicc_insn): Likewise.
22928         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
22929         (thumb2_negscc): Use "Ts" constraint.
22930         Move mvn instruction outside cond_exec block.
22931         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
22932         for 16-bit encodings.
22934 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22936         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
22937         encoding.
22938         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
22939         (mulsi3subsi): Likewise.
22940         (mulsidi3adddi): Likewise.
22941         (mulsidi3_v6): Likewise.
22942         (umulsidi3_v6): Likewise.
22943         (umulsidi3adddi_v6): Likewise.
22944         (smulsi3_highpart_v6): Likewise.
22945         (umulsi3_highpart_v6): Likewise.
22946         (mulhisi3tb): Likewise.
22947         (mulhisi3bt): Likewise.
22948         (mulhisi3tt): Likewise.
22949         (maddhisi4): Likewise.
22950         (maddhisi4tb): Likewise.
22951         (maddhisi4tt): Likewise.
22952         (maddhidi4): Likewise.
22953         (maddhidi4tb): Likewise.
22954         (maddhidi4tt): Likewise.
22955         (zeroextractsi_compare0_scratch): Likewise.
22956         (insv_zero): Likewise.
22957         (insv_t2): Likewise.
22958         (anddi_notzesidi_di): Likewise.
22959         (anddi_notsesidi_di): Likewise.
22960         (andsi_notsi_si): Likewise.
22961         (iordi_zesidi_di): Likewise.
22962         (xordi_zesidi_di): Likewise.
22963         (andsi_iorsi3_notsi): Likewise.
22964         (smax_0): Likewise.
22965         (smax_m1): Likewise.
22966         (smin_0): Likewise.
22967         (not_shiftsi): Likewise.
22968         (unaligned_loadsi): Likewise.
22969         (unaligned_loadhis): Likewise.
22970         (unaligned_loadhiu): Likewise.
22971         (unaligned_storesi): Likewise.
22972         (unaligned_storehi): Likewise.
22973         (extv_reg): Likewise.
22974         (extzv_t2): Likewise.
22975         (divsi3): Likewise.
22976         (udivsi3): Likewise.
22977         (arm_zero_extendhisi2addsi): Likewise.
22978         (arm_zero_extendqisi2addsi): Likewise.
22979         (compareqi_eq0): Likewise.
22980         (arm_extendhisi2_v6): Likewise.
22981         (arm_extendqisi2addsi): Likewise.
22982         (arm_movt): Likewise.
22983         (thumb2_ldrd): Likewise.
22984         (thumb2_ldrd_base): Likewise.
22985         (thumb2_ldrd_base_neg): Likewise.
22986         (thumb2_strd): Likewise.
22987         (thumb2_strd_base): Likewise.
22988         (thumb2_strd_base_neg): Likewise.
22989         (arm_negsi2): Add alternative for 16-bit encoding.
22990         (arm_one_cmplsi2): Likewise.
22992 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22994         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
22995         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
22996         (movdfcc): Likewise.
22997         * config/arm/vfp.md (*thumb2_movsf_vfp):
22998         Disable predication for arm_restrict_it.
22999         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23000         (*thumb2_movdfcc_vfp): Likewise.
23001         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23002         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23003         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23004         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23005         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23006         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23007         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23008         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23009         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23010         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23011         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23012         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23013         Disable predication for arm_restrict_it.
23015 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
23017         * config/i386/bmiintrin.h (_bextr_u32): New.
23018         (_bextr_u64): Ditto.
23020 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
23022         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23023         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23024         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23025         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23026         * config/mips/n32-elf.h: ...this new file.
23028 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
23030         PR target/57224
23031         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23032         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23034 2013-06-27  Catherine Moore  <clm@codesourcery.com>
23036         * config/mips/mips-tables.opt: Regenerate.
23037         * config/mips/mips-cpus.def: Add m14ke and m14kec.
23038         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23039         * doc/invoke.texi: Add -m14kc.
23041 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23043         PR target/57623
23044         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23045         constraints of operand 1 and 2.
23047         PR target/57623
23048         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23049         to match RTL canonicalization.  Swap predicates and
23050         constraints of operand 1 and 2.
23052 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
23054         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23055         Process OP_INOUT regs for splitting too.
23057 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23059         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23060         decl before the loop, initialize to NULL.
23061         (vectorizable_load): Initialize ptr_incr to NULL.
23063 2013-06-27  Martin Jambor  <mjambor@suse.cz>
23065         PR lto/57208
23066         * ipa-ref.h (ipa_maybe_record_reference): Declare.
23067         * ipa-ref.c (ipa_maybe_record_reference): New function.
23068         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23069         * ipa-cp.c (create_specialized_node): Record potential references from
23070         aggvals.
23071         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23073 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23075         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23076         parameter 'mode' of type 'enum machine_mode mode'; change to pass
23077         'mode' to force_reg.
23078         (aarch64_add_offset): Update calls to aarch64_force_temporary.
23079         (aarch64_expand_mov_immediate): Likewise.
23081 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23083         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23084         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23086 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23088         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23089         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23090         (struct machine_function): Add tbegin_p.
23091         (s390_canonicalize_comparison): Fold CC mode compares to
23092         conditional jump if possible.
23093         (s390_emit_jump): Return the emitted jump.
23094         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23095         Handle CCRAWmode compares.
23096         (s390_option_override): Default to -mhtm if available.
23097         (s390_reg_clobbered_rtx): Handle floating point regs as well.
23098         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23099         FPRs instead of df_regs_ever_live_p.
23100         (s390_optimize_nonescaping_tx): New function.
23101         (s390_init_frame_layout): Extend clobbered_regs array to cover
23102         FPRs as well.
23103         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23104         (s390_expand_tbegin): New function.
23105         (enum s390_builtin): New enum definition.
23106         (code_for_builtin): New array definition.
23107         (s390_init_builtins): New function.
23108         (s390_expand_builtin): New function.
23109         (TARGET_INIT_BUILTINS): Define.
23110         (TARGET_EXPAND_BUILTIN): Define.
23111         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23112         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23113         (s390_alc_comparison): Likewise.
23114         * config/s390/s390-modes.def: Add CCRAWmode.
23115         * config/s390/s390.h (processor_flags): Add PF_TX.
23116         (TARGET_CPU_HTM): Define macro.
23117         (TARGET_HTM): Define macro.
23118         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23119         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23120         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23121         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23122         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23123         (TBEGIN_MASK, TBEGINC_MASK): New constants.
23124         ("*cc_to_int"): Move up.
23125         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23126         constants other than 0.
23127         ("*ccraw_to_int"): New insn and splitter definition.
23128         ("tbegin", "tbegin_nofloat", "tbegin_retry")
23129         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23130         ("tx_assist"): New expander.
23131         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23132         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23133         * config/s390/s390.opt: Add -mhtm option.
23134         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23135         * config/s390/htmxlintrin.h: New file.
23136         * config/s390/htmintrin.h: New file.
23137         * config/s390/s390intrin.h: New file.
23138         * doc/extend.texi: Document htm builtins.
23139         * config.gcc: Add the new header files to extra_headers.
23141 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
23143         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23144         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23146 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
23147             Pat Haugen  <pthaugen@us.ibm.com>
23148             Peter Bergner  <bergner@vnet.ibm.com>
23150         * config/rs6000/power8.md: New.
23151         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23152         setting for power8 entry.
23153         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23154         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23155         test for Power4/Power5 only.
23156         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23157         support.
23158         (force_new_group): Adjust comment.
23159         * config/rs6000/rs6000.md: Include power8.md.
23161 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
23163         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23164         * config/arm/arm-protos.h (arm_max_conditional_execute): New
23165         declaration.
23166         (tune_params): Update comment.
23167         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23168         (arm_max_conditional_execute): New function.
23169         (thumb2_final_prescan_insn): Use max_insn_skipped and
23170         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23172 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
23174         PR tree-optimization/57705
23175         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23176         SSA_NAME step, provided that it is not defined inside the loop.
23177         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23178         (get_initial_def_for_induction): Handle SSA_NAME IV step.
23180 2013-06-25  Martin Jambor  <mjambor@suse.cz>
23182         PR middle-end/57670
23183         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23184         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23185         calls in the dump.
23186         (ipa_note_param_call): Initialize member_ptr flag.
23187         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23188         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23189         (ipa_write_indirect_edge_info): Stream member_ptr flag.
23190         (ipa_read_indirect_edge_info): Likewise.
23192 2013-06-25  Richard Biener  <rguenther@suse.de>
23194         PR middle-end/56977
23195         * passes.c (init_optimization_passes): Move pass_fold_builtins
23196         and pass_dce earlier with -Og.
23198 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
23200         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23201         <BIT_FIELD_REF>: Remove trailing TAB.
23202         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23203         remove blank line.
23205 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23207         PR tree-optimization/57358
23208         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23209         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23210         (ipa_analyze_params_uses): Generate pessimistic info when true.
23212 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23214         PR tree-optimization/57539
23215         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23216         global.inlined_to of the new node to it.  All callers changed.
23217         * ipa-inline-transform.c (clone_inlined_nodes): New variable
23218         inlining_into, pass it to cgraph_clone_node.
23219         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23220         ipa_free_edge_args_substructures.
23221         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23222         rdesc linked list.  Do not assert rdesc edges have inlined caller.
23223         Assert we have found an rdesc in the rdesc list.
23225 2013-06-24  Richard Biener  <rguenther@suse.de>
23227         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23228         (pointer_set_lookup): Declare.
23229         (class pointer_map): New template class implementing a
23230         generic pointer to T map.
23231         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23232         pointer_map<T>::contains, pointer_map<T>::insert,
23233         pointer_map<T>::traverse): New functions.
23234         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23235         (pointer_set_lookup): New function.
23236         (pointer_set_contains): Use pointer_set_lookup.
23237         (pointer_set_insert): Likewise.
23238         (insert_aux): Remove.
23239         (struct pointer_map_t): Embed a pointer_set_t.
23240         (pointer_map_create): Adjust.
23241         (pointer_map_destroy): Likewise.
23242         (pointer_map_contains): Likewise.
23243         (pointer_map_insert): Likewise.
23244         (pointer_map_traverse): Likewise.
23245         * tree-streamer.h (struct streamer_tree_cache_d): Use a
23246         pointer_map<unsigned> instead of a pointer_map_t.
23247         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23248         (streamer_tree_cache_lookup): Likewise.
23249         (streamer_tree_cache_create): Likewise.
23250         (streamer_tree_cache_delete): Likewise.
23251         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23252         pointer_map<unsigned> instead of a pointer_map_t.
23253         (lto_init_tree_ref_encoder): Adjust.
23254         (lto_destroy_tree_ref_encoder): Likewise.
23255         * lto-section-out.c (lto_output_decl_index): Likewise.
23256         (lto_record_function_out_decl_state): Likewise.
23257         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23259 2013-06-24  Richard Biener  <rguenther@suse.de>
23261         PR tree-optimization/57488
23262         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23264 2013-06-24  Alan Modra  <amodra@gmail.com>
23266         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23267         (gen_easy_altivec_constant): Likewise.
23268         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23269         easy_vector_constant_msb): Likewise.
23271 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
23273         PR target/57688
23274         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23275         add missing return true.
23277 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
23279         PR target/52483
23280         * config/sh/predicates.md (general_extend_operand): Invoke
23281         general_movsrc_operand for memory operands.
23282         (general_movsrc_operand): Allow reg+reg addressing, do not use
23283         general_operand for memory operands.
23285 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
23287         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
23288         when current target options does not apply.
23289         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23290         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23291         * config/i386/bmiintrin.h: Pass appropriate target
23292         attributes to header.
23293         * config/i386/mmintrin.h: Ditto.
23294         * config/i386/nmmintrin.h: Ditto.
23295         * config/i386/avx2intrin.h: Ditto.
23296         * config/i386/fxsrintrin.h: Ditto.
23297         * config/i386/tbmintrin.h: Ditto.
23298         * config/i386/xsaveintrin.h: Ditto.
23299         * config/i386/f16cintrin.h: Ditto.
23300         * config/i386/xtestintrin.h: Ditto.
23301         * config/i386/xsaveoptintrin.h: Ditto.
23302         * config/i386/bmi2intrin.h: Ditto.
23303         * config/i386/lzcntintrin.h: Ditto.
23304         * config/i386/smmintrin.h: Ditto.
23305         * config/i386/wmmintrin.h: Ditto.
23306         * config/i386/x86intrin.h: Remove all header include guards.
23307         * config/i386/prfchwintrin.h: Ditto.
23308         * config/i386/pmmintrin.h: Ditto.
23309         * config/i386/tmmintrin.h: Ditto.
23310         * config/i386/xmmintrin.h: Ditto.
23311         * config/i386/popcntintrin.h: Ditto.
23312         * config/i386/rdseedintrin.h: Ditto.
23313         * config/i386/ammintrin.h: Ditto.
23314         * config/i386/emmintrin.h: Ditto.
23315         * config/i386/immintrin.h: Remove all header include guards.
23316         * config/i386/fma4intrin.h: Ditto.
23317         * config/i386/lwpintrin.h: Ditto.
23318         * config/i386/xopintrin.h: Ditto.
23319         * config/i386/ia32intrin.h: Ditto.
23320         * config/i386/avxintrin.h: Ditto.
23321         * config/i386/rtmintrin.h: Ditto.
23322         * config/i386/fmaintrin.h: Ditto.
23323         * config/i386/mm3dnow.h: Ditto.
23325 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
23327         * common/config/i386/i386-common.c: Handle LZCNT.
23329 2013-06-22  Andi Kleen  <ak@linux.intel.com>
23331         * doc/extend.texi: Use __atomic_store_n instead of
23332         __atomic_store in HLE example.
23334 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
23336         * config/sh/sh.c: Remove <cstdlib> workaround.
23338 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23340         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
23342 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23344         * doc/extend.texi: Document that __atomic_clear and
23345           __atomic_test_and_set should only be used with bool.
23347 2013-06-20  Jan Hubicka  <jh@suse.cz>
23349         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23350         types_same_for_odr.
23351         * tree.c (decls_same_for_odr): New function.
23352         (same_for_edr): New function.
23353         (types_same_for_odr): New function.
23354         (get_binfo_at_offset): Use it.
23355         * tree.h (types_same_for_odr): Declare.
23357 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
23358             Jason Merrill  <jason@redhat.com>
23360         * system.h: Include <cstdlib> as well as <stdlib.h>.
23362 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
23364         PR target/57655
23365         * config/i386/i386.c (construct_container): Report error if
23366         long double is used with disabled x87 float returns.
23368 2013-06-20  Jan Hubicka  <jh@suse.cz>
23370         * lto-cgraph.c (input_symtab): Do not set cgraph state.
23372 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
23374         PR rtl-optimization/57425
23375         PR rtl-optimization/57569
23376         * alias.c (write_dependence_p): Remove parameters mem_mode and
23377         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
23378         Changed all callers.
23379         (canon_anti_dependence): Get comments and semantics in sync.
23380         Add parameter mem_canonicalized.  Changed all callers.
23381         * rtl.h (canon_anti_dependence): Update prototype.
23383 2013-06-20  Richard Biener  <rguenther@suse.de>
23385         * data-streamer-in.c (streamer_read_uhwi): Optimize single
23386         byte case, inline streamer_read_uchar and defer section
23387         overrun check.
23389 2013-06-20  Richard Biener  <rguenther@suse.de>
23391         PR tree-optimization/57584
23392         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23393         SSA names into the expanded expression that take part in
23394         abnormal coalescing.
23396 2013-06-19  Sharad Singhai  <singhai@google.com>
23398         * gcov.c (print_usage): Handle new option.
23399         (process_args): Ditto.
23400         (get_gcov_intermediate_filename): New function.
23401         (output_intermediate_file): New function.
23402         (output_gcov_file): New function
23403         (generate_results): Handle new option.
23404         (release_function): Relase demangled name.
23405         (read_graph_file): Handle demangled name.
23406         (output_lines): Ditto.
23407         * doc/gcov.texi: Document gcov intermediate format.
23409 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
23411         PR bootstrap/57604
23412         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23413         (lra_emit_add): Use the functions.  Add comment about Y as an
23414         address segment.
23416 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
23418         PR driver/57652
23419         * collect2.c (collect_atexit): New.
23420         (collect_exit): Delete.
23421         (main): Register collect_atexit with atexit.
23422         (collect_wait): Change collect_exit to exit.
23423         (do_wait): Same.
23424         * collect2.h (collect_exit): Delete.
23425         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23427 2013-06-19  Wei Mi  <wmi@google.com>
23429         PR rtl-optimization/57518
23430         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23431         if regno is used in paradoxical subreg.
23432         (update_equiv_regs): Check pdx_subregs[regno] before
23433         set a reg to be equivalent with a mem.
23435 2013-06-19  Matthias Klose  <doko@ubuntu.com>
23437         PR driver/57651
23438         * file-find.h (find_a_file): Add a mode parameter.
23439         * file-find.c (find_a_file): Likewise.
23440         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23441         with X_OK for the executables.
23442         * collect2.c (main): Call find_a_file with X_OK.
23444 2013-06-19  Steve Ellcey  <sellcey@mips.com>
23446         PR target/56942
23447         * config/mips/mips.md (casesi_internal_mips16_<mode>):
23448         Use NEXT_INSN instead of next_real_insn.
23450 2013-06-19  Jan Hubicka  <jh@suse.cz>
23452         * cgraph.h (const_value_known_p): Replace by ...
23453         (ctor_for_folding): .. this one.
23454         * cgraphunit.c (process_function_and_variable_attributes): Use it.
23455         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23456         * expr.c (expand_expr_real_1): Likewise.
23457         (string_constant): Likewise.
23458         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23459         * ipa.c (process_references): Likewise.
23460         (symtab_remove_unreachable_nodes): Likewise.
23461         * ipa-inline-analysis.c (param_change_prob): Likewise.
23462         * gimple-fold.c (canonicalize_constructor_val): Likewise.
23463         (get_base_constructor): Likwise.
23464         * varpool.c (varpool_remove_node): Likewise.
23465         (varpool_remove_initializer): LIkewise.
23466         (dump_varpool_node): LIkwise.
23467         (const_value_known_p): Rewrite to ...
23468         (ctor_for_folding): ... this one.
23470 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
23472         PR driver/57651
23473         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23474         PERSONALITY in $PATH derived prefixes.
23476 2013-06-19  Jeff Law  <law@redhat.com>
23478         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23479         in comment.
23481         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23482         (simplify_bitwise_binary): Use it to simpify certain binary ops on
23483         booleans.
23485 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
23487         * config/arm/vfp.md: Move VFP instruction classification documentation
23488         to ...
23489         * config/arm/arm.md: ... here.  Update instruction classification
23490         documentation.
23492 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
23494         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23495         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23496         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
23498 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
23500         PR target/57609
23501         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23502         with NEXT_INSN.  Use tablejump_p to check for jump table data
23503         insns.
23505 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
23507         PR c++/56544
23508         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23509         that now in C++ the value is correct per the C++ standards.
23511 2013-06-19  Richard Biener  <rguenther@suse.de>
23513         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23514         for global context.
23516 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23518         Revert:
23519         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23521         PR target/57609
23522         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23523         with next_active_insn.
23525 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
23527         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23528         functions are inlined during failures to flag an error.
23529         * tree-inline.c (expand_call_inline): Allow the error to be flagged
23530         in early inline pass.
23532 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
23534         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23535         in comments.
23537 2013-06-18  Julian Brown  <julian@codesourcery.com>
23539         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23540         Permit virtual register pre-reload if !strict.
23541         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23542         change.
23543         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23544         prototype.
23545         * config/arm/neon.md (movmisalign<mode>): Use
23546         neon_perm_struct_or_reg_operand instead of
23547         neon_struct_or_register_operand.
23548         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23549         neon_permissive_struct_operand instead of neon_struct_operand.
23550         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23551         neon_vector_mem_operand.
23552         * config/arm/predicates.md (neon_struct_operand): Adjust call to
23553         neon_vector_mem_operand.
23554         (neon_permissive_struct_operand): New.
23555         (neon_struct_or_register_operand): Rename to...
23556         (neon_perm_struct_or_reg_operand): This. Adjust call to
23557         neon_vector_mem_operand.
23559 2013-06-18  Richard Biener  <rguenther@suse.de>
23561         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23562         * lto-streamer.h: Include pointer-set.h.
23563         (struct lto_decl_slot): Remove.
23564         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23565         Remove next_index entry.
23566         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23567         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23568         (lto_init_tree_ref_encoder): Adjust.
23569         (lto_destroy_tree_ref_encoder): Likewise.
23570         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23571         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23572         (lto_output_decl_index): Adjust.
23573         (lto_new_out_decl_state): Likewise.
23574         (lto_record_function_out_decl_state): Likewise.
23575         * lto-streamer-out.c (copy_function): Likewise.
23577 2013-06-18  Richard Biener  <rguenther@suse.de>
23579         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23580         * cgraphunit.c: Include cfgloop.h.
23581         (init_lowered_empty_function): Initialize the loop tree.
23582         (assemble_thunk): Insert new BBs into loops.
23584 2013-06-18  Richard Biener  <rguenther@suse.de>
23586         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23587         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23588         the map from cache entry to cache index optional.
23589         (streamer_tree_cache_replace_tree): Adjust accordingly.
23590         (streamer_tree_cache_append): Likewise.
23591         (streamer_tree_cache_delete): Likewise.
23592         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23593         streamer cache map from cache entry to cache index.
23594         * lto-streamer-out.c (create_output_block): Adjust.
23596 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
23598         * config/arm/arm.md (attribute "insn"): Move multiplication and
23599         division attributes to...
23600         (attribute "type"): ... here.  Remove mult.
23601         (attribute "mul32"): New attribute.
23602         (attribute "mul64"): Add umaal.
23603         (*arm_mulsi3): Update attributes.
23604         (*arm_mulsi3_v6): Likewise.
23605         (*thumb_mulsi3): Likewise.
23606         (*thumb_mulsi3_v6): Likewise.
23607         (*mulsi3_compare0): Likewise.
23608         (*mulsi3_compare0_v6): Likewise.
23609         (*mulsi_compare0_scratch): Likewise.
23610         (*mulsi_compare0_scratch_v6): Likewise.
23611         (*mulsi3addsi): Likewise.
23612         (*mulsi3addsi_v6): Likewise.
23613         (*mulsi3addsi_compare0): Likewise.
23614         (*mulsi3addsi_compare0_v6): Likewise.
23615         (*mulsi3addsi_compare0_scratch): Likewise.
23616         (*mulsi3addsi_compare0_scratch_v6): Likewise.
23617         (*mulsi3subsi): Likewise.
23618         (*mulsidi3adddi): Likewise.
23619         (*mulsi3addsi_v6): Likewise.
23620         (*mulsidi3adddi_v6): Likewise.
23621         (*mulsidi3_nov6): Likewise.
23622         (*mulsidi3_v6): Likewise.
23623         (*umulsidi3_nov6): Likewise.
23624         (*umulsidi3_v6): Likewise.
23625         (*umulsidi3adddi): Likewise.
23626         (*umulsidi3adddi_v6): Likewise.
23627         (*smulsi3_highpart_nov6): Likewise.
23628         (*smulsi3_highpart_v6): Likewise.
23629         (*umulsi3_highpart_nov6): Likewise.
23630         (*umulsi3_highpart_v6): Likewise.
23631         (mulhisi3): Likewise.
23632         (*mulhisi3tb): Likewise.
23633         (*mulhisi3bt): Likewise.
23634         (*mulhisi3tt): Likewise.
23635         (maddhisi4): Likewise.
23636         (*maddhisi4tb): Likewise.
23637         (*maddhisi4tt): Likewise.
23638         (maddhidi4): Likewise.
23639         (*maddhidi4tb): Likewise.
23640         (*maddhidi4tt): Likewise.
23641         (divsi3): Likewise.
23642         (udivsi3): Likewise.
23643         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23644         (thumb2_mulsi_short_compare0): Likewise.
23645         (thumb2_mulsi_short_compare0_scratch): Likewise.
23646         * config/arm/arm1020e.md (1020mult1): Update attribute change.
23647         (1020mult2): Likewise.
23648         (1020mult3): Likewise.
23649         (1020mult4): Likewise.
23650         (1020mult5): Likewise.
23651         (1020mult6): Likewise.
23652         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23653         change.
23654         (cortex_a15_mult64): Likewise.
23655         (cortex_a15_sdiv): Likewise.
23656         (cortex_a15_udiv): Likewise.
23657         * config/arm/arm1026ejs.md (mult1): Update attribute change.
23658         (mult2): Likewise.
23659         (mult3): Likewise.
23660         (mult4): Likewise.
23661         (mult5): Likewise.
23662         (mult6): Likewise.
23663         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23664         (pj4_ir_div): Likewise.
23665         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23666         (11_mult2): Likewise.
23667         (11_mult3): Likewise.
23668         (11_mult4): Likewise.
23669         (11_mult5): Likewise.
23670         (11_mult6): Likewise.
23671         (11_mult7): Likewise.
23672         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23673         (cortex_a8_mla): Likewise.
23674         (cortex_a8_mull): Likewise.
23675         (cortex_a8_smulwy): Likewise.
23676         (cortex_a8_smlald): Likewise.
23677         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23678         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23679         (cortex_r4_mul_3): Likewise.
23680         (cortex_r4_mla_4): Likewise.
23681         (cortex_r4_mla_3): Likewise.
23682         (cortex_r4_smlald): Likewise.
23683         (cortex_r4_mull): Likewise.
23684         (cortex_r4_sdiv): Likewise.
23685         (cortex_r4_udiv): Likewise.
23686         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23687         (cortex_a7_idiv): Likewise.
23688         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
23689         (9_mult2): Likewise.
23690         (9_mult3): Likewise.
23691         (9_mult4): Likewise.
23692         (9_mult5): Likewise.
23693         (9_mult6): Likewise.
23694         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
23695         (cortex_a53_sdiv): Likewise.
23696         (cortex_a53_udiv): Likewise.
23697         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
23698         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
23699         (mp626_mult2): Likewise.
23700         (mp626_mult3): Likewise.
23701         (mp626_mult4): Likewise.
23702         * config/arm/fa526.md (526_mult1): Update attribute change.
23703         (526_mult2): Likewise.
23704         * config/arm/arm-generic.md (mult): Update attribute change.
23705         (mult_ldsched_strongarm): Likewise.
23706         (mult_ldsched): Likewise.
23707         (multi_cycle): Likewise.
23708         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23709         * config/arm/fa606te.md (606te_mult1): Update attribute change.
23710         (606te_mult2): Likewise.
23711         (606te_mult3): Likewise.
23712         (606te_mult4): Likewise.
23713         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23714         (cortex_a9_mac16): Likewise.
23715         (cortex_a9_multiply): Likewise.
23716         (cortex_a9_mac): Likewise.
23717         (cortex_a9_multiply_long): Likewise.
23718         * config/arm/fa626te.md (626te_mult1): Update attribute change.
23719         (626te_mult2): Likewise.
23720         (626te_mult3): Likewise.
23721         (626te_mult4): Likewise.
23723 2013-06-18  Richard Biener  <rguenther@suse.de>
23725         PR lto/57334
23726         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23728 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23730         PR target/57609
23731         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23732         with next_active_insn.
23734 2013-06-18  Alan Modra  <amodra@gmail.com>
23736         * config/rs6000/rs6000.h (enum data_align): New.
23737         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23738         (DATA_ABI_ALIGNMENT): Define.
23739         (CONSTANT_ALIGNMENT): Correct comment.
23740         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23741         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23743 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
23745         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23746         ATTRIBUTE_UNUSED marking.
23748 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
23750         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23751         alternative and update.
23752         (aarch64_dup_lanedi): Delete.
23753         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23754         * config/aarch64/aarch64-simd-builtins.def: Update.
23756 2013-06-17  Richard Biener  <rguenther@suse.de>
23758         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23759         (lto_input_scc): Declare.
23760         (lto_input_tree_1): Likewise.
23761         (struct lto_stats_d): Add num_tree_bodies_output and
23762         num_pickle_refs_output.
23763         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23764         (lto_read_tree_1): Split out from ...
23765         (lto_read_tree): ... this.
23766         (lto_input_scc): New function.
23767         (lto_input_tree_1): Split out from ...
23768         (lto_input_tree): ... this.  Handle LTO_tree_scc.
23769         (lto_data_in_create): Create the streamer cache without hashes.
23770         * lto-streamer-out.c (create_output_block): Create the streamer
23771         cache with hashes when not doing WPA.
23772         (lto_write_tree_1): Split out from ...
23773         (lto_write_tree): ... this.
23774         (get_symbol_initial_value): New function.
23775         (lto_output_tree_1): Split out from ...
23776         (lto_output_tree): ... this.  Write trees as series of SCCs
23777         using a DFS walk via DFS_write_tree.
23778         (struct sccs, struct scc_entry): New types.
23779         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23780         (DFS_write_tree_body): New function.
23781         (DFS_write_tree): Likewise.
23782         (hash_tree): Likewise.
23783         (scc_entry_compare): Likewise.
23784         (hash_scc): Likewise.
23785         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
23786         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
23787         TREE_CHAIN as regular reference.
23788         (streamer_read_integer_cst): Remove.
23789         (streamer_get_pickled_tree): Adjust.
23790         * tree-streamer-out.c (streamer_write_chain): Disable streaming
23791         of DECL_EXTERNALs in BLOCK_VARS for now.
23792         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
23793         reference.
23794         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
23795         Add hash value argument and record that if hashes are recorded
23796         in the cache.
23797         (streamer_tree_cache_insert_1): Adjust.
23798         (streamer_tree_cache_insert): Likewise.
23799         (streamer_tree_cache_insert_at): Rename to ...
23800         (streamer_tree_cache_replace_tree): ... this and adjust.
23801         (streamer_tree_cache_append): Adjust.
23802         (record_common_node): Likewise.
23803         (streamer_tree_cache_create): Add argument whether to
23804         record hash values together with trees.
23805         (streamer_tree_cache_delete): Adjust.
23806         * tree-streamer.h (struct streamer_tree_cache_d): Add
23807         vector of hashes.
23808         (streamer_read_integer_cst): Remove.
23809         (streamer_tree_cache_insert): Adjust.
23810         (streamer_tree_cache_append): Likewise.
23811         (streamer_tree_cache_insert_at): Rename to ...
23812         (streamer_tree_cache_replace_tree): ... this and adjust.
23813         (streamer_tree_cache_create): Add argument whether to record hashes.
23814         (streamer_tree_cache_get): Rename to ...
23815         (streamer_tree_cache_get_tree): ... this.
23816         (streamer_tree_cache_get_hash): New function.
23817         * tree.c (cache_integer_cst): New function.
23818         * tree.h (cache_integer_cst): Declare.
23819         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
23820         * lto-symtab.c (lto_varpool_replace_node): Only release
23821         DECL_INITIAL of non-prevailing decls.
23822         * varpool.c (varpool_remove_initializer): Do not release
23823         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
23825 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23827         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
23828         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
23829         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
23830         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
23831         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
23832         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
23833         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
23834         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
23835         instead of TARGET_64BIT.
23836         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
23837         Require ISA_HAS_<D>DIV.
23839 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
23841         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
23842         (mips*-*-linux*): Move default with_llsc setting to where other
23843         defaults are set.
23844         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
23845         with_arch block.
23846         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
23847         Likewise.  Remove default with_tune setting.  Move default float
23848         setting to its own block.  Handle with_llsc in the same block as above.
23850 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
23852         PR rtl-optimization/57425
23853         PR rtl-optimization/57569
23854         * alias.c (write_dependence_p): Add new parameters mem_mode,
23855         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
23856         Changed all callers.
23857         (canon_anti_dependence): New function.
23858         * cse.c (check_dependence): Use canon_anti_dependence.
23859         * cselib.c (cselib_invalidate_mem): Likewise.
23860         * rtl.h (canon_anti_dependence): Declare.
23862 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23864         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
23865         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
23866         ".set mips3" for 64-bit targets.
23868 2013-06-15  Dehao Chen  <dehao@google.com>
23870         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
23871         * gimple-low.c (gimple_check_call_matching_types): Likewise.
23872         (gimple_check_call_args): Likewise.
23873         * value-prof.c (check_ic_target): Likewise.
23874         * ipa-inline.c (early_inliner): Likewise.
23875         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
23876         * cgraph.c (cgraph_create_edge_1): Likewise.
23877         (cgraph_make_edge_direct): Likewise.
23879 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23881         PR target/57615
23882         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
23883         rs6000_output_move_128bit to handle emitting quad memory
23884         operations.  Set attribute length to 8 bytes.
23886 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
23888         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
23889         New pattern.
23890         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
23891         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
23892         (aarch64_<su>mlsl<mode>): Likewise.
23894 2013-06-14  Mike Stump  <mikestump@comcast.net>
23896         * Makefile.in (TARGET_H): Add insn-codes.h.
23898 2013-06-14  Alan Modra  <amodra@gmail.com>
23900         PR middle-end/57134
23901         PR middle-end/57586
23902         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
23903         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
23904         bitfield expansion when EXPAND_MEMORY.
23905         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
23907 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
23909         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23910         test for clearing quad memory on 32-bit later.
23912 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23914         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
23915         (fold_negate_expr): Likewise.
23916         (fold_real_zero_addition_p): Handle vectors.
23917         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
23919 2013-06-14  Alan Modra  <amodra@gmail.com>
23921         * varasm.c (force_const_mem): Revert 2013-06-07 change.
23923 2013-06-13  Jan Hubicka  <jh@suse.cz>
23925         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
23926         Local comdats are not externally visible.
23927         * symtab.c (dump_symtab_base): Dump externally visible.
23928         (verify_symtab_base): Verify back links in the symtab hash.
23930 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23932         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
23933         CONVERT_EXPR as equal nodes.
23935 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23937         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
23939 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23941         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
23942         Generalize to complex and vector.
23943         * tree.c (build_all_ones_cst): New function.
23944         * tree.h (build_all_ones_cst): Declare it.
23946 2013-06-13  Alan Modra  <amodra@gmail.com>
23948         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
23949         * config/rs6000/rs6000.md (signbittf2): New insn.
23950         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
23951         (abstf2_internal, cmptf_internal2): Likewise.
23952         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
23954 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23955             Pat Haugen  <pthaugen@us.ibm.com>
23956             Peter Bergner  <bergner@vnet.ibm.com>
23958         * config/rs6000/rs6000.c (emit_load_locked): Add support for
23959         power8 byte, half-word, and quad-word atomic instructions.
23960         (emit_store_conditional): Likewise.
23961         (rs6000_expand_atomic_compare_and_swap): Likewise.
23962         (rs6000_expand_atomic_op): Likewise.
23964         * config/rs6000/sync.md (larx): Add new modes for power8.
23965         (stcx): Likewise.
23966         (AINT): New mode iterator to include TImode as well as normal
23967         integer modes on power8.
23968         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
23969         that VSX registers are not considered.  Use AINT mode iterator
23970         instead of INT1 to allow inclusion of quad word atomic operations
23971         on power8.
23972         (load_locked<mode>): Likewise.
23973         (store_conditional<mode>): Likewise.
23974         (atomic_compare_and_swap<mode>): Likewise.
23975         (atomic_exchange<mode>): Likewise.
23976         (atomic_nand<mode>): Likewise.
23977         (atomic_fetch_<fetchop_name><mode>): Likewise.
23978         (atomic_nand_fetch<mode>): Likewise.
23979         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
23980         each type.
23981         (ATOMIC): On power8, add QImode, HImode modes.
23982         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
23983         modes that promote to SImode.
23984         (load_lockedti): Convert TImode arguments to PTImode, so that we
23985         get a guaranteed even/odd register pair.
23986         (load_lockedpti): Likewise.
23987         (store_conditionalti): Likewise.
23988         (store_conditionalpti): Likewise.
23990         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
23991         atomic load/store instructions.
23992         (HSI): Likewise.
23994 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
23996         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
23997         loads.
23998         (insn_count): New attribute, with most cases extracted from...
23999         (length): ...here.  Redefine most cases in terms of insn_count.
24000         (single_insn): Delete.
24001         (can_delay): Use insn_count to check for single instructions.
24002         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24003         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24004         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24005         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24006         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24007         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24008         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24009         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24010         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24011         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24012         rather than "length".
24013         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
24014         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24015         Use "insn_count" rather than "length".
24016         * config/mips/mips-dsp.md
24017         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24018         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24019         length attributes.
24021 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
24023         PR tree-optimization/57361
24024         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24026 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
24028         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24029         to split.
24030         (aarch64_simd_combine<mode>): New instruction expansion.
24031         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24032         function prototype.
24033         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24034         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24036 2013-06-12  Jan Hubicka  <jh@suse.cz>
24038         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24039         decl has when in streaming stage.
24040         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24041         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24043 2013-06-12  Roland Stigge  <stigge@antcom.de>
24045         PR target/57578
24046         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24048 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24050         PR tree-optimization/57537
24051         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24052         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24054 2013-06-12  Richard Biener  <rguenther@suse.de>
24056         * data-streamer.h (streamer_write_char_stream): CSE
24057         obs->current_pointer.
24058         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24059         streamer_write_char_stream manually and optimize the resulting loop.
24060         (streamer_write_hwi_stream): Likewise.
24062 2013-06-12  Jan Hubicka  <jh@suse.cz>
24064         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24065         * cgraph.h (varpool_create_empty_node): Declare.
24066         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24067         duplicated nodes.
24068         * symtab.c (symtab_unregister_node): Be lax about missin entries
24069         in node hash.
24070         (symtab_get_node): Update comment.
24071         * varpool.c (varpool_create_empty_node): Break out from ...
24072         (varpool_node_for_decl): ... here.
24073         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24075 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
24077         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24078         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24079         part.  Use straight-line flow at the end.
24080         <COMPONENT_REF>: Remove superfluous else.
24081         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24083 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24085         PR target/56564
24086         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24087         target hook even for !TREE_PUBLIC decls.  If no resolution info
24088         is available, return false for common and external decls.
24090 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24092         * config/rl78/constraints.md (U): New constraint.
24093         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24094         valloc attribute.
24096 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
24098         PR target/57589
24099         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24100         to allow returning address to AT_PLATFORM name.
24102 2013-06-11  Jan Hubicka  <jh@suse.cz>
24104         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24105         * cgraph.h (symtab_node_base): Add weakref flag.
24106         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24107         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24108         (output_weakrefs): Use weakref flag.
24109         * fold-const.c (simple_operand_p): Handle WEAK.
24110         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24111         * ipa.c (varpool_externally_visible_p): Drop weakref.
24112         (function_and_variable_visibility): Update comment; fix weakref
24113         sanity checks; do not clear DECL_WEAK on them.
24114         * lto-cgraph.c (lto_output_node): update.
24115         (lto_output_varpool_node): Update.
24116         (input_overwrite_node): Update.
24117         (input_node): Update.
24118         (input_varpool_node): Update.
24119         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24120         (lto_symtab_merge_symbols): Add sanity check.
24121         (lto_symtab_prevailing_decl): Do not special case weakrefs.
24122         * passes.c (rest_of_decl_compilation): Set static flag, too.
24123         * symtab.c (dump_symtab_base): Dump weakref.
24124         (verify_symtab_base): Sanity check weakrefs.
24125         (symtab_make_decl_local): Remove duplicated code.
24126         (symtab_alias_ultimate_target): Simplify.
24127         * varpool.c (varpool_create_variable_alias): Set weakref flag.
24129 2013-06-11  Tom de Vries  <tom@codesourcery.com>
24131         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
24132         sequence_vect == NULL.
24134 2013-06-11  DJ Delorie  <dj@redhat.com>
24136         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24137         (rl78_unwind_word_mode): New.
24139 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24141         * final.c (debug_prefix_maps): Make static.
24143 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24145         * function.c (initial_trampoline): Remove stray copy.
24147 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
24149         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24151 2013-06-11  Martin Jambor  <mjambor@suse.cz>
24153         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24154         within bounds at the beginning of the function.
24156 2013-06-11  Alan Modra  <amodra@gmail.com>
24158         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
24159         reporting.
24160         (get_named_section): Don't NULL !DECL_P decl.
24162 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
24164         * doc/invoke.texi (core-avx2): Document.
24165         (slm): Likewise.
24166         (atom): Updated with MOVBE.
24168 2013-06-11  Richard Biener  <rguenther@suse.de>
24170         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24172 2013-06-11  Anton Blanchard  <anton@samba.org>
24174         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24175         correct shift value in little-endian mode.
24177 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
24179         PR target/56564
24180         * varasm.c (get_variable_align): Move #endif to the right place.
24182 2013-06-10  Cary Coutant  <ccoutant@google.com>
24184         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24185         for hash so that hash table traversal order is deterministic.
24187 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24188             Pat Haugen  <pthaugen@us.ibm.com>
24189             Peter Bergner  <bergner@vnet.ibm.com>
24191         * config/rs6000/vector.md (GPR move splitter): Do not split moves
24192         of vectors in GPRS if they are direct moves or quad word load or
24193         store moves.
24195         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24196         declaration.
24197         (direct_move_p): Likewise.
24198         (quad_load_store_p): Likewise.
24200         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24201         classes into bins based on the physical register type.
24202         (reg_class_to_reg_type): Likewise.
24203         (IS_STD_REG_TYPE): Likewise.
24204         (IS_FP_VECT_REG_TYPE): Likewise.
24205         (reload_fpr_gpr): Arrays to determine what insn to use if we can
24206         use direct move instructions.
24207         (reload_gpr_vsx): Likewise.
24208         (reload_vsx_gpr): Likewise.
24209         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24210         information that is a simplification of register classes.  Also
24211         precalculate direct move reload helpers.
24212         (direct_move_p): New function to return true if the operation can
24213         be done as a direct move instruciton.
24214         (quad_load_store_p): New function to return true if the operation
24215         is a quad memory operation.
24216         (rs6000_legitimize_address): If quad memory, only allow register
24217         indirect for TImode addresses.
24218         (rs6000_legitimate_address_p): Likewise.
24219         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24220         (rs6000_reload_register_type): Likewise.
24221         (register_to_reg_type): Return register type.
24222         (rs6000_secondary_reload_simple_move): New helper function for
24223         secondary reload and secondary memory needed to identify anything
24224         that is a simple move, and does not need reloading.
24225         (rs6000_secondary_reload_direct_move): New helper function for
24226         secondary reload to identify cases that can be done with several
24227         instructions via the direct move instructions.
24228         (rs6000_secondary_reload_move): New helper function for secondary
24229         reload to identify moves between register types that can be done.
24230         (rs6000_secondary_reload): Add support for quad memory operations
24231         and for direct move.
24232         (rs6000_secondary_memory_needed): Likewise.
24233         (rs6000_debug_secondary_memory_needed): Change argument names.
24234         (rs6000_output_move_128bit): New function to return the move to
24235         use for 128-bit moves, including knowing about the various
24236         limitations of quad memory operations.
24238         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24239         memory operations.  call rs6000_output_move_128bit for the actual
24240         instruciton(s) to generate.
24241         (vsx_movti_64bit): Likewise.
24243         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24244         (UNSPEC_P8V_MTVSRWZ): Likewise.
24245         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24246         (UNSPEC_P8V_MTVSRD): Likewise.
24247         (UNSPEC_P8V_XXPERMDI): Likewise.
24248         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24249         (UNSPEC_FUSION_GPR): Likewise.
24250         (FMOVE128_GPR): New iterator for direct move.
24251         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24252         (f32_sv): Likewise.
24253         (f32_dm): Likewise.
24254         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24255         loads and direct move instructions.
24256         (zero_extendsidi2_lfiwzx): Likewise.
24257         (extendsidi2_lfiwax): Likewise.
24258         (extendsidi2_nocell): Likewise.
24259         (floatsi<mode>2_lfiwax): Likewise.
24260         (lfiwax): Likewise.
24261         (floatunssi<mode>2_lfiwzx): Likewise.
24262         (lfiwzx): Likewise.
24263         (fix_trunc<mode>_stfiwx): Likewise.
24264         (fixuns_trunc<mode>_stfiwx): Likewise.
24265         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24266         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24267         (parity<mode>2_cmpb): Set length/type attr.
24268         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24269         for 'mr.' to fast_compare.
24270         (bpermd_<mode>): Change type attr to popcnt.
24271         (p8_fmrgow_<mode>): New insns for power8 direct move support.
24272         (p8_mtvsrwz_1): Likewise.
24273         (p8_mtvsrwz_2): Likewise.
24274         (reload_fpr_from_gpr<mode>): Likewise.
24275         (p8_mtvsrd_1): Likewise.
24276         (p8_mtvsrd_2): Likewise.
24277         (p8_xxpermdi_<mode>): Likewise.
24278         (reload_vsx_from_gpr<mode>): Likewise.
24279         (reload_vsx_from_gprsf): Likewise.
24280         (p8_mfvsrd_3_<mode>): LIkewise.
24281         (reload_gpr_from_vsx<mode>): Likewise.
24282         (reload_gpr_from_vsxsf): Likewise.
24283         (p8_mfvsrd_4_disf): Likewise.
24284         (multi-word GPR splits): Do not split direct moves or quad memory
24285         operations.
24287 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
24289         * tree-into-ssa.c (interesting_blocks): Make static.
24291 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
24293         PR target/56564
24294         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24295         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24296         Use DATA_ABI_ALIGNMENT for that case instead if defined.
24297         (get_variable_align): New function.
24298         (get_variable_section, emit_bss, emit_common,
24299         assemble_variable_contents, place_block_symbol): Use
24300         get_variable_align instead of DECL_ALIGN.
24301         (assemble_noswitch_variable): Add align argument, use it
24302         instead of DECL_ALIGN.
24303         (assemble_variable): Adjust caller.  Use get_variable_align
24304         instead of DECL_ALIGN.
24305         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24306         caller.
24307         (DATA_ABI_ALIGNMENT): Define.
24308         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24309         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
24310         opt is false, only return the psABI mandated alignment increase.
24311         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24312         (DATA_ABI_ALIGNMENT): ... this.
24313         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24314         (DATA_ABI_ALIGNMENT): ... this.
24315         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24316         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24317         (DATA_ABI_ALIGNMENT): ... this.
24318         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24319         * doc/tm.texi: Regenerated.
24321 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
24323         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24324         cmp_code to construct REG_EQUAL note.
24326 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
24328         PR target/57568
24329         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24330         that operands[2] doesn't overlap with operands[0].
24332 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
24333             Jan Hubicka  <jh@suse.cz>
24335         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24336         hack to mark symbols as used.
24338 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
24340         PR rtl-optimization/57559
24341         * lra-constraints.c (process_alt_operands): Don't discourage
24342         memory with known offset for offsetable memory constraint.
24343         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24345 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
24347         * varasm.c (struct oc_local_state): Reorder fields.
24348         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24349         and adjust accordingly.
24350         (output_constructor): Reorder initialization code and adjust call to
24351         output_constructor_bitfield.
24353 2013-06-07  Jan Hubicka  <jh@suse.cz>
24355         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24357 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
24359         * tree-object-size.c (unknown): Make const.
24361 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24363         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24364         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24365         for last alternative in the cpu_facility attribute.
24367 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24369         PR target/56315
24370         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24371         (xordi3): Change operand 2 constraint to arm_xordi_operand.
24372         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24373         * config/arm/constraints.md (Dg): New constraint.
24374         * config/arm/neon.md (xordi3_neon): Remove.
24375         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24376         * config/arm/predicates.md (arm_xordi_operand): New predicate.
24378 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24380         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24381         Clean up alternatives.
24383 2013-06-07  Alan Modra  <amodra@gmail.com>
24385         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24386         va_list_gpr_size.
24388 2013-06-07  Alan Modra  <amodra@gmail.com>
24390         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24392 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24394         * config/arm/constraints.md (Df): New constraint.
24395         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24396         Correct length attribute for last two alternatives.
24398 2013-06-07  Alan Modra  <amodra@gmail.com>
24400         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24401         override user -mfp-in-toc.
24402         (offsettable_ok_by_alignment): Consider just the current access
24403         rather than the whole object, unless BLKmode.  Handle
24404         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24405         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24406         for -mcmodel=medium.
24407         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24408         override user -mfp-in-toc or -msum-in-toc.  Default to
24409         -mno-fp-in-toc for -mcmodel=medium.
24411 2013-06-06  DJ Delorie  <dj@redhat.com>
24413         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24414         TARGET_VALID_POINTER_MODE.
24416 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24417             Pat Haugen  <pthaugen@us.ibm.com>
24418             Peter Bergner  <bergner@vnet.ibm.com>
24420         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24421         Document new power8 builtins.
24423         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24424         condition code register, to allow 128-bit logical operations to be
24425         done in the VSX or GPR registers.
24426         (nor<mode>3): Use the canonical form for nor.
24427         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24428         vclz*, and vpopcnt* vector instructions.
24429         (nand<mode>3): Likewise.
24430         (orc<mode>3): Likewise.
24431         (clz<mode>2): LIkewise.
24432         (popcount<mode>2): Likewise.
24434         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24435         that only the GPRs are recognized.
24437         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24438         support for new power8 builtins.
24440         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24441         builtin functions.
24442         (xscvdpspn): Likewise.
24443         (vclz): Likewise.
24444         (vclzb): Likewise.
24445         (vclzh): Likewise.
24446         (vclzw): Likewise.
24447         (vclzd): Likewise.
24448         (vpopcnt): Likewise.
24449         (vpopcntb): Likewise.
24450         (vpopcnth): Likewise.
24451         (vpopcntw): Likewise.
24452         (vpopcntd): Likewise.
24453         (vgbbd): Likewise.
24454         (vmrgew): Likewise.
24455         (vmrgow): Likewise.
24456         (eqv): Likewise.
24457         (eqv_v16qi3): Likewise.
24458         (eqv_v8hi3): Likewise.
24459         (eqv_v4si3): Likewise.
24460         (eqv_v2di3): Likewise.
24461         (eqv_v4sf3): Likewise.
24462         (eqv_v2df3): Likewise.
24463         (nand): Likewise.
24464         (nand_v16qi3): Likewise.
24465         (nand_v8hi3): Likewise.
24466         (nand_v4si3): Likewise.
24467         (nand_v2di3): Likewise.
24468         (nand_v4sf3): Likewise.
24469         (nand_v2df3): Likewise.
24470         (orc): Likewise.
24471         (orc_v16qi3): Likewise.
24472         (orc_v8hi3): Likewise.
24473         (orc_v4si3): Likewise.
24474         (orc_v2di3): Likewise.
24475         (orc_v4sf3): Likewise.
24476         (orc_v2df3): Likewise.
24478         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24479         allow power8 quad mode in 64-bit.
24480         (rs6000_builtin_vectorized_function): Add support to vectorize
24481         ISA 2.07 count leading zeros, population count builtins.
24482         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24483         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24484         (builtin_function_type): Add vgbbd builtin function which takes an
24485         unsigned argument.
24486         (altivec_expand_vec_perm_const): Add support for new power8 merge
24487         instructions.
24489         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24490         that does not include TImdoe for use with 32-bit.
24491         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24492         instructions.
24493         (UNSPEC_VSX_CVDPSPN): Likewise.
24494         (vsx_xscvdpspn): Likewise.
24495         (vsx_xscvspdpn): Likewise.
24496         (vsx_xscvdpspn_scalar): Likewise.
24497         (vsx_xscvspdpn_directmove): Likewise.
24498         (vsx_and<mode>3): Split logical operations into 32-bit and
24499         64-bit. Add support to do logical operations on TImode as well as
24500         VSX vector types.  Allow logical operations to be done in either
24501         VSX registers or in general purpose registers in 64-bit mode.  Add
24502         splitters if GPRs were used. For AND, add clobber of CCmode to
24503         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
24504         encoding.
24505         (vsx_and<mode>3_32bit): Likewise.
24506         (vsx_and<mode>3_64bit): Likewise.
24507         (vsx_ior<mode>3): Likewise.
24508         (vsx_ior<mode>3_32bit): Likewise.
24509         (vsx_ior<mode>3_64bit): Likewise.
24510         (vsx_xor<mode>3): Likewise.
24511         (vsx_xor<mode>3_32bit): Likewise.
24512         (vsx_xor<mode>3_64bit): Likewise.
24513         (vsx_one_cmpl<mode>2): Likewise.
24514         (vsx_one_cmpl<mode>2_32bit): Likewise.
24515         (vsx_one_cmpl<mode>2_64bit): Likewise.
24516         (vsx_nor<mode>3): Likewise.
24517         (vsx_nor<mode>3_32bit): Likewise.
24518         (vsx_nor<mode>3_64bit): Likewise.
24519         (vsx_andc<mode>3): Likewise.
24520         (vsx_andc<mode>3_32bit): Likewise.
24521         (vsx_andc<mode>3_64bit): Likewise.
24522         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24523         and xxlorc instructions.
24524         (vsx_eqv<mode>3_64bit): Likewise.
24525         (vsx_nand<mode>3_32bit): Likewise.
24526         (vsx_nand<mode>3_64bit): Likewise.
24527         (vsx_orc<mode>3_32bit): Likewise.
24528         (vsx_orc<mode>3_64bit): Likewise.
24530         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24532         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24533         instruction.
24534         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24535         (p8_vmrgow): Likewise.
24536         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24537         GPRs to be split under VSX.
24538         (p8v_clz<mode>2): Add power8 count leading zero support.
24539         (p8v_popcount<mode>2): Add power8 population count support.
24540         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24541         support.
24543         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24544         instruction.
24546         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24547         builtin functions.
24548         (vec_nand): Likewise.
24549         (vec_vclz): Likewise.
24550         (vec_vclzb): Likewise.
24551         (vec_vclzd): Likewise.
24552         (vec_vclzh): Likewise.
24553         (vec_vclzw): Likewise.
24554         (vec_vgbbd): Likewise.
24555         (vec_vmrgew): Likewise.
24556         (vec_vmrgow): Likewise.
24557         (vec_vpopcnt): Likewise.
24558         (vec_vpopcntb): Likewise.
24559         (vec_vpopcntd): Likewise.
24560         (vec_vpopcnth): Likewise.
24561         (vec_vpopcntw): Likewise.
24563 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24565         PR rtl-optimization/57468
24566         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24567         spilled pseudos.
24569 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24571         PR rtl-optimization/57459
24572         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24573         type when setting live regs.
24575 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24577         * config/s390/s390.opt (mlra): New option.
24578         * config/s390/s390.c (s390_decompose_address): Check displacement
24579         for all registers for LRA.
24580         (s390_secondary_reload): Don't used secondary reloads for LRA.
24581         (s390_lra_p): New function.
24582         (TARGET_LRA_P): Define.
24583         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24584         of attribute cpu_facility to zarch for the last alternative.
24585         (*cmpmem_short): Ditto.
24587 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24589         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24590         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
24591         (arm_expand_prologue): Likewise.
24593 2013-06-06  Teresa Johnson  <tejohnson@google.com>
24595         PR c++/53743
24596         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24597         as this is now done by redirect_edge_and_branch_force.
24598         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24599         barriers, and fix interaction with splitting.
24600         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24601         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24602         reflect changes made in the routine.
24603         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24604         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24605         since this is called in cfglayout mode, and replace partition fixup
24606         with assert as that is now done by force_nonfallthru_and_redirect.
24607         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24608         already be marked with region crossing note.
24609         (insert_section_boundary_note): Make non-static, gate on flag
24610         has_bb_partition, rewrite to also check for multiple partitions.
24611         (rest_of_handle_reorder_blocks): Remove call to
24612         insert_section_boundary_note, now done later during free_cfg.
24613         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24614         * bb-reorder.h (insert_section_boundary_note): Declare.
24615         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24616         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24617         invoke insert_section_boundary_note.
24618         (try_redirect_by_replacing_jump): Remove unnecessary
24619         check for region crossing note.
24620         (fixup_partition_crossing): New function.
24621         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24622         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24623         in non-cfglayout mode.
24624         (force_nonfallthru_and_redirect): Fixup partition boundaries,
24625         remove old code that tried to do this. Emit barrier correctly
24626         when we are in cfglayout mode.
24627         (last_bb_in_partition): New function.
24628         (rtl_split_edge): Correctly fixup partition boundaries.
24629         (commit_one_edge_insertion): Remove old code that tried to
24630         fixup region crossing edge since this is now handled in
24631         split_block, and set up insertion point correctly since
24632         block may now end in a jump.
24633         (verify_hot_cold_block_grouping): Guard against checking when not in
24634         linearized RTL mode.
24635         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24636         notes.
24637         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24638         rtl_verify_flow_info, so not called in cfglayout mode.
24639         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24640         (fixup_reorder_chain): Remove old code that attempted to fixup region
24641         crossing note as this is now handled in force_nonfallthru_and_redirect.
24642         (duplicate_insn_chain): Don't duplicate switch section notes.
24643         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24644         note.
24645         * basic-block.h (emit_barrier_after_bb): Declare.
24647 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24649         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24650         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24651         arm_usatsihi): Adjust alternatives for arm_restrict_it.
24653 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24655         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24656         where appropriate.
24657         * config/arm/ldmstm.md: Regenerate.
24659 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24661         * config/arm/sync.md (atomic_loaddi_1):
24662         Disable predication for arm_restrict_it.
24663         (arm_load_exclusive<mode>): Likewise.
24664         (arm_load_exclusivesi): Likewise.
24665         (arm_load_exclusivedi): Likewise.
24666         (arm_load_acquire_exclusive<mode>): Likewise.
24667         (arm_load_acquire_exclusivesi): Likewise.
24668         (arm_load_acquire_exclusivedi): Likewise.
24669         (arm_store_exclusive<mode>): Likewise.
24670         (arm_store_exclusive<mode>): Likewise.
24671         (arm_store_release_exclusivedi): Likewise.
24672         (arm_store_release_exclusive<mode>): Likewise.
24674 2013-06-06  Richard Biener  <rguenther@suse.de>
24676         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24677         after LTO_null.
24678         (lto_tag_is_tree_code_p): Adjust.
24679         (lto_tag_is_gimple_code_p): Likewise.
24680         (lto_gimple_code_to_tag): Likewise.
24681         (lto_tag_to_gimple_code): Likewise.
24682         (lto_tree_code_to_tag): Likewise.
24683         (lto_tag_to_tree_code): Likewise.
24684         * data-streamer.h (streamer_write_hwi_in_range): Use
24685         uhwi streaming to stream the normalized range.
24686         (streamer_read_hwi_in_range): Likewise.
24688 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24690         * config/arm/arm.md (enabled_for_depr_it): New attribute.
24691         (predicable_short_it): Likewise.
24692         (predicated): Likewise.
24693         (enabled): Handle above.
24694         (define_cond_exec): Set predicated attribute to yes.
24696 2013-06-05  Mike Stump  <mikestump@comcast.net>
24698         * gdbinit.in (__FUNCTION__): Add.
24700 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
24702         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24703         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24705 2013-06-05  Jan Hubicka  <jh@suse.cz>
24707         * varasm.c (mark_decl_referenced): Revert the removal until targets
24708         are fixed.
24710 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
24712         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24713         instead of mark_decl_referenced.
24715 2013-06-05  Jan Hubicka  <jh@suse.cz>
24717         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24718         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24719         and symtab_used_from_object_file_p.
24720         (cgraph_make_node_local_1): Clear forced_by_abi.
24721         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24722         * cgraph.h (symtab_node_base): Add forced_by_abi.
24723         (decide_is_variable_needed): Remove.
24724         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24725         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24726         (decide_is_symbol_needed): ... this one; handle symbols in general;
24727         always analyze virtuals; honnor forced_by_abi.
24728         (cgraph_finalize_function): Update.
24729         (varpool_finalize_decl): Update.
24730         (symbol_defined_and_needed): Remove.
24731         (analyze_functions): Update.
24732         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24733         output_refs, input_overwrite_node): Handle forced_by_abi.
24734         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24735         (address_taken_from_non_vtable_p): ... this one.
24736         (comdat_can_be_unshared_p_1): New function.
24737         (cgraph_comdat_can_be_unshared_p): Rename to ...
24738         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24739         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24740         (function_and_variable_visibility): Clear forced_by_abi as needed.
24741         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24742         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24743         * symtab.c (dump_symtab_base): Dump forced_by_abi.
24744         * varpool.c (decide_is_variable_needed): Remove.
24746 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24748         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24749         (arm_option_override): Override arm_restrict_it where appropriate.
24750         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24751         * config/arm/arm.opt (mrestrict-it): New command-line option.
24752         * doc/invoke.texi: Document -mrestrict-it.
24754 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24756         * tsan.c (tsan_atomic_table): Make const.
24758 2013-06-05  Richard Biener  <rguenther@suse.de>
24760         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24761         index associated with the tree we are supposed to replace.
24762         * tree-streamer-out.c (pack_ts_base_value_fields): Output
24763         TREE_ASM_WRITTEN as zero for everything but SSA names.
24765 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24767         * tree-ssa-structalias.c (call_stmt_vars): Make static.
24769 2013-06-04  Jan Hubicka  <jh@suse.cz>
24771         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24772         (input_node, input_varpool_node): Handle correctly external same
24773         body aliases.
24774         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24775         nodes at ltrans stage.
24777 2013-06-04  Jan Hubicka  <jh@suse.cz>
24779         * ipa-inline.c (update_caller_keys): Fix availability test.
24780         (update_callee_keys): Likewise.
24781         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
24782         to follow ELF standard.
24784 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
24786         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
24787         (mips64r5900el-*-elf*): New configurations.
24788         * config/mips/mips-cpus.def (r5900): New processor.
24789         * config/mips/mips-tables.opt: Regenerate.
24790         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
24791         (mips_issue_rate): Handle PROCESSOR_R5900.
24792         (mips_reorg_process_insns): Force reorder mode for the R5900.
24793         * config/mips/mips.h (TARGET_MIPS5900): Define.
24794         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
24795         TARGET_MIPS5900.
24796         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
24797         TARGET_MIPS5900.
24798         * config/mips/mips.md (processor): Add r5900.
24799         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
24801 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24803         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
24804         into function to generate MOVI instruction.
24805         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
24806         (aarch64_preferred_simd_mode): Turn into wrapper.
24807         (aarch64_output_scalar_simd_mov_immediate): New function.
24808         * config/aarch64/aarch64-protos.h: Add prototype for above.
24810 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24812         * config/aarch64/aarch64.c (simd_immediate_info): Remove
24813         element_char member.
24814         (sizetochar): Return signed char.
24815         (aarch64_simd_valid_immediate): Remove elchar and other
24816         unnecessary variables.
24817         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
24818         Calculate element_char as required.
24819         * config/aarch64/aarch64-protos.h: Update and move prototype
24820         for aarch64_output_simd_mov_immediate.
24821         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
24822         Update arguments.
24824 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24826         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
24827         information completed by aarch64_simd_valid_immediate.
24828         (aarch64_legitimate_constant_p): Update arguments.
24829         (aarch64_simd_valid_immediate): Work with struct rather than many
24830         pointers.
24831         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
24832         (aarch64_simd_make_constant): Update arguments.
24833         (aarch64_output_simd_mov_immediate): Work with struct rather than
24834         many pointers.  Output immediate directly rather than as operand.
24835         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24836         Update prototype.
24837         * config/aarch64/constraints.md (Dn): Update arguments.
24839 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24841         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
24842         longer static.
24843         (aarch64_simd_immediate_valid_for_move): Remove.
24844         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
24845         (aarch64_simd_make_constant): Update call.
24846         (aarch64_output_simd_mov_immediate): Update call.
24847         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24848         Add prototype.
24849         * config/aarch64/constraints.md (Dn): Update call.
24851 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24853         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
24854         return type to bool for prototype.
24855         (aarch64_legitimate_constant_p): Check for true instead of not -1.
24856         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
24857         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
24859 2013-06-04  Catherine Moore  <clm@codesourcery.com>
24861         * config/mips/mips.opt (meva): New.
24862         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
24863         (ASM_SPEC): Handle -meva.
24864         * doc/invoke.texi (meva):  Document.
24866 2013-06-04  Alan Modra  <amodra@gmail.com>
24868         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
24869         constant output.
24871 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24873         * rtl.def: Add extra fourth optional field to define_cond_exec.
24874         * gensupport.c (process_one_cond_exec): Process attributes from
24875         define_cond_exec.
24876         * doc/md.texi: Document fourth field in define_cond_exec.
24878 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
24880         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
24881         out the processing order as in store_bit_field_1.
24883 2013-06-04  Jan Hubicka  <jh@suse.cz>
24885         PR middle-end/57500
24886         * cgraphunit.c (cgraph_process_same_body_aliases): Create
24887         non-VAR_DECL node if it does not exist yet.
24889 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
24891         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
24892         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
24893         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
24894         target_cpu_default setting.
24896 2013-06-03  Teresa Johnson  <tejohnson@google.com>
24898         * dumpfile.c (opt_info_switch_p): Change -fopt-info
24899         default to -fopt-info=optimized instead of all.
24900         * doc/invoke.texi: Ditto.
24901         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
24902         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
24903         (execute_vect_slp): Emit BB vectorization success under
24904         MSG_OPTIMIZED_LOCATIONS.
24905         * tree-vect-slp.c (vect_slp_transform_bb): Change
24906         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
24907         * tree-vect-loop.c (vect_transform_loop): Ditto.
24909 2013-06-03  Jason Merrill  <jason@redhat.com>
24911         PR c++/57415
24912         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24913         Use TARGET_EXPR for C++.
24915 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
24917         PR rtl-optimization/57268
24918         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
24919         if DEBUG_INSN_P (insn).
24921         Reapply
24922         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
24924         PR rtl-optimization/57268
24925         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24926         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24928 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24930         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
24931         (ix86_avoid_lea_for_addr): Likewise.
24932         (exact_dependency_1): Likewise.
24933         (ix86_adjust_cost): Likewise.
24934         (swap_top_of_ready_list): Fix formatting and !reload_completed check
24935         removed.
24936         (do_reorder_for_imul): Fix typo, formatting and
24937         !reload_completed check removed.
24938         (ix86_sched_reorder): Fix typo and formatting.
24939         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
24940         list.
24942 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
24944         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
24946 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
24948         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
24949         <STRING_CST>: Likewise.
24950         <VECTOR_CST>: Likewise.
24952 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
24953             Mikael Morin  <mikael@gcc.gnu.org>
24955         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
24956         * config.in: Regenerated.
24957         * configure: Regenerated.
24959 2013-06-01  Jan Hubicka  <jh@suse.cz>
24961         PR middle-end/57366
24962         * cgraphunit.c (compile): When weakref is not supported,
24963         set up transparent aliases before final output pass.
24964         * varasm.c (assemble_alias): Do not try to do it here.
24966 2013-06-01  Jan Hubicka  <jh@suse.cz>
24968         PR middle-end/57467
24969         * passes.c (for_per_function): Skip unanalyzed functions.
24971 2013-06-01  Jan Hubicka  <jh@suse.cz>
24973         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
24974         (lto_symtab_merge_symbols_1): ... this one.
24975         (lto_symtab_merge_cgraph_nodes): Rename to ...
24976         (lto_symtab_merge_symbols): ... this one; simplify.
24977         * cgraph.c (same_body_aliases_done): Rename to ...
24978         (cpp_implicit_aliases_done): ... this one.
24979         (cgraph_create_function_alias): Update.
24980         (cgraph_same_body_alias): Update.
24981         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
24982         (verify_edge_corresponds_to_fndecl): Simplify.
24983         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
24984         (cgraph_node): Remove same_body_alias.
24985         (varpool_node): Remove alias_of and extra_name_alias.
24986         (same_body_aliases_done): Rename to ..
24987         (cpp_implicit_aliases_done): ... this one.
24988         (symtab_alias_ultimate_target): Add default parameter.
24989         (symtab_resolve_alias): New function.
24990         (fixup_same_cpp_alias_visibility): Declare.
24991         (cgraph_function_node): Add default parameter.
24992         (cgraph_node_asm_name): Likewise.
24993         (cgraph_function_or_thunk_node): Add default parameter; do
24994         not ICE when it is NULL.
24995         (varpool_variable_node): Likewise.
24996         * tree-emutls.c (create_emultls_var): Update.
24997         (ipa_lower_emutls): Update.
24998         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
24999         (cgraph_reset_node): Reset alias info.
25000         (cgraph_finalize_function): Update.
25001         (fixup_same_cpp_alias_visibility): Move to symtab.c.
25002         (analyze_function): Simplify.
25003         (cgraph_process_same_body_aliases): Simplify.
25004         (analyze_functions): Fixup same body aliases.
25005         (handle_alias_pairs): Simplify.
25006         (assemble_thunk): Update.
25007         (assemble_thunks_and_aliases): Update.
25008         (output_weakrefs): Rewrite.
25009         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25010         (lto_output_varpool_node): Likewise.
25011         (compute_ltrans_boundary): Remve assert.
25012         (get_alias_symbol): New functoin.
25013         (input_node): Rewrite alias handling.
25014         (input_varpool_node): Likewise.
25015         * ipa-pure-const.c (propagate_pure_const): Fix formating.
25016         * ipa.c (process_references): Handle weakrefs correctly.
25017         (symtab_remove_unreachable_nodes): Likewise.
25018         * trans-mem.c (get_cg_data): Update.
25019         (ipa_tm_create_version_alias): Update.
25020         (ipa_tm_execute): Update.
25021         * symtab.c (dump_symtab_base): Dump aliases.
25022         (verify_symtab_base): Verify aliases.
25023         (symtab_node_availability): New function.
25024         (symtab_alias_ultimate_target): Simplify.
25025         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25026         handle all the fixup cases.
25027         (symtab_resolve_alias): New function.
25028         * passes.c (ipa_write_summaries): Handle weakrefs.
25029         * varpool.c (varpool_analyze_node): Simplify.
25030         (assemble_aliases): Update.
25031         (varpool_create_variable_alias): Simplify.
25032         (varpool_extra_name_alias): Simplify.
25033         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25034         (lto_symtab_merge_symbols): ... this one.
25036 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
25038         Revert
25039         PR rtl-optimization/57268
25040         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25041         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25043 2013-06-01  Tobias Burnus  <burnus@net-b.de>
25045         Partially reverted:
25046         2013-05-31  Tobias Burnus  <burnus@net-b.de>
25048         PR middle-end/57073
25049         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25050         further up.
25052 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
25054         PR rtl-optimization/57268
25055         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25056         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25058 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25060         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25061         unordered comparison operators when -fno-trapping-math is in effect
25062         on the e500.
25063         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25064         and implement unordered comparison operators properly on the e500.
25066 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25068         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25069         for constant scalar integers.
25070         (simplify_relational_operation_1): Likewise.
25072 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
25074         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25075         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
25076         Fix comment.
25078 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25079             Igor Zamyatin  <igor.zamyatin@intel.com>
25081         Silvermont (SLM) architecture performance tuning.
25082         * config/i386/i386.h (enum ix86_tune_indices): Add
25083         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25084         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25086         * config/i386/i386.c (initial_ix86_tune_features)
25087         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25088         (ix86_lea_outperforms): Handle Silvermont tuning.
25089         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25090         call.
25091         (ix86_use_lea_for_mov): Likewise.
25092         (ix86_avoid_lea_for_addr): Likewise.
25093         (ix86_lea_for_add_ok): Likewise.
25094         (exact_dependency_1): New function.
25095         (exact_store_load_dependency): Likewise.
25096         (ix86_adjust_cost): Handle Silvermont tuning.
25097         (do_reoder_for_imul): Likewise.
25098         (swap_top_of_ready_list): New function.
25099         (ix86_sched_reorder): Changed to handle Silvermont tuning.
25101         * config/i386/i386.md (peepholes that split memory operand in fp
25102         converts): New.
25104 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25106         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25107         Remove un-necessary braces.
25109 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25111         * config/aarch64/aarch64.c (aarch64_classify_symbol):
25112         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25114 2013-05-31  Tobias Burnus  <burnus@net-b.de>
25116         PR middle-end/57073
25117         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25119 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25121         PR target/56315
25122         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25123         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25124         * config/arm/neon.md (iordi3_neon): Remove.
25125         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25126         * config/arm/predicates.md (imm_for_neon_logic_operand):
25127         Move to earlier in the file.
25128         (neon_logic_op2): Likewise.
25129         (arm_iordi_operand_neon): New predicate.
25131 2013-05-31  Richard Biener  <rguenther@suse.de>
25133         PR tree-optimization/57478
25134         PR tree-optimization/57453
25135         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25136         are life as well.
25138 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25140         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25141         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25143 2013-05-30  Tobias Burnus  <burnus@net-b.de>
25144             Thomas Koenig  <tkoenig@gcc.gnu.org>
25146         PR middle-end/57073
25147         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25148         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25150 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
25152         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25154 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
25156         * target.def (register_usage_leveling_p): New hook.
25157         * targhooks.c (default_register_usage_leveling_p): New.
25158         * targhooks.h (default_register_usage_leveling_p): New prototype.
25159         * lra-assigns.c (register_usage_leveling_p): Use the hook.
25160         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25161         * doc/tm.texi: Update.
25162         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25164 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
25166         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25167         (*insv_reg<mode>): New define_insn.
25169 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
25171         PR rtl-optimization/57439
25172         * postreload.c (move2add_valid_value_p): Check that we have
25173         a zero subreg_regno_offset when accessing the register in
25174         the requested mode.
25176 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25177             Igor Zamyatin  <igor.zamyatin@intel.com>
25179         Silvermont (SLM) architecture pipeline model, tuning and
25180         insn selection.
25181         * config.gcc: Add slm config options and target.
25183         * config/i386/slm.md: New.
25185         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25187         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
25188         PROCESSOR_SLM.
25189         (ix86_target_macros_internal): Likewise.
25191         * config/i386/i386.c (slm_cost): New cost.
25192         (m_SLM): New macro flag.
25193         (initial_ix86_tune_features): Set m_SLM.
25194         (x86_accumulate_outgoing_args): Likewise.
25195         (x86_arch_always_fancy_math_387): Likewise.
25196         (processor_target_table): Add slm cost.
25197         (cpu_names): Add slm cpu name.
25198         (x86_option_override_internal): Set SLM ISA.
25199         (ix86_issue_rate): New case PROCESSOR_SLM.
25200         (ia32_multipass_dfa_lookahead): Likewise.
25201         (fold_builtin_cpu): Add slm.
25203         * config/i386/i386.h (TARGET_SLM): New target macro.
25204         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25205         (processor_type): Add PROCESSOR_SLM.
25207         * config/i386/i386.md (cpu): Add new value "slm".
25208         (slm.md): Include slm.md.
25210 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
25211             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25213         * config/arm/arm-protos.h: Add and update function protos.
25214         * config/arm/arm.c (use_simple_return_p): New added.
25215         (thumb2_expand_return): Check simple_return flag.
25216         * config/arm/arm.md: Add simple_return and conditional simple_return.
25217         * config/arm/iterators.md: Add iterator for return and simple_return.
25219 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25221         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25222         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25223         (arm_emit_vfp_multi_reg_pop): Likewise.
25224         (thumb2_emit_ldrd_pop): Likewise.
25225         (arm_expand_epilogue): Add misc REG_CFA notes.
25226         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25228 2013-05-29  Lawrence Crowl  <crowl@google.com>
25230         * config/arm/t-arm: Update for below.
25232         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25233         Change type to hash_table.  Update dependent calls and types.
25235         * config/i386/t-cygming: Update for below.
25237         * config/i386/t-interix: Update for below.
25239         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25240         Change type to hash_table.  Update dependent calls and types.
25241         (i386_find_on_wrapper_list::wrappers): Likewise.
25243         * config/ia64/t-ia64: Update for below.
25245         * config/ia64/ia64.c (bundle_state_table):
25246         Change type to hash_table.  Update dependent calls and types.
25248         * config/mips/mips.c (mips_reorg_process_insns::htab):
25249         Change type to hash_table.  Update dependent calls and types.
25251         * config/sol2.c (solaris_comdat_htab):
25252         Change type to hash_table.  Update dependent calls and types.
25254         * config/t-sol2: Update for above.
25256 2013-05-29  Teresa Johnson  <tejohnson@google.com>
25258         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25259         functions are not yet marked as defined.
25261 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
25262             Pat Haugen  <pthaugen@us.ibm.com>
25263             Peter Bergner  <bergner@vnet.ibm.com>
25265         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25266         instructions.
25267         (VEC_A): Likewise.
25268         (VEC_C): Likewise.
25269         (vrotl<mode>3): Likewise.
25270         (vashl<mode>3): Likewise.
25271         (vlshr<mode>3): Likewise.
25272         (vashr<mode>3): Likewise.
25274         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25275         support for power8 V2DI builtins.
25277         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25278         power8 V2DI builtins.
25279         (vupkhsw): Likewise.
25280         (vupklsw): Likewise.
25281         (vaddudm): Likewise.
25282         (vminsd): Likewise.
25283         (vmaxsd): Likewise.
25284         (vminud): Likewise.
25285         (vmaxud): Likewise.
25286         (vpkudum): Likewise.
25287         (vpksdss): Likewise.
25288         (vpkudus): Likewise.
25289         (vpksdus): Likewise.
25290         (vrld): Likewise.
25291         (vsld): Likewise.
25292         (vsrd): Likewise.
25293         (vsrad): Likewise.
25294         (vsubudm): Likewise.
25295         (vcmpequd): Likewise.
25296         (vcmpgtsd): Likewise.
25297         (vcmpgtud): Likewise.
25298         (vcmpequd_p): Likewise.
25299         (vcmpgtsd_p): Likewise.
25300         (vcmpgtud_p): Likewise.
25301         (vupkhsw): Likewise.
25302         (vupklsw): Likewise.
25303         (vaddudm): Likewise.
25304         (vmaxsd): Likewise.
25305         (vmaxud): Likewise.
25306         (vminsd): Likewise.
25307         (vminud): Likewise.
25308         (vpksdss): Likewise.
25309         (vpksdus): Likewise.
25310         (vpkudum): Likewise.
25311         (vpkudus): Likewise.
25312         (vrld): Likewise.
25313         (vsld): Likewise.
25314         (vsrad): Likewise.
25315         (vsrd): Likewise.
25316         (vsubudm): Likewise.
25318         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25319         support for power8 V2DI instructions.
25321         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25322         power8 V2DI instructions.  Combine pack and unpack insns to use an
25323         iterator for each mode.  Check whether a particular mode supports
25324         Altivec instructions instead of just checking TARGET_ALTIVEC.
25325         (UNSPEC_VPKUWUM): Likewise.
25326         (UNSPEC_VPKSHSS): Likewise.
25327         (UNSPEC_VPKSWSS): Likewise.
25328         (UNSPEC_VPKUHUS): Likewise.
25329         (UNSPEC_VPKSHUS): Likewise.
25330         (UNSPEC_VPKUWUS): Likewise.
25331         (UNSPEC_VPKSWUS): Likewise.
25332         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25333         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25334         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25335         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25336         (UNSPEC_VUPKHSB): Likewise.
25337         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25338         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25339         (UNSPEC_VUPKHSH): Likewise.
25340         (UNSPEC_VUPKLSB): Likewise.
25341         (UNSPEC_VUPKLSH): Likewise.
25342         (VI2): Likewise.
25343         (VI_char): Likewise.
25344         (VI_scalar): Likewise.
25345         (VI_unit): Likewise.
25346         (VP): Likewise.
25347         (VP_small): Likewise.
25348         (VP_small_lc): Likewise.
25349         (VU_char): Likewise.
25350         (add<mode>3): Likewise.
25351         (altivec_vaddcuw): Likewise.
25352         (altivec_vaddu<VI_char>s): Likewise.
25353         (altivec_vadds<VI_char>s): Likewise.
25354         (sub<mode>3): Likewise.
25355         (altivec_vsubcuw): Likewise.
25356         (altivec_vsubu<VI_char>s): Likewise.
25357         (altivec_vsubs<VI_char>s): Likewise.
25358         (altivec_vavgs<VI_char>): Likewise.
25359         (altivec_vcmpbfp): Likewise.
25360         (altivec_eq<mode>): Likewise.
25361         (altivec_gt<mode>): Likewise.
25362         (altivec_gtu<mode>): Likewise.
25363         (umax<mode>3): Likewise.
25364         (smax<mode>3): Likewise.
25365         (umin<mode>3): Likewise.
25366         (smin<mode>3): Likewise.
25367         (altivec_vpkuhum): Likewise.
25368         (altivec_vpkuwum): Likewise.
25369         (altivec_vpkshss): Likewise.
25370         (altivec_vpkswss): Likewise.
25371         (altivec_vpkuhus): Likewise.
25372         (altivec_vpkshus): Likewise.
25373         (altivec_vpkuwus): Likewise.
25374         (altivec_vpkswus): Likewise.
25375         (altivec_vpks<VI_char>ss): Likewise.
25376         (altivec_vpks<VI_char>us): Likewise.
25377         (altivec_vpku<VI_char>us): Likewise.
25378         (altivec_vpku<VI_char>um): Likewise.
25379         (altivec_vrl<VI_char>): Likewise.
25380         (altivec_vsl<VI_char>): Likewise.
25381         (altivec_vsr<VI_char>): Likewise.
25382         (altivec_vsra<VI_char>): Likewise.
25383         (altivec_vsldoi_<mode>): Likewise.
25384         (altivec_vupkhsb): Likewise.
25385         (altivec_vupkhs<VU_char>): Likewise.
25386         (altivec_vupkls<VU_char>): Likewise.
25387         (altivec_vupkhsh): Likewise.
25388         (altivec_vupklsb): Likewise.
25389         (altivec_vupklsh): Likewise.
25390         (altivec_vcmpequ<VI_char>_p): Likewise.
25391         (altivec_vcmpgts<VI_char>_p): Likewise.
25392         (altivec_vcmpgtu<VI_char>_p): Likewise.
25393         (abs<mode>2): Likewise.
25394         (vec_unpacks_hi_v16qi): Likewise.
25395         (vec_unpacks_hi_v8hi): Likewise.
25396         (vec_unpacks_lo_v16qi): Likewise.
25397         (vec_unpacks_hi_<VP_small_lc>): Likewise.
25398         (vec_unpacks_lo_v8hi): Likewise.
25399         (vec_unpacks_lo_<VP_small_lc>): Likewise.
25400         (vec_pack_trunc_v8h): Likewise.
25401         (vec_pack_trunc_v4si): Likewise.
25402         (vec_pack_trunc_<mode>): Likewise.
25404         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25405         V2DI builtins.
25406         (vec_vmaxsd): Likewise.
25407         (vec_vmaxud): Likewise.
25408         (vec_vminsd): Likewise.
25409         (vec_vminud): Likewise.
25410         (vec_vpksdss): Likewise.
25411         (vec_vpksdus): Likewise.
25412         (vec_vpkudum): Likewise.
25413         (vec_vpkudus): Likewise.
25414         (vec_vrld): Likewise.
25415         (vec_vsld): Likewise.
25416         (vec_vsrad): Likewise.
25417         (vec_vsrd): Likewise.
25418         (vec_vsubudm): Likewise.
25419         (vec_vupkhsw): Likewise.
25420         (vec_vupklsw): Likewise.
25422 2013-05-29  Jan Hubicka  <jh@suse.cz>
25424         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25425         flags; reorder rest of fields in more consistent way.
25426         (varpool_node): Remove analyzed, finalized and alias.
25427         (cgraph_ndoe): Likewise.
25428         (symtab_alias_ultimate_target): New function.
25429         (cgraph_function_node): Move offline.
25430         (cgraph_reset_node): Declare.
25431         (cgraph_comdat_can_be_unshared_p): Remove.
25432         (varpool_remove_initializer): Declare.
25433         (varpool_first_defined_variable, varpool_next_defined_variable
25434         cgraph_first_defined_function, cgraph_next_defined_function): Update.
25435         (cgraph_function_with_gimple_body_p): Update.
25436         (varpool_all_refs_explicit_p): Update.
25437         (symtab_alias_target): New function.
25438         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25439         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25440         (cgraph_function_or_thunk_node): Simplify using
25441         symtab_alias_ultimate_target.
25442         (varpool_variable_node): Likewise.
25443         * cgraph.c (cgraph_create_function_alias): Update.
25444         (cgraph_add_thunk): Update.
25445         (cgraph_remove_node): Update.
25446         (dump_cgraph_node): Do not dump removed flags.
25447         (cgraph_function_body_availability): Update.
25448         (cgraph_propagate_frequency): Update.
25449         (verify_cgraph_node): Check sanity of local flag.
25450         (cgraph_function_node): Move here from cgraph.h; revamp for
25451         cgraph_function_or_thunk_node.
25452         * lto-symtab.c (lto_varpool_replace_node): Update.
25453         (lto_symtab_resolve_can_prevail_p): Update.
25454         (lto_symtab_merge_cgraph_nodes): Update.
25455         * ipa-cp.c (determine_versionability, initialize_node_lattices,
25456         propagate_constants_accross_call, devirtualization_time_bonus,
25457         ipcp_propagate_stage): Update.
25458         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25459         * ipa-inline-transform.c (clone_inlined_nodes,
25460         preserve_function_body_p): Update.
25461         * ipa-reference.c (propagate): Update.
25462         (write_node_summary_p): Update.
25463         * toplev.c (wrapup_global_declaration_2): Update.
25464         * cgraphunit.c (cgraph_analyze_function): Rename to ...
25465         (analyze_function) ... this one.
25466         (cgraph_process_new_functions): Update.
25467         (cgraph_reset_node): Export.
25468         (cgraph_finalize_function): Update.
25469         (cgraph_add_new_function): Update.
25470         (process_function_and_variable_attributes): Update.
25471         (varpool_finalize_decl): Update.
25472         (symbol_finalized): Remove.
25473         (symbol_finalized_and_needed): Rename to ...
25474         (symbol_defined_and_needed): ... update.
25475         (cgraph_analyze_functions): Update.
25476         (handle_alias_pairs): Update.
25477         (mark_functions_to_output): Update.
25478         (assemble_thunk): Update.
25479         (output_in_order): Update.
25480         (output_weakrefs): Update.
25481         (finalize_compilation_unit): Update.
25482         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25483         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25484         input_node, input_varpool_node): Update.
25485         * dbxout.c (dbxout_expand_expr): Update.
25486         * cgraphclones.c (cgraph_clone_node): Update.
25487         (cgraph_copy_node_for_versioning): Update.
25488         (cgraph_materialize_clone): Update.
25489         (cgraph_materialize_all_clones): Update.
25490         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25491         propagate_pure_const, propagate_nothrow): Update.
25492         * lto-streamer-out.c (lto_output, write_symbol): Update.
25493         * ipa-utils.c (ipa_reverse_postorder): Update.
25494         * ipa-inline.c (can_inline_edge_p): Update.
25495         (update_caller_keys, ipa_inline): Update.
25496         * dwarf2out.c (reference_to_unused,
25497         premark_types_used_by_global_vars_helper): Update.
25498         * tree-eh.c (tree_could_trap_p): Update.
25499         * ipa-split.c (consider_split, execute_split_functions): Update.
25500         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25501         has_addr_references_p): Update; move ahead in file for better
25502         readability.
25503         (process_references): Simplify.
25504         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25505         bodies are removed.
25506         (cgraph_comdat_can_be_unshared_p): Make static.
25507         (cgraph_externally_visible_p): Update.
25508         (varpool_externally_visible_p): Update.
25509         (function_and_variable_visibility): Update.
25510         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25511         ipa_tm_mark_force_output_node): Update.
25512         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25513         estimate_edge_devirt_benefit, inline_generate_summary,
25514         inline_write_summary): Update.
25515         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25516         * ipa-prop.c (ipa_compute_jump_functions): Update.
25517         (ipa_print_node_params, ipa_prop_read_section,
25518         ipa_update_after_lto_read, read_replacements_section): Update.
25519         * varasm.c (mark_decl_referenced): Update.
25520         (assemble_alias, dump_tm_clone_pairs): Update.
25521         * tree-inline.c (copy_bb): Update.
25522         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25523         Update.
25524         * symtab.c (dump_symtab_base): Print new flags.
25525         (verify_symtab_base): Verify new flags.
25526         (symtab_alias_ultimate_target): New function.
25527         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25528         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25529         Update.
25530         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25531         Update.
25532         * i386.c (ix86_get_function_versions_dispatcher,
25533         ix86_generate_version_dispatcher_body): Update.
25534         (fold_builtin_cpu): Use varpool_add_new_variable.
25535         * varpool.c (varpool_remove_initializer): Break out from ...
25536         (varpool_remove_node): ... this one.
25537         (dump_varpool_node, varpool_node_for_asm,
25538         cgraph_variable_initializer_availability, varpool_analyze_node,
25539         varpool_assemble_decl, varpool_remove_unreferenced_decls,
25540         varpool_finalize_named_section_flags, varpool_create_variable_alias):
25541         Update.
25543 2013-05-29  Jan Hubicka  <jh@suse.cz>
25545         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25547 2013-05-29  Easwaran Raman  <eraman@google.com>
25549         PR tree-optimization/57442
25550         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25551         when control exits the main loop.
25553 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
25555         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25556         and RX600.
25557         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25558         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25559         * rx/t-rx: Add rx100 under multi library matches option for nofpu
25560         option.
25562 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25564         PR tree-optimization/57441
25565         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25566         Don't limit size of incr_vec to number of candidates.
25568 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
25570         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25571         and mips16 directories.
25572         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25573         (MULTILIB_DIRNAMES): Ditto.
25574         (MULTILIB_EXCEPTIONS): Add new exceptions.
25575         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25576         (MULTILIB_DIRNAMES): Ditto.
25577         (MULTILIB_EXCEPTIONS): Add new exceptions.
25579 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25580             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25582         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25583         SYMBOL_TINY_ABSOLUTE.
25584         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25585         SYMBOL_TINY_ABSOLUTE.
25586         (aarch64_expand_mov_immediate): Likewise.
25587         (aarch64_classify_symbol): Likewise.
25588         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25589         Permit SYMBOL_TINY_ABSOLUTE.
25590         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25592 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25593             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25595         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25596         Refactor if/switch.  Replace gcc_assert with if.
25598 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25600         * config/i386/i386.c (initial_ix86_tune_features): Enable
25601         FP Reassociation for AMD bdver1 and bdver2.
25603 2013-05-29  Martin Jambor  <mjambor@suse.cz>
25605         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25606         and IMAGPART_EXPR do not occur within other handled_components.
25608 2013-05-29  Richard Biener  <rguenther@suse.de>
25610         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25611         access on whether the use is in the BB we currently try to
25612         vectorize.
25613         (vect_bb_vectorization_profitable_p): Pass the BB we currently
25614         vectorize to vect_bb_slp_scalar_cost.
25616 2013-05-29  Richard Biener  <rguenther@suse.de>
25618         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25619         computing scalar cost offsetted by stmts that are kept live
25620         by scalar uses.
25621         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25622         for computation of scalar cost.
25624 2013-05-28  Steve Ellcey  <sellcey@mips.com>
25626         * config/mips/mips-cpus.def (mips32r2): Change processor type.
25628 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
25630         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25631         array notation built-in reduction functions.
25632         * doc/passes.texi (Passes): Added documentation about changes done
25633         for Cilk Plus.
25634         * doc/invoke.texi (C Dialect Options): Added documentation about
25635         the -fcilkplus flag.
25636         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25637         (BUILTINS_DEF): Depend on cilkplus.def.
25638         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
25639         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25640         * cilkplus.def: New file.
25642 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
25644         PR rtl-optimization/57439
25645         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25647 2013-05-28  Easwaran Raman  <eraman@google.com>
25649         PR tree-optimization/57337
25650         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25651         (find_insert_point): Correctly identify the insertion point
25652         when two statements with the same UID is compared.
25654 2013-05-28  Richard Biener  <rguenther@suse.de>
25656         PR tree-optimization/56787
25657         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25658         from the list of data references.
25659         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25660         clobbers.
25661         (vect_analyze_loop_operations): Likewise.
25662         (vect_transform_loop): Remove clobbers.
25664 2013-05-28  Martin Jambor  <mjambor@suse.cz>
25666         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25667         and REALPART_EXPRs have scalar type.
25669 2013-05-28  Richard Biener  <rguenther@suse.de>
25671         PR tree-optimization/57411
25672         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25673         virtual operands.
25674         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25675         virtual operand propagation.
25677 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25679         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25680         destination register for bmasksi_vis.
25681         (vector_init_bshuffle): Likewise.
25682         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25684 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25686         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25687         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25688         mode if the instruction isn't available in the original mode.
25689         * config/sparc/sparc.opt (mfix-ut699): New option.
25690         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
25691         (divdf3): Turn into expander.
25692         (divdf3_nofix): New insn.
25693         (divdf3_fix): Likewise.
25694         (divsf3): Disable if -mfix-ut699.
25695         (sqrtdf2): Turn into expander.
25696         (sqrtdf2_nofix): New insn.
25697         (sqrtdf2_fix): Likewise.
25698         (sqrtsf2): Disable if -mfix-ut699.
25700 2013-05-27  Richard Biener  <rguenther@suse.de>
25702         PR middle-end/57412
25703         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25704         block for the new loop.
25706 2013-05-27  Richard Biener  <rguenther@suse.de>
25708         PR tree-optimization/57343
25709         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25710         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25711         (number_of_iterations_cond): Do not build the folded tree.
25713 2013-05-27  Richard Biener  <rguenther@suse.de>
25715         Revert
25716         PR middle-end/57381
25717         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25718         OEP_CONSTANT_ADDRESS_OF retained.
25720         PR tree-optimization/57417
25721         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25722         for unchanged base.
25723         (set_ssa_val_to): Compare addresses using
25724         get_addr_base_and_unit_offset.
25726 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
25728         PR rtl-optimization/56833
25729         * postreload.c (move2add_record_mode): New function.
25730         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25731         (move2add_use_add2_insn): Use move2add_record_sym_value.
25732         (move2add_use_add3_insn): Likewise.
25733         (reload_cse_move2add): Use move2add_valid_value_p and
25734         move2add_record_mode.  Invalidate call-clobbered and REG_INC
25735         affected regs by setting reg_mode to VOIDmode.
25736         (move2add_note_store): Don't pretend the inside of a SUBREG is
25737         the actual destination.  Invalidate single/leading registers by
25738         setting reg_mode to VOIDmode.
25739         Use move2add_record_sym_value, move2add_valid_value_p and
25740         move2add_record_mode.
25742 2013-05-27  Richard Biener  <rguenther@suse.de>
25744         PR tree-optimization/57396
25745         * tree-affine.c (double_int_constant_multiple_p): Properly
25746         return false for val == 0 and div != 0.
25748 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25750         * config/mips/mips.h: Use #elif in preprocessor conditions.
25752 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25754         PR target/53916
25755         * config/mips/constraints.md (kl): New constraint.
25756         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25757         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
25758         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
25759         from LO for MIPS16.
25760         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25762 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25764         PR target/55777
25765         * config/mips/mips.c (mips_can_inline_p): New function.
25766         (TARGET_CAN_INLINE_P): Define.
25768 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
25770         * sched-int.h (ds_t, dw_t): Make unsigned int.
25771         Fix documentation that describes how all the ds_t bits are used.
25772         Reserve the last bit for delayed-branch scheduling.
25773         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25774         (BITS_PER_DEP_WEAK): Fix definition and documentation.
25775         (gen_dep_weak_1): Remove prototype.
25776         * sched-deps.c (get_dep_weak_1): Make static.
25777         * target.def (speculate_insn, needs_block_p, gen_spec_check,
25778         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25779         * doc/tm.texi: Regenerate.
25780         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
25782 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
25784         PR debug/56950
25785         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
25787 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
25788             Sandra Loosemore  <sandra@codesourcery.com>
25790         * config.gcc (powerpc-*): Allow native for with-cpu.
25792 2013-05-24  Jeff Law  <law@redhat.com>
25794         PR tree-optimization/57124
25795         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
25796         conversion feeding a condition if the range has an overflow
25797         if -fstrict-overflow.  Add warnings for when we do make the
25798         transformation.
25800 2013-05-24  Dehao Chen  <dehao@google.com>
25802         * tree-cfg.c (locus_discrim_map): Fix the typo.
25803         (locus_discrim_hasher): Likewise.
25804         (locus_discrim_hasher::hash): Likewise.
25805         (locus_discrim_hasher::equal): Likewise.
25807 2013-05-24  Martin Jambor  <mjambor@suse.cz>
25809         PR tree-optimization/57294
25810         * cgraph.h (ipa_record_stmt_references): Declare.
25811         * cgraphbuild.c (ipa_record_stmt_references): New function.
25812         (build_cgraph_edges): Use ipa_record_stmt_references.
25813         (rebuild_cgraph_edges): Likewise.
25814         (cgraph_rebuild_references): Likewise.
25815         * ipa-prop.c (ipa_modify_call_arguments): Discard references
25816         associated with the old statement and build references from the
25817         newly built statements.
25818         * ipa-ref.c (ipa_remove_stmt_references): New function.
25819         * ipa-ref.h (ipa_remove_stmt_references): Declare.
25821 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
25823         * lra-constraints.c (emit_spill_move): Use smaller mode for
25824         mem-mem moves.
25825         (check_and_process_move): Consider mem-reg moves for secondary
25826         too.
25827         (curr_insn_transform): Don't lose insns emitted before for
25828         secondary memory moves.
25829         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
25830         reg set up in the current insn.
25832 2013-05-24  Dehao Chen  <dehao@google.com>
25834         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25835         hash function.
25836         (locus_descrim_hasher::equal): Likewise.
25837         (build_gimple_cfg): New discriminator assignment algorithm.
25838         (make_edges): Likewise.
25839         (next_discriminator_for_locus): Likewise.
25840         (same_line_p): Likewise.
25841         (assign_discriminators): Likewise.
25842         (make_cond_expr_edges): Likewise.
25843         (make_gimple_switch_edges): Likewise.
25844         (make_goto_expr_edges): Likewise.
25845         (make_gimple_asm_edges): Likewise.
25847 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
25849         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
25850         X format specifier to only display bottom 16 bits.
25851         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
25852         immediate to match for operand 2, since it will be masked.
25854 2013-05-24  Richard Biener  <rguenther@suse.de>
25856         PR tree-optimization/57287
25857         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
25858         all SSA names that occur in abnormal PHIs.
25860 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25862         PR tree-ssa/57385
25863         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
25864         that index is not negative.
25866 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
25868         PR rtl-optimization/55177
25869         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
25870         (simplify_byte_swapping_operation): New.
25871         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
25872         (simplify_relational_operation_1): Deal with BSWAP.
25874 2013-05-23  Richard Henderson  <rth@redhat.com>
25876         PR target/56742
25877         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
25878         (ix86_reorg): Call it.
25880 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
25882         PR target/57379
25883         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
25884         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
25885         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
25887 2013-05-23  Christian Bruel  <christian.bruel@st.com>
25889         PR debug/57351
25890         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
25892 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25893             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25895         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
25896         * config/aarch64/constraints.md (Usa): Remove.
25897         * doc/md.texi (AArch64 Usa): Remove.
25899 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25900             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25902         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
25903         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
25904         * config/aarch64/predicates.md (aarch64_const_address): Remove.
25905         (aarch64_mov_operand): Use aarch64_mov_operand_p.
25907 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
25909         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
25910         instruction (AdvSIMD).
25911         * config/aarch64/aarch64-builtins.c
25912         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
25913         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
25915 2013-05-23  Martin Jambor  <mjambor@suse.cz>
25917         PR middle-end/57347
25918         * tree.h (contains_bitfld_component_ref_p): Declare.
25919         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
25920         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
25921         caller.
25922         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
25923         not access a bit-field.  Assert all final offsets are byte-aligned.
25925 2013-05-23  Richard Biener  <rguenther@suse.de>
25927         PR tree-optimization/57380
25928         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
25929         least one invariant or re-used load.
25930         * passes.c (init_optimization_passes): Move pass_phiprop before
25931         pass_forwprop.
25933 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
25935         * config/aarch64/aarch64-simd.md
25936         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
25938 2013-05-23  Richard Biener  <rguenther@suse.de>
25940         PR middle-end/57381
25941         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25942         OEP_CONSTANT_ADDRESS_OF retained.
25944 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
25946         PR middle-end/57344
25947         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
25948         don't lower unit.  Handle unit not being always BITS_PER_WORD.
25950 2013-05-23  Richard Biener  <rguenther@suse.de>
25952         PR rtl-optimization/57341
25953         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
25954         instead of true_dependence.
25956 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
25958         * bb-reorder.c (branch_threshold): Make const.
25959         (exec_threshold): Ditto.
25961 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25962             Pat Haugen  <pthaugen@us.ibm.com>
25963             Peter Bergner  <bergner@vnet.ibm.com>
25965         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
25966         documentation for the power8 crypto builtins.
25968         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
25970         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
25971         macros for defining power8 builtin functions.
25972         (BU_P8V_AV_2): Likewise.
25973         (BU_P8V_AV_P): Likewise.
25974         (BU_P8V_VSX_1): Likewise.
25975         (BU_P8V_OVERLOAD_1): Likewise.
25976         (BU_P8V_OVERLOAD_2): Likewise.
25977         (BU_CRYPTO_1): Likewise.
25978         (BU_CRYPTO_2): Likewise.
25979         (BU_CRYPTO_3): Likewise.
25980         (BU_CRYPTO_OVERLOAD_1): Likewise.
25981         (BU_CRYPTO_OVERLOAD_2): Likewise.
25982         (XSCVSPDP): Fix typo, point to the correct instruction.
25983         (VCIPHER): Add power8 crypto builtins.
25984         (VCIPHERLAST): Likewise.
25985         (VNCIPHER): Likewise.
25986         (VNCIPHERLAST): Likewise.
25987         (VPMSUMB): Likewise.
25988         (VPMSUMH): Likewise.
25989         (VPMSUMW): Likewise.
25990         (VPERMXOR_V2DI): Likewise.
25991         (VPERMXOR_V4SI: Likewise.
25992         (VPERMXOR_V8HI: Likewise.
25993         (VPERMXOR_V16QI: Likewise.
25994         (VSHASIGMAW): Likewise.
25995         (VSHASIGMAD): Likewise.
25996         (VPMSUM): Likewise.
25997         (VPERMXOR): Likewise.
25998         (VSHASIGMA): Likewise.
26000         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26001         __CRYPTO__ if the crypto instructions are available.
26002         (altivec_overloaded_builtins): Add support for overloaded power8
26003         builtins.
26005         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26006         support for power8 crypto builtins.
26007         (builtin_function_type): Likewise.
26008         (altivec_init_builtins): Add support for builtins that take vector
26009         long long (V2DI) arguments.
26011         * config/rs6000/crypto.md: New file, define power8 crypto
26012         instructions.
26014 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
26015             Pat Haugen  <pthaugen@us.ibm.com>
26016             Peter Bergner  <bergner@vnet.ibm.com>
26018         * doc/invoke.texi (Option Summary): Add power8 options.
26019         (RS/6000 and PowerPC Options): Likewise.
26021         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26022         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
26023         wm, wn, wr documentation.
26025         * config/rs6000/constraints.md (wm): New constraint for VSX
26026         registers if direct move instructions are enabled.
26027         (wn): New constraint for no registers.
26028         (wq): New constraint for quad word even GPR registers.
26029         (wr): New constraint if 64-bit instructions are enabled.
26030         (wv): New constraint if power8 vector instructions are enabled.
26031         (wQ): New constraint for quad word memory locations.
26033         * config/rs6000/predicates.md (const_0_to_15_operand): New
26034         constraint for 0..15 for crypto instructions.
26035         (gpc_reg_operand): If VSX allow registers in VSX registers as well
26036         as GPR and floating point registers.
26037         (int_reg_operand): New predicate to match only GPR registers.
26038         (base_reg_operand): New predicate to match base registers.
26039         (quad_int_reg_operand): New predicate to match even GPR registers
26040         for quad memory operations.
26041         (vsx_reg_or_cint_operand): New predicate to allow vector logical
26042         operations in both GPR and VSX registers.
26043         (quad_memory_operand): New predicate for quad memory operations.
26044         (reg_or_indexed_operand): New predicate for direct move support.
26046         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26047         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26048         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26049         (POWERPC_MASKS): Add power8 options.
26050         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26051         various options.
26053         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26054         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26056         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26057         (-mpower8-fusion): New power8 options.
26058         (-mpower8-fusion-sign): Likewise.
26059         (-mpower8-vector): Likewise.
26060         (-mcrypto): Likewise.
26061         (-mdirect-move): Likewise.
26062         (-mquad-memory): Likewise.
26064         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26065         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26066         registers.
26067         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26068         (rs6000_debug_vector_unit): Add p8_vector.
26069         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26070         definitions.  Also print fusion state.
26071         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26072         (rs6000_builtin_mask_calculate): Add power8 builtin support.
26073         (rs6000_option_override_internal): Add support for power8.
26074         (rs6000_common_init_builtins): Add debugging for skipped builtins
26075         if -mdebug=builtin.
26076         (rs6000_adjust_cost): Add power8 support.
26077         (rs6000_issue_rate): Likewise.
26078         (insn_must_be_first_in_group): Likewise.
26079         (insn_must_be_last_in_group): Likewise.
26080         (force_new_group): Likewise.
26081         (rs6000_register_move_cost): Likewise.
26082         (rs6000_opt_masks): Likewise.
26084         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26085         power8 capable assembler, default to power7 options.
26086         (TARGET_DIRECT_MOVE): Likewise.
26087         (TARGET_CRYPTO): Likewise.
26088         (TARGET_P8_VECTOR): Likewise.
26089         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26090         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26091         (VECTOR_MEM_P8_VECTOR_P): Likewise.
26092         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26093         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26094         (TARGET_XSCVDPSPN): Likewise.
26095         (TARGET_XSCVSPDPN): Likewsie.
26096         (TARGET_SYNC_HI_QI): Likewise.
26097         (TARGET_SYNC_TI): Likewise.
26098         (MASK_CRYPTO): Likewise.
26099         (MASK_DIRECT_MOVE): Likewise.
26100         (MASK_P8_FUSION): Likewise.
26101         (MASK_P8_VECTOR): Likewise.
26102         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26103         temporary used by some of the direct move instructions to get two FP
26104         temporary registers does not force creation of a stack frame.
26105         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26106         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26107         that any VSX registers are tieable, even if they are also an
26108         Altivec vector mode.
26109         (r6000_reg_class_enum): Add wm, wr, wv constraints.
26110         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26111         (RS6000_BTM_CRYPTO): Likewise.
26112         (RS6000_BTM_COMMON): Likewise.
26114         * config/rs6000/rs6000.md (cpu attribute): Add power8.
26115         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26116         (enum rs6000_vector): Add power8 vector support.
26118 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26120         PR target/19599
26121         PR target/57340
26122         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26123         (any_sibcall_could_use_r3): this and handle indirect calls.
26124         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26126 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26128         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26130 2013-05-22  Richard Biener  <rguenther@suse.de>
26132         PR middle-end/57349
26133         * profile.c (branch_prob): Do not split blocks that are
26134         abnormally receiving from ECF_RETURNS_TWICE functions.
26136 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26138         * recog.c (offsettable_address_addr_space_p): Fix calculation of
26139         address mode.  Move pointer mode initialization to the same place.
26141 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26143         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26144         while it has any effect.
26146 2013-05-21  Easwaran Raman  <eraman@google.com>
26148         PR tree-optimization/57322
26149         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26150         UID of the statement added to the BB to be 1.
26152 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
26154         PR tree-optimization/57331
26155         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26156         of conversion from pointer type to integral type with integer.
26158 2013-05-21  Martin Jambor  <mjambor@suse.cz>
26160         PR lto/57289
26161         * ipa-prop.c (ipa_read_node_info): Process param_used and
26162         controlled_uses in the same order as when writing.
26164 2013-05-21  Magnus Granberg  <baldrick@free.fr>
26166         PR plugins/56754
26167         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26169 2013-05-21  Richard Biener  <rguenther@suse.de>
26171         PR tree-optimization/57318
26172         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26173         estimate stmts with side-effects as likely eliminated.
26175 2013-05-21  Richard Biener  <rguenther@suse.de>
26177         PR tree-optimization/57330
26178         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26179         preserve the call stmts fntype.
26181 2013-05-21  Richard Biener  <rguenther@suse.de>
26183         PR tree-optimization/57303
26184         * tree-ssa-sink.c (statement_sink_location): Improve killing
26185         stmt detection and properly handle self-assignments.
26187 2013-05-21  Christian Bruel  <christian.bruel@st.com>
26189         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26190         spanning registers. LEAF_REG_REMAP is supported only for contiguous
26191         registers. Set register size out of the PARALLEL loop.
26193 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
26195         PR target/56547
26196         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26197         (*fmasf4, *fmasf4_media): New insns.
26199 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26201         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26202         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26203         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26204         (mips_idiv_insns): Update the comments to say that the returned
26205         instruction counts are in units of BASE_INSN_LENGTH.
26206         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26207         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
26208         using 2 rather than 4 as the length of indirect MIPS16 and
26209         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
26210         length of a NOP.  Don't divide MIPS16 lengths by 2.
26211         (mips16_split_long_branches): Assume a branch is long if the
26212         length is greater than 4 rather than 8.
26213         * config/mips/mips.md (length): Give MIPS16 lengths directly,
26214         rather than multiplying them by 2.  Multiply instruction counts
26215         by BASE_INSN_LENGTH rather than 4.
26216         (*jump_mips16, tls_get_tp_mips16_<mode>)
26217         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26219 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26221         * config/mips/mips.md (extended_mips16): Remove branch case.
26222         (length): Remove duplicated extended_mips16 test.
26224 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26226         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26228 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
26230         * recog.h (Recog_data): Rename to...
26231         (recog_data_d): ...this.
26232         (recog_data): Update accordingly.
26233         * recog.c (recog_data): Likewise.
26234         * reload.c (save_recog_data): Likewise.
26235         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26236         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26238 2013-05-17  Julian Brown  <julian@codesourcery.com>
26240         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26241         found in a REG_EQUAL note, invalidate it.
26243 2013-05-17  Easwaran Raman  <eraman@google.com>
26245         * tree-ssa-reassoc.c (find_insert_point): New function.
26246         (insert_stmt_after): Likewise.
26247         (get_def_stmt): Likewise.
26248         (ensure_ops_are_available): Likewise.
26249         (not_dominated_by): Likewise.
26250         (rewrite_expr_tree): Do not move statements beyond what is
26251         necessary. Remove call to swap_ops_for_binary_stmt...
26252         (reassociate_bb): ... and move it here.
26253         (build_and_add_sum): Assign UIDs for new statements.
26254         (linearize_expr): Likewise.
26255         (do_reassoc): Renumber gimple statement UIDs.
26257 2013-05-17  Jan Hubicka  <jh@suse.cz>
26259         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26260         weakrefs.
26261         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26262         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26263         weakrefs.
26264         (output_weakrefs): Update.
26266 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
26267             Martin Jambor  <mjambor@suse.cz>
26269         PR middle-end/57276
26270         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26271         value that corresponds to the given aggval is found in values vector.
26273 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
26275         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26276         sse, sse2, sse3, ssse3 and sse4a flags to options.
26278 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
26280         * gengtype-state.c: (s_expr_writer): New class, to handle
26281         prettifying of output layout of s-expressions.
26282         (state_writer): New class, to write out gtype.state.
26283         (state_written_type_count): Move this variable into member data of
26284         state_writer.
26285         (s_expr_writer::s_expr_writer): New code: constructor for new class
26286         (state_writer::state_writer(): ditto
26287         (s_expr_writer::write_new_line): New function
26288         (s_expr_writer::write_any_indent): ditto
26289         (s_expr_writer::begin_s_expr): ditto
26290         (s_expr_writer::end_s_expr): ditto
26291         (write_state_fileloc): convert to method of state_writer...
26292         (state_writer:: write_state_fileloc): ...and use methods of
26293         s_expr_writer to write indentation into the gtype.state output file
26294         to visually represent the hierarchical structure of the list
26295         structures
26296         (write_state_fields): ditto, renaming to...
26297         (state_writer::write_state_fields)
26298         (write_state_a_string): ditto, renaming to...
26299         (state_writer::write_state_a_string)
26300         (write_state_string_option): ditto, renaming to...
26301         (state_writer::write_state_string_option)
26302         (write_state_type_option): ditto, renaming to...
26303         (state_writer::write_state_type_option)
26304         (write_state_nested_option): ditto, renaming to...
26305         (state_writer::write_state_nested_option)
26306         (write_state_option): ditto, renaming to...
26307         (state_writer::write_state_option)
26308         (write_state_options): ditto, renaming to...
26309         (state_writer::write_state_options)
26310         (write_state_lang_bitmap): ditto, renaming to...
26311         (state_writer::write_state_lang_bitmap)
26312         (write_state_version): ditto, renaming to...
26313         (state_writer::write_state_version)
26314         (write_state_scalar_type): ditto, renaming to...
26315         (state_writer::write_state_scalar_type)
26316         (write_state_string_type): ditto, renaming to...
26317         (state_writer::write_state_string_type)
26318         (write_state_undefined_type): ditto, renaming to...
26319         (state_writer::write_state_undefined_type)
26320         (write_state_struct_union_type): ditto, renaming to...
26321         (state_writer::write_state_struct_union_type)
26322         (write_state_struct_type): ditto, renaming to...
26323         (state_writer::write_state_struct_type)
26324         (write_state_user_struct_type): ditto, renaming to...
26325         (state_writer::write_state_user_struct_type)
26326         (write_state_lang_struct_type): ditto, renaming to...
26327         (state_writer::write_state_lang_struct_type)
26328         (write_state_param_struct_type): ditto, renaming to...
26329         (state_writer::write_state_param_struct_type)
26330         (write_state_pointer_type): ditto, renaming to...
26331         (state_writer::write_state_pointer_type)
26332         (write_state_array_type): ditto, renaming to...
26333         (state_writer::write_state_array_type)
26334         (write_state_gc_used): ditto, renaming to...
26335         (state_writer::write_state_gc_used)
26336         (write_state_common_type_content): ditto, renaming to...
26337         (state_writer::write_state_common_type_content)
26338         (write_state_type): ditto, renaming to...
26339         (state_writer::write_state_type)
26340         (write_state_pair_list): ditto, renaming to...
26341         (state_writer::write_state_pair_list)
26342         (write_state_pair): ditto, renaming to...
26343         (state_writer::write_state_pair)
26344         (write_state_typedefs): ditto, renaming to...
26345         (state_writer::write_state_typedefs)
26346         (write_state_structures): ditto, renaming to...
26347         (state_writer::write_state_structures)
26348         (write_state_param_structs): ditto, renaming to...
26349         (state_writer::write_state_param_structs)
26350         (write_state_variables): ditto, renaming to...
26351         (state_writer::write_state_variables)
26352         (write_state_srcdir): ditto, renaming to...
26353         (state_writer::write_state_srcdir)
26354         (write_state_files_list): ditto, renaming to...
26355         (state_writer::write_state_files_list)
26356         (write_state_languages): ditto, renaming to...
26357         (state_writer::write_state_languages)
26358         (write_state): create a state_writer instance and use it when
26359         writing out the state file
26361 2013-05-17  Mike Stump  <mikestump@comcast.net>
26363         PR rtl-optimization/57304
26364         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26365         accessing DF_REF_REAL_LOC.
26367 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26369         PR rtl-optimization/57281
26370         PR rtl-optimization/57300
26371         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26372         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26373         what the other splitter did if the registers are dead.
26375 2013-05-17  Richard Biener  <rguenther@suse.de>
26377         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26378         MEM_REF offsets.
26380 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26382         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26383         linking.
26385 2013-05-17  Marek Polacek  <polacek@redhat.com>
26387         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26388         length when doing non-zero store of storing '\0' to '\0'.
26390 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26392         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26393         vect_external_def oprnd1 with loop_vinfo, try to emit
26394         optional cast, negation and and stmts on the loop preheader
26395         edge instead of into the pattern def seq.
26397         PR tree-optimization/57051
26398         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26399         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26401 2013-05-16  Nick Clifton  <nickc@redhat.com>
26403         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26404         (rl78_is_naked_func): New function.
26405         (rl78_expand_prologue): Skip prologue generation for naked functions.
26406         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26407         * doc/extend.texi (naked): Add RL78 to the list of processors
26408         that supports this attribute.
26410 2013-05-16  Jeff Law  <law@redhat.com>
26412         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26414 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26416         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26417         cache parameters using detect_caches_amd also for CYRIX,
26418         NSC and TM2 signatures.
26420 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26421             Dzianis Kahanovich  <mahatma@eu.by>
26423         PR target/45359
26424         PR target/46396
26425         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26426         VIA/Centaur processors and determine their cache parameters
26427         using detect_caches_amd.
26429 2013-05-16  Teresa Johnson  <tejohnson@google.com>
26431         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26432         (rtl_verify_edges): New function.
26433         (rtl_verify_bb_insns): Ditto.
26434         (rtl_verify_bb_pointers): Ditto.
26435         (rtl_verify_bb_insn_chain): Ditto.
26436         (rtl_verify_fallthru): Ditto.
26437         (rtl_verify_bb_layout): Ditto.
26438         (rtl_verify_flow_info_1): Outline checks into new functions.
26439         (rtl_verify_flow_info): Ditto.
26441 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
26443         * cfghooks.c (copy_bbs): Add update_dominance argument.
26444         * cfghooks.h (copy_bbs): Update prototype.
26445         * tree-cfg.c (gimple_duplicate_sese_region):
26446         Add update_dominance argument.
26447         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26448         * tree-ssa-loop-ch.c (copy_loop_headers): Update
26449         gimple_duplicate_sese_region call.
26450         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26451         Update copy_bbs call.
26452         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26453         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26455 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26457         * tree-vectorizer.h (NUM_PATTERNS): Increment.
26458         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26459         vect_recog_rotate_pattern.
26460         (vect_recog_rotate_pattern): New function.
26462 2013-05-16  Jason Merrill  <jason@redhat.com>
26464         * Makefile.in (LLINKER): New variable.
26465         (mostlyclean): Remove link mutex.
26466         * configure.ac: Handle --enable-link-mutex.
26467         * lock-and-run.sh: New script.
26469 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26471         PR target/19599
26472         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26473         for NULL decl.
26475 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26477         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26479 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
26481         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26482         * config/arm/arm.c (next_consecutive_mem): New function.
26483         (gen_movmem_ldrd_strd): Likewise.
26484         * config/arm/arm.md (movmemqi): Update condition and code.
26485         (unaligned_loaddi, unaligned_storedi): New patterns.
26487 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26489         * config.gcc: Obsolete *-*-solaris2.9*.
26490         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26492 2013-05-16  Richard Biener  <rguenther@suse.de>
26494         * passes.c (init_optimization_passes): Move pass_parallelize_loops
26495         earlier, after GRAPHITE transforms and IV canonicalization.
26497 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26499         * omp-low.c (extract_omp_for_data): For collapsed loops,
26500         if at least one of the loops is known at compile time to
26501         iterate zero times, set count to 0.
26502         (expand_omp_regimplify_p): New function.
26503         (expand_omp_for_generic): For collapsed loops, if at least
26504         one of the loops isn't known to iterate at least once,
26505         add runtime check with setting count to 0.
26506         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26507         For unsigned types if it isn't known at compile time that
26508         the loop will iterate at least once, add runtime check to bypass
26509         the whole loop if initial condition isn't true.
26511 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
26513         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26515 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
26517         PR middle-end/57286
26518         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26519         transformations to avoid an infinite loop.
26521 2013-05-16  Marek Polacek  <polacek@redhat.com>
26523         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26525 2013-05-15  Leif Ekblad  <leif@rdos.net>
26527         * config/i386/i386.c (ix86_decompose_address): Use
26528         DEFAULT_TLS_SEG_REG to access TLS segment register.
26529         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26530         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26531         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26533 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
26535         PR target/57260
26536         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26537         sibling calls to functions that would normally be lazily bound,
26538         unless $gp is call-clobbered.
26540 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
26542         * config/i386/i386.c (ix86_option_override_internal): Update
26543         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
26544         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26545         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26546         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26547         of TARGET_3DNOW.
26548         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26550 2013-05-15  Andreas Schwab  <schwab@suse.de>
26552         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26553         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
26554         third operand.
26556 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26558         * loop-unroll.c (report_unroll_peel): Check decision before
26559         emitting unroll/peel message.
26561 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26563         * function.h (has_bb_partition): New rtl_data flag.
26564         (bb_reorder_complete): Ditto.
26565         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26566         instead of flag_reorder_blocks_and_partition.
26567         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26568         with some enhancements.
26569         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26570         * bb-reorder.c (connect_traces): Check for has_bb_partition
26571         instead of flag_reorder_blocks_and_partition.
26572         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26573         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26574         verify_hot_cold_block_grouping.
26575         (partition_hot_cold_basic_blocks): Set has_bb_partition.
26577 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26579         PR target/19599
26580         * config/arm/predicates.md (call_insn_operand): New predicate.
26581         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
26582         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26583         if insn is not a tail call.
26584         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26585         registers.
26586         * config/arm/arm.h (enum reg_class): New caller save register class.
26587         (REG_CLASS_NAMES): Likewise.
26588         (REG_CLASS_CONTENTS): Likewise.
26589         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26590         without decls.
26592 2013-05-15  Richard Biener  <rguenther@suse.de>
26594         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26595         of MSG_OPTIMIZED_LOCATIONS.
26596         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26597         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26598         message.
26599         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26600         of MSG_OPTIMIZED_LOCATIONS.
26601         (execute_vect_slp): Likewise.
26602         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26603         (vect_create_cond_for_alias_checks): Likewise.
26604         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26605         (vect_recog_widen_mult_pattern): Likewise.
26606         (vect_recog_widen_sum_pattern): Likewise.
26607         (vect_recog_over_widening_pattern): Likewise.
26608         (vect_recog_widen_shift_pattern): Likewise.
26609         (vect_recog_vector_vector_shift_pattern): Likewise.
26610         (vect_recog_divmod_pattern): Likewise.
26611         (vect_recog_mixed_size_cond_pattern): Likewise.
26612         (vect_recog_bool_pattern): Likewise.
26613         (vect_pattern_recog_1): Likewise.
26615 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26617         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26618         non-functions to builtin_unreachable.
26619         * ipa-inline-transform.c (inline_call): Do not assert estimates were
26620         correct when new direct edges were discovered.
26622 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26624         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26625         header, print symbol order instead of node uid, print more information
26626         about indirect edge targets.
26627         (ipa_make_edge_direct_to_target): Print symbol order instead of node
26628         uids.
26629         (ipa_make_edge_direct_to_target): Likewise.
26630         (remove_described_reference): Likewise.
26631         (propagate_controlled_uses): Likewise.
26632         (ipa_print_node_params): Also print symbol order.
26633         (ipcp_transform_function): Print symbol order instead of node uids.
26634         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26635         (cgraph_get_create_real_symbol_node): Likewise.
26636         * ipa-cp.c (print_lattice): Likewise.
26637         (print_all_lattices): Likewise.
26638         (determine_versionability): Likewise.
26639         (initialize_node_lattices): Likewise.
26640         (estimate_local_effects): Likewise.
26641         (update_profiling_info): Likewise.
26642         (create_specialized_node): Likewise.
26643         (perhaps_add_new_callers): Likewise.
26644         (decide_about_value): Likewise.
26645         (decide_whether_version_node): Likewise.
26646         (identify_dead_nodes): Likewise.
26647         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26648         (dump_inline_summary): Likewise.
26649         (estimate_node_size_and_time): Likewise.
26650         (inline_analyze_function): Likewise.
26651         * ipa-inline.c (report_inline_failed_reason): Likewise.
26652         (want_early_inline_function_p): Likewise.
26653         (edge_badness): Likewise.
26654         (update_edge_key): Likewise.
26655         (inline_small_functions): Likewise.  Add dumping of order to two other
26656         dumps.
26657         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26658         instead of node uids.
26659         (propagate_pure_const): Likewise.
26660         (propagate_pure_const): Likewise.
26661         * ipa-utils.c (dump_cgraph_node_set): Likewise.
26662         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26663         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26664         of node uids.
26665         * tree-pretty-print.c (dump_function_header): Likewise.
26666         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26667         Print symbol order instead of node uids.
26669 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26671         * config/s390/s390.c (s390_register_move_cost): Don't impose the
26672         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26674 2013-05-15  Richard Biener  <rguenther@suse.de>
26676         PR tree-optimization/57275
26677         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26678         return value for fail to do runtime alias checks for gather loads.
26680 2013-05-15  Jan Hubicka  <jh@suse.cz>
26682         PR lto/57038
26683         PR lto/47375
26684         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26685         weakrefs are not external.
26686         (lto_symtab_merge_decls): Fix thinko when dealing with
26687         non-lto_symtab decls.
26688         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
26689         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
26690         * varpool.c (dump_varpool_node): Dump more flags.
26692 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26694         * config/i386/i386.c (processor_alias_table): Add instruction
26695         FSGSBASE for AMD bdver3 architecture.
26697 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26699         * tree.c (warn_deprecated_use): Print file:line using locus color.
26700         * diagnostic.c (diagnostic_report_current_module): Print file:line
26701         and file:line:column using locus color.
26703 2013-05-14  Mike Stump  <mikestump@comcast.net>
26705         * gdbinit.in: Add __null.
26707 2013-05-14  Mike Stump  <mikestump@comcast.net>
26709         * recog.h: Rename struct recog_data to Recog_data.
26710         * recog.c: Likewise.
26711         * reload.c (can_reload_into): Likewise.
26712         * config/picochip/picochip.c: Likewise.
26714 2013-05-14  Mike Stump  <mikestump@comcast.net>
26716         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26718 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
26720         * resource.h (struct resources): Remove unch_memory member.
26721         (CLEAR_RESOURCE): Don't clear unch_memory.
26722         * resource.c (mark_referenced_resources): Don't set it.
26723         (mark_set_resources): Likewise.
26724         (mark_target_live_regs): Don't clear it.
26725         (init_resource_info): Likewise.
26726         * reorg.c (resource_conflicts_p): Don't compare it.
26727         (redundant_insn): Don't set it.
26729         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26730         Remove prototypes.
26731         * emit-rtl.c (next_label): Remove unused function.
26732         (skip_consecutive_labels, link_cc0_insns): Move to ...
26733         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26734         only place where these functions are used, and make them static.
26736 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26738         * fold-const.c (fold_negate_expr): Handle vectors.
26739         (fold_truth_not_expr): Make it static.
26740         (fold_invert_truthvalue): New static function.
26741         (invert_truthvalue_loc): Handle vectors. Do not call
26742         fold_truth_not_expr directly.
26743         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26744         <TRUTH_NOT_EXPR>: Do not cast to boolean.
26745         (fold_comparison): Handle vector constants.
26746         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26747         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26748         * tree.h (fold_truth_not_expr): Remove declaration.
26750 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
26752         * config/aarch64/aarch64-simd.md
26753         (aarch64_vcond_internal<mode>): Rename to...
26754         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26755         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26756         float modes. Clarify all iterator modes.
26757         (vcond<mode><mode>): Use new name for vcond expanders.
26758         (vcond<v_cmp_result><mode>): Likewise.
26759         (vcondu<mode><mode>: Likewise.
26760         * config/aarch64/iterators.md (VDQF_COND): New.
26762 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26764         PR bootstrap/57266
26765         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26766         variable for the shift amount. Check that we shift by non-negative
26767         amounts.
26769 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
26771         PR target/42017
26772         * config/arm/arm.h (EPILOGUE_USES): Only return true
26773         for LR_REGNUM after epilogue_completed.
26775 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
26777         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26778         is error_mark_node.
26780 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26782         PR target/57261
26783         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
26784         and Solaris 11+/x86 with gld.
26785         * configure: Regenerate.
26787 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26789         * expmed.c (expand_shift_1): Canonicalize rotates by
26790         constant bitsize / 2 to bitsize - 1.
26791         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
26792         case ROTATERT>: Likewise.
26794         Revert:
26795         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26797         * config/i386/i386.md (rotateinv): New code attr.
26798         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26799         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26800         roll $31, %eax, etc.
26802 2013-05-14  Richard Biener  <rguenther@suse.de>
26804         PR middle-end/57235
26805         * tree-eh.c (sink_clobbers): Give up for successors with
26806         multiple predecessors and no virtual uses.
26808 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
26810         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
26811         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
26813 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26815         PR middle-end/57251
26816         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
26817         the case when both op0 and op1 have VOIDmode.
26819 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
26821         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
26822         in multiply-accumulate mode.
26824 2013-05-13  Guozhi Wei  <carrot@google.com>
26826         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
26828 2013-05-13  Kai Tietz  <ktietz@redhat.com>
26830         PR target/56975
26831         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
26832         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
26833         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
26834         * config/i386/i386.c (ix86_option_override_internal): Likewise.
26835         (ix86_expand_prologue): Likewise.
26836         (ix86_expand_split_stack_prologue): Likewise.
26837         (legitimate_pic_address_disp_p): Likewise.
26838         (legitimize_pic_address): Likewise.
26839         (legitimize_tls_address): Likewise.
26840         (legitimize_pe_coff_symbol): Likewise.
26841         (output_pic_addr_const): Likewise.
26842         (construct_plt_address): Likewise.
26843         (ix86_expand_call): Likewise.
26844         (x86_output_mi_thunk): Likewise.
26845         (x86_function_profiler): Likewise.
26847 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
26849         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
26850         similar switch cases.
26851         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
26852         (aarch64_simd_mov_to_<mode>low): Delete.
26853         (aarch64_simd_mov_to_<mode>high): Delete.
26854         (move_lo_quad_<mode>): Add w<-r alternative.
26855         (aarch64_simd_move_hi_quad_<mode>): Likewise.
26856         (aarch64_simd_mov_from_*): Update type attribute.
26857         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
26858         statement.
26860 2013-05-13  Jan Hubicka  <jh@suse.cz>
26862         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
26863         * config/i386/i386.c (ix86_compute_frame_layout,
26864         ix86_expand_epilogue, emit_i387_cw_initialization,
26865         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
26866         ix86_local_alignment): Fix use of size/speed predicates.
26868 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26870         PR tree-optimization/45216
26871         PR tree-optimization/57157
26872         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
26873         the (-Y) & (B - 1) variant if OP is |.
26874         * expmed.c (expand_shift_1): For rotations by const0_rtx just
26875         return shifted.  Use (-op1) & (prec - 1) as other_amount
26876         instead of prec - op1.
26878 2013-05-13  Martin Jambor  <mjambor@suse.cz>
26880         PR middle-end/42371
26881         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
26882         (ipa_constant_data): New type.
26883         (ipa_jump_func): Use ipa_constant_data to hold information about
26884         constant jump functions.
26885         (ipa_get_jf_constant): Adjust to jump function type changes.
26886         (ipa_get_jf_constant_rdesc): New function.
26887         (ipa_param_descriptor): New field controlled_uses.
26888         (ipa_get_controlled_uses): New function.
26889         (ipa_set_controlled_uses): Likewise.
26890         * ipa-ref.h (ipa_find_reference): Declare.
26891         * ipa-prop.c (ipa_cst_ref_desc): New type.
26892         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
26893         changes.
26894         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
26895         New parameter cs.  Adjust all callers.
26896         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
26897         (remove_described_reference): New function.
26898         (jfunc_rdesc_usable): Likewise.
26899         (try_make_edge_direct_simple_call): Decrement controlled use count,
26900         attempt to remove reference if it hits zero.
26901         (combine_controlled_uses_counters): New function.
26902         (propagate_controlled_uses): Likewise.
26903         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
26904         (ipa_edge_duplication_hook): Duplicate reference descriptions.
26905         (ipa_print_node_params): Print described use counter.
26906         (ipa_write_jump_function): Adjust to jump function type changes.
26907         (ipa_read_jump_function): New parameter CS, pass it to
26908         ipa_set_jf_constant.  Adjust caller.
26909         (ipa_write_node_info): Stream controlled use count
26910         (ipa_read_node_info): Likewise.
26911         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
26912         asserting.
26913         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
26914         count.  Remove cloning-added reference if it reaches zero.
26915         * ipa-ref.c (ipa_find_reference): New function.
26917 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26919         * config/i386/i386.c (processor_target_table): Modified default
26920         alignment values for AMD BD and BT architectures.
26922 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
26924         * tree-vect-generic.c (uniform_vector_p): Move ...
26925         * tree.c (uniform_vector_p): ... here.
26926         * tree.h (uniform_vector_p): Declare it.
26927         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
26928         into a scalar.
26930 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26932         PR tree-optimization/57230
26933         * tree-ssa-strlen.c (handle_char_store): Record length for
26934         array store from STRING_CST.
26936         PR tree-optimization/57230
26937         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
26938         check.
26940 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
26942         * config/epiphany/epiphany.c (epiphany_init): Check size of
26943         NUM_MODES_FOR_MODE_SWITCHING.
26944         (epiphany_expand_prologue):
26945         Remove CONFIG_REGNUM initial value handling code.
26946         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
26947         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
26948         (emit_set_fp_mode, epiphany_mode_after): Likewise.
26949         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
26950         Don't return 1 for FP_MODE_NONE.
26951         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
26952         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
26953         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
26954         * config/epiphany/epiphany.md (save_config): New pattern.
26956 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
26958         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
26960 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
26962         * config/i386/i386.md (memory): Handle sseishft1.
26963         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
26964         (*vec_extractv2di_1): Ditto.
26966 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
26968         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
26969         saved registers.
26971 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26973         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
26974         Add mthumb/march=armv7-a multilib.
26975         Add mthumb/march=armv7-r multilib.
26976         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
26978 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
26980         * config/v850/t-rtems: Add more multilibs.
26982 2013-05-10  Richard Biener  <rguenther@suse.de>
26984         PR tree-optimization/57214
26985         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
26986         not propagate from SSA names that occur in abnormal PHI nodes.
26988 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
26990         * stor-layout.c (element_precision): New function.
26991         * machmode.h (element_precision): Declare it.
26992         * tree.c (build_minus_one_cst): New function.
26993         (element_precision): Likewise.
26994         * tree.h (build_minus_one_cst): Declare new function.
26995         (element_precision): Likewise.
26996         * fold-const.c (operand_equal_p): Use element_precision.
26997         (fold_binary_loc): Handle vector types.
26998         * convert.c (convert_to_integer): Use element_precision.
26999         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27000         separately.
27002 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
27004         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27005         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27006         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27007         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27008         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27009         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27010         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27011         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27012         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27013         (Uuw8): New constraints.
27014         (Usb4): Move into alphabetical order.
27015         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27016         (sd8_operand, ub8_operand, uw8_operand): New predicates.
27017         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27018         previously unnamed patterns.
27019         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27020         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27021         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27022         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27023         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
27024         of specific lengths.
27026 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
27028         * config/i386/i386.md (rotateinv): New code attr.
27029         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27030         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27031         roll $31, %eax, etc.
27033         PR tree-optimization/45216
27034         PR tree-optimization/57157
27035         * tree-ssa-forwprop.c (simplify_rotate): New function.
27036         (ssa_forward_propagate_and_combine): Call it.
27038 2013-05-10  Richard Biener  <rguenther@suse.de>
27040         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27041         disable peeling when we version for aliasing.
27042         (vector_alignment_reachable_p): Honor explicit user alignment.
27043         (vect_supportable_dr_alignment): Likewise.
27044         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27045         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27046         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27047         then peeling to arrange for the cost-model check to come first.
27049 2013-05-10  Alan Modra  <amodra@gmail.com>
27051         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27052         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27053         * configure: Regenerate.
27055 2013-05-10  Alan Modra  <amodra@gmail.com>
27057         PR target/55033
27058         * varasm.c (default_elf_select_section): Move !DECL_P check..
27059         (get_named_section): ..to here before calling get_section_name.
27060         Adjust assertion.
27061         (default_section_type_flags): Add DECL_P check.
27062         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27063         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27065 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
27067         * config/epiphany/epiphany.c (epiphany_expand_prologue):
27068         When using gen_stack_adjust_str with a register offset, add a
27069         REG_FRAME_RELATED_EXPR note.
27071 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
27073         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27074         (*vec_extractv4si_zext_mem): Ditto.
27075         (*vec_extractv2di): Add 0->x and x->x alternatives.
27076         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27077         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27079 2013-05-09  Jason Merrill  <jason@redhat.com>
27081         N3639 C++1y VLA support
27082         * gimplify.c (gimplify_vla_decl): Don't touch an existing
27083         DECL_VALUE_EXPR.
27085         * tree.c (build_constructor_va): New.
27086         * tree.h: Declare it.
27088 2013-05-09  Martin Jambor  <mjambor@suse.cz>
27090         PR lto/57084
27091         * gimple-fold.c (canonicalize_constructor_val): Call
27092         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27094 2013-05-09  Jan Hubicka  <jh@suse.cz>
27095             Richard Biener  <rguenther@suse.de>
27097         PR lto/54095
27098         * symtab.c (symtab_make_decl_local): Do not add private names.
27100 2013-05-09  Jan Hubicka  <jh@suse.cz>
27102         PR lto/54095
27103         * symtab.c (insert_to_assembler_name_hash): Handle clones.
27104         (unlink_from_assembler_name_hash): Likewise.
27105         (symtab_prevail_in_asm_name_hash, symtab_register_node,
27106         symtab_unregister_node, symtab_initialize_asm_name_hash,
27107         change_decl_assembler_name): Update.
27109 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
27111         * config/aarch64/aarch64.md: New movtf split.
27112         (*movtf_aarch64): Update.
27113         (aarch64_movdi_tilow): Handle TF modes and rename to
27114         aarch64_movdi_<mode>low.
27115         (aarch64_movdi_tihigh): Handle TF modes and rename to
27116         aarch64_movdi_<mode>high
27117         (aarch64_movtihigh_di): Handle TF modes and rename to
27118         aarch64_mov<mode>high_di
27119         (aarch64_movtilow_di): Handle TF modes and rename to
27120         aarch64_mov<mode>low_di
27121         (aarch64_movtilow_tilow): Remove spurious whitespace.
27122         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27123         splits.
27124         (aarch64_print_operand): Update.
27126 2013-05-09  Alan Modra  <amodra@gmail.com>
27128         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27129         powerpc64le.
27130         * configure: Regenerate.
27132 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27134         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27135         splitter preparation statements.
27136         * config/i386/sse.md (*vec_extract* splitters): Ditto.
27137         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27138         adjust_address_nv.
27140 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27142         * gimple-ssa-strength-reduction.c (count_candidates): Change
27143         return value to int.
27144         (analyze_candidates_and_replace): Change type of length to int.
27146 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27148         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27149         (*vec_extract<mode>): Use VI12_128 mode iterator.
27150         (*vec_extract<mode>_mem): Ditto.
27151         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27152         attribute.
27154 2013-05-08  Diego Novillo  <dnovillo@google.com>
27156         PR bootstrap/54659
27158         Revert:
27159         2012-08-17  Diego Novillo  <dnovillo@google.com>
27161         PR bootstrap/54281
27162         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27163         * config.in: Regenerate.
27164         * configure: Regenerate.
27165         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27167 2013-05-08  Jan Hubicka  <jh@suse.cz>
27169         PR lto/54095
27170         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27171         * cgraph.h (symtab_node_base): Add unique_name.
27172         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27173         input_overwrite_node, input_varpool_node): Stream unique_name.
27174         * cgraphclones.c (cgraph_create_virtual_clone,
27175         cgraph_function_versioning): Set unique_name.
27176         * ipa.c (function_and_variable_visibility): Set unique_name.
27178 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27180         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27181         (alloc_cand_and_find_basis): Restrict conditional candidate
27182         processing to CAND_MULTs.
27184 2013-05-08  Jan Hubicka  <jh@suse.cz>
27186         PR lto/54095
27187         lto-symtab.c (lto_symtab_symbol_p): New function.
27188         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27189         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27190         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27191         Skip static symbols.
27193 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
27195         PR tree-optimization/57200
27196         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27197         Only call inform if the preceding warning_at returns true.
27199 2013-05-07  Han Shen  <shenhan@google.com>
27201         * cfgexpand.c (record_or_union_type_has_array_p): New function.
27202         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27203         * common.opt (fstack-protector-strong): New option.
27204         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27205         * doc/invoke.texi (Optimization Options): Document
27206         "-fstack-protector-strong".
27207         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27209 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27211         * config/mips/mips.c (mips_machine_reorg2): Return 0.
27213 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
27215         * ira.c (update_equiv_regs): Add insn having equiv memory even if
27216         it is not lhs of the insn.
27217         (setup_reg_equiv): Remove insn having equiv memory which it is not
27218         lhs of the insn.
27219         * lra-constraints.c (process_address): Try to improve generation
27220         code for address base + disp.
27221         (lra_constraints): Make correct the code for checking insn setting
27222         up backward equivalence.  Remove insn only if it is in the init
27223         insn list.
27224         * lra-eliminations.c (update_reg_eliminate): Change return value.
27225         (lra_eliminate): Use the result.
27227 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
27229         * config/i386/sse.md (ssescalarnummask): New mode attribute.
27230         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27231         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27232         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27233         register target operands.
27234         (*vec_extractv8hi_sse2): New pattern.
27235         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27236         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27237         (*vec_extract<mode>_mem): New insn and split pattern.
27239 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
27241         * config/arm/arm.c (arm_asan_shadow_offset): New function.
27242         (TARGET_ASAN_SHADOW_OFFSET): Define.
27243         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27244         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27246 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27248         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27249         (incr_vec_index): Return -1 if increment not found.
27250         (create_add_on_incoming_edge): Assert if increment not found.
27251         (record_increment): Limit number of increments recorded.
27252         (all_phi_incrs_profitable): Return false if an increment not found.
27253         (replace_profitable_candidates): Don't process increments that were
27254         not recorded.
27255         (analyze_candidates_and_replace): Limit size of incr_vec.
27257 2013-05-07  Richard Biener  <rguenther@suse.de>
27259         * calls.c (special_function_p): setjmp-like functions are leaf.
27260         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27261         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27263 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
27265         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27266         (aarch64_simd_mov<mode>): New expander.
27267         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27268         (aarch64_simd_mov_to_<mode>high): Likewise.
27269         (aarch64_simd_mov_from_<mode>low): Likewise.
27270         (aarch64_simd_mov_from_<mode>high): Likewise.
27271         (aarch64_dup_lane<mode>): Update.
27272         (aarch64_dup_lanedi): New instruction pattern.
27273         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27274         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27276 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27278         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27279         (replace_mult_candidate): Remove unnecessary argument; remove
27280         unnecessary parameter from call to introduce_cast_before_cand.
27281         (replace_unconditional_candidate): Remove unnecessary parameter
27282         from call to replace_mult_candidate.
27283         (replace_conditional_candidate): Likewise.
27284         (insert_initializers): Use make_temp_ssa_name.
27285         (introduce_cast_before_cand): Remove unnecessary argument; use
27286         make_temp_ssa_name.
27287         (replace_one_candidate): Remove unnecessary argument; remove
27288         unnecessary parameter from calls to introduce_cast_before_cand.
27289         (replace_profitable_candidates): Remove unnecessary parameters
27290         from calls to replace_one_candidate.
27292 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27294         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27295         phi def as possibly hiding a basis for a CAND_ADD whose operands
27296         have been commuted in the analysis.
27297         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27299 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27301         * config/aarch64/aarch64.md
27302         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27303         shift value between 0-4.
27305 2013-05-07  Richard Biener  <rguenther@suse.de>
27307         * double-int.h (rshift): New overload.
27308         * double-int.c (rshift): New function.
27309         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27310         (create_reference_ops_from_ref): Remove.
27311         (vn_reference_insert): Use shared ops for constructing the
27312         reference and copy it.
27314 2013-05-07  Richard Biener  <rguenther@suse.de>
27316         PR middle-end/57190
27317         * tree-eh.c (sink_clobbers): Properly propagate
27318         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27320 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
27322         PR tree-optimization/57149
27323         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27324         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27325         collect_phi_def_edges, execute_late_warn_uninitialized): Use
27326         uninit_undefined_value_p instead of ssa_undefined_value_p.
27328         PR debug/57184
27329         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27330         for modifier == EXPAND_INITIALIZER.
27332 2013-05-07  Anton Blanchard  <anton@samba.org>
27334         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27335         for powerpc64 little endian.
27336         * configure: Regenerate.
27338 2013-05-06  Graham Stott  <grahams@btinternet.com>
27340         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27341         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27342         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27343         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27345 2013-05-06  Graham Stott  <grahams@btinternet.com>
27347         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27348         codes which allow non-lvalues.
27350 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
27352         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27353         components are all 1s.
27354         (integer_minus_onep): New function.
27355         * tree.h (integer_minus_onep): Declare it.
27356         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27357         integer_minus_onep instead of integer_all_onesp.
27359 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27361         PR target/52933
27362         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27363         variations of these patterns.
27365 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27367         * config/i386/i386.md (isa): Add x64_sse4 member.
27368         (enabled): Handle x64_sse4.
27369         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27370         instruction for 64bit SSE4_1 targets.  Update insn attributes.
27371         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27372         instruction for SSE4_1 targets.  Update insn attributes.
27373         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27374         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27375         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27376         const_1 selector.
27377         (*vec_extractv4si): Rename from *sse4_1_pextrd.
27378         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27379         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27381 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27383         PR target/57108
27384         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27386 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
27388         * final.c (do_assembler_dialects): Don't handle curly braces and
27389         vertical bar escaped by % as dialect delimiters.
27390         (output_asm_insn): Print curly braces and vertical bar if escaped
27391         by % and ASSEMBLER_DIALECT defined.
27392         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27393         * doc/tm.texi: Regenerated.
27395 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27397         * config/mips/mips.c: Include tree-pass.h.
27398         (mips_reorg): Split in pre- and post-dbr_schedule parts.
27399         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27400         (pass_mips_machine_reorg2): New machine specific pass.
27401         (insert_pass_mips_machine_reorg2): New pass plugin definition.
27402         (mips_option_override): Register the new pass.
27403         * rtl.h (cleanup_barriers): Remove prototype.
27404         (dbr_schedule): Likewise.
27405         * jump.c (cleanup_barriers): Make static.
27406         * reorg.c (dbr_schedule): Likewise.
27408 2013-05-06  Richard Biener  <rguenther@suse.de>
27410         PR tree-optimization/57185
27411         * tree-parloops.c (add_field_for_reduction): Handle anonymous
27412         SSA names properly.
27414 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27416         PR target/57106
27417         * config/i386/i386.c (add_parameter_dependencies): Add dependence
27418         between "first_arg" and "insn", not "last" and "insn".
27420 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27422         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27423         (find_candidates_in_block): Re-enable slsr_process_phi.
27424         (create_phi_basis): Fix double counting of candidate adjustment.
27426 2013-05-06  Richard Biener  <rguenther@suse.de>
27428         PR middle-end/57147
27429         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27430         the edge is also fallthru, preserve it and just clear the
27431         abnormal flag.
27432         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27433         also complex, preserve that and just clear the fallthru flag.
27434         * tree-inline.c (update_ssa_across_abnormal_edges): Also
27435         update virtual operands.
27437 2013-05-06  Alan Modra  <amodra@gmail.com>
27439         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27440         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27441         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27442         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27443         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27444         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27446 2013-05-06  Alan Modra  <amodra@gmail.com>
27448         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27449         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
27450         (DEFAULT_ASM_ENDIAN): Define.
27451         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27452         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27453         Update -K PIC clause from sysv4.h.
27454         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27455         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27457 2013-05-06  Alan Modra  <amodra@gmail.com>
27459         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27460         twice for little-endian.
27461         (ashrdi3_no_power, ashrdi3): Support little-endian.
27463 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27465         PR target/55303
27466         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27467         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27468         related expanders.
27469         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27470         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27471         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27472         New predicates.
27474 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
27475             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27477         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27478         * config/pa/pa.opt: Make mbig-switch a no-op.
27479         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27480         (CASE_VECTOR_MODE): Always return SImode.
27481         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27482         for the !TARGET_BIG_SWITCH case.
27483         * config/pa/pa-linux.h: Likewise.
27484         * config/pa/pa-openbsd.h: Likewise.
27485         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27486         * config/pa/pa.md (short_jump): Remove define_insn.
27487         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27488         (casesi0): Remove define_insn.
27489         (type): Remove btable_branch.
27490         (pa_combine_type): Likewise.
27491         (in_nullified_branch_delay): Likewise.
27492         (in_call_delay): Likewise.
27493         (define_delay): Likewise.
27494         (define_insn_reservation "Z3"): Likewise.
27495         (define_insn_reservation "Z4"): Likewise.
27496         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27497         (pa_adjust_insn_length): Remove adjustment for btable branches.
27498         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27499         and mno-big-switch
27501 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
27503         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27504         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27505         Add m->r,x alternatives.
27506         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27507         splitters using SWI48x mode iterator.
27508         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
27509         TARGET_64BIT.  Add m->x alternative.
27510         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27511         Add o->x alternative.  Enable for TARGET_SSE.
27512         (sse_storeq): Remove expander.
27513         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27514         with memory input operand.
27515         (*vec_extractv2di_1 splitter): New.
27516         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27517         * config/i386/i386.md (ssevecmodelower): New mode attribute.
27519 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27521         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
27522         (INT_LOWPART): Delete.
27523         (extract_MB): Adjust.
27524         (extract_ME): Adjust.
27525         (print_operand): Adjust.
27527 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27529         * config/rs6000/predicates.md (reg_or_add_cint_operand,
27530         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27531         (reg_or_logical_cint_operand, easy_fp_constant,
27532         logical_const_operand): Delete "CONST_DOUBLE" case.
27533         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27534         "HOST_BITS_PER_WIDE_INT == 64" test.
27535         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
27536         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27537         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27538         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27539         test.
27540         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27541         CONST_DOUBLE DImode/VOIDmode case.
27542         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27543         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27544         CONST_DOUBLE VOIDmode case.
27545         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27546         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27547         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27548         Delete CONST_DOUBLE case.
27549         (splitters for mov FMOVE64 const_double): Delete
27550         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27551         "HOST_BITS_PER_WIDE_INT >= 64" test.
27552         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27553         case.
27554         (mov DI const_double): Delete.
27556 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
27558         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27559         on op shows all bits zero in mode of a lowpart subreg, return zero.
27561 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27563         PR target/57150
27564         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27565         to save TFmode registers and DImode to save TImode registers for
27566         caller save operations.
27567         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27568         mark being partially clobbered since they only use the first
27569         double word.
27571         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27572         and TDmode only use the upper 64-bits of each VSX register.
27574 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27576         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27577         (find_candidates_in_block): Disable slsr_process_phi.
27579 2013-05-03  Guozhi Wei  <carrot@google.com>
27581         * coverage.c (coverage_obj_init): Move the construction of gcov
27582         constructor to ...
27583         (build_init_ctor): ... here.
27585 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27587         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27588         (slsr_cand_d): Redefine def_phi.
27589         (stride_status, phi_adjust_status, count_phis_status): New enums.
27590         (find_phi_def): New.
27591         (find_basis_for_base_expr): New.
27592         (find_basis_for_candidate): Handle hidden bases.
27593         (alloc_cand_and_find_basis): Handle phi candidates.
27594         (slsr_process_phi): New.
27595         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27596         (create_mul_imm_cand): Likewise.
27597         (create_add_ssa_cand): Exclude phi base candidates.
27598         (create_add_imm_cand): Likewise.
27599         (slsr_process_cast): Likewise.
27600         (slsr_process_copy): Likewise.
27601         (find_candidates_in_block): Handle phi candidates.
27602         (dump_candidate): Likewise.
27603         (unconditional_cands): Delete.
27604         (unconditional_cands_with_known_stride_p): Delete.
27605         (phi_dependent_cand_p): New.
27606         (cand_increment): Handle phi-dependent candidates.
27607         (replace_dependent): Delete.
27608         (replace_mult_candidate): New.
27609         (replace_unconditional_candidate): New.
27610         (incr_vec_index): Move to avoid forward reference.
27611         (create_add_on_incoming_edge): New.
27612         (create_phi_basis): New.
27613         (replace_dependents): Delete.
27614         (replace_conditional_candidate): New.
27615         (phi_add_costs): New.
27616         (replace_uncond_cands_and_profitable_phis): New.
27617         (record_increment): Handle phi adjustments.
27618         (record_phi_increments): New.
27619         (record_increments): Handle phi adjustments.
27620         (phi_incr_cost): New.
27621         (lowest_cost_path): Handle phis.
27622         (total_savings): Likewise.
27623         (analyze_increments): Likewise.
27624         (ncd_with_phi): New.
27625         (ncd_of_cand_and_phis): New.
27626         (nearest_common_dominator_for_cands): Handle phi increments.
27627         (all_phi_incrs_profitable): New.
27628         (replace_profitable_candidates): Handle phi-dependent candidates.
27629         (analyze_candidates_and_replace): Likewise.
27631 2013-05-03  Teresa Johnson  <tejohnson@google.com>
27633         PR bootstrap/57154
27634         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27635         do not exceed REG_BR_PROB_BASE.
27637 2013-05-03  Jeff Law  <law@redhat.com>
27639         PR tree-optimization/57144
27640         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27641         operand of the condition will bit into the new type when eliminating
27642         a cast feeding a condition.
27644 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
27646         PR rtl-optimization/57130
27647         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27648         of COMPARE as in_code to the recursive call if needed.
27650 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
27652         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27653         (enabled): Handle new members.
27654         * config/i386/sse.md (*vec_concatv2si): Merge from
27655         *vec_concatv2si_sse2 and vec_concatv2si_sse.
27656         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27658 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27660         PR tree-optimization/57027
27661         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27662         for fnms opportunity, check we got the prerequisite kind
27663         of tree / gimple before using accessor functions.
27665 2013-05-03  Richard Biener  <rguenther@suse.de>
27667         * double-int.h (lshift): New overload without precision
27668         and arith argument.
27669         (operator *=, operator +=, operator -=): Move ...
27670         * double-int.c (operator *=, operator +=, operator -=): ... here
27671         and implement more efficiently.
27672         (mul_double_with_sign): Remove.
27673         (lshift_double): Adjust to take unsinged shift argument, push
27674         dispatching code to callers.
27675         (mul_double_wide_with_sign): Add early out for callers that
27676         are not interested in high parts or overflow.
27677         (lshift): New function.
27678         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27679         dispatch code here.
27680         (lrotate, rrotate): Use logical shifts.
27681         * expr.c (get_inner_reference): Use lshift.
27682         * fixed-value.c (do_fixed_divide): Likewise.
27683         * tree-dfa.c (get_ref_base_and_extent): Likewise.
27684         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27685         (indirect_refs_may_alias_p): Likewise.
27686         (stmt_kills_ref_p_1): Likewise.
27688 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27690         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
27692 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27694         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
27695         scalar form of FABD instruction.
27697 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
27699         * lra-constraints.c (process_alt_operands): Add checking alt
27700         number to choose the best alternative.
27702 2013-05-02  Richard Biener  <rguenther@suse.de>
27704         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27705         bitmap and its handling.
27706         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27708 2013-05-02  Richard Biener  <rguenther@suse.de>
27710         PR middle-end/57140
27711         * tree-inline.c (copy_loops): Properly handle removed loops.
27712         (copy_cfg_body): Mark destination loops for fixup if source
27713         loops needed fixup.
27715 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
27717         PR target/56732
27718         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27719         generating simple_return for naked functions.
27721 2013-05-02  Martin Jambor  <mjambor@suse.cz>
27723         PR middle-end/56988
27724         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27725         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27726         flags match.
27727         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27728         ipa_agg_replacement_value structures.
27729         (known_aggs_to_agg_replacement_list): Likewise.
27730         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27731         (read_agg_replacement_chain): Likewise.
27732         (ipcp_transform_function): Also check that by_ref flags match.
27734 2013-05-02  Richard Biener  <rguenther@suse.de>
27736         * graphds.h (struct graph): Add obstack member.
27737         * graphds.c (new_graph): Initialize obstack and allocate
27738         vertices from it.
27739         (add_edge): Allocate edge from the obstack.
27740         (free_graph): Free the obstack instead of all edges and vertices.
27742 2013-05-02  Teresa Johnson  <tejohnson@google.com>
27744         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27745         divides.
27746         * cfg.c (update_bb_profile_for_threading): Ditto.
27747         * tree-inline.c (copy_bb): Ditto.
27748         (copy_edges_for_bb): Ditto.
27749         (initialize_cfun): Ditto.
27750         (copy_cfg_body): Ditto.
27751         (expand_call_inline): Ditto.
27752         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27753         (estimate_node_size_and_time): Ditto.
27754         (inline_merge_summary): Ditto.
27755         * cgraphclones.c (cgraph_clone_edge): Ditto.
27756         (cgraph_clone_node): Ditto.
27757         * sched-rgn.c (compute_dom_prob_ps): Ditto.
27758         (compute_trg_info): Ditto.
27760 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27762         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27763         S reg when fp attribute set.
27764         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27766 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27768         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27769         New pattern.
27770         (*and_one_cmplsi3_compare0_uxtw): Likewise.
27771         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27772         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27774 2013-05-02  Richard Biener  <rguenther@suse.de>
27776         * tree-scalar-evolution.c (scev_info_hasher): Remove.
27777         (struct instantiate_cache_entry): New type.
27778         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27779         (struct instantiate_cache_type): New type.
27780         (set_instantiated_value, get_instantiated_value): Remove.
27781         (get_instantiated_value_entry): New function.
27782         (instantiate_scev_name): Use the new cache and adjust.
27783         (instantiate_scev_poly): Adjust.
27784         (instantiate_scev_binary): Likewise.
27785         (instantiate_array_ref): Likewise.
27786         (instantiate_scev_convert): Likewise.
27787         (instantiate_scev_not): Likewise.
27788         (instantiate_scev_3): Likewise.
27789         (instantiate_scev_2): Likewise.
27790         (instantiate_scev_r): Likewise.
27791         (instantiate_scev): Likewise.
27792         (resolve_mixers): Likewise.
27794 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
27796         PR target/57091
27797         * lra-constraints.c (best_small_class_operands_num): Remove.
27798         (process_alt_operands): Remove small_class_operands_num.  Take
27799         small classes operands into losers and only if the operand is not
27800         matched.  Modify debugging output.
27801         (curr_insn_transform): Remove best_small_class_operands_num.
27802         Print insn name.
27804 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27806         * config/aarch64/aarch64-builtins.c
27807         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
27808         * config/aarch64/aarch64-simd-builtins.def
27809         (reduc_splus_): Add new modes.
27810         (reduc_uplus_): New.
27811         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
27812         (reduc_uplus_v4sf): Likewise.
27813         (reduc_splus_v4sf): Likewise.
27814         (aarch64_addv<mode>): Likewise.
27815         (reduc_uplus_<mode>): Likewise.
27816         (reduc_splus_<mode>): Likewise.
27817         (aarch64_addvv2di): Likewise.
27818         (reduc_uplus_v2di): Likewise.
27819         (reduc_splus_v2di): Likewise.
27820         (aarch64_addvv2si): Likewise.
27821         (reduc_uplus_v2si): Likewise.
27822         (reduc_splus_v2si): Likewise.
27823         (reduc_<sur>plus_<mode>): New.
27824         (reduc_<sur>plus_v2di): Likewise.
27825         (reduc_<sur>plus_v2si): Likewise.
27826         (reduc_<sur>plus_v4sf): Likewise.
27827         (aarch64_addpv4sf): Likewise.
27828         * config/aarch64/arm_neon.h
27829         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
27830         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
27831         add UNSPEC_SADDV, UNSPEC_UADDV.
27832         (SUADDV): New.
27833         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
27835 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27837         * config/aarch64/arm_neon.h
27838         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
27840 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27842         * config/aarch64/aarch64-builtins
27843         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
27845 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27847         * config/aarch64/aarch64-simd-builtins.def
27848         (reduc_smax_): New.
27849         (reduc_smin_): Likewise.
27850         (reduc_umax_): Likewise.
27851         (reduc_umin_): Likewise.
27852         (reduc_smax_nan_): Likewise.
27853         (reduc_smin_nan_): Likewise.
27854         (fmax): Remove.
27855         (fmin): Likewise.
27856         (smax): Update for V2SF, V4SF and V2DF modes.
27857         (smin): Likewise.
27858         (smax_nan): New.
27859         (smin_nan): Likewise.
27860         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
27861         (<su><maxmin><mode>3): ...This, refactor.
27862         (s<maxmin><mode>3): New.
27863         (<maxmin_uns><mode>3): Likewise.
27864         (reduc_<maxmin_uns>_<mode>): Refactor.
27865         (reduc_<maxmin_uns>_v4sf): Likewise.
27866         (reduc_<maxmin_uns>_v2si): Likewise.
27867         (aarch64_<fmaxmin><mode>: Remove.
27868         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
27869         new builtin names.
27870         (vmin<q>_f<32,64>): Likewise.
27871         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27872         (FMAXMIN): New.
27873         (su): Add mappings for smax, smin, umax, umin.
27874         (maxmin): New.
27875         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27876         (FMAXMIN): Rename as...
27877         (FMAXMIN_UNS): ...This.
27878         (maxminv): Remove.
27879         (fmaxminv): Likewise.
27880         (fmaxmin): Likewise.
27881         (maxmin_uns): New.
27882         (maxmin_uns_op): Likewise.
27884 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27886         * config/aarch64/arm_neon.h
27887         (vac<ge, gt><sd>_f<32, 64>): Rename to...
27888         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
27889         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
27891 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27893         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
27894         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
27896 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27898         * config/aarch64/aarch64-simd.md
27899         (vcond<mode>_internal): Handle special cases for constant masks.
27900         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
27901         (vcondu<mode><mode>): Likewise.
27902         (vcond<v_cmp_result><mode>): New.
27904 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27906         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
27907         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
27908         * config/aarch64/aarch64-simd-builtins.def
27909         (cmeq): Update to BUILTIN_VALLDI.
27910         (cmgt): Likewise.
27911         (cmge): Likewise.
27912         (cmle): Likewise.
27913         (cmlt): Likewise.
27914         * config/aarch64/arm_neon.h
27915         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
27916         to builtins or C as appropriate.
27918 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27920         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
27921         (cmgeu): ...This.
27922         (cmhi): Rename to...
27923         (cmgtu): ...This.
27924         * config/aarch64/aarch64-simd.md
27925         (simd_mode): Add SF.
27926         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
27927         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
27928         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
27929         (cstore<mode>_neg): ...This.
27930         * config/aarch64/iterators.md
27931         (VALLF): new.
27932         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
27933         (COMPARISONS): New.
27934         (UCOMPARISONS): Likewise.
27935         (optab): Add missing comparisons.
27936         (n_optab): New.
27937         (cmp_1): Likewise.
27938         (cmp_2): Likewise.
27939         (CMP): Likewise.
27940         (cmp): Remove.
27941         (VCMP_S): Likewise.
27942         (VCMP_U): Likewise.
27943         (V_cmp_result): Add DF, SF modes.
27944         (v_cmp_result): Likewise.
27945         (v): Likewise.
27946         (vmtype): Likewise.
27947         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
27949 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
27951         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
27952         define_insn to define_insn_and_split.
27953         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
27954         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
27955         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
27956         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
27957         (thumb2_negscc): Likewise.
27959 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27961         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
27963 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27965         * config/arm/thumb2.md: Remove trailing whitespaces.
27967 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27969         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
27970         Use gen_int_mode rather than GEN_INT.
27972 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
27974         * value-prof.c (stream_in_histogram_value): Remove the strayed
27975         debug_gimple_stmt.
27977 2013-04-30  Richard Biener  <rguenther@suse.de>
27979         PR middle-end/57122
27980         * cfghooks.c (split_edge): Properly check for the loop latch edge.
27982 2013-04-30  Richard Biener  <rguenther@suse.de>
27984         PR middle-end/57107
27985         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
27987 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
27989         PR rtl-optimization/56957
27990         PR rtl-optimization/57105
27991         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
27992         variable.  Use just INSN_UID for determining whether an insn
27993         should be only disconnected from the insn stream.
27994         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
27996 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
27998         PR tree-optimization/57104
27999         * tsan.c (instrument_expr): Don't instrument accesses to
28000         DECL_HARD_REGISTER VAR_DECLs.
28002 2013-04-30  Richard Biener  <rguenther@suse.de>
28004         * function.h (loops_for_fn): New inline function.
28005         (set_loops_for_fn): Likewise.
28006         * cfgloop.h (place_new_loop): Add struct function parameter.
28007         (get_loop): Likewise.
28008         (get_loops): Likewise.
28009         (number_of_loops): Likewise.
28010         (fel_next): Adjust.
28011         (fel_init): Likewise.
28012         * cfg.c (get_loop_copy): Adjust.
28013         * cfgloop.c (flow_loops_dump): Likewise.
28014         (record_loop_exits): Likewise.
28015         (verify_loop_structure): Likewise.
28016         * cfgloopanal.c (mark_irreducible_loops): Likewise.
28017         (estimate_reg_pressure_cost): Likewise.
28018         (mark_loop_exit_edges): Likewise.
28019         * cfgloopmanip.c (place_new_loop): Likewise.
28020         (add_loop): Likewise.
28021         (duplicate_loop): Likewise.
28022         * graph.c (draw_cfg_nodes): Likewise.
28023         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28024         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28025         (extract_affine_chrec): Likewise.
28026         (build_scop_iteration_domain): Likewise.
28027         * graphite.c (graphite_initialize): Likewise.
28028         * ira-build.c (create_loop_tree_nodes): Likewise.
28029         (more_one_region_p): Likewise.
28030         (rebuild_regno_allocno_maps): Likewise.
28031         (mark_loops_for_removal): Likewise.
28032         (mark_all_loops_for_removal): Likewise.
28033         (remove_unnecessary_regions): Likewise.
28034         (ira_build): Likewise.
28035         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28036         * loop-init.c (fix_loop_structure): Likewise.
28037         (gate_rtl_move_loop_invariants): Likewise.
28038         (gate_rtl_unswitch): Likewise.
28039         (gate_rtl_unroll_and_peel_loops): Likewise.
28040         (rtl_doloop): Likewise.
28041         * lto-streamer-in.c (input_cfg): Likewise.
28042         * lto-streamer-out.c (output_cfg): Likewise.
28043         * modulo-sched.c (sms_schedule): Likewise.
28044         * predict.c (tree_estimate_probability): Likewise.
28045         (tree_estimate_probability_driver): Likewise.
28046         (estimate_loops): Likewise.
28047         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28048         (move_sese_region_to_fn): Likewise.
28049         (debug_loop_num): Likewise.
28050         * tree-chrec.c (chrec_evaluate): Likewise.
28051         (hide_evolution_in_other_loops_than_loop): Likewise.
28052         (chrec_component_in_loop_num): Likewise.
28053         (reset_evolution_in_loop): Likewise.
28054         (evolution_function_is_invariant_rec_p): Likewise.
28055         * tree-if-conv.c (main_tree_if_conversion): Likewise.
28056         * tree-inline.c (copy_loops): Likewise.
28057         (copy_cfg_body): Likewise.
28058         (tree_function_versioning): Likewise.
28059         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28060         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28061         Likewise.
28062         (add_to_evolution_1): Likewise.
28063         (scev_const_prop): Likewise.
28064         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28065         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28066         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28067         (tree_ssa_lim_initialize): Likewise.
28068         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28069         (verify_loop_closed_ssa): Likewise.
28070         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
28071         (tree_ssa_loop_im): Likewise.
28072         (tree_ssa_loop_unswitch): Likewise.
28073         (tree_vectorize): Likewise.
28074         (check_data_deps): Likewise.
28075         (tree_ssa_loop_ivcanon): Likewise.
28076         (tree_ssa_loop_bounds): Likewise.
28077         (tree_complete_unroll): Likewise.
28078         (tree_complete_unroll_inner): Likewise.
28079         (tree_parallelize_loops): Likewise.
28080         (tree_ssa_loop_prefetch): Likewise.
28081         (tree_ssa_loop_ivopts): Likewise.
28082         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28083         * tree-vectorizer.c (vectorize_loops): Likewise.
28085 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
28087         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28088         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28089         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28090         with EABI_LINK_SPEC.
28092 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28094         PR target/44578
28095         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28096         alternative.
28098 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
28100         PR target/57097
28101         * lra-constraints.c (process_alt_operands): Discourage a bit more
28102         using memory for pseudos.  Print cost dump for alternatives.
28103         Modify cost values for conflicts with early clobbers.
28104         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28106 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28108         PR target/57098
28109         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28111 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28113         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28114         from/to S register.
28115         (movdi_aarch64): Support LDR/STR from/to D register.
28117 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28119         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28120         or higher by default.
28122 2013-04-29  Richard Biener  <rguenther@suse.de>
28124         PR middle-end/57075
28125         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28126         even if not adding abnormal edges for calls that can make
28127         abnormal gotos.
28129 2013-04-29  Richard Biener  <rguenther@suse.de>
28131         PR middle-end/57103
28132         * tree-cfg.c (move_stmt_op): Fix condition under which to update
28133         TREE_BLOCK.
28134         (move_stmt_r): Remove redundant checking.
28136 2013-04-29  Teresa Johnson  <tejohnson@google.com>
28138         PR bootstrap/57077
28139         * basic-block.h (apply_scale): New function.
28140         (apply_probability): Use apply_scale.
28141         * gimple-streamer-in.c (input_bb): Ditto.
28142         * lto-streamer-in.c (input_cfg): Ditto.
28143         * lto-cgraph.c (merge_profile_summaries): Ditto.
28144         * tree-optimize.c (execute_fixup_cfg): Ditto.
28145         * tree-inline.c (copy_bb): Update comment to use apply_scale.
28146         (copy_edges_for_bb): Ditto.
28147         (copy_cfg_body): Ditto.
28149 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28151         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28152         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28153         (tail_merge_optimize): Handle current_loops == NULL.
28155 2013-04-26  Jeff Law  <law@redhat.com>
28157         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28158         (simplify_cond_using_ranges): Generalize code to simplify
28159         COND_EXPRs where one argument is a constant and the other
28160         is an SSA_NAME created by an integral type conversion.
28162 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28164         * config/arm/arm.md (store_minmaxsi): Use only when
28165         optimize_insn_for_size_p.
28167 2013-04-29  Christian Bruel  <christian.bruel@st.com>
28169         PR target/57108
28170         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28172 2013-04-29  Richard Biener  <rguenther@suse.de>
28174         PR middle-end/57089
28175         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28176         loop tree make sure to schedule a fixup for the child as well.
28177         (expand_omp_for_generic): Properly add loops.
28178         (expand_omp_for_static_nochunk): Likewise.
28179         (expand_omp_for_static_chunk): Likewise.
28180         (expand_omp_for): For the degenerate case fixup loops.
28181         (expand_omp_sections): Fix default bb placement in loops.
28182         (expand_omp_atomic_pipeline): Properly add loops.
28184 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28186         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28188 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28190         * tree-ssa-tail-merge.c: Update header comment.
28192 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28194         * config/aarch64/arm_neon.h
28195         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28196         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28197         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28198         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28199         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28200         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28201         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28202         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28204 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28206         * config/aarch64/aarch64-simd.md
28207         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28208         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28209         fix_trunc, fixuns_trunc.
28210         (ftrunc<VDQF:mode>2): New.
28211         * config/aarch64/iterators.md (optab): Add fix, fixuns.
28212         (fix_trunc_optab): New.
28214 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28216         * config/aarch64/aarch64-builtins.c
28217         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28218         iceilf, lround, iroundf.
28220 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28222         PR target/54349
28223         * config/i386/i386.h (enum ix86_tune_indices)
28224         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28225         New, split from X86_TUNE_INTER_UNIT_MOVES.
28226         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28227         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28228         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28229         (TARGET_INTER_UNIT_MOVES): Remove.
28230         * config/i386/i386.c (initial_ix86_tune_features): Update.
28231         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28232         (ix86_expand_convert_uns_didf_sse): Use
28233         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28234         (ix86_expand_vector_init_one_nonzero): Ditto.
28235         (ix86_expand_vector_init_interleave): Ditto.
28236         (inline_secondary_memory_needed): Return true for moves from SSE class
28237         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28238         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28239         * config/i386/constraints.md (Yi, Ym): Depend on
28240         TARGET_INTER_UNIT_MOVES_TO_VEC.
28241         (Yj, Yn): New constraints.
28242         * config/i386/i386.md (*movdi_internal): Change constraints of
28243         operand 1 from Yi to Yj and from Ym to Yn.
28244         (*movsi_internal): Ditto.
28245         (*movdf_internal): Ditto.
28246         (*movsf_internal): Ditto.
28247         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28248         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28249         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28250         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28251         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28252         * config/i386/sse.md (movdi_to_sse): Ditto.
28253         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28254         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28255         TARGET_INTER_UNIT_MOVES.
28256         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28257         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28258         instead of TARGET_INTER_UNIT_MOVES.
28259         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28260         operand 1 from Yi to Yj and from Ym to Yn.
28262 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28264         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28265         (float_truncate_hi_): Likewise.
28266         (float_extend_lo_): Likewise.
28267         (float_truncate_lo_): Likewise.
28268         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28269         (aarch64_float_extend_lo_v2df): Likewise.
28270         (vec_unpacks_hi_v4sf): Likewise.
28271         (aarch64_float_truncate_lo_v2sf): Likewise.
28272         (aarch64_float_truncate_hi_v4sf): Likewise.
28273         (vec_pack_trunc_v2df): Likewise.
28274         (vec_pack_trunc_df): Likewise.
28276 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28278         * config/aarch64/aarch64-builtins.c
28279         (aarch64_fold_builtin): Fold float conversions.
28280         * config/aarch64/aarch64-simd-builtins.def
28281         (floatv2si, floatv4si, floatv2di): New.
28282         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28283         * config/aarch64/aarch64-simd.md
28284         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28285         * config/aarch64/iterators.md (FLOATUORS): New.
28286         (optab): Add float, floatuns.
28287         (su_optab): Likewise.
28289 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28291         * config/aarch64/aarch64-builtins.c
28292         (aarch64_builtin_vectorized_function): Use new names for
28293         fcvt builtins.
28294         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28295         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28296         (fcvtzu): Split as...
28297         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28298         (fcvtas): Split as...
28299         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28300         (fcvtau): Split as...
28301         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28302         (fcvtps): Split as...
28303         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28304         (fcvtpu): Split as...
28305         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28306         (fcvtms): Split as...
28307         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28308         (fcvtmu): Split as...
28309         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28310         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28311         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28312         (lfrintnusf, lfrintnudf): Likewise.
28313         * config/aarch64/aarch64-simd.md
28314         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28315         define_insn.
28316         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28317         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28318         (fcvt_pattern): Likewise.
28320 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28322         * config/aarch64/aarch64-simd.md
28323         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28324         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28326 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28328         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28329         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28330         (vrnd<a,m,n,p>_f32): Implement using builtins.
28331         (vrnd<i,x><q>_f<32, 64>): New.
28333 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28335         * config/aarch64/aarch64-builtins.c
28336         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28337         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28338         (frintz): Rename to...
28339         (btrunc): ...this.
28340         (frintp): Rename to...
28341         (ceil): ...this.
28342         (frintm): Rename to...
28343         (floor): ...this.
28344         (frinti): Rename to...
28345         (nearbyint): ...this.
28346         (frintx): Rename to...
28347         (rint): ...this.
28348         (frinta): Rename to...
28349         (round): ...this.
28350         * config/aarch64/aarch64-simd.md
28351         (aarch64_frint<frint_suffix><mode>): Delete.
28352         (<frint_pattern><mode>2): Convert to insn.
28353         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28354         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28355         (frint_pattern): Likewise.
28356         (frint_suffix): Likewise.
28358 2013-04-29  Richard Biener  <rguenther@suse.de>
28360         PR tree-optimization/57081
28361         * loop-init.c: Include tree-flow.h.
28362         (loop_optimizer_finalize): Free number of iteration estimates.
28363         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28365 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
28367         PR tree-optimization/57083
28368         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28369         non-singleton shift count range, zero extend low_bound for uns case.
28371         * config/i386/predicates.md (general_vector_operand): New predicate.
28372         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28373         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28374         if they aren't nonimmediate operands.  If their original values
28375         satisfy const_vector_equal_evenodd_p, don't shift them.
28376         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28377         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
28378         if not nonimmediate_operand.
28379         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28380         instead of register_operand.
28381         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28383 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28385         * stor-layout.c (finalize_size_functions): Allocate a structure and
28386         reset cfun before dumping the functions.
28388 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
28390         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28392         PR target/56866
28393         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28394         use xop_pmacsdqh if uns_p.
28395         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28396         the immediate rotate count.
28398 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
28400         * rtl.h (struct rtx_def): Add comment for field jump.
28401         (LRA_SUBREG_P): New macro.
28402         * recog.c (register_operand): Check LRA_SUBREG_P.
28403         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28404         stack frame.
28405         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28406         (lra_final_code_change): Skip subreg change for operators.
28407         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28408         if there are no operand changes.
28409         * lra-constraints.c (curr_insn_set): New.
28410         (match_reload): Set LRA_SUBREG_P.
28411         (emit_spill_move): Ditto.
28412         (check_and_process_move): Use curr_insn_set. Process only single
28413         set insns.  Don't initialize sec_mem_p and change_p.
28414         (simplify_operand_subreg): Use LRA_SUBREG_P.
28415         (reg_in_class_p): New function.
28416         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28417         of #ifdef.  Add code to remove cycling.
28418         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28419         non-null disp.  Reload inner instead of disp when base and index
28420         are null.  Try to put lo_sum into register.
28421         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28422         (check_and_process_move): Move code for move cost check to
28423         simple_move_p.  Remove equiv_substitution.
28424         (simple_move_p): New function.
28425         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28426         curr_insn_set.  Call check_and_process_move only for single set
28427         insns.  Use the new function.  Move call of check_and_process_move
28428         after operand equiv substitution and address process.
28430 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28432         PR go/57045
28433         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28434         with nonlocal goto receivers or returns twice calls, ignore
28435         unininitialized values from abnormal edges to nl goto receiver
28436         or returns twice call.
28438 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28440         PR tree-optimization/57051
28441         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28442         and VEC_RSHIFT_EXPR if shift count is a multiple of element
28443         bitsize.
28445 2013-04-26  Richard Biener  <rguenther@suse.de>
28447         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28448         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
28449         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28450         (fixup_loop_arrays_after_move): New function.
28451         (move_sese_region_to_fn): Properly outline the loop tree parts
28452         of the SESE region.
28454 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
28456         * config/i386/i386.md (type, unit): Fix long lines.
28458 2013-04-26  Richard Biener  <rguenther@suse.de>
28460         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28461         (lto-streamer-out.o): Likewise.
28462         * cfgloop.c (init_loops_structure): Export, add struct function
28463         argument and adjust.
28464         (flow_loops_find): Adjust.
28465         * cfgloop.h (enum loop_estimation): Add EST_LAST.
28466         (init_loops_structure): Declare.
28467         * lto-streamer-in.c: Include cfgloop.h.
28468         (input_cfg): Input the loop tree.
28469         * lto-streamer-out.c: Include cfgloop.h.
28470         (output_cfg): Output the loop tree.
28471         (output_struct_function_base): Do not drop PROP_loops.
28473 2013-03-26  Richard Biener  <rguenther@suse.de>
28475         * tree-cfg.c (execute_build_cfg): Build the loop tree.
28476         (pass_build_cfg): Provide PROP_loops.
28477         (move_sese_region_to_fn): Remove loops that are outlined into fn
28478         for now.
28479         * tree-inline.c: Include cfgloop.h.
28480         (initialize_cfun): Do not drop PROP_loops.
28481         (copy_loops): New function.
28482         (copy_cfg_body): Copy loop structure.
28483         (tree_function_versioning): Initialize destination loop tree.
28484         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28485         (pass_parallelize_loops): Do IL verification.
28486         * loop-init.c (loop_optimizer_init): Fixup loops if required.
28487         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28488         the CFG make sure we fixup loops as well.
28489         * tree-ssa-tail-merge.c: Include cfgloop.h.
28490         (replace_block_by): When merging loop latches mark loops for fixup.
28491         * lto-streamer-out.c (output_struct_function_base): Drop
28492         PROP_loops for now.
28493         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28494         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28495         * ipa-split.c: Include cfgloop.h.
28496         (split_function): Add the new return block to the loop tree root.
28497         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28498         whether we have removed the forwarder block.
28499         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28500         * cfgloop.h (place_new_loop): Declare.
28501         * cfgloopmanip.c (place_new_loop): Export.
28502         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28503         (tree-switch-conversion.o): Likewise.
28504         (tree-complex.o): Likewise.
28505         (tree-inline.o): Likewise.
28506         (tree-ssa-tailmerge.o): Likewise.
28507         (ipa-split.o): Likewise.
28508         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28509         (tree-ssa-copy.o): Likewise.
28510         * tree-switch-conversion.c: Include cfgloop.h
28511         (process_switch): If we emit a bit-test cascade, schedule loops
28512         for fixup.
28513         * tree-complex.c: Include cfgloop.h.
28514         (expand_complex_div_wide): Properly add new basic-blocks to loops.
28515         * asan.c: Include cfgloop.h.
28516         (create_cond_insert_point): Properly add new basic-blocks to
28517         loops, schedule loop fixup.
28518         * cfgloop.c (verify_loop_structure): Check that looks are not
28519         marked for fixup.
28520         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28521         to loops.
28522         (expand_omp_for_generic): Likewise.
28523         (expand_omp_sections): Likewise.
28524         (expand_omp_atomic_pipeline): Schedule loops for fixup.
28525         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28526         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28527         is initialized, not when loops are present.
28528         * tree-parloops.c (parallelize_loops): Remove checking here.
28529         * passes.c (init_optimization_passes): Schedule a copy-propagation
28530         pass before complete unrolling of inner loops.
28532 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28534         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28535         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28536         (colorize_init): Add argument to _WIN32 version.
28537         * toplev.c: Include diagnostic-color.h.
28538         (process_options): Default to -fdiagnostics-color=auto if
28539         GCC_COLORS env var is in the environment.
28540         * common.opt (fdiagnostics-color=): Add Var and Init.
28541         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28542         env var is in the environment, the default is auto rather than never.
28544         * diagnostic.h (file_name_as_prefix): Add context argument.
28545         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
28546         the string as locus.
28547         * langhooks.c (lhd_print_error_function): Adjust caller.
28549 2013-04-25  Lawrence Crowl  <crowl@google.com>
28551         * var-tracking.c (shared_hash_def::htab):
28552         Change type to hash_table.  Update dependent calls and types.
28554 2013-04-25  Lawrence Crowl  <crowl@google.com>
28556         * Makefile.in: Update as needed below.
28558         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28559         Move declaration to after the type's method definitons.
28561         * attribs.c (htab_t scoped_attributes::attribute_hash):
28562         Change type to hash_table.  Update dependent calls and types.
28564         * bitmap.c (htab_t bitmap_desc_hash):
28565         Change type to hash_table.  Update dependent calls and types.
28567         * cselib.c (htab_t cselib_hash_table):
28568         Change type to hash_table.  Update dependent calls and types.
28570         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28571         (hash_string_slot_node): Move implementation into lto-streamer.h
28572         struct string_slot_hasher.
28573         (eq_string_slot_node): Likewise.
28575         * data-streamer-out.c: Update output_block::string_hash_table
28576         dependent calls and types.
28578         * dwarf2cfi.c (htab_t trace_index):
28579         Change type to hash_table.  Update dependent calls and types.
28581         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28582         Change type to hash_table.  Update dependent calls and types.
28583         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28584         (htab_t optimize_external_refs::map): Likewise.
28585         (htab_t output_comp_unit::extern_map): Likewise.
28586         (htab_t output_comdat_type_unit::extern_map): Likewise.
28587         (htab_t output_macinfo::macinfo_htab): Likewise.
28588         (htab_t optimize_location_lists::htab): Likewise.
28589         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28591         * except.c (htab_t ehspec_hash_type):
28592         Change type to hash_table.  Update dependent calls and types.
28593         (assign_filter_values::ttypes): Likewise.
28594         (assign_filter_values::ehspec): Likewise.
28595         (sjlj_assign_call_site_values::ar_hash): Likewise.
28596         (convert_to_eh_region_ranges::ar_hash): Likewise.
28598         * gcse.c (htab_t pre_ldst_table):
28599         Change type to hash_table.  Update dependent calls and types.
28601         * ggc-common.c (htab_t saving_htab):
28602         Change type to hash_table.  Update dependent calls and types.
28603         (htab_t loc_hash): Likewise.
28604         (htab_t ptr_hash): Likewise.
28605         (call_count): Rename ggc_call_count.
28606         (call_alloc): Rename ggc_call_alloc.
28607         (loc_descriptor): Rename make_loc_descriptor.
28608         (add_statistics): Rename ggc_add_statistics.
28610         * ggc-common.c (saving_htab):
28611         Change type to hash_table.  Update dependent calls and types.
28613         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28614         (push_gimplify_context): Likewise.
28615         (pop_gimplify_context): Likewise.
28616         (struct gimple_temp_hash_elt): Added.
28617         (struct gimplify_hasher): Likewise.
28618         (struct gimplify_ctx.temp_htab):
28619         Change type to hash_table.  Update dependent calls and types.
28621         * gimple-fold.c: Include gimplify-ctx.h.
28623         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28624         Change type to hash_table.  Update dependent calls and types.
28625         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28626         avoid potential global name collision.
28628         * gimplify.c: Include gimplify-ctx.h.
28629         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28630         (htab_t gimplify_ctx::temp_htab):
28631         Update dependent calls and types for new type hash_table.
28632         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28633         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28635         * gimplify-ctx.h: New.
28636         (struct gimple_temp_hash_elt): Move from gimplify.c.
28637         (class gimplify_hasher): New.
28638         (struct gimplify_ctx): Move from gimple.h.
28639         (htab_t gimplify_ctx::temp_htab):
28640         Change type to hash_table.  Update dependent calls and types.
28642         * graphite-clast-to-gimple.c: Include graphite-htab.h.
28643         (htab_t ivs_params::newivs_index):
28644         Change type to hash_table.  Update dependent calls and types.
28645         (htab_t ivs_params::params_index): Likewise.
28646         (htab_t print_generated_program::params_index): Likewise.
28647         (htab_t gloog::newivs_index): Likewise.
28648         (htab_t gloog::params_index): Likewise.
28650         * graphite.c: Include graphite-htab.h.
28651         4htab_t graphite_transform_loops::bb_pbb_mapping):
28652         Change type to hash_table.  Update dependent calls and types.
28654         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28655         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28656         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28658         * graphite-dependences.c: Include graphite-htab.h.
28659         (loop_is_parallel_p): Change hash table type of parameter.
28661         * graphite-htab.h: New.
28662         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28663         (extern find_pbb_via_hash): Move from graphite-poly.h.
28664         (extern loop_is_parallel_p): Move from graphite-poly.h.
28665         (extern get_loop_body_pbbs): Move from graphite-poly.h.
28667         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28668         (extern loop_is_parallel_p): Move to graphite-htab.h.
28669         (extern get_loop_body_pbbs): Move to graphite-htab.h.
28671         * haifa-sched.c (htab_t delay_htab):
28672         Change type to hash_table.  Update dependent calls and types.
28673         (htab_t delay_htab_i2): Likewise.
28675         * ira-color.c (htab_t allocno_hard_regs_htab):
28676         Change type to hash_table.  Update dependent calls and types.
28678         * ira-costs.c (htab_t cost_classes_htab):
28679         Change type to hash_table.  Update dependent calls and types.
28681         * loop-invariant.c (htab_t merge_identical_invariants::eq):
28682         Change type to hash_table.  Update dependent calls and types.
28684         * loop-iv.c (htab_t bivs):
28685         Change type to hash_table.  Update dependent calls and types.
28687         * loop-unroll.c (htab_t opt_info::insns_to_split):
28688         Change type to hash_table.  Update dependent calls and types.
28689         (htab_t opt_info::insns_with_var_to_expand): Likewise.
28691         * lto-streamer.h (struct string_slot): Move from data-streamer.h
28692         (struct string_slot_hasher): New.
28693         (htab_t output_block::string_hash_table):
28694         Change type to hash_table.  Update dependent calls and types.
28696         * lto-streamer-in.c (freeing_string_slot_hasher): New.
28697         (htab_t file_name_hash_table):
28698         Change type to hash_table.  Update dependent calls and types.
28700         * lto-streamer-out.c: Update output_block::string_hash_table dependent
28701         calls and types.
28703         * lto-streamer.c (htab_t tree_htab):
28704         Change type to hash_table.  Update dependent calls and types.
28706         * omp-low.c: Include gimplify-ctx.h.
28708         * passes.c (htab_t name_to_pass_map):
28709         Change type to hash_table.  Update dependent calls and types.
28710         (pass_traverse): Rename to passes_pass_traverse.
28712         * plugin.c (htab_t event_tab):
28713         Change type to hash_table.  Update dependent calls and types.
28715         * postreload-gcse.c (htab_t expr_table):
28716         Change type to hash_table.  Update dependent calls and types.
28717         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28719         * sese.c (debug_rename_map_1): Make extern.
28720         (htab_t copy_bb_and_scalar_dependences::rename_map):
28721         Change type to hash_table.  Update dependent calls and types.
28723         * sese.h (extern debug_rename_map): Move to .c file.
28725         * store-motion.c (htab_t store_motion_mems_table):
28726         Change type to hash_table.  Update dependent calls and types.
28728         * trans-mem.c (htab_t tm_new_mem_hash):
28729         Change type to hash_table.  Update dependent calls and types.
28731         * tree-browser.c (htab_t TB_up_ht):
28732         Change type to hash_table.  Update dependent calls and types.
28734         * tree-cfg.c (htab_t discriminator_per_locus):
28735         Change type to hash_table.  Update dependent calls and types.
28737         * tree-complex.c: Include tree-hasher.h
28738         (htab_t complex_variable_components):
28739         Change type to hash_table.  Update dependent calls and types.
28741         * tree-eh.c (htab_t finally_tree):
28742         Change type to hash_table.  Update dependent calls and types.
28744         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28745         struct int_tree_hasher.
28746         (extern int_tree_map_eq): Likewise.
28747         (uid_decl_map_hash): Removed.
28748         (extern decl_tree_map_eq): Likewise.
28750         * tree-hasher.h: New.
28751         (struct int_tree_hasher): New.
28752         (typedef int_tree_htab_type): New.
28754         * tree-inline.c: Include gimplify-ctx.h.
28756         * tree-mudflap.c: Include gimplify-ctx.h.
28758         * tree-parloops.c: Include tree-hasher.h.
28759         (htab_t eliminate_local_variables_stmt::decl_address):
28760         Change type to hash_table.  Update dependent calls and types.
28761         (htab_t separate_decls_in_region::decl_copies): Likewise.
28763         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28764         Change type to hash_table.  Update dependent calls and types.
28766         * tree-sra.c (candidates):
28767         Change type to hash_table.  Update dependent calls and types.
28769         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28770         in tree-flow.h.
28771         (int_tree_map_hash): Likewise.
28773         * tree-ssa-dom.c (htab_t avail_exprs):
28774         Change type to hash_table.  Update dependent calls and types.
28776         * tree-ssa-live.c (var_map_base_init::tree_to_index):
28777         Change type to hash_table.  Update dependent calls and types.
28779         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28780         Change type to hash_table.  Update dependent calls and types.
28782         * tree-ssa-phiopt.c (seen_ssa_names):
28783         Change type to hash_table.  Update dependent calls and types.
28785         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
28786         Change type to hash_table.  Update dependent calls and types.
28788         * tree-ssa-uncprop.c (equiv):
28789         Change type to hash_table.  Update dependent calls and types.
28791 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
28793         PR rtl-optimization/57003
28794         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
28795         call note_stores with kill_clobbered_value callback again after
28796         killing regs_invalidated_by_call.
28798 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28800         * config/aarch64/aarch64-simd.md
28801         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
28802         (aarch64_simd_bsl<mode>): Likewise.
28803         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
28805 2013-04-25  Marek Polacek  <polacek@redhat.com>
28807         PR tree-optimization/57066
28808         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
28810 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28812         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
28814 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28816         * config/aarch64/aarch64-builtins.c
28817         (aarch64_fold_builtin): New.
28818         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
28819         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
28820         * config/aarch64/aarch64-simd-builtins.def (abs): New.
28821         * config/aarch64/arm_neon.h
28822         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
28824 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28825             Tejas Belagod  <tejas.belagod@arm.com>
28827         * config/aarch64/aarch64-builtins.c
28828         (aarch64_gimple_fold_builtin): New.
28829         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
28830         * config/aarch64/aarch64-simd-builtins.def (addv): New.
28831         * config/aarch64/aarch64-simd.md (addpv4sf): New.
28832         (addvv4sf): Update.
28833         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
28835 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28837         * config/aarch64/aarch64.md
28838         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
28840 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28842         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
28843         (*ngcsi_uxtw): New pattern.
28845 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28846             Julian Brown  <julian@codesourcery.com>
28848         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
28849         (TB_DREG): Add T_V4HF.
28850         (v4hf_UP): New macro.
28851         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28852         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28853         Handle initialisation of V4HF. Adjust initialisation of reinterpret
28854         built-ins.
28855         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28856         (arm_vector_mode_supported_p): Handle V4HF.
28857         (arm_mangle_map): Handle V4HFmode.
28858         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
28859         * config/arm/arm_neon_builtins.def: Add entries for
28860         vcvtv4hfv4sf, vcvtv4sfv4hf.
28861         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
28862         (neon_vcvtv4hfv4sf): Likewise.
28863         * config/arm/neon-gen.ml: Handle half-precision floating point
28864         features.
28865         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
28866         * config/arm/arm_neon.h: Regenerate.
28867         * config/arm/neon.ml (type elts): Add F16.
28868         (type vectype): Add T_float16x4, T_floatHF.
28869         (type vecmode): Add V4HF.
28870         (type features): Add Requires_FP_bit feature.
28871         (elt_width): Handle F16.
28872         (elt_class): Likewise.
28873         (elt_of_class_width): Likewise.
28874         (mode_of_elt): Refactor.
28875         (type_for_elt): Handle F16, fix error messages.
28876         (vectype_size): Handle T_float16x4.
28877         (vcvt_sh): New function.
28878         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
28879         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
28880         (string_of_mode): Handle V4HF.
28881         * doc/arm-neon-intrinsics.texi: Regenerate.
28883 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28885         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
28886         format specifier in 'X' case.
28888 2013-04-25  Alan Modra  <amodra@gmail.com>
28890         PR target/57052
28891         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
28892         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
28893         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
28894         Repeat for many other rotate/shift and mask patterns using subregs.
28895         Name lshiftrt insns.
28896         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
28897         on WORDS_BIG_ENDIAN.
28899 2013-04-25  Alan Modra  <amodra@gmail.com>
28901         * config.gcc: Support little-endian powerpc-linux targets.
28902         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
28903         (LINK_OS_LINUX_SPEC): Define.
28904         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
28905         Preserve MASK_LITTLE_ENDIAN.
28906         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
28907         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
28908         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
28909         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
28910         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
28911         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
28912         Correct fp word order for little-endian.  Don't shift toc entries
28913         smaller than a word for little-endian.
28914         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
28915         (bswapdi2 splits): Correct low-part subreg for little-endian.
28916         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
28917         low/high where such is correct only for be.
28918         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
28919         little-endian for -mcall-aixdesc.
28921 2013-04-25  Alan Modra  <amodra@gmail.com>
28923         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28924         replace_equiv_address_nv.
28926 2013-04-25  Alan Modra  <amodra@gmail.com>
28928         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
28930 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28932         Revert:
28933         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28934         * rtl.h (struct rtx_def): ...
28936 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28938         PR rtl-optimizations/57046
28939         * lra-constraints (split_reg): Set up lra_risky_transformations_p
28940         for multi-reg splits.
28942 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
28944         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
28946 2013-04-24  Sterling Augustine  <saugustine@google.com>
28948         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
28949         (comp_dir_string, debug_str_dwo_section): New.
28950         (DEBUG_STR_DWO_SECTION): Rename to ...
28951         (DEBUG_DWO_STR_SECTION): ... this.
28952         (DEBUG_NORM_STR_SECTION): Delete.
28953         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
28954         (DEBUG_STR_DWO_SECTION_FLAGS): New.
28955         (find_AT_string): Move most logic to ...
28956         (find_AT_string_in_table): ... here.  New.
28957         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
28958         add_skeleton_AT_string.  Delete logic.
28959         (output_skeleton_debug_sections): Remove call to
28960         add_top_level_skeleton_die_attrs.
28961         (add_comp_dir_attribute): Move logic to comp_dir_string.
28962         (dwarf2out_init): Initialize debug_str_dwo_section.
28963         (output_indirect_string): Call find_string_form.
28964         (output_indirect_strings): Rewrite.
28965         (prune_unused_types): Empty skeleton_debug_str_hash.
28966         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
28967         (dwarf2out_finish):  Call output_indirect_strings.
28969 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28971         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
28973 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28975         * rtl.h (struct rtx_def): Add comment for field jump.
28976         (LRA_SUBREG_P): New macro.
28977         * recog.c (register_operand): Check LRA_SUBREG_P.
28978         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28979         stack frame.
28980         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28981         (lra_final_code_change): Skip subreg change for operators.
28982         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28983         if there are no operand changes.
28984         * lra-constraints.c (curr_insn_set): New.
28985         (match_reload): Set LRA_SUBREG_P.
28986         (emit_spill_move): Ditto.
28987         (check_and_process_move): Use curr_insn_set. Process only single
28988         set insns.  Don't initialize sec_mem_p and change_p.
28989         (simplify_operand_subreg): Use LRA_SUBREG_P.
28990         (reg_in_class_p): New function.
28991         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28992         of #ifdef.  Add code to remove cycling.
28993         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28994         non-null disp.  Reload inner instead of disp when base and index
28995         are null.  Try to put lo_sum into register.
28996         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28997         (check_and_process_move): Move code for move cost check to
28998         simple_move_p.  Remove equiv_substitution.
28999         (simple_move_p): New function.
29000         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
29001         curr_insn_set.  Call check_and_process_move only for single set
29002         insns.  Use the new function.  Move call of check_and_process_move
29003         after operand equiv substitution and address process.
29005 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
29007         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29008         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29009         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29011 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
29013         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29015 2013-04-24  Marek Polacek  <polacek@redhat.com>
29017         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29018         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29019         (select_loops_exit_conditions): Likewise.
29020         (number_of_iterations_for_all_loops): Likewise.
29021         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29022         (scev_analysis): Likewise.
29024 2013-04-02  Catherine Moore  <clm@codesourcery.com>
29025             Chao-ying Fu  <fu@mips.com>
29027         * config/mips/micromips.md (jraddiusp): New pattern.
29028         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29029         instruction if possible.
29031 2013-04-24  Alan Modra  <amodra@gmail.com>
29033         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29035 2013-04-24  Julian Brown  <julian@codesourcery.com>
29036             Chung-Lin Tang  <cltang@codesourcery.com>
29038         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29039         dependency behavior in enumeration type DIE generation. Add TODO note
29040         to comments about future DW_FORM_sdata/udata re-work of related code.
29042 2013-04-23  Lawrence Crowl  <crowl@google.com>
29044         * Makefile.in: Update as needed below.
29046         * hash-table.h (class hash_table):
29047         Correct many methods with parameter types compare_type to the correct
29048         value_type.  (Correct code was unlikely to notice the change.)
29049         (hash_table::elements_with_deleted) New.
29050         (class hashtable::iterator): New.
29051         (hashtable::begin()): New.
29052         (hashtable::end()): New.
29053         (FOR_EACH_HASH_TABLE_ELEMENT): New.
29055         * statistics.c (statistics_hashes):
29056         Change type to hash_table.  Update dependent calls and types.
29058         * tree-into-ssa.c (var_infos):
29059         Change type to hash_table.  Update dependent calls and types.
29061         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29062         Change type to hash_table.  Update dependent calls and types.
29064         * tree-ssa-loop-im.c (struct mem_ref.refs):
29065         Change type to hash_table.  Update dependent calls and types.
29067         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29068         Change type to hash_table.  Update dependent calls and types.
29070         * tree-ssa-sccvn.c (vn_tables_s::nary):
29071         Change type to hash_table.  Update dependent calls and types.
29072         (vn_tables_s::phis): Likewise.
29073         (vn_tables_s::references): Likewise.
29075         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29076         (vn_reference_eq): Update parameter and return types.
29078         * tree-ssa-structalias.c (pointer_equiv_class_table):
29079         Change type to hash_table.  Update dependent calls and types.
29080         (location_equiv_class_table): Likewise.
29082         * tree-vect-data-refs.c: Consequential changes for making
29083         peeling a hash_table.
29085         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29086         (destroy_loop_vec_info): Dependent hash_table update.
29088         * tree-vectorizer.h (peeling_htab):
29089         Change type to hash_table.  Update dependent calls and types.
29091 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
29093         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29094         to check the register content is equal or not.
29095         * lra-constraints.c (match_reload): Use lra_assign_reg_val
29096         to assign register content record.
29097         * lra-eliminations.c (update_reg_eliminate): Use
29098         lra_update_reg_val_offset to update register content offset.
29099         * lra-int.h (struct lra_reg): Add offset member.
29100         (lra_reg_val_equal_p): New static inline function.
29101         (lra_update_reg_val_offset): New static inline function.
29102         (lra_assign_reg_val): New static inline function.
29103         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29104         to assign register content record.
29105         (initialize_lra_reg_info_element): Initial offset to zero.
29107 2013-04-23  Catherine Moore  <clm@codesourcery.com>
29109         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29110         operands.  Record compression.
29112 2013-04-23  Xinliang David Li  <davidxl@google.com>
29114         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29116 2013-04-23  Richard Biener  <rguenther@suse.de>
29118         PR middle-end/57036
29119         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29120         parameter, only add abnormal goto edges from the copied body
29121         if the call could perform abnormal gotos.
29122         (copy_cfg_body): Adjust.
29124 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
29126         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29128 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
29130         * coretypes.h (gimple_stmt_iterator): Add struct to make
29131         compatible with C.
29133 2013-04-23  Richard Biener  <rguenther@suse.de>
29135         PR tree-optimization/57026
29136         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29137         from SSA names occuring in abnormal PHI nodes.
29139 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29141         * lto/lto.c (print_lto_report_1): Fix LTO report names.
29143 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29145         * lto/lto.c (print_lto_report_1): Declare early.
29146         (read_cgraph_and_symbols): Call print_lto_report_1 early.
29148 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29150         * common.opt (-flto-report-wpa): Add.
29151         * doc/invoke.texi (-flto-report-wpa): Add.
29152         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29153         (lto_main): dito.
29155 2013-04-22  Xinliang David Li  <davidxl@google.com>
29157         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29158         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29159         * Makefile.in: New dependency
29161             David Daney <ddaney.cavm@gmail.com>
29163         * configure.ac (gcc_cv_as_micromips_support):  Use the
29164         --fatal-warnings option.
29165         * configure: Regenerate.
29167 2013-04-22  Marek Polacek  <polacek@redhat.com>
29169         PR sanitizer/56990
29170         * tsan.c (instrument_expr): Don't instrument expression
29171         in case its size is zero.
29173 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
29175         PR target/57032
29176         Revert:
29177         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
29179         * config/alpha/alpha.c (TARGET_LRA_P): New define.
29181 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29183         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29184         (gimple_stmt_iterator): New typedef.
29185         * gimple.h (gimple_stmt_iterator): Rename to...
29186         (gimple_stmt_iterator_d): ... This.
29187         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29188         trees be valid for GIMPLE and GENERIC.
29189         (TARGET_GIMPLE_FOLD_BUILTIN): New.
29190         * gimple-fold.c (gimple_fold_call): Call target hook
29191         gimple_fold_builtin.
29192         * hooks.c (hook_bool_gsiptr_false): New.
29193         * hooks.h (hook_bool_gsiptr_false): New.
29194         * target.def (fold_stmt): New.
29195         * doc/tm.texi: Regenerate.
29197 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
29199         PR target/57018
29200         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29201         a set sp if no stack realignment.
29203 2013-04-22  Nick Clifton  <nickc@redhat.com>
29205         * config.gcc (tilegx-linux): Extend extra_objs rather than
29206         overwriting it.
29207         (tilepro-linux): Likewise.
29209 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29211         * config/aarch64/aarch64-builtins.c
29212         (CF): Remove.
29213         (CF0, CF1, CF2, CF3, CF4, CF10): New.
29214         (VAR<1-12>): Add MAP parameter.
29215         (BUILTIN_*): Likewise.
29216         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29217         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29218         (aarch64_ushl_n<mode>): Likewise.
29219         (aarch64_sshr_n<mode>): Likewise.
29220         (aarch64_ushr_n<mode>): Likewise.
29221         (aarch64_<maxmin><mode>): Likewise.
29222         (aarch64_sqrt<mode>): Likewise.
29223         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29224         (vshr<q>_n_*): Likewise.
29226 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29228         * config/aarch64/aarch64-builtins.c
29229         (aarch64_simd_builtin_type_mode): Handle SF types.
29230         (sf_UP): Define.
29231         (BUILTIN_GPF): Define.
29232         (aarch64_init_simd_builtins): Handle SF types.
29233         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29234         (frecps): Likewise.
29235         (frecpx): Likewise.
29236         * config/aarch64/aarch64-simd.md
29237         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29238         (aarch64_frecpe<mode>): New.
29239         (aarch64_frecps<mode>): Likewise.
29240         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29241         (v8type): Add frecp<esx>.
29242         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29243         (aarch64_frecps<mode>): Likewise.
29244         * config/aarch64/iterators.md (FRECP): New.
29245         (frecp_suffix): Likewise.
29246         * config/aarch64/arm_neon.h
29247         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29249 2013-04-22  Christian Bruel  <christian.bruel@st.com>
29251         PR target/56995
29252         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29253         (REG_CLASS_NAMES): Idem.
29254         (REG_CLASS_CONTENTS): Idem.
29255         (REGCLASS_HAS_FP_REG): Idem.
29256         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29257         (sh_conditional_register_usage): Idem.
29259 2013-04-21  Jeff Law  <law@redhat.com>
29261         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29262         (ssa_forward_propagate_and_combine): Use it.
29264 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29266         * lra.c: Update the flow chart diagram.
29268 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29270         PR rtl-optimization/56847
29271         * lra-constraints.c (process_alt_operands): Discourage alternative
29272         with non-matche doffsettable memory constraint fro memory with
29273         known offset.
29275 2013-04-19  Richard Biener  <rguenther@suse.de>
29277         PR tree-optimization/56982
29278         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29279         function.
29280         * gimplify.c (gimplify_call_expr): Notice special calls.
29281         (gimplify_modify_expr): Likewise.
29282         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29283         abnormal control flow receivers.
29284         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29285         in the same way as cfun->has_nonlocal_labels.
29286         (gimple_purge_dead_abnormal_call_edges): Likewise.
29287         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29288         receivers start a basic-block.
29290 2013-04-19  Richard Biener  <rguenther@suse.de>
29292         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29293         member ...
29294         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
29295         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29296         (SLP_TREE_LOAD_PERMUTATION): Add.
29297         (vect_transform_slp_perm_load): Adjust prototype.
29298         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29299         (vect_free_slp_instance): Likewise.
29300         (vect_create_new_slp_node): Likewise.
29301         (vect_supported_slp_permutation_p): Remove.
29302         (vect_slp_rearrange_stmts): Adjust.
29303         (vect_supported_load_permutation_p): Likewise.  Inline
29304         vect_supported_slp_permutation_p here.
29305         (vect_analyze_slp_instance): Compute load permutations per
29306         slp node instead of per instance.
29307         (vect_get_slp_defs): Adjust.
29308         (vect_transform_slp_perm_load): Likewise.
29309         (vect_schedule_slp_instance): Remove redundant code.
29310         (vect_schedule_slp): Remove hack for PR56270, add it ...
29311         * tree-vect-stmts.c (vectorizable_load): ... here, do not
29312         CSE loads for SLP.  Adjust.
29314 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29316         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29317         spelling in two comments.
29319 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29321         PR target/56797
29322         * config/arm/arm.c (load_multiple_sequence): Require SP
29323         as base register for loads if SP is in the register list.
29325 2013-04-19  Martin Jambor  <mjambor@suse.cz>
29327         PR tree-optimization/56718
29328         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29329         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29330         and made public.  Adjusted all callers.
29331         (ipa_intraprocedural_devirtualization): New function.
29332         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29333         (ipa_intraprocedural_devirtualization): Likewise.
29334         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29336 2013-04-19  Richard Biener  <rguenther@suse.de>
29338         PR tree-optimization/57000
29339         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29341 2013-04-19  Terry Guo  <terry.guo@arm.com>
29343         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29344         Replace with ...
29345         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
29346         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29347         (cortex_m4_fmacs): Use new reservations.
29348         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29350 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
29352         PR rtl-optimization/56999
29353         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29354         related code.
29355         (lra_coalesce): Remove split_origin_bitmap and related code.
29356         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
29357         ranges if necessary.
29359 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
29361         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29362         New array.
29363         (ix86_expand_call): Remove clobbered_registers array and use
29364         x86_64_ms_sysv_extra_clobbered_registers instead.
29365         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29366         Declare here.
29367         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29368         predicate.
29369         * config/i386/i386.md (*call_rex64_ms_sysv): Use
29370         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
29371         (*call_value_rex64_ms_sysv): Ditto.
29373 2013-04-18  Cary Coutant  <ccoutant@google.com>
29375         * dwarf2out.c (output_pubnames): Check die_perennial_p of
29376         parent instead of die_mark.
29378 2013-04-18  Diego Novillo  <dnovillo@google.com>
29380         * gimple.c (create_gimple_tmp): New.
29381         (get_expr_type): New.
29382         (build_assign): New.
29383         (build_type_cast): New.
29384         * gimple.h (enum ssa_mode): Define.
29385         (gimple_seq_set_location): New.
29386         * asan.c (build_check_stmt): Change some gimple_build_* calls
29387         to use build_assign and build_type_cast.
29389 2013-04-18  Richard Biener  <rguenther@suse.de>
29391         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29392         handle negative step.  Remove redundant checks.
29393         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29394         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29395         for negative step and grouped loads fail to vectorize.
29397 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29399         * emit-rtl.c (reset_insn_used_flags): New function.
29400         (reset_all_used_flags): Use it.
29401         (verify_insn_sharing): New function.
29402         (verify_rtl_sharing): Fix verification for SEQUENCEs.
29404 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
29406         PR tree-optimization/56984
29407         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29408         and (x >> M) >= N don't register any assertion if N << M is the
29409         minimum value.
29411 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29413         * lower-subreg.c (resolve_simple_move): If called self-recursive,
29414         do not delete_insn insns that have not yet been emitted, only
29415         unlink them with remove_insn.
29416         * df-scan.c (df_insn_delete): Revert r197492.
29418 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
29420         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29421         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29423 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29425         * config/arm/arm.md (movsicc_insn): Convert define_insn into
29426         define_insn_and_split.
29427         (and_scc,ior_scc,negscc): Likewise.
29428         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29430 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29432         * config/arm/arm.c (use_return_insn): Return 0 for targets that
29433         can benefit from using a sequence of LDRD instructions in epilogue
29434         instead of a single LDM instruction.
29436 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29438         PR 45688
29439         * doc/extend.texi: Fix typo.
29441 2013-04-17  Richard Biener  <rguenther@suse.de>
29443         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29444         (vect_build_slp_tree): ... here.
29445         (vect_build_slp_tree_1): Compute which stmts of the SLP group
29446         match.  Remove special-casing of mismatched complex loads.
29447         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29448         re-try the match with swapped commutative operands.
29449         (vect_supported_load_permutation_p): Remove special-casing of
29450         mismatched complex loads.
29451         (vect_analyze_slp_instance): Adjust.
29453 2013-04-17  Richard Biener  <rguenther@suse.de>
29455         PR rtl-optimization/56921
29456         * cfgloop.h (struct loop): Add simple_loop_desc member.
29457         (struct niter_desc): Mark with GTY(()).
29458         (simple_loop_desc): Do not use aux field but simple_loop_desc.
29459         * loop-iv.c (get_simple_loop_desc): Likewise.
29460         (free_simple_loop_desc): Likewise.
29462         Revert
29463         2013-04-16  Richard Biener  <rguenther@suse.de>
29465         PR rtl-optimization/56921
29466         * loop-init.c (pass_rtl_move_loop_invariants): Add
29467         TODO_do_not_ggc_collect to todo_flags_finish.
29468         (pass_rtl_unswitch): Same.
29469         (pass_rtl_unroll_and_peel_loops): Same.
29470         (pass_rtl_doloop): Same.
29472 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
29474         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29475         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29476         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29477         references.
29478         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29479         * tree-streamer.c (record_common_node): Adjust reference in comment.
29481 2013-04-17  Terry Guo  <terry.guo@arm.com>
29483         * config/arm/cortex-m4.md: Add a new bypass.
29485 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29487         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29488         New pattern.
29489         (*subs_<optab><mode>_multp2): New pattern.
29490         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29491         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29493 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29495         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29496         (*subs_mul_imm_<mode>): New pattern.
29498 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
29500         PR target/56948
29501         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29502         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
29503         (vsx_movti_32bit): Change j->wa to O->wa.
29505 2013-04-16  Richard Biener  <rguenther@suse.de>
29507         PR rtl-optimization/56921
29508         * loop-init.c (pass_rtl_move_loop_invariants): Add
29509         TODO_do_not_ggc_collect to todo_flags_finish.
29510         (pass_rtl_unswitch): Same.
29511         (pass_rtl_unroll_and_peel_loops): Same.
29512         (pass_rtl_doloop): Same.
29514 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
29516         * config/arm/arm.c (emit_multi_reg_push): New declaration
29517         for an existing function.
29518         (arm_emit_strd_push): New function.
29519         (arm_expand_prologue): Used here.
29520         (arm_emit_ldrd_pop): New function.
29521         (arm_expand_epilogue): Used here.
29522         (arm_get_frame_offsets): Update condition.
29523         (arm_emit_multi_reg_pop): Add a special case for load of a single
29524         register with writeback.
29526 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
29528         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29529         description.
29531 2013-04-16  Richard Biener  <rguenther@suse.de>
29533         PR tree-optimization/56756
29534         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29535         (first_mem_ref_loc): New.
29536         (execute_sm): Place the load temporarily before a previous
29537         access instead of in the latch edge to ensure its SSA dependencies
29538         are defined at points dominating the load.
29540 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
29542         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29543         correct fix by moving header and footer insn to the footer of
29544         the merged basic block.  Clear BB_END of the merged-away block.
29546         PR middle-end/43631
29547         * emit-rtl.c (make_note_raw): New function.
29548         (link_insn_into_chain): New static inline function.
29549         (add_insn): Use it.
29550         (add_insn_before, add_insn_after): Factor insn chain linking code...
29551         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29552         using link_insn_into_chain.
29553         (note_outside_basic_block_p): New helper function for emit_note_after
29554         and emit_note_before.
29555         (emit_note_after): Use nobb variant of add_insn_after if the note
29556         should not be contained in a basic block.
29557         (emit_note_before): Use nobb variant of add_insn_before if the note
29558         should not be contained in a basic block.
29559         (emit_note_copy): Use make_note_raw.
29560         (emit_note): Likewise.
29561         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29562         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29563         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29564         the moved barrier the tail of the basic block it follows.
29565         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29567 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
29569         PR tree-optimization/56962
29570         * gimple-ssa-strength-reduction.c (record_increment): Only set
29571         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29572         either rhs1 or rhs2 is equal to c->base_expr.
29574 2013-04-15  Richard Biener  <rguenther@suse.de>
29576         PR tree-optimization/56933
29577         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29578         member.
29579         (GROUP_READ_WRITE_DEPENDENCE): Remove.
29580         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29581         * tree-vect-data-refs.c (vect_analyze_group_access): Move
29582         dependence check ...
29583         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29584         ... here.
29585         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29586         GROUP_READ_WRITE_DEPENDENCE.
29588 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29590         * emit-rtl.c (reset_all_used_flags): New function.
29591         (verify_rtl_sharing): Call reset_all_used_flags before and after
29592         performing the checks.
29594 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29596         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29597         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29598         * config/arm/constraints.md (De): New constraint.
29599         * config/arm/neon.md (anddi3_neon): Delete.
29600         (neon_vand<mode>): Expand to standard anddi3 pattern.
29601         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29602         Move earlier in the file.
29603         (neon_inv_logic_op2): Likewise.
29604         (arm_anddi_operand_neon): New predicate.
29606 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29608         * configure.ac (gcc_cv_ld_as_needed): Set
29609         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29610         Use -z ignore, -z record on *-*-solaris2*.
29611         (HAVE_LD_AS_NEEDED): Update comment.
29612         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29613         * configure: Regenerate.
29614         * config.in: Regenerate.
29615         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29616         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29617         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29618         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29619         equivalents.  Fix markup.
29620         * doc/tm.texi: Regenerate.
29622 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
29624         * config/i386/i386.opt: New option mstack-protector-guard=.
29625         * config/i386/i386-opts.h: Add enum stack_protector_guard.
29626         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29627         TARGET_SSP_TLS_GUARD.
29628         * config/i386/i386.c (ix86_option_override_internal): Set
29629         ix86_stack_protector_guard.
29630         * config/i386/i386.md (stack_protect_set): Enable for
29631         TARGET_SSP_TLS_GUARD only.
29632         (stack_protect_set_<mode>): Ditto.
29633         (stack_protect_test): Ditto.
29634         (stack_protect_test_<mode>): Ditto.
29635         * doc/invoke.texi (i386 Option): Document.
29637 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29639         PR target/56890
29640         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29641         (S_MODES): Set H_MODE bit.
29642         (SF_MODES): Set only S_MODE and SF_MODE bits.
29643         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29644         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29645         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29646         <MODE_FLOAT>: Likewise.
29648 2013-04-15  Joey Ye  <joey.ye@arm.com>
29650         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29652 2013-04-15  Joey Ye  <joey.ye@arm.com>
29654         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29655         for real far jump.
29656         (thumb_far_jump_used_p): Count instruction size and set
29657         far_jump_used.
29659 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29661         * reorg.c (fill_simple_delay_slots): Reindent block of code.
29662         * resource.c (mark_target_live_regs): Reformat conditional block.
29664 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29666         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29667         notes, they are emitted only just before final.
29668         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29670 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29672         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29673         * cfgrtl.c (delete_insn): Call it here instead.
29674         * lra-spills.c (lra_final_code_change): Use delete_insn.
29675         * haifa-sched.c (sched_remove_insn): Likewise.
29676         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29677         returning to the nop pool.
29678         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29679         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
29681 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29683         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29684         * doc/tm.texi: Regenerated.
29686 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
29688         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
29689         QImode checks.
29691 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29693         * df-core.c (df_find_def): Compare register numbers.
29694         (df_find_use): Likewise.
29696 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
29698         PR target/56903
29699         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29700         lra_in_progress for return.
29702 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29704         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29705         define_insn into define_insn_and_split and emit movsicc patterns.
29707 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29709         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29711 2013-04-12  Richard Biener  <rguenther@suse.de>
29713         * tree-pass.h (TODO_do_not_ggc_collect): New.
29714         * passes.c (execute_one_ipa_transform_pass): Honor
29715         TODO_do_not_ggc_collect.
29716         (execute_one_pass): Likewise.
29718         Revert
29719         2013-04-10  Richard Biener  <rguenther@suse.de>
29721         * passes.c (init_optimization_passes): Remove reload pass.
29722         * ira.c (do_reload): Merge into ...
29723         (ira): ... this.
29724         (rest_of_handle_reload): Remove.
29725         (pass_reload): Likewise.
29726         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29727         of reload for vzeroupper pass placement.
29729 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
29731         PR tree-optimization/56918
29732         PR tree-optimization/56920
29733         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29734         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
29735         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
29736         use wide_mul_with_sign method.
29738 2013-04-12  Richard Biener  <rguenther@suse.de>
29740         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29741         not be considered a gimple constant.
29743 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
29745         * fold-const.c (const_binop): Handle vector shifts by a scalar.
29746         (fold_binary_loc): Call const_binop also for mixed vector-scalar
29747         operations.
29749 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29750             Jakub Jelinek  <jakub@redhat.com>
29752         * opts.c: Include diagnostic-color.h.
29753         (common_handle_option): Handle OPT_fdiagnostics_color_.
29754         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29755         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29756         (diagnostic-color.o): New.
29757         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29758         (diagnostic_color_rule): New enum.
29759         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29760         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29761         the location string.
29762         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29763         either NULL, or color kind.
29764         * diagnostic-color.c: New file.
29765         * diagnostic-color.h: New file.
29766         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29767         arguments.
29768         * doc/invoke.texi (-fdiagnostics-color): Document.
29769         * pretty-print.h (pp_show_color): Define.
29770         (struct pretty_print_info): Add show_color field.
29771         * diagnostic.c: Include diagnostic-color.h.
29772         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29773         macros.  Colorize error:, warning: etc. strings and also the location
29774         string.
29775         (diagnostic_show_locus): Colorize the caret line.
29776         * pretty-print.c: Include diagnostic-color.h.
29777         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
29778         inside of %< %> quotes or quoted through q format modifier.
29780 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29782         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
29784 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29786         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
29787         code in CC_NZ mode.
29788         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
29789         pattern.
29791 2013-04-11  Marek Polacek  <polacek@redhat.com>
29793         PR tree-optimization/48184
29794         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
29796 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
29798         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
29799         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
29800         (skip_simple_arithmetic): Tidy up.
29801         * tree.h (skip_simple_constant_arithmetic): Declare.
29803 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29805         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
29807 2013-04-11  Richard Biener  <rguenther@suse.de>
29809         * tree-vect-loop.c (get_initial_def_for_induction): Properly
29810         generate vector constants.
29812 2013-04-11  Richard Biener  <rguenther@suse.de>
29814         PR tree-optimization/56878
29815         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
29816         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
29817         New function.
29818         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29819         Prefer to align the DR with the most invariant base address.
29821 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29823         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
29824         comment.
29826 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
29828         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
29829         floating-point vector comparisons against 0.
29831 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
29833         PR tree-optimization/56899
29834         * fold-const.c (extract_muldiv_1): Apply distributive law
29835         only if TYPE_OVERFLOW_WRAPS (ctype).
29837 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
29839         PR target/56124
29840         * ira-costs.c (scan_one_insn): Check whether the source rtx of
29841         loading has side effect.
29843 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
29845         * config/sparc/sparc.c: Include tree-pass.h.
29846         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
29847         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
29848         head of file.  Change return type.  Split off gate function.
29849         (sparc_gate_work_around_errata): New function.
29850         (pass_work_around_errata): New pass definition.
29851         (insert_pass_work_around_errata) New pass insert definition to
29852         insert pass_work_around_errata just after delayed-branch scheduling.
29853         (sparc_option_override): Insert the pass.
29854         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
29856 2013-04-10  David S. Miller  <davem@davemloft.net>
29858         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
29859         or -mcpu=hypersparc.
29861         * target.def (cstore_mode): New hook.
29862         * target.h: Include insn-codes.h
29863         * targhooks.c: Likewise.
29864         (default_cstore_mode): New function.
29865         * targhooks.h: Declare it.
29866         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
29867         * doc/tm.texi: Rebuild.
29868         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
29869         target hook, rather than inspecting the insn_data.
29870         * config/sparc/sparc.c (sparc_cstore_mode): New function.
29871         (TARGET_CSTORE_MODE): Redefine.
29872         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
29873         result patterns.
29874         * config/sparc/predicates.md (cstore_result_operand): New special
29875         predicate.
29876         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
29877         Use it for operand 0.
29878         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
29879         (*snesi_special): Likewise.
29880         (*snesi_zero): Likewise.
29881         (*seqsi_zero): Likewise.
29882         (*sltu_insn): Likewise.
29883         (*sgeu_insn): Likewise.
29884         (*seqdi_special): Make operand 0 and comparison operation be of
29885         DImode.
29886         (*snedi_special): Likewise.
29887         (*snedi_special_vis3): Likewise.
29888         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
29889         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
29890         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
29891         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
29892         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
29893         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
29894         (*sltu_extend_sp64): Likewise.
29895         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
29896         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
29897         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
29898         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
29899         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
29901 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
29903         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
29904         (aarch64_start_file): Use the new function.
29906 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29907             Jason Merrill  <jason@redhat.com>
29909         * common.opt: Add -gdwarf.
29910         * opts.c (common_handle_option): Handle it.
29911         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
29913 2013-04-10  Richard Biener  <rguenther@suse.de>
29915         * passes.c (execute_todo): Do not call ggc_collect conditional here.
29916         (execute_one_ipa_transform_pass): But unconditionally here.
29917         (execute_one_pass): And here.
29918         (init_optimization_passes): Remove reload pass.
29919         * tree-pass.h (TODO_ggc_collect): Remove.
29920         (pass_reload): Likewise.
29921         * ira.c (do_reload): Merge into ...
29922         (ira): ... this.
29923         (rest_of_handle_reload): Remove.
29924         (pass_reload): Likewise.
29925         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29926         of reload for vzeroupper pass placement.
29927         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
29928         and todo_flags_finish of all passes.
29930 2013-04-10  Richard Biener  <rguenther@suse.de>
29932         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
29933         first_const_oprnd field, rename first_def_type to first_op_type.
29934         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
29935         (vect_get_and_check_slp_defs): Always use the type of the
29936         operand.  Allow mixed vect_external_def, vect_constant_def types.
29937         (vect_get_constant_vectors): Handle mixed vect_external_def,
29938         vect_constant_def types.
29940 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
29942         PR tree-optimization/55524
29943         * tree-ssa-math-opts.c
29944         (convert_mult_to_fma): Don't use an fms construct
29945         when we don't have an fms operation, but fnma, and it looks
29946         likely that we'll be able to use the latter.
29948 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29950         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
29951         function.
29952         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
29953         inline fail caused by overwritable functions.
29955 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
29957         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
29958         unnecessary bits in the constant power of two case.
29960 2013-04-10  Richard Biener  <rguenther@suse.de>
29962         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
29963         broken code swapping operands.
29964         (vect_build_slp_tree): Do not compute load permutations here.
29965         (vect_analyze_slp_instance): Compute load permutations here,
29966         after building the SLP tree.
29968 2013-04-09  Christian Bruel  <christian.bruel@st.com>
29970         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
29971         of next/prev_real_insn.
29973 2013-04-09  Jan Hubicka  <jh@suse.cz>
29975         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
29976         Drop aliased parameter.
29977         (function_and_variable_visibility): Do not handle alias pairs.
29978         * cgraph.c (varpool_externally_visible_p): Update prototype.
29979         * varpool.c (varpool_add_new_variable): Update.
29981 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29983         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
29985 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
29987         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
29989         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
29991 2013-04-09  Marek Polacek  <polacek@redhat.com>
29993         PR tree-optimization/48762
29994         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
29996 2013-04-09  Richard Biener  <rguenther@suse.de>
29998         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
29999         dealing with cost.
30000         (vect_build_slp_tree): Likewise.
30001         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30002         calculating the cost of a SLP instance.
30003         (vect_analyze_slp_instance): Use it from here, after building
30004         the SLP tree.
30006 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
30008         PR middle-end/56883
30009         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30010         expand_omp_for_static_chunk): Use simple_p = true in
30011         force_gimple_operand_gsi calls when assigning to addressable decls.
30013 2013-04-09  Jeff Law  <law@redhat.com>
30015         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30016         when the boolean was created by converting a wider object which
30017         had a boolean range.
30019 2013-04-09  Richard Biener  <rguenther@suse.de>
30021         * tree-vectorizer.h (slp_void_p): Remove.
30022         (slp_tree): Typedef before _slp_tree declaration.
30023         (struct _slp_tree): Use a vector of slp_tree as children.
30024         (vect_get_place_in_interleaving_chain): Remove.
30025         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30026         Move ...
30027         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30028         and make static.
30029         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30030         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30031         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30032         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30033         Use slp_node instead of slp_void_p and adjust.
30035 2013-04-09  Richard Biener  <rguenther@suse.de>
30037         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30038         work that is not necessary.
30040 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
30042         PR tree-optimization/56854
30043         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30044         forward into clobber stmts if it would change MEM_REF lhs into
30045         non-MEM_REF.
30047 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
30049         * tree.c (type_hash_lookup, type_hash_add): Make static.
30050         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30052 2013-04-09  Richard Biener  <rguenther@suse.de>
30054         * tree.h (unsave_expr_now): Remove.
30055         * tree-inline.c (mark_local_for_remap_r): Remove.
30056         (unsave_expr_1): Likewise.
30057         (unsave_r): Likewise.
30058         (unsave_expr_now): Likewise.
30059         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30060         (propagate_tree_value): Likewise.
30062 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
30064         * doc/rtl.texi (sequence): Rewrite documentation to match the
30065         current use of SEQUENCE rtl objects.
30066         * rtl.def (SEQUENCE): Likewise.
30068         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30069         Update documentation.
30070         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30071         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30073         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30075 2013-04-08  Teresa Johnson  <tejohnson@google.com>
30077         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30078         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30079         methods.
30080         (estimate_edge_size_and_time): Add comment to suggest using rounding
30081         methods.
30082         (estimate_node_size_and_time): Ditto.
30083         (remap_edge_change_prob): Use helper rounding divide methods.
30084         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30085         (gimple_mod_pow2_value_transform): Ditto.
30086         (gimple_mod_subtract_transform): Ditto.
30087         (gimple_ic_transform): Ditto.
30088         (gimple_stringops_transform): Ditto.
30089         * stmt.c (conditional_probability): Ditto.
30090         (emit_case_dispatch_table): Ditto.
30091         * lto-cgraph.c (merge_profile_summaries): Ditto.
30092         * tree-optimize.c (execute_fixup_cfg): Ditto.
30093         * cfgcleanup.c (try_forward_edges): Ditto.
30094         * cfgloopmanip.c (scale_loop_profile): Ditto.
30095         (loopify): Ditto.
30096         (duplicate_loop_to_header_edge): Ditto.
30097         (lv_adjust_loop_entry_edge): Ditto.
30098         * tree-vect-loop.c (vect_transform_loop): Ditto.
30099         * profile.c (compute_branch_probabilities): Ditto.
30100         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30101         * lto-streamer-in.c (input_cfg): Ditto.
30102         * gimple-streamer-in.c (input_bb): Ditto.
30103         * ipa-cp.c (update_profiling_info): Ditto.
30104         (update_specialized_profile): Ditto.
30105         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30106         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30107         rounding methods.
30108         * sched-rgn.c (compute_dom_prob_ps): Ditto.
30109         (compute_trg_info): Ditto.
30110         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30111         (purge_dead_edges): Ditto.
30112         * loop-unswitch.c (unswitch_loop): Ditto.
30113         * cgraphclones.c (cgraph_clone_edge): Ditto.
30114         (cgraph_clone_node): Ditto.
30115         * tree-inline.c (copy_bb): Ditto.
30116         (copy_edges_for_bb): Ditto.
30117         (initialize_cfun): Ditto.
30118         (copy_cfg_body): Ditto.
30119         (expand_call_inline): Ditto.
30121 2013-04-08  Kai Tietz  <ktietz@redhat.com>
30123         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30124         TARGET_CYGWIN64 by TARGET_64BIT.
30126 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30128         * config/epiphany/epiphany.md (GPR_1): New constant.
30129         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30130         * config/epiphany/epiphany.c (gen_compare_reg):
30131         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30132         is already in place.
30133         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30134         Don't require being called during rtl expansion; If y operlaps r0,
30135         return 0.
30136         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30137         (epiphany_expand_epilogue): Likewise.
30139         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30140         Don't use CC_FPmode for ORDERED / UNORDERED.
30141         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30143         * config/epiphany/constraints.md (CnL): New constraint.
30144         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30145         * config/epiphany/predicates.md (add_operand): Allow 1024.
30147         * config/epiphany/epiphany.md (logical_op): New code iterator.
30148         (op_mnc): New code attribute.
30149         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30150         (mov_f+1, mov_f+2): New peephole2 patterns.
30152         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30153         (cstoresi4): Also allow re-use of zero result when doing a NE
30154         comparison to a non-zero operand.
30155         Use (clobber (scratch)) for first insn if the gpr output is not needed.
30157         * config/epiphany/epiphany.md (<insn_opname>v2si3):
30158         Use gen_addsi3_i / gen_subsi3_i.
30160 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30162         PR c++/34949
30163         PR c++/50243
30164         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30165         contain anything but clobbers, at most one __builtin_stack_restore,
30166         optionally debug stmts and final resx, and if it has at least one
30167         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
30168         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30169         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30170         which isn't defaut definition, remove them.
30171         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30172         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30173         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30174         with MEM_REF LHS with SSA_NAME address.
30176 2013-04-08  Jeff Law  <law@redhat.com>
30178         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30180 2013-04-08  Richard Biener  <rguenther@suse.de>
30182         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30183         extra newline.
30184         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30185         determined vector type.
30186         (vect_analyze_data_refs): Likewise.
30187         (vect_get_new_vect_var): Adjust.
30188         (vect_create_destination_var): Preserve SSA name versions.
30189         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30190         not dump anything here.
30192 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30194         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30195         Add member lr_slot_known.
30196         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30197         if necessary.
30198         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30199         Remove code that sets lr_slot_offset according to what a previous
30200         version of epiphany_emit_save_restore used to do.
30201         (epiphany_emit_save_restore): When doing an lr save or restore,
30202         set/verify lr_slot_known and lr_slot_offset.
30204 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
30206         PR target/54338
30207         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30208         in ALL_REGS.
30210 2013-04-08  Richard Biener  <rguenther@suse.de>
30212         * alias.c (find_base_term): Fix thinko in previous change.
30214 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30216         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30217         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30218         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
30219         if possible to compute val.
30220         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30221         For QImode integers don't require anything about precision.  Use
30222         const_with_all_bytes_same to find out if the constant doesn't have
30223         repeated bytes in it.
30225 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30227         * config/s390/s390.c (s390_expand_insv): Only accept insertions
30228         within mode size.
30230 2013-04-08  Marek Polacek  <polacek@redhat.com>
30232         PR rtl-optimization/48182
30233         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30234         value to 1.
30236 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30238         PR target/55487
30239         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30240         nuses, make sure we have a label.
30242 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30244         PR target/56843
30245         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30246         (rs6000_emit_swdiv_low_precision): Remove.
30247         (rs6000_emit_swdiv): Rewrite to handle between one and four
30248         iterations of Newton-Raphson generally; modify required number of
30249         iterations for some cases.
30250         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30252 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
30254         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30255         set-but-unused variable.
30257         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30258         basic blocks of released function bodies garbage-collectable.
30260         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30261         (struct rtl_opt_pass): Add TODO_df_finish.
30263         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30265 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30267         * config/arm/constraints.md (q): New constraint.
30268         * config/arm/ldrdstrd.md: New file.
30269         * config/arm/arm.md (ldrdstrd.md) New include.
30270         (arm_movdi): Use "q" instead of "r" constraint
30271         for double-word memory access.
30272         (movdf_soft_insn): Likewise.
30273         * config/arm/vfp.md (movdi_vfp): Likewise.
30274         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30275         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30276         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30277         (mem_ok_for_ldrd_strd): Likewise.
30278         (output_move_double): Update assertion.
30280 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30282         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30284 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30286         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30287         define_insn_and_split.
30288         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30290 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30292         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30293         define_insn_and_split.
30294         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30295         (shiftsi3_compare): New pattern.
30296         (rrx): New pattern.
30297         * config/arm/unspecs.md (UNSPEC_RRX): New.
30299 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30301         * config/arm/arm.md (negdi_extendsidi): New pattern.
30302         (negdi_zero_extendsidi): Likewise.
30304 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30306         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30307         define_insn_and_split.
30308         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30309         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30311 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30313         * config/arm/arm.md (arm_subdi3): Convert define_insn into
30314         define_insn_and_split.
30315         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30316         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30318 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30320         * config/arm/arm.md (subsi3_carryin): New pattern.
30321         (subsi3_carryin_const): Likewise.
30322         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30323         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30325 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30327         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30329 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30331         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30332         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30334 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30336         * config/arm/arm.c (arm_expand_builtin): Change fcode
30337         type to unsigned int.
30339 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30341         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30343 2013-04-04  Ian Lance Taylor  <iant@google.com>
30345         * doc/standards.texi (Standards): The Go frontend supports the Go 1
30346         language standard.
30348 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
30350         PR middle-end/56729
30351         * df-scan.c (df_insn_delete): Disable failing assert.
30353 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30355         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30356         New function prototype.
30357         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30358         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30359         (arm_builtin_vectorized_function): New function.
30361 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30363         * config/arm/arm_neon_builtins.def: New file.
30364         * config/arm/arm.c (neon_builtin_data): Move contents to
30365         arm_neon_builtins.def.
30366         (enum arm_builtins): Include neon builtin definitions.
30367         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30368         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30370 2013-04-04  Marek Polacek  <polacek@redhat.com>
30372         PR tree-optimization/48186
30373         * predict.c (maybe_hot_frequency_p): Return false if
30374         HOT_BB_FREQUENCY_FRACTION is 0.
30375         (cgraph_maybe_hot_edge_p): Likewise.
30377 2013-04-04  Richard Biener  <rguenther@suse.de>
30379         PR tree-optimization/56826
30380         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30381         more accurately.
30383 2013-04-04  Richard Biener  <rguenther@suse.de>
30385         PR tree-optimization/56213
30386         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30387         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30389 2013-04-04  Richard Biener  <rguenther@suse.de>
30391         PR tree-optimization/56837
30392         * tree-loop-distribution.c (classify_partition): For non-zero
30393         values require that the value has the same precision as its
30394         mode to be useful as memset value.
30396 2013-04-03  Nick Clifton  <nickc@redhat.com>
30398         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30399         (fmssf4): Use fmsf.s on E3V5 architectures.
30400         (fnmasf4): Use fnmaf.s on E3V5 architectures.
30401         (fnmssf4): Use fnmsf.s on E3V5 architectures.
30403 2013-04-03  Jeff Law  <law@redhat.com>
30405         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30406         (lra-eliminations.o): Likewise.
30408 2013-04-03  Teresa Johnson  <tejohnson@google.com>
30410         * gcov-io.c (compute_working_sets): Moved most of body of old
30411         compute_working_sets here from profile.c.
30412         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30413         (gcov_working_set_t): Moved typedef here from basic-block.h
30414         (compute_working_set): Declare.
30415         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30416         (get_working_sets): Renamed from compute_working_set,
30417         replace most of body with call to new compute_working_sets.
30418         (get_exec_counts): Replace call to compute_working_sets
30419         to get_working_sets.
30420         * profile.h (get_working_sets): Renamed from compute_working_set.
30421         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30422         to get_working_sets.
30423         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30424         * gcov-dump.c (dump_working_sets): New function.
30426 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
30428         * hwint.c (sext_hwi, zext_hwi): New functions.
30429         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30430         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30431         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30432         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30433         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30434         (sext_hwi, zext_hwi): New functions.
30436 2013-04-03  Jeff Law  <law@redhat.com>
30438         PR tree-optimization/56799
30439         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30440         back test for widening conversion erroneously dropped in prior change.
30442 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30444         PR target/56809
30445         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30446         instead of next_real_insn.
30448 2013-04-03  Marek Polacek  <polacek@redhat.com>
30450         PR sanitizer/55702
30451         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30453 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30455         PR target/56809
30456         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30457         next_real_insn.
30458         (thumb1_output_casesi): Likewise.
30459         (thumb2_output_casesi): Likewise.
30461 2013-04-03  Richard Biener  <rguenther@suse.de>
30463         PR tree-optimization/56817
30464         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30465         Split out ...
30466         (tree_unroll_loops_completely_1): ... new function to manually
30467         walk the loop tree, properly defering outer loops of unrolled
30468         loops to later iterations.
30470 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30472         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30473         (vectorizable_load): Likewise.
30474         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30475         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30477 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30479         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30480         BIT_FIELD_REF.
30482 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30484         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30486 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
30488         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30490 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30492         PR tree-optimization/56790
30493         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30494         folding.
30496 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30498         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30499         Handle VEC_MERGE.
30500         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30501         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30502         equal arguments.
30504 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
30506         PR c/19449
30507         * tree.h (force_folding_builtin_constant_p): New decl.
30508         * builtins.c (force_folding_builtin_constant_p): New variable.
30509         (fold_builtin_constant_p): Fold immediately also if
30510         force_folding_builtin_constant_p.
30512 2013-04-03  Richard Biener  <rguenther@suse.de>
30514         PR tree-optimization/56812
30515         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30516         DRs of the same interleaving chain are independent.
30518 2013-04-02  Jason Merrill  <jason@redhat.com>
30520         * gdbinit.in (pbb): Use debug fn.
30522 2013-04-02  Lawrence Crowl  <crowl@google.com>
30524         * sese.h (struct ivtype_map_elt_s): Remove unused.
30525         (extern debug_ivtype_map): Remove unused.
30526         (extern eq_ivtype_map_elts): Remove unused.
30527         * sese.c (debug_ivtype_map): Removed unused.
30528         (debug_ivtype_map_1): Removed unused.
30529         (debug_ivtype_elt): Remove unused.
30530         (eq_ivtype_map_elts): Remove unused.
30532 2013-04-02  Kai Tietz  <ktietz@redhat.com>
30534         PR target/52790
30535         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30536         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30537         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30538         function.
30539         (legitimize_pe_coff_symbol): Likewise.
30540         (is_imported_p): New helper-function.
30541         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30542         for Windows x64 targets.
30543         (ix86_expand_prologue): Optimize for pe-coff targets.
30544         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30545         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30546         medium/large code-model.
30547         (legitimize_pic_address): Likewise.
30548         (legitimize_tls_address): Likewise.
30549         (ix86_expand_call): Likewise.
30550         (x86_output_mi_thunk): Likewise.
30551         (get_dllimport_decl): Add new beimport argument.
30552         (construct_plt_address): Don't assert for x64 pe-coff targets.
30553         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30554         targets.
30555         (SYMBOL_FLAG_STUBVAR): New macro.
30556         (SYMBOL_REF_STUBVAR_P): Likewise.
30557         * config/i386/winnt.c (stub_list): New structure.
30558         (stub_head): New local variable.
30559         (i386_pe_record_stub): New function.
30560         (i386_pe_file_end): Emit refptr-stubs.
30562 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
30564         PR rtl-optimization/56745
30565         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30566         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30568         PR c++/34949
30569         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30570         and both of them are MEM_REFs, just compare first argument for
30571         equality and attempt to deal even with differing offsets.
30573         PR c++/34949
30574         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30575         of gimple_clobber_p to be MEM_REF.
30576         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30577         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
30578         after gimplification.
30579         * asan.c (get_mem_ref_of_assignment): Don't instrument
30580         gimple_clobber_p stmts.
30581         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30582         gimple_clobber_p stmt if they have MEM_REF lhs and
30583         are dead because of another gimple_clobber_p stmt.
30584         * tree-ssa-live.c (clear_unused_block_pointer): Treat
30585         gimple_clobber_p stmts like debug stmts.
30586         (remove_unused_locals): Remove clobbers with MEM_REF lhs
30587         that refer to unused VAR_DECLs or uninitialized values.
30588         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30589         gimple_clobber_p stmts if they refer to removed parameters.
30590         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30591         formatting.
30593 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
30595         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30596         using SWI48 mode attribute.
30598 2013-04-02  Wei Mi  <wmi@google.com>
30600         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30601         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30602         *<rotate_insn><mode>3_mask in i386.md.
30604 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30606         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30608 2013-04-02  Richard Biener  <rguenther@suse.de>
30610         PR tree-optimization/56778
30611         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30612         Runtime alias tests are not supported for gather loads.
30613         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30614         stmts referenced from SSA operands before updating SSA form.
30616 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
30617             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30619         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30620         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30621         * config/arm/cortex-a53.md: New file.
30622         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30623         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30624         * config/arm/arm.c (arm_issue_rate): Likewise.
30625         * config/arm/arm-tune.md: Regenerate
30626         * config/arm/arm-tables.opt: Regenerate.
30627         * config/arm/arm-cores.def: Add cortex-a53.
30629 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30631         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30632         non-static link.
30634 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30636         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30637         scalar load/store operations using B/H registers.
30638         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30640 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30642         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30643         scalar move.
30644         * config/aarch64/aarch64.c
30645         (aarch64_simd_scalar_immediate_valid_for_move): New.
30646         * config/aarch64/aarch64-protos.h
30647         (aarch64_simd_scalar_immediate_valid_for_move): New.
30648         * config/aarch64/constraints.md (Dh, Dq): New.
30649         * config/aarch64/iterators.md (hq): New.
30651 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
30653         * reorg.c (get_branch_condition): Deal with conditional returns.
30654         (fill_simple_delay_slots): Remove dead code dealing with jumps.
30656 2013-04-01  Wei Mi  <wmi@google.com>
30658         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30659         Truncate operand 2 using %b asm operand modifier.
30660         (*<shift_insn><mode>3_mask): Ditto.
30661         (*<rotate_insn><mode>3_mask): Ditto.
30663 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
30665         PR middle-end/56798
30666         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30668 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
30670         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30671         of next_real_insn.
30672         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30674 2013-03-30  Lawrence Crowl  <crowl@google.com>
30676         * dse.c (clear_alias_sets): Remove never set.
30677         (disqualified_clear_alias_sets): Remove never set.
30678         (clear_alias_mode_pool): Remove never set.
30679         (dse_step0): Remove condition that is never true.
30680         (canon_address): Remove condition that is never true.
30681         (dse_step7): Remove condition that is never true.
30682         (rest_of_handle_dse): Remove condition that is never true.
30683         (rest_of_handle_dse::did_global): Remove never read from above.
30684         (dse_step2_spill): Remove never called from above.
30685         (dse_step5_spill): Remove never called from above.
30687 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
30689         * doc/md.texi (Standard Names) <casesi>: Update documentation for
30690         JUMP_TABLE_DATA changes.
30691         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
30692         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
30693         (Insns) <jump_table_data>: New entry.
30694         * doc/tm.texi: Regenerate.
30696         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
30698         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
30699         for table jump at the end of a basic block using tablejump_p.
30700         * targhooks.c (default_invalid_within_doloop): Likewise.
30701         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30702         target hook implementation that is identical to the default hook.
30703         (rs6000_invalid_within_doloop): Remove.
30705         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30706         unused variable from tablejump_p call.
30708         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30709         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30710         (INSN_DELETED_P): Likewise.
30711         (emit_jump_table_data): New prototype.
30712         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30713         after 4th as unused.
30714         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30715         * sched-vis.c (print_insn): Likewise.
30716         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30717         insn for compatibility with back ends that use next_active_insn to
30718         identify jump table data.
30719         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30720         (remove_insn): Likewise.
30721         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30722         to be emitted.
30723         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30724         (emit_jump_table_data): New function.
30726         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30727         basic block, a JUMP_TABLE_DATA never is.
30728         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30729         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30730         off from code handling real insns.
30731         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30732         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30733         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30734         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30735         is not a NONDEBUG_INSN_P.
30736         * ira-costs.c (scan_one_insn): Likewise.
30737         * jump.c (mark_all_labels): Likewise.
30738         (mark_jump_label_1): Likewise.
30739         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30740         * lra.c (get_insn_freq): Expect all insns reaching here to be in
30741         a basic block.
30742         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30743         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30744         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30745         JUMP_TABLE_DATA_P insns.
30746         (calculate_elim_costs_all_insns): Likewise.
30747         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30748         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30749         (delete_output_reload): Code style fixups.
30750         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30751         insn flags on this non-insn.
30752         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30753         as scheduling barriers, for pre-change compatibility.
30754         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30755         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30757         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30758         redundant JUMP_TABLE_DATA_P test.
30759         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30760         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30761         (frv_for_each_packet): Likewise.
30762         * config/i386/i386.c (min_insn_size): Likewise.
30763         (ix86_avoid_jump_mispredicts): Likewise.
30764         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30765         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30766         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30767         (mips16_insn_length): Robustify.
30768         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30769         (mips16_split_long_branches): Likewise.
30770         * config/pa/pa.c (pa_combine_instructions): Likewise.
30771         * config/rs6000/rs6000.c (get_next_active_insn): Treat
30772         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30773         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30774         as contributing to pool range lengths.
30775         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30776         Remove redundant JUMP_TABLE_DATA_P test.
30777         (sh_loop_align): Likewise.
30778         (split_branches): Likewise.
30779         (sh_insn_length_adjustment): Likewise.
30780         * config/spu/spu.c (get_branch_target): Likewise.
30782 2013-03-29  Jan Hubicka  <jh@suse.cz>
30784         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
30785         gcov streaming; stream hot bb threshold to ltrans.
30786         * predict.c (get_hot_bb_threshold): Break out from ....
30787         (maybe_hot_count_p): ... here.
30788         (set_hot_bb_threshold): New function.
30789         * lto-section-in.c (lto_section_name): Add profile.
30790         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
30791         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
30792         and data-streamer.h
30793         (histogram_entry): New structure.
30794         (histogram, histogram_pool): New global vars.
30795         (histogram_hash): New structure.
30796         (histogram_hash::hash): New method.
30797         (histogram_hash::equal): Likewise.
30798         (account_time_size): New function.
30799         (cmp_counts): New function.
30800         (dump_histogram): New function.
30801         (ipa_profile_generate_summary): New function.
30802         (ipa_profile_write_summary): New function.
30803         (ipa_profile_read_summary): New function.
30804         (ipa_profile): Decide on threshold.
30805         (pass_ipa_profile): Add ipa_profile_write_summary and
30806         ipa_profile_read_summary.
30807         * Makefile.in (ipa.o): Update dependencies.
30808         * lto-streamer.h (LTO_section_ipa_profile): New section.
30810 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
30812         * tree.h (VAR_P): New.
30814 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
30816         PR lto/56777
30817         * doc/invoke.texi ([-fwhole-program]): Fix typo.
30819 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
30821         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
30822         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30823         (control_flow_insn_p): Likewise.
30824         * cfgrtl.c (duplicate_insn_chain): Likewise.
30825         * final.c (get_attr_length_1): Likewise.
30826         (shorten_branches): Likewise.
30827         (final_scan_insn): Likewise.
30828         * function.c (instantiate_virtual_regs): Likewise.
30829         * gcse.c (insert_insn_end_basic_block): Likewise.
30830         * ira-costs.c (scan_one_insn): Likewise.
30831         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30832         * lra.c (check_rtl): Likewise.
30833         * reload1.c (elimination_costs_in_insn): Likewise.
30834         * reorg.c (follow_jumps): Likewise.
30836         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
30837         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30838         (thumb_far_jump_used_p): Likewise.
30839         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
30840         (workaround_speculation): Likewise.
30841         (add_sched_insns_for_speculation): Likewise.
30842         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
30843         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30844         (frv_for_each_packet): Likewise.
30845         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
30846         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
30847         (final_emit_insn_group_barriers): Likewise.
30848         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30849         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30850         (mips16_insn_length): Likewise.
30851         * config/pa/pa.c (pa_reorg): Likewise.
30852         (pa_combine_instructions): Likewise.
30853         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
30854         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
30855         (sh_reorg): Likewise.
30856         (split_branches): Likewise.
30857         * config/spu/spu.c (get_branch_target): Likewise.
30859         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
30860         JUMP_TABLE_DATA_P.
30862 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
30864         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
30865         Fix declaration name.
30867 2013-03-28  Lawrence Crowl  <crowl@google.com>
30869         * graphds.h (struct graph.indicies): Remove unused.
30870         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
30871         (SCOP_ORIGINAL_PDDRS): Remove unused.
30872         * sese.h (extern insert_loop_close_phis): Removed unused.
30873         (extern insert_guard_phis): Removed unused.
30874         (extern ivtype_map_elt_info): Removed unused.
30875         (new_ivtype_map_elt): Removed unused.
30876         * sese.c (ivtype_map_elt_info): Removed unused.
30878 2013-03-28  Lawrence Crowl  <crowl@google.com>
30880         * Makefile.in: Add several missing include dependences.
30881         (DUMPFILE_H): New.
30882         (test-dump.o): New.  This object is not added to any executable,
30883         but is present for ad-hoc testing.
30884         * bitmap.c
30885         (debug (const bitmap_head_def &)): New.
30886         (debug (const bitmap_head_def *)): New.
30887         * bitmap.h
30888         (extern debug (const bitmap_head_def &)): New.
30889         (extern debug (const bitmap_head_def *)): New.
30890         * cfg.c
30891         (debug (edge_def &)): New.
30892         (debug (edge_def *)): New.
30893         * cfghooks.c
30894         (debug (basic_block_def &)): New.
30895         (debug (basic_block_def *)): New.
30896         * dumpfile.h
30897         (dump_node (const_tree, int, FILE *)): Correct source file.
30898         * dwarf2out.c
30899         (debug (die_struct &)): New.
30900         (debug (die_struct *)): New.
30901         * dwarf2out.h
30902         (extern debug (die_struct &)): New.
30903         (extern debug (die_struct *)): New.
30904         * gimple-pretty-print.c
30905         (debug (gimple_statement_d &)): New.
30906         (debug (gimple_statement_d *)): New.
30907         * gimple-pretty-print.h
30908         (extern debug (gimple_statement_d &)): New.
30909         (extern debug (gimple_statement_d *)): New.
30910         * ira-build.c
30911         (debug (ira_allocno_copy &)): New.
30912         (debug (ira_allocno_copy *)): New.
30913         (debug (ira_allocno &)): New.
30914         (debug (ira_allocno *)): New.
30915         * ira-int.h
30916         (extern debug (ira_allocno_copy &)): New.
30917         (extern debug (ira_allocno_copy *)): New.
30918         (extern debug (ira_allocno &)): New.
30919         (extern debug (ira_allocno *)): New.
30920         * ira-lives.c
30921         (debug (live_range &)): New.
30922         (debug (live_range *)): New.
30923         * lra-int.h
30924         (debug (lra_live_range &)): New.
30925         (debug (lra_live_range *)): New.
30926         * lra-lives.c
30927         (debug (lra_live_range &)): New.
30928         (debug (lra_live_range *)): New.
30929         * omega.c
30930         (debug (omega_pb_d &)): New.
30931         (debug (omega_pb_d *)): New.
30932         * omega.h
30933         (extern debug (omega_pb_d &)): New.
30934         (extern debug (omega_pb_d *)): New.
30935         * print-rtl.c
30936         (debug (const rtx_def &)): New.
30937         (debug (const rtx_def *)): New.
30938         * print-tree.c
30939         (debug_tree (tree): Move within file.
30940         (debug_raw (const tree_node &)): New.
30941         (debug_raw (const tree_node *)): New.
30942         (dump_tree_via_hooks (const tree_node *, int)): New.
30943         (debug (const tree_node &)): New.
30944         (debug (const tree_node *)): New.
30945         (debug_verbose (const tree_node &)): New.
30946         (debug_verbose (const tree_node *)): New.
30947         (debug_head (const tree_node &)): New.
30948         (debug_head (const tree_node *)): New.
30949         (debug_body (const tree_node &)): New.
30950         (debug_body (const tree_node *)): New.
30951         (debug_vec_tree (tree): Move and reimplement in terms of dump.
30952         (debug (vec<tree, va_gc> &)): New.
30953         (debug (vec<tree, va_gc> *)): New.
30954         * rtl.h
30955         (extern debug (const rtx_def &)): New.
30956         (extern debug (const rtx_def *)): New.
30957         * sbitmap.c
30958         (debug_raw (simple_bitmap_def &)): New.
30959         (debug_raw (simple_bitmap_def *)): New.
30960         (debug (simple_bitmap_def &)): New.
30961         (debug (simple_bitmap_def *)): New.
30962         * sbitmap.h
30963         (extern debug (simple_bitmap_def &)): New.
30964         (extern debug (simple_bitmap_def *)): New.
30965         (extern debug_raw (simple_bitmap_def &)): New.
30966         (extern debug_raw (simple_bitmap_def *)): New.
30967         * sel-sched-dump.c
30968         (debug (vinsn_def &)): New.
30969         (debug (vinsn_def *)): New.
30970         (debug_verbose (vinsn_def &)): New.
30971         (debug_verbose (vinsn_def *)): New.
30972         (debug (expr_def &)): New.
30973         (debug (expr_def *)): New.
30974         (debug_verbose (expr_def &)): New.
30975         (debug_verbose (expr_def *)): New.
30976         (debug (vec<rtx> &)): New.
30977         (debug (vec<rtx> *)): New.
30978         * sel-sched-dump.h
30979         (extern debug (vinsn_def &)): New.
30980         (extern debug (vinsn_def *)): New.
30981         (extern debug_verbose (vinsn_def &)): New.
30982         (extern debug_verbose (vinsn_def *)): New.
30983         (extern debug (expr_def &)): New.
30984         (extern debug (expr_def *)): New.
30985         (extern debug_verbose (expr_def &)): New.
30986         (extern debug_verbose (expr_def *)): New.
30987         (extern debug (vec<rtx> &)): New.
30988         (extern debug (vec<rtx> *)): New.
30989         * sel-sched-ir.h
30990         (_list_iter_cond_expr): Make inline instead of static.
30991         * sreal.c
30992         (debug (sreal &)): New.
30993         (debug (sreal *)): New.
30994         * sreal.h
30995         (extern debug (sreal &)): New.
30996         (extern debug (sreal *)): New.
30997         * tree.h
30998         (extern debug_raw (const tree_node &)): New.
30999         (extern debug_raw (const tree_node *)): New.
31000         (extern debug (const tree_node &)): New.
31001         (extern debug (const tree_node *)): New.
31002         (extern debug_verbose (const tree_node &)): New.
31003         (extern debug_verbose (const tree_node *)): New.
31004         (extern debug_head (const tree_node &)): New.
31005         (extern debug_head (const tree_node *)): New.
31006         (extern debug_body (const tree_node &)): New.
31007         (extern debug_body (const tree_node *)): New.
31008         (extern debug (vec<tree, va_gc> &)): New.
31009         (extern debug (vec<tree, va_gc> *)): New.
31010         * tree-cfg.c
31011         (debug (struct loop &)): New.
31012         (debug (struct loop *)): New.
31013         (debug_verbose (struct loop &)): New.
31014         (debug_verbose (struct loop *)): New.
31015         * tree-dump.c: Add header dependence.
31016         * tree-flow.h
31017         (extern debug (struct loop &)): New.
31018         (extern debug (struct loop *)): New.
31019         (extern debug_verbose (struct loop &)): New.
31020         (extern debug_verbose (struct loop *)): New.
31021         * tree-data-ref.c
31022         (debug (data_reference &)): New.
31023         (debug (data_reference *)): New.
31024         (debug (vec<data_reference_p> &)): New.
31025         (debug (vec<data_reference_p> *)): New.
31026         (debug (vec<ddr_p> &)): New.
31027         (debug (vec<ddr_p> *)): New.
31028         * tree-data-ref.h
31029         (extern debug (data_reference &)): New.
31030         (extern debug (data_reference *)): New.
31031         (extern debug (vec<data_reference_p> &)): New.
31032         (extern debug (vec<data_reference_p> *)): New.
31033         (extern debug (vec<ddr_p> &)): New.
31034         (extern debug (vec<ddr_p> *)): New.
31035         * tree-ssa-alias.c
31036         (debug (pt_solution &)): New.
31037         (debug (pt_solution *)): New.
31038         * tree-ssa-alias.h
31039         (extern debug (pt_solution &)): New.
31040         (extern debug (pt_solution *)): New.
31041         * tree-ssa-alias.c
31042         (debug (_var_map &)): New.
31043         (debug (_var_map *)): New.
31044         (debug (tree_live_info_d &)): New.
31045         (debug (tree_live_info_d *)): New.
31046         * tree-ssa-alias.h
31047         (extern debug (_var_map &)): New.
31048         (extern debug (_var_map *)): New.
31049         (extern debug (tree_live_info_d &)): New.
31050         (extern debug (tree_live_info_d *)): New.
31052 2013-03-28  Jan Hubicka  <jh@suse.cz>
31054         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31056 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
31058         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31059         record only when desired or required.
31061 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
31063         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31064         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
31066 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31068         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31069         (*andsi3_compare0_uxtw): New pattern.
31070         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31071         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31073 2013-03-28  Jan Hubicka  <jh@suse.cz>
31075         * data-streamer-in.c (streamer_read_gcov_count): New function.
31076         * gimple-streamer-out.c: Include value-prof.h.
31077         (output_gimple_stmt): Output histogram.
31078         (output_bb): Use streamer_write_gcov_count.
31079         * value-prof.c: Include data-streamer.h
31080         (dump_histogram_value): Add HIST_TYPE_MAX.
31081         (stream_out_histogram_value): New function.
31082         (stream_in_histogram_value): New function.
31083         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31084         (stream_out_histogram_value, stream_in_histogram_value): Declare.
31085         * data-streamer-out.c (streamer_write_gcov_count): New function.
31086         (streamer_write_gcov_count_stream): New function.
31087         * lto-cgraph.c (lto_output_edge): Update counter streaming.
31088         (lto_output_node): Likewise.
31089         (input_node, input_edge): Likewise.
31090         * lto-streamer-out.c (output_cfg): Update streaming.
31091         * lto-streamer-in.c (input_cfg): Likewise.
31092         * data-streamer.h (streamer_write_gcov_count,
31093         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31094         * gimple-streamer-in.c: Include value-prof.h
31095         (input_gimple_stmt): Input histograms.
31096         (input_bb): Update profile streaming.
31098 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31100         * genmodes.c (emit_max_int): New function.
31101         (emit_insn_modes_h): Added call to emit_max_function.
31102         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31103         Added doc.
31104         * machmode.def: Fixed comment.
31106 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31108         * combine.c (try_combine): Removed useless assert.
31109         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31111 2013-03-28  Marek Polacek  <polacek@redhat.com>
31112             Richard Biener  <rguenther@suse.de>
31114         PR tree-optimization/56695
31115         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31116         build signed result of a vector comparison.
31117         * tree-cfg.c (verify_gimple_comparison): Check that a result
31118         of a vector comparison has signed type.
31120 2013-03-28  Richard Biener  <rguenther@suse.de>
31122         PR tree-optimization/37021
31123         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31124         do not restrict gaps between groups.
31125         * tree-vect-stmts.c (vectorizable_load): Properly account for
31126         a gap between groups.
31128 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
31130         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31131         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31132         is not enabled.
31134 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
31136         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31137         * doc/extend.texi (Named Address Spaces): Ditto.
31138         (Variable Attributes): Ditto.
31140 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31142         * config.build: Add support for cygwin x64 target.
31143         * config.gcc: Likewise.
31144         * config.host: Likewise.
31145         * configure.ac: Likewise
31146         * configure: Regenerated.
31148 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31150         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31151         * config/i386/t-cygwin-w64: New file.
31152         * config/i386/cygwin-w64.h: New file.
31153         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31154         and add support for x64-cygwin target.
31155         (CPP_SPEC): Likewise.
31156         (CXX_WRAP_SPEC_LIST): Undefine before define.
31157         (LIBGCJ_SONAME): Use 15 as version.
31159 2013-03-27  Richard Biener  <rguenther@suse.de>
31161         PR tree-optimization/56716
31162         * tree-ssa-structalias.c (perform_var_substitution): Adjust
31163         dumping for ref nodes.
31165 2013-03-27  Martin Jambor  <mjambor@suse.cz>
31167         PR tree-optimization/55334
31168         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31169         restricted pointers to arrays.
31171 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
31173         * Makefile.in (.SUFFIXES): Add .cc.
31174         (.c.o): Apply same recipe for implicit rule .cc.o.
31176 2013-03-27  Richard Biener  <rguenther@suse.de>
31178         PR tree-optimization/37021
31179         * tree-vect-data-refs.c (vect_check_strided_load): Allow
31180         REALPART/IMAGPART_EXPRs around the supported refs.
31181         * tree-ssa-structalias.c (find_func_aliases): Assume that
31182         floating-point values are not used to transfer pointers.
31184 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
31186         * target.def (TARGET_HAS_IFUNC_P): New target hook.
31187         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31188         * doc/tm.texi: Regenerate.
31189         * targhooks.h (default_has_ifunc_p): New.
31190         * targhooks.c (default_has_ifunc_p): Ditto.
31191         * config/linux-protos.h: New file.
31192         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31193         hook for linux which disables support of indirect functions in android.
31194         * config/linux-android.c: New file.
31195         * config/t-linux-android.c: Ditto.
31196         * config.gcc: Added new object file linux-android.o.
31197         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31198         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31199         * varasm.c (do_assemble_alias): Likewise.
31200         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31201         doesn't support indirect functions.
31202         * configure: Regenerate.
31204 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
31206         PR target/56102
31207         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31208         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31209         mult-word mode.
31211 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31213         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31215 2013-03-27  Terry Guo  <terry.guo@arm.com>
31217         * config/arm/arm-cores.def: Added core cortex-r7.
31218         * config/arm/arm-tune.md: Regenerated.
31219         * config/arm/arm-tables.opt: Regenerated.
31220         * doc/invoke.texi: Added entry for core cortex-r7.
31222 2013-03-27  Walter Lee  <walt@tilera.com>
31224         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31225         double-decrement of next_scratch_regno.
31227 2013-03-27  Walter Lee  <walt@tilera.com>
31229         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31230         input operands.
31231         (insn_v1mulus): Ditto.
31232         (insn_v2muls): Ditto.
31234 2013-03-27  Walter Lee  <walt@tilera.com>
31236         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31237         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31239 2013-03-27  Walter Lee  <walt@tilera.com>
31241         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31242         (*sibcall_value): Ditto.
31244 2013-03-27  Walter Lee  <walt@tilera.com>
31246         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31247         (insn_mnz_v8qi): ... this ...
31248         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
31249         vector equivalent.
31250         (insn_v<n>mnz): Replaced by ...
31251         (insn_v1mnz): ... this ...
31252         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
31253         equivalent.
31254         (insn_mz_<mode>): Replaced by ...
31255         (insn_mz_v8qi): ... this ...
31256         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
31257         vector equivalent.
31258         (insn_v<n>mz): Replaced by ...
31259         (insn_v1mz): ... this ...
31260         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
31261         equivalent.
31263 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
31265         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31267 2013-03-26  Roland McGrath  <mcgrathr@google.com>
31269         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31270         than fprintf with a non-constant, non-format string.
31272 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31274         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31275         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
31276         operand 0 predicate.
31277         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31278         attribute.  Use general_x64nomem_operand as operand 1 predicate.
31279         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31280         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31281         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31282         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31283         (mov<mode>_insv_1): Remove expander.  Merge insn with
31284         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31285         Use general_x64nomem_operand as operand 1 predicate.
31286         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31287         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31288         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31289         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31290         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
31291         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31292         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31293         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31294         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
31295         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31296         (general_x64nomem_operand): Ditto.
31298 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31300         * config/rtems.opt: Add -pthread option.
31302 2013-03-26  Richard Biener  <rguenther@suse.de>
31304         * alias.c (find_base_term): Avoid redundant and not used recursion.
31305         (base_alias_check): Get the initial base term from the caller.
31306         (true_dependence_1): Compute and pass base terms to base_alias_check.
31307         (write_dependence_p): Likewise.
31308         (may_alias_p): Likewise.
31310 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
31312         * config/aarch64/aarch64.c (aarch64_classify_address): Support
31313         PC-relative load in SI modes and above only.
31315 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
31317         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31318         * config/arm/iwmmxt.md (WCGR0): Update.
31319         (WCGR1, WCGR2, WCGR3): Likewise.
31321 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31323         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31324         Use x64 and nox64 isa attributes.
31326 2013-03-26  Richard Biener  <rguenther@suse.de>
31328         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31329         alignment computations and rely on get_object_alignment_1
31330         for the !TYPE_P case.
31331         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31333 2013-03-26  Walter Lee  <walt@tilera.com>
31335         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31336         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31338 2013-03-25  Jeff Law  <law@redhat.com>
31340         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31341         check for INTEGRAL_TYPE_P that was missing due to checking in
31342         wrong version of prior patch.
31344 2013-03-25  Walter Lee  <walt@tilera.com>
31346         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31347         TILEGX_INSN_SHUFFLEBYTES1.
31348         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31349         shufflebytes1.
31350         (tilegx_builtins): Ditto.
31351         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31353 2013-03-25  Walter Lee  <walt@tilera.com>
31355         * config/tilegx/tilegx.md (floatsisf2): New pattern.
31356         (floatunssisf2): New pattern.
31357         (floatsidf2): New pattern.
31358         (floatunssidf2): New pattern.
31360 2013-03-25  Walter Lee  <walt@tilera.com>
31362         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31363         tests for constraint J, K, N, P.
31365 2013-03-25  Walter Lee  <walt@tilera.com>
31367         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31368         Use indirect/pcrel encoding.
31369         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31370         Ditto.
31372 2013-03-25  Steve Ellcey  <sellcey@mips.com>
31374         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31375         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31376         * config/mips/mips.c (mips_option_override): Set IMADD default.
31377         * config/mips/mips.h (PTF_AVOID_IMADD): New.
31378         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31379         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31380         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31381         * doc/invoke.texi (-mimadd/-mno-imadd): New.
31383 2013-03-25  Jeff Law  <law@redhat.com>
31385         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31386         slightly to avoid creating and folding useless trees.  Simplify
31387         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31389 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
31391         * config/i386/i386.md (*zero_extendsidi2): Merge with
31392         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
31393         * config/i386/predicates.md (x86_64_zext_operand): Rename from
31394         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
31395         targets.  Clarify comment.
31397 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31399         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31400         pass-through jump functions differently.
31401         (ipa_read_jump_function): Likewise.  Also use setter functions to set
31402         up jump functions.
31404 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31406         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31407         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31408         process it.
31409         (ipa_get_indirect_edge_target): New function.
31410         (devirtualization_time_bonus): New parameter known_aggs, pass it to
31411         ipa_get_indirect_edge_target.  Update all callers.
31412         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
31413         ipa_get_indirect_edge_target_1 instead of calling
31414         ipa_get_indirect_edge_target.
31415         (create_specialized_node): Pass aggvlas to
31416         ipcp_discover_new_direct_edges.
31418 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31420         * config/arm/arm.md (f_sels, f_seld): New types.
31421         (*cmov<mode>): New pattern.
31422         * config/arm/predicates.md (arm_vsel_comparison_operator): New
31423         predicate.
31425 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31427         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31428         POSIX-printf for mingw-hosted  builds.
31430 2013-03-25  Richard Biener  <rguenther@suse.de>
31432         PR middle-end/56694
31433         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31434         must-not-throw stmt location.
31436 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31438         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31439         Emit load-acquire versions when acq is true.
31440         (arm_emit_store_exclusive): Add rel parameter.
31441         Emit store-release versions when rel is true.
31442         (arm_split_compare_and_swap): Use acquire-release instructions
31443         instead.
31444         of barriers when appropriate.
31445         (arm_split_atomic_op): Likewise.
31446         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31447         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31448         (VUNSPEC_SLX): Likewise.
31449         (VUNSPEC_LDA): Likewise.
31450         (VUNSPEC_STL): Likewise.
31451         * config/arm/sync.md (atomic_load<mode>): New pattern.
31452         (atomic_store<mode>): Likewise.
31453         (arm_load_acquire_exclusive<mode>): Likewise.
31454         (arm_load_acquire_exclusivesi): Likewise.
31455         (arm_load_acquire_exclusivedi): Likewise.
31456         (arm_store_release_exclusive<mode>): Likewise.
31458 2013-03-25  Catherine Moore  <clm@codesourcery.com>
31460         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31461         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31462         * config/mip/predicates.md (lwsp_swsp_operand,
31463         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31464         sb16_operand, db4_operand, db7_operand, ib3_operand,
31465         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31466         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31467         andi16_operand): New predicates.
31468         * config/mips/mips.md (compression): New attribute.
31469         (enabled): New attribute.
31470         (length): Consider compression in computing length.
31471         (shift_compression): New code attribute.
31472         (*add<mode>3): New operands. Record compression.
31473         (sub<mode>3): Likewise.
31474         (one_cmpl<mode>2): Likewise.
31475         (*and<mode>3): Likewise.
31476         (*ior<mode>3): Likewise.
31477         (unnamed pattern for xor): Likewise.
31478         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31479         (*<optab><mode>3): Likewise.
31480         (*mov<mode>_internal: Likewise.
31481         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31482         (mips_unsigned_immediate_p): New.
31483         (umips_lwsp_swsp_address_p): New.
31484         (m16_based_address_p): New.
31485         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31486         (mips_unsigned_immediate_p): New prototype.
31487         (lwsp_swsp_address_p): New prototype.
31488         (m16_based_address_p): New prototype.
31489         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31490         (mips_signed_immediate_p): New function.
31491         (m16_based_address_p): New function.
31492         (lwsp_swsp_address_p): New function.
31493         (mips_print_operand_punctuation): Recognize short delay slot insns
31494         for microMIPS.add<mode>3"
31496 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31498         PR target/56720
31499         * config/arm/iterators.md (v_cmp_result): New mode attribute.
31500         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31502 2013-03-25  Richard Biener  <rguenther@suse.de>
31504         PR tree-optimization/56689
31505         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31506         any edge.
31508 2013-03-25  Richard Biener  <rguenther@suse.de>
31510         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31511         of bitmap.
31512         (memory_references): Likewise.
31513         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31514         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31515         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31516         (gather_mem_refs_in_loops): Fold into ...
31517         (analyze_memory_references): ... this.  Move initialization
31518         to tree_ssa_lim_initialize.
31519         (fill_always_executed_in): Rename to ...
31520         (fill_always_executed_in_1): ... this.
31521         (fill_always_executed_in): Move contains_call computation to
31522         this new function from ...
31523         (tree_ssa_lim_initialize): ... here.
31524         (tree_ssa_lim): Call fill_always_executed_in.
31526 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31528         * postreload.c (reload_combine): Fix code detecting returns.
31530 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31532         * function.c (emit_use_return_register_into_block): On cc0 targets,
31533         do not emit the sequence between cc0 setter and user.
31535 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31537         * config/i386/predicates.md (local_symbolic_operand): Interpret
31538         dll-imported symbols as none-local.
31540 2013-03-25  Richard Biener  <rguenther@suse.de>
31542         * tree-ssa-loop-im.c (struct depend): Remove.
31543         (struct lim_aux_data): Make depends a vec of gimples.
31544         (free_lim_aux_data): Adjust.
31545         (add_dependency): Likewise.
31546         (set_level): Likewise.
31548 2013-03-25  Richard Biener  <rguenther@suse.de>
31550         PR middle-end/56434
31551         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31552         the pointer returned by calls with ECF_MALLOC set.
31554 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31556         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31558 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31560         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31561         using MMXMODE mode iterator.
31562         (*move<mode>_internal): Merge with *movv2sf_internal and
31563         *movv2sf_internal_rex64 using MMXMODE mode iterator.
31565 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31567         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31568         (record_last_mem_set_info): Likewise.
31570         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31571         of XNEWVEC followed by memset.
31572         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31574 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31576         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31577         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31578         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31579         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31580         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31581         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31582         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31583         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31584         BARRIER_P instead of GET_CODE.
31586 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31588         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31589         inaccuracy in the probing code.
31591         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31592         (ctrapdi4): Likewise.
31594 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31596         * calls.c (expand_call): Add missing guard to code handling return
31597         of non-BLKmode structures in MSB.
31598         * function.c (expand_function_end): Likewise.
31600 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31602         * combine.c (try_combine): Adjust comment.  Do not add the set of
31603         insn #0 if the destination indirectly is set or dies in insn #2.
31604         Tidy up code to distribute a new note.
31606 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31608         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31609         also for alternatives 16 and 17.
31611 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31613         * config/i386/sse.md (*mov<mode>_internal): Merge with
31614         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
31615         Emit insn template depending on type attribute.  Use
31616         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31617         movd instead of movq mnemonic for interunit moves.  Rewrite mode
31618         attribute calculation.  Remove unit attribute calculation.
31619         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31620         Set prefix_data16 attribute for DImode ssemov types.
31621         Use Ym instead of y for SSE-MMX conversion alternatives.
31622         Reorder operand constraints.
31624 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
31626         * df.h (df_insn_delete): Adjust prototype.
31627         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31628         and let it decide whether mark the basic block dirty.
31629         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31630         * df-scan.c (df_insn_info_delete): New helper function, split
31631         off from df_insn_delete.
31632         (df_scan_free_bb_info): Use it.
31633         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31634         Likewise.
31635         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
31636         that the insn is actually an insn and it has a non-NULL basic block.
31637         Do not mark basic block dirty if only deleting a DEBUG_INSN.
31639 2013-03-22  Richard Biener  <rguenther@suse.de>
31641         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31642         dep_ref members.
31643         (mem_ref_alloc): Do not allocate them.
31644         (refs_independent_p): Do not query or maintain a cache.
31646 2013-03-22  Richard Biener  <rguenther@suse.de>
31648         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31649         (gather_mem_refs_in_loops): Do not compute it.
31650         (analyze_memory_references): Do not allocate it.
31651         (tree_ssa_lim_finalize): Do not free it.
31652         (for_all_locs_in_loop): Do not query all_refs_in_loop.
31654 2013-03-22  Richard Biener  <rguenther@suse.de>
31656         * is-a.h (as_a): Use gcc_checking_assert.
31658 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
31660         * config/aarch64/aarch64.c (aarch64_print_operand): New
31661         format specifier for printing a constant in hex.
31662         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31663         format specifier for printing second operand.
31665 2013-03-22  Richard Biener  <rguenther@suse.de>
31667         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31668         bitmaps.
31669         (gather_mem_refs_in_loops): Perform store accumulation here.
31670         (create_vop_ref_mapping_loop): Remove.
31671         (create_vop_ref_mapping): Likewise.
31672         (analyze_memory_references): Initialize refs_stored_in_loop.
31673         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31674         (record_indep_loop): Remove.
31675         (record_dep_loop): New function.
31676         (ref_indep_loop_p_1): Adjust to only walk over references
31677         in the loop, not its subloops.
31678         (ref_indep_loop_p): Rename to ...
31679         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31680         maintaining a more fine-grained cache.
31681         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31682         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31684 2013-03-22  Richard Biener  <rguenther@suse.de>
31686         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31687         (struct mem_ref): Make accesses_in_loop a vec of a vec of
31688         aggregate mem_ref_loc.
31689         (free_mem_ref_locs): Inline into ...
31690         (memref_free): ... this and adjust.
31691         (mem_ref_alloc): Adjust.
31692         (mem_ref_locs_alloc): Remove.
31693         (record_mem_ref_loc): Adjust.
31694         (get_all_locs_in_loop): Rewrite into ...
31695         (for_all_locs_in_loop): ... this iterator.
31696         (rewrite_mem_ref_loc): New functor.
31697         (rewrite_mem_refs): Use for_all_locs_in_loop.
31698         (sm_set_flag_if_changed): New functor.
31699         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31700         (ref_always_accessed): New functor.
31701         (ref_always_accessed_p): Use for_all_locs_in_loop.
31703 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31705         * tree-pass.h (PROP_gimple_lvec): New.
31706         * passes.c (dump_properties): Handle PROP_gimple_lvec.
31707         (init_optimization_passes): Move pass_lower_vector.
31708         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31709         PROP_gimple_lvec.
31710         (pass_lower_vector): Provide PROP_gimple_lvec.
31711         (pass_lower_vector_ssa): Likewise.
31712         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31714 2013-03-21  Mark Wielaard  <mjw@redhat.com>
31716         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31718 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31720         * config/i386/i386.md (*movdi_internal): Disparage slightly
31721         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
31722         conversion alternatives.
31724 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
31726         PR middle-end/48087
31727         * diagnostic.def (DK_WERROR): New kind.
31728         * diagnostic.h (werrorcount): Define.
31729         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31730         promoted to DK_ERROR, increment DK_WERROR counter instead of
31731         DK_ERROR counter.
31732         * toplev.c (toplev_main): Call print_ignored_options even if
31733         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
31734         even if just werrorcount is non-zero.
31736         PR debug/55608
31737         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31738         on failure.
31739         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31740         (string_cst_pool_decl): New function.
31741         (optimize_one_addr_into_implicit_ptr): New function.
31742         (resolve_addr_in_expr): Optimize DWARF location expression
31743         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31744         which doesn't live in memory, but has DW_AT_location or
31745         DW_AT_const_value, or refers to a string literal, into
31746         DW_OP_GNU_implicit_pointer.
31747         (optimize_location_into_implicit_ptr): New function.
31748         (resolve_addr): If removing DW_AT_location of a variable because
31749         it was DW_OP_addr of address of the variable, but the variable doesn't
31750         live in memory, try to emit const value attribute for the initializer.
31752 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31754         * tree.h (VECTOR_TYPE_P): New macro.
31755         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31756         TYPE_MODE): Use it.
31757         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31758         VEC_COND_EXPR cannot be lvalues.
31759         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31761 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31763         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31764         Restrict the transformation to equal modes.
31766 2013-03-21  Richard Biener  <rguenther@suse.de>
31768         PR tree-optimization/39326
31769         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31770         (MEM_ANALYZABLE): Adjust.
31771         (record_mem_ref_loc): Move bitmap ops ...
31772         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
31773         unanalyzable refs, do not record locations for it.
31774         (analyze_memory_references): Allocate ref zero as shared
31775         unanalyzable ref.
31776         (refs_independent_p): Do not test for unanalyzed mems here.
31777         (ref_indep_loop_p_1): Special-case disambiguation against
31778         the unanalyzed ref.
31779         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
31781 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
31783         * config/arm/arm-protos.h (tune_params): Add
31784         prefer_neon_for_64bits field.
31785         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
31786         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
31787         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31788         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31789         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
31790         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31791         (arm_option_override): Handle -mneon-for-64bits new option.
31792         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
31793         (prefer_neon_for_64bits): Declare new variable.
31794         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
31795         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
31796         (arch_enabled): Handle new arch types. Remove support for onlya8
31797         and nota8.
31798         (one_cmpldi2): Use new arch names.
31799         (zero_extend<mode>di2, extend<mode>di2): Ditto.
31800         * config/arm/arm.opt (mneon-for-64bits): Add option.
31801         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
31802         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
31803         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
31804         of onlya8.
31805         * doc/invoke.texi (-mneon-for-64bits): Document.
31807 2013-03-21  Richard Biener  <rguenther@suse.de>
31809         PR tree-optimization/39326
31810         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
31811         (sort_bbs_in_loop_postorder_cmp): New function.
31812         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
31814 2013-03-21  Richard Biener  <rguenther@suse.de>
31816         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
31817         (vect_insert_into_interleaving_chain): Likewise.
31818         (vect_drs_dependent_in_basic_block): Inline ...
31819         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
31820         split out from ...
31821         (vect_analyze_data_ref_dependence): ... here.  Simplify.
31822         (vect_check_interleaving): Simplify.
31823         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
31824         (vect_slp_analyze_data_ref_dependences): ... this new function.
31825         (dr_group_sort_cmp): New function.
31826         (vect_analyze_data_ref_accesses): Compute data-reference groups
31827         here instead of in vect_analyze_data_ref_dependence.  Use
31828         a more efficient algorithm.
31829         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
31830         vect_slp_analyze_data_ref_dependences.  Call
31831         vect_analyze_data_ref_accesses earlier.
31832         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
31833         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
31834         (vect_slp_analyze_data_ref_dependences): New prototype.
31836 2013-03-21  Richard Biener  <rguenther@suse.de>
31838         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
31839         ref is stored in the loop.
31840         (find_refs_for_sm): Walk only over all stores.
31841         (store_motion_loop): Allocate from lim_bitmap_obstack.
31842         (store_motion): Likewise.
31844 2013-03-21  Richard Biener  <rguenther@suse.de>
31846         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
31847         Update virtual SSA form.
31849 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31851         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
31852         * configure: Regenerate.
31853         * config.in: Regenerate.
31854         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
31855         if !HAVE_LD_EH_FRAME_CIEV3.
31857 2013-03-21  Richard Biener  <rguenther@suse.de>
31859         * tree-cfg.c (verify_expr_no_block): New function.
31860         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
31861         nor DECL_VALUE_EXPR have locations with associated blocks.
31862         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
31863         (clear_unused_block_pointer): Remove code dealing with
31864         blocks in DECL_DEBUG_EXPR locations.
31866 2013-03-21  Richard Biener  <rguenther@suse.de>
31868         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
31869         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
31870         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
31871         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
31872         instead of DECL_DEBUG_EXPR_IS_FROM.
31873         * gimplify.c (gimplify_modify_expr): Likewise.
31874         * tree-cfg.c (verify_expr_location_1): Likewise.
31875         * tree-complex.c (create_one_component_var): Likewise.
31876         * tree-sra.c (create_access_replacement): Likewise.
31877         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
31878         (clear_unused_block_pointer): Likewise.
31879         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
31880         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
31881         * var-tracking.c (var_debug_decl): Likewise.
31882         (track_expr_p): Likewise.
31883         * tree-inline.c (add_local_variables): Likewise.  Set
31884         DECL_HAS_DEBUG_EXPR_P after copying it.
31885         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
31886         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
31888 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31890         PR bootstrap/56656
31891         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
31892         * configure: Regenerate.
31893         * config.in: Regenerate.
31894         * config/i386/i386.md (*movdf_internal): Use
31895         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31896         movd instead of movq mnemonic for interunit moves.
31897         (*movdi_internal): Ditto.
31899 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31901         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
31902         (abd<mode>_3): New pattern.
31903         (aba<mode>_3): New pattern.
31904         (fabd<mode>_3): New pattern.
31906 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31908         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
31909         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
31910         occurrence of REGISTER_PREFIX as its empty string.
31912 2013-03-20  Jeff Law  <law@redhat.com>
31914         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
31915         addititional equivalences for equality comparisons between an SSA_NAME
31916         and a constant where the SSA_NAME was set from a widening conversion.
31918 2013-03-20  Walter Lee  <walt@tilera.com>
31920         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
31922 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31924         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
31925         depending on type attribute.
31926         (*movti_internal): Ditto.
31927         (*movtf_internal): Ditto.
31928         (*movxf_internal): Ditto.
31929         (*movdf_internal): Ditto.
31930         (*movsf_internal): Ditto.
31932 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31934         * config/i386/i386.md (*movti_internal): Set prefix attribute to
31935         maybe_vex for sselog1 and ssemov types.
31936         (*movdi_internal): Reorder operand constraints.
31937         (*movsi_internal): Ditto.  Set prefix attribute to
31938         maybe_vex for sselog1 and ssemov types.
31939         (*movtf_internal): Set prefix attribute to maybe_vex
31940         for sselog1 and ssemov types.
31941         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
31942         DImode ssemov types.  Reorder operand constraints.
31943         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
31944         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
31945         attribute for SImode ssemov types.  Reorder operand constraints.
31947 2013-03-20  Martin Jambor  <mjambor@suse.cz>
31949         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
31950         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
31952 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
31954         * config/rs6000/predicates.md (indexed_address, update_address_mem
31955         update_indexed_address_mem): New predicates.
31956         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
31957         attribute for load/store instructions.
31958         * config/rs6000/dfp.md (movsd_store): Likewise.
31959         (movsd_load): Likewise.
31960         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
31961         (unnamed HI->DI extend define_insn): Likewise.
31962         (unnamed SI->DI extend define_insn): Likewise.
31963         (unnamed QI->SI extend define_insn): Likewise.
31964         (unnamed QI->HI extend define_insn): Likewise.
31965         (unnamed HI->SI extend define_insn): Likewise.
31966         (unnamed HI->SI extend define_insn): Likewise.
31967         (extendsfdf2_fpr): Likewise.
31968         (movsi_internal1): Likewise.
31969         (movsi_internal1_single): Likewise.
31970         (movhi_internal): Likewise.
31971         (movqi_internal): Likewise.
31972         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
31973         attribute for load/store instructions.
31974         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
31975         instructions.
31976         (mov<mode>_softfloat): Likewise.
31977         (mov<mode>_hardfloat32): Likewise.
31978         (mov<mode>_hardfloat64): Likewise.
31979         (mov<mode>_softfloat64): Likewise.
31980         (movdi_internal32): Likewise.
31981         (movdi_internal64): Likewise.
31982         (probe_stack_<mode>): Likewise.
31984 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
31986         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
31987         floating point, and decimal floating point to reload iterator.
31989         * config/rs6000/constraints.md (wl constraint): New constraints to
31990         return FLOAT_REGS if certain options are used to reduce the number
31991         of separate patterns that exist in the file.
31992         (wx constraint): Likewise.
31993         (wz constraint): Likewise.
31995         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31996         -mdebug=reg, print wg, wl, wx, and wz constraints.
31997         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31998         Initialize the reload functions for 64-bit binary/decimal floating
31999         point types.
32000         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32001         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32002         create the buffer on the stack to overcome not having a 32-bit
32003         load and store.
32004         (rs6000_emit_move): Likewise.
32005         (rs6000_secondary_memory_needed_rtx): Likewise.
32006         (rs6000_alloc_sdmode_stack_slot): Likewise.
32007         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32008         via xxlxor, just like DFmode 0.0.
32010         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32011         define as 1 if we are running on a power7 or newer.
32012         (enum r6000_reg_class_enum): Add new constraints.
32014         * config/rs6000/dfp.md (movsd): Delete, combine with binary
32015         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
32016         with other moves by using conditional constraits (wg).  Use LFIWZX
32017         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
32018         (movsd splitter): Likewise.
32019         (movsd_hardfloat): Likewise.
32020         (movsd_softfloat): Likewise.
32022         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32023         binary and decimal floating point moves.
32024         (fmove_ok): New attributes to combine binary and decimal floating
32025         point moves, and to combine power6x (mfpgpr) moves along normal
32026         floating moves.
32027         (real_value_to_target): Likewise.
32028         (f32_lr): Likewise.
32029         (f32_lm): Likewise.
32030         (f32_li): Likewise.
32031         (f32_sr): Likewise.
32032         (f32_sm): Likewise.
32033         (f32_si): Likewise.
32034         (movsf): Combine binary and decimal floating point moves.  Combine
32035         power6x (mfpgpr) moves with other moves by using conditional
32036         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
32037         (mov<mode> for SFmode/SDmode); Likewise.
32038         (SFmode/SDmode splitters): Likewise.
32039         (movsf_hardfloat): Likewise.
32040         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32041         (movsf_softfloat): Likewise.
32042         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32044         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32045         wx and wz constraints.
32047         * config/rs6000/constraints.md (wg constraint): New constraint to
32048         return FLOAT_REGS if -mmfpgpr (power6x) was used.
32050         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32051         constraint.
32053         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32054         -mdebug=reg, print wg, wl, wx, and wz constraints.
32055         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32056         Initialize the reload functions for 64-bit binary/decimal floating
32057         point types.
32058         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32059         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32060         create the buffer on the stack to overcome not having a 32-bit
32061         load and store.
32062         (rs6000_emit_move): Likewise.
32063         (rs6000_secondary_memory_needed_rtx): Likewise.
32064         (rs6000_alloc_sdmode_stack_slot): Likewise.
32065         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32066         via xxlxor, just like DFmode 0.0.
32068         * config/rs6000/dfp.md (movdd): Delete, combine with binary
32069         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
32070         with other moves by using conditional constraits (wg).  Use LFIWZX
32071         and STFIWX for loading SDmode on power7.
32072         (movdd splitters): Likewise.
32073         (movdd_hardfloat32): Likewise.
32074         (movdd_softfloat32): Likewise.
32075         (movdd_hardfloat64_mfpgpr): Likewise.
32076         (movdd_hardfloat64): Likewise.
32077         (movdd_softfloat64): Likewise.
32079         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32080         64-bit binary and decimal floating point moves.
32081         (FMOVE64X): Likewise.
32082         (movdf): Combine 64-bit binary and decimal floating point moves.
32083         Combine power6x (mfpgpr) moves with other moves by using
32084         conditional constraits (wg).
32085         (mov<mode> for DFmode/DDmode): Likewise.
32086         (DFmode/DDmode splitters): Likewise.
32087         (movdf_hardfloat32): Likewise.
32088         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32089         (movdf_softfloat32): Likewise.
32090         (movdf_hardfloat64_mfpgpr): Likewise.
32091         (movdf_hardfloat64): Likewise.
32092         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32093         (movdf_softfloat64): Likewise.
32094         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32095         (reload_<mode>_load): Move to later in the file so they aren't in
32096         the middle of the floating point move insns.
32097         (reload_<mode>_store): Likewise.
32099         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32100         constraint.
32102         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32103         constraint if -mdebug=reg.
32104         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32105         Enable using dd reload support if needed.
32107         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32108         binary and decimal floating point moves in rs6000.md.
32109         (movtd_internal): Likewise.
32111         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32112         decimal floating point moves.
32113         (movtf): Likewise.
32114         (movtf_internal): Likewise.
32115         (mov<mode>_internal, TDmode/TFmode): Likewise.
32116         (movtf_softfloat): Likewise.
32117         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32119         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32120         movdi_internal64, using wg constraint for move direct operations.
32121         (movdi_internal64): Likewise.
32123         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32124         MODES_TIEABLE_P for selected modes.  Print the numerical value of
32125         the various virtual registers. Use GPR/FPR first/last values,
32126         instead of hard coding the register numbers.  Print which modes
32127         have reload functions registered.
32128         (rs6000_option_override_internal): If -mdebug=reg, trace the options
32129         settings before/after setting cpu, target and subtarget settings.
32130         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32131         and for secondary reload failures in rs6000_secondary_reload_inner.
32132         (rs6000_secondary_reload_fail): Likewise.
32133         (rs6000_secondary_reload_inner): Likewise.
32135         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32136         macros for first/last GPR and FPR registers.
32137         (LAST_GPR_REGNO): Likewise.
32138         (FIRST_FPR_REGNO): Likewise.
32139         (LAST_FPR_REGNO): Likewise.
32141         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32142         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32143         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32144         (vcond<mode><mode>): Likewise.
32145         (vcondu<mode><mode>): Likewise.
32146         (vector_gtu<mode>): Likewise.
32147         (vector_gte<mode>): Likewise.
32148         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32149         to prevent the compiler from converting DImode operations to TImode.
32150         (ior<mode>3): Likewise.
32151         (and<mode>3): Likewise.
32152         (one_cmpl<mode>2): Likewise.
32153         (nor<mode>3): Likewise.
32154         (andc<mode>3): Likewise.
32156         * config/rs6000/constraints.md (wt constraint): New constraint
32157         that returns VSX_REGS if TImode is allowed in VSX registers.
32159         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32160         constant under VSX.
32162         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32163         similar to TImode, but it is restricted to being in the GPRs.
32165         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32166         TImode to occupy a single VSX register.
32168         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32169         -mvsx-timode for power7/power8.
32170         (power7 cpu): Likewise.
32171         (power8 cpu): Likewise.
32173         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32174         sure that TFmode/TDmode take up two registers if they are ever
32175         allowed in the upper VSX registers.
32176         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32177         registers.
32178         (rs6000_init_hard_regno_mode_ok): Likewise.
32179         (rs6000_debug_reg_global): Add debugging for PTImode and wt
32180         constraint.  Print if LRA is turned on.
32181         (rs6000_option_override_internal): Give an error if -mvsx-timode
32182         and VSX is not enabled.
32183         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
32184         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32185         to reg+offset addressing.  Use PTImode when checking offset
32186         addresses for validity.
32187         (reg_offset_addressing_ok_p): Likewise.
32188         (rs6000_legitimate_offset_address_p): Likewise.
32189         (rs6000_legitimize_address): Likewise.
32190         (rs6000_legitimize_reload_address): Likewise.
32191         (rs6000_legitimate_address_p): Likewise.
32192         (rs6000_eliminate_indexed_memrefs): Likewise.
32193         (rs6000_emit_move): Likewise.
32194         (rs6000_secondary_reload): Likewise.
32195         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
32196         reloads to fpr registers to continue to use reg+offset addressing,
32197         but 64-bit reloads to altivec registers need reg+reg addressing.
32198         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32199         it.  Treat LO_SUM like a PLUS operation.
32200         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32201         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32202         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32203         registers to share a register with a smaller sized type, since VSX
32204         puts scalars in the upper 64-bits.
32205         (print_operand): Add support for PTImode.
32206         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32207         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32208         registers, but don't have arithmetic support.
32209         (rs6000_memory_move_cost): Add test for VSX.
32210         (rs6000_opt_masks): Add -mvsx-timode.
32212         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32213         for TImode.
32214         (VSs): Likewise.
32215         (VSr): Use wt constraint for TImode.
32216         (VSv): Drop TImode support.
32217         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32218         (vsx_movti_64bit): Likewise.
32219         (vsx_movti_32bit): Likewise.
32220         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32221         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32222         one '?' on the appropriate output constraint.  Do not allow TImode
32223         logical operations on 32-bit systems.
32224         (vsx_ior<mode>3): Likewise.
32225         (vsx_xor<mode>3): Likewise.
32226         (vsx_one_cmpl<mode>2): Likewise.
32227         (vsx_nor<mode>3): Likewise.
32228         (vsx_andc<mode>3): Likewise.
32229         (vsx_concat_<mode>): Likewise.
32230         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32232         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32233         OPTION_MASK_VSX_TIMODE.
32234         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32235         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32237         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32238         (TI2 iterator): New iterator for TImode, PTImode.
32239         (wd mode attribute): Add values for vector types.
32240         (movti_string): Replace TI move operations with operations for TImode
32241         and PTImode.  Add support for TImode being allowed in VSX registers.
32242         (mov<mode>_string, TImode/PTImode): Likewise.
32243         (movti_ppc64): Likewise.
32244         (mov<mode>_ppc64, TImode/PTImode): Likewise.
32245         (TI mode splitters): Likewise.
32247         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32248         constraint.
32250 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
32252         PR tree-optimization/56355
32253         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32254         Also handle integers with undefined overflow.
32256 2013-03-20  Catherine Moore  <clm@codesourcery.com>
32257             Maciej W. Rozycki  <macro@codesourcery.com>
32258             Tom de Vries  <tom@codesourcery.com>
32259             Nathan Sidwell  <nathan@codesourcery.com>
32260             Iain Sandoe  <iain@codesourcery.com>
32261             Nathan Froyd  <froydnj@codesourcery.com>
32262             Chao-ying Fu  <fu@mips.com>
32264         * doc/extend.texi: (micromips, nomicromips, nocompression):
32265         Document new function attributes.
32266         * doc/invoke.texi (minterlink-compressed, mmicromips,
32267         m14k, m14ke, m14kec): Document new options.
32268         (minterlink-mips16): Update documentation.
32269         * doc/md.texi (ZC, ZD): Document new constraints.
32270         * configure.ac (gcc_cv_as_micromips): Check if linker
32271         supports the .set micromips directive.
32272         * configure: Regenerate.
32273         * config.in: Regenerate.
32274         * config/mips/mips-tables.opt: Regenerate.
32275         * config/mips/micromips.md: New file.
32276         * constraints.md (ZC, ZD): New constraints.
32277         * config/mips/predicates.md (movep_src_register): New predicate.
32278         (movep_src_operand): New predicate.
32279         (non_volatile_mem_operand): New predicate.
32280         * config/mips/mips.md (multimem): New type.
32281         (length): Differentiate between 17-bit and 18-bit branch offsets.
32282         (MOVEP1, MOVEP2): New mode iterator.
32283         (mov_<load>l): Use ZC constraint.
32284         (mov_<load>r): Likewise.
32285         (mov_<store>l): Likewise.
32286         (mov_<store>r): Likewise.
32287         (*branch_equality<mode>_inverted): Add microMIPS support.
32288         (*branch_equality<mode>): Likewise.
32289         (*jump_absolute): Likewise.
32290         (indirect_jump_<mode>): Likewise.
32291         (tablejump_<mode>): Likewise.
32292         (<optab>_internal): Likewise.
32293         (sibcall_internal): Likewise.
32294         (sibcall_value_internal): Likewise.
32295         (prefetch): Use constraint ZD.
32296         * config/mips/mips.opt (minterlink-compressed): New option.
32297         (minterlink-mips16): Now an alias for minterlink-compressed.
32298         (mmicromips): New option.
32299         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32300         (compare_and_swap_12): Likewise.
32301         (sync_add<mode>): Likewise.
32302         (sync_<optab>_12): Likewise.
32303         (sync_old_<optab>_12): Likewise.
32304         (sync_new_<optab>_12): Likewise.
32305         (sync_nand_12): Likewise.
32306         (sync_old_nand_12): Likewise.
32307         (sync_new_nand_12): Likewise.
32308         (sync_sub<mode>): Likewise.
32309         (sync_old_add<mode>): Likewise.
32310         (sync_old_sub<mode>): Likewise.
32311         (sync_new_add<mode>): Likewise.
32312         (sync_new_sub<mode>): Likewise.
32313         (sync_<optab><mode>): Likewise.
32314         (sync_old_<optab><mode>): Likewise.
32315         (sync_new_<optab><mode>): Likewise.
32316         (sync_nand<mode>): Likewise.
32317         (sync_old_nand<mode>): Likewise.
32318         (sync_new_nand<mode>): Likewise.
32319         (sync_lock_test_and_set<mode>): Likewise.
32320         (test_and_set_12): Likewise.
32321         (atomic_compare_and_swap<mode>): Likewise.
32322         (atomic_exchange<mode>_llsc): Likewise.
32323         (atomic_fetch_add<mode>_llsc): Likewise.
32324         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32325         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32326         (umips_save_restore_pattern_p): Likewise.
32327         (umips_load_store_pair_p): Likewise.
32328         (umips_output_load_store_pair): Likewise.
32329         (umips_movep_target_p): Likewise.
32330         (umips_12bit_offset_address_p): Likewise.
32331         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32332         (mips_base_mips16): Rename this...
32333         (mips_base_compression_flags): ...to this. Update all uses.
32334         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32335         (mips_mips16_decl_p): Delete.
32336         (mips_nomips16_decl_p): Delete.
32337         (mips_get_compress_on_flags): New function.
32338         (mips_get_compress_off_flags): New function.
32339         (mips_get_compress_mode): New function.
32340         (mips_get_compress_on_name): New function.
32341         (mips_get_compress_off_name): New function.
32342         (mips_insert_attributes): Support multiple compression types.
32343         (mips_merge_decl_attributes): Likewise.
32344         (umips_12bit_offset_address_p): New function.
32345         (mips_start_function_definition): Emit .set micromips directive.
32346         (mips_call_may_need_jalx_p): New function.
32347         (mips_function_ok_for_sibcall): Add microMIPS support.
32348         (mips_print_operand_punctuation): Support short delay slots and
32349         compact jumps.
32350         (umips_swm_mask, umips_swm_encoding): New.
32351         (umips_build_save_restore): New function.
32352         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32353         (was_mips16_p): Remove.
32354         (old_compression_mode): New.
32355         (mips_set_compression_mode): New function.
32356         (mips_set_current_function): Add microMIPS support.
32357         (mips_option_override): Likewise.
32358         (umips_save_restore_pattern_p): New function.
32359         (umips_output_save_restore): New function.
32360         (umips_load_store_pair_p_1): New function.
32361         (umips_load_store_pair_p): New function.
32362         (umips_output_load_store_pair_1): New function.
32363         (umips_output_load_store_pair): New function.
32364         (umips_movep_target_p) New function.
32365         (mips_prepare_pch_save): Add microMIPS support.
32366         * config/mips/mips.h (TARGET_COMPRESSION): New.
32367         (TARGET_CPU_CPP_BUILTINS): Update macro
32368         to use new compression flags and to support microMIPS.
32369         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32370         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32371         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32372         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32373         (ASM_SPEC): Support mmicromips and mno-micromips.
32374         (M16STORE_REG_P): New macro.
32375         (MIPS_CALL): Support TARGET_MICROMIPS.
32376         (MICROMIPS_J): New macro.
32377         (mips_base_mips16): Rename this...
32378         (mips_base_compression_flags): ...to this.
32379         (UMIPS_12BIT_OFFSET_P): New macro.
32380         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32381         (MULTILIB_DIRNAMES): Likewise.
32382 2013-03-20  Richard Biener  <rguenther@suse.de>
32384         PR tree-optimization/56661
32385         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32386         the result does not have to be distinct.
32388 2013-03-20  Richard Biener  <rguenther@suse.de>
32390         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32391         remap_gimple_op_r.
32393 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32394             Steven Bosscher  <steven@gcc.gnu.org>
32396         PR rtl-optimization/56605
32397         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32399 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32401         PR bootstrap/56656
32402         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32403         that require movd instead of movq.
32405 2013-03-20  Richard Biener  <rguenther@suse.de>
32407         * tree-ssa-structalias.c (struct variable_info): Add pointer
32408         to the first field of an aggregate with sub-vars.  Make
32409         this and the pointer to the next subfield its ID.
32410         (vi_next): New function.
32411         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32412         storedanything_id, integer_id): Increment by one.
32413         (new_var_info, get_call_vi, lookup_call_clobber_vi,
32414         get_call_clobber_vi): Adjust.
32415         (solution_set_expand): Simplify and speedup.
32416         (solution_set_add): Inline into ...
32417         (set_union_with_increment): ... this.  Adjust accordingly.
32418         (do_sd_constraint): Likewise.
32419         (do_ds_constraint): Likewise.
32420         (do_complex_constraint): Simplify.
32421         (build_pred_graph): Adjust.
32422         (solve_graph): Likewise.  Simplify and speedup.
32423         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32424         get_constraint_for_component_ref, get_constraint_for_1,
32425         first_vi_for_offset, first_or_preceding_vi_for_offset,
32426         create_function_info_for, create_variable_info_for_1,
32427         create_variable_info_for, intra_create_variable_infos): Adjust.
32428         (init_base_vars): Push NULL for ID zero.
32429         (compute_points_to_sets): Adjust.
32431 2013-03-20  Richard Biener  <rguenther@suse.de>
32433         * cfgloop.c (verify_loop_structure): Streamline and avoid
32434         ICEing on corrupt loop tree.
32435         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32436         loop tree.
32438 2013-03-20  Richard Biener  <rguenther@suse.de>
32440         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32441         check whether an SSA update is needed.
32443 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
32445         * config/mips/constraints.md (T): Rename to...
32446         (Yf): ...this.
32447         (U): Rename to...
32448         (Yd): ...this.
32449         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32450         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32452 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32454         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32455         (*subsi3_carryin_uxtw): Likewise.
32457 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32459         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32460         (*rorsi3_insn_uxtw): Likewise.
32462 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32464         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32465         (*extrsi5_insn_uxtw): Likewise.
32467 2013-03-19  Richard Biener  <rguenther@suse.de>
32469         PR tree-optimization/56273
32470         * passes.c (init_optimization_passes): Move second VRP after DOM.
32472 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
32474         * config/i386/i386.md (*movti_internal): Merge from
32475         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
32476         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
32477         nox64 isa attributes.
32479 2013-03-18  Richard Biener  <rguenther@suse.de>
32481         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32482         (unite): Likewise.
32483         (merge_node_constraints): Likewise.
32484         (build_succ_graph): Likewise.
32485         (valid_graph_edge): Inline into single caller.
32486         (unify_nodes): Likewise.  Use bitmap_set_bit return value
32487         and cache varinfo.
32488         (scc_visit): Fix formatting and variable use.
32489         (do_sd_constraint): Use gcc_checking_assert.
32490         (do_ds_constraint): Likewise.
32491         (do_complex_constraint): Likewise.
32492         (condense_visit): Likewise.  Cleanup.
32493         (dump_pred_graph): New function.
32494         (perform_var_substitution): Dump the pred-graph before
32495         variable substitution.
32496         (find_equivalent_node): Use gcc_checking_assert.
32497         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32499 2013-03-18  Richard Biener  <rguenther@suse.de>
32501         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32502         Remove cond_expr_stmt_list argument and do not gimplify the
32503         built expression.
32504         (vect_loop_versioning): Adjust.
32505         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32506         Cleanup to use less temporaries.
32507         (vect_create_data_ref_ptr): Cleanup.
32509 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32511         PR tree-optimization/56635
32512         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32513         require types_compatible_p types.
32515 2013-03-18  Nick Clifton  <nickc@redhat.com>
32517         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32518         spurious backslash.
32520         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32521         Add missing line to comment describing function.
32523 2013-03-18  Richard Biener  <rguenther@suse.de>
32525         PR tree-optimization/56210
32526         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32527         Handle string / character search functions.
32528         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32530 2013-03-18  Richard Biener  <rguenther@suse.de>
32532         PR middle-end/56483
32533         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32534         and implement properly.
32535         * gimple.h (gimple_cond_single_var_p): Remove.
32537 2013-03-18  Richard Biener  <rguenther@suse.de>
32539         * tree-data-ref.h (find_data_references_in_loop): Declare.
32540         * tree-data-ref.c (get_references_in_stmt): Use a stack
32541         vector pre-allocated in the callers.
32542         (find_data_references_in_stmt): Adjust.
32543         (graphite_find_data_references_in_stmt): Likewise.
32544         (create_rdg_vertices): Likewise.
32545         (find_data_references_in_loop): Export.
32546         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32547         Compute dependences here...
32548         (vect_analyze_data_refs): ...not here.  When we encounter
32549         a non-vectorizable data reference in basic-block vectorization
32550         truncate the data reference vector.  Do not bother to
32551         fixup data-dependence information for gather loads.
32552         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32553         of data references, as reported.
32555 2013-03-18  Richard Biener  <rguenther@suse.de>
32557         PR tree-optimization/3713
32558         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
32559         has_constants and expr.
32560         (stmt_has_constants): Properly valueize SSA names when deciding
32561         whether the stmt has constants.
32563 2013-03-18  Richard Biener  <rguenther@suse.de>
32565         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32566         whole function when there is nothing to do.
32567         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32568         * tree-vectorizer.c (vectorize_loops): Update virtual and
32569         loop-closed SSA once.
32570         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32572 2013-03-18  Richard Biener  <rguenther@suse.de>
32574         PR middle-end/56113
32575         * domwalk.c (bb_postorder): New global static.
32576         (cmp_bb_postorder): New function.
32577         (walk_dominator_tree): Replace scheme imposing an order for
32578         visiting dominator sons by one sorting them at the time they
32579         are pushed on the stack.
32581 2013-03-18  Richard Biener  <rguenther@suse.de>
32583         PR tree-optimization/39326
32584         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32585         (struct mem_ref): Replace mem member with ao_ref typed member.
32586         (MEM_ANALYZABLE): Adjust.
32587         (memref_eq): Likewise.
32588         (mem_ref_alloc): Likewise.
32589         (gather_mem_refs_stmt): Likewise.
32590         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32591         (execute_sm_if_changed_flag_set): Adjust.
32592         (execute_sm): Likewise.
32593         (ref_always_accessed_p): Likewise.
32594         (refs_independent_p): Likewise.
32595         (can_sm_ref_p): Likewise.
32597 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32599         PR c/56566
32600         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32601         return 1 even for !unsignedp.
32603 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32605         * config/i386/i386.md (isa): Add x64 and nox64.
32606         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32607         (*pushtf): Enable *roF alternative for x64 isa only.
32608         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
32609         mode attribute of integer alternatives to DImode for TARGET_64BIT.
32610         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
32611         (*movtf_internal): Merge from *movtf_internal_rex64 and
32612         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
32613         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
32614         nox64 isa attributes.
32615         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
32616         nox64 isa attributes.
32617         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32619 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32621         * config/alpha/alpha.c (TARGET_LRA_P): New define.
32623 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
32625         PR target/56640
32626         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32627         class names.  Remove trailing comma after "ALL_REGS".
32629 2013-03-16  Jan Hubicka  <jh@suse.cz>
32631         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32632         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32633         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32634         of cgraph_get_create_node.
32635         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32637 2013-03-16  Jason Merrill  <jason@redhat.com>
32639         PR debug/49090
32640         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32641         with DW_AT_default_value.
32643 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
32645         * BASE-VER: Set to 4.9.0.
32647 2013-03-14  Andi Kleen  <ak@linux.intel.com>
32649         PR target/56619
32650         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32651         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32652         Document _x* TSX intrinsics.
32654 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32655             David Holsgrove  <david.holsgrove@xilinx.com>
32657         * configure.ac: Add MicroBlaze TLS support detection.
32658         * configure: Regenerate.
32659         * config/microblaze/microblaze-protos.h
32660         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32661         symbol_mentioned_p, label_mentioned_p): Add prototypes.
32662         * config/microblaze/microblaze.c (microblaze_address_type): Add
32663         ADDRESS_TLS and tls_reloc address types.
32664         (microblaze_address_info): Add tls_reloc.
32665         (TARGET_HAVE_TLS): Define.
32666         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32667          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32668          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32669         load_tls_operand,  microblaze_call_tls_get_addr,
32670         microblaze_legitimize_tls_address): New functions.
32671         (microblaze_classify_unspec): Handle UNSPEC_TLS.
32672         (get_base_reg): Use microblaze_tls_symbol_p.
32673         (microblaze_classify_address): Handle TLS.
32674         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32675         label_mentioned_p and microblaze_tls_referenced_p.
32676         (microblaze_legitimize_address): Handle TLS.
32677         (microblaze_address_insns): Handle ADDRESS_TLS.
32678         (pic_address_needs_scratch): Handle TLS.
32679         (print_operand_address): Handle TLS.
32680         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32681         (microblaze_expand_move): Handle TLS.
32682         (microblaze_legitimate_constant_p): Check
32683         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32684         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32685         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32686         (PIC_OFFSET_TABLE_REGNUM): Set.
32687         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32688         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
32689         (addsi3, movsi_internal2, movdf_internal): Update constraints
32690         * config/microblaze/predicates.md (arith_plus_operand): Define
32691         (move_operand): Redefine as move_src_operand,
32692         check microblaze_tls_referenced_p.
32694 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32696         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
32697         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
32699 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32701         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32702         CC mode for AND.
32704 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
32706         PR tree-optimization/53265
32707         * common.opt (Waggressive-loop-optimizations): New option.
32708         * tree-ssa-loop-niter.c: Include tree-pass.h.
32709         (do_warn_aggressive_loop_optimizations): New function.
32710         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
32711         if number_of_latch_executions returned constant.
32712         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32713         early.  If number_of_latch_executions returned constant, set
32714         nb_iterations_upper_bound back to it.
32715         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32716         field.
32717         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32718         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32720         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32721         (MULTILIB_OSDIRNAMES): Set.
32722         * genmultilib: If defaultosdirname doesn't start with :: , set
32723         defaultosdirname2 instead, clear it and emit two . multilib_raw
32724         entries instead of just one.
32726 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
32728         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32729         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32730         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32731         (SUBTARGET_OVERRIDE_OPTIONS): New.
32733 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
32735         PR target/49880
32736         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32737         (musermode): Convert to Var(TARGET_USERMODE).
32738         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32739         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32740         * config/sh/sh.c (sh_option_override): Use
32741         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32742         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32743         condition.
32744         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32745         TARGET_SH4.
32746         (udivsi3_i4_single, divsi3_i4_single): Use
32747         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32749 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
32751         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32752         default setting.
32754 2013-03-13  Richard Biener  <rguenther@suse.de>
32756         PR tree-optimization/56608
32757         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32758         calls when vectorizing basic-blocks.
32760 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
32762         PR plugins/45078
32763         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32764         tm_file.
32766 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
32768         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32770 2013-03-11  Jan Hubicka  <jh@suse.cz>
32772         PR lto/56557
32773         * lto-streamer-out.c (output_symbol_p): Skip references from
32774         constructors of external variables.
32776 2013-03-11  Jan Hubicka  <jh@suse.cz>
32778         PR middle-end/56571
32779         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32780         from pseudos.
32781         * emit-rtl.c (verify_rtx_sharing): Likewise.
32782         (copy_insn_1): Likewise.
32783         * rtl.c (copy_rtx): Likewise.
32785 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
32787         PR target/56591
32788         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
32789         output_operand_lossage message.
32791 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
32793         PR target/56470
32794         * arm.c (shift_op): Validate RTL pattern on the fly.
32795         (arm_print_operand, case 'S'): Don't use shift_operator to validate
32796         the RTL.
32798 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32800         PR target/56347
32801         * config/pa/pa.md (call_value): Check for calls to powf and direct to
32802         new call patterns that clobber %fr12.
32803         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
32804         split and postreload patterns.
32805         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
32806         registers %fr12 and %fr12R as call used.
32808 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
32810         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
32811         (canon_address, record_store, replace_read, check_mem_read_rtx,
32812         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
32813         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
32814         rest_of_handle_dse): Likewise.
32816 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
32818         PR middle-end/56524
32819         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
32820         Add base_optabs.
32821         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
32822         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
32823         (save_optabs_if_changed): Replace with...
32824         (init_tree_optimization_optabs): ...this.
32825         * optabs.c (save_optabs_if_changed): Rename to...
32826         (init_tree_optimization_optabs): ...this.  Take the optimization node
32827         as argument.  Do nothing if the base optabs are already correct.
32828         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
32829         to recompute optabs.
32830         * function.h (function): Remove optabs field.
32831         * function.c (invoke_set_current_function_hook): Call
32832         init_tree_optimization_optabs.  Use the result to initialize
32833         this_fn_optabs.
32835 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
32837         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
32838         if GTMA_HAS_NO_INSTRUMENTATION.
32839         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
32840         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
32841         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
32842         * gimple-pretty-print.c (dump_gimple_transaction): Handle
32843         GTMA_HAS_NO_INSTRUMENTATION.
32845 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
32847         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
32848         libasan_preinit.o.
32850 2013-03-08  Marek Polacek  <polacek@redhat.com>
32851             Jakub Jelinek  <jakub@redhat.com>
32853         PR tree-optimization/56478
32854         * predict.c (is_comparison_with_loop_invariant_p): Change the
32855         type of loop_step to tree.
32856         (predict_loops): Adjust.
32857         (predict_iv_comparison): Perform the computations on double_ints.
32859 2013-03-08  Richard Biener  <rguenther@suse.de>
32861         PR tree-optimization/56570
32862         * tree-cfg.c (verify_expr_location_1): Verify locations for
32863         DECL_DEBUG_EXPR.
32864         * tree-sra.c (create_access_replacement): Strip locations
32865         from DECL_DEBUG_EXPRs.
32867 2013-03-08  Richard Biener  <rguenther@suse.de>
32869         * tree-inline.c (expand_call_inline): Do not associate
32870         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
32871         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
32873 2013-03-08  Richard Biener  <rguenther@suse.de>
32875         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
32876         or block changes with -Og.  Fix for location / block encoding
32877         changes and PHI arguments with locations.
32879 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
32881         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
32882         for all counters.
32883         (struct output_info): Likewise.
32884         (register_overhead): Remove bad gcc_assert.
32885         (bitmap_find_bit): If there is only a single bitmap element, do not
32886         count a miss as a search.
32887         (print_statistics): Update for counter type changes.
32888         (dump_bitmap_statistics): Likewise.  Print headers such that they
32889         are properly lined up with the printed counters.
32891 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
32893         PR tree-optimization/56559
32894         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
32895         check that it has only a single use.
32897 2013-03-07  Richard Biener  <rguenther@suse.de>
32899         * doc/invoke.texi (fwhole-program): Discourage use in combination
32900         with -flto.
32902 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
32904         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
32906         PR tree-optimization/56539
32907         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
32908         instead of GSI_CONTINUE_LINKING as last argument to
32909         force_gimple_operand_gsi.  Adjust function comment.
32911         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
32912         aarch64-cores.def.
32914         PR middle-end/56548
32915         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
32916         promoted mode, convert the result back to the original mode.
32918 2013-03-06  Richard Biener  <rguenther@suse.de>
32920         PR middle-end/56294
32921         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
32922         (insert_updated_phi_nodes_compare_uids): New function.
32923         (update_ssa): Sort symbols_to_rename after UID before
32924         traversing it to insert PHI nodes.
32926 2013-03-06  Richard Biener  <rguenther@suse.de>
32928         PR middle-end/50494
32929         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
32930         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
32932         Revert
32933         2013-02-13  Richard Biener  <rguenther@suse.de>
32935         PR lto/50494
32936         * varasm.c (output_constant_def_1): Get the decl representing
32937         the constant as argument.
32938         (output_constant_def): Wrap output_constant_def_1.
32939         (make_decl_rtl): Use output_constant_def_1 with the decl
32940         representing the constant.
32941         (build_constant_desc): Optionally re-use a decl already
32942         representing the constant.
32943         (tree_output_constant_def): Adjust.
32945 2013-03-06  Joey Ye  <joey.ye@arm.com>
32947         PR lto/50293
32948         * gcc.c (convert_white_space): New function.
32949         (main): Handles white space in function name.
32951 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
32953         PR target/56529
32954         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
32955         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
32956         to SH_DIV_CALL_TABLE for TARGET_SH2.
32957         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
32958         list.
32959         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
32960         call-table options.
32962 2013-03-05  Sterling Augustine  <saugustine@google.com>
32963             Cary Coutant  <ccoutant@google.com>
32965         PR debug/55364
32966         * dwarf2out.c (resolve_addr): Don't call
32967         remove_loc_list_addr_table_entries a second time for the same
32968         expression.
32970 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32972         PR debug/56510
32973         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
32974         (avoid_complex_debug_insns): New function.
32975         (expand_debug_locations): Call it.
32977         PR rtl-optimization/56484
32978         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
32979         lifetimes of hard registers on small register class machines.
32981 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32983         * config/microblaze/microblaze-protos.h: Rename
32984         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
32985         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
32986         fast_interrupt.
32987         (microblaze_fast_interrupt_function_p): New function.
32988         (microblaze_is_interrupt_handler): Rename to
32989         microblaze_is_interrupt_variant and add fast_interrupt check.
32990         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
32991         (save_restore_insns): Likewise.
32992         (compute_frame_size): Likewise.
32993         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
32994         (microblaze_globalize_label): Likewise.
32995         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
32996         * config/microblaze/microblaze.md: Use wrapper
32997         microblaze_is_interrupt_variant.
32999 2013-03-05  Kai Tietz  <ktietz@redhat.com>
33001         * sdbout.c (sdbout_one_type): Switch to current function's section
33002         supporting cold/hot.
33004 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
33006         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33007         -mxl-reorder.
33009 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33011         PR middle-end/56461
33012         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33013         if VALGRIND_GET_VBITS is defined, temporarily make object
33014         memory all defined, and restore previous valgrind addressability
33015         and definability afterwards.  Free this_object at the end.
33017         PR middle-end/56461
33018         * lra.c (lra): Call lra_clear_live_ranges if live_p,
33019         right before calling lra_create_live_ranges, also call it
33020         when clearing live_p.  Only call lra_clear_live_ranges
33021         at the end if live_p.
33023         PR middle-end/56461
33024         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33026 2013-03-05  Richard Biener  <rguenther@suse.de>
33028         PR tree-optimization/56521
33029         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33030         value-id.
33032 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
33034         PR c++/55135
33035         * except.h (remove_unreachable_eh_regions): New prototype.
33036         * except.c (remove_eh_handler_splicer): New function, split out
33037         of remove_eh_handler.
33038         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
33039         warning about running it on many EH regions one at a time.
33040         (remove_unreachable_eh_regions_worker): New function, walk the
33041         EH tree in depth-first order and remove non-marked regions.
33042         (remove_unreachable_eh_regions): New function.
33043         * tree-eh.c (mark_reachable_handlers): New function, split out
33044         from remove_unreachable_handlers.
33045         (remove_unreachable_handlers): Use mark_reachable_handlers and
33046         remove_unreachable_eh_regions.
33047         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33048         and remove_unreachable_eh_regions.
33050 2013-03-05  Richard Biener  <rguenther@suse.de>
33052         PR middle-end/56525
33053         * loop-init.c (fix_loop_structure): Remove loops in two stages,
33054         not freeing them until the end.
33056 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33058         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33060 2013-03-05  Richard Biener  <rguenther@suse.de>
33062         PR tree-optimization/56270
33063         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33064         of loads after scheduling an SLP instance.
33066 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33068         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33069         tic6x.exp.
33070         (check_gcc_parallelize): Run guality.exp as a separate job from
33071         vect.exp with unsorted.exp and $(dg_target_exps) separately from
33072         struct-layout-1.exp with stackalign.exp.
33074         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33076         PR middle-end/56461
33077         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33078         load_index sbitmap even if some bit in it isn't set.
33080         PR middle-end/56461
33081         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33082         (discover_iteration_bound_by_body_walk): Change queues to
33083         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
33084         spelling in comment.  Call safe_push on queues[bound_index] directly.
33085         Release queues[queue_index] in every iteration unconditionally.
33086         Release bounds vector.
33088         PR middle-end/56461
33089         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33090         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33091         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33092         inner_phis vector.
33094 2013-03-05  Richard Biener  <rguenther@suse.de>
33096         PR lto/56515
33097         * tree-inline.c (remap_blocks_to_null): New function.
33098         (expand_call_inline): When expanding a call stmt without
33099         an associated block inline remap all callee blocks to NULL.
33101 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33103         PR rtl-optimization/56494
33104         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33105         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33106         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33108         PR middle-end/56461
33109         * sel-sched-ir.c (free_sched_pools): Release
33110         succs_info_pool.stack[succs_info_pool.max_top] vectors too
33111         if succs_info_pool.max_top isn't -1.
33113         PR bootstrap/56509
33114         * opts.c (opts_obstack, opts_concat): Moved to...
33115         * opts-common.c (opts_obstack, opts_concat): ... here.
33117 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33119         PR middle-end/56461
33120         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33122 2013-03-04  Martin Jambor  <mjambor@suse.cz>
33124         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33125         all appropriate places.
33127 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
33129         PR tree-optimization/56424
33130         * ipa-split.c (split_function): Do not set the RSO flag if result is
33131         not by reference and its type is a register type.
33133 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
33135         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33136         (microblaze_legitimate_pic_operand): Likewise
33137         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33138         new function microblaze_legitimate_pic_operand
33139         * config/microblaze/microblaze-protos.h
33140         (microblaze_legitimate_pic_operand): Declare.
33142 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33144         * config/microblaze/predicates.md (call_insn_simple_operand):
33145         New predicate for supported rtx code types.
33146         * config/microblaze/microblaze.md (call_internal1): Use
33147         call_insn_simple_operand predicate.
33149 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33151         PR middle-end/56461
33152         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33153         partitions.ordered_remove.
33155         PR middle-end/56461
33156         * tree-vect-stmts.c (vectorizable_conversion): Don't call
33157         vec_oprnds0.create (1) for modifier == NONE.
33159         PR middle-end/56461
33160         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33161         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33162         vec_oprnds1 right before pushing anything to it for
33163         scalar_shift_arg.
33165         PR middle-end/56461
33166         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33167         set nbbs to 0 instead of having separate code path.
33168         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33169         instead of false as last argument if returning NULL.
33171 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
33173         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33174         the attribute is now called "target" instead of "option".
33175         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33176         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
33177         attribute/pragma name for TARGET_OPTION_VALID_P and
33178         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
33179         * doc/tm.texi: Regenerated.
33181 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
33183         * config/microblaze/microblaze.c:
33184         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33185         * config/microblaze/microblaze.h: Add -mxl-reorder to
33186         DRIVER_SELF_SPECS.
33187         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33188         instructions emitted if TARGET_REORDER.
33189         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33190         or 0 for -m/-mno case, but initialises as 2 to detect default use case
33191         separately.
33193 2013-03-01  Xinliang David Li  <davidxl@google.com>
33195         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33196         walk length.
33198 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
33200         PR middle-end/56461
33201         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33202         vector even when returning true.  Fix up function comment formatting.
33204         PR middle-end/56461
33205         * ira-build.c (ira_loop_nodes_count): New variable.
33206         (create_loop_tree_nodes): Initialize it.
33207         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33209         PR middle-end/56461
33210         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33211         method on dr_chain and result_chain.
33212         * tree-vect-stmts.c (vectorizable_store): Only call
33213         result_chain.create if j == 0.
33215         PR middle-end/56461
33216         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33217         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33218         before overwriting it.
33220 2013-03-01  Tobias Burnus  <burnus@net-b.de>
33222         * doc/extended.texi (C Extensions): Change order in @menu
33223         to match @node.
33224         (Other MIPS Built-in Functions): Move last MIPS entry before
33225         "picoChip Built-in Functions".
33226         (SH Built-in Functions): Move after RX Built-in Functions.
33227         * doc/gcc.texi (Introduction): Change order in @menu
33228         to match @node.
33229         * doc/md.texi (Constraints): Ditto.
33230         * gty.texi (Type Information): Ditto.
33231         (User-provided marking routines for template types): Make
33232         subsection.
33233         * doc/invoke.texi (AArch64 Options): Move before
33234         "Adapteva Epiphany Options".
33236 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
33237             Jakub Jelinek  <jakub@redhat.com>
33239         PR sanitizer/56454
33240         * asan.c (gate_asan): Lookup no_sanitize_address instead of
33241         no_address_safety_analysis attribute.
33242         * doc/extend.texi (no_address_safety_attribute): Rename to
33243         no_sanitize_address attribute, mention no_address_safety_analysis
33244         attribute as deprecated alias.
33246 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
33248         PR middle-end/56461
33249         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33250         type to vec<vec<tree> > *.
33251         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
33252         to be vec<tree> instead of vec<tree> *, set vec_defs
33253         to vNULL and call vec_defs.create (number_of_vects), adjust other
33254         uses of vec_defs.
33255         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33256         vectorizable_condition): Adjust vect_get_slp_defs callers.
33258 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33260         * config/aarch64/aarch64.c
33261         (aarch64_float_const_representable): Remove unused variable.
33263 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33265         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33267 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33269         * config/aarch64/aarch64-builtins.c
33270         (aarch64_init_simd_builtins): Make static.
33272 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33274         * config/aarch64/aarch64.c
33275         (aarch64_simd_make_constant): Make static.
33277 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33279         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33280         with no initialization to the RHS of debug statements.
33282 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33284         PR tree-optimization/56294
33285         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33286         Adjust dumping.
33287         (get_access_replacement): Do not call create_access_replacement.
33288         Assert a replacement exists.
33289         (get_repl_default_def_ssa_name): Create the replacement declaration
33290         itself.
33292 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33294         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33295         final_end_function.
33297 2013-02-28  Marek Polacek  <polacek@redhat.com>
33299         PR rtl-optimization/56466
33300         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33301         if we're changing a loop.
33302         (peel_loops_completely): Likewise.
33304 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
33306         PR c++/55813
33307         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33309 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33311         PR target/56445
33312         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33313         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33314         INTX_FTYPE_FX, FX_FTYPE_INTX.
33315         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33317 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33319         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33320         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33321         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33322         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33323         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33324         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33325         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33326         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33327         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33328         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33329         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33330         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33331         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33332         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33333         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33334         (avrxmega6): Increase max flash segments from 5 to 6.
33335         * config/avr/t-multilib: Regenerate.
33336         * config/avr/avr-tables.opt: Regenerate.
33337         * doc/avr-mmcu.texi: Regenerate.
33339 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33341         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33342         (avr_device_to_arch): Rename to avr_device_to_ld.
33343         (avr_device_to_as): New prototype.
33344         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33345         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33346         * config/avr/driver-avr.c (avr_device_to_as): New.
33347         (avr_device_to_arch): Rename to avr_device_to_ld.
33349 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33351         PR middle-end/56461
33352         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33353         method on dr_chain and result_chain.
33355         PR middle-end/56461
33356         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33357         pointer_set_destroy on not_executed_last_iteration.
33359         PR middle-end/56461
33360         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33362         PR middle-end/56461
33363         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33364         FOR_EACH_DEFINED_FUNCTION when freeing state.
33366         PR middle-end/56461
33367         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33368         pool_free.
33369         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33370         overwriting it.
33372         PR middle-end/56461
33373         * ipa-cp.c (decide_whether_version_node): Call vec_free on
33374         known_aggs[i].items and release known_aggs vector.
33376         PR middle-end/56461
33377         * ipa-reference.c (propagate): Free node_info even for alias nodes.
33379 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33381         * config/microblaze/microblaze.c (microblaze_emit_compare):
33382         Use xor for EQ/NE comparisions.
33383         * config/microblaze/microblaze.md (cstoresf4): Add constraints
33384         (cbranchsf4): Adjust operator to comparison_operator.
33386 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33388         PR middle-end/56461
33389         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33390         vector.
33391         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33392         vec_safe_push, always update *slot.
33393         (redirect_edge_var_map_clear): Use vec_free.
33394         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33395         (free_var_map_entry): Use vec_free.
33396         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33397         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33399 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
33401         PR middle-end/45472
33402         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33403         when the may_trap_p bit of the exprs being merged differs.
33404         Reorder tests for speculativeness in the logical and operator.
33406 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33408         * incpath.c (add_standard_paths): Use reconcat instead of concat
33409         where appropriate and avoid leaking memory.
33411         * opts.h: Include obstack.h.
33412         (opts_concat): New prototype.
33413         (opts_obstack): New declaration.
33414         * opts.c (opts_concat): New function.
33415         (opts_obstack): New variable.
33416         (init_options_struct): Call gcc_init_obstack on opts_obstack.
33417         (finish_options): Use opts_concat instead of concat
33418         and XOBNEWVEC instead of XNEWVEC.
33419         * opts-common.c (generate_canonical_option, decode_cmdline_option,
33420         generate_option): Likewise.
33421         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33422         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33424         PR target/56455
33425         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33426         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33428 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33430         PR middle-end/56461
33431         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33433 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33435         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33436         (arm_block_move_unaligned_straight): Likewise.
33437         (arm_adjust_block_mem): Likewise.
33439 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33441         PR target/48901
33442         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33443         temp, cond and label.
33444         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33446         PR target/52500
33447         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33448         * config/c6x/c6x.h (dbx_register_map): Update declaration.
33450         PR target/52501
33451         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33452         of prologue/epilogue functions.
33454         PR target/52550
33455         * config/tilegx/tilegx.c (tilegx_expand_prologue):
33456         Remove unused variable cfa_offset.
33457         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33459         PR target/54639
33460         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33461         type promotion to unsigned.
33463         PR target/54640
33464         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33465         for HOST_WIDE_INT of 32 bit / same size as int.
33466         (arm_block_move_unaligned_straight): Likewise.
33467         (arm_adjust_block_mem): Likewise.
33469         PR target/54662
33470         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33471         ALL_CFLAGS.
33473 2013-02-26  Marek Polacek  <polacek@redhat.com>
33475         PR tree-optimization/56426
33476         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33478 2013-02-26  Richard Biener  <rguenther@suse.de>
33480         PR target/56444
33481         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33482         unused variable loops.
33484 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33486         PR tree-optimization/56448
33487         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33488         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33489         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33490         later operands of the references, or even first operand for
33491         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33493         PR tree-optimization/56443
33494         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33495         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33496         to type_for_mode langhook.
33498 2013-02-25  Matt Turner  <mattst88@gmail.com>
33500         * doc/invoke.texi: Document r4700.
33502 2013-02-25  Richard Biener  <rguenther@suse.de>
33504         PR tree-optimization/56175
33505         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33506         split out from ...
33507         (simplify_bitwise_binary): ... here.  Also guard the conversion
33508         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33510 2013-02-25  Catherine Moore  <clm@codesourcery.com>
33512         Revert:
33513         2013-02-24  Catherine Moore  <clm@codesourcery.com>
33514             Maciej W. Rozycki  <macro@codesourcery.com>
33515             Tom de Vries  <tom@codesourcery.com>
33516             Nathan Sidwell  <nathan@codesourcery.com>
33517             Iain Sandoe  <iain@codesourcery.com>
33518             Nathan Froyd  <froydnj@codesourcery.com>
33519             Chao-ying Fu  <fu@mips.com>
33521         * doc/extend.texi: (micromips, nomicromips, nocompression):
33522         Document new function attributes.
33523         * doc/invoke.texi (minterlink-compressed, mmicromips,
33524         m14k, m14ke, m14kec): Document new options.
33525         (minterlink-mips16): Update documentation.
33526         * doc/md.texi (ZC, ZD): Document new constraints.
33527         * configure.ac (gcc_cv_as_micromips): Check if linker
33528         supports the .set micromips directive.
33529         * configure: Regenerate.
33530         * config.in: Regenerate.
33531         * config/mips/mips-tables.opt: Regenerate.
33532         * config/mips/micromips.md: New file.
33533         * constraints.md (ZC, AD): New constraints.
33534         * config/mips/predicates.md (movep_src_register): New predicate.
33535         (movep_src_operand): New predicate.
33536         (non_volatile_mem_operand): New predicate.
33537         * config/mips/mips.md (multimem): New type.
33538         (length): Differentiate between 17-bit and 18-bit branch offsets.
33539         (MOVEP1, MOVEP2): New mode iterator.
33540         (mov_<load>l): Use ZC constraint.
33541         (mov_<load>r): Likewise.
33542         (mov_<store>l): Likewise.
33543         (mov_<store>r): Likewise.
33544         (*branch_equality<mode>_inverted): Add microMIPS support.
33545         (*branch_equality<mode>): Likewise.
33546         (*jump_absolute): Likewise.
33547         (indirect_jump_<mode>): Likewise.
33548         (tablejump_<mode>): Likewise.
33549         (<optab>_internal): Likewise.
33550         (sibcall_internal): Likewise.
33551         (sibcall_value_internal): Likewise.
33552         (prefetch): Use constraint ZD.
33553         * config/mips/mips.opt (minterlink-compressed): New option.
33554         (minterlink-mips16): Now an alias for minterlink-compressed.
33555         (mmicromips): New option.
33556         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33557         (compare_and_swap_12): Likewise.
33558         (sync_add<mode>): Likewise.
33559         (sync_<optab>_12): Likewise.
33560         (sync_old_<optab>_12): Likewise.
33561         (sync_new_<optab>_12): Likewise.
33562         (sync_nand_12): Likewise.
33563         (sync_old_nand_12): Likewise.
33564         (sync_new_nand_12): Likewise.
33565         (sync_sub<mode>): Likewise.
33566         (sync_old_add<mode>): Likewise.
33567         (sync_old_sub<mode>): Likewise.
33568         (sync_new_add<mode>): Likewise.
33569         (sync_new_sub<mode>): Likewise.
33570         (sync_<optab><mode>): Likewise.
33571         (sync_old_<optab><mode>): Likewise.
33572         (sync_new_<optab><mode>): Likewise.
33573         (sync_nand<mode>): Likewise.
33574         (sync_old_nand<mode>): Likewise.
33575         (sync_new_nand<mode>): Likewise.
33576         (sync_lock_test_and_set<mode>): Likewise.
33577         (test_and_set_12): Likewise.
33578         (atomic_compare_and_swap<mode>): Likewise.
33579         (atomic_exchange<mode>_llsc): Likewise.
33580         (atomic_fetch_add<mode>_llsc): Likewise.
33581         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33582         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33583         (umips_save_restore_pattern_p): Likewise.
33584         (umips_load_store_pair_p): Likewise.
33585         (umips_output_load_store_pair): Likewise.
33586         (umips_movep_target_p): Likewise.
33587         (umips_12bit_offset_address_p): Likewise.
33588         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33589         (mips_base_mips16): Rename this...
33590         (mips_base_compression_flags): ...to this. Update all uses.
33591         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33592         (mips_mips16_decl_p): Delete.
33593         (mips_nomips16_decl_p): Delete.
33594         (mips_get_compress_on_flags): New function.
33595         (mips_get_compress_off_flags): New function.
33596         (mips_get_compress_mode): New function.
33597         (mips_get_compress_on_name): New function.
33598         (mips_get_compress_off_name): New function.
33599         (mips_insert_attributes): Support multiple compression types.
33600         (mips_merge_decl_attributes): Likewise.
33601         (umips_12bit_offset_address_p): New function.
33602         (mips_start_function_definition): Emit .set micromips directive.
33603         (mips_call_may_need_jalx_p): New function.
33604         (mips_function_ok_for_sibcall): Add microMIPS support.
33605         (mips_print_operand_punctuation): Support short delay slots and
33606         compact jumps.
33607         (umips_swm_mask, umips_swm_encoding): New.
33608         (umips_build_save_restore): New function.
33609         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33610         (was_mips16_p): Remove.
33611         (old_compression_mode): New.
33612         (mips_set_compression_mode): New function.
33613         (mips_set_current_function): Add microMIPS support.
33614         (mips_option_override): Likewise.
33615         (umips_save_restore_pattern_p): New function.
33616         (umips_output_save_restore): New function.
33617         (umips_load_store_pair_p_1): New function.
33618         (umips_load_store_pair_p): New function.
33619         (umips_output_load_store_pair_1): New function.
33620         (umips_output_load_store_pair): New function.
33621         (umips_movep_target_p) New function.
33622         (mips_prepare_pch_save): Add microMIPS support.
33623         * config/mips/mips.h (TARGET_COMPRESSION): New.
33624         (TARGET_CPU_CPP_BUILTINS): Update macro
33625         to use new compression flags and to support microMIPS.
33626         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33627         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33628         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33629         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33630         (ASM_SPEC): Support mmicromips and mno-micromips.
33631         (M16STORE_REG_P): New macro.
33632         (MIPS_CALL): Support TARGET_MICROMIPS.
33633         (MICROMIPS_J): New macro.
33634         (mips_base_mips16): Rename this...
33635         (mips_base_compression_flags): ...to this.
33636         (UMIPS_12BIT_OFFSET_P): New macro.
33637         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33638         (MULTILIB_DIRNAMES): Likewise.
33640 2013-02-25  Tom de Vries  <tom@codesourcery.com>
33642         PR rtl-optimization/56131
33643         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33644         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33645         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33647 2013-02-25  Tobias Burnus  <burnus@net-b.de>
33649         * doc/invoke.texi (-fsanitize=): Move from optimization
33650         to debugging options.
33652 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33654         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33656 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33657             Alexander Monakov  <amonakov@ispras.ru>
33659         PR middle-end/56077
33660         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33661         flush pending lists also on non-jumps.  Adjust comment.
33663 2013-02-24  Catherine Moore  <clm@codesourcery.com>
33664             Maciej W. Rozycki  <macro@codesourcery.com>
33665             Tom de Vries  <tom@codesourcery.com>
33666             Nathan Sidwell  <nathan@codesourcery.com>
33667             Iain Sandoe  <iain@codesourcery.com>
33668             Nathan Froyd  <froydnj@codesourcery.com>
33669             Chao-ying Fu  <fu@mips.com>
33671         * doc/extend.texi: (micromips, nomicromips, nocompression):
33672         Document new function attributes.
33673         * doc/invoke.texi (minterlink-compressed, mmicromips,
33674         m14k, m14ke, m14kec): Document new options.
33675         (minterlink-mips16): Update documentation.
33676         * doc/md.texi (ZC, ZD): Document new constraints.
33677         * configure.ac (gcc_cv_as_micromips): Check if linker
33678         supports the .set micromips directive.
33679         * configure: Regenerate.
33680         * config.in: Regenerate.
33681         * config/mips/mips-tables.opt: Regenerate.
33682         * config/mips/micromips.md: New file.
33683         * constraints.md (ZC, AD): New constraints.
33684         * config/mips/predicates.md (movep_src_register): New predicate.
33685         (movep_src_operand): New predicate.
33686         (non_volatile_mem_operand): New predicate.
33687         * config/mips/mips.md (multimem): New type.
33688         (length): Differentiate between 17-bit and 18-bit branch offsets.
33689         (MOVEP1, MOVEP2): New mode iterator.
33690         (mov_<load>l): Use ZC constraint.
33691         (mov_<load>r): Likewise.
33692         (mov_<store>l): Likewise.
33693         (mov_<store>r): Likewise.
33694         (*branch_equality<mode>_inverted): Add microMIPS support.
33695         (*branch_equality<mode>): Likewise.
33696         (*jump_absolute): Likewise.
33697         (indirect_jump_<mode>): Likewise.
33698         (tablejump_<mode>): Likewise.
33699         (<optab>_internal): Likewise.
33700         (sibcall_internal): Likewise.
33701         (sibcall_value_internal): Likewise.
33702         (prefetch): Use constraint ZD.
33703         * config/mips/mips.opt (minterlink-compressed): New option.
33704         (minterlink-mips16): Now an alias for minterlink-compressed.
33705         (mmicromips): New option.
33706         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33707         (compare_and_swap_12): Likewise.
33708         (sync_add<mode>): Likewise.
33709         (sync_<optab>_12): Likewise.
33710         (sync_old_<optab>_12): Likewise.
33711         (sync_new_<optab>_12): Likewise.
33712         (sync_nand_12): Likewise.
33713         (sync_old_nand_12): Likewise.
33714         (sync_new_nand_12): Likewise.
33715         (sync_sub<mode>): Likewise.
33716         (sync_old_add<mode>): Likewise.
33717         (sync_old_sub<mode>): Likewise.
33718         (sync_new_add<mode>): Likewise.
33719         (sync_new_sub<mode>): Likewise.
33720         (sync_<optab><mode>): Likewise.
33721         (sync_old_<optab><mode>): Likewise.
33722         (sync_new_<optab><mode>): Likewise.
33723         (sync_nand<mode>): Likewise.
33724         (sync_old_nand<mode>): Likewise.
33725         (sync_new_nand<mode>): Likewise.
33726         (sync_lock_test_and_set<mode>): Likewise.
33727         (test_and_set_12): Likewise.
33728         (atomic_compare_and_swap<mode>): Likewise.
33729         (atomic_exchange<mode>_llsc): Likewise.
33730         (atomic_fetch_add<mode>_llsc): Likewise.
33731         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33732         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33733         (umips_save_restore_pattern_p): Likewise.
33734         (umips_load_store_pair_p): Likewise.
33735         (umips_output_load_store_pair): Likewise.
33736         (umips_movep_target_p): Likewise.
33737         (umips_12bit_offset_address_p): Likewise.
33738         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33739         (mips_base_mips16): Rename this...
33740         (mips_base_compression_flags): ...to this. Update all uses.
33741         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33742         (mips_mips16_decl_p): Delete.
33743         (mips_nomips16_decl_p): Delete.
33744         (mips_get_compress_on_flags): New function.
33745         (mips_get_compress_off_flags): New function.
33746         (mips_get_compress_mode): New function.
33747         (mips_get_compress_on_name): New function.
33748         (mips_get_compress_off_name): New function.
33749         (mips_insert_attributes): Support multiple compression types.
33750         (mips_merge_decl_attributes): Likewise.
33751         (umips_12bit_offset_address_p): New function.
33752         (mips_start_function_definition): Emit .set micromips directive.
33753         (mips_call_may_need_jalx_p): New function.
33754         (mips_function_ok_for_sibcall): Add microMIPS support.
33755         (mips_print_operand_punctuation): Support short delay slots and
33756         compact jumps.
33757         (umips_swm_mask, umips_swm_encoding): New.
33758         (umips_build_save_restore): New function.
33759         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33760         (was_mips16_p): Remove.
33761         (old_compression_mode): New.
33762         (mips_set_compression_mode): New function.
33763         (mips_set_current_function): Add microMIPS support.
33764         (mips_option_override): Likewise.
33765         (umips_save_restore_pattern_p): New function.
33766         (umips_output_save_restore): New function.
33767         (umips_load_store_pair_p_1): New function.
33768         (umips_load_store_pair_p): New function.
33769         (umips_output_load_store_pair_1): New function.
33770         (umips_output_load_store_pair): New function.
33771         (umips_movep_target_p) New function.
33772         (mips_prepare_pch_save): Add microMIPS support.
33773         * config/mips/mips.h (TARGET_COMPRESSION): New.
33774         (TARGET_CPU_CPP_BUILTINS): Update macro
33775         to use new compression flags and to support microMIPS.
33776         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33777         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33778         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33779         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33780         (ASM_SPEC): Support mmicromips and mno-micromips.
33781         (M16STORE_REG_P): New macro.
33782         (MIPS_CALL): Support TARGET_MICROMIPS.
33783         (MICROMIPS_J): New macro.
33784         (mips_base_mips16): Rename this...
33785         (mips_base_compression_flags): ...to this.
33786         (UMIPS_12BIT_OFFSET_P): New macro.
33787         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33788         (MULTILIB_DIRNAMES): Likewise.
33790 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
33792         PR target/52555
33793         * target-globals.c (save_target_globals): For init_reg_sets and
33794         target_reinit remporarily set this_fn_optabs to this_target_optabs.
33796 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
33798         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
33799         * config/aarch64/t-aarch64
33800         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
33802 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
33804         PR inline-asm/56148
33805         * lra-constraints.c (process_alt_operands): Reload operand
33806         conflicting with earlier clobber only if no more other conflicting
33807         operands.
33809 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
33811         PR sanitizer/56393
33812         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
33813         if not linking a shared library.
33815 2013-02-22  Seth LaForge  <sethml@google.com>
33817         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
33819 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
33821         * config/arm/arm.md (split for extendsidi): Update condition.
33822         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
33823         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
33824         (qhs_zextenddi_cstr): Likewise.
33826 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33828         PR middle-end/56420
33829         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
33830         avoid signed wrapping.
33831         (expand_mult): Handle properly multiplication by
33832         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
33833         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
33834         in the compiler if coeff is HOST_WIDE_INT_MIN.
33835         (expand_divmod): Don't make ext_op1 static, change it's type to
33836         uhwi.  Avoid undefined behavior in -INTVAL (op1).
33838         PR rtl-optimization/50339
33839         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
33840         field.
33841         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
33842         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
33843         into splitting_ashiftrt field.
33844         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
33845         ASHIFTRT.
33846         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
33847         choices.
33849 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
33851         PR middle-end/56108
33852         * trans-mem.c (execute_tm_mark): Do not expand transactions that
33853         are sure to go irrevocable.
33855 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
33857         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
33858         scalars are valid operands.
33860 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33862         PR tree-optimization/56310
33863         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
33864         only matching indices and non-negative final offsets.
33865         (intersect_aggregates_with_edge): Pass src_idx to
33866         agg_replacements_to_vector.  Pass src_idx insstead of index to
33867         intersect_with_agg_replacements.
33869 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33871         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
33872         instead of hard-wired defaults.
33874 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
33876         * doc/invoke.texi (MIPS Options): Update documentation of the
33877         floating-point multiply-accumulate instruction restrictions.
33879 2013-02-21  Kostya Serebryany  <kcc@google.com>
33881         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
33882         asan_shadow_offset on x86_64 linux.
33884 2013-02-21  Richard Biener  <rguenther@suse.de>
33886         PR tree-optimization/56415
33887         Revert
33888         2013-02-11  Richard Biener  <rguenther@suse.de>
33890         PR tree-optimization/56273
33891         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33892         first VRP run.
33894 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33896         PR bootstrap/56258
33897         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
33898         instead of @itemx.
33900         PR inline-asm/56405
33901         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
33902         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
33904 2013-02-20  Jan Hubicka  <jh@suse.cz>
33906         PR tree-optimization/56265
33907         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
33908         when target is referenced for first time.
33910 2013-02-20  Richard Biener  <rguenther@suse.de>
33912         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
33913         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
33914         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
33915         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
33916         not return anything.
33917         (rename_ssa_copies): Do not remove unused locals.
33918         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
33919         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
33920         * passes.c (execute_function_todo): Do not schedule unused locals
33921         removal if cleanup_tree_cfg did something.
33922         * tree-ssa-live.c (remove_unused_locals): Dump statistics
33923         about the number of removed locals.
33925 2013-02-20  Richard Biener  <rguenther@suse.de>
33927         PR tree-optimization/56398
33928         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
33930 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33932         PR tree-optimization/55334
33933         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
33934         restricted pointers to arrays.
33936 2013-02-20  Richard Biener  <rguenther@suse.de>
33937             Jakub Jelinek  <jakub@redhat.com>
33939         PR tree-optimization/56396
33940         * tree-ssa-ccp.c (n_const_val): New static variable.
33941         (get_value): Return NULL for SSA names we don't have a lattice
33942         entry for.
33943         (ccp_initialize): Initialize n_const_val.
33944         * tree-ssa-copy.c (n_copy_of): New static variable.
33945         (init_copy_prop): Initialize n_copy_of.
33946         (get_value): Return NULL_TREE for SSA names we don't have a
33947         lattice entry for.
33949 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33951         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
33953 2013-02-20  Richard Biener  <rguenther@suse.de>
33955         * genpreds.c (write_lookup_constraint): Do not compare first
33956         letter of the constraint again.
33958 2013-02-20  Richard Biener  <rguenther@suse.de>
33960         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
33961         and ceil_log2.
33962         (get_use_iv_cost): Terminate hashtable walk when coming across
33963         an empty entry.
33965 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
33967         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
33968         reassociation for avx2 targets.
33970 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33972         * config/microblaze/microblaze.c: microblaze_has_clz = 0
33973         Add version check for v8.10.a to enable microblaze_has_clz
33974         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
33975         version and TARGET_PATTERN_COMPARE check
33976         * config/microblaze/microblaze.md: New clzsi2 instruction
33978 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33980         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
33981         function before branching.
33983 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33985         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
33986         DUMP_INSN_RTX_UID.
33987         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
33989 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33991         PR middle-end/55889
33992         * sel-sched.c: Include ira.h.
33993         (implicit_clobber_conflict_p): New function.
33994         (moveup_expr): Use it.
33995         * Makefile.in (sel-sched.o): Depend on ira.h.
33997 2013-02-19  Richard Biener  <rguenther@suse.de>
33999         PR tree-optimization/56384
34000         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34001         (vn_hash_type): Split out from ...
34002         (vn_hash_constant_with_type): ... here.
34003         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34004         (vn_phi_eq): Compare types from vn_phi_s structure.
34005         (vn_phi_lookup): Populate vn_phi_s type.
34006         (vn_phi_insert): Likewise.
34008 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
34010         PR tree-optimization/56350
34011         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34012         if haven't found reduction or nested cycle operand, rather than
34013         asserting we must find it.
34015         PR tree-optimization/56381
34016         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34017         to fold_build3.
34019 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
34020             Jakub Jelinek  <jakub@redhat.com>
34022         PR target/52555
34023         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34024         (swap_optab_enable): Same.
34025         (init_all_optabs): Use argument instead of global.
34026         * tree.h (struct tree_optimization_option): New field target_optabs.
34027         * expr.h (init_all_optabs): Add argument to prototype.
34028         (TREE_OPTIMIZATION_OPTABS): New.
34029         (save_optabs_if_changed): Protoize.
34030         * optabs.h: Declare this_fn_optabs.
34031         * optabs.c (save_optabs_if_changed): New.
34032         Declare this_fn_optabs.
34033         (init_optabs): Add argument to init_all_optabs() call.
34034         * function.c (invoke_set_current_function_hook): Handle per
34035         function optabs.
34036         * function.h (struct function): New field optabs.
34037         * config/mips/mips.c (mips_set_mips16_mode): Handle when
34038         optimization_current_node has changed.
34039         * target-globals.h (save_target_globals_default_opts): Protoize.
34040         * target-globals.c (save_target_globals_default_opts): New.
34042 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34044         PR target/56347
34045         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34046         registers %fr12 and %fr12R as call used.
34048         PR target/56214
34049         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34050         and HImode, require all displacements to be an integer multiple of
34051         their mode size.
34052         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34053         only allow QImode and HImode when reload is in progress and strict is
34054         true.  Likewise for symbolic addresses.  Use base14_operand to check
34055         displacements in REG+BASE addresses.
34057 2013-02-18  Richard Biener  <rguenther@suse.de>
34059         PR tree-optimization/56366
34060         * tree-vect-loop.c (get_initial_def_for_induction): Properly
34061         handle sign-conversion of outer-loop initial induction value.
34063 2013-02-18  Richard Biener  <rguenther@suse.de>
34065         PR middle-end/56349
34066         * cfghooks.c (merge_blocks): If we merge a latch into another
34067         block adjust references to it.
34068         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34069         (verify_loop_structure): Verify that a recorded latch is in fact
34070         a latch.
34072 2013-02-18  Richard Biener  <rguenther@suse.de>
34074         PR tree-optimization/56321
34075         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34076         order SSA name release and virtual operand unlinking.
34078 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34080         * config/microblaze/microblaze.md (save_stack_block): Define.
34081         (restore_stack_block): Likewise.
34083 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34085         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34086         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34087         * config/microblaze/microblaze.c (microblaze_option_override):
34088         Bail out early for PIC modes when target does not support PIC.
34090 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34092         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34093         Replace with a microblaze version.
34094         (microblaze_trampoline_init): Adapt for microblaze.
34095         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34096         microblaze.
34098 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
34099             Dodji Seketeli  <dodji@redhat.com>
34101         PR asan/56330
34102         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34103         (instrument_mem_region_access): Do not forget to always put
34104         instrumentation of the of 'base' and 'base + len' in a "if (len !=
34105         0) statement, even for cases where either 'base' or 'base + len'
34106         are not instrumented -- because they have been previously
34107         instrumented.  Simplify the logic by putting all the statements
34108         instrument 'base + len' inside a sequence, and then insert that
34109         sequence right before the current insertion point.  Then, to
34110         instrument 'base + len', just get an iterator on that statement.
34111         And do not forget to update the pointer to iterator the function
34112         received as argument.
34114 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
34116         PR rtl-optimization/56348
34117         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34119 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
34121         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34122         (clean_graph_dump_file): Pass base to start_graph_dump.
34124 2013-02-14  Richard Henderson  <rth@redhat.com>
34126         PR target/55941
34127         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34129 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
34131         * collect2-aix.h: Define F_LOADONLY.
34133 2013-02-14  Richard Biener  <rguenther@suse.de>
34135         PR lto/50494
34136         * varasm.c (output_constant_def_1): Get the decl representing
34137         the constant as argument.
34138         (output_constant_def): Wrap output_constant_def_1.
34139         (make_decl_rtl): Use output_constant_def_1 with the decl
34140         representing the constant.
34141         (build_constant_desc): Optionally re-use a decl already
34142         representing the constant.
34143         (tree_output_constant_def): Adjust.
34145 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
34147         Fix an asan crash
34148         * asan.c (instrument_builtin_call):  Really put the length of the
34149         second source argument into src1_len.
34151 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34153         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34154         argument.  If it is false, don't create edge from then_bb to
34155         fallthru_bb.
34156         (insert_if_then_before_iter): Pass true to it.
34157         (build_check_stmt): Pass false to it.
34158         (transform_statements): Flush hash table only on extended basic
34159         block boundaries, rather than at the beginning of every bb.
34160         Don't flush hash table on nonfreeing_call_p calls.
34161         * tree-flow.h (nonfreeing_call_p): New prototype.
34162         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34164 2013-02-13  David S. Miller  <davem@davemloft.net>
34166         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34168 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
34170         PR target/56184
34171         * ira.c (max_regno_before_ira): Move from ...
34172         (ira): ... here.
34173         (fix_reg_equiv_init): Use max_regno_before_ira instead of
34174         vec_safe_length.
34176 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34178         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34180 2013-02-13  Richard Biener  <rguenther@suse.de>
34182         PR lto/56295
34183         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34184         globals in MEM_REFs.
34186 2013-02-13  Richard Biener  <rguenther@suse.de>
34188         * loop-init.c (loop_optimizer_init): Clear loop state when
34189         re-initializing preserved loops.
34190         * loop-unswitch.c (unswitch_single_loop): Return whether
34191         we unswitched the loop.  Do not verify loop state here.
34192         (unswitch_loops): When we unswitched a loop discover new loops.
34194 2013-02-13  Kostya Serebryany  <kcc@google.com>
34196         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34197         on x86_64 linux.
34198         * sanitizer.def: Rename __asan_init to __asan_init_v1.
34200 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
34202         Avoid instrumenting duplicated memory access in the same basic block
34203         * Makefile.in (asan.o): Add new dependency on hash-table.h
34204         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34205         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34206         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34207         (free_mem_ref_resources, has_mem_ref_been_instrumented)
34208         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34209         (get_mem_ref_of_assignment): New functions.
34210         (get_mem_refs_of_builtin_call): Extract from
34211         instrument_builtin_call and tweak a little bit to make it fit with
34212         the new signature.
34213         (instrument_builtin_call): Use the new
34214         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
34215         of is_gimple_builtin_call.
34216         (instrument_derefs, instrument_mem_region_access): Insert the
34217         instrumented memory reference into the hash table.
34218         (maybe_instrument_assignment): Renamed instrument_assignment into
34219         this, and change it to advance the iterator when instrumentation
34220         actually happened and return true in that case.  This makes it
34221         homogeneous with maybe_instrument_assignment, and thus give a
34222         chance to callers to be more 'regular'.
34223         (transform_statements): Clear the memory reference hash table
34224         whenever we enter a new BB, when we cross a function call, or when
34225         we are done transforming statements.  Use
34226         maybe_instrument_assignment instead of instrumentation.  No more
34227         need to special case maybe_instrument_assignment and advance the
34228         iterator after calling it; it's now handled just like
34229         maybe_instrument_call.  Update comment.
34231 2013-02-13  Richard Biener  <rguenther@suse.de>
34233         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34234         Fix loop discovery code.
34236 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
34238         PR inline-asm/56148
34239         * lra-constraints.c (process_alt_operands): Match early clobber
34240         operand with itself.  Check conflicts with earlyclobber only if
34241         the operand is not reloaded.  Prefer to reload conflicting operand
34242         if earlyclobber and matching operands are the same.
34244 2013-02-12  Richard Biener  <rguenther@suse.de>
34246         PR lto/56297
34247         * lto-streamer-out.c (write_symbol): Do not output symbols
34248         for hard register variables.
34250 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
34252         PR target/54222
34253         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34254         (umulsidi3_insn, mulsidi3_insn): New insns.
34256 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
34258         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34259         (struct tune_params): Add vec_costs field.
34260         * config/arm/arm.c (arm_builtin_vectorization_cost)
34261         (arm_add_stmt_cost): New functions.
34262         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34263         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34264         (arm_default_vec_cost): New struct of type cpu_vec_costs.
34265         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34266         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34267         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34268         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34270 2013-02-12  Richard Biener  <rguenther@suse.de>
34272         PR lto/56295
34273         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34274         decls again if possible.
34276 2013-02-12  Richard Biener  <rguenther@suse.de>
34278         PR middle-end/56288
34279         * tree-ssa.c (verify_ssa_name): Fix check, move
34280         SSA_NAME_IN_FREE_LIST check up.
34282 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
34283             Steven Bosscher   <steven@gcc.gnu.org>
34285         PR rtl-optimization/56151
34286         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34287         equal to op0 or op1, and last_insn pattern is CODE operation
34288         with MEM dest and one of the operands matches that MEM.
34290 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
34292         * doc/extend.texi: Document Function Multiversioning and "default"
34293         parameter string to target attribute.
34294         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34295         target attribute parameter is "default".
34296         (ix86_compare_version_priority): Remove checks for target attribute.
34297         (ix86_mangle_function_version_assembler_name): Change error to sorry.
34298         Remove check for target attribute equal to NULL. Add assert.
34299         (ix86_generate_version_dispatcher_body): Change error to sorry.
34301 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
34302             Jack Howarth  <howarth@bromo.med.uc.edu>
34303             Patrick Marlier  <patrick.marlier@gmail.com>
34305         PR libitm/55693
34306         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34307         define ENDFILE_SPEC as TM_DESTRUCTOR.
34308         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34310 2013-02-11  Alexander Potapenko  <glider@google.com>
34311             Jack Howarth  <howarth@bromo.med.uc.edu>
34312             Jakub Jelinek  <jakub@redhat.com>
34314         PR sanitizer/55617
34315         * config/darwin.c (cdtor_record): Rename ctor_record.
34316         (sort_cdtor_records): Rename sort_ctor_records.
34317         (finalize_dtors): New routine to sort destructors by
34318         priority before use in assemble_integer.
34319         (machopic_asm_out_destructor): Use finalize_dtors if needed.
34321 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
34323         PR rtl-optimization/56275
34324         * simplify-rtx.c (avoid_constant_pool_reference): Check that
34325         offset is non-negative and less than cmode size before
34326         calling simplify_subreg.
34328 2013-02-11  Richard Biener  <rguenther@suse.de>
34330         PR tree-optimization/56264
34331         * cfgloop.h (fix_loop_structure): Adjust prototype.
34332         * loop-init.c (fix_loop_structure): Return the number of
34333         newly discovered loops.
34334         * tree-cfgcleanup.c (repair_loop_structures): When new loops
34335         are discovered, do a full loop-closed SSA rewrite.
34337 2013-02-11  Richard Biener  <rguenther@suse.de>
34339         PR tree-optimization/56273
34340         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34341         first VRP run.
34342         (check_array_ref): Fix missing newline in dumps.
34343         (search_for_addr_array): Likewise.
34345 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
34347         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34349 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
34351         PR target/56256
34352         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34354 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
34356         PR rtl-optimization/56246
34357         * lra-constraints.c (simplify_operand_subreg): Try to reuse
34358         reload pseudo.
34359         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34360         constraints are satisfied.
34362 2013-02-08  Jeff Law  <law@redhat.com>
34364         PR debug/53948
34365         * emit-rtl.c (reg_is_parm_p): New function.
34366         * regs.h (reg_is_parm_p): New prototype.
34367         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34368         callee-clobbered registers.
34370 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
34372         PR target/56043
34373         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34374         If there is no implicit builtin declaration, just return NULL.
34376 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34378         * config/i386/sse.md (FMAMODEM): New mode iterator.
34379         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34380         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34382 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34384         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34385         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34386         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34388 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34390         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34391         (microblaze*-*-elf): Likewise.
34392         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34393         LINK_SPEC.
34394         * config/microblaze/microblaze-c.c: Add builtin defines for
34395         _LITTLE_ENDIAN and _BIG_ENDIAN.
34396         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34397         add to TARGET_DEFAULT flags.
34398         Expand ASM_SPEC and LINK_SPEC.
34399         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34400         * config/microblaze/microblaze.md: Update extendsidi2 and
34401         movdi_internal instructions to use low-order / high-order reg
34402         print_operands.
34403         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34404         options and inversemask / mask of LITTLE_ENDIAN.
34405         * config/microblaze/t-microblaze: Expand multilib options to
34406         include mlittle-endian (le) and update exceptions patterns.
34408 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
34410         PR rtl-optimization/56195
34411         * lra-constraints.c (get_reload_reg): Don't reuse regs
34412         if they have smaller mode than requested, if they have
34413         wider mode than requested, try to return a SUBREG.
34415         PR tree-optimization/56250
34416         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34417         if type is unsigned and code isn't MULT_EXPR.
34419 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34421         PR tree-optimization/56064
34422         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34423         bits according to mode.
34424         * fixed-value.h (fixed_from_double_int)
34425         (const_fixed_from_double_int): Adjust comments.
34427 2013-02-08  Richard Biener  <rguenther@suse.de>
34429         PR lto/56231
34430         * lto-streamer.h (struct data_in): Remove current_file, current_line
34431         and current_col members.
34432         * lto-streamer-out.c (lto_output_location): Stream changed bits
34433         en-block for efficiency.
34434         * lto-streamer-in.c (clear_line_info): Remove.
34435         (lto_input_location): Cache current file, line and column
34436         globally via local statics.  Read changed bits en-block.
34437         (input_function): Do not call clear_line_info.
34438         (lto_read_body): Likewise.
34439         (lto_input_toplevel_asms): Likewise.
34441 2013-02-08  Michael Matz  <matz@suse.de>
34443         PR tree-optimization/52448
34444         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34445         (nt_call_phase): New static.
34446         (add_or_mark_expr): Only mark accesses with newer phase than any
34447         call seen.
34448         (nonfreeing_call_p): New.
34449         (nt_init_block): Update nt_call_phase, mark blocks as visited.
34450         (nt_fini_block): Keep blocks marked as visited.
34451         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34453 2013-02-08  Richard Biener  <rguenther@suse.de>
34455         * ira.c (ira): Free broken dominator information.
34457 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34459         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34461 2013-02-08  Marek Polacek  <polacek@redhat.com>
34463         * cfgloop.c (verify_loop_structure): Add more checking of headers.
34465 2013-02-08  Richard Biener  <rguenther@suse.de>
34467         PR middle-end/56181
34468         * cfgloop.h (flow_loops_find): Adjust.
34469         (bb_loop_header_p): Declare.
34470         * cfgloop.c (bb_loop_header_p): New function split out from ...
34471         (flow_loops_find): ... here.  Adjust function signature,
34472         support incremental loop structure update.
34473         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
34474         * cfgloopmanip.c (fix_loop_structure): Move ...
34475         * loop-init.c (fix_loop_structure): ... here.
34476         (apply_loop_flags): Split out from ...
34477         (loop_optimizer_init): ... here.
34478         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
34479         in incremental mode, only remove dead loops here.
34481 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34483         PR target/54222
34484         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34485         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34486         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34487         (*round<mode>3.libgcc): New insns for fixed-modes.
34488         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34489         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34490         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34491         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34492         implementations.  Define to __builtin_avr_absFX,
34493         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34494         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34495         __builtin_avr_countlsFX, respectively.
34496         * config/avr/avr-c.c (target.h): Include it.
34497         (enum avr_builtin_id): New enum.
34498         (avr_resolve_overloaded_builtin): New static function.
34499         (avr_register_target_pragmas): Use it to set
34500         targetm.resolve_overloaded_builtin.
34501         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34502         tree nodes used by DEF_BUILTIN.
34503         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34504         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34505         <AVR_BUILTIN_xxBITS>: Same.
34507 2013-02-08  Richard Biener  <rguenther@suse.de>
34509         * cfgloop.c (verify_loop_structure): Properly handle
34510         a loop exiting to another loop header.
34511         * ira-int.h (ira_loops): Remove.
34512         * ira.c (ira_loops): Remove.
34513         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34514         (do_reload): Use loop_optimizer_finalize.
34515         * ira-build.c (create_loop_tree_nodes): Use get_loops and
34516         number_of_loops to access the loop tree.
34517         (more_one_region_p): Likewise.
34518         (finish_loop_tree_nodes): Likewise.
34519         (rebuild_regno_allocno_maps): Likewise.
34520         (mark_loops_for_removal): Likewise.
34521         (mark_all_loops_for_removal): Likewise.
34522         (remove_unnecessary_regions): Likewise.
34523         (ira_build): Likewise.
34524         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34526 2013-02-08  Richard Biener  <rguenther@suse.de>
34528         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34529         * ipa-pure-const.c (analyze_function): Avoid calling
34530         mark_irreducible_loops twice.
34531         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34533 2013-02-07  David S. Miller  <davem@davemloft.net>
34535         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34536         on 'reg'.
34537         * var-tracking.c (vt_add_function_parameter): Test the presence of
34538         HAVE_window_save properly and do not remap argument registers when
34539         we have a leaf function.
34541 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
34543         PR bootstrap/56227
34544         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34545         instead of "ll".
34546         * config/i386/i386.c (ix86_print_operand): Ditto.
34548 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34550         * lra-constraints.c (process_alt_operands): Fix recently added comment.
34552 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34554         PR rtl-optimization/56225
34555         * lra-constraints.c (process_alt_operands): Check that reload hard
34556         reg can hold value for strict_low_part.
34558 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34560         PR debug/56154
34561         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34562         dwarf2out_end_function.
34563         (in_first_function_p, maybe_at_text_label_p,
34564         first_loclabel_num_not_at_text_label): New variables.
34565         (dwarf2out_var_location): In the first function find out
34566         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34567         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34568         functions.
34570 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
34572         PR rtl-optimization/56178
34573         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34574         SUBREG of a register.  Tidy up related block of code.
34575         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34576         note if the source is a register or a SUBREG of a register.
34578 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34580         PR target/56228
34581         * config/rs6000/rs6000.md (ptrm): New mode attr.
34582         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34583         call_value_indirect_aix<pttrsize>,
34584         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34585         m in constraints.
34587 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34589         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34590         if -bnortl. Convert to strcmp and strncmp.
34592 2013-02-07  Alan Modra  <amodra@gmail.com>
34594         PR target/54009
34595         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34596         addresses won't wrap when offsetting.
34597         (rs6000_secondary_reload): Provide secondary reloads needed for
34598         wrapping LO_SUM addresses.
34600 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
34602         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34603         MACH, just __MACH__.
34605 2013-02-06  Richard Biener  <rguenther@suse.de>
34607         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34608         instead of calling fix_loop_structure.
34610 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
34612         PR middle-end/56217
34613         * omp-low.c (use_pointer_for_field): Return false if
34614         lower_send_shared_vars doesn't generate any copy-out code.
34616 2013-02-06  Tom de Vries  <tom@codesourcery.com>
34618         PR rtl-optimization/56131
34619         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34620         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
34621         of the label is NULL.  Add comment.
34623 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
34625         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34627         PR sanitizer/55374
34628         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34629         (STATIC_LIBTSAN_LIBS): Likewise.
34630         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34631         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34632         is defined, don't add anything else beyond that.
34633         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34634         (LINK_COMMAND_SPEC): Use them.
34636         PR tree-optimization/56205
34637         * tree-stdarg.c (check_all_va_list_escapes): Return true if
34638         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34639         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34641 2013-02-05  Richard Biener  <rguenther@suse.de>
34643         PR tree-optimization/53342
34644         PR tree-optimization/53185
34645         * tree-vectorizer.h (vect_check_strided_load): Remove.
34646         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34647         not disallow peeling for vectorized strided loads.
34648         (vect_check_strided_load): Make static and simplify.
34649         (vect_analyze_data_refs): Adjust.
34650         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34651         correctly when vectorizing strided loads.
34653 2013-02-05  Richard Biener  <rguenther@suse.de>
34655         * doc/install.texi: Refer to ISL, not PPL.
34657 2013-02-05  Jan Hubicka  <jh@suse.cz>
34659         PR tree-optimization/55789
34660         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34662 2013-02-05  Jan Hubicka  <jh@suse.cz>
34664         PR tree-optimization/55789
34665         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34666         the dead call anyway.
34668 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
34670         PR sanitizer/55374
34671         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34673 2013-02-04  Alexander Potapenko  <glider@google.com>
34674             Jack Howarth  <howarth@bromo.med.uc.edu>
34675             Jakub Jelinek  <jakub@redhat.com>
34677         PR sanitizer/55617
34678         * config/darwin.c (sort_ctor_records): Stabilized qsort
34679         on constructor priority by using original position.
34680         (finalize_ctors): New routine to sort constructors by
34681         priority before use in assemble_integer.
34682         (machopic_asm_out_constructor): Use finalize_ctors if needed.
34684 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
34686         PR libstdc++/54314
34687         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34688         about visibility on artificial decls.
34689         * config/sol2.c (solaris_assemble_visibility): Likewise.
34691 2013-02-04  Kai Tietz  <ktietz@redhat.com>
34693         PR target/56186
34694         * config/i386/i386.c (function_value_ms_64): Add additional valtype
34695         argument and improve checking of return-argument types for 16-byte
34696         modes.
34697         (ix86_function_value_1): Add additional valtype argument on call
34698         of function_value_64.
34699         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34700         handling infunction_value_64 function.
34702 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
34704         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34706 2013-02-04  Richard Biener  <rguenther@suse.de>
34708         PR tree-optimization/56188
34709         * tree-ssa-structalias.c (label_visit): Consider case with
34710         initially non-empty points-to set.
34711         (perform_var_substitution): Dump node mapping and clean up.
34713 2013-02-04  Richard Guenther  <rguenther@suse.de>
34715         PR lto/56168
34716         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34717         node prevail as last resort.
34718         (lto_symtab_merge_decls): Remove guard on LTRANS here.
34719         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34721 2013-02-04  Richard Biener  <rguenther@suse.de>
34723         PR tree-optimization/56113
34724         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34725         Merge into ...
34726         (equiv_class_lookup_or_add): ... this.
34727         (label_visit): Adjust and fix error in previous patch.
34728         (perform_var_substitution): Adjust.
34730 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
34732         * config/sh/divtab.c: Fix formatting and comments throughout the file.
34733         * config/sh/sh4-300.md: Likewise.
34734         * config/sh/sh4a.md: Likewise.
34735         * config/sh/constraints.md: Likewise.
34736         * config/sh/sh.md: Likewise.
34737         * config/sh/netbsd-elf.h: Likewise.
34738         * config/sh/predicates.md: Likewise.
34739         * config/sh/sh-protos.h: Likewise.
34740         * config/sh/ushmedia.h: Likewise.
34741         * config/sh/linux.h: Likewise.
34742         * config/sh/sh.c: Likewise.
34743         * config/sh/superh.h: Likewise.
34744         * config/sh/elf.h: Likewise.
34745         * config/sh/sh4.md: Likewise.
34746         * config/sh/sh.h: Likewise.
34748 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34750         * config/pa/constraints.md: Adjust unused letters.  Change "T"
34751         constraint to match_test floating_point_store_memory_operand().
34752         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34753         (base14_operand): New.
34754         (floating_point_store_memory_operand): New.
34755         (integer_store_memory_operand): Revise to use base14_operand and
34756         reg_plus_base_memory_operand.
34757         (move_dest_operand): Allow symbolic_memory_operands.
34758         (symbolic_memory_operand): Check for LO_SOM.
34759         (symbolic_operand): Change default case to break.
34760         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34761         CONST_DOUBLE values to be reloaded by putting them into memory when
34762         the destination is a floating point register.
34763         (movdf): Remove code to handle CONST_DOUBLE.
34764         (movsf): Likewise.
34765         (reload_indf_r1): New.
34766         (reload_insf_r1): New.
34767         Consistently use "Q" and "T" constraints with integer and floating
34768         point move instructions, respectively.
34769         (movdi): Remove FAIL.
34770         Change predicate for source operand unamed DImode move from
34771         general_operand to move_src_operand.
34772         (umulsidi3): Change predicate for destination operand to
34773         register_operand.
34774         Likewise for similar unamed patterns.
34775         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34776         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34777         (hppa_legitimize_address): Simplify mask calculation.
34778         (pa_emit_move_sequence): Revised handling of secondary reloads from
34779         REG+D addresses for floating point loads and stores.  Directly handle
34780         loading CONST0_RTX (mode) to a floating point register.
34781         (pa_secondary_reload): Handle reloading DF and SFmode constant values
34782         to floating point registers.  Don't restrict secondary reloads to
34783         floating point registers to integer modes.  Revise some comments and
34784         cleanup some code.
34785         (TARGET_LEGITIMATE_ADDRESS_P): Define.
34786         (pa_legitimate_address_p): New.
34787         (pa_legitimize_reload_address): New.
34788         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
34789         (STRICT_REG_OK_FOR_BASE_P): New.
34790         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
34791         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
34793 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
34794             Andrew Dixie  <andrewd@gentrack.com>
34796         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
34797         flag set.
34799 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
34801         * expmed.c (extract_bit_field_1): Pass the full width of the
34802         structure to get_best_reg_extraction_insn.
34804 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34806         PR target/54601
34807         * configure.ac (use_cxa_atexit): Add AIX.
34808         * configure: Regenerate.
34810         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
34812 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
34814         PR debug/54793
34815         * final.c (need_profile_function): New variable.
34816         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
34817         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
34818         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
34819         notes, targetm.asm_out.function_prologue doesn't emit anything,
34820         HAVE_prologue and profiler should be emitted before prologue,
34821         set need_profile_function instead of emitting it.
34822         (final_scan_insn): If need_profile_function, emit
34823         profile_function on the first NOTE_INSN_BASIC_BLOCK or
34824         NOTE_INSN_FUNCTION_BEG note.
34826 2013-02-01  Richard Henderson  <rth@redhat.com>
34828         * config/rs6000/rs6000.md (smulditi3): New.
34829         (umulditi3): New.
34831         * config/alpha/alpha.md (umulditi3): New.
34833 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34835         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
34836         (ASM_OUTPUT_ALIGNED_LOCAL): New.
34838 2013-02-01  Richard Biener  <rguenther@suse.de>
34840         PR tree-optimization/56113
34841         * tree-ssa-structalias.c (label_visit): Reduce work for
34842         single-predecessor nodes.
34844 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
34846         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
34847         range isn't testing for zero.
34849 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
34851         PR middle-end/56113
34852         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
34854 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
34855             Nick Clifton  <nickc@redhat.com>
34857         * config/v850/constraints.md (Q): Define as a memory constraint.
34858         * config/v850/predicates.md (label_ref_operand): New predicate.
34859         (e3v5_shift_operand): New predicate.
34860         (ior_operator): New predicate.
34861         * config/v850/t-v850: Add e3v5 multilib.
34862         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
34863         (v850_gen_movdi): Prototype.
34864         * config/v850/v850.c: Add support for e3v5 architecture.
34865         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
34866         TARGET_V850E_UP.
34867         (construct_save_jarl): Add e3v5 long JARL support.
34868         (v850_adjust_insn_length): New function.  Adjust length of call
34869         insns when using e3v5 instructions.
34870         (v850_gen_movdi): New function: Generate instructions to move a
34871         DImode value.
34872         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
34873         (CPP_SPEC): Define __v850e3v5__ as appropriate.
34874         (TARGET_USE_FPU): Enable for e3v5.
34875         (CONST_OK_FOR_W): New macro.
34876         (ADJUST_INSN_LENGTH): Define.
34877         * config/v850/v850.md (UNSPEC_LOOP): Define.
34878         (attr cpu): Add v850e3v5.
34879         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
34880         (movdi): New pattern.
34881         (movdi_internal): New pattern.
34882         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
34883         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
34884         (cstoresf4): Likewise.
34885         (cstoredf4): Likewise.
34886         (insv): New pattern.
34887         (rotlso3_a): New pattern.
34888         (rotlsi3_b): New pattern
34889         (rotlsi3_v850e3v5): New pattern.
34890         (doloop_begin): New pattern.
34891         (fix_loop_counter): New pattern.
34892         (doloop_end): New pattern.
34893         (branch_normal): Add e3v5 long branch support.
34894         (branch_invert): Likewise.
34895         (branch_z_normal): Likewise.
34896         (branch_z_invert): Likewise.
34897         (branch_nz_normal): Likewise.
34898         (branch_nz_invert): Likewise.
34899         (call_internal_short): Add e3v5 register-indirect JARL support.
34900         (call_internal_long): Likewise.
34901         (call_value_internal_short): Likewise.
34902         (call_value_internal_long): Likewise.
34903         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
34904         (mloop): New option.
34905         * config.gcc: Add support for configuring v840e3v5 target.
34906         * doc/invoke.texi: Document new v850 specific command line options.
34908 2013-01-31  Paul Koning  <ni1d@arrl.net>
34910         PR debug/55059
34911         PR debug/54508
34912         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
34913         children if parent is a class.
34914         (prune_unused_types_prune): Don't add DW_AT_declaration.
34916 2013-01-31  Richard Biener  <rguenther@suse.de>
34918         PR tree-optimization/56157
34919         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
34920         match up operand with SLP child.
34922 2013-01-31  Jason Merrill  <jason@redhat.com>
34924         PR debug/54410
34925         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
34926         parameters the first time.
34927         (gen_scheduled_generic_parms_dies): Check completeness here.
34929 2013-01-31  Richard Biener  <rguenther@suse.de>
34931         PR middle-end/53073
34932         * common.opt (faggressive-loop-optimizations): New flag,
34933         enabled by default.
34934         * doc/invoke.texi (faggressive-loop-optimizations): Document.
34935         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
34936         infer_loop_bounds_from_undefined by it.
34938 2013-01-31  Richard Biener  <rguenther@suse.de>
34940         PR tree-optimization/56150
34941         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
34942         visit virtual operands.
34943         (find_uses_to_rename_bb): Likewise.
34945 2013-01-31  Richard Biener  <rguenther@suse.de>
34947         PR tree-optimization/56150
34948         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
34949         mixed store non-store stmts.
34951 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
34953         PR sanitizer/55374
34954         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
34955         LIBASAN_EARLY_SPEC is defined.
34956         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
34957         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
34958         before %o.
34959         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
34961         PR c++/55742
34962         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
34963         invalid args instead of ICEing on it.
34964         (ix86_valid_target_attribute_tree): Return error_mark_node if
34965         ix86_valid_target_attribute_inner_p failed.
34966         (ix86_valid_target_attribute_p): Return false only if
34967         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
34968         target("default") attribute.
34969         (sorted_attr_string): Change argument from const char * to tree,
34970         merge in all target attribute arguments rather than just one.
34971         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
34972         instead of free.  Avoid using strcat.
34973         (ix86_mangle_function_version_assembler_name): Mangle
34974         target("default") as if no target attribute is present.  Adjust
34975         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
34976         instead of xmalloc and XDELETEVEC instead of free.
34977         (ix86_function_versions): Don't return true if one of the decls
34978         doesn't have target attribute.  If they don't and one of the decls
34979         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
34980         sorted_attr_string caller.  Use XDELETEVEC instead of free.
34981         (ix86_supports_function_versions): Remove.
34982         (make_name): Fix up formatting.
34983         (make_dispatcher_decl): Remove resolver_name and its initialization.
34984         Avoid leaking memory.
34985         (is_function_default_version): Return true if there is
34986         target("default") attribute rather than no target attribute at all.
34987         (make_resolver_func): Avoid leaking memory.
34988         (ix86_generate_version_dispatcher_body): Likewise.
34989         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
34990         * target.def (supports_function_versions): Remove.
34991         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
34992         * doc/tm.texi: Regenerated.
34994 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34996         PR rtl-optimization/56144
34997         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
34998         for values with side effects.
35000 2013-01-30  Richard Biener  <rguenther@suse.de>
35002         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35003         (sparseset_pop): Likewise.
35004         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
35005         to be able to use quick_push in the worker loop.
35007 2013-01-30  Marek Polacek  <polacek@redhat.com>
35009         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35011 2013-01-30  Richard Biener  <rguenther@suse.de>
35013         PR lto/56147
35014         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35016 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
35018         PR tree-optimization/56064
35019         * fixed-value.c (fixed_from_double_int): New function.
35020         * fixed-value.h (fixed_from_double_int): New prototype.
35021         (const_fixed_from_double_int): New static inline function.
35022         * fold-const.c (native_interpret_fixed): New static function.
35023         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35024         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35025         (native_encode_fixed): New static function.
35026         (native_encode_expr) <FIXED_CST>: Use it.
35027         (native_interpret_int): Move double_int worker code to...
35028         * double-int.c (double_int::from_buffer): ...this new static method.
35029         * double-int.h (double_int::from_buffer): Prototype it.
35031 2013-01-30  Richard Biener  <rguenther@suse.de>
35033         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35034         New pointer-map and obstack.
35035         (init_alias_vars): Allocate pointer-map and obstack.
35036         (delete_points_to_sets): Free them.
35037         (find_what_var_points_to): Cache result.
35038         (find_what_p_points_to): Adjust for changed interface of
35039         find_what_var_points_to.
35040         (compute_points_to_sets): Likewise.
35041         (ipa_pta_execute): Likewise.
35043 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35045         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35046         * configure: Regenerate.
35047         * config.in: Regenerate.
35048         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35049         #nobits/#progbits if supported.
35051 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
35053         PR target/56121
35054         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35055         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35056         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35058 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35060         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35061         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35063 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35065         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35066         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35068 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35070         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35071         declaration.
35072         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35073         * config/arm/cortex-a7.md: New bypasses using
35074         arm_mac_accumulator_is_result.
35076 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35078         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
35079         (cortex_a7_neon_mla): Likewise.
35080         (cortex_a7_fpfmad): New reservation.
35081         (cortex_a7_fpmacs): Use ffmas and update required units.
35082         (cortex_a7_fpmuld): Update required units and latency.
35083         (cortex_a7_fpmacd): Likewise.
35084         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35085         (cortex_a7_neon). Likewise.
35086         (bypass) Update participating units.
35088 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35090         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35091         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35092         from fmac to ffma.
35093         * config/arm/vfp11.md (vfp_farith): Use ffmas.
35094         (vfp_fmul): Use ffmad.
35095         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35096         (cortex_r4_fmacd): Use ffmad.
35097         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35098         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
35099         (cortex_a9_fmacd): Use ffmad.
35100         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35101         (cortex_a8_vfp_macd): Use ffmad.
35102         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35103         (cortex_a5_fpmacd): Use ffmad.
35104         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35105         (cortex_a15_vfp_macd): Use ffmad.
35106         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35108 2013-01-29  Jason Merrill  <jason@redhat.com>
35110         PR libstdc++/54314
35111         * varasm.c (default_assemble_visibility): Don't warn about
35112         visibility on artificial decls.
35114 2013-01-29  Richard Biener  <rguenther@suse.de>
35116         PR tree-optimization/56113
35117         * tree-ssa-structalias.c (equiv_class_lookup): Also return
35118         the bitmap leader.
35119         (label_visit): Free duplicate bitmaps and record the leader instead.
35120         (perform_var_substitution): Adjust.
35122 2013-01-29  Richard Biener  <rguenther@suse.de>
35124         PR tree-optimization/55270
35125         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35126         the CFG, schedule loops for fixup.
35128 2013-01-29  Nick Clifton  <nickc@redhat.com>
35130         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35131         SP_REG.
35133 2013-01-28  Leif Ekblad  <leif@rdos.net>
35135         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35136         * config/i386/i386.h (TARGET_RDOS): New macro.
35137         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35138         * config/i386/i386.c (ix86_option_override_internal): For 64bit
35139         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35140         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35141         DEFAULT_LARGE_SECTION_THRESHOLD.
35142         * config/i386/i386.md (R14_REG, R15_REG): New constants.
35143         * config/i386/rdos.h: New file.
35144         * config/i386/rdos64.h: New file.
35146 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
35148         PR other/54814
35149         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35150         TEST_HARD_REG_BIT.
35152 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35154         PR rtl-optimization/56117
35155         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35156         call cselib_lookup_from_insn on the MEM before calling
35157         add_insn_mem_dependence.
35159 2013-01-28  Richard Biener  <rguenther@suse.de>
35161         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35162         to a stmt that didn't have one.
35163         (copy_phis_for_bb): Likewise for PHI arguments.
35164         (copy_debug_stmt): Likewise for debug stmts.
35166 2013-01-28  Richard Biener  <rguenther@suse.de>
35168         PR tree-optimization/56034
35169         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35170         (partition_builtin_p): Adjust.
35171         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
35172         it is the last partition.
35173         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35174         up the vertex for the definition.
35175         (classify_partition): Classify whether a partition is a
35176         PKIND_REDUCTION, thus has uses outside of the loop.
35177         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35178         Merge all PKIND_REDUCTION partitions into the last partition.
35179         (tree_loop_distribution): Seed partitions from reductions as well.
35181 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35183         PR tree-optimization/56125
35184         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35185         pow(x,c) into sqrt(x) * powi(x, n/2) or
35186         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35187         optimizing for size.
35188         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35189         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35190         integer.
35192         PR tree-optimization/56094
35193         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35194         to UNKNOWN_LOCATION while gimplifying expr.
35196 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
35198         PR target/56114
35199         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35200         operand 0 in movabs insn template for -masm=intel asm alternative.
35201         (*movabs<mode>_2): Ditto for operand 1.
35203 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
35205         PR target/54663
35206         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35207         of microblaze-c.o
35209 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35211         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35212         tm_file.
35214 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35216         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35217         Undef to avoid warning.
35219 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35221         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35222         * configure: Regenerate.
35224 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
35226         PR tree-optimization/56098
35227         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35228         for stmts with volatile ops.
35229         (cond_store_replacement): Don't optimize if assign has volatile ops.
35230         (cond_if_else_store_replacement_1): Don't optimize if either
35231         then_assign or else_assign have volatile ops.
35232         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35233         volatile ops.
35235 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35237         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35239 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35241         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35242         missing ':' in asm example.
35244 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
35246         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35247         entries into lane and laneq entries.
35248         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35249         Remove AdvSIMD scalar modes.
35250         (aarch64_sq<r>dmulh_laneq<mode>): New.
35251         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35252         modes.
35253         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35254         builtin implementations to relfect changes in RTL in aarch64-simd.md.
35255         * config/aarch64/iterators.md (VCOND): New.
35256         (VCONQ): New.
35258 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35260         PR target/54222
35261         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35262         Add NULL LIBNAME argument to existing definitions.
35263         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35264         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35265         * config/avr/avr.c (DEF_BUILTIN): Same.
35266         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35267         (avr_expand_builtin): Expand to a vanilla call if a libgcc
35268         implementation is available (DECL_ASSEMBLER_NAME is set).
35269         (avr_fold_absfx): New static function.
35270         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35271         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35272         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35273         AVR_BUILTIN_ABSLLK.
35274         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35275         (abshk, absk, abslk, absllk): Provide as static inline functions.
35277 2013-01-25  Marek Polacek  <polacek@redhat.com>
35279         PR tree-optimization/56035
35280         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35282 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
35284         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35285         (*movtf_internal_rex64): Add (!o,C) alternative
35286         (*movxf_internal_rex64): Ditto.
35287         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35289 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
35291         * doc/invoke.texi: fix typo.
35292         * doc/objc.texi: fix typo.
35294 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
35296         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35297         for the first two alternatives.
35299 2013-01-24  Diego Novillo  <dnovillo@google.com>
35301         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
35302         (ggc-zone.o): Remove.
35303         * configure.ac: Remove option --with-gc.
35304         * configure: Re-generate.
35305         * doc/install.texi: Remove documentation for --with-gc.
35306         * gengtype.c (write_enum_defn): Remove.  Update all users.
35307         (write_Types_process_field): Remove generation of gt_e_* argument.
35308         (output_type_enum): Remove.  Update all users.
35309         (write_enum_defn): Remove.  Update all users.
35310         (enum alloc_zone): Remove.  Update all users.
35311         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35312         * ggc-common.c (ggc_splay_alloc): Remove first argument.
35313         Update all callers.
35314         (struct ptr_data): Remove field TYPE.  Update all users.
35315         (gt_pch_note_object): Remove argument TYPE.  Update all users.
35316         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35317         Update all users.
35318         * ggc-none.c (ggc_alloc_typed_stat): Remove.
35319         (struct alloc_zone): Remove.
35320         (ggc_internal_alloc_zone_stat): Remove.
35321         (ggc_internal_cleared_alloc_zone_stat): Remove.
35322         * ggc-page.c (ggc_alloc_typed_stat): Remove.
35323         (ggc_pch_count_object): Remove last argument.  Update all users.
35324         (ggc_pch_alloc_object): Remove last argument.  Update all users.
35325         (struct alloc_zone): Remove.
35326         * ggc-zone.c: Remove.
35327         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
35328         (struct alloc_zone): Remove.
35329         (ggc_alloc_typed_stat): Remove.
35330         (ggc_alloc_typed): Remove.
35331         (ggc_splay_alloc): Remove first argument.
35332         (rtl_zone): Remove.  Update all users.
35333         (tree_zone): Remove.  Update all users.
35334         (tree_id_zone): Remove.  Update all users.
35335         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
35336         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
35337         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
35338         * tree-ssanames.c: Remove references to zone allocator in comments.
35340 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
35342         * config/avr/avr.c (avr_out_fract): Make register numbers that
35343         might be outside of source operand signed.
35345 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
35347         * config/i386/constraints.md (Yf): New constraint.
35348         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35349         of f constraint to conditionaly disable x87 register preferences.
35350         (*movdf_internal): Ditto.
35351         (*movsf_internal): Ditto.
35353 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
35355         PR inline-asm/55934
35356         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35357         that have operands with impossible constraints.
35358         Add a FIXME for a speed-up opportunity.
35359         * lra-constraints.c (process_alt_operands): Verify that a class
35360         selected from constraints on asms is valid for the operand mode.
35361         (curr_insn_transform): Remove incorrect comment.
35363 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
35365         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35366         TOC operand is a valid symbol ref in the constant pool.
35368 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35370         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35372 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
35374         PR target/54222
35375         * config/avr/stdfix.h: New file.
35376         * t-avr (stdfix-gcc.h): New rule to build it.
35377         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35379 2013-01-23  Kostya Serebryany  <kcc@google.com>
35381         * config/darwin.h: remove dependency on
35382         CoreFoundation (asan on Mac OS).
35384 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
35386         PR target/49069
35387         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35388         instead of cmpdi_operand for first comparison operand.
35389         Don't assert that comparison operands aren't both constants.
35391 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35393         * doc/install.texi (Downloading the Source): Update references to
35394         downloading separate components.
35396 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35398         * doc/extend.texi (__int128): Improve grammar.
35400 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
35402         PR target/56028
35403         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35404         alternative to (o,r).
35405         (*movdi_internal_rex64): Remove (!o,n) alternative.
35406         (DImode immediate->memory splitter): Remove.
35407         (DImode immediate->memory peephole2): Remove.
35408         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35409         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35410         alternative to (!o,*r).
35411         (*movtf_internal_sse): New pattern.
35412         (*movxf_internal_rex64): New pattern.
35413         (*movxf_internal): Disable for TARGET_64BIT.
35414         (*movdf_internal_rex64): Remove (!o,F) alternative.
35416 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
35418         PR middle-end/56074
35419         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35420         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35421         * tree-vect-loop-manip.c (find_loop_location): Also ignore
35422         stmt locations where LOCATION_LOCUS of the stmt location is
35423         UNKNOWN_LOCATION or BUILTINS_LOCATION.
35425         PR target/55686
35426         * config/i386/i386.md (UNSPEC_STOS): New.
35427         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35428         *strsetqi_1): Add UNSPEC_STOS.
35430 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
35432         PR c++/56067
35433         * doc/invoke.texi: Remove left over -Wsynth example.
35435 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35437         PR tree-optimization/56051
35438         * fold-const.c (fold_binary_loc): Don't fold
35439         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35440         a narrowing conversion, or widening conversion from signed
35441         to unsigned.
35443 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35445         PR rtl-optimization/56023
35446         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35447         dependent on debug instruction.
35449 2013-01-21  Martin Jambor  <mjambor@suse.cz>
35451         PR middle-end/56022
35452         * function.c (allocate_struct_function): Call
35453         invoke_set_current_function_hook earlier.
35455 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35457         * reload1.c (init_reload): Only initialize reload_obstack
35458         during the first call.
35460 2013-01-21  Marek Polacek  <polacek@redhat.com>
35462         * cfgloop.c (verify_loop_structure): Fix up grammar.
35464 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
35466         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35467         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35469 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35471         PR target/56058
35472         * config/arm/marvell-pj4.md: Update copyright year.
35473         Fix up use of alu to alu_reg and simple_alu_imm.
35475 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35477         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35479 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
35481         PR target/55433
35482         * lra-constraints.c (curr_insn_transform): Don't reuse original
35483         insn for secondary memory move when memory mode should be different.
35485 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35487         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35488         atomic_storedi_1): New patterns.
35490 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
35492         btver2 pipeline descriptions.
35493         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35494         descriptions.
35495         * config/i386/i386.md (btver2_decode): New type attributes.
35496         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35497         type attributes.
35498         * config/i386/btver2.md: New file describing btver2 pipelines.
35500 2013-01-19  Andrew Pinski  <apinski@cavium.com>
35502         PR tree-optimization/52631
35503         * tree-ssa-sccvn (visit_use): Before looking up the original
35504         statement, try looking up the simplified expression.
35506 2013-01-19  Anthony Green  <green@moxielogic.com>
35508         * config/moxie/moxie.c (moxie_expand_prologue): Set
35509         current_function_static_stack_size.
35511 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35513         PR tree-optimization/56029
35514         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35515         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35517 2013-01-18  Sharad Singhai  <singhai@google.com>
35519         PR tree-optimization/55995
35520         * dumpfile.c (dump_loc): Print location only if available.
35521         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35523 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
35525         PR target/55433
35526         * lra-constraints.c (curr_insn_transform): Reuse original insn for
35527         secondary memory move.
35528         (inherit_reload_reg): Use rclass instead of cl for
35529         check_secondary_memory_needed_p.
35531 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35533         PR middle-end/56015
35534         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35535         the case where writing real complex part of target modifies op1.
35537 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
35539         * config/aarch64/aarch64-simd.md
35540         (aarch64_vcond_internal<mode>): Handle unordered cases.
35541         * config/aarch64/iterators.md (v_cmp_result): New.
35543 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
35544             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35546         * config/arm/marvell-pj4.md: New file.
35547         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35548         * config/arm/arm.md (generic_sched): Add marvell_pj4.
35549         (generic_vfp): Likewise.
35550         * config/arm/arm-cores.def: Add marvell-pj4.
35551         * config/arm/arm-tune.md: Regenerate.
35552         * config/arm/arm-tables.opt: Regenerate.
35553         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35554         * doc/invoke.texi: Document marvell-pj4.
35556 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
35558         * config/aarch64/arm_neon.h: Map scalar types to standard types.
35560 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35562         PR debug/54114
35563         PR debug/54402
35564         PR debug/49888
35565         * var-tracking.c (negative_power_of_two_p): New.
35566         (global_get_addr_cache, local_get_addr_cache): New.
35567         (get_addr_from_global_cache, get_addr_from_local_cache): New.
35568         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
35569         heading comment.
35570         (vt_stack_offset_p): Remove.
35571         (vt_canon_true_dep): Always canonicalize loc's address.
35572         (clobber_overlapping_mems): Make sure we have a MEM.
35573         (local_get_addr_clear_given_value): New.
35574         (val_reset): Clear local cached entries.
35575         (compute_bb_dataflow): Create and release the local cache.
35576         Disable duplicate MEMs clobbering.
35577         (emit_notes_in_bb): Clobber MEMs likewise.
35578         (vt_emit_notes): Create and release the local cache.
35579         (vt_initialize, vt_finalize): Create and release the global
35580         cache, respectively.
35581         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35583 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35585         PR libmudflap/53359
35586         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35587         not found in the symtab.
35589 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35591         PR debug/56006
35592         PR rtl-optimization/55547
35593         PR rtl-optimization/53827
35594         PR debug/53671
35595         PR debug/49888
35596         * alias.c (offset_overlap_p): New, factored out of...
35597         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
35598         the conservative special case for symbolic constants.  Don't
35599         adjust zero sizes on alignment.
35601 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
35603         PR rtl-optimization/52573
35604         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35605         REG_UNUSED for the same register.
35607 2013-01-17  Richard Biener  <rguenther@suse.de>
35608             Marek Polacek  <polacek@redhat.com>
35610         PR rtl-optimization/55833
35611         * loop-unswitch.c (unswitch_loops): Move loop verification...
35612         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
35613         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35614         Set it to true when we're removing a loop from hierarchy tree in
35615         an irreducible region.
35616         (fix_bb_placements): Adjust caller.
35617         (fix_loop_placements): Likewise.
35619 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
35621         * config/avr/builtins.def (DEF_BUILTIN): Factor out
35622         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35623         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35624         Remove ID.  Adjust comments.
35625         * config/avr/avr-c.c (avr_builtin_name): Remove.
35626         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35627         * config/avr/avr.c (avr_tolower): New static function.
35628         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
35629         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35630         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35631         default expansion.
35633 2013-01-17  Jan Hubicka  <jh@suse.cz>
35635         PR tree-optimization/55273
35636         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35638 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
35640         PR target/55981
35641         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35642         store through atomic_store<mode>_1.
35643         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35645 2013-01-17  Martin Jambor  <mjambor@suse.cz>
35647         PR tree-optimizations/55264
35648         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35649         for virtual methods.
35650         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35651         virtual methods before inlining is over.
35652         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35653         virtual functions.
35654         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35655         non-virtual.
35657 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35659         PR rtl-optimization/56005
35660         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35661         pending reads for prefetch.
35663 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
35665         * config/aarch64/aarch64.md
35666         (*cstoresi_neg_uxtw): New pattern.
35667         (*cmovsi_insn_uxtw): New pattern.
35668         (*<optab>si3_uxtw): New pattern.
35669         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35670         (*<optab>si3_insn_uxtw): New pattern.
35671         (*bswapsi2_uxtw): New pattern.
35673 2013-01-16  Richard Biener  <rguenther@suse.de>
35675         * tree-inline.c (tree_function_versioning): Remove set but
35676         never used variable.
35678 2013-01-16  Richard Biener  <rguenther@suse.de>
35680         PR tree-optimization/55964
35681         * tree-flow.h (rename_variables_in_loop): Remove.
35682         (rename_variables_in_bb): Likewise.
35683         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35684         (copy_loop_before): Adjust and delete update-ssa status.
35685         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35686         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
35687         (rename_variables_in_loop): Remove.
35688         (slpeel_update_phis_for_duplicate_loop): Likewise.
35689         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
35690         use available cfg machinery instead of duplicating it.
35691         Update PHI nodes and perform poor-mans SSA update here.
35692         (slpeel_tree_peel_loop_to_edge): Adjust.
35694 2013-01-16  Richard Biener  <rguenther@suse.de>
35696         PR tree-optimization/54767
35697         PR tree-optimization/53465
35698         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
35699         (vrp_visit_phi_node): For PHI arguments coming via backedges
35700         drop all symbolical range information.
35701         (execute_vrp): Compute backedges.
35703 2013-01-16  Richard Biener  <rguenther@suse.de>
35705         * doc/install.texi: Update CLooG and ISL requirements to
35706         0.18.0 and 0.11.1.
35708 2013-01-16  Christian Bruel  <christian.bruel@st.com>
35710         PR target/55301
35711         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35712         (broken_move): Handle UNSPECV_SP_SWITCH_B.
35713         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35715 2013-01-16  DJ Delorie  <dj@redhat.com>
35717         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35718         (UNSPECV_SP_SWITCH_E): New.
35719         (sp_switch_1): Change to an unspec.
35720         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
35721         replace $r15.
35723 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
35725         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35726         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35727         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35728         (expand_mem_thread_fence): Ditto.
35729         (expand_mem_signal_fence): Ditto.
35730         (expand_atomic_load): Ditto.
35731         (expand_atomic_store): Ditto.
35733 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
35735         PR rtl-optimization/55547
35736         PR rtl-optimization/53827
35737         PR debug/53671
35738         PR debug/49888
35739         * alias.c (memrefs_conflict_p): Set sizes to negative after
35740         AND adjustments.
35742 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35744         PR target/55940
35745         * function.c (thread_prologue_and_epilogue_insns): Always
35746         add crtl->drap_reg to set_up_by_prologue.set, even if
35747         stack_realign_drap is false.
35749 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35751         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35752         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35753         *call): Fix indention.
35755 2013-01-15  Tom de Vries  <tom@codesourcery.com>
35757         PR target/55876
35758         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35759         Update comment.
35761 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35763         PR rtl-optimization/55153
35764         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35766 2013-01-15  Martin Jambor  <mjambor@suse.cz>
35768         PR tree-optimization/55920
35769         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35770         accesses as grp_to_be_debug_replaced.
35772 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35774         PR tree-optimization/55920
35775         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35776         there is non-useless type conversion needed from debug rhs to lhs,
35777         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35779 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
35780             Mikael Pettersson  <mikpe@it.uu.se>
35782         PR target/43961
35783         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
35784         Thumb.
35785         (ASM_OUTPUT_CASE_LABEL): Remove.
35786         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
35787         * final.c (shorten_branches): Update alignment of labels before
35788         jump tables if CASE_VECTOR_SHORTEN_MODE.
35790 2013-01-15  Richard Biener  <rguenther@suse.de>
35792         PR bootstrap/55961
35793         * system.h: Do not include gmp.h for building host tools.
35795 2013-01-15  Richard Biener  <rguenther@suse.de>
35797         PR middle-end/55882
35798         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
35799         account for bitpos when computing alignment.
35801 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
35803         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
35804         (ix86_target_macros_internal): Likewise.
35806         * config/i386/i386.c (m_CORE2I7): Removed.
35807         (m_CORE_HASWELL): New macro.
35808         (m_CORE_ALL): Likewise.
35809         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
35810         (initial_ix86_arch_features): Likewise.
35811         (processor_target_table): Initializations for Core avx2.
35812         (cpu_names): New names "core-avx2".
35813         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
35814         PROCESSOR_CORE_HASWELL.
35815         (ix86_issue_rate): New case.
35816         (ia32_multipass_dfa_lookahead): Likewise.
35817         (ix86_sched_init_global): Likewise.
35819         * config/i386/i386.h (TARGET_HASWELL): New macro.
35820         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
35821         (processor_type): New PROCESSOR_HASWELL.
35823 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35825         PR tree-optimization/55955
35826         * tree-vect-loop.c (vectorizable_reduction): Give up early on
35827         *SHIFT_EXPR and *ROTATE_EXPR codes.
35829         PR tree-optimization/48766
35830         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
35831         -ftrapv disable -fwrapv.
35833 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35835         PR target/55974
35836         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
35837         etc. to 1 and not to __flash.
35838         Use LL suffix for __INT24_MAX__ with -mint8.
35839         Use ULL suffix for __UINT24_MAX__ with -mint8.
35841 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35843         * config/avr/avr-arch.h
35844         (struct base_arch_s): Use typedef avr_arch_t instead.
35845         (struct arch_info_s): Use typedef avr_arch_info_t instead.
35846         (struct mcu_type_s): Use typedef avr_mcu_t instead.
35847         * config/avr/avr.c: Same.
35848         * config/avr/avr-devices.c: Same.
35849         * config/avr/driver-avr.c: Same.
35850         * config/avr/gen-avr-mmcu-texi.c: Same.
35851         * config/avr/avr-mcus.def: Adjust comment.
35853 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
35855         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
35856         * config/aarch64/iterators.md (VALLDI): New.
35858 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
35859             Andi Kleen  <ak@linux.intel.com>
35861         PR target/55948
35862         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
35863         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
35864         memmodel flag.
35866 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35868         * config/avr/avr-stdint.h: Remove trailing blanks.
35869         * config/avr/avr-log.h: Same.
35870         * config/avr/avr-arch.h: Same.
35871         * config/avr/avr-devices.c: Same.
35872         * config/avr/avr-dimode.md: Same.
35873         * config/avr/predicates.md: Same.
35874         * config/avr/avr-c.c: Same.  And fix typo.
35876         * config/avr/avr-protos.h: Same.  And:
35877         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
35878         (init_cumulative_args): Rename to avr_init_cumulative_args.
35879         (expand_prologue): Rename to avr_expand_prologue.
35880         (expand_epilogue): Rename to avr_expand_epilogue.
35881         (adjust_insn_length): Rename to avr_adjust_insn_length.
35882         (notice_update_cc): Rename to avr_notice_update_cc.
35883         (final_prescan_insn): Rename to avr_final_prescan_insn.
35884         * config/avr/avr.c: Same.
35885         * config/avr/avr.h: Same.
35886         * config/avr/avr.md: Remove trailing blanks.
35887         (prologue): Use avr_expand_prologue.
35888         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
35890 2013-01-14  Richard Biener  <rguenther@suse.de>
35892         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
35893         verify_location, collect_subblocks): New functions.
35894         (verify_gimple_in_cfg): Verify that locations only reference
35895         BLOCKs in the functions BLOCK tree.
35897 2013-01-14  Richard Biener  <rguenther@suse.de>
35899         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
35900         PHI argument.
35901         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
35902         unshare reference.
35903         (insert_out_of_ssa_copy_on_edge): Likewise.
35904         (rewrite_close_phi_out_of_ssa): Likewise.
35905         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
35906         debug expressions.
35907         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
35908         propagated constants.
35909         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
35910         can not be shared.
35912 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35914         * config/avr/avr-modes.def: Add GPL copyright notice.
35916 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
35918         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
35919         MEMMODEL_MASK to determine memory model.
35920         (atomic_store<mode>): Ditto from operands[2].
35921         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
35923 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
35925         PR fortran/55935
35926         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
35927         (fold_gimple_assign): Don't call unshare_expr here.
35928         (fold_ctor_reference): Call unshare_expr.
35930 2013-01-13  Terry Guo  <terry.guo@arm.com>
35932         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
35933         * doc/fragments.texi: Document MULTILIB_REUSE.
35934         * gcc.c (multilib_reuse): New internal spec.
35935         (set_multilib_dir): Also search multilib from multilib_reuse.
35936         * genmultilib (tmpmultilib3): Refactor code.
35937         (tmpmultilib4): Ditto.
35938         (multilib_reuse): New multilib argument.
35940 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
35942         * Makefile.in: Update copyright.
35944 2013-01-12  Tom de Vries  <tom@codesourcery.com>
35946         PR middle-end/55890
35947         * calls.c (expand_call): Check if arg_nr is valid.
35949 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
35951         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
35952         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
35953         documentation.  Add missing '__' in front of
35954         __builtin_ia32_packssdw256.
35956 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35958         PR target/55719
35959         * config/s390/s390.c (s390_preferred_reload_class): Do not return
35960         NO_REGS for larl operands.
35961         (s390_reload_larl_operand): Use s390_load_address instead of
35962         emit_move_insn.
35964 2013-01-11  Richard Biener  <rguenther@suse.de>
35966         * tree-cfg.c (verify_node_sharing_1): Split out from ...
35967         (verify_node_sharing): ... here.
35968         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
35970 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
35972         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
35973         Substitute TREECHECKING.
35974         * configure: Regenerate.
35975         * Makefile.in (TREECHECKING): New.
35977 2013-01-11  Richard Guenther  <rguenther@suse.de>
35979         PR tree-optimization/44061
35980         * tree-vrp.c (extract_range_basic): Compute zero as
35981         value-range for __builtin_constant_p of function parameters.
35983 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
35985         Update copyright years.
35987 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
35989         PR rtl-optimization/55672
35990         * lra-eliminations.c (mark_not_eliminable): Permit addition with
35991         const to be eliminable.
35993 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
35995         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
35996         * configure: Regenerate.
35998 2013-01-10  Richard Biener  <rguenther@suse.de>
36000         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36002 2013-01-10  Richard Biener  <rguenther@suse.de>
36004         PR bootstrap/55792
36005         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36006         locations for virtual PHI arguments.
36007         (rewrite_update_phi_arguments): Likewise.
36009 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
36011         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36012         on to assembler.
36014 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
36016         PR tree-optimization/55921
36017         * tree-complex.c (expand_complex_asm): New function.
36018         (expand_complex_operations_1): Call it for GIMPLE_ASM.
36020 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36022         PR target/55718
36023         * config/s390/s390.c (s390_symref_operand_p)
36024         (s390_loadrelative_operand_p): Merge the two functions.
36025         (s390_check_qrst_address, print_operand_address): Add parameters
36026         to s390_loadrelative_operand_p invokation.
36027         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36028         (s390_reload_larl_operand, s390_secondary_reload): Use
36029         s390_loadrelative_operand_p instead of s390_symref_operand_p.
36030         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36032 2013-01-09  Mike Stump  <mikestump@comcast.net>
36034         * dse.c (record_store): Remove unnecessary assert.
36036 2013-01-09  Jan Hubicka  <jh@suse.cz>
36038         PR tree-optimization/55569
36039         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36040         * cfgloop.h (scale_loop_profile): Likewise.
36042 2013-01-09  Jan Hubicka  <jh@suse.cz>
36044         PR lto/45375
36045         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36046         functions.
36047         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36049 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
36051         PR middle-end/55114
36052         * expr.h (maybe_emit_group_store): Declare.
36053         * expr.c (maybe_emit_group_store): New function.
36054         * builtins.c (expand_builtin_int_roundingfn): Call it.
36055         (expand_builtin_int_roundingfn_2): Likewise.
36057 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
36059         PR rtl-optimization/55829
36060         * lra-constraints.c (match_reload): Add code for absent output.
36061         (curr_insn_transform): Add code for reloads of matched inputs
36062         without output.
36064 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
36066         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36067         attribute of movddup insn to DF.
36068         (*vec_interleave_lowv2df): Ditto.
36069         (vec_dupv2df): Ditto.
36071 2013-01-09  Jan Hubicka  <jh@suse.cz>
36073         PR tree-optimiation/55875
36074         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36075         EVERY_ITERATION parameter.
36076         (number_of_iterations_exit): Check if exit is executed every iteration.
36077         (idx_infer_loop_bounds): Similarly here.
36078         (n_of_executions_at_most): Simplify
36079         to only test for cases where statement is dominated by the
36080         particular bound; handle correctly the "postdominance" test.
36081         (scev_probably_wraps_p): Use max loop iterations info
36082         as a global bound first.
36084 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
36085             Nick Clifton  <nickc@redhat.com>
36087         * config/v850/v850.md (cbranchsf4): New pattern.
36088         (cstoresf4): New pattern.
36089         (cbranchdf4): New pattern.
36090         (cstoredf4): New pattern.
36091         (movsicc): Disallow floating point comparisons.
36092         (cmpsf_le_insn): Fix order of operators.
36093         (cmpsf_lt_insn): Likewise.
36094         (cmpsf_eq_insn): Likewise.
36095         (cmpdf_le_insn): Likewise.
36096         (cmpdf_lt_insn): Likewise.
36097         (cmpdf_eq_insn): Likewise.
36098         (cmpsf_ge_insn): Use LE comparison.
36099         (cmpdf_ge_insn): Likewise.
36100         (cmpsf_gt_insn): Use LT comparison.
36101         (cmpdf_gt_insn): Likewise.
36102         (cmpsf_ne_insn): Delete pattern.
36103         (cmpdf_ne_insn): Delete pattern.
36104         * config/v850/v850.c (v850_gen_float_compare): Use
36105         gen_cmpdf_eq_insn for NE comparison.
36106         (v850_float_z_comparison_operator)
36107         (v850_float_nz_comparison_operator): Move from here ...
36108         * config/v850/predicates.md: ... to here.  Move GT and GE
36109         comparisons into v850_float_z_comparison_operator.
36110         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36111         Delete prototype.
36112         (v850_float_nz_comparison_operator): Likewise.
36114 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36116         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36117         with calls to gen_insvsi/gen_insvdi.
36119 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
36121         * config/i386/i386.c (initial_ix86_tune_features): Set up
36122         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36124 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
36125             Jakub Jelinek  <jakub@redhat.com>
36127         PR tree-optimization/48189
36128         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36129         If nitercst is 0, don't predict the exit edge.
36131 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36133         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36134         in asm_fprintf with reg_names.
36135         (aarch64_print_operand_address): Likewise.
36136         (aarch64_return_addr): Likewise.
36137         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36139 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36141         * config/pa/pa.h (VAL_U6_BITS_P): Define.
36142         (INT_U6_BITS): Likewise.
36143         * config/pa/predicates.md (uint6_operand): New predicate.
36144         (shift5_operand, shift6_operand): Likewise.
36145         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36146         arith32_operand.
36147         (lshrdi3): Use shift6_operand.
36148         (shrpsi4, shrpdi4): New insn patterns.
36149         (extzv): Delete expander.
36150         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
36151         predicates in unamed zero extract patterns.  Tighten common constraint.
36152         (extv): Delete expander.
36153         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
36154         predicates in unamed sign extract patterns.  Tighten common constraint.
36155         (insv): Delete expander.
36156         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
36157         predicates in unamed insert patterns.  Tighten common constraint.
36158         Change uint32_operand predicate to uint6_operand predicate in unamed
36159         DImode pattern to insert constant values of type 1...1xxxx.
36161 2013-01-04  Jan Hubicka  <jh@suse.cz>
36163         PR tree-optimization/55823
36164         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36165         issue.
36167 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36168             Uros Bizjak  <ubizjak@gmail.com>
36170         PR rtl-optimization/55845
36171         * df-problems.c (can_move_insns_across): Stop scanning at
36172         volatile_insn_p source instruction or give up if
36173         across_from .. across_to range contains any volatile_insn_p
36174         instructions.
36176 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36178         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36179         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36180         Declare.
36181         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36182         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36184 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36186         PR fortran/55341
36187         * asan.c (asan_clear_shadow): New function.
36188         (asan_emit_stack_protection): Use it.
36190 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36192         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36193         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36194         with tab instead of space.
36196 2013-01-08  Nick Clifton  <nickc@redhat.com>
36198         * config/rl78/rl78.c (rl78_expand_prologue): Always select
36199         register bank 0 at the start of an interrupt handler.
36200         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36201         MDBH registers.
36203 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36205         * config/aarch64/aarch64-simd.md
36206         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36207         (aarch64_simd_bsl): Likewise.
36208         (aarch64_vcond_internal<mode>): Likewise.
36209         (vcond<mode><mode>): Likewise.
36210         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36211         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36213 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36215         * config/aarch64/aarch64-builtins.c
36216         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36218 2013-01-08  Martin Jambor  <mjambor@suse.cz>
36220         PR debug/55579
36221         * tree-sra.c (analyze_access_subtree): Return true also after
36222         potentially creating a debug-only replacement.
36224 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36226         PR middle-end/55890
36227         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36229         PR tree-optimization/54120
36230         * tree-vrp.c (range_fits_type_p): Don't allow
36231         src_precision < precision from signed vr to unsigned_p
36232         if vr->min or vr->max is negative.
36233         (simplify_float_conversion_using_ranges): Test can_float_p
36234         against CODE_FOR_nothing.
36236 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36237             Richard Biener  <rguenther@suse.de>
36239         PR middle-end/55851
36240         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36241         types instead of just INTEGER_TYPE types.
36243 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
36245         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36246         TF_SIZE): Define.
36248 2013-01-07  Steve Ellcey  <sellcey@mips.com>
36250         PR target/42661
36251         * config/mips/mips.opt: Change mad to mmad to match documentation.
36253 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36255         PR target/55897
36256         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36257         .progmemx.data now.
36259 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36261         PR target/55897
36262         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36263         (avr_addrspace_t): Add .section_name field.
36264         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36265         array size.
36266         (avr_addrspace): Same.  Initialize .section_name.  Remove last
36267         NULL entry.  Put __memx into .progmemx.data.
36268         (progmem_section_prefix): Remove.
36269         (avr_asm_init_sections): No need to initialize progmem_section.
36270         (avr_asm_named_section): Use avr_addrspace[].section_name to get
36271         section name prefix.
36272         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
36273         retrieve the progmem section.
36274         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36275         boundary to run over avr_addrspace[].
36276         (avr_register_target_pragmas): Ditto.
36278 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
36280         * varasm.c (output_constant_def_contents): For asan_protect_global
36281         protected strings, adjust DECL_ALIGN if needed, before testing for
36282         anchored symbols.
36283         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36284         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
36285         normal decls.
36286         (output_object_block): For asan protected decls, emit asan padding
36287         after their contents.
36288         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36289         (asan_finish_file): Test it here instead.
36291 2013-01-07  Nick Clifton  <nickc@redhat.com>
36292             Matthias Klose  <doko@debian.org>
36293             Doug Kwan  <dougkwan@google.com>
36294             H.J. Lu  <hongjiu.lu@intel.com>
36296         PR driver/55470
36297         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36299         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36301         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36303         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36305         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36307 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36309         PR target/54461
36310         * doc/install.texi (Cross-Compiler-Specific Options): Document
36311         --with-avrlibc.
36313 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
36315         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36316         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36317         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36318         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36319         vqmovun_high_s64): Fix source operand number and update copyright.
36321 2013-01-07  Richard Biener  <rguenther@suse.de>
36323         PR middle-end/55890
36324         * gimple.h (gimple_call_builtin_p): New overload.
36325         * gimple.c (validate_call): New function.
36326         (gimple_call_builtin_p): Likewise.
36327         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36328         Use gimple_call_builtin_p.
36329         (find_func_clobbers): Likewise.
36330         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36331         (strlen_optimize_stmt): Likewise.
36333 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36335         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36336         (vld1q_dup_*): Likewise.
36337         (vld1_*): Likewise.
36338         (vld1q_*): Likewise.
36339         (vld1_lane_*): Likewise.
36340         (vld1q_lane_*): Likewise.
36342 2013-01-07  Richard Biener  <rguenther@suse.de>
36344         * lto-streamer.h (LTO_minor_version): Bump to 2.
36346 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36348         * config/aarch64/aarch64-protos.h
36349         (aarch64_const_double_zero_rtx_p): Rename to...
36350         (aarch64_float_const_zero_rtx_p): ...this.
36351         (aarch64_float_const_representable_p): New.
36352         (aarch64_output_simd_mov_immediate): Likewise.
36353         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36354         move immediate case.
36355         * config/aarch64/aarch64.c
36356         (aarch64_const_double_zero_rtx_p): Rename to...
36357         (aarch64_float_const_zero_rtx_p): ...this.
36358         (aarch64_print_operand): Allow printing of new constants.
36359         (aarch64_valid_floating_const): New.
36360         (aarch64_legitimate_constant_p): Check for valid floating-point
36361         constants.
36362         (aarch64_simd_valid_immediate): Likewise.
36363         (aarch64_vect_float_const_representable_p): New.
36364         (aarch64_float_const_representable_p): Likewise.
36365         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36366         (aarch64_output_simd_mov_immediate): New.
36367         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36368         (*movdf_aarch64): Likewise.
36369         * config/aarch64/constraints.md (Ufc): New.
36370         (Y): call aarch64_float_const_zero_rtx.
36371         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36373 2013-01-07  Richard Biener  <rguenther@suse.de>
36375         PR tree-optimization/55888
36376         PR tree-optimization/55862
36377         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36378         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36379         not if it is contained therein.
36381 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36383         * config/avr/t-avr: Typo.
36385 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36387         PR55243
36388         * config/avr/t-avr: Don't automatically rebuild
36389         $(srcdir)/config/avr/t-multilib
36390         $(srcdir)/config/avr/avr-tables.opt
36391         $(srcdir)/doc/avr-mmcu.texi
36392         (avr-mcus): New phony target to build them on request.
36393         (s-avr-mlib, s-avr-mmcu-texi): Remove.
36394         * avr/avr-mcus.def: Adjust comments.
36396 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
36398         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36400 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36402         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36404 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36406         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36408 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
36410         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36411         to generate profiling.
36412         * config/rs6000/aix64.h (LIB_SPEC): Same.
36414 2013-01-04  Andrew Pinski  <apinski@cavium.com>
36416         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36417         New function.
36418         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36420 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
36422         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36423         unconditionally.
36424         (ix86_expand_move): Ditto.
36425         (ix86_zero_extend_to_Pmode): Ditto.
36426         (ix86_expand_call): Ditto.
36427         (ix86_expand_special_args_builtin): Ditto.
36428         (ix86_expand_builtin): Ditto.
36430 2013-01-04  Richard Biener  <rguenther@suse.de>
36432         PR tree-optimization/55862
36433         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36434         translating them through PHI nodes.
36436 2013-01-04  Martin Jambor  <mjambor@suse.cz>
36438         PR tree-optimization/55755
36439         * tree-sra.c (sra_modify_assign): Do not check that an access has no
36440         children when trying to avoid producing a VIEW_CONVERT_EXPR.
36442 2013-01-04  Marek Polacek  <polacek@redhat.com>
36444         PR middle-end/55859
36445         * opts.c (default_options_optimization): Clarify error message.
36447 2013-01-04  Richard Biener  <rguenther@suse.de>
36449         PR middle-end/55863
36450         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36451         reassociation.
36453 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36455         PR target/53789
36456         * config/pa/pa.md (movsi): Revert previous change.
36457         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36458         references.
36460 2013-01-03  Richard Henderson  <rth@redhat.com>
36462         * config/i386/i386.c (ix86_expand_move): Always assign to op1
36463         after eliminating TLS symbols.
36465 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
36467         PR bootstrap/50167
36468         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36469         * graphite-poly.c (debug_gmp_value): Likewise.
36471 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
36473         PR target/55712
36474         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36475         selected code model, define __code_mode_small__, __code_model_medium__,
36476         __code_model_large__, __code_model_32__ or __code_model_kernel__.
36477         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36478         xchg temporary register with %k.  Declare temporary register as
36479         early clobbered.
36480         [__x86_64__]: For medium and large code models, preserve %rbx register.
36482 2013-01-03  Richard Biener  <rguenther@suse.de>
36484         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36485         (dump_subscript): Adjust.
36486         (finalize_ddr_dependent): Do not dump redundant info.
36487         (analyze_siv_subscript): Adjust.
36488         (subscript_dependence_tester): Likewise.
36489         (compute_affine_dependence): Likewise.
36491 2013-01-03  Richard Biener  <rguenther@suse.de>
36493         Revert
36494         2013-01-03  Richard Biener  <rguenther@suse.de>
36496         PR tree-optimization/55857
36497         * tree-vect-stmts.c (vectorizable_load): Do not setup
36498         re-alignment for invariant loads.
36500         2013-01-02  Richard Biener  <rguenther@suse.de>
36502         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36503         invariant load do not generate a vector load from the scalar location.
36505 2013-01-03  Richard Biener  <rguenther@suse.de>
36507         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36508         for not vectorizing.
36509         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36510         not build INDIRECT_REFs, call get_name once only.
36511         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
36512         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36514 2013-01-03  Richard Biener  <rguenther@suse.de>
36516         PR tree-optimization/55857
36517         * tree-vect-stmts.c (vectorizable_load): Do not setup
36518         re-alignment for invariant loads.
36520 2013-01-03  Richard Biener  <rguenther@suse.de>
36522         PR lto/55848
36523         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36524         prefer a built-in decl.
36526 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36528         * gcc.c (process_command): Update copyright notice dates.
36529         * gcov.c (print_version): Likewise.
36530         * gcov-dump.c (print_version): Likewise.
36532         PR rtl-optimization/55838
36533         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36534         iv0.step, iv1.step and step.
36536 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36537             Marc Glisse  <marc.glisse@inria.fr>
36539         PR tree-optimization/55832
36540         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36541         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36542         integer_{one,zero}_node.
36544 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36546         PR debug/54402
36547         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36548         * var-tracking.c (reverse_op): Don't add reverse ops to
36549         VALUEs that have already
36550         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36552 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
36554         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36556 2013-01-02  Teresa Johnson  <tejohnson@google.com>
36558         * dumpfile.c (dump_loc): Print filename with location.
36559         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36560         new location_t parameter to emit complete unroll message with
36561         new dump framework.
36562         (canonicalize_loop_induction_variables): Compute loops location
36563         and pass to try_unroll_loop_completely.
36564         * loop-unroll.c (report_unroll_peel): New function.
36565         (peel_loops_completely): Use new dump format with location
36566         for main dumpfile message, and invoke report_unroll_peel on success.
36567         (decide_unrolling_and_peeling): Ditto.
36568         (decide_peel_once_rolling): Remove old dumpfile message subsumed
36569         by report_unroll_peel.
36570         (decide_peel_completely): Ditto.
36571         (decide_unroll_constant_iterations): Ditto.
36572         (decide_unroll_runtime_iterations): Ditto.
36573         (decide_peel_simple): Ditto.
36574         (decide_unroll_stupid): Ditto.
36575         * cfgloop.c (get_loop_location): New function.
36576         * cfgloop.h (get_loop_location): Declare.
36578 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36580         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36581         NULL.
36583 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36585         PR middle-end/55198
36586         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36587         BLKmode objects when EXPAND_MEMORY is specified.
36589 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36591         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36592         in loop predicate.
36593         (fold_builtin_cpu): Do not share cpu model decls across statements.
36595 2013-01-02  Jason Merrill  <jason@redhat.com>
36597         PR c++/55804
36598         * tree.c (build_array_type_1): Revert earlier change.
36600 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
36602         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36603         "cortex-a57".
36604         * config/aarch64/aarch64-tune.md: Re-generate.
36606 2013-01-02  Richard Biener  <rguenther@suse.de>
36608         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36609         invariant load do not generate a vector load from the scalar location.
36611 2013-01-02  Richard Biener  <rguenther@suse.de>
36613         PR bootstrap/55784
36614         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36615         * configure: Regenerate.
36617 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36619         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36620         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36621         (expand_builtin_int_roundingfn_2): Keep the original target around
36622         for the fallback case.
36624 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36626         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36627         to be clear for sign changes.
36629 2013-01-01  Jan Hubicka  <jh@suse.cz>
36631         * ipa-inline-analysis.c: Fix formatting.
36633 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
36635         PR tree-optimization/55831
36636         * tree-vect-loop.c (get_initial_def_for_induction): Use
36637         gsi_after_labels instead of gsi_start_bb.
36639 Copyright (C) 2013 Free Software Foundation, Inc.
36641 Copying and distribution of this file, with or without modification,
36642 are permitted in any medium without royalty provided the copyright
36643 notice and this notice are preserved.