2013-12-02 Yvan Roux <yvan.roux@linaro.org>
[official-gcc.git] / gcc / ChangeLog
blobfb46b803f25f4c562e92f8ac1363495b2897d685
1 2013-12-02  Yvan Roux  <yvan.roux@linaro.org>
3         * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
4         when rclass is GENERAL_REGS.
6 2013-12-02 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
8         * loop-unroll.c (decide_unroll_constant_iterations): Check macro 
9         TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
11 2013-12-01  Eric Botcazou  <ebotcazou@adacore.com>
13         * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
14         identifier node.
16 2013-12-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18         * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
20 2013-11-30  Paulo Matos  <pmatos@broadcom.com>
21             Eric Botcazou  <ebotcazou@adacore.com>
23         * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
24         as applied to nonzero_sign_valid when last_set_mode has less precision
25         than mode.
27 2013-11-30  Tobias Burnus  <burnus@net-b.de>
29         PR sanitizer/59275
30         * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
31         environment variable and link to a list with flags.
32         (-fsanitize=thread): Ditto and update link.
34 2013-11-29  Vladimir Makarov  <vmakarov@redhat.com>
36         PR rtl-optimization/59340
37         * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
39         Revert
40         2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
42         * lra.c (lra): Set lra_in_progress before check_rtl call.
43         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
44         adding clobber regs when LRA is running.
46 2013-11-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
48         PR target/59289
49         * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
51 2013-11-29  Richard Biener  <rguenther@suse.de>
53         PR middle-end/59208
54         * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
55         free_stmt_operands, update_stmt_operands): Add struct function
56         argument.
57         * tree-ssa-operands.c: Remove uses of cfun, propagate struct
58         function argument from fini_ssa_operands, verify_ssa_operands,
59         free_stmt_operands and update_stmt_operands everywhere.
60         * tree-ssanames.h (release_ssa_name_fn): New.
61         (release_ssa_name): Inline wrapper around release_ssa_name_fn.
62         * tree-ssanames.c (release_ssa_name): Rename to ...
63         (release_ssa_name_fn): ... this and add struct function argument.
64         * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
65         (update_stmt_fn): New function.
66         * tree-cfg.c (move_block_to_fn): Adjust.
67         * tree-if-conv.c (free_bb_predicate): Likewise.
68         * tree-ssa.c (verify_ssa): Likewise.
69         (delete_tree_ssa): Likewise.
70         * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
71         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
72         update_stmt_fn instead of update_stmt.
74 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
76         * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
77         for LRA.
79 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
81          * config/arm/arm.md (store_minmaxsi): Use only when
82         optimize_function_for_size_p.
84 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
85             Yury Gribov  <y.gribov@samsung.com>
87         PR sanitizer/59063
88         * config/gnu-user.h: Removed old code for setting up sanitizer
89         libs.
90         * gcc.c: Using libsanitizer spec instead of explicit libs.
92 2013-11-29  Ilya Enkovich  <ilya.enkovich@intel.com>
94         Reverted:
95         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
96         * cgraph.h (varpool_node): Add need_bounds_init field.
97         * lto-cgraph.c (lto_output_varpool_node): Output
98         need_bounds_init value.
99         (input_varpool_node): Read need_bounds_init value.
100         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
102         Reverted:
103         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
104         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
105         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
106         (gen_type_die_with_usage): Skip pointer bounds.
107         (dwarf2out_global_decl): Likewise.
109         Reverted:
110         2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
111         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
112         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
113         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
114         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
115         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
116         (gimple_call_with_bounds_p): New.
117         (gimple_call_set_with_bounds): New.
118         (gimple_call_num_nobnd_args): Remove.
119         (gimple_call_nobnd_arg): Remove.
120         * tree.h (CALL_WITH_BOUNDS_P): New.
121         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
123         Reverted:
124         2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
125         * common.opt (fcheck-pointer-bounds): Move to ...
126         * c-family/c.opt: ... here.
127         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
128         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
129         * langhooks.h (lang_hooks): Remove chkp_supported field.
130         * toplev.c (process_options): Remove chkp_supported check.
132         Reverted:
133         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
134         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
135         * tree.h (POINTER_BOUNDS_P): New.
136         (BOUNDED_TYPE_P): New.
137         (BOUNDED_P): New.
138         (pointer_bounds_type_node): New.
139         * tree.c (build_common_tree_nodes): Initialize
140         pointer_bounds_type_node.
141         * gimple.h (gimple_call_get_nobnd_arg_index): New.
142         (gimple_call_num_nobnd_args): New.
143         (gimple_call_nobnd_arg): New.
144         (gimple_return_retbnd): New.
145         (gimple_return_set_retbnd): New
146         * gimple.c (gimple_build_return): Increase number of ops
147         for return statement.
148         (gimple_call_get_nobnd_arg_index): New.
149         * gimple-pretty-print.c (dump_gimple_return): Print second op.
151         Reverted:
152         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
153         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
154         with "chkp ctor" and "bnd_legacy" attributes.
155         * gimplify.c (gimplify_init_constructor): Avoid infinite
156         loop during gimplification of bounds initializer.
158         Reverted:
159         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
160         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
161         (handle_bnd_legacy): New.
162         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
163         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
164         attributes.
166         Reverted:
167         2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
168         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
169         (BT_FN_PTR_CONST_PTR): New.
170         (BT_FN_CONST_PTR_CONST_PTR): New.
171         (BT_FN_PTR_CONST_PTR_SIZE): New.
172         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
173         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
174         (BT_FN_VOID_CONST_PTR_SIZE): New.
175         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
176         * chkp-builtins.def: New.
177         * builtins.def: include chkp-builtins.def.
178         (DEF_CHKP_BUILTIN): New.
179         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
180         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
181         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
182         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
183         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
184         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
185         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
186         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
187         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
188         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
189         * common.opt (fcheck-pointer-bounds): New.
190         * toplev.c (process_options): Check Pointer Bounds Checker is
191         supported.
192         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
194         Reverted:
195         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
196         * target.def (builtin_chkp_function): New.
197         (chkp_bound_type): New.
198         (chkp_bound_mode): New.
199         (fn_abi_va_list_bounds_size): New.
200         (load_bounds_for_arg): New.
201         (store_bounds_for_arg): New.
202         * targhooks.h (default_load_bounds_for_arg): New.
203         (default_store_bounds_for_arg): New.
204         (default_fn_abi_va_list_bounds_size): New.
205         (default_chkp_bound_type): New.
206         (default_chkp_bound_mode): New.
207         (default_builtin_chkp_function): New.
208         * targhooks.c (default_load_bounds_for_arg): New.
209         (default_store_bounds_for_arg): New.
210         (default_fn_abi_va_list_bounds_size): New.
211         (default_chkp_bound_type): New.
212         (default_chkp_bound_mode); New.
213         (default_builtin_chkp_function): New.
214         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
215         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
216         (TARGET_STORE_BOUNDS_FOR_ARG): New.
217         (TARGET_BUILTIN_CHKP_FUNCTION): New.
218         (TARGET_CHKP_BOUND_TYPE): New.
219         (TARGET_CHKP_BOUND_MODE): New.
220         * doc/tm.texi: Regenerated.
221         * langhooks.h (lang_hooks): Add chkp_supported field.
222         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
223         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
225         Reverted:
226         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
227         * config/i386/constraints.md (B): New.
228         (Ti): New.
229         (Tb): New.
230         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
231         * config/i386/i386-modes.def (BND32): New.
232         (BND64): New.
233         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
234         * config/i386/i386.c (isa_opts): Add mmpx.
235         (regclass_map): Add bound registers.
236         (dbx_register_map): Likewise.
237         (dbx64_register_map): Likewise.
238         (svr4_dbx_register_map): Likewise.
239         (PTA_MPX): New.
240         (ix86_option_override_internal): Support MPX ISA.
241         (ix86_conditional_register_usage): Support bound registers.
242         (print_reg): Likewise.
243         (ix86_code_end): Add MPX bnd prefix.
244         (output_set_got): Likewise.
245         (ix86_output_call_insn): Likewise.
246         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
247         (ix86_print_operand_punct_valid_p): Likewise.
248         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
249         UNSPEC_BNDMK_ADDR.
250         (ix86_class_likely_spilled_p): Add bound regs support.
251         (ix86_hard_regno_mode_ok): Likewise.
252         (x86_order_regs_for_local_alloc): Likewise.
253         (ix86_bnd_prefixed_insn_p): New.
254         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
255         (FIXED_REGISTERS): Add bound registers.
256         (CALL_USED_REGISTERS): Likewise.
257         (REG_ALLOC_ORDER): Likewise.
258         (HARD_REGNO_NREGS): Likewise.
259         (TARGET_MPX): New.
260         (VALID_BND_REG_MODE): New.
261         (FIRST_BND_REG): New.
262         (LAST_BND_REG): New.
263         (reg_class): Add BND_REGS.
264         (REG_CLASS_NAMES): Likewise.
265         (REG_CLASS_CONTENTS): Likewise.
266         (BND_REGNO_P): New.
267         (ANY_BND_REG_P): New.
268         (BNDmode): New.
269         (HI_REGISTER_NAMES): Add bound registers.
270         * config/i386/i386.md (UNSPEC_BNDMK): New.
271         (UNSPEC_BNDMK_ADDR): New.
272         (UNSPEC_BNDSTX): New.
273         (UNSPEC_BNDLDX): New.
274         (UNSPEC_BNDLDX_ADDR): New.
275         (UNSPEC_BNDCL): New.
276         (UNSPEC_BNDCU): New.
277         (UNSPEC_BNDCN): New.
278         (UNSPEC_MPX_FENCE): New.
279         (BND0_REG): New.
280         (BND1_REG): New.
281         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
282         (length_immediate): Likewise.
283         (prefix_0f): Likewise.
284         (memory): Likewise.
285         (prefix_rep): Check for bnd prefix.
286         (length_nobnd): New.
287         (length): Use length_nobnd if specified.
288         (BND): New.
289         (bnd_ptr): New.
290         (BNDCHECK): New.
291         (bndcheck): New.
292         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
293         (*jcc_2): Likewise.
294         (jump): Likewise.
295         (simple_return_internal): Likewise.
296         (simple_return_pop_internal): Likewise.
297         (*indirect_jump): Add MPX bnd prefix.
298         (*tablejump_1): Likewise.
299         (simple_return_internal_long): Likewise.
300         (simple_return_indirect_internal): Likewise.
301         (<mode>_mk): New.
302         (*<mode>_mk): New.
303         (mov<mode>): New.
304         (*mov<mode>_internal_mpx): New.
305         (<mode>_<bndcheck>): New.
306         (*<mode>_<bndcheck>): New.
307         (<mode>_ldx): New.
308         (*<mode>_ldx): New.
309         (<mode>_stx): New.
310         (*<mode>_stx): New.
311         * config/i386/predicates.md (lea_address_operand): Rename to...
312         (address_no_seg_operand): ... this.
313         (address_mpx_no_base_operand): New.
314         (address_mpx_no_index_operand): New.
315         (bnd_mem_operator): New.
316         * config/i386/i386.opt (mmpx): New.
317         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
318         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
320         Reverted:
321         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
322         * mode-classes.def (MODE_POINTER_BOUNDS): New.
323         * tree.def (POINTER_BOUNDS_TYPE): New.
324         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
325         (POINTER_BOUNDS_MODE): New.
326         (make_pointer_bounds_mode): New.
327         * machmode.h (POINTER_BOUNDS_MODE_P): New.
328         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
329         (layout_type): Support POINTER_BOUNDS_TYPE.
330         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
331         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
332         (type_contains_placeholder_1): Likewise.
333         * tree.h (POINTER_BOUNDS_TYPE_P): New.
334         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
335         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
337 2013-11-29  Richard Biener  <rguenther@suse.de>
339         PR middle-end/59338
340         * tree-cfg.c (verify_expr): Restrict bounds verification of
341         BIT_FIELD_REF arguments to non-aggregate typed base objects.
343 2013-11-29  Richard Biener  <rguenther@suse.de>
345         PR tree-optimization/59334
346         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
347         in previous commit.
349 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
350             Richard Biener  <rguenther@suse.de>
352         PR lto/59326
353         * omp-low.c (simd_clone_create): Return NULL if for definition
354         !cgraph_function_with_gimple_body_p (old_node).  Call cgraph_get_body
355         before calling cgraph_function_versioning.
356         (expand_simd_clones): Look for "omp declare simd" attribute first.
357         Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
358         Punt if node->global.inlined_to.
359         (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
360         Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
361         * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
363 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
365         PR lto/59326
366         * tree-core.h (enum omp_clause_schedule_kind): Add
367         OMP_CLAUSE_SCHEDULE_LAST.
368         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
369         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
370         (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
371         (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
372         * lto-streamer-out.c (lto_is_streamable): Allow streaming
373         OMP_CLAUSE.
374         (DFS_write_tree_body): Handle OMP_CLAUSE.
375         * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New
376         function.
377         (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
378         (write_ts_omp_clause_tree_pointers): New function.
379         (streamer_write_tree_body): Call it for OMP_CLAUSE.
380         (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
381         * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New
382         function.
383         (unpack_value_fields): Call it for OMP_CLAUSE.
384         (streamer_alloc_tree): Handle OMP_CLAUSE.
385         (lto_input_ts_omp_clause_tree_pointers): New function.
386         (streamer_read_tree_body): Call it for OMP_CLAUSE.
388 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
390         * doc/implement-c.texi: Document C11 implementation-defined
391         behavior.  Refer to -ffp-contract=fast for contraction behavior.
392         * doc/invoke.texi (-std=c99, std=c11): Update description of
393         completeness.
394         (-std=gnu99): Don't mention as future default.
395         (-std=gnu11): Mention as intended future default.
396         * doc/standards.texi: Update descriptions of C99 and C11 support.
397         Limit statement about C99 facilities for freestanding
398         implementations to some platforms only.
400 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
402         PR middle-end/59327
403         * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit
404         HWI hosts.
406 2013-11-28  Vladimir Makarov  <vmakarov@redhat.com>
408         PR target/57293
409         * ira.h (ira_setup_eliminable_regset): Remove parameter.
410         * ira.c (ira_setup_eliminable_regset): Ditto.  Add
411         SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
412         Don't call lra_init_elimination.
413         (ira): Call ira_setup_eliminable_regset without arguments.
414         * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
415         from ira_setup_eliminable_regset call.
416         * gcse.c (calculate_bb_reg_pressure): Ditto.
417         * haifa-sched.c (sched_init): Ditto.
418         * lra.h (lra_init_elimination): Remove the prototype.
419         * lra-int.h (lra_insn_recog_data): New member sp_offset.  Move
420         used_insn_alternative upper.
421         (lra_eliminate_regs_1): Add one more parameter.
422         (lra-eliminate): Ditto.
423         * lra.c (lra_invalidate_insn_data): Set sp_offset.
424         (setup_sp_offset): New.
425         (lra_process_new_insns): Call setup_sp_offset.
426         (lra): Add argument to lra_eliminate calls.
427         * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
428         (get_equiv_with_elimination): New.
429         (process_addr_reg): Call get_equiv_with_elimination instead of
430         get_equiv_substitution.
431         (equiv_address_substitution): Ditto.
432         (loc_equivalence_change_p): Ditto.
433         (loc_equivalence_callback, lra_constraints): Ditto.
434         (curr_insn_transform): Ditto.  Print the sp offset
435         (process_alt_operands): Prevent stack pointer reloads.
436         (lra_constraints): Remove one argument from lra_eliminate call.
437         Move it up.  Mark used hard regs bfore it.  Use
438         get_equiv_with_elimination instead of get_equiv_substitution.
439         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
440         assert for param values combination.  Use sp offset.  Add argument
441         to lra_eliminate_regs_1 calls.
442         (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
443         (curr_sp_change): New static var.
444         (mark_not_eliminable): Add parameter.  Update curr_sp_change.
445         Don't prevent elimination to sp if we can calculate its change.
446         Pass the argument to mark_not_eliminable calls.
447         (eliminate_regs_in_insn): Add a parameter.  Use sp offset.  Add
448         argument to lra_eliminate_regs_1 call.
449         (update_reg_eliminate): Move calculation of hard regs for spill
450         lower.  Switch off lra_in_progress temporarily to generate regs
451         involved into elimination.
452         (lra_init_elimination): Rename to init_elimination.  Make it
453         static.  Set up insn sp offset, check the offsets at the end of
454         BBs.
455         (process_insn_for_elimination): Add parameter.  Pass its value to
456         eliminate_regs_in_insn.
457         (lra_eliminate): : Add parameter.  Pass its value to
458         process_insn_for_elimination.  Add assert for param values
459         combination.  Call init_elimination.  Don't update offsets in
460         equivalence substitutions.
461         * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
462         for created stack slot.
463         (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
464         onto stack slot.
466 2013-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
468         * config/arm/iterators.md (vrint_conds): New int attribute.
469         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
470         (smax<mode>3): Likewise.
471         (smin<mode>3): Likewise.
473 2013-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
475         * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
476         * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
477         * tree-ssanames.h (set_range_info): Add range_type argument.
478         (duplicate_ssa_name_range_info): Likewise.
479         * tree-ssanames.c (set_range_info): Take the range type as argument
480         and store it in SSA_NAME_ANTI_RANGE_P.
481         (duplicate_ssa_name_range_info): Likewise.
482         (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
483         (set_nonzero_bits): Update call to set_range_info.
484         (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
485         * tree-ssa-copy.c (fini_copy_prop): Likewise.
486         * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
487         (vrp_finalize): Likewise, passing anti-ranges directly.
489 2013-11-28  Richard Biener  <rguenther@suse.de>
491         PR tree-optimization/59330
492         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
493         and fix delayed marking of free calls not necessary.
495 2013-11-28  Andrew MacLeod  <amacleod@redhat.com>
497         * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
498         is_gimple_reg_type.
499         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
501 2013-11-28  Terry Guo  <terry.guo@arm.com>
503         * config/arm/arm.c (v7m_extra_costs): New table.
504         (arm_v7m_tune): Use it.
506 2013-11-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
508         * config/sol2.h (TIME_LIBRARY): Define.
510 2013-11-28  Richard Biener  <rguenther@suse.de>
512         PR lto/59323
513         * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
514         CONST_DECLs in function context are not indexable.
516 2013-11-28  Chung-Ju Wu  <jasonwucj@gmail.com>
518         * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
519         not optimized for size.
521 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
523         * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
524         fields.
525         (expand_stack_vars): For -fsanitize=address, use (and set initially)
526         data->asan_base as base for vars and update asan_alignb.
527         (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
528         Pass them to asan_emit_stack_protection.
529         * asan.c (asan_detect_stack_use_after_return): New variable.
530         (asan_emit_stack_protection): Add pbase and alignb arguments.
531         Implement use after return sanitization.
532         * asan.h (asan_emit_stack_protection): Adjust prototype.
533         (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
535 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
537         * common.opt: Introduced a new option -fsimd-cost-model.
538         * doc/invoke.texi: Introduced a new openmp-simd warning and
539         a new -fsimd-cost-model option.
540         * tree-vectorizer.h (unlimited_cost_model): Interface updated
541         to rely on the particular loop info.
542         * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
543         (vect_peeling_hash_choose_best_peeling): Ditto.
544         (vect_enhance_data_refs_alignment): Ditto.
545         * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
546         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
547         plus added openmp-simd warining.
549 2013-11-27   H.J. Lu  <hongjiu.lu@intel.com>
551         PR rtl-optimization/59311
552         * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
553         * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
555 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
557         * var-tracking.c (track_expr_p): Do not track declarations for parts
558         of tracked parameters.
559         (add_stores): Do not track values for tracked parameters passed in
560         multiple locations.
561         (vt_get_decl_and_offset): Handle PARALLEL.
562         (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
564 2013-11-27  Jeff Law  <law@redhat.com>
566         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
567         clobber the loop structure thread_block was unsuccessful.  If
568         thread_block was unsuccessful, cleanup appropriately.
570 2013-11-27  Chen Liqin <liqin.gcc@gmail.com>
572         * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
573         (score_char_to_class): Likewise.
575 2013-11-27  Kenneth Zadeck  <zadeck@naturalbridge.com>
577         * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with the
578         overflow bit set.
580 2013-11-27  Richard Biener  <rguenther@suse.de>
582         PR middle-end/58723
583         * cgraphbuild.c (build_cgraph_edges): Do not build edges
584         for internal calls.
585         (rebuild_cgraph_edges): Likewise.
586         * ipa-inline-analysis.c (estimate_function_body_sizes):
587         Skip internal calls.
588         * tree-inline.c (estimate_num_insns): Estimate size of internal
589         calls as 0.
590         (gimple_expand_calls_inline): Do not try inline-expanding
591         internal calls.
592         * lto-streamer-in.c (input_cfg): Stream loop safelen,
593         force_vect and simduid.
594         (input_struct_function_base): Stream has_force_vect_loops
595         and has_simduid_loops.
596         (input_function): Adjust.
597         * lto-streamer-out.c (output_cfg): Stream loop safelen,
598         force_vect and simduid.
599         (output_struct_function_base): Stream has_force_vect_loops
600         and has_simduid_loops.
602 2013-11-27  Kai Tietz  <ktietz@redhat.com>
604         * config/i386/winnt.c (i386_pe_section_type_flags): Use const
605         pointer cast.
607 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
609         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
610         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
612 2013-11-27  Marek Polacek  <polacek@redhat.com>
614         PR sanitizer/59306
615         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
616         instead of walk_gimple_op.
617         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
619 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
620             Jakub Jelinek  <jakub@redhat.com>
622         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
623         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
624         (struct cgraph_node): Add simdclone and simd_clones fields.
625         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
626         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
627         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
628         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
629         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
630         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
631         * doc/tm.texi: Regenerated.
632         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
633         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
634         attribute is present.
635         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
636         (simd_clone_vector_of_formal_parm_types): New function.
637         (simd_clone_struct_alloc, simd_clone_struct_copy,
638         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
639         simd_clone_compute_base_data_type, simd_clone_mangle,
640         simd_clone_create, simd_clone_adjust_return_type,
641         create_tmp_simd_array, simd_clone_adjust_argument_types,
642         simd_clone_init_simd_arrays): New functions.
643         (struct modify_stmt_info): New type.
644         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
645         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
646         functions.
647         (pass_data_omp_simd_clone): New variable.
648         (pass_omp_simd_clone): New class.
649         (make_pass_omp_simd_clone): New function.
650         * passes.def (pass_omp_simd_clone): New.
651         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
652         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target
653         hooks.
654         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
655         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
656         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
657         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
658         * tree-vect-data-refs.c: Include cgraph.h.
659         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
660         and find_data_references_in_bb, if find_data_references_in_stmt
661         fails, still allow calls to #pragma omp declare simd functions
662         in #pragma omp simd loops unless they contain data references among
663         the call arguments or in lhs.
664         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
665         calls with no lhs.
666         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls without
667         lhs.
668         * tree-vectorizer.h (enum stmt_vec_info_type): Add
669         call_simd_clone_vec_info_type.
670         (struct _stmt_vec_info): Add simd_clone_fndecl field.
671         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
672         * tree-vect-stmts.c: Include tree-ssa-loop.h,
673         tree-scalar-evolution.h and cgraph.h.
674         (vectorizable_call): Handle calls without lhs.  Assert
675         !stmt_can_throw_internal instead of failing for it.  Don't update
676         EH stuff.
677         (struct simd_call_arg_info): New.
678         (vectorizable_simd_clone_call): New function.
679         (vect_transform_stmt): Call it.
680         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
681         calls without lhs.
682         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
683         if cgraph_function_with_gimple_body_p is true.
685 2013-11-27  Tom de Vries  <tom@codesourcery.com>
686             Marc Glisse  <marc.glisse@inria.fr>
688         PR middle-end/59037
689         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
690         BIT_FIELD_REF.
691         * gimple-fold.c (gimple_fold_indirect_ref): Same.
692         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
693         out-of-bounds.
695 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
697         PR middle-end/59138
698         * expr.c (emit_group_store): Don't write past the end of the structure.
699         (store_bit_field): Fix formatting.
701 2013-11-27  Richard Biener  <rguenther@suse.de>
703         PR tree-optimization/59288
704         * tree-vect-loop.c (get_initial_def_for_induction): Do not
705         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
707 2013-11-27  Marek Polacek  <polacek@redhat.com>
709         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
710         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
711         rather than ADDR_EXPRs.
713 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
715         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
717 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
719         * gengtype.c (struct seen_tag): New.
720         (already_seen_tag): New.
721         (mark_tag_as_seen): New.
722         (walk_subclasses): Support having multiple subclasses using the
723         same tag by tracking which tags have already been seen, and using
724         this to avoid adding duplicate cases to the "switch" statement.
725         The call to already_seen_tag introduces an O(N^2) when running
726         gengtype on N, the number of tags, due to the repeated linear
727         search, but currently max(N) is relatively small (the number of
728         GSS codes, which is 26).
729         (walk_type): Pass in a seen_tag for use by the walk_subclasses
730         recursion.
732         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
733         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
734         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
735         GIMPLE_OMP_RETURN happens to share the data layout of
736         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
737         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
738         underlying GSS value from GSS_OMP_PARALLEL to
739         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
740         not directly related; they merely share in-memory layout.
741         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
742         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
744         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
745         Rename to...
746         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
747         ...these.
748         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
749         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout):
750         ...these.
751         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename
752         to...
753         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
754         ...these.
756         * gimple.h (gimple_statement_resx): New subclass of
757         gimple_statement_eh_ctrl, with the invariant that
758         stmt->code == GIMPLE_RESX.
759         (gimple_statement_eh_dispatch): New subclass of
760         gimple_statement_eh_ctrl, with the invariant that
761         stmt->code == GIMPLE_EH_DISPATH.
763         (gimple_statement_omp_parallel): The existing class expressed
764         a layout (GSS_OMP_PARALLEL), but the codes with that layout
765         are not all related, so it makes more sense for this class to
766         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
767         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
768         rename the existing gimple_statement_omp_parallel class to...
769         (gimple_statement_omp_parallel_layout): ...this, expressing
770         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
771         (gimple_statement_omp_taskreg): New subclass of
772         gimple_statement_omp_parallel_layout, expressing the invariant
773         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
774         as used by the various gimple_omp_taskreg_ accessors.
775         (gimple_statement_omp_parallel): Reintroduce this class, this time
776         as a subclass of gimple_statement_omp_taskreg to express the
777         invariant stmt->code == GIMPLE_OMP_PARALLEL.
778         (gimple_statement_omp_target) New class, subclassing
779         gimple_statement_omp_parallel_layout, to express the invariant
780         stmt->code == GIMPLE_OMP_TARGET.
781         (gimple_statement_omp_task): Update to inherit from
782         gimple_statement_omp_taskreg rather than
783         gimple_statement_omp_parallel.
785         (gimple_statement_omp_single): Rename to...
786         (gimple_statement_omp_single_layout): ...this, expressing the
787         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
788         (gimple_statement_omp_single): ...and reintroduce this name as
789         a subclass of gimple_statement_omp_single_layout, expressing
790         the invariant that code == GIMPLE_OMP_SINGLE.
791         (gimple_statement_omp_teams): New class, subclassing
792         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
794         (gimple_statement_omp_atomic_store): Rename to...
795         (gimple_statement_omp_atomic_store_layout): ...this, expressing
796         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
797         (gimple_statement_omp_atomic_store): ...and reintroduce this
798         name as a subclass of gimple_statement_omp_atomic_store_layout
799         with code == GIMPLE_OMP_ATOMIC_STORE.
800         (gimple_statement_omp_return): New class, subclassing
801         gimple_statement_omp_atomic_store_layout for the code
802         GIMPLE_OMP_RETURN.
804         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
805         (is_a_helper <gimple_statement_resx>::test): New.
806         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
807         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
808         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
809         (is_a_helper <gimple_statement_omp_return>::test): New.
810         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
811         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
812         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
813         GIMPLE_OMP_TARGET.
814         (is_a_helper <gimple_statement_omp_target>::test): New.
815         (is_a_helper <gimple_statement_omp_single>::test): Only check
816         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
817         (is_a_helper <gimple_statement_omp_teams>::test): New.
819         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
820         (is_a_helper <const gimple_statement_resx>::test): New.
821         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
822         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
823         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
824         (is_a_helper <const gimple_statement_omp_return>::test): New.
825         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
826         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
827         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
828         GIMPLE_OMP_TARGET.
829         (is_a_helper <const gimple_statement_omp_target>::test): New.
830         (is_a_helper <const gimple_statement_omp_single>::test): Only
831         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
832         (is_a_helper <const gimple_statement_omp_teams>::test): New.
834         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
835         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
836         gimple_statement_omp_atomic_store with downcasts to
837         gimple_statement_omp_return, thus requiring that the code be
838         GIMPLE_OMP_RETURN.
839         (gimple_resx_region, gimple_resx_set_region): Replace bogus
840         downcasts to gimple_statement_eh_ctrl with downcasts to
841         gimple_statement_resx, thus requiring that the code be
842         GIMPLE_RESX.
843         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
844         Replace bogus downcasts to const gimple_statement_eh_ctrl with
845         downcasts to gimple_statement_eh_dispatch, thus requiring that
846         the code be GIMPLE_EH_DISPATCH.
847         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
848         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
849         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
850         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
851         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
852         gimple_statement_omp_parallel with downcasts to
853         gimple_statement_omp_taskreg, thus requiring that the code be
854         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
855         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
856         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
857         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
858         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
859         gimple_omp_target_set_data_arg): Replace bogus downcasts to
860         gimple_statement_omp_parallel with downcasts to
861         gimple_statement_omp_target, thus requiring that the code be
862         GIMPLE_OMP_TARGET.
863         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
864         gimple_omp_teams_set_clauses): Replace bogus downcasts to
865         gimple_statement_omp_single with downcasts to
866         gimple_statement_omp_teams, thus requiring that the code be
867         GIMPLE_OMP_TEAMS.
869         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
870         gimple_statement_resx.
871         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
872         gimple_statement_eh_dispatch.
874 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
876         PR tree-optimization/59014
877         * tree-vrp.c (register_edge_assert_for_1): Don't look
878         through conversions from non-integral types or through
879         narrowing conversions.
881         PR target/59229
882         * config/i386/i386.c (device_alg): Fix up formatting.
883         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
884         similarly to count && count < epilogue_size_needed.  Fix up
885         comment typo.
886         * builtins.c (determine_block_size): Fix comment typo.
888         PR sanitizer/59258
889         * ubsan.c (ubsan_source_location): Don't add any location
890         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
891         (ubsan_create_data): Strip block info from LOC.
893         PR middle-end/59273
894         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
895         if there isn't optab handler for the corresponding vector PLUS_EXPR.
897         PR rtl-optimization/59166
898         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
899         DF_REF_LOC in validate_change call.
900         (split_live_ranges_for_shrink_wrap): Likewise.
902         PR middle-end/59150
903         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
904         of references to constant size types in simd loops, defer emitting
905         initializer for the new_var, emit it later on only if not using
906         SIMD arrays for it.
908         PR middle-end/59152
909         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
910         for the inner loop if collapse_bb is non-NULL.
911         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
913 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
915         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
916         a constant immediate before force_reg.
918 2013-11-26  Richard Biener  <rguenther@suse.de>
920         PR tree-optimization/59245
921         * tree-vrp.c (set_value_range): Assert that we don't have
922         overflowed constants (but our infinities).
923         (set_value_range_to_value): Drop all overflow flags.
924         (vrp_visit_phi_node): Likewise.
925         (vrp_visit_assignment_or_call): Use set_value_range_to_value
926         to set a constant range.
928 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
930         PR target/59290
931         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
932         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
933         for zero_extend case.
935 2013-11-26   H.J. Lu  <hongjiu.lu@intel.com>
937         PR bootstrap/55552
938         * configure.ac (install_gold_as_default): New.  Set to yes for
939         --disable-ld or --enable-gold=default.
940         (gcc_cv_ld_gold_srcdir): New.
941         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
942         is yes.
943         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
944         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
945         * configure: Regenerated.
947         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
948         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
949         (original) [collect-ld && -fuse-ld=bfd]: Set to
950         $ORIGINAL_LD_BFD_FOR_TARGET.
951         (original) [collect-ld && -fuse-ld=gold]: Set to
952         $ORIGINAL_LD_GOLD_FOR_TARGET.
953         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
954         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
956 2013-11-26  Terry Guo  <terry.guo@arm.com>
958         * config/arm/arm.c (require_pic_register): Handle high pic base
959         register for thumb-1.
960         (arm_load_pic_register): Also initialize high pic base register.
961         * doc/invoke.texi: Update documentation for option -mpic-register.
963 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
965         PR target/58314
966         PR target/50751
967         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
968         Prefix function names with 'sh_'.  Make them non-static.
969         * config/sh/sh-protos.h (sh_disp_addr_displacement,
970         sh_max_mov_insn_displacement): Add declarations.
971         * config/sh/constraints.md (Q): Reject QImode.
972         (Sdd): Use match_code "mem".
973         (Snd): Fix erroneous matching of non-memory operands.
974         * config/sh/predicates.md (short_displacement_mem_operand): New
975         predicate.
976         (general_movsrc_operand): Disallow PC relative QImode loads.
977         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
978         (*movqi, *movhi): Merge both insns into...
979         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
980         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
981         on the operand types.
983 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
985         * config/epiphany/epiphany.c (epiphany_expand_prologue):
986         Remove unused variable save_config.
987         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
988         assert.
990 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
992         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
993         using other intrinsics.
994         (vtbx3_<psu>8): Likewise.
996 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
998         * config/aarch64/aarch64-builtins.c
999         (aarch64_types_bsl_p_qualifiers): New.
1000         (aarch64_types_bsl_s_qualifiers): Likewise.
1001         (aarch64_types_bsl_u_qualifiers): Likewise.
1002         (TYPES_BSL_P): Likewise.
1003         (TYPES_BSL_S): Likewise.
1004         (TYPES_BSL_U): Likewise.
1005         (BUILTIN_VALLDIF): Likewise.
1006         (BUILTIN_VDQQH): Likewise.
1007         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1008         * config/aarch64/aarch64-simd.md
1009         (aarch64_simd_bsl<mode>_internal): Handle more modes.
1010         (aarch64_simd_bsl<mode>): Likewise.
1011         * config/aarch64/arm_neon.h
1012         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1013         * config/aarch64/iterators.md (VALLDIF): New.
1014         (Vbtype): Handle more modes.
1016 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1018         * config/aarch64/aarch64-builtins.c
1019         (aarch64_type_qualifiers): Add qualifier_poly.
1020         (aarch64_build_scalar_type): Also build Poly types.
1021         (aarch64_build_vector_type): Likewise.
1022         (aarch64_build_type): Likewise.
1023         (aarch64_build_signed_type): New.
1024         (aarch64_build_unsigned_type): Likewise.
1025         (aarch64_build_poly_type): Likewise.
1026         (aarch64_init_simd_builtins): Also handle Poly types.
1028 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1030         * config/aarch64/aarch64-builtins.c
1031         (VAR1): Use new naming scheme for aarch64_builtins.
1032         (aarch64_builtin_vectorized_function): Use new
1033         aarch64_builtins names.
1035 2013-11-26  Richard Biener  <rguenther@suse.de>
1037         PR tree-optimization/59287
1038         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1039         Remove no longer necessary special-casing of union accesses.
1041 2013-11-26  Richard Biener  <rguenther@suse.de>
1043         * pretty-print.c (output_buffer::~output_buffer): Really
1044         free the obstacks.
1046 2013-11-25  Jeff Law  <law@redhat.com>
1048         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1049         invalidate loop information.
1051 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1053         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1055 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1057         PR target/53976
1058         PR target/59243
1059         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1060         comments.
1061         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1062         previously visited basic blocks before recursing instead of only one
1063         basic block.
1065 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1067         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1068         * config/aarch64/aarch64-cores.def (cortex-a53):
1069         Use cortexa53 tuning struct.
1071 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
1073         PR bootstrap/59260
1074         * fold-const.c: Include hash-table.h.
1076 2013-11-25  Marek Polacek  <polacek@redhat.com>
1078         PR sanitizer/59258
1079         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1081 2013-11-25  Richard Biener  <rguenther@suse.de>
1083         * tree-dfa.c: Remove unused convert.h include.
1085 2013-11-25  Terry Guo  <terry.guo@arm.com>
1087         * doc/invoke.texi (-mslow-flash-data): Document new option.
1088         * config/arm/arm.opt (mslow-flash-data): New option.
1089         * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
1090         it.
1091         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1092         are disabled.
1093         (arm_disable_literal_pool): Declare it.
1094         * config/arm/arm.c (arm_disable_literal_pool): New variable.
1095         (arm_option_override): Handle new option.
1096         (thumb2_legitimate_address_p): Don't allow symbol references when
1097         literal pools are disabled.
1098         (arm_max_const_double_inline_cost): New function.
1099         * config/arm/arm.md (types.md): Include it before ...
1100         (use_literal_pool): New attribute.
1101         (enabled): Use new attribute.
1102         (split pattern): Replace symbol+offset with MOVW/MOVT.
1104 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1106         PR bootstrap/59279
1107         Revert previous commit.
1109 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1111         * jump.c (reset_insn_reg_label_operand_notes): New function,
1112         split out from ...
1113         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
1114         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1115         split out from ...
1116         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
1117         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1118         expensive CFG cleanup is called for.
1119         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1120         (cfg_layout_finalize): Delete dead jump tables before re-building
1121         the insns chain.
1122         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1123         basic blocks, not before.
1124         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1126         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1127         insns chain of a scheduling extended basic block, they cannot appear
1128         there in cfglayout mode.
1130 2013-11-24  Tobias Burnus  <burnus@net-b.de>
1132         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1134 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1136         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1137         for little endian.
1139 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1141         * graphite-sese-to-poly.c: Don't include extra "expr.h".
1143 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1145         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1147 2013-11-23  David Edelson  <dje.gcc@gmail.com>
1148             Andrew Dixie  <andrewd@gentrack.com>
1150         PR target/33704
1151         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1152         (COLLECT_SHARED_FINI_FUNC): Define.
1154         * collect2.c (aix_shared_initname): Declare.
1155         (aix_shared_fininame): Declare.
1156         (symkind): Add SYM_AIXI and SYM_AIXD.
1157         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1158         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1159         (aixlazy_flag): Parse.
1160         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1161         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1163 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
1165         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1166         (rs6000_xcoff_select_section): Place decls with stricter alignment
1167         into named sections.
1168         (rs6000_xcoff_unique_section): Allow unique sections for
1169         uninitialized data with strict alignment.
1171 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
1173         PR tree-optimization/59154
1174         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1175         rhs1 of a cast and new_op is invariant, fold_convert it.
1176         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1177         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1179 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
1181         PR target/56788
1182         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1183         Declare as MULTI_ARG_1_SF instruction.
1184         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1185         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1186         from *xop_vmfrcz_<mode>.
1187         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1188         to merge scalar result with __A.
1189         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1190         result with __A.
1192 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1194         * gimplify.h (recalculate_side_effects): Delete.
1195         * gimplify.c (recalculate_side_effects): Make static and add comment.
1197 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1199         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1200         for the destination of a define_peephole2.  Likewise register_operand
1201         rather than arith_reg_operand.  Remove constraints from
1202         define_peephole2s.
1204 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1206         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1207         Delete.
1208         (mn10300_store_multiple_operation_p): Declare.
1209         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1210         Rename to...
1211         (mn10300_store_multiple_operation_p): ...this and remove mode
1212         argument.
1213         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1214         Define.
1216 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1218         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1219         (pop_multiple_operation): Delete.
1220         (analyze_push_multiple_operation): Declare.
1221         (analyze_pop_multiple_operation): Declare.
1222         * config/bfin/bfin.c (push_multiple_operation): Rename to...
1223         (analyze_push_multiple_operation): ...this and remove mode argument.
1224         (pop_multiple_operation): Rename to...
1225         (analyze_pop_multiple_operation): ...this and remove mode argument.
1226         * config/bfin/predicates.md (push_multiple_operation): Define.
1227         (pop_multiple_operation): Likewise.
1229 2013-11-23  Alan Modra  <amodra@gmail.com>
1231         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1233 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1235         PR sanitizer/59061
1236         * common.opt (static-liblsan): Add.
1237         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1238         Define.
1239         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
1240         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1241         SANITIZE_RETURN.
1242         * opts.c (common_handle_option): Handle -fsanitize=leak.
1243         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1244         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1245         (LIBUBSAN_EARLY_SPEC): Remove.
1246         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1247         (SANITIZER_SPEC): Add -fsanitize=leak handling.
1248         (sanitize_spec_function): Handle %sanitize(leak).
1249         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1251 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
1252             Jakub Jelinek  <jakub@redhat.com>
1254         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1255         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1256         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
1257         (ipa_modify_formal_parameters): Adjust caller.  Remove
1258         synth_parm_prefix argument.  Use operator enum instead of bit fields.
1259         Add assert for properly handling vector of references.  Handle
1260         creating brand new parameters.
1261         (ipa_modify_call_arguments): Use operator enum instead of bit
1262         fields.
1263         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
1264         used.
1265         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1266         New functions.
1267         (ipa_dump_param_adjustments): Rename reduction to new_decl.
1268         Use operator enum instead of bit fields.
1269         * ipa-prop.h (enum ipa_parm_op): New.
1270         (struct ipa_parm_adjustment): New field op.  Rename reduction
1271         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1272         and copy_param.
1273         (ipa_modify_formal_parameters): Remove last argument.
1274         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1275         ipa_get_adjustment_candidate): New prototypes.
1276         * tree-sra.c (turn_representatives_into_adjustments): Use operator
1277         enum.  Set arg_prefix.
1278         (get_adjustment_for_base): Use operator enum.
1279         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1280         ipa-prop.c.
1281         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1282         (ipa_sra_modify_function_body): Same.  No longer static.
1283         (sra_ipa_reset_debug_stmts): Use operator enum.
1284         (modify_function): Do not pass prefix argument.
1286 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1288         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1289         (ubsan_pass): Ignore clobber stmts.
1291         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1292         * opts.c (common_handle_option): Add -fsanitize=return.
1293         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1294         or it into SANITIZE_UNDEFINED.
1296         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1297         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1298         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1299         Don't instrument accesses to VAR_DECLs which are known to fit
1300         into their bounds and the vars are known to have shadow bytes
1301         indicating allowed access.
1302         (asan_dynamic_init_call): New function.
1303         (asan_add_global): If vnode->dynamically_initialized,
1304         set __has_dynamic_init to 1 instead of 0.
1305         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1306         * asan.h (asan_dynamic_init_call): New prototype.
1307         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1309 2013-11-22  Martin Jambor  <mjambor@suse.cz>
1311         PR rtl-optimization/10474
1312         * ira.c (interesting_dest_for_shprep_1): New function.
1313         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1314         also check parallels.
1316 2013-11-22  Jeff Law  <law@redhat.com>
1318         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1319         NULL for RHS, which we used to invalidate equivalences.
1320         (record_temporary_equivalences_from_phis): New bitmap arguments
1321         and a boolean indicating if we have passed a backedge.  If we
1322         have passed a backedge, then set the appropriate bit in the
1323         bitmaps for the SRC & DEST of PHIs creating equivalences.
1324         (invalidate_equivalences, dummy_simplify): New functions.
1325         (cond_arg_set_in_b): Remove.
1326         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1327         arguments and a boolean indicating if we have passed a backedge.
1328         If we have passed a backedge, then perform invalidations as needed.
1329         (thread_around_empty_blocks): If we have seen a backedge, then
1330         use the dummy simplify routine.
1331         (thread_through_normal_block): Likewise.  Pass bitmaps and
1332         backedge status to children.  Do not pessimize so much when
1333         traversing backedges in the CFG.
1334         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1335         If we have seen a backedge, then use the dummy simplify routine.
1336         Do not pessimize so much when traversing backedges.
1338 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
1340         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1341         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1343 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
1345         * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
1346         PTA_PCLMUL and PTA_RDRND for Silvermont.
1347         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1348         for Silvermont.
1350         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1352 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1354         * hooks.h (hook_uint_mode_0): Add Prototype.
1355         * hooks.c (hook_uint_mode_0): New default function.
1356         * target.def (atomic_align_for_mode): New target hook.
1357         * tree.c (build_atomic_base): Add alignment override parameter.
1358         (build_common_tree_nodes): Use atomic alignment override.
1359         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1360         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1362 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1364         * gimple.h: Remove all includes.
1365         (recalculate_side_effects): Move prototype to gimplify.h.
1366         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1367         * gengtype.c (open_base_files): Add gimple.h include list.
1368         * gimplify.h (recalculate_side_effects): Relocate prototype here.
1369         * gimple.c: Adjust include list.
1370         (recalculate_side_effects): Move to gimplify.c.
1371         * gimplify.c: Adjust include list.
1372         (recalculate_side_effects): Relocate from gimple.c.
1373         * alias.c: Add required include files removed from gimple.h.
1374         * asan.c: Likewise.
1375         * builtins.c: Likewise.
1376         * calls.c: Likewise.
1377         * cfgexpand.c: Likewise.
1378         * cfgloop.c: Likewise.
1379         * cfgloopmanip.c: Likewise.
1380         * cgraphbuild.c: Likewise.
1381         * cgraph.c: Likewise.
1382         * cgraphclones.c: Likewise.
1383         * cgraphunit.c: Likewise.
1384         * cilk-common.c: Likewise.
1385         * data-streamer.c: Likewise.
1386         * data-streamer-in.c: Likewise.
1387         * data-streamer-out.c: Likewise.
1388         * dse.c: Likewise.
1389         * dwarf2out.c: Likewise.
1390         * emit-rtl.c: Likewise.
1391         * except.c: Likewise.
1392         * expr.c: Likewise.
1393         * fold-const.c: Likewise.
1394         * function.c: Likewise.
1395         * gimple-builder.c: Likewise.
1396         * gimple-expr.c: Likewise.
1397         * gimple-fold.c: Likewise.
1398         * gimple-iterator.c: Likewise.
1399         * gimple-low.c: Likewise.
1400         * gimple-pretty-print.c: Likewise.
1401         * gimple-ssa-isolate-paths.c: Likewise.
1402         * gimple-ssa-strength-reduction.c: Likewise.
1403         * gimple-streamer-in.c: Likewise.
1404         * gimple-streamer-out.c: Likewise.
1405         * gimple-walk.c: Likewise.
1406         * gimplify-me.c: Likewise.
1407         * graphite-blocking.c: Likewise.
1408         * graphite.c: Likewise.
1409         * graphite-clast-to-gimple.c: Likewise.
1410         * graphite-dependences.c: Likewise.
1411         * graphite-interchange.c: Likewise.
1412         * graphite-optimize-isl.c: Likewise.
1413         * graphite-poly.c: Likewise.
1414         * graphite-scop-detection.c: Likewise.
1415         * graphite-sese-to-poly.c: Likewise.
1416         * internal-fn.c: Likewise.
1417         * ipa.c: Likewise.
1418         * ipa-cp.c: Likewise.
1419         * ipa-devirt.c: Likewise.
1420         * ipa-inline-analysis.c: Likewise.
1421         * ipa-inline.c: Likewise.
1422         * ipa-profile.c: Likewise.
1423         * ipa-prop.c: Likewise.
1424         * ipa-pure-const.c: Likewise.
1425         * ipa-reference.c: Likewise.
1426         * ipa-split.c: Likewise.
1427         * ipa-utils.c: Likewise.
1428         * langhooks.c: Likewise.
1429         * lto-cgraph.c: Likewise.
1430         * lto-compress.c: Likewise.
1431         * lto-opts.c: Likewise.
1432         * lto-section-in.c: Likewise.
1433         * lto-section-out.c: Likewise.
1434         * lto-streamer.c: Likewise.
1435         * lto-streamer-in.c: Likewise.
1436         * lto-streamer-out.c: Likewise.
1437         * omp-low.c: Likewise.
1438         * opts-global.c: Likewise.
1439         * passes.c: Likewise.
1440         * predict.c: Likewise.
1441         * profile.c: Likewise.
1442         * sese.c: Likewise.
1443         * stmt.c: Likewise.
1444         * stor-layout.c: Likewise.
1445         * symtab.c: Likewise.
1446         * targhooks.c: Likewise.
1447         * toplev.c: Likewise.
1448         * tracer.c: Likewise.
1449         * trans-mem.c: Likewise.
1450         * tree-affine.c: Likewise.
1451         * tree.c: Likewise.
1452         * tree-call-cdce.c: Likewise.
1453         * tree-cfg.c: Likewise.
1454         * tree-cfgcleanup.c: Likewise.
1455         * tree-chrec.c: Likewise.
1456         * tree-complex.c: Likewise.
1457         * tree-data-ref.c: Likewise.
1458         * tree-dfa.c: Likewise.
1459         * tree-eh.c: Likewise.
1460         * tree-emutls.c: Likewise.
1461         * tree-if-conv.c: Likewise.
1462         * tree-inline.c: Likewise.
1463         * tree-into-ssa.c: Likewise.
1464         * tree-loop-distribution.c: Likewise.
1465         * tree-nested.c: Likewise.
1466         * tree-nrv.c: Likewise.
1467         * tree-object-size.c: Likewise.
1468         * tree-outof-ssa.c: Likewise.
1469         * tree-parloops.c: Likewise.
1470         * tree-phinodes.c: Likewise.
1471         * tree-predcom.c: Likewise.
1472         * tree-pretty-print.c: Likewise.
1473         * tree-profile.c: Likewise.
1474         * tree-scalar-evolution.c: Likewise.
1475         * tree-sra.c: Likewise.
1476         * tree-ssa-address.c: Likewise.
1477         * tree-ssa-alias.c: Likewise.
1478         * tree-ssa.c: Likewise.
1479         * tree-ssa-ccp.c: Likewise.
1480         * tree-ssa-coalesce.c: Likewise.
1481         * tree-ssa-copy.c: Likewise.
1482         * tree-ssa-copyrename.c: Likewise.
1483         * tree-ssa-dce.c: Likewise.
1484         * tree-ssa-dom.c: Likewise.
1485         * tree-ssa-dse.c: Likewise.
1486         * tree-ssa-forwprop.c: Likewise.
1487         * tree-ssa-ifcombine.c: Likewise.
1488         * tree-ssa-live.c: Likewise.
1489         * tree-ssa-loop.c: Likewise.
1490         * tree-ssa-loop-ch.c: Likewise.
1491         * tree-ssa-loop-im.c: Likewise.
1492         * tree-ssa-loop-ivcanon.c: Likewise.
1493         * tree-ssa-loop-ivopts.c: Likewise.
1494         * tree-ssa-loop-manip.c: Likewise.
1495         * tree-ssa-loop-niter.c: Likewise.
1496         * tree-ssa-loop-prefetch.c: Likewise.
1497         * tree-ssa-loop-unswitch.c: Likewise.
1498         * tree-ssa-math-opts.c: Likewise.
1499         * tree-ssanames.c: Likewise.
1500         * tree-ssa-operands.c: Likewise.
1501         * tree-ssa-phiopt.c: Likewise.
1502         * tree-ssa-phiprop.c: Likewise.
1503         * tree-ssa-pre.c: Likewise.
1504         * tree-ssa-propagate.c: Likewise.
1505         * tree-ssa-reassoc.c: Likewise.
1506         * tree-ssa-sccvn.c: Likewise.
1507         * tree-ssa-sink.c: Likewise.
1508         * tree-ssa-strlen.c: Likewise.
1509         * tree-ssa-structalias.c: Likewise.
1510         * tree-ssa-tail-merge.c: Likewise.
1511         * tree-ssa-ter.c: Likewise.
1512         * tree-ssa-threadedge.c: Likewise.
1513         * tree-ssa-threadupdate.c: Likewise.
1514         * tree-ssa-uncprop.c: Likewise.
1515         * tree-ssa-uninit.c: Likewise.
1516         * tree-stdarg.c: Likewise.
1517         * tree-streamer.c: Likewise.
1518         * tree-streamer-in.c: Likewise.
1519         * tree-streamer-out.c: Likewise.
1520         * tree-switch-conversion.c: Likewise.
1521         * tree-tailcall.c: Likewise.
1522         * tree-vect-data-refs.c: Likewise.
1523         * tree-vect-generic.c: Likewise.
1524         * tree-vect-loop.c: Likewise.
1525         * tree-vect-loop-manip.c: Likewise.
1526         * tree-vectorizer.c: Likewise.
1527         * tree-vect-patterns.c: Likewise.
1528         * tree-vect-slp.c: Likewise.
1529         * tree-vect-stmts.c: Likewise.
1530         * tree-vrp.c: Likewise.
1531         * tsan.c: Likewise.
1532         * ubsan.c: Likewise.
1533         * value-prof.c: Likewise.
1534         * varpool.c: Likewise.
1535         * var-tracking.c: Likewise.
1536         * vtable-verify.c: Likewise.
1537         * config/darwin.c: Likewise.
1538         * config/aarch64/aarch64-builtins.c: Likewise.
1539         * config/aarch64/aarch64.c: Likewise.
1540         * config/alpha/alpha.c: Likewise.
1541         * config/i386/i386.c: Likewise.
1542         * config/i386/winnt.c: Likewise.
1543         * config/ia64/ia64.c: Likewise.
1544         * config/m32c/m32c.c: Likewise.
1545         * config/mep/mep.c: Likewise.
1546         * config/mips/mips.c: Likewise.
1547         * config/rs6000/rs6000.c: Likewise.
1548         * config/s390/s390.c: Likewise.
1549         * config/sh/sh.c: Likewise.
1550         * config/sparc/sparc.c: Likewise.
1551         * config/spu/spu.c: Likewise.
1552         * config/stormy16/stormy16.c: Likewise.
1553         * config/tilegx/tilegx.c: Likewise.
1554         * config/tilepro/tilepro.c: Likewise.
1555         * config/xtensa/xtensa.c: Likewise.
1557 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
1559         PR target/59216
1560         * arm.md (negdi_extendsidi): Fix invalid split.
1562 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
1564         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1565         (vmov_n_f64): Likewise.
1566         (vmov_n_p8): Likewise.
1567         (vmov_n_p16): Likewise.
1568         (vmov_n_s8): Likewise.
1569         (vmov_n_s16): Likewise.
1570         (vmov_n_s32): Likewise.
1571         (vmov_n_s64): Likewise.
1572         (vmov_n_u8): Likewise.
1573         (vmov_n_u16): Likewise.
1574         (vmov_n_u32): Likewise.
1575         (vmov_n_u64): Likewise.
1576         (vmovq_n_f32): Likewise.
1577         (vmovq_n_f64): Likewise.
1578         (vmovq_n_p8): Likewise.
1579         (vmovq_n_p16): Likewise.
1580         (vmovq_n_s8): Likewise.
1581         (vmovq_n_s16): Likewise.
1582         (vmovq_n_s32): Likewise.
1583         (vmovq_n_s64): Likewise.
1584         (vmovq_n_u8): Likewise.
1585         (vmovq_n_u16): Likewise.
1586         (vmovq_n_u32): Likewise.
1587         (vmovq_n_u64): Likewise.
1589 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1591         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1592         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1593         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1594         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1595         and also change to float UNSPEC.
1596         (reduc_maxmin_uns>_<mode>): Remove V2DI.
1597         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1598         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1599         result access for big-endian.
1600         (__LANE0): New macro used to fix up lane access of 'across-lanes'
1601         intrinsics for big-endian.
1602         * config/aarch64/iterators.md (VDQV): Add V2DI.
1603         (VDQV_S): New.
1604         (vp): New mode attribute.
1606 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1608         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1609         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1610         big-endian.
1612 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1614         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1615         for big-endian element order.
1616         (aarch64_simd_vec_setv2di): Likewise.
1617         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1618         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1619         (vec_extract): Expand using aarch64_get_lane.
1620         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1622 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1624         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1625         and stores to be ABI compliant.
1627 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1629         * input.h (input_line): Remove.
1630         (input_filename): Likewise.
1631         (in_system_header): Likewise.
1632         * tree.h (EXPR_LOC_OR_HERE): Remove.
1633         * config/bfin/bfin.c (output_file_start): Remove use of
1634         input_filename macro.
1635         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1636         * gimplify.c (internal_get_tmp_var): Likewise.
1637         EXPR_LOC_OR_HERE macro.
1638         (shortcut_cond_expr): Likewise.
1639         * tree-diagnostic.c (diagnostic_report_current_function): Remove
1640         use of input_filename macro.
1641         * tree.c (get_file_function_name): Likewise.
1643 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
1645         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1647 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1649         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1650         (same sized) elements even if the type of the CONSTRUCTOR has
1651         vector mode and target is a REG.
1653 2013-11-22  Richard Biener  <rguenther@suse.de>
1655         Revert
1656         2013-11-21  Richard Biener  <rguenther@suse.de>
1658         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1659         nb_iterations_upper_bound by one.
1661 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1663         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
1664         for Silvermont.
1666         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
1667         core-avx-i, core-avx2 and slm.
1669 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
1671         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1673 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
1675         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1676         (stzx_24_<mode>): Likewise mra_operand.
1678 2013-11-22  Jeff Law  <law@redhat.com>
1680         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1681         (thread_block_1): Do not cancel jump threads which go from
1682         inside a loop, through the header, then back inside the loop.
1683         (bb_ends_with_multiway_branch): New function.
1684         (thread_through_all_blocks): Handle threading cases which start
1685         in a loop through the loop header to a point in the loop.
1687         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1688         jump thread path properly.
1690 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
1692         * vec.h (auto_vec): New class.
1693         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1694         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1695         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1696         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1697         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1698         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1699         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1700         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1701         appropriate instead of vec for local variables.
1703 2013-11-21  Teresa Johnson  <tejohnson@google.com>
1705         PR target/59233
1706         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1707         not understood by old_insns_match_p.
1709 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
1711         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1712         little endian change.
1713         (vec_pack_sfix_trunc_v2df): Likewise.
1714         (vec_pack_ufix_trunc_v2df): Likewise.
1715         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1716         double checking of endianness.
1718 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1720         * tree-vect-generic.c (optimize_vector_constructor): New function.
1721         (expand_vector_operations_1): Call it.
1723 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
1725         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1726         ix86_zero_extend_to_Pmode where appropriate.
1727         (ix86_expand_builtin): Ditto.
1729 2013-11-21  Cary Coutant  <ccoutant@google.com>
1731         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1732         (add_linkage_name): Don't add linkage name for -g1.
1733         (decls_for_scope): Process subblocks for -g1.
1734         (dwarf2out_source_line): Output line tables for -g1.
1735         (dwarf2out_finish): Likewise.
1736         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1737         unused scopes for -g1.
1738         * opts.c (common_handle_option): Handle -g same as -g2.
1739         * doc/invoke.texi: Update description for -g1.
1741 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
1743         * doc/extend.texi: Document htm builtins.
1745 2013-11-21  Jeff Law  <law@redhat.com>
1747         PR tree-optimization/59221
1748         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1749         temporary equivalences when threading through joiner blocks.
1751 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
1753         PR rtl-optimization/55950
1754         * real.c (real_sqrt): Remove function.
1755         * real.h (real_sqrt): Remove prototype.
1756         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
1757         SQRT using real_sqrt.
1759 2013-11-21  Richard Biener  <rguenther@suse.de>
1761         PR tree-optimization/59058
1762         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
1763         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
1764         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
1765         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
1766         (NITERS_KNOWN_P): Fold into ...
1767         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
1768         (LOOP_VINFO_PEELING_FOR_NITER): Add.
1769         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1770         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1771         (vect_do_peeling_for_alignment): Re-use precomputed niter
1772         instead of re-emitting it.
1773         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1774         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1775         * tree-vect-loop.c (vect_get_loop_niters): Use
1776         number_of_latch_executions.
1777         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
1778         (vect_analyze_loop_form): Simplify.
1779         (vect_analyze_loop_operations): Move epilogue peeling code ...
1780         (vect_analyze_loop_2): ... here and adjust it to compute
1781         LOOP_VINFO_PEELING_FOR_NITER.
1782         (vect_estimate_min_profitable_iters): Use
1783         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1784         (vect_build_loop_niters): Emit on the preheader.
1785         (vect_generate_tmps_on_preheader): Likewise.
1786         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
1787         of recomputing it.  Adjust.
1789 2013-11-21  Richard Biener  <rguenther@suse.de>
1791         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1792         LOC_LINE): Remove wrappers and fix all users.
1793         (struct _loop_vec_info): Remove loop_line_number member.
1794         (LOOP_VINFO_LOC): Remove.
1795         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
1796         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
1797         and LOC_LINE.
1799 2013-11-21  Richard Biener  <rguenther@suse.de>
1801         * tree-ssa-forwprop.c (simplify_vce): New function.
1802         (ssa_forward_propagate_and_combine): Call it.
1804 2013-11-21  Richard Biener  <rguenther@suse.de>
1806         * tree-vect-loop-manip.c (vect_build_loop_niters,
1807         vect_generate_tmps_on_preheader): Move ...
1808         * tree-vect-loop.c (vect_build_loop_niters,
1809         vect_generate_tmps_on_preheader): ... here and simplify.
1810         (vect_transform_loop): Call them here and pass down results
1811         to consumers.
1812         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
1813         Get niter variables from caller.
1814         (vect_do_peeling_for_alignment): Likewise.
1815         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
1816         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1817         Adjust prototypes.
1819 2013-11-21  Richard Biener  <rguenther@suse.de>
1821         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1822         nb_iterations_upper_bound by one.
1824 2013-11-21  Richard Biener  <rguenther@suse.de>
1826         PR tree-optimization/59058
1827         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
1828         (build_size_arg_loc): Apply niter adjustment here.
1829         (generate_memset_builtin): Adjust.
1830         (generate_memcpy_builtin): Likewise.
1831         (classify_partition): Do not use number_of_exit_cond_executions
1832         but record whether niter needs to be adjusted.
1834 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1836         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
1837         could throw.
1839 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
1841         PR target/53976
1842         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
1843         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
1844         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
1845         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
1846         sh_optimize_sett_clrt pass.o to extra_objs.
1848 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1850         * cfg.c (dump_edge_info): Remove redundant comment.
1851         * cfgcleanup.c (outgoing_edges_match): Reword reference to
1852         EXIT_BLOCK_PTR in comment.
1853         (try_optimize_cfg): Likewise.
1854         * cfgrtl.c (last_bb_in_partition): Likewise.
1855         * cgraph.c (cgraph_node_cannot_return): Likewise.
1856         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1857         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
1858         * ipa-split.c (consider_split): Likewise.
1859         * profile.c (find_spanning_tree): Likewise.
1860         * sched-int.h (common_sched_info_def.add_block): Likewise.
1861         * dominance.c (calc_dfs_tree_nonrec): Reword references in
1862         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
1863         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
1864         in comments to now removed ENTRY_BLOCK_PTR macro.
1865         (tree_forwarder_block_p): Reword reference in comment to
1866         EXIT_BLOCK_PTR.
1867         * tree-inline.c (copy_cfg_body): Reword references in comments to
1868         now removed ENTRY_BLOCK_PTR macro.
1869         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1870         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
1871         a comma to the comment to clarify the meaning.
1873 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
1875         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
1876         Move to gimplify.c.
1877         (free_gimplify_stack): Add prototype.
1878         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
1879         (struct gimplify_ctx): Relocate here.
1880         (gimplify_ctxp): Make static.
1881         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
1882         list of struct gimplify_ctx.
1883         (push_gimplify_context): Add default parameters and allocate a struct
1884         from the pool.
1885         (pop_gimplify_context): Free a struct back to the pool.
1886         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1887         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
1888         use a local 'struct gimplify_ctx'.
1889         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
1890         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
1891         Likewise.
1892         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1893         lower_omp_ordered, lower_omp_critical, lower_omp_for,
1894         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
1895         lower_omp_teams, execute_lower_omp): Likewise.
1896         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
1897         * tree-inline.c (optimize_inline_calls): Likewise.
1899 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1901         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
1902         (vsx_extract_<mode>): Likewise.
1903         (*vsx_extract_<mode>_one_le): New LE variant on
1904         *vsx_extract_<mode>_zero.
1905         (vsx_extract_v4sf): Adjust for little endian.
1907 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
1909         PR rtl-optimization/59133
1910         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
1911         new pseudos.
1912         (lra_create_new_reg_with_unique_value): Pass new argument value.
1913         (lra_emit_add, lra_emit_move): Ditto.
1914         * lra-constraints.c (in_class_p): Add check for move for a new insn.
1915         (change_class): Rename to lra_change_class.  Move to lra-int.h.
1916         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
1917         change_class.
1918         (process_addr_reg, process_addr): Ditto.
1919         (curr_insn_transform): Ditto.  Add check on old pseudo for
1920         optional reload.
1921         * lra-int.h (lra_get_regno_hard_regno): Move below.
1922         (lra_change_class): Renamed change_class from lra.c.
1924 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1926         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
1927         the children of a NULL pointer.
1929 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
1931         * lra.c (lra): Set lra_in_progress before check_rtl call.
1932         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1933         adding clobber regs when LRA is running.
1935 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1937         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
1938         restriction for ISA_MIPS32R2.
1939         (ISA_HAS_LXC1_SXC1): New macro.
1940         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
1941         (ISA_HAS_NMADD4_NMSUB4): Likewise.
1942         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
1943         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
1944         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
1945         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
1946         (*<ANYF:storex>_<P:mode>): Likewise.
1948 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1950         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
1951         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
1952         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
1953         * config/mips/mips.md (recip_condition): Remove mode attribute.
1954         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
1955         <recip_condition>.
1956         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
1958 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1960         PR target/59207
1961         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
1962         Make sure neg2_ovf is set before being used.
1964 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
1966         * plugin.def: Add comment about register_callback and
1967         invoke_plugin_callbacks_full.
1969         * plugin.c (register_callback, invoke_plugin_callbacks_full):
1970         Handle PLUGIN_INCLUDE_FILE event.
1972 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1974         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
1975         allow subregs of TDmode in FPRs of smaller size in little-endian.
1976         (rs6000_split_multireg_move): When splitting an access to TDmode
1977         in FPRs, do not use simplify_gen_subreg.
1979 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
1981         PR middle-end/21718
1982         * real.c: Remove comment about decimal string conversion and
1983         rounding errors.
1984         (real_from_string): Use MPFR to convert nonzero decimal constant
1985         to REAL_VALUE_TYPE.
1987 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1989         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
1990         endianness of the D registers for the legacy encodings.
1992 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
1994         PR rtl-optimization/54300
1995         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
1996         outputs in a single-set are killed from the value chains.
1998 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2000         * cgraph.h (varpool_node): Add need_bounds_init field.
2001         * lto-cgraph.c (lto_output_varpool_node): Output
2002         need_bounds_init value.
2003         (input_varpool_node): Read need_bounds_init value.
2004         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2006 2013-11-20  Jan Hubicka  <jh@suse.cz>
2008         * opts.c (finish_options): Imply -ffat-lto-objects with
2009         -fno-use-linker-plugin.
2010         * common.opt (fuse-linker-plugin): Add var.
2012 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2014         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2015         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2016         (gen_type_die_with_usage): Skip pointer bounds.
2017         (dwarf2out_global_decl): Likewise.
2019 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2021         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2022         from all insns.
2024 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
2026         PR target/57756
2027         * config/i386/i386.c (ix86_option_override_internal): Add missed
2028         argument prefix for 'ix86_fpmath'.
2029         * config/i386/ssemath.h: Add missed definition of
2030         TARGET_FPMATH_DEFAULT_P macros.
2032 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2033             Mike Stump  <mikestump@comcast.net>
2034             Richard Sandiford  <rdsandiford@googlemail.com>
2036         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2037         instead of TREE_INT_CST_LOW, in cases where there is a protecting
2038         tree_fits_shwi_p or tree_fits_uhwi_p.
2039         * builtins.c (fold_builtin_powi): Likewise.
2040         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2041         Likewise.
2042         * dbxout.c (dbxout_symbol): Likewise.
2043         * expr.c (expand_expr_real_1): Likewise.
2044         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2045         (fold_binary_loc): Likewise.
2046         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2047         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2048         * omp-low.c (lower_omp_for_lastprivate): Likewise.
2049         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2050         * stor-layout.c (compute_record_mode): Likewise.
2051         * tree-cfg.c (verify_expr): Likewise.
2052         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2053         * tree-pretty-print.c (dump_array_domain): Likewise.
2054         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2055         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2056         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2057         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2058         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2059         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2060         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2061         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2062         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2063         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2064         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2065         (create_variable_info_for_1): Likewise.
2066         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2067         (vect_verify_datarefs_alignment): Likewise.
2068         (vect_analyze_data_ref_accesses): Likewise.
2069         (vect_prune_runtime_alias_test_list): Likewise.
2070         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2072 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2074         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2075         overflow.  Use tree_to_shwi.
2077 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2079         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2080         HOST_WIDE_INTs when folding (x >> c) << c.
2082 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2083             Dominik Vogt  <vogt@linux.vnet.ibm.com>
2085         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2086         int comparisons with an out of range condition code.
2087         (s390_optimize_nonescaping_tx): Skip empty BBs.
2088         Generate the new tbegin RTX when removing the FPR clobbers (with
2089         two SETs).
2090         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
2091         result before doing the retry calculations.
2092         (s390_init_builtins): Make tbegin "returns_twice" and tabort
2093         "noreturn".
2094         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2095         the TDB setting part of an tbegin.
2096         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2097         ("tx_assist"): Set unused argument to an immediate zero instead of
2098         loading zero into a GPR and pass it as argument.
2099         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2100         Remove inline and related attributes.
2101         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2102         (__TM_is_illegal, __TM_is_footprint_exceeded)
2103         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2105 2013-11-20  Richard Biener  <rguenther@suse.de>
2107         PR lto/59035
2108         * lto-opts.c (lto_write_options): Write defaults only if
2109         they were not explicitely specified.  Also write
2110         -ffp-contract default.
2111         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2112         conservatively.
2113         (run_gcc): Pass through -ffp-contract.
2115 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2117         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2119 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2121         * gcc/config/aarch64/aarch64-builtins.c
2122         (aarch64_simd_itype): Remove.
2123         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2124         (VAR1): Use qualifiers.
2125         (aarch64_build_scalar_type): New.
2126         (aarch64_build_vector_type): Likewise.
2127         (aarch64_build_type): Likewise.
2128         (aarch64_init_simd_builtins): Refactor, remove special cases,
2129         consolidate main loop.
2130         (aarch64_simd_expand_args): Likewise.
2132 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
2134         PR c/53001
2135         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2137 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
2139         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2141 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2143         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2144         to "vec<>" instances.
2145         (build_pretty_printer): Register the vec<>* prettyprinter.
2147 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2149         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2150         (GdbSubprinter.handles_type): New.
2151         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2152         (GdbSubprinterRegex): New subclass of GdbSubprinter.
2153         (GdbPrettyPrinters.add_printer): Remove in favor of...
2154         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2155         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2156         (GdbPrettyPrinters.__call__): Update search for subprinter
2157         to use handles_type method.
2158         (build_pretty_printer): Update registration of subprinters to
2159         use the new API above, supporting multiple spelling of each type,
2160         and allowing for future regex-based subprinters.
2162 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2164         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2165         V16QI vector splat case for little endian.
2167 2013-11-19  Jeff Law  <law@redhat.com>
2169         * tree-ssa-threadedge.c (thread_across_edge): After threading
2170         through a joiner, allow threading a normal block requiring duplication.
2172         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2173         jump threading requests that would muck up the loop structures.
2175         * tree-ssa-threadupdate.c: Fix trailing whitespace.
2176         * tree-ssa-threadupdate.h: Likewise.
2178 2013-11-19  Mike Stump  <mikestump@comcast.net>
2180         * gdbinit.in: Add pmz to print out mpz values.
2182 2013-11-20  Jan Hubicka  <jh@suse.cz>
2184         * common.opt (ffat-lto-objects): Disable by default.
2185         * doc/invoke.texi (fat-lto-objects): Update documentation.
2186         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2188 2013-11-19  Martin Jambor  <mjambor@suse.cz>
2190         PR rtl-optimization/59099
2191         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2192         here.
2193         (ira): Move init_reg_equiv and call to
2194         split_live_ranges_for_shrink_wrap up, remove analyses around call
2195         to find_moveable_pseudos.
2197 2013-11-20  Alan Modra  <amodra@gmail.com>
2199         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2200         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2201         to strict alignment on older processors when little-endian.
2202         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2203         for ELFv2.
2205 2013-11-19  Teresa Johnson  <tejohnson@google.com>
2207         * common/config/i386/i386-common.c: Enable
2208         -freorder-blocks-and-partition at -O2 and up for x86.
2209         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2210         * opts.c (finish_options): Only warn if
2211         -freorder-blocks-and-partition was set on command line.
2213 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
2215         * final.c (final_scan_insn): Emit a label for the split
2216         cold function part.  Label name is formed by suffixing
2217         the original function name with "cold".
2219 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2221         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2222         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2223         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2224         (EXIT_BLOCK_PTR_FOR_FN): ...this.
2225         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2226         cfun be explicit.
2227         (EXIT_BLOCK_PTR): Likewise.
2228         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2229         (FOR_ALL_BB_FN): Update for renaming of
2230         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2232         * cfg.c (init_flow): Likewise.
2233         (check_bb_profile): Likewise.
2234         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2235         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2236         * cfghooks.c (account_profile_record): Likewise.
2237         * cfgloop.c (init_loops_structure): Likewise.
2238         * cgraphbuild.c (record_eh_tables): Likewise.
2239         (compute_call_stmt_bb_frequency): Likewise.
2240         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2241         * lto-streamer-in.c (input_cfg): Likewise.
2242         * predict.c (maybe_hot_frequency_p): Likewise.
2243         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2244         * tree-inline.c (initialize_cfun): Likewise.
2245         (copy_cfg_body): Likewise.
2246         (copy_body): Likewise.
2247         (tree_function_versioning): Likewise.
2249         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2250         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2251         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2252         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2253         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2254         (connect_traces): Likewise.
2255         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2256         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2257         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2258         macro.
2259         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2260         EXIT_BLOCK_PTR.
2261         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2262         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2263         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2264         (rotate_loop): Likewise.
2265         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2266         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2267         EXIT_BLOCK_PTR.
2268         (alloc_aux_for_edges): Likewise.
2269         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2270         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2271         EXIT_BLOCK_PTR.
2272         (compact_blocks): Likewise.
2273         (clear_edges): Likewise.
2274         * cfganal.c (single_pred_before_succ_order): Remove usage of
2275         ENTRY_BLOCK_PTR macro.
2276         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2277         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2278         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2279         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2280         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2281         EXIT_BLOCK_PTR.
2282         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2283         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2284         EXIT_BLOCK_PTR.
2285         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2286         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2287         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2288         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2289         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2290         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2291         EXIT_BLOCK_PTR.
2292         (print_edge_list): Likewise.
2293         (create_edge_list): Likewise.
2294         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2295         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2296         EXIT_BLOCK_PTR.
2297         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2298         macro.
2299         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2300         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2301         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2302         (try_optimize_cfg): Likewise.
2303         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2304         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2305         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2306         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2307         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2308         (try_forward_edges): Likewise.
2309         (try_simplify_condjump): Likewise.
2310         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2311         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2312         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2313         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2314         EXIT_BLOCK_PTR.
2315         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2316         (expand_gimple_tailcall): Likewise.
2317         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2318         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2319         (tidy_fallthru_edges): Likewise.
2320         (verify_flow_info): Likewise.
2321         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2322         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2323         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2324         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2325         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2326         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2327         (get_loop_body_in_dom_order): Likewise.
2328         (get_loop_body): Likewise.
2329         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2330         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2331         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2332         macro.
2333         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2334         (fix_bb_placement): Likewise.
2335         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2336         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2337         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2338         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2339         EXIT_BLOCK_PTR.
2340         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2341         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2342         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2343         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2344         macro.
2345         (fixup_fallthru_exit_predecessor): Remove uses of macros:
2346         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2347         (fixup_reorder_chain): Likewise.
2348         (relink_block_chain): Likewise.
2349         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2350         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2351         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2352         (force_one_exit_fallthru): Likewise.
2353         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2354         EXIT_BLOCK_PTR.
2355         (rtl_verify_edges): Likewise.
2356         (commit_edge_insertions): Likewise.
2357         (commit_one_edge_insertion): Likewise.
2358         (rtl_split_edge): Likewise.
2359         (force_nonfallthru_and_redirect): Likewise.
2360         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2361         (skip_insns_after_block): Likewise.
2362         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2363         EXIT_BLOCK_PTR.
2364         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2365         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2366         EXIT_BLOCK_PTR.
2367         (contains_no_active_insn_p): Likewise.
2368         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2369         (entry_of_function): Likewise.
2370         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2371         (fixup_new_cold_bb): Likewise.
2372         (patch_jump_insn): Likewise.
2373         (try_redirect_by_replacing_jump): Likewise.
2374         (block_label): Likewise.
2375         (could_fall_through): Likewise.
2376         (can_fallthru): Likewise.
2377         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2378         ENTRY_BLOCK_PTR macro.
2379         (rebuild_cgraph_edges): Likewise.
2380         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2381         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2382         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2383         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2384         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2385         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2386         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2387         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2388         macro.
2389         (reg_nonzero_bits_for_combine): Likewise.
2390         (set_nonzero_bits_and_sign_copies): Likewise.
2391         (combine_instructions): Likewise.
2392         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2393         EXIT_BLOCK_PTR.
2394         (bypass_conditional_jumps): Likewise.
2395         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2396         (find_implicit_sets): Likewise.
2397         (cprop_jump): Likewise.
2398         * cse.c (cse_cc_succs): Likewise.
2399         (cse_find_path): Likewise.
2400         * df-problems.c (df_lr_confluence_0): Likewise.
2401         * df-scan.c (df_entry_block_defs_collect): Remove usage of
2402         ENTRY_BLOCK_PTR macro.
2403         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2404         * dominance.c (iterate_fix_dominators): Remove usage of
2405         ENTRY_BLOCK_PTR macro.
2406         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2407         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2408         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2409         EXIT_BLOCK_PTR.
2410         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2411         macro.
2412         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2413         EXIT_BLOCK_PTR.
2414         * domwalk.c (cmp_bb_postorder): Likewise.
2415         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2416         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2417         macro.
2418         (sjlj_emit_function_enter): Likewise.
2419         * final.c (compute_alignments): Likewise.
2420         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2421         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2422         (reposition_prologue_and_epilogue_notes): Remove usage of
2423         EXIT_BLOCK_PTR macro.
2424         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2425         EXIT_BLOCK_PTR.
2426         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2427         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2428         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2429         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2430         (compute_code_hoist_vbeinout): Likewise.
2431         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2432         (pre_expr_reaches_here_p_work): Likewise.
2433         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2434         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2435         EXIT_BLOCK_PTR.
2436         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2437         ENTRY_BLOCK_PTR macro.
2438         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2439         macro.
2440         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2441         ENTRY_BLOCK_PTR macro.
2442         * graphite-scop-detection.c (build_scops): Likewise.
2443         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2444         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2445         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2446         macro.
2447         (unlink_bb_notes): Likewise.
2448         (create_check_block_twin): Likewise.
2449         (init_before_recovery): Likewise.
2450         (sched_extend_bb): Likewise.
2451         (priority): Likewise.
2452         * hw-doloop.c (reorder_loops): Likewise.
2453         (discover_loop): Likewise.
2454         * ifcvt.c (dead_or_predicable): Remove uses of macros:
2455         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2456         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2457         (block_has_only_trap): Likewise.
2458         (cond_exec_find_if_block): Likewise.
2459         (merge_if_block): Likewise.
2460         * ipa-inline-analysis.c (param_change_prob): Remove usage of
2461         ENTRY_BLOCK_PTR macro.
2462         (record_modified): Likewise.
2463         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2464         EXIT_BLOCK_PTR macro.
2465         (local_pure_const): Likewise.
2466         * ipa-split.c (split_function): Remove uses of macros:
2467         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2468         (find_split_points): Likewise.
2469         (consider_split): Likewise.
2470         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2471         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2472         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2473         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2474         * ira-emit.c (entered_from_non_parent_p): Remove usage of
2475         ENTRY_BLOCK_PTR macro.
2476         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2477         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2478         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2479         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2480         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2481         macro.
2482         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2483         EXIT_BLOCK_PTR.
2484         (compute_farthest): Likewise.
2485         (compute_available): Likewise.
2486         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2487         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2488         EXIT_BLOCK_PTR.
2489         (compute_earliest): Likewise.
2490         (compute_antinout_edge): Likewise.
2491         * loop-iv.c (simplify_using_initial_values): Remove usage of
2492         ENTRY_BLOCK_PTR macro.
2493         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2494         macro.
2495         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2496         macro.
2497         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2498         macro.
2499         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2500         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2501         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2502         macro.
2503         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2504         macro.
2505         * lto-streamer-out.c (output_cfg): Likewise.
2506         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2507         EXIT_BLOCK_PTR.
2508         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2509         * mode-switching.c (optimize_mode_switching): Likewise.
2510         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2511         * modulo-sched.c (rest_of_handle_sms): Likewise.
2512         (canon_loop): Likewise.
2513         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2514         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2515         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2516         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2517         macro.
2518         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2519         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2520         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2521         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2522         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2523         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2524         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2525         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2526         (gimple_predict_edge): Likewise.
2527         (probably_never_executed): Likewise.
2528         * profile.c (find_spanning_tree): Remove uses of macros:
2529         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2530         (branch_prob): Likewise.
2531         (compute_branch_probabilities): Likewise.
2532         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2533         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2534         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2535         (set_bb_counts): Likewise.
2536         (correct_negative_edge_counts): Likewise.
2537         (get_exec_counts): Likewise.
2538         (instrument_values): Likewise.
2539         (instrument_edges): Likewise.
2540         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2541         EXIT_BLOCK_PTR.
2542         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2543         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2544         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2545         (reg_to_stack): Likewise.
2546         * regs.h (REG_N_SETS): Likewise.
2547         * reload.c (find_dummy_reload): Likewise.
2548         (combine_reloads): Likewise.
2549         (push_reload): Likewise.
2550         * reload1.c (has_nonexceptional_receiver): Remove usage of
2551         EXIT_BLOCK_PTR macro.
2552         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2553         macro.
2554         (find_basic_block): Likewise.
2555         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2556         (schedule_ebbs): Likewise.
2557         * sched-int.h (sel_sched_p): Likewise.
2558         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2559         macro.
2560         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2561         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2562         EXIT_BLOCK_PTR.
2563         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2564         (extend_rgns): Likewise.
2565         (find_single_block_region): Likewise.
2566         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2567         ENTRY_BLOCK_PTR macro.
2568         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2569         (sel_create_recovery_block): Likewise.
2570         (bb_ends_ebb_p): Likewise.
2571         (sel_bb_end): Likewise.
2572         (sel_bb_head): Likewise.
2573         (free_lv_sets): Likewise.
2574         (init_lv_sets): Likewise.
2575         (tidy_control_flow): Likewise.
2576         (maybe_tidy_empty_bb): Likewise.
2577         * sel-sched-ir.h (_succ_iter_cond): Likewise.
2578         (_succ_iter_start): Likewise.
2579         (sel_bb_empty_or_nop_p): Likewise.
2580         (get_loop_exit_edges_unique_dests): Likewise.
2581         (inner_loop_header_p): Likewise.
2582         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2583         (find_block_for_bookkeeping): Likewise.
2584         * store-motion.c (remove_reachable_equiv_notes): Likewise.
2585         (insert_store): Likewise.
2586         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2587         ENTRY_BLOCK_PTR macro.
2588         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2589         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2590         (gate_tm_init): Likewise.
2591         (tm_region_init): Likewise.
2592         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2593         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2594         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2595         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2596         EXIT_BLOCK_PTR.
2597         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2598         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2599         EXIT_BLOCK_PTR.
2600         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2601         macro.
2602         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2603         EXIT_BLOCK_PTR.
2604         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2605         macro.
2606         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2607         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2608         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2609         (build_gimple_cfg): Likewise.
2610         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2611         (gimple_can_merge_blocks_p): Likewise.
2612         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2613         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2614         * tree-complex.c (update_parameter_components): Remove usage of
2615         ENTRY_BLOCK_PTR macro.
2616         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2617         EXIT_BLOCK_PTR macro.
2618         * tree-inline.c (tree_function_versioning): Remove uses of macros:
2619         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2620         (delete_unreachable_blocks_update_callgraph): Likewise.
2621         (initialize_cfun): Likewise.
2622         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2623         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2624         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2625         * tree-into-ssa.c (update_ssa): Likewise.
2626         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2627         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2628         (rewrite_into_ssa): Likewise.
2629         (rewrite_debug_stmt_uses): Likewise.
2630         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2631         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2632         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2633         ENTRY_BLOCK_PTR macro.
2634         * tree-scalar-evolution.h (block_before_loop): Likewise.
2635         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2636         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2637         EXIT_BLOCK_PTR.
2638         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2639         macro.
2640         (propagate_dereference_distances): Remove uses of macros:
2641         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2642         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2643         macro.
2644         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2645         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2646         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2647         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2648         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2649         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2650         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2651         (mark_control_dependent_edges_necessary): Remove uses of macros:
2652         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2653         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2654         ENTRY_BLOCK_PTR macro.
2655         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2656         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2657         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2658         (calculate_live_on_exit): Likewise.
2659         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2660         (loe_visit_block): Likewise.
2661         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
2662         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2663         (live_on_entry): Likewise.
2664         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
2665         EXIT_BLOCK_PTR macro.
2666         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
2667         ENTRY_BLOCK_PTR macro.
2668         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2669         (bound_difference): Likewise.
2670         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2671         of EXIT_BLOCK_PTR macro.
2672         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2673         of ENTRY_BLOCK_PTR macro.
2674         * tree-ssa-math-opts.c (register_division_in): Likewise.
2675         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2676         * tree-ssa-pre.c (compute_avail): Likewise.
2677         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2678         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2679         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2680         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2681         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2682         EXIT_BLOCK_PTR.
2683         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2684         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2685         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2686         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2687         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2688         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2689         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2690         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2691         (find_pdom): Likewise.
2692         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2693         * tree-stdarg.c (reachable_at_most_once): Likewise.
2694         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2695         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2696         (eliminate_tail_call): Likewise.
2697         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2698         macro.
2699         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2700         * var-tracking.c (vt_initialize): Remove uses of macros:
2701         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2702         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2703         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2704         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2705         EXIT_BLOCK_PTR.
2706         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2707         macro.
2708         * config/bfin/bfin.c (hwloop_optimize): Likewise.
2709         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2710         of EXIT_BLOCK_PTR macro.
2711         * config/arm/arm.c (require_pic_register): Remove usage of
2712         ENTRY_BLOCK_PTR macro.
2713         (arm_r3_live_at_start_p): Likewise.
2714         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2715         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2716         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2717         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2718         ENTRY_BLOCK_PTR macro.
2719         * config/i386/i386.c (ix86_count_insn): Likewise.
2720         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2721         (ix86_pad_short_function): Likewise.
2722         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2723         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2724         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2725         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2726         (ix86_expand_epilogue): Likewise.
2727         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2728         (ia64_expand_prologue): Likewise.
2730 2013-11-19  Catherine Moore  <clm@codesourcery.com>
2732         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2733         * config/mips/mips.opt (mfix-rm7000): New option.
2734         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2735         * config/mips/mips.c (mips_reorg_process_insns): Disable
2736         noreorder for TARGET_FIX_RM7000.
2738 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
2740         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2742 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2744         * config/arm/arm.c (arm_new_rtx_costs):
2745         Handle narrow mode add-shifts properly.
2746         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2747         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2748         Declare extern.
2750 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
2752         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
2754 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2756         * config/rs6000/vector.md ("mov<mode>"): Do not call
2757         rs6000_emit_le_vsx_move to move into or out of GPRs.
2758         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
2759         source and destination are not GPR hard regs.
2761 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2763         * basic-block.h (n_edges_for_function): Rename macro to...
2764         (n_edges_for_fn): ...this.
2765         (n_edges): Eliminate macro as work towards making uses of
2766         cfun be explicit.
2768         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
2769         to "n_edges_for_fn".
2771         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
2772         (clear_edges): Likewise.
2773         (free_edge): Likewise.
2774         * cfghooks.c (dump_flow_info): Likewise.
2775         * cprop.c (is_too_expensive): Likewise.
2776         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2777         * gcse.c (is_too_expensive): Likewise.
2778         (prune_insertions_deletions): Likewise.
2779         * mcf.c (create_fixup_graph): Likewise.
2780         * sched-rgn.c (haifa_find_rgns): Likewise.
2781         * tree-cfg.c (gimple_dump_cfg): Likewise.
2782         * var-tracking.c (variable_tracking_main_1): Likewise.
2784 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2786         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
2787         length lines.
2789 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2791         * config/aarch64/aarch64.md
2792         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
2794 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2796         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
2798 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
2800         * varasm.c (align_variable): Give error instead of warning for
2801         unsupported alignment.
2802         (assemble_noswitch_variable): Likewise.
2804 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2806         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
2807         cb_file_change.
2809 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
2811         * loop-doloop.c (doloop_optimize_loops): Remove unused
2812         loop iterator argument from FOR_EACH_LOOP.
2814 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2816         Convert gimple types from a union to C++ inheritance.
2817         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
2818         * coretypes.h (union gimple_statement_d): Remove declaration.
2819         (gimple): Convert from being a "union gimple_statement_d *"
2820         to a "struct gimple_statement_base *".
2821         (const_gimple): Likewise (with "const").
2822         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
2823         (ggc_alloc_cleared_gimple_statement_stat): ...this.
2824         * gimple-pretty-print.c (debug): Change parameter from a
2825         "gimple_statement_d &" to a "gimple_statement_base &".
2826         (debug): Change parameter from a "gimple_statement_d *" to
2827         a "gimple_statement_base *".
2828         * gimple-pretty-print.h (debug): Update declarations as above.
2829         * gimple.c (gimple_alloc_stat): Update for renaming of
2830         ggc_alloc_cleared_gimple_statement_d_stat to
2831         ggc_alloc_cleared_gimple_statement_stat.
2832         * gimple.h: Include "is-a.h" for use by is_a_helper
2833         specializations in followup autogenerated patch.
2834         (struct gimple statement_base): Make this type usable as a base
2835         class by adding "desc", "tag" and "variable_size" to GTY, thus
2836         using opting-in to gengtype's support for simple inheritance.
2837         (gimple_statement_with_ops_base): Convert to a subclass of
2838         gimple_statement_base, dropping initial "gsbase" field.  Note that
2839         this type is abstract, with no GSS_ value, and thus no GTY tag value.
2840         (gimple_statement_with_ops): Convert to a subclass of
2841         gimple_statement_with_ops_base, dropping initial "opbase" field.
2842         Add tag value to GTY marking.  Update marking of op field to
2843         reflect how num_ops field is accessed via inheritance.
2844         (gimple_statement_with_memory_ops_base): Convert to a subclass of
2845         gimple_statement_with_ops_base, dropping initial "opbase" field.
2846         Add tag value to GTY marking.
2847         (gimple_statement_with_memory_ops): Convert to a subclass of
2848         public gimple_statement_with_memory_ops_base, dropping initial
2849         "membase" field.  Add tag value to GTY marking.  Update marking
2850         of op field to reflect how num_ops field is accessed via inheritance.
2851         (gimple_statement_call): Analogous changes that also update the
2852         marking of the "u" union.
2853         (gimple_statement_omp): Convert to a subclass of
2854         gimple_statement_base, dropping initial "gsbase" field, adding
2855         tag value to GTY marking.
2856         (gimple_statement_bind): Likewise.
2857         (gimple_statement_catch): Likewise.
2858         (gimple_statement_eh_filter): Likewise.
2859         (gimple_statement_eh_else): Likewise.
2860         (gimple_statement_eh_mnt): Likewise.
2861         (gimple_statement_phi): Likewise.
2862         (gimple_statement_eh_ctrl): Likewise.
2863         (gimple_statement_try): Likewise.
2864         (gimple_statement_wce): Likewise.
2865         (gimple_statement_asm): Convert to a subclass of
2866         gimple_statement_with_memory_ops_base, dropping initial
2867         "membase" field, adding tag value to GTY marking, and updating
2868         marking of op field.
2869         (gimple_statement_omp_critical): Convert to a subclass of
2870         gimple_statement_omp, dropping initial "omp" field, adding tag
2871         value to GTY marking.
2872         (gimple_statement_omp_for): Likewise.
2873         (gimple_statement_omp_parallel): Likewise.
2874         (gimple_statement_omp_task): Convert to a subclass of
2875         gimple_statement_omp_parallel, dropping initial "par" field,
2876         adding tag value to GTY marking.
2877         (gimple_statement_omp_sections): Convert to a subclass of
2878         gimple_statement_omp, dropping initial "omp" field, adding
2879         tag value to GTY marking.
2880         (gimple_statement_omp_continue): Convert to a subclass of
2881         gimple_statement_base, dropping initial "gsbase" field, adding
2882         tag value to GTY marking.
2883         (gimple_statement_omp_single): Convert to a subclass of
2884         gimple_statement_omp, dropping initial "omp" field, adding
2885         tag value to GTY marking.
2886         (gimple_statement_omp_atomic_load): Convert to a subclass of
2887         gimple_statement_base, dropping initial "gsbase" field, adding
2888         tag value to GTY marking.
2889         (gimple_statement_omp_atomic_store): Convert to a subclass of
2890         gimple_statement_base, dropping initial "gsbase" field, adding
2891         tag value to GTY marking.
2892         (gimple_statement_transaction): Convert to a subclass of
2893         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
2894         field, adding tag value to GTY marking.
2895         (union gimple_statement_d): Remove.
2896         * system.h (CONST_CAST_GIMPLE): Update to use
2897         "struct gimple_statement_base *" rather than
2898         "union gimple_statement_d *".
2899         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
2900         gimple_statement_d to gimple_statement_base.
2902         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
2903         (gimple_set_use_ops): Port from union to usage of as_a.
2904         (gimple_set_vuse): Likewise.
2905         (gimple_set_vdef): Likewise.
2906         (gimple_call_internal_fn): Port from union to a static_cast,
2907         given that the type has already been asserted.
2908         (gimple_omp_body_ptr): Port from unchecked union usage to
2909         a static_cast.
2910         (gimple_omp_set_body): Likewise.
2912         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
2913         gimple types to a true class hierarchy.
2914         (update_call_edge_frequencies): Likewise.
2915         (gsi_insert_seq_nodes_before): Likewise.
2916         (gsi_insert_seq_nodes_after): Likewise.
2917         (gsi_split_seq_after): Likewise.
2918         (gsi_set_stmt): Likewise.
2919         (gsi_split_seq_before): Likewise.
2920         (gsi_remove): Likewise.
2921         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
2922         (gsi_next): Likewise.
2923         (gsi_prev): Likewise.
2924         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
2925         * gimple-ssa.h (gimple_vuse_op): Likewise.
2926         (gimple_vdef_op): Likewise.
2927         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
2928         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
2929         * gimple.c (gimple_set_code): Likewise.
2930         (gimple_alloc_stat): Likewise.
2931         (gimple_set_subcode): Likewise.
2932         (gimple_build_call_internal_1): Likewise.
2933         (gimple_check_failed): Likewise.
2934         (gimple_call_flags): Likewise.
2935         (gimple_set_bb): Likewise.
2936         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
2937         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
2938         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
2939         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
2940         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
2941         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
2942         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
2943         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
2944         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
2945         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
2946         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
2947         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
2948         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
2949         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
2950         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
2951         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
2952         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
2953         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
2954         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
2955         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
2956         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
2957         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
2958         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
2959         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
2960         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
2961         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
2962         Likewise.
2963         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
2964         Likewise.
2965         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
2966         Likewise.
2967         (is_a_helper <const gimple_statement_omp_atomic_store>
2968         (const_gimple)): Likewise.
2969         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
2970         Likewise.
2971         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
2972         Likewise.
2973         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
2974         Likewise.
2975         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
2976         Likewise.
2977         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
2978         Likewise.
2979         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
2980         Likewise.
2981         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
2982         Likewise.
2983         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
2984         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
2985         Likewise.
2986         (gimple_seq_last): Update for conversion of gimple types to a true
2987         class hierarchy.
2988         (gimple_seq_set_last): Likewise.
2989         (gimple_code): Likewise.
2990         (gimple_bb): Likewise.
2991         (gimple_block): Likewise.
2992         (gimple_set_block): Likewise.
2993         (gimple_location): Likewise.
2994         (gimple_location_ptr): Likewise.
2995         (gimple_set_location): Likewise.
2996         (gimple_no_warning_p): Likewise.
2997         (gimple_set_no_warning): Likewise.
2998         (gimple_set_visited): Likewise.
2999         (gimple_visited_p): Likewise.
3000         (gimple_set_plf): Likewise.
3001         (gimple_plf): Likewise.
3002         (gimple_set_uid): Likewise.
3003         (gimple_uid): Likewise.
3004         (gimple_init_singleton): Likewise.
3005         (gimple_modified_p): Likewise.
3006         (gimple_set_modified): Likewise.
3007         (gimple_expr_code): Likewise.
3008         (gimple_has_volatile_ops): Likewise.
3009         (gimple_set_has_volatile_ops): Likewise.
3010         (gimple_omp_subcode): Likewise.
3011         (gimple_omp_set_subcode): Likewise.
3012         (gimple_omp_return_set_nowait): Likewise.
3013         (gimple_omp_section_set_last): Likewise.
3014         (gimple_omp_parallel_set_combined_p): Likewise.
3015         (gimple_omp_atomic_set_need_value): Likewise.
3016         (gimple_omp_atomic_set_seq_cst): Likewise.
3017         (gimple_num_ops): Likewise.
3018         (gimple_set_num_ops): Likewise.
3019         (gimple_assign_nontemporal_move_p): Likewise.
3020         (gimple_assign_set_nontemporal_move): Likewise.
3021         (gimple_assign_rhs_code): Likewise.
3022         (gimple_assign_set_rhs_code): Likewise.
3023         (gimple_call_internal_p): Likewise.
3024         (gimple_call_with_bounds_p): Likewise.
3025         (gimple_call_set_with_bounds): Likewise.
3026         (gimple_call_set_tail): Likewise.
3027         (gimple_call_tail_p): Likewise.
3028         (gimple_call_set_return_slot_opt): Likewise.
3029         (gimple_call_return_slot_opt_p): Likewise.
3030         (gimple_call_set_from_thunk): Likewise.
3031         (gimple_call_from_thunk_p): Likewise.
3032         (gimple_call_set_va_arg_pack): Likewise.
3033         (gimple_call_va_arg_pack_p): Likewise.
3034         (gimple_call_set_nothrow): Likewise.
3035         (gimple_call_set_alloca_for_var): Likewise.
3036         (gimple_call_alloca_for_var_p): Likewise.
3037         (gimple_call_copy_flags): Likewise.
3038         (gimple_cond_code): Likewise.
3039         (gimple_cond_set_code): Likewise.
3040         (gimple_cond_make_false): Likewise.
3041         (gimple_cond_make_true): Likewise.
3042         (gimple_asm_volatile_p): Likewise.
3043         (gimple_asm_set_volatile): Likewise.
3044         (gimple_asm_set_input): Likewise.
3045         (gimple_asm_input_p): Likewise.
3046         (gimple_try_kind): Likewise.
3047         (gimple_try_set_kind): Likewise.
3048         (gimple_try_catch_is_cleanup): Likewise.
3049         (gimple_try_set_catch_is_cleanup): Likewise.
3050         (gimple_wce_cleanup_eh_only): Likewise.
3051         (gimple_wce_set_cleanup_eh_only): Likewise.
3052         (gimple_debug_bind_p): Likewise.
3053         (gimple_debug_source_bind_p): Likewise.
3054         (gimple_omp_for_set_kind): Likewise.
3055         (gimple_omp_for_set_combined_p): Likewise.
3056         (gimple_omp_for_set_combined_into_p): Likewise.
3057         (gimple_omp_target_set_kind): Likewise.
3058         (gimple_transaction_subcode): Likewise.
3059         (gimple_transaction_set_subcode): Likewise.
3060         (gimple_predict_predictor): Likewise.
3061         (gimple_predict_set_predictor): Likewise.
3062         (gimple_predict_outcome): Likewise.
3063         (gimple_predict_set_outcome): Likewise.
3064         (gimple_transaction_set_label): Likewise.
3065         (gimple_transaction_set_body): Likewise.
3066         (gimple_transaction_label_ptr): Likewise.
3067         (gimple_transaction_label): Likewise.
3068         (gimple_transaction_body_ptr): Likewise.
3069         (gimple_omp_continue_set_control_use): Likewise.
3070         (gimple_omp_continue_control_use_ptr): Likewise.
3071         (gimple_omp_continue_control_use): Likewise.
3072         (gimple_omp_continue_set_control_def): Likewise.
3073         (gimple_omp_continue_control_def_ptr): Likewise.
3074         (gimple_omp_continue_control_def): Likewise.
3075         (gimple_omp_atomic_load_rhs_ptr): Likewise.
3076         (gimple_omp_atomic_load_rhs): Likewise.
3077         (gimple_omp_atomic_load_set_rhs): Likewise.
3078         (gimple_omp_atomic_load_lhs_ptr): Likewise.
3079         (gimple_omp_atomic_load_lhs): Likewise.
3080         (gimple_omp_atomic_load_set_lhs): Likewise.
3081         (gimple_omp_atomic_store_val_ptr): Likewise.
3082         (gimple_omp_atomic_store_val): Likewise.
3083         (gimple_omp_atomic_store_set_val): Likewise.
3084         (gimple_omp_for_cond): Likewise.
3085         (gimple_omp_for_set_cond): Likewise.
3086         (gimple_omp_sections_set_control): Likewise.
3087         (gimple_omp_sections_control_ptr): Likewise.
3088         (gimple_omp_sections_control): Likewise.
3089         (gimple_omp_sections_set_clauses): Likewise.
3090         (gimple_omp_sections_clauses_ptr): Likewise.
3091         (gimple_omp_sections_clauses): Likewise.
3092         (gimple_omp_teams_set_clauses): Likewise.
3093         (gimple_omp_teams_clauses_ptr): Likewise.
3094         (gimple_omp_teams_clauses): Likewise.
3095         (gimple_omp_target_set_data_arg): Likewise.
3096         (gimple_omp_target_data_arg_ptr): Likewise.
3097         (gimple_omp_target_data_arg): Likewise.
3098         (gimple_omp_target_set_child_fn): Likewise.
3099         (gimple_omp_target_child_fn_ptr): Likewise.
3100         (gimple_omp_target_child_fn): Likewise.
3101         (gimple_omp_target_set_clauses): Likewise.
3102         (gimple_omp_target_clauses_ptr): Likewise.
3103         (gimple_omp_target_clauses): Likewise.
3104         (gimple_omp_single_set_clauses): Likewise.
3105         (gimple_omp_single_clauses_ptr): Likewise.
3106         (gimple_omp_single_clauses): Likewise.
3107         (gimple_omp_task_set_arg_align): Likewise.
3108         (gimple_omp_task_arg_align_ptr): Likewise.
3109         (gimple_omp_task_arg_align): Likewise.
3110         (gimple_omp_task_set_arg_size): Likewise.
3111         (gimple_omp_task_arg_size_ptr): Likewise.
3112         (gimple_omp_task_arg_size): Likewise.
3113         (gimple_omp_task_set_copy_fn): Likewise.
3114         (gimple_omp_task_copy_fn_ptr): Likewise.
3115         (gimple_omp_task_copy_fn): Likewise.
3116         (gimple_omp_task_set_data_arg): Likewise.
3117         (gimple_omp_task_data_arg_ptr): Likewise.
3118         (gimple_omp_task_data_arg): Likewise.
3119         (gimple_omp_task_set_child_fn): Likewise.
3120         (gimple_omp_task_child_fn_ptr): Likewise.
3121         (gimple_omp_task_child_fn): Likewise.
3122         (gimple_omp_task_set_clauses): Likewise.
3123         (gimple_omp_task_clauses_ptr): Likewise.
3124         (gimple_omp_task_clauses): Likewise.
3125         (gimple_omp_parallel_set_data_arg): Likewise.
3126         (gimple_omp_parallel_data_arg_ptr): Likewise.
3127         (gimple_omp_parallel_data_arg): Likewise.
3128         (gimple_omp_parallel_set_child_fn): Likewise.
3129         (gimple_omp_parallel_child_fn_ptr): Likewise.
3130         (gimple_omp_parallel_child_fn): Likewise.
3131         (gimple_omp_parallel_set_clauses): Likewise.
3132         (gimple_omp_parallel_clauses_ptr): Likewise.
3133         (gimple_omp_parallel_clauses): Likewise.
3134         (gimple_omp_for_set_pre_body): Likewise.
3135         (gimple_omp_for_pre_body_ptr): Likewise.
3136         (gimple_omp_for_set_incr): Likewise.
3137         (gimple_omp_for_incr_ptr): Likewise.
3138         (gimple_omp_for_incr): Likewise.
3139         (gimple_omp_for_set_final): Likewise.
3140         (gimple_omp_for_final_ptr): Likewise.
3141         (gimple_omp_for_final): Likewise.
3142         (gimple_omp_for_set_initial): Likewise.
3143         (gimple_omp_for_initial_ptr): Likewise.
3144         (gimple_omp_for_initial): Likewise.
3145         (gimple_omp_for_set_index): Likewise.
3146         (gimple_omp_for_index_ptr): Likewise.
3147         (gimple_omp_for_index): Likewise.
3148         (gimple_omp_for_collapse): Likewise.
3149         (gimple_omp_for_set_clauses): Likewise.
3150         (gimple_omp_for_clauses_ptr): Likewise.
3151         (gimple_omp_for_clauses): Likewise.
3152         (gimple_omp_critical_set_name): Likewise.
3153         (gimple_omp_critical_name_ptr): Likewise.
3154         (gimple_omp_critical_name): Likewise.
3155         (gimple_eh_dispatch_set_region): Likewise.
3156         (gimple_eh_dispatch_region): Likewise.
3157         (gimple_resx_set_region): Likewise.
3158         (gimple_resx_region): Likewise.
3159         (gimple_phi_set_arg): Likewise.
3160         (gimple_phi_arg): Likewise.
3161         (gimple_phi_set_result): Likewise.
3162         (gimple_phi_result_ptr): Likewise.
3163         (gimple_phi_result): Likewise.
3164         (gimple_phi_num_args): Likewise.
3165         (gimple_phi_capacity): Likewise.
3166         (gimple_wce_set_cleanup): Likewise.
3167         (gimple_wce_cleanup_ptr): Likewise.
3168         (gimple_try_set_cleanup): Likewise.
3169         (gimple_try_set_eval): Likewise.
3170         (gimple_try_cleanup_ptr): Likewise.
3171         (gimple_try_eval_ptr): Likewise.
3172         (gimple_eh_else_set_e_body): Likewise.
3173         (gimple_eh_else_set_n_body): Likewise.
3174         (gimple_eh_else_e_body_ptr): Likewise.
3175         (gimple_eh_else_n_body_ptr): Likewise.
3176         (gimple_eh_must_not_throw_set_fndecl): Likewise.
3177         (gimple_eh_must_not_throw_fndecl): Likewise.
3178         (gimple_eh_filter_set_failure): Likewise.
3179         (gimple_eh_filter_set_types): Likewise.
3180         (gimple_eh_filter_failure_ptr): Likewise.
3181         (gimple_eh_filter_types_ptr): Likewise.
3182         (gimple_eh_filter_types): Likewise.
3183         (gimple_catch_set_handler): Likewise.
3184         (gimple_catch_set_types): Likewise.
3185         (gimple_catch_handler_ptr): Likewise.
3186         (gimple_catch_types_ptr): Likewise.
3187         (gimple_catch_types): Likewise.
3188         (gimple_asm_string): Likewise.
3189         (gimple_asm_set_label_op): Likewise.
3190         (gimple_asm_label_op): Likewise.
3191         (gimple_asm_set_clobber_op): Likewise.
3192         (gimple_asm_clobber_op): Likewise.
3193         (gimple_asm_set_output_op): Likewise.
3194         (gimple_asm_output_op_ptr): Likewise.
3195         (gimple_asm_output_op): Likewise.
3196         (gimple_asm_set_input_op): Likewise.
3197         (gimple_asm_input_op_ptr): Likewise.
3198         (gimple_asm_input_op): Likewise.
3199         (gimple_asm_nlabels): Likewise.
3200         (gimple_asm_nclobbers): Likewise.
3201         (gimple_asm_noutputs): Likewise.
3202         (gimple_asm_ninputs): Likewise.
3203         (gimple_bind_set_block): Likewise.
3204         (gimple_bind_block): Likewise.
3205         (gimple_bind_add_seq): Likewise.
3206         (gimple_bind_add_stmt): Likewise.
3207         (gimple_bind_set_body): Likewise.
3208         (gimple_bind_body_ptr): Likewise.
3209         (gimple_bind_append_vars): Likewise.
3210         (gimple_bind_set_vars): Likewise.
3211         (gimple_bind_vars): Likewise.
3212         (gimple_call_clobber_set): Likewise.
3213         (gimple_call_use_set): Likewise.
3214         (gimple_call_set_internal_fn): Likewise.
3215         (gimple_call_set_fntype): Likewise.
3216         (gimple_call_fntype): Likewise.
3217         (gimple_omp_return_lhs_ptr): Likewise.
3218         (gimple_omp_return_lhs): Likewise.
3219         (gimple_omp_return_set_lhs): Likewise.
3220         (gimple_omp_taskreg_set_data_arg): Likewise.
3221         (gimple_omp_taskreg_data_arg_ptr): Likewise.
3222         (gimple_omp_taskreg_data_arg): Likewise.
3223         (gimple_omp_taskreg_set_child_fn): Likewise.
3224         (gimple_omp_taskreg_child_fn_ptr): Likewise.
3225         (gimple_omp_taskreg_child_fn): Likewise.
3226         (gimple_omp_taskreg_set_clauses): Likewise.
3227         (gimple_omp_taskreg_clauses_ptr): Likewise.
3228         (gimple_omp_taskreg_clauses): Likewise.
3229         (gimple_vuse): Likewise.
3230         (gimple_vdef): Likewise.
3231         (gimple_vuse_ptr): Likewise.
3232         (gimple_vdef_ptr): Likewise.
3233         * tree-inline.c (copy_debug_stmt): Likewise.
3234         * tree-phinodes.c (make_phi_node): Likewise.
3236         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3237         (is_a_helper <gimple_statement_with_ops>::test): New.
3238         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3239         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3241         * gimple-streamer-in.c (input_gimple_stmt): Port from union
3242         access to use of as_a.
3243         * gimple.c (gimple_build_asm_1): Likewise.
3244         (gimple_build_try): Likewise.  Also, return a specific subclass
3245         rather than just gimple.
3246         (gimple_build_resx): Port from union access to use of as_a.
3247         (gimple_build_eh_dispatch): Likewise.
3248         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
3249         now that gengtype no longer provides a typed allocator function.
3250         (gimple_copy): Likewise.
3251         * gimple.h (gimple_build_try): Return a specific subclass rather
3252         than just gimple.
3253         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3254         with subclass access by making use of new return type of
3255         gimple_build_try.
3256         * tree-phinodes.c: (allocate_phi_node): Return a
3257         "gimple_statement_phi *" rather than just a gimple.
3258         (resize_phi_node): Likewise.
3259         (make_phi_node): Replace union access with subclass access by
3260         making use of new return type of allocate_phi_node.
3261         (reserve_phi_args_for_new_edge): Replace union access with as_a.
3262         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3263         than just a gimple.
3264         (remove_phi_args): Update for change to remove_phi_arg_num.
3266         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3267         code field to reflect inheritance, rather than embedding of
3268         the base gimple type.
3270 2013-11-19  Richard Biener  <rguenther@suse.de>
3272         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3273         and destructor and make fel_next a member function.
3274         (fel_next): Transform into ...
3275         (loop_iterator::next): ... this.
3276         (fel_init): Transform into ...
3277         (loop_iterator::loop_iterator): ... this.
3278         (loop_iterator::~loop_iterator): New.
3279         (FOR_EACH_LOOP): Remove loop-iterator argument.
3280         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3281         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3282         graphite-clast-to-gimple.c, graphite-scop-detection.c,
3283         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3284         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3285         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3286         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3287         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3288         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3289         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3290         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3291         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3292         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
3293         FOR_EACH_LOOP_BREAK with break.
3295 2013-11-19  Richard Biener  <rguenther@suse.de>
3297         PR tree-optimization/59164
3298         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3299         Uncomment assert.
3300         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3301         whether we can create an epilogue loop to reflect thecases where
3302         we create one.
3304 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
3306         * graphite-sese-to-poly.c: Include expr.h.
3308 2013-11-19  Richard Biener  <rguenther@suse.de>
3310         PR middle-end/58956
3311         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3312         loads into stmts that may clobber it.
3314 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
3316         * cgraphunit.c (symtab_terminator): New variable.
3317         (queued_nodes): Renamed from first.  Use symtab_terminator as
3318         initializer.
3319         (analyze_functions): Adjust accordingly.
3320         (cgraph_process_new_functions): Return void.
3321         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3323 2013-11-19  Marek Polacek  <polacek@redhat.com>
3325         * opts.c (common_handle_option): Add -fsanitize=null option.
3326         Turn off -fdelete-null-pointer-checks option when doing the
3327         NULL pointer checking.
3328         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3329         * tree-pass.h (make_pass_ubsan): Declare.
3330         (make_pass_sanopt): Declare.
3331         * timevar.def (TV_TREE_UBSAN): New timevar.
3332         * passes.def: Add pass_sanopt and pass_ubsan.
3333         * ubsan.h (ubsan_null_ckind): New enum.
3334         (ubsan_mismatch_data): New struct.
3335         (ubsan_expand_null_ifn): Declare.
3336         (ubsan_create_data): Adjust declaration.
3337         (ubsan_type_descriptor): Likewise.
3338         * asan.c: Include "ubsan.h".
3339         (pass_data_sanopt): New pass.
3340         (execute_sanopt): New function.
3341         (gate_sanopt): Likewise.
3342         (make_pass_sanopt): Likewise.
3343         (class pass_sanopt): New class.
3344         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3345         gimple-iterator.h and cfgloop.h.
3346         (PROB_VERY_UNLIKELY): Define.
3347         (tree_type_map_hash): New function.
3348         (ubsan_type_descriptor): Add new parameter.
3349         Improve type name generation.
3350         (ubsan_create_data): Add new parameter.  Add pointer data into
3351         ubsan structure.
3352         (ubsan_expand_null_ifn): New function.
3353         (instrument_member_call): Likewise.
3354         (instrument_mem_ref): Likewise.
3355         (instrument_null): Likewise.
3356         (ubsan_pass): Likewise.
3357         (gate_ubsan): Likewise.
3358         (make_pass_ubsan): Likewise.
3359         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3360         (class pass_ubsan): New class.
3361         (pass_data_ubsan): New pass.
3362         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3363         * internal-fn.c (expand_UBSAN_NULL): New function.
3364         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3365         even when !flag_toplevel_reorder.
3366         * internal-fn.def (UBSAN_NULL): New.
3368 2013-11-19  Jan Hubicka  <jh@suse.cz>
3370         * cgraph.c (cgraph_create_indirect_edge): Use
3371         get_polymorphic_call_info.
3372         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3373         maybe_in_construction and maybe_derived_type.
3374         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3375         (ipa_dummy_polymorphic_call_context): New global var.
3376         (possible_polymorphic_call_targets): Add context paramter.
3377         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3378         (possible_polymorphic_call_target_p): Likewise.
3379         (get_polymorphic_call_info): New function.
3380         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3381         (add_type_duplicate): Remove forgotten debug output.
3382         (method_class_type): Add sanity check.
3383         (maybe_record_node): Add FINALP parameter.
3384         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3385         by info by get_binfo_at_offset.
3386         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3387         parameters; pass them to record-binfo.
3388         (polymorphic_call_target_d): Add context and FINAL.
3389         (polymorphic_call_target_hasher::hash): Hash context.
3390         (polymorphic_call_target_hasher::equal): Compare context.
3391         (free_polymorphic_call_targets_hash):
3392         (get_class_context): New function.
3393         (contains_type_p): New function.
3394         (get_polymorphic_call_info): New function.
3395         (walk_bases): New function.
3396         (possible_polymorphic_call_targets): Add context parameter; honnor it.
3397         (dump_possible_polymorphic_call_targets): Dump context.
3398         (possible_polymorphic_call_target_p): Add context.
3399         (update_type_inheritance_graph): Update comment.s
3400         (ipa_set_jf_known_type): Assert that compoentn type is known.
3401         (ipa_note_param_call): Do not tamper with offsets.
3402         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3403         outer type.
3404         (update_indirect_edges_after_inlining): Likewise.
3405         (ipa_write_indirect_edge_info): Stream new fields.
3406         (ipa_read_indirect_edge_info): Stream in new fields.
3408 2013-11-19  Jan Hubicka  <jh@suse.cz>
3410         * tree-pretty-print.c (dump_generic_node): Print class type of
3411         OBJ_TYPE_REF.
3413 2013-11-19  Joey Ye  <joey.ye@arm.com>
3415         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3416         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3417         for new option.
3418         * config/arm/arm.c (arm_option_override): By default disable
3419         -marm-pic-data-is-text-relative.
3420         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3421         (arm_assemble_integer): Likewise.
3422         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3423         New macro to initialize -marm-pic-data-is-text-relative.
3425 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
3427         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3428         (address_cost_data): New field.
3429         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3430         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
3432 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
3434         * config/aarch64/aarch64.md: Remove v8type from all insns.
3436 2013-11-19  Richard Biener  <rguenther@suse.de>
3438         PR tree-optimization/57517
3439         * tree-predcom.c (combinable_refs_p): Verify the combination
3440         is always executed when the refs are.
3442 2013-11-19  Jeff Law  <law@redhat.com>
3444         * tree-ssa-threadupdate.c: Include ssa-iterators.h
3445         (copy_phi_arg_into_existing_phi): New function.
3446         (any_remaining_duplicated_blocks): Likewise.
3447         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3448         blocks on a jump threading path.
3450         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
3451         thread through a joiner which has the latch edge.
3453 2013-11-19  Jan Hubicka  <jh@suse.cz>
3455         * md.texi (setmem): Document new parameter.
3456         * optabs.c (maybe_gen_insn): Support 9 operands.
3457         * builtins.c (determine_block_size): Add probable_max_size;
3458         support anti-ranges.
3459         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3460         probable_max_size.
3461         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3462         emit_block_move, clear_storage_hints, set_storage_via_setmem):
3463         Likewise.
3464         * expr.h (emit_block_move_hints, clear_storage_hints,
3465         set_storage_via_setmem): Update prototype.
3466         * i386.md (setmem, movmem patterns): Add 9th operand.
3467         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3468         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3469         argument; pass it to decide_alg.
3471 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3473         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3474         (n_basic_blocks_for_fn): ...this.
3476         (n_basic_blocks): Eliminate macro as work towards making uses of
3477         cfun be explicit.
3479         * cfgloop.c (init_loops_structure): Update for renaming of
3480         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3481         * graph.c (draw_cfg_nodes_no_loops): Likewise.
3482         * ipa-utils.c (ipa_merge_profiles): Likewise.
3483         * lto-streamer-in.c (make_new_block): Likewise.
3484         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3485         (dump_function_to_file): Likewise.
3487         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3488         macro with "n_basic_blocks_for_fn (cfun)".
3489         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3490         (duplicate_computed_gotos): Likewise.
3491         (reorder_basic_blocks): Likewise.
3492         * bt-load.c (augment_live_range): Likewise.
3493         * cfg.c (expunge_block): Likewise.
3494         (compact_blocks): Likewise.
3495         * cfganal.c (single_pred_before_succ_order): Likewise.
3496         (compute_idf): Likewise.
3497         (flow_dfs_compute_reverse_init): Likewise.
3498         (pre_and_rev_post_order_compute): Likewise.
3499         (pre_and_rev_post_order_compute_fn): Likewise.
3500         (inverted_post_order_compute): Likewise.
3501         (post_order_compute): Likewise.
3502         (print_edge_list): Likewise.
3503         (find_unreachable_blocks): Likewise.
3504         (mark_dfs_back_edges): Likewise.
3505         * cfgcleanup.c (try_optimize_cfg): Likewise.
3506         (try_forward_edges): Likewise.
3507         * cfghooks.c (dump_flow_info): Likewise.
3508         * cfgloop.c (verify_loop_structure): Likewise.
3509         (get_loop_body): Likewise.
3510         (flow_loops_find): Likewise.
3511         * cfgloopmanip.c (add_loop): Likewise.
3512         (remove_path): Likewise.
3513         (find_path): Likewise.
3514         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3515         (rtl_verify_bb_layout): Likewise.
3516         (entry_of_function): Likewise.
3517         (rtl_create_basic_block): Likewise.
3518         * coverage.c (coverage_compute_cfg_checksum): Likewise.
3519         * cprop.c (one_cprop_pass): Likewise.
3520         (is_too_expensive): Likewise.
3521         * df-core.c (df_compute_cfg_image): Likewise.
3522         (df_compact_blocks): Likewise.
3523         (df_worklist_dataflow_doublequeue): Likewise.
3524         * dominance.c (calculate_dominance_info): Likewise.
3525         (calc_dfs_tree): Likewise.
3526         (calc_dfs_tree_nonrec): Likewise.
3527         (init_dom_info): Likewise.
3528         * domwalk.c (cmp_bb_postorder): Likewise.
3529         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3530         (generate_setjmp_warnings): Likewise.
3531         * fwprop.c (build_single_def_use_links): Likewise.
3532         * gcse.c (is_too_expensive): Likewise.
3533         (one_code_hoisting_pass): Likewise.
3534         (one_pre_gcse_pass): Likewise.
3535         * graphite.c (graphite_initialize): Likewise.
3536         * haifa-sched.c (haifa_sched_init): Likewise.
3537         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3538         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3539         * ira-build.c (ira_build): Likewise.
3540         * lcm.c (compute_nearerout): Likewise.
3541         (compute_available): Likewise.
3542         (compute_laterin): Likewise.
3543         (compute_antinout_edge): Likewise.
3544         * lra-lives.c (lra_create_live_ranges): Likewise.
3545         * lra.c (has_nonexceptional_receiver): Likewise.
3546         * mcf.c (create_fixup_graph): Likewise.
3547         * profile.c (branch_prob): Likewise.
3548         * reg-stack.c (convert_regs_2): Likewise.
3549         * regrename.c (regrename_analyze): Likewise.
3550         * reload1.c (has_nonexceptional_receiver): Likewise.
3551         * reorg.c (dbr_schedule): Likewise.
3552         * sched-deps.c (sched_deps_init): Likewise.
3553         * sched-ebb.c (schedule_ebbs): Likewise.
3554         * sched-rgn.c (extend_regions): Likewise.
3555         (schedule_insns): Likewise.
3556         (sched_rgn_init): Likewise.
3557         (extend_rgns): Likewise.
3558         (haifa_find_rgns): Likewise.
3559         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3560         (sel_recompute_toporder): Likewise.
3561         * sel-sched.c (run_selective_scheduling): Likewise.
3562         * store-motion.c (one_store_motion_pass): Likewise.
3563         (remove_reachable_equiv_notes): Likewise.
3564         * tracer.c (tracer): Likewise.
3565         (tail_duplicate): Likewise.
3566         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3567         (dump_cfg_stats): Likewise.
3568         (gimple_dump_cfg): Likewise.
3569         (create_bb): Likewise.
3570         (build_gimple_cfg): Likewise.
3571         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3572         * tree-inline.c (optimize_inline_calls): Likewise.
3573         (fold_marked_statements): Likewise.
3574         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3575         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3576         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3577         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3578         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3579         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3580         * tree-ssa-pre.c (do_pre): Likewise.
3581         (init_pre): Likewise.
3582         (compute_avail): Likewise.
3583         * tree-ssa-reassoc.c (init_reassoc): Likewise.
3584         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3585         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3586         (init_worklist): Likewise.
3587         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3588         * var-tracking.c (variable_tracking_main_1): Likewise.
3589         (vt_find_locations): Likewise.
3590         (vt_stack_adjustments): Likewise.
3591         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3592         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3594 2013-11-18  Jan Hubicka  <jh@suse.cz>
3596         * profile.c (compute_branch_probabilities): Do not sanity check
3597         run_max.
3599 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3601         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3602         GET_MODE_PRECISION.
3603         * fold-const.c (fold_single_bit_test_into_sign_test)
3604         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3606 2013-11-18  Teresa Johnson  <tejohnson@google.com>
3608         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3609         cfglayout after bb reordering.
3610         * passes.def: Move compgotos before bb reordering since it goes into
3611         cfglayout.
3613 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
3615         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3616         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3617         static.
3618         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3619         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3620         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3621         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3622         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3623         Remove all_lto_gen_passes.
3624         * passes.c (pass_manager::dump_passes): Remove its use.
3625         (pass_manager::register_pass): Likewise.
3626         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3627         (pass_manager::pass_manager): Don't initialize or use it.
3628         (write_lto): New static function.
3629         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3630         instead of using all_lto_gen_passes.
3631         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3632         pass_ipa_lto_finish_out): Delete.
3633         * tree-pass.h (make_pass_ipa_lto_gimple_out,
3634         make_pass_ipa_lto_finish_out): Don't declare.
3636 2013-11-18  Jeff Law  <law@redhat.com>
3638         * tree-ssa-threadupdate.c (redirection_data): Record two
3639         duplicated blocks instead of just one.
3640         (local_info): Explain why we don't create a template for the
3641         second duplicated block in a thread path.
3642         (create_block_for_threading): Accept argument indicating array
3643         index into redirection_data to store its result.
3644         (lookup_redirection_data): Initialize both duplicate blocks.
3645         (ssa_create_duplicates): If a jump threading path needs multiple
3646         blocks duplicated, then duplicate them.
3647         (ssa_fix_duplicate_block_edges): Corresponding changes.
3648         (ssa_fixup_template_block, thread_single_edge):  Likewise.
3650 2013-11-18  Marek Polacek  <polacek@redhat.com>
3652         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3654 2013-11-18  Andrew Pinski <apinski@cavium.com>
3655             Steve Ellcey  <sellcey@mips.com>
3657         PR target/56552
3658         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
3659         type restriction from equality_operator on conditonal move.
3660         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
3661         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
3663 2013-11-18  Jeff Law  <law@redhat.com>
3665         * tree-ssa-threadupdate.c: Fix file block comment.
3666         Fix minor indention issue.
3668 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
3670         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3671         ix86_address_subreg_operand.  Move subreg checks to
3672         ix86_validate_address_register.  Move address override check to
3673         ix86_legitimate_address_p.
3674         (ix86_validate_address_register): New function.
3675         (ix86_legitimate_address_p): Call ix86_validate_address_register
3676         to validate base and index registers.  Add address override check
3677         from ix86_decompose_address.
3678         (ix86_decompose_address): Remove.
3680 2013-11-18  Richard Biener  <rguenther@suse.de>
3682         PR tree-optimization/59125
3683         PR tree-optimization/54570
3684         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3685         is not complete do not treat component-references with offset zero
3686         but different fields as equal.
3687         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3688         (compute_object_sizes): Apply TLC.  Propagate the constant
3689         results into all uses and fold their stmts.
3690         * passes.def (pass_all_optimizations): Move pass_object_sizes
3691         after the first pass_forwprop and before pass_fre.
3693 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3695         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3696         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3697         (tree_ctz): Remove cast to unsigned type.
3698         * builtins.c (fold_builtin_memory_op): Likewise.
3699         * dwarf2out.c (descr_info_loc): Likewise.
3700         * godump.c (go_output_typedef): Likewise.
3701         * omp-low.c (expand_omp_simd): Likewise.
3702         * stor-layout.c (excess_unit_span): Likewise.
3703         * tree-object-size.c (addr_object_size): Likewise.
3704         * tree-sra.c (analyze_all_variable_accesses): Likewise.
3705         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3706         (simplify_rotate): Likewise.
3707         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3708         (handle_pointer_plus): Likewise.
3709         * tree-switch-conversion.c (check_range): Likewise.
3710         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3711         * tsan.c (instrument_builtin_call): Likewise.
3712         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3713         * trans-mem.c (tm_log_add): Likewise.
3714         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3715         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3716         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3717         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3719 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3721         * tree.h (host_integerp, tree_low_cst): Delete.
3722         * tree.c (host_integerp, tree_low_cst): Delete.
3724 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3726         * expr.h: Update comments to refer to tree_to_[su]hwi rather
3727         than tree_low_cst.
3728         * fold-const.c (fold_binary_loc): Likewise.
3729         * expr.c (store_constructor): Use tree_to_uhwi rather than
3730         tree_low_cst.
3731         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3732         * stmt.c (emit_case_dispatch_table): Likewise.
3733         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3735 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3737         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3738         config/aarch64/aarch64.c, config/alpha/predicates.md,
3739         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3740         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3741         config/mep/mep-pragma.c, config/mips/mips.c,
3742         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3743         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3744         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3745         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3746         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3747         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3748         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3749         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
3750         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
3751         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
3753 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3755         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
3756         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
3757         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
3758         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
3759         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
3760         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
3761         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
3762         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
3763         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
3764         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
3765         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
3767 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3769         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
3770         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
3772 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3774         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
3775         than host_integerp.
3777 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3779         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
3780         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
3781         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
3782         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
3783         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3784         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
3785         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
3786         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
3787         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
3788         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
3789         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
3790         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
3791         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
3792         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
3793         tree_fits_uhwi_p throughout.
3795 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3797         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
3798         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
3799         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
3800         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
3801         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
3802         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
3803         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
3804         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
3805         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
3806         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
3807         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
3808         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
3809         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3810         throughout.
3812 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3814         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
3815         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
3817 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3819         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
3820         flag if it kills its address, not its post-increment.
3822 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
3824         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3825         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3826         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3827         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3828         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3829         (gimple_call_with_bounds_p): New.
3830         (gimple_call_set_with_bounds): New.
3831         (gimple_call_num_nobnd_args): Remove.
3832         (gimple_call_nobnd_arg): Remove.
3833         * tree.h (CALL_WITH_BOUNDS_P): New.
3834         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3836 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
3838         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
3839         (symtab_node_name): Rename to symtab_node::name.
3840         (cgraph_node_asm_name): Remove.
3841         (varpool_node_asm_name): Remove.
3842         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
3843         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
3844         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
3845         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
3846         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
3848 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3850         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
3851         * config/arm/arm.c (arm_cortex_a53_tune): New.
3852         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
3854 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3856         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
3857         (case ${target}): Add bdver4.
3858         * config/i386/bdver3.md: Add bdver4.
3859         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3860         -march=native recognize bdver4 processors.
3861         * config/i386/i386-c.c (ix86_target_macros_internal): Add
3862         bdver4 def_and_undef
3863         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
3864         (m_BDVER4): New definition.
3865         (m_AMD_MULTIPLE): Includes m_BDVER4.
3866         (processor_target_table): Add bdver4 entry.
3867         (static const char *const cpu_names): Add bdver4 entry.
3868         (software_prefetching_beneficial_p): Add bdver3.
3869         (ix86_option_override_internal): Add bdver4 instruction sets.
3870         (ix86_issue_rate): Add bdver4.
3871         (ix86_adjust_cost): Add bdver4.
3872         (ia32_multipass_dfa_lookahead): Add bdver4.
3873         (enum processor_model): Add M_AMDFAM15H_BDVER4.
3874         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
3875         (has_dispatch): Add bdver4.
3876         * config/i386/i386.h (TARGET_BDVER4): New definition.
3877         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
3878         (enum processor_type): Add PROCESSOR_BDVER4.
3879         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
3880         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
3881         * doc/extend.texi: Add details about bdver4.
3882         * doc/invoke.texi: Add details about bdver4. Add
3883         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
3885 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3887         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
3888         sdmode_stack_slot also in little-endian mode.
3890 2013-11-17  Jan Hubicka  <jh@suse.cz>
3892         * doc/md.texi (setmem, movstr): Update documentation.
3893         * builtins.c (determine_block_size): New function.
3894         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
3895         (expand_builtin_memset_args): Use it and pass it to
3896         set_storage_via_setmem.
3897         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
3898         parameters; update call to expander.
3899         (emit_block_move_hints): Add min_size/max_size parameters.
3900         (clear_storage_hints): Likewise.
3901         (set_storage_via_setmem): Likewise.
3902         (clear_storage): Update.
3903         * expr.h (emit_block_move_hints, clear_storage_hints,
3904         set_storage_via_setmem): Update prototypes.
3905         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
3906         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3907         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3908         * i386.md (movmem, setmem): Pass parameters.
3910 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
3912         PR target/59153
3913         * config/i386/i386.c (ix86_address_subreg_operand): Do not
3914         reject non-integer subregs.
3915         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
3916         Move check for invalid x32 constant addresses ...
3917         (ix86_legitimate_address_p): ... here.
3919 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3921         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
3922         parameter and use it in REG_FRAME_RELATED_EXPR note.
3923         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
3924         parameter.
3925         (rs6000_emit_prologue): Likewise, but for little endian VSX
3926         stores, pass the source register of the store instead.
3928 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
3930         * gimple.h: Reorder prototypes to match .c declaration order, and
3931         remove protyotypes for functions not in gimple.c.
3932         (LABEL): Move to tree-into-ssa.c.
3933         * gimple.c: Remove unused prototypes.
3934         (get_base_address): Move to tree.c.
3935         * tree.c (get_base_address): Relocate from gimple.c.
3936         * builtins.h (validate_gimple_arglist): Add prototype.
3937         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
3938         * cfgexpand.h: New File.
3939         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
3940         * tree.h (build_addr): Move to tree-nested.h.
3941         * tree-nested.h: New File.
3942         (build_addr, lower_nested_functions, insert_field_into_struct): Add
3943         prototypes.
3944         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
3945         * ipa-inline-analysis.c: Include cfgexpand.h.
3946         * cgraphunit.c: Include tree-nested.h.
3947         * omp-low.c: Likewise.
3948         * tree-parloops.c: Likewise.
3949         * gimple-low.h: Likewise.
3950         * tree-profile.h: Likewise.
3951         * expr.c: Include cfgexpand.h.
3952         * tree-affine.c: Likewise.
3953         * tree-ssa.c: Likewise.
3954         * tree-ssa-loop-im.c: Include trans-mem.h.
3955         * tree-ssa-tail-merge.c: Likewise.
3956         * value-prof.c: Include builtins.h and tree-nested.h.
3957         * tree-into-ssa.c (LABEL): Define here.
3959 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3961         * config/arc/arc.c (arc_predicate_delay_insns): New function.
3962         (pass_data_arc_predicate_delay_insns): New pass_data instance.
3963         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
3964         (make_pass_arc_predicate_delay_insns): New function.
3965         (arc_init): Register pass_arc_predicate_delay_insns if
3966         flag_delayed_branch is active.
3968 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3970         * config/arc/constraints.md (Rcq): Simplify register number test.
3972 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3974         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
3976 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3978         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
3979         is null.
3981 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3983         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
3984         * gimple-pretty-print.c (dump_omp_for): Add case for
3985         GF_OMP_FOR_KIND_CILKSIMD.
3986         * gimple.h (enum gf_mask): Restructure entries to add
3987         GF_OMP_FOR_KIND_CILKSIMD.
3988         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
3989         (gimplify_omp_for): Handle CILK_SIMD.
3990         (gimplify_expr): Add ccase for CILK_SIMD.
3991         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
3992         (build_outer_var_ref): Same.
3993         (check_omp_nesting_restrictions): Same.
3994         (lower_rec_input_clauses): Same.
3995         (lower_lastprivate_clauses): Same.
3996         (expand_omp_for): Same.
3997         (execute_expand_omp): Check flag_enable_cilkplus.
3998         (execute_lower_omp): Same.
3999         (diagnose_sb_0): Handle CILK_SIMD.
4000         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4001         (setjmp_or_longjmp_p): New.
4002         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4003         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4004         * tree.def: Add tree code for CILK_SIMD.
4006 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4008         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4009         Remove.
4010         (altivec_vperm_<mode>): Revert earlier little endian change.
4011         (*altivec_vperm_<mode>_internal): Remove.
4012         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4013         (*altivec_vperm_<mode>_uns_internal): Remove.
4014         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4016 2013-11-15  Jeff Law  <law@redhat.com>
4018         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4019         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
4020         * gimple-ssa-isolate-paths.c
4021         (find_implicit_erroneous_behaviour): Corresponding changes.
4022         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4023         (find_explicit_erroneous_behaviour): Likewise.
4025 2013-11-15  Jeff Law  <law@redhat.com>
4027         * ifcvt.c (find_cond_trap): Properly handle case where
4028         trap_bb == else_bb.
4030 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
4032         * configure: Regenerate.
4034 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
4036         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4037         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4038         where it is incorrect or missing.
4040 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
4042         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4043         host_integerp test.
4044         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4045         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4046         constant.
4047         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4048         pair with a TREE_CODE test and TREE_INT_CST_LOW.
4049         * tree-vect-generic.c (expand_vector_divmod): Likewise.
4051 2013-11-15  Richard Biener  <rguenther@suse.de>
4053         PR tree-optimization/50262
4054         * tree-ssa-alias.h (struct pt_solution): Split
4055         vars_contains_global into vars_contains_nonlocal,
4056         vars_contains_escaped and vars_contains_escaped_heap.
4057         * tree-ssa-structalias.c (label_visit): Expand comment.
4058         (handle_lhs_call): Adjust comment.
4059         (set_uids_in_ptset): Set the new flags appropriately.
4060         (pt_solution_set): Adjust.
4061         (pt_solution_set_var): Likewise.
4062         (pt_solution_ior_into): Likewise.
4063         (pt_solution_includes_global): Likewise.
4064         (pt_solutions_intersect_1): Optimize escaped handling.
4065         (compute_points_to_sets): Remove heap variable globalization.
4066         (ipa_escaped_pt): Adjust initializer.
4067         (pass_data_ipa_pta): Do not run TODO_update_ssa.
4068         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4069         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4071 2013-11-15  Richard Biener  <rguenther@suse.de>
4073         * tree-loop-distribution.c (tree_loop_distribution): Make sure
4074         to distribute all stores.
4076 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4078         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4080 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
4082         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4083         * configure.ac: Determine target_header_dir earlier.
4084         (--with-glibc-version): New configure option.
4085         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4086         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4087         * configure: Regenerate.
4088         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4089         native toolchains for default.
4090         (--with-glibc-version): Document.
4092 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
4094         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4096 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
4098         * lto-streamer-in.c (input function): Call cgraph_create_node if
4099         cgraph_get_node failed.
4101 2013-11-14   Olivier Hainque  <hainque@adacore.com>
4103         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4104         defer allocation of DECL_IGNORED_P variables at toplevel unless really
4105         small.  Factorize size threshold computation from the existing one.
4106         (expand_used_vars): Refine comment.
4108 2013-11-14  Cong Hou  <congh@google.com>
4110         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4111         address field as it can be obtained from dr.  Rename the struct.
4112         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4113         steps of data references during sort.
4114         (vect_prune_runtime_alias_test_list): Adjust with the change to
4115         struct dr_with_seg_len.
4116         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4117         Adjust with the change to struct dr_with_seg_len.
4119 2013-11-14  Jeff Law  <law@redhat.com>
4121         PR middle-end/59127
4122         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4123         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4124         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4125         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4126         edges, then ignore it.  If the statement exhibiting erroneous
4127         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4128         then we can not optimize.
4129         (find_explicit_erroneous_behaviour): Likewise.
4131 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
4133         * gimplify-me.h:  New file.  Add prototypes.
4134         * gimplify.h: Don't include gimple.h.
4135         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4136         Relocate from gimple.h.
4137         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4138         is_gimple_sizepos): Move to gimplify.h.
4139         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4140         (enum gsi_iterator_update): Move to gimple-iterator.h.
4141         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4142         * gimplify-me.c: New File.
4143         (force_gimple_operand_1, force_gimple_operand,
4144         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4145         gimple_regimplify_operands): Relocate from gimplify.c.
4146         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4147         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4148         gimple_regimplify_operands): Move to gimplify-me.c.
4149         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4150         from gimple.h.
4151         * Makefile.in (OBJS): Add gimplify-me.o
4152         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4153         required.
4154         * cfgloopmanip.c: Likewise.
4155         * cgraphunit.c: Likewise.
4156         * cilk-common.c: Likewise.
4157         * fold-const.c: Likewise.
4158         * function.c: Likewise.
4159         * gimple-expr.c: Likewise.
4160         * gimple-fold.c: Likewise.
4161         * gimple-ssa-strength-reduction.c: Likewise.
4162         * gimple.c: Likewise.
4163         * graphite-clast-to-gimple.c: Likewise.
4164         * graphite-sese-to-poly.c: Likewise.
4165         * ipa-prop.c: Likewise.
4166         * ipa-split.c: Likewise.
4167         * ipa.c: Likewise.
4168         * langhooks.c: Likewise.
4169         * omp-low.c: Likewise.
4170         * sese.c: Likewise.
4171         * stor-layout.c: Likewise.
4172         * targhooks.c: Likewise.
4173         * trans-mem.c: Likewise.
4174         * tree-affine.c: Likewise.
4175         * tree-cfg.c: Likewise.
4176         * tree-cfgcleanup.c: Likewise.
4177         * tree-complex.c: Likewise.
4178         * tree-if-conv.c: Likewise.
4179         * tree-inline.c: Likewise.
4180         * tree-loop-distribution.c: Likewise.
4181         * tree-nested.c: Likewise.
4182         * tree-parloops.c: Likewise.
4183         * tree-predcom.c: Likewise.
4184         * tree-profile.c: Likewise.
4185         * tree-scalar-evolution.c: Likewise.
4186         * tree-sra.c: Likewise.
4187         * tree-ssa-address.c: Likewise.
4188         * tree-ssa-ccp.c: Likewise.
4189         * tree-ssa-dce.c: Likewise.
4190         * tree-ssa-forwprop.c: Likewise.
4191         * tree-ssa-ifcombine.c: Likewise.
4192         * tree-ssa-loop-im.c: Likewise.
4193         * tree-ssa-loop-ivopts.c: Likewise.
4194         * tree-ssa-loop-manip.c: Likewise.
4195         * tree-ssa-loop-niter.c: Likewise.
4196         * tree-ssa-loop-prefetch.c: Likewise.
4197         * tree-ssa-loop-unswitch.c: Likewise.
4198         * tree-ssa-math-opts.c: Likewise.
4199         * tree-ssa-phiopt.c: Likewise.
4200         * tree-ssa-phiprop.c: Likewise.
4201         * tree-ssa-pre.c: Likewise.
4202         * tree-ssa-propagate.c: Likewise.
4203         * tree-ssa-reassoc.c: Likewise.
4204         * tree-ssa-sccvn.c: Likewise.
4205         * tree-ssa-strlen.c: Likewise.
4206         * tree-ssa.c: Likewise.
4207         * tree-switch-conversion.c: Likewise.
4208         * tree-tailcall.c: Likewise.
4209         * tree-vect-data-refs.c: Likewise.
4210         * tree-vect-generic.c: Likewise.
4211         * tree-vect-loop-manip.c: Likewise.
4212         * tree-vect-loop.c: Likewise.
4213         * tree-vect-patterns.c: Likewise.
4214         * tree-vect-stmts.c: Likewise.
4215         * tree.c: Likewise.
4216         * tsan.c: Likewise.
4217         * value-prof.c: Likewise.
4218         * config/aarch64/aarch64.c: Likewise.
4219         * config/alpha/alpha.c: Likewise.
4220         * config/darwin.c: Likewise.
4221         * config/i386/i386.c: Likewise.
4222         * config/ia64/ia64.c: Likewise.
4223         * config/mep/mep.c: Likewise.
4224         * config/mips/mips.c: Likewise.
4225         * config/rs6000/rs6000.c: Likewise.
4226         * config/s390/s390.c: Likewise.
4227         * config/sh/sh.c: Likewise.
4228         * config/sparc/sparc.c: Likewise.
4229         * config/spu/spu.c: Likewise.
4230         * config/stormy16/stormy16.c: Likewise.
4231         * config/tilegx/tilegx.c: Likewise.
4232         * config/tilepro/tilepro.c: Likewise.
4233         * config/xtensa/xtensa.c: Likewise.
4235 2013-11-14  Diego Novillo  <dnovillo@google.com>
4237         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4239 2013-11-14  Diego Novillo  <dnovillo@google.com>
4241         * tree.h: Include fold-const.h.
4242         (aggregate_value_p): Moved to function.h.
4243         (alloca_call_p): Moved to calls.h.
4244         (allocate_struct_function): Moved to function.h.
4245         (apply_tm_attr): Moved to attribs.h.
4246         (array_at_struct_end_p): Moved to expr.h.
4247         (array_ref_element_size): Moved to tree-dfa.h.
4248         (array_ref_low_bound): Moved to tree-dfa.h.
4249         (array_ref_up_bound): Moved to tree.h.
4250         (assemble_alias): Moved to cgraph.h.
4251         (bit_from_pos): Moved to stor-layout.h.
4252         (build_addr): Moved to tree-nested.h.
4253         (build_duplicate_type): Moved to tree-inline.h.
4254         (build_fold_addr_expr): Moved to fold-const.h.
4255         (build_fold_addr_expr_with_type): Moved to fold-const.h.
4256         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4257         (build_fold_indirect_ref): Moved to fold-const.h.
4258         (build_fold_indirect_ref_loc): Moved to fold-const.h.
4259         (build_personality_function): Moved to tree.h.
4260         (build_range_check): Moved to fold-const.h.
4261         (build_simple_mem_ref): Moved to fold-const.h.
4262         (build_simple_mem_ref_loc): Moved to fold-const.h.
4263         (build_tm_abort_call): Moved to trans-mem.h.
4264         (byte_from_pos): Moved to stor-layout.h.
4265         (call_expr_flags): Moved to calls.h.
4266         (can_move_by_pieces): Moved to expr.h.
4267         (categorize_ctor_elements): Moved to expr.h.
4268         (change_decl_assembler_name): Moved to gcc-symtab.h.
4269         (combine_comparisons): Moved to fold-const.h.
4270         (complete_ctor_at_level_p): Moved to tree.h.
4271         (component_ref_field_offset): Moved to tree-dfa.h.
4272         (compute_builtin_object_size): Moved to tree-object-size.h.
4273         (compute_record_mode): Moved to stor-layout.h.
4274         (constant_boolean_node): Moved to fold-const.h.
4275         (constructor_static_from_elts_p): Moved to varasm.h.
4276         (cxx11_attribute_p): Moved to attribs.h.
4277         (debug_body): Moved to print-tree.h.
4278         (debug_find_tree): Moved to tree-inline.h.
4279         (debug_fold_checksum): Moved to fold-const.h.
4280         (debug_head): Moved to print-tree.h.
4281         (debug_head): Moved to print-tree.h.
4282         (debug_raw): Moved to print-tree.h.
4283         (debug_tree): Moved to print-tree.h.
4284         (debug_vec_tree): Moved to print-tree.h.
4285         (debug_verbose): Moved to print-tree.h.
4286         (debug_verbose): Moved to print-tree.h.
4287         (decl_attributes): Moved to attribs.h.
4288         (decl_binds_to_current_def_p): Moved to varasm.h.
4289         (decl_default_tls_model): Moved to varasm.h.
4290         (decl_replaceable_p): Moved to varasm.h.
4291         (div_if_zero_remainder): Moved to fold-const.h.
4292         (double_int mem_ref_offset): Moved to fold-const.h.
4293         (dump_addr): Moved to print-tree.h.
4294         (element_precision): Moved to machmode.h.
4295         (expand_dummy_function_end): Moved to function.h.
4296         (expand_function_end): Moved to function.h.
4297         (expand_function_start): Moved to function.h.
4298         (expand_label): Moved to stmt.h.
4299         (expr_first): Moved to tree-iterator.h.
4300         (expr_last): Moved to tree-iterator.h.
4301         (finalize_size_functions): Moved to stor-layout.h.
4302         (finish_builtin_struct): Moved to stor-layout.h.
4303         (finish_record_layout): Moved to stor-layout.h.
4304         (fixup_signed_type): Moved to stor-layout.h.
4305         (fixup_unsigned_type): Moved to stor-layout.h.
4306         (flags_from_decl_or_type): Moved to calls.h.
4307         (fold): Moved to fold-const.h.
4308         (fold_abs_const): Moved to fold-const.h.
4309         (fold_binary): Moved to fold-const.h.
4310         (fold_binary_loc): Moved to fold-const.h.
4311         (fold_binary_to_constant): Moved to fold-const.h.
4312         (fold_build1): Moved to fold-const.h.
4313         (fold_build1_initializer_loc): Moved to fold-const.h.
4314         (fold_build1_loc): Moved to fold-const.h.
4315         (fold_build1_stat_loc): Moved to fold-const.h.
4316         (fold_build2): Moved to fold-const.h.
4317         (fold_build2_initializer_loc): Moved to fold-const.h.
4318         (fold_build2_loc): Moved to fold-const.h.
4319         (fold_build2_stat_loc): Moved to fold-const.h.
4320         (fold_build3): Moved to fold-const.h.
4321         (fold_build3_loc): Moved to fold-const.h.
4322         (fold_build3_stat_loc): Moved to fold-const.h.
4323         (fold_build_call_array): Moved to fold-const.h.
4324         (fold_build_call_array_initializer): Moved to fold-const.h.
4325         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4326         (fold_build_call_array_loc): Moved to fold-const.h.
4327         (fold_build_cleanup_point_expr): Moved to fold-const.h.
4328         (fold_convert): Moved to fold-const.h.
4329         (fold_convert_loc): Moved to fold-const.h.
4330         (fold_convertible_p): Moved to fold-const.h.
4331         (fold_defer_overflow_warnings): Moved to fold-const.h.
4332         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4333         (fold_fma): Moved to fold-const.h.
4334         (fold_ignored_result): Moved to fold-const.h.
4335         (fold_indirect_ref): Moved to fold-const.h.
4336         (fold_indirect_ref_1): Moved to fold-const.h.
4337         (fold_indirect_ref_loc): Moved to fold-const.h.
4338         (fold_read_from_constant_string): Moved to fold-const.h.
4339         (fold_real_zero_addition_p): Moved to fold-const.h.
4340         (fold_single_bit_test): Moved to fold-const.h.
4341         (fold_strip_sign_ops): Moved to fold-const.h.
4342         (fold_ternary): Moved to fold-const.h.
4343         (fold_ternary_loc): Moved to fold-const.h.
4344         (fold_unary): Moved to tree-data-ref.h.
4345         (fold_unary_ignore_overflow): Moved to fold-const.h.
4346         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4347         (fold_unary_loc): Moved to fold-const.h.
4348         (fold_unary_to_constant): Moved to fold-const.h.
4349         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4350         (fold_undefer_overflow_warnings): Moved to fold-const.h.
4351         (folding_initializer): Moved to fold-const.h.
4352         (free_temp_slots): Moved to function.h.
4353         (generate_setjmp_warnings): Moved to function.h.
4354         (get_attribute_name): Moved to attribs.h.
4355         (get_identifier): Moved to stringpool.h.
4356         (get_identifier_with_length): Moved to stringpool.h.
4357         (get_inner_reference): Moved to tree.h.
4358         (gimple_alloca_call_p): Moved to calls.h.
4359         (gimplify_parameters): Moved to function.h.
4360         (highest_pow2_factor): Moved to expr.h.
4361         (indent_to): Moved to print-tree.h.
4362         (init_attributes): Moved to attribs.h.
4363         (init_dummy_function_start): Moved to function.h.
4364         (init_function_start): Moved to function.h.
4365         (init_inline_once): Moved to tree-inline.h.
4366         (init_object_sizes): Moved to tree-object-size.h.
4367         (init_temp_slots): Moved to function.h.
4368         (init_tree_optimization_optabs): Moved to optabs.h.
4369         (initialize_sizetypes): Moved to stor-layout.h.
4370         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4371         (initializer_constant_valid_p): Moved to varasm.h.
4372         (int_const_binop): Moved to fold-const.h.
4373         (internal_reference_types): Moved to stor-layout.h.
4374         (invert_tree_comparison): Moved to fold-const.h.
4375         (invert_truthvalue): Moved to fold-const.h.
4376         (invert_truthvalue_loc): Moved to fold-const.h.
4377         (is_tm_ending_fndecl): Moved to trans-mem.h.
4378         (is_tm_may_cancel_outer): Moved to trans-mem.h.
4379         (is_tm_pure): Moved to trans-mem.h.
4380         (is_tm_safe): Moved to trans-mem.h.
4381         (layout_decl): Moved to stor-layout.h.
4382         (layout_type): Moved to stor-layout.h.
4383         (lookup_attribute_spec): Moved to attribs.h.
4384         (make_accum_type): Moved to stor-layout.h.
4385         (make_decl_one_only): Moved to varasm.h.
4386         (make_decl_rtl): Moved to tree.h.
4387         (make_decl_rtl_for_debug): Moved to varasm.h.
4388         (make_fract_type): Moved to stor-layout.h.
4389         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4390         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4391         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4392         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4393         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4394         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4395         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4396         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4397         (make_range): Moved to fold-const.h.
4398         (make_range_step): Moved to fold-const.h.
4399         (make_sat_signed_accum_type): Moved to stor-layout.h.
4400         (make_sat_signed_fract_type): Moved to stor-layout.h.
4401         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4402         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4403         (make_signed_accum_type): Moved to stor-layout.h.
4404         (make_signed_fract_type): Moved to stor-layout.h.
4405         (make_signed_type): Moved to stor-layout.h.
4406         (make_unsigned_accum_type): Moved to stor-layout.h.
4407         (make_unsigned_fract_type): Moved to stor-layout.h.
4408         (make_unsigned_type): Moved to stor-layout.h.
4409         (mark_decl_referenced): Moved to varasm.h.
4410         (mark_referenced): Moved to varasm.h.
4411         (may_negate_without_overflow_p): Moved to fold-const.h.
4412         (maybe_get_identifier): Moved to stringpool.h.
4413         (merge_ranges): Moved to fold-const.h.
4414         (merge_weak): Moved to varasm.h.
4415         (mode_for_size_tree): Moved to stor-layout.h.
4416         (multiple_of_p): Moved to fold-const.h.
4417         (must_pass_in_stack_var_size): Moved to calls.h.
4418         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4419         (native_encode_expr): Moved to fold-const.h.
4420         (native_interpret_expr): Moved to fold-const.h.
4421         (non_lvalue): Moved to fold-const.h.
4422         (non_lvalue_loc): Moved to fold-const.h.
4423         (normalize_offset): Moved to stor-layout.h.
4424         (normalize_rli): Moved to stor-layout.h.
4425         (notice_global_symbol): Moved to varasm.h.
4426         (omit_one_operand): Moved to fold-const.h.
4427         (omit_one_operand_loc): Moved to fold-const.h.
4428         (omit_two_operands): Moved to fold-const.h.
4429         (omit_two_operands_loc): Moved to fold-const.h.
4430         (operand_equal_p): Moved to tree-data-ref.h.
4431         (parse_input_constraint): Moved to stmt.h.
4432         (parse_output_constraint): Moved to stmt.h.
4433         (place_field): Moved to stor-layout.h.
4434         (pop_function_context): Moved to function.h.
4435         (pop_temp_slots): Moved to function.h.
4436         (pos_from_bit): Moved to stor-layout.h.
4437         (preserve_temp_slots): Moved to function.h.
4438         (print_node): Moved to print-tree.h.
4439         (print_node_brief): Moved to print-tree.h.
4440         (print_rtl): Moved to rtl.h.
4441         (process_pending_assemble_externals): Moved to varasm.h.
4442         (ptr_difference_const): Moved to fold-const.h.
4443         (push_function_context): Moved to function.h.
4444         (push_struct_function): Moved to function.h.
4445         (push_temp_slots): Moved to function.h.
4446         (record_tm_replacement): Moved to trans-mem.h.
4447         (relayout_decl): Moved to stor-layout.h.
4448         (resolve_asm_operand_names): Moved to stmt.h.
4449         (resolve_unique_section): Moved to varasm.h.
4450         (rli_size_so_far): Moved to stor-layout.h.
4451         (rli_size_unit_so_far): Moved to stor-layout.h.
4452         (round_down): Moved to fold-const.h.
4453         (round_down_loc): Moved to fold-const.h.
4454         (round_up): Moved to fold-const.h.
4455         (round_up_loc): Moved to fold-const.h.
4456         (set_decl_incoming_rtl): Moved to emit-rtl.h.
4457         (set_decl_rtl): Moved to tree.h.
4458         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4459         (set_user_assembler_name): Moved to varasm.h.
4460         (setjmp_call_p): Moved to calls.h.
4461         (size_binop): Moved to fold-const.h.
4462         (size_binop_loc): Moved to fold-const.h.
4463         (size_diffop): Moved to fold-const.h.
4464         (size_diffop_loc): Moved to fold-const.h.
4465         (size_int_kind): Moved to fold-const.h.
4466         (stack_protect_epilogue): Moved to function.h.
4467         (start_record_layout): Moved to stor-layout.h.
4468         (supports_one_only): Moved to varasm.h.
4469         (swap_tree_comparison): Moved to fold-const.h.
4470         (tm_malloc_replacement): Moved to trans-mem.h.
4471         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4472         (tree build_invariant_address): Moved to fold-const.h.
4473         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4474         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4475         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4476         (tree_expr_nonnegative_p): Moved to fold-const.h.
4477         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4478         (tree_output_constant_def): Moved to varasm.h.
4479         (tree_overlaps_hard_reg_set): Moved to stmt.h.
4480         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4481         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4482         (tree_swap_operands_p): Moved to fold-const.h.
4483         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4484         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4485         (update_alignment_for_field): Moved to stor-layout.h.
4486         (use_register_for_decl): Moved to function.h.
4487         (variable_size): Moved to rtl.h.
4488         (vector_type_mode): Moved to stor-layout.h.
4489         * cgraph.h: Corresponding changes.
4490         * emit-rtl.h: Corresponding changes.
4491         * expr.h: Corresponding changes.
4492         * function.h: Corresponding changes.
4493         * optabs.h: Corresponding changes.
4494         * trans-mem.h: Corresponding changes.
4495         Protect against multiple inclusion.
4496         * tree-inline.h: Corresponding changes.
4497         * tree-iterator.h: Corresponding changes.
4498         * tree-dfa.h: Include expr.h.
4499         * tree-ssanames.h: Include stringpool.h.
4500         * attribs.h: New file.
4501         * calls.h: New file.
4502         * fold-const.h: New file.
4503         * gcc-symtab.h: New file.
4504         * print-rtl.h: New file.
4505         * print-tree.h: New file.
4506         * stmt.h: New file.
4507         * stor-layout.h: New file.
4508         * strinpool.h: New file.
4509         * tree-nested.h: New file
4510         * tree-object-size.h: New file.
4511         * varasm.h: New file.
4513 2013-11-14  Diego Novillo  <dnovillo@google.com>
4515         * alias.c: Include varasm.h.
4516         Include expr.h.
4517         * asan.c: Include calls.h.
4518         Include stor-layout.h.
4519         Include varasm.h.
4520         * attribs.c: Include stringpool.h.
4521         Include attribs.h.
4522         Include stor-layout.h.
4523         * builtins.c: Include stringpool.h.
4524         Include stor-layout.h.
4525         Include calls.h.
4526         Include varasm.h.
4527         Include tree-object-size.h.
4528         * calls.c: Include stor-layout.h.
4529         Include varasm.h.
4530         Include stringpool.h.
4531         Include attribs.h.
4532         * cfgexpand.c: Include stringpool.h.
4533         Include varasm.h.
4534         Include stor-layout.h.
4535         Include stmt.h.
4536         Include print-tree.h.
4537         * cgraph.c: Include varasm.h.
4538         Include calls.h.
4539         Include print-tree.h.
4540         * cgraphclones.c: Include stringpool.h.
4541         Include function.h.
4542         Include emit-rtl.h.
4543         Move inclusion of rtl.h earlier in the file.
4544         * cgraphunit.c: Include varasm.h.
4545         Include stor-layout.h.
4546         Include stringpool.h.
4547         * cilk-common.c: Include stringpool.h.
4548         Include stor-layout.h.
4549         * combine.c: Include stor-layout.h.
4550         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4551         Include stringpool.h.
4552         Include calls.h.
4553         * config/aarch64/aarch64.c: Include stringpool.h.
4554         Include stor-layout.h.
4555         Include calls.h.
4556         Include varasm.h.
4557         * config/alpha/alpha.c: Include stor-layout.h.
4558         Include calls.h.
4559         Include varasm.h.
4560         * config/arc/arc.c: Include varasm.h.
4561         Include stor-layout.h.
4562         Include stringpool.h.
4563         Include calls.h.
4564         * config/arm/arm.c: Include stringpool.h.
4565         Include stor-layout.h.
4566         Include calls.h.
4567         Include varasm.h.
4568         * config/avr/avr-c.c: Include stor-layout.h.
4569         * config/avr/avr-log.c: Include print-tree.h.
4570         * config/avr/avr.c: Include print-tree.h.
4571         Include calls.h.
4572         Include stor-layout.h.
4573         Include stringpool.h.
4574         * config/bfin/bfin.c: Include varasm.h.
4575         Include calls.h.
4576         * config/c6x/c6x.c: Include stor-layout.h.
4577         Include varasm.h.
4578         Include calls.h.
4579         Include stringpool.h.
4580         * config/cr16/cr16.c: Include stor-layout.h.
4581         Include calls.h.
4582         * config/cris/cris.c: Include varasm.h.
4583         Include stor-layout.h.
4584         Include calls.h.
4585         Include stmt.h.
4586         * config/darwin.c: Include stringpool.h.
4587         Include varasm.h.
4588         Include stor-layout.h.
4589         * config/epiphany/epiphany.c: Include stor-layout.h.
4590         Include varasm.h.
4591         Include calls.h.
4592         Include stringpool.h.
4593         * config/fr30/fr30.c: Include stor-layout.h.
4594         Include varasm.h.
4595         * config/frv/frv.c: Include varasm.h.
4596         Include stor-layout.h.
4597         Include stringpool.h.
4598         * config/h8300/h8300.c: Include stor-layout.h.
4599         Include varasm.h.
4600         Include calls.h.
4601         Include stringpool.h.
4602         * config/i386/i386.c: Include stringpool.h.
4603         Include attribs.h.
4604         Include calls.h.
4605         Include stor-layout.h.
4606         Include varasm.h.
4607         * config/i386/winnt-cxx.c: Include stringpool.h.
4608         Include attribs.h.
4609         * config/i386/winnt.c: Include stringpool.h.
4610         Include varasm.h.
4611         * config/ia64/ia64-c.c: Include stringpool.h.
4612         * config/ia64/ia64.c: Include stringpool.h.
4613         Include stor-layout.h.
4614         Include calls.h.
4615         Include varasm.h.
4616         * config/iq2000/iq2000.c: Include stor-layout.h.
4617         Include calls.h.
4618         Include varasm.h.
4619         * config/lm32/lm32.c: Include calls.h.
4620         * config/m32c/m32c.c: Include stor-layout.h.
4621         Include varasm.h.
4622         Include calls.h.
4623         * config/m32r/m32r.c: Include stor-layout.h.
4624         Include varasm.h.
4625         Include stringpool.h.
4626         Include calls.h.
4627         * config/m68k/m68k.c: Include calls.h.
4628         Include stor-layout.h.
4629         Include varasm.h.
4630         * config/mcore/mcore.c: Include stor-layout.h.
4631         Include varasm.h.
4632         Include stringpool.h.
4633         Include calls.h.
4634         * config/mep/mep.c: Include varasm.h.
4635         Include calls.h.
4636         Include stringpool.h.
4637         Include stor-layout.h.
4638         * config/microblaze/microblaze.c: Include varasm.h.
4639         Include stor-layout.h.
4640         Include calls.h.
4641         * config/mips/mips.c: Include varasm.h.
4642         Include stringpool.h.
4643         Include stor-layout.h.
4644         Include calls.h.
4645         * config/mmix/mmix.c: Include varasm.h.
4646         Include stor-layout.h.
4647         Include calls.h.
4648         * config/mn10300/mn10300.c: Include stor-layout.h.
4649         Include varasm.h.
4650         Include calls.h.
4651         * config/moxie/moxie.c: Include stor-layout.h.
4652         Include varasm.h.
4653         Include calls.h.
4654         * config/msp430/msp430.c: Include stor-layout.h.
4655         Include calls.h.
4656         * config/nds32/nds32.c: Include stor-layout.h.
4657         Include varasm.h.
4658         Include calls.h.
4659         * config/pa/pa.c: Include stor-layout.h.
4660         Include stringpool.h.
4661         Include varasm.h.
4662         Include calls.h.
4663         * config/pdp11/pdp11.c: Include stor-layout.h.
4664         Include varasm.h.
4665         Include calls.h.
4666         * config/picochip/picochip.c: Include calls.h.
4667         Include stor-layout.h.
4668         Include stringpool.h.
4669         Include varasm.h.
4670         * config/rl78/rl78.c: Include varasm.h.
4671         Include stor-layout.h.
4672         Include calls.h.
4673         * config/rs6000/rs6000-c.c: Include stor-layout.h.
4674         Include stringpool.h.
4675         * config/rs6000/rs6000.c: Include stringpool.h.
4676         Include stor-layout.h.
4677         Include calls.h.
4678         Include print-tree.h.
4679         Include varasm.h.
4680         * config/rx/rx.c: Include varasm.h.
4681         Include stor-layout.h.
4682         Include calls.h.
4683         * config/s390/s390.c: Include print-tree.h.
4684         Include stringpool.h.
4685         Include stor-layout.h.
4686         Include varasm.h.
4687         Include calls.h.
4688         * config/score/score.c: Include stringpool.h.
4689         Include calls.h.
4690         Include varasm.h.
4691         Include stor-layout.h.
4692         * config/sh/sh-c.c: Include stringpool.h.
4693         Include attribs.h.h.
4694         * config/sh/sh.c: Include stringpool.h.
4695         Include stor-layout.h.
4696         Include calls.h.
4697         Include varasm.h.
4698         * config/sol2-c.c: Include stringpool.h.
4699         Include attribs.h.
4700         * config/sol2-cxx.c: Include stringpool.h.
4701         * config/sol2.c: Include stringpool.h.
4702         Include varasm.h.
4703         * config/sparc/sparc.c: Include stringpool.h.
4704         Include stor-layout.h.
4705         Include calls.h.
4706         Include varasm.h.
4707         * config/spu/spu-c.c: Include stringpool.h.
4708         * config/spu/spu.c: Include stringpool.h.
4709         Include stor-layout.h.
4710         Include calls.h.
4711         Include varasm.h.
4712         * config/stormy16/stormy16.c: Include stringpool.h.
4713         Include stor-layout.h.
4714         Include varasm.h.
4715         Include calls.h.
4716         * config/tilegx/tilegx.c: Include stringpool.h.
4717         Include stor-layout.h.
4718         Include varasm.h.
4719         Include calls.h.
4720         * config/tilepro/tilepro.c: Include stringpool.h.
4721         Include stor-layout.h.
4722         Include varasm.h.
4723         Include calls.h.
4724         * config/v850/v850-c.c: Include stringpool.h.
4725         Include attribs.h.
4726         * config/v850/v850.c: Include stringpool.h.
4727         Include stor-layout.h.
4728         Include varasm.h.
4729         Include calls.h.
4730         * config/vax/vax.c: Include calls.h.
4731         Include varasm.h.
4732         * config/vms/vms.c: Include stringpool.h.
4733         * config/vxworks.c: Include stringpool.h.
4734         * config/xtensa/xtensa.c: Include stringpool.h.
4735         Include stor-layout.h.
4736         Include calls.h.
4737         Include varasm.h.
4738         * convert.c: Include stor-layout.h.
4739         * coverage.c: Include stringpool.h.
4740         Include stor-layout.h.
4741         * dbxout.c: Include varasm.h.
4742         Include stor-layout.h.
4743         * dojump.c: Include stor-layout.h.
4744         * dse.c: Include stor-layout.h.
4745         * dwarf2asm.c: Include stringpool.h.
4746         Include varasm.h.
4747         * dwarf2cfi.c: Include stor-layout.h.
4748         * dwarf2out.c: Include rtl.h.
4749         Include stringpool.h.
4750         Include stor-layout.h.
4751         Include varasm.h.
4752         Include function.h.
4753         Include emit-rtl.h.
4754         Move inclusion of rtl.h earlier in the file.
4755         * emit-rtl.c: Include varasm.h.
4756         * except.c: Include stringpool.h.
4757         Include stor-layout.h.
4758         * explow.c: Include stor-layout.h.
4759         * expmed.c: Include stor-layout.h.
4760         * expr.c: Include stringpool.h.
4761         Include stor-layout.h.
4762         Include attribs.h.
4763         Include varasm.h.
4764         * final.c: Include varasm.h.
4765         * fold-const.c: Include stor-layout.h.
4766         Include calls.h.
4767         Include tree-iterator.h.
4768         * function.c: Include stor-layout.h.
4769         Include varasm.h.
4770         Include stringpool.h.
4771         * genattrtab.c (write_header): Emit includes for varasm.h,
4772         stor-layout.h and calls.h.
4773         * genautomata.c (main): Likewise.
4774         * genemit.c: Likewise.
4775         * genopinit.c: Likewise.
4776         * genoutput.c (output_prologue): Likewise.
4777         * genpeep.c: Likewise.
4778         * genpreds.c (write_insn_preds_c): Likewise.
4779         * gengtype.c (open_base_files): Add stringpool.h.
4780         * gimple-expr.c: Include stringpool.h.
4781         Include stor-layout.h.
4782         * gimple-fold.c: Include stringpool.h.
4783         Include expr.h.
4784         Include stmt.h.
4785         Include stor-layout.h.
4786         * gimple-low.c: Include tree-nested.h.
4787         Include calls.h.
4788         * gimple-pretty-print.c: Include stringpool.h.
4789         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
4790         Include expr.h.
4791         * gimple-walk.c: Include stmt.h.
4792         * gimple.c: Include calls.h.
4793         Include stmt.h.
4794         Include stor-layout.h.
4795         * gimplify.c: Include stringpool.h.
4796         Include calls.h.
4797         Include varasm.h.
4798         Include stor-layout.h.
4799         Include stmt.h.
4800         Include print-tree.h.
4801         Include expr.h.
4802         * gimplify-me.c: Include stmt.h
4803         Include stor-layout.h
4804         * internal-fn.c: Include stor-layout.h.
4805         * ipa-devirt.c: Include print-tree.h.
4806         Include calls.h.
4807         * ipa-inline-analysis.c: Include stor-layout.h.
4808         Include stringpool.h.
4809         Include print-tree.h.
4810         * ipa-inline.c: Include trans-mem.h.
4811         Include calls.h.
4812         * ipa-prop.c: Include expr.h.
4813         Include stor-layout.h.
4814         Include print-tree.h.
4815         * ipa-pure-const.c: Include print-tree.h.
4816         Include calls.h.
4817         * ipa-reference.c: Include calls.h.
4818         * ipa-split.c: Include stringpool.h.
4819         Include expr.h.
4820         Include calls.h.
4821         * ipa.c: Include calls.h.
4822         Include stringpool.h.
4823         * langhooks.c: Include stringpool.h.
4824         Include attribs.h.
4825         * lto-cgraph.c: Include stringpool.h.
4826         * lto-streamer-in.c: Include stringpool.h.
4827         * lto-streamer-out.c: Include stor-layout.h.
4828         Include stringpool.h.
4829         * omp-low.c: Include stringpool.h.
4830         Include stor-layout.h.
4831         Include expr.h.
4832         * optabs.c: Include stor-layout.h.
4833         Include stringpool.h.
4834         Include varasm.h.
4835         * passes.c: Include varasm.h.
4836         * predict.c: Include calls.h.
4837         * print-rtl.c: Include print-tree.h.
4838         * print-tree.c: Include varasm.h.
4839         Include print-rtl.h.
4840         Include stor-layout.h.
4841         * realmpfr.c: Include stor-layout.h.
4842         * reg-stack.c: Include varasm.h.
4843         * sdbout.c: Include varasm.h.
4844         Include stor-layout.h.
4845         * simplify-rtx.c: Include varasm.h.
4846         * stmt.c: Include varasm.h.
4847         Include stor-layout.h.
4848         * stor-layout.c: Include stor-layout.h.
4849         Include stringpool.h.
4850         Include varasm.h.
4851         Include print-tree.h.
4852         * symtab.c: Include rtl.h.
4853         Include print-tree.h.
4854         Include varasm.h.
4855         Include function.h.
4856         Include emit-rtl.h.
4857         * targhooks.c: Include stor-layout.h.
4858         Include varasm.h.
4859         * toplev.c: Include varasm.h.
4860         Include tree-inline.h.
4861         * trans-mem.c: Include calls.h.
4862         Include function.h.
4863         Include rtl.h.
4864         Include emit-rtl.h.
4865         * tree-affine.c: Include expr.h.
4866         * tree-browser.c: Include print-tree.h.
4867         * tree-call-cdce.c: Include stor-layout.h.
4868         * tree-cfg.c: Include trans-mem.h.
4869         Include stor-layout.h.
4870         Include print-tree.h.
4871         * tree-complex.c: Include stor-layout.h.
4872         * tree-data-ref.c: Include expr.h.
4873         * tree-dfa.c: Include stor-layout.h.
4874         * tree-eh.c: Include expr.h.
4875         Include calls.h.
4876         * tree-emutls.c: Include stor-layout.h.
4877         Include varasm.h.
4878         * tree-if-conv.c: Include stor-layout.h.
4879         * tree-inline.c: Include stor-layout.h.
4880         Include calls.h.
4881         * tree-loop-distribution.c: Include stor-layout.h.
4882         * tree-nested.c: Include stringpool.h.
4883         Include stor-layout.h.
4884         * tree-object-size.c: Include tree-object-size.h.
4885         * tree-outof-ssa.c: Include stor-layout.h.
4886         * tree-parloops.c: Include stor-layout.h.
4887         Include tree-nested.h.
4888         * tree-pretty-print.c: Include stor-layout.h.
4889         Include expr.h.
4890         * tree-profile.c: Include varasm.h.
4891         Include tree-nested.h.
4892         * tree-scalar-evolution.c: Include expr.h.
4893         * tree-sra.c: Include stor-layout.h.
4894         * tree-ssa-address.c: Include stor-layout.h.
4895         * tree-ssa-ccp.c: Include stor-layout.h.
4896         * tree-ssa-dce.c: Include calls.h.
4897         * tree-ssa-dom.c: Include stor-layout.h.
4898         * tree-ssa-forwprop.c: Include stor-layout.h.
4899         * tree-ssa-ifcombine.c: Include stor-layout.h.
4900         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
4901         * tree-ssa-loop-niter.c: Include calls.h.
4902         Include expr.h.
4903         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
4904         * tree-ssa-math-opts.c: Include stor-layout.h.
4905         * tree-ssa-operands.c: Include stmt.h.
4906         Include print-tree.h.
4907         * tree-ssa-phiopt.c: Include stor-layout.h.
4908         * tree-ssa-reassoc.c: Include stor-layout.h.
4909         * tree-ssa-sccvn.c: Include stor-layout.h.
4910         * tree-ssa-sink.c: Include stor-layout.h.
4911         * tree-ssa-strlen.c: Include stor-layout.h.
4912         * tree-ssa-structalias.c: Include stor-layout.h.
4913         Include stmt.h.
4914         * tree-ssa-tail-merge.c: Include stor-layout.h.
4915         Include trans-mem.h.
4916         * tree-ssa-uncprop.c: Include stor-layout.h.
4917         * tree-ssa.c: Include stor-layout.h.
4918         * tree-ssanames.c: Include stor-layout.h.
4919         * tree-streamer-in.c: Include stringpool.h.
4920         * tree-streamer-out.c: Include stor-layout.h.
4921         * tree-switch-conversion.c: Include varasm.h.
4922         Include stor-layout.h.
4923         * tree-tailcall.c: Include stor-layout.h.
4924         * tree-vect-data-refs.c: Include stor-layout.h.
4925         * tree-vect-generic.c: Include stor-layout.h.
4926         * tree-vect-loop.c: Include stor-layout.h.
4927         * tree-vect-patterns.c: Include stor-layout.h.
4928         * tree-vect-slp.c: Include stor-layout.h.
4929         * tree-vect-stmts.c: Include stor-layout.h.
4930         * tree-vectorizer.c: Include stor-layout.h.
4931         * tree-vrp.c: Include stor-layout.h.
4932         Include calls.h.
4933         * tree.c: Include stor-layout.h.
4934         Include calls.h.
4935         Include attribs.h.
4936         Include varasm.h.
4937         * tsan.c: Include expr.h.
4938         * ubsan.c: Include stor-layout.h.
4939         Include stringpool.h.
4940         * value-prof.c: Include tree-nested.h.
4941         Include calls.h.
4942         * var-tracking.c: Include varasm.h.
4943         Include stor-layout.h.
4944         * varasm.c: Include stor-layout.h.
4945         Include stringpool.h.
4946         Include gcc-symtab.h.
4947         Include varasm.h.
4948         * varpool.c: Include varasm.h.
4949         * vmsdbgout.c: Include varasm.h.
4950         * xcoffout.c: Include varasm.h.
4952 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
4954         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
4955         use (.&-4) idiom.
4957 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4959         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
4961 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4962             Alan Modra  <amodra@gmail.com>
4964         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
4965         (RS6000_SAVE_TOC): Remove.
4966         (RS6000_TOC_SAVE_SLOT): New macro.
4967         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
4968         (rs6000_parm_start): Use it.
4969         (rs6000_function_arg_advance_1): Likewise.
4970         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
4971         (rs6000_emit_epilogue): Likewise.
4972         (rs6000_call_aix): Likewise.
4973         (rs6000_output_function_prologue): Do not save/restore r11
4974         around calling _mcount for ABI_ELFv2.
4976 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4977             Alan Modra  <amodra@gmail.com>
4979         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
4980         Add prototype.
4981         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
4982         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
4983         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
4984         (rs6000_function_parms_need_stack): Likewise.
4985         (rs6000_reg_parm_stack_space): Likewise.
4986         (rs6000_function_arg): Do not replace BLKmode by Pmode when
4987         returning a register argument.
4989 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4990             Michael Gschwind  <mkg@us.ibm.com>
4992         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
4993         (ALTIVEC_ARG_MAX_RETURN): Likewise.
4994         (FUNCTION_VALUE_REGNO_P): Use them.
4995         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
4996         (rs6000_return_in_msb): New function.
4997         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
4998         Handle aggregates of up to 16 bytes for ELFv2.
4999         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5001 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5002             Michael Gschwind  <mkg@us.ibm.com>
5004         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5005         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5006         (rs6000_discover_homogeneous_aggregate): Likewise.
5007         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5008         (rs6000_function_arg_advance_1): Likewise.
5009         (rs6000_function_arg): Likewise.
5010         (rs6000_arg_partial_bytes): Likewise.
5011         (rs6000_psave_function_arg): Handle BLKmode arguments.
5013 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5014             Michael Gschwind  <mkg@us.ibm.com>
5016         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5017         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5018         (rs6000_discover_homogeneous_aggregate): Likewise.
5019         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5020         (rs6000_function_arg_advance_1): Likewise.
5021         (rs6000_function_arg): Likewise.
5022         (rs6000_arg_partial_bytes): Likewise.
5023         (rs6000_psave_function_arg): Handle BLKmode arguments.
5025 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5027         * config/rs6000/rs6000.c (machine_function): New member
5028         r2_setup_needed.
5029         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5030         (rs6000_output_mi_thunk): Set r2_setup_needed.
5031         (rs6000_output_function_prologue): Output global entry point
5032         prologue and local entry point marker if needed for ABI_ELFv2.
5033         Output -mprofile-kernel code here.
5034         (output_function_profiler): Do not output -mprofile-kernel
5035         code here; moved to rs6000_output_function_prologue.
5036         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5038         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5039         (rs6000_output_function_entry): Likewise.
5040         (rs6000_assemble_integer): Likewise.
5041         (rs6000_elf_encode_section_info): Likewise.
5042         (rs6000_elf_declare_function_name): Do not create dot symbols
5043         or .opd section for ABI_ELFv2.
5045         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5046         (rs6000_trampoline_init): Likewise.
5047         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5049         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
5050         for function descriptors in ABI_ELFv2.
5052         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5053         on ABI_AIX only, not ABI_ELFv2.
5054         ("*call_value_indirect_aix<mode>"): Likewise.
5055         ("*call_indirect_elfv2<mode>"): New pattern.
5056         ("*call_value_indirect_elfv2<mode>"): Likewise.
5058         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5059         check for function descriptors in ABI_ELFv2.
5060         ("current_file_function_operand"): Likewise.
5062         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5063         (toc): Undefine.
5064         (FUNC_NAME): Define ELFv2 variant.
5065         (JUMP_TARGET): Likewise.
5066         (FUNC_START): Likewise.
5067         (HIDDEN_FUNC): Likewise.
5068         (FUNC_END): Likeiwse.
5070 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5072         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5073         and --with-abi=elfv2.
5074         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5075         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5076         (mabi=elfv2): Likewise.
5077         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5078         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5079         if !RS6000_BI_ARCH.
5080         (ELFv2_ABI_CHECK): New macro.
5081         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5082         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5083         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5084         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5085         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5087         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5088         (debug_stack_info): Likewise.
5089         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5090         (rs6000_legitimize_tls_address): Likewise.
5091         (rs6000_conditional_register_usage): Likewise.
5092         (rs6000_emit_move): Likewise.
5093         (init_cumulative_args): Likewise.
5094         (rs6000_function_arg_advance_1): Likewise.
5095         (rs6000_function_arg): Likewise.
5096         (rs6000_arg_partial_bytes): Likewise.
5097         (rs6000_output_function_entry): Likewise.
5098         (rs6000_assemble_integer): Likewise.
5099         (rs6000_savres_strategy): Likewise.
5100         (rs6000_stack_info): Likewise.
5101         (rs6000_function_ok_for_sibcall): Likewise.
5102         (rs6000_emit_load_toc_table): Likewise.
5103         (rs6000_savres_routine_name): Likewise.
5104         (ptr_regno_for_savres): Likewise.
5105         (rs6000_emit_prologue): Likewise.
5106         (rs6000_emit_epilogue): Likewise.
5107         (rs6000_output_function_epilogue): Likewise.
5108         (output_profile_hook): Likewise.
5109         (output_function_profiler): Likewise.
5110         (rs6000_trampoline_size): Likewise.
5111         (rs6000_trampoline_init): Likewise.
5112         (rs6000_elf_output_toc_section_asm_op): Likewise.
5113         (rs6000_elf_encode_section_info): Likewise.
5114         (rs6000_elf_reloc_rw_mask): Likewise.
5115         (rs6000_elf_declare_function_name): Likewise.
5116         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5117         except that rs6000_compat_align_parm is always assumed false.
5118         (rs6000_gimplify_va_arg): Likewise.
5119         (rs6000_call_aix): Update comment.
5120         (rs6000_sibcall_aix): Likewise.
5121         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5122         Treat ABI_ELFv2 the same as ABI_AIX.
5123         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5124         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5125         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5126         ("load_toc_aix_si"): Likewise.
5127         ("load_toc_aix_di"): Likewise.
5128         ("call"): Likewise.
5129         ("call_value"): Likewise.
5130         ("*call_local_aix<mode>"): Likewise.
5131         ("*call_value_local_aix<mode>"): Likewise.
5132         ("*call_nonlocal_aix<mode>"): Likewise.
5133         ("*call_value_nonlocal_aix<mode>"): Likewise.
5134         ("*call_indirect_aix<mode>"): Likewise.
5135         ("*call_value_indirect_aix<mode>"): Likewise.
5136         ("sibcall"): Likewise.
5137         ("sibcall_value"): Likewise.
5138         ("*sibcall_aix<mode>"): Likewise.
5139         ("*sibcall_value_aix<mode>"): Likewise.
5140         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5141         ("current_file_function_operand"): Likewise.
5143 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5145         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5146         by making use of the fact that for vector / floating point arguments
5147         passed both in VRs/FPRs and in the fixed parameter area, the partial
5148         bytes mechanism is in fact not used.
5150 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5152         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5153         (rs6000_finish_function_arg): Likewise.
5154         (rs6000_function_arg): Use rs6000_psave_function_arg and
5155         rs6000_finish_function_arg to handle both vector and floating
5156         point arguments that are also passed in GPRs / the stack.
5158 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5160         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5161         (USE_ALTIVEC_FOR_ARG_P): Likewise.
5162         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5163         (rs6000_function_arg_advance_1):Likewise.
5164         (rs6000_darwin64_record_arg_recurse): Likewise.
5165         (rs6000_function_arg): Likewise.
5166         (rs6000_arg_partial_bytes): Likewise.
5168 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5170         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5171         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5172         (rs6000_savres_strategy): Likewise.
5173         (rs6000_return_addr): Likewise.
5174         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5175         testing for ABI_V4 (since ABI_DARWIN is impossible here).
5176         (rs6000_emit_prologue): Likewise.
5177         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5178         (rs6000_elf_declare_function_name): Remove duplicated test.
5179         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5180         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5181         ("load_toc_v4_PIC_1_normal"): Likewise.
5182         ("load_toc_v4_PIC_1_476"): Likewise.
5183         ("load_toc_v4_PIC_1b"): Likewise.
5184         ("load_toc_v4_PIC_1b_normal"): Likewise.
5185         ("load_toc_v4_PIC_1b_476"): Likewise.
5186         ("load_toc_v4_PIC_2"): Likewise.
5187         ("load_toc_v4_PIC_3b"): Likewise.
5188         ("load_toc_v4_PIC_3c"): Likewise.
5189         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5190         (RS6000_SAVE_AREA): Likewise.
5191         (FP_ARG_MAX_REG): Likewise.
5192         (RETURN_ADDRESS_OFFSET): Likewise.
5193         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5194         of ABI_AIX.
5195         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5196         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5198 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5200         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5201         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
5202         Create call insn directly instead of via various gen_... routines.
5203         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5204         (rs6000_sibcall_aix): New function.
5205         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5206         (TOC_SAVE_OFFSET_64BIT): Likewise.
5207         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5208         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5209         (AIX_FUNC_DESC_SC_32BIT): Likewise.
5210         (AIX_FUNC_DESC_SC_64BIT): Likewise.
5211         ("call" expander): Call rs6000_call_aix.
5212         ("call_value" expander): Likewise.
5213         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5214         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5215         ("*call_indirect_aix<mode>"): ... by this insn pattern.
5216         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5217         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5218         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5219         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5220         ("*call_nonlocal_aix<mode>"): ... this pattern.
5221         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5222         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5223         ("*call_local_aix<mode>"): New insn pattern.
5224         ("*call_value_local_aix<mode>"): Likewise.
5225         ("sibcall" expander): Call rs6000_sibcall_aix.
5226         ("sibcall_value" expander): Likewise.  Move earlier in file.
5227         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5228         ("*sibcall_aix<mode>"): ... this pattern.
5229         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5230         ("*sibcall_value_aix<mode>"): ... this pattern.
5231         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5232         (rs6000_call_aix): Add prototype.
5233         (rs6000_sibcall_aix): Likewise.
5235 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5237         PR sanitizer/59122
5238         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5239         isn't confused by the artificial decl.
5241 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5243         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5244         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5245         Instead, add USEs of all modified call-saved CR fields to the
5246         insn storing the result to the stack slot, and provide an
5247         appropriate REG_FRAME_RELATED_EXPR for that insn.
5248         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5249         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5251 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5252             Alan Modra  <amodra@gmail.com>
5254         * function.c (assign_parms): Use all.reg_parm_stack_space instead
5255         of re-evaluating REG_PARM_STACK_SPACE target macro.
5256         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
5257         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5258         (assign_parm_find_entry_rtl): Update call.
5259         * calls.c (initialize_argument_information): Update call.
5260         (emit_library_call_value_1): Likewise.
5261         * expr.h (locate_and_pad_parm): Update prototype.
5263 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5265         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5266         arguments.
5268 2013-11-14  DJ Delorie  <dj@redhat.com>
5270         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5271         to 16 bits.
5273 2013-11-14  Jeff Law  <law@redhat.com>
5275         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5276         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5278 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5280         * doc/invoke.texi: Update documentation for AArch64's -mcpu
5281         and -mtune options.
5283 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5285         * config/aarch64/aarch64-cores.def (example-1): Remove.
5286         (example-2): Likewise.
5287         * config/aarch64/aarch64-tune.md: Regenerate.
5288         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5289         (generic_sched): Remove "large", "small".
5290         * config/aarch64/large.md: Delete.
5291         * config/aarch64/small.md: Delete.
5293 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5295         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5296         * config/aarch64/aarch64-tune.md: Regenerate.
5297         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5298         (generic_sched): "no" if we are tuning for cortexa15.
5299         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5300         relative path.
5302 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5304         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5305         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5306         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5307         (all_cores): Use cortexa53 when tuning for "generic".
5308         (aarch64_override_options): Fix comment.
5309         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5310         * config/aarch64/aarch64-generic.md: Delete.
5312 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5314         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5316 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5318         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5319         (generic_rtx_cost_table): Remove.
5320         (aarch64_rtx_costs): Use fields from cpu_cost_table.
5321         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5322         insn_extra_cost.
5323         (cpu_rtx_cost_table): Remove.
5325 2013-11-14  Julian Brown  <julian@codesourcery.com>
5326             Joey Ye  <joey.ye@arm.com>
5328         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5329         (arm_v7m_tune): New.
5330         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5331         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5332         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5333         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5335 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
5337         PR target/57491
5338         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5339         flag setting.
5341 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5342             Uros Bizjak  <ubizjak@gmail.com>
5344         PR target/59101
5345         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5346         operands[2] satisfies_constraint_Z that might have bit 31 set.
5348 2013-11-13  Jeff Law  <law@redhat.com>
5350         PR tree-optimization/59102
5351         * gimple-ssa-isolate-paths.c
5352         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5353         gimple assignment before looking at gimple_assign_lhs.
5355 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5357         * ira.c: Add comment about threads at the top of file.
5359 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5361         * ira-color.c (coalesce_allocnos): Don't allocate and free
5362         sorted_copies.
5364 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5366         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5367         equality for GIMPLE_ASSIGN.
5369 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5371         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5372         function out of ...
5373         (gimple_equal_p): ... here.
5375 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5377         * trans-mem.c (is_tm_ending): New function.
5378         * gimple.h (is_tm_ending): Declare.
5379         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5380         BUILT_IN_TM_COMMIT.
5381         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5383 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5385         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5387 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
5389         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
5390         (struct walk_stmt_info):  Relocate here from gimple.h.
5391         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
5392         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5393         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5394         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5395         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5396         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5397         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5398         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5399         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5400         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5401         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5402         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5403         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5404         (struct walk_stmt_info): Move to gimple-walk.h.
5405         (gimple_seq_set_location): Move to gimple.c
5406         * gimple-walk.c: New File.
5407         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5408         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5409         walk_stmt_load_store_ops): Relocate here from gimple.c.
5410         * gimple-iterator.c: Include gimple-iterator.h.
5411         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5412         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5413         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5414         gimple-walk.c.
5415         (gimple_seq_set_location): Relocate from gimple.h.
5416         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5417         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5418         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5419         * Makefile.in (OBJS): Add gimple-walk.o
5420         * asan.c: Update Include list as required for gimple-iterator.h and
5421         gimple-walk.h.
5422         * cfgexpand.c: Likewise.
5423         * cfgloop.c: Likewise.
5424         * cfgloopmanip.c: Likewise.
5425         * cgraph.c: Likewise.
5426         * cgraphbuild.c: Likewise.
5427         * cgraphunit.c: Likewise.
5428         * gimple-fold.c: Likewise.
5429         * gimple-low.c: Likewise.
5430         * gimple-pretty-print.c: Likewise.
5431         * gimple-ssa-isolate-paths.c: Likewise.
5432         * gimple-ssa-strength-reduction.c: Likewise.
5433         * gimple-streamer-in.c: Likewise.
5434         * gimple-streamer-out.c: Likewise.
5435         * gimplify.c: Likewise.
5436         * graphite-blocking.c: Likewise.
5437         * graphite-clast-to-gimple.c: Likewise.
5438         * graphite-dependences.c: Likewise.
5439         * graphite-interchange.c: Likewise.
5440         * graphite-optimize-isl.c: Likewise.
5441         * graphite-poly.c: Likewise.
5442         * graphite-scop-detection.c: Likewise.
5443         * graphite-sese-to-poly.c: Likewise.
5444         * graphite.c: Likewise.
5445         * ipa-inline-analysis.c: Likewise.
5446         * ipa-profile.c: Likewise.
5447         * ipa-prop.c: Likewise.
5448         * ipa-pure-const.c: Likewise.
5449         * ipa-split.c: Likewise.
5450         * lto-streamer-in.c: Likewise.
5451         * lto-streamer-out.c: Likewise.
5452         * omp-low.c: Likewise.
5453         * predict.c: Likewise.
5454         * profile.c: Likewise.
5455         * sese.c: Likewise.
5456         * tracer.c: Likewise.
5457         * trans-mem.c: Likewise.
5458         * tree-call-cdce.c: Likewise.
5459         * tree-cfg.c: Likewise.
5460         * tree-cfgcleanup.c: Likewise.
5461         * tree-complex.c: Likewise.
5462         * tree-data-ref.c: Likewise.
5463         * tree-dfa.c: Likewise.
5464         * tree-eh.c: Likewise.
5465         * tree-emutls.c: Likewise.
5466         * tree-if-conv.c: Likewise.
5467         * tree-inline.c: Likewise.
5468         * tree-into-ssa.c: Likewise.
5469         * tree-loop-distribution.c: Likewise.
5470         * tree-nested.c: Likewise.
5471         * tree-nrv.c: Likewise.
5472         * tree-object-size.c: Likewise.
5473         * tree-outof-ssa.c: Likewise.
5474         * tree-parloops.c: Likewise.
5475         * tree-predcom.c: Likewise.
5476         * tree-profile.c: Likewise.
5477         * tree-scalar-evolution.c: Likewise.
5478         * tree-sra.c: Likewise.
5479         * tree-ssa-ccp.c: Likewise.
5480         * tree-ssa-coalesce.c: Likewise.
5481         * tree-ssa-copy.c: Likewise.
5482         * tree-ssa-copyrename.c: Likewise.
5483         * tree-ssa-dce.c: Likewise.
5484         * tree-ssa-dom.c: Likewise.
5485         * tree-ssa-dse.c: Likewise.
5486         * tree-ssa-forwprop.c: Likewise.
5487         * tree-ssa-ifcombine.c: Likewise.
5488         * tree-ssa-live.c: Likewise.
5489         * tree-ssa-loop-ch.c: Likewise.
5490         * tree-ssa-loop-im.c: Likewise.
5491         * tree-ssa-loop-ivcanon.c: Likewise.
5492         * tree-ssa-loop-ivopts.c: Likewise.
5493         * tree-ssa-loop-manip.c: Likewise.
5494         * tree-ssa-loop-niter.c: Likewise.
5495         * tree-ssa-loop-prefetch.c: Likewise.
5496         * tree-ssa-loop.c: Likewise.
5497         * tree-ssa-math-opts.c: Likewise.
5498         * tree-ssa-phiopt.c: Likewise.
5499         * tree-ssa-phiprop.c: Likewise.
5500         * tree-ssa-pre.c: Likewise.
5501         * tree-ssa-propagate.c: Likewise.
5502         * tree-ssa-reassoc.c: Likewise.
5503         * tree-ssa-sink.c: Likewise.
5504         * tree-ssa-strlen.c: Likewise.
5505         * tree-ssa-structalias.c: Likewise.
5506         * tree-ssa-tail-merge.c: Likewise.
5507         * tree-ssa-ter.c: Likewise.
5508         * tree-ssa-threadedge.c: Likewise.
5509         * tree-ssa-threadupdate.c: Likewise.
5510         * tree-ssa-uncprop.c: Likewise.
5511         * tree-ssa-uninit.c: Likewise.
5512         * tree-ssa.c: Likewise.
5513         * tree-stdarg.c: Likewise.
5514         * tree-switch-conversion.c: Likewise.
5515         * tree-tailcall.c: Likewise.
5516         * tree-vect-data-refs.c: Likewise.
5517         * tree-vect-generic.c: Likewise.
5518         * tree-vect-loop-manip.c: Likewise.
5519         * tree-vect-loop.c: Likewise.
5520         * tree-vect-patterns.c: Likewise.
5521         * tree-vect-slp.c: Likewise.
5522         * tree-vect-stmts.c: Likewise.
5523         * tree-vectorizer.c: Likewise.
5524         * tree-vrp.c: Likewise.
5525         * tree.c: Likewise.
5526         * tsan.c: Likewise.
5527         * value-prof.c: Likewise.
5528         * vtable-verify.c: Likewise.
5530 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5532         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5533         fix.
5535 2013-11-13  Jeff Law  <law@redhat.com>
5537         * PR middle-end/59119
5538         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5539         function, extracted from gimple_ssa_isolate_erroneous_paths.
5540         (find_explicit_erroneous_behaviour): Similarly.
5541         (insert_trap_and_remove_trailing_statements): Remove statements
5542         in reverse order.
5544 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5546         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5547         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
5548         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5549         looking at INSN_CODE.
5550         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5551         active_insn_p object, respect basic block boundaries.
5552         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5553         follows immediately after the jump table data label.
5554         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5555         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
5556         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5558 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5560         PR ipa/58862
5561         * predict.c (drop_profile): Error is currently too strict.
5562         (handle_missing_profiles): Pass call_count to drop_profile.
5564 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5566         PR ipa/58862
5567         * ipa-inline.c (edge_badness): Fix overflow.
5569 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5571         PR rtl-optimization/59036
5572         * ira-color.c (struct allocno_color_data): Add new members
5573         first_thread_allocno, next_thread_allocno, thread_freq.
5574         (sorted_copies): New static var.
5575         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5576         (allocno_thread_conflict_p, merge_threads)
5577         (form_threads_from_copies, form_threads_from_bucket)
5578         (form_threads_from_colorable_allocno, init_allocno_threads): New
5579         functions.
5580         (bucket_allocno_compare_func): Add comparison by thread frequency
5581         and threads.
5582         (add_allocno_to_ordered_bucket): Rename to
5583         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
5584         (push_only_colorable): Call form_threads_from_bucket.
5585         (color_pass): Call init_allocno_threads.  Use
5586         consideration_allocno_bitmap instead of coloring_allocno_bitmap
5587         for nuillify allocno color data.
5588         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5589         (coalesce_allocnos): Use static sorted copies.
5591 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
5593         * passes.c (execute_todo): Don't call do_per_function if
5594         flags are zero.
5595         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5596         execute_function_dump if dump_file is NULL.
5598 2013-11-13  Martin Jambor  <mjambor@suse.cz>
5600         * cgraph.c (cgraph_get_create_node): Do what
5601         cgraph_get_create_real_symbol_node used to do.
5602         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
5603         call cgraph_get_create_node.
5604         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5605         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5606         cgraph_get_create_node.  Assert we get a node.
5608 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5610         * config/aarch64/aarch64-simd.md (vec_extract): New.
5612 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5614         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5615         the constraint.
5617 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5619         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5620         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5621         or if optimization is enabled.
5622         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5623         require that all the names based on a PARM_DECL or a RESULT_DECL that
5624         isn't ignored for debug info be coalesced.
5626 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5628         * config/c6x/c6x.c: Include "gimple-expr.h".
5630 2013-11-13  Richard Biener  <rguenther@suse.de>
5632         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5633         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5634         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5635         dealing with type mismatches inside component reference chains.
5637 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
5639         PR tree-optimization/59077
5640         * ipa-pure-const.c (better_state): Update *state.
5642 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
5644         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5645         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5646         Update offset calculations.
5648 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5650         PR ada/35998
5651         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5652         for fields.  Do not add the attribute if the size is negative.
5654 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5656         * config/arm/arm.c: Include aarch-cost-tables.h.
5657         (generic_extra_costs): Move from here...
5658         * config/arm/aarch-cost-tables.h: ... To here.  New file.
5660 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5661             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5662             Sergey Lega  <sergey.s.lega@intel.com>
5663             Anna Tikhonova  <anna.tikhonova@intel.com>
5664             Ilya Tocar  <ilya.tocar@intel.com>
5665             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5666             Ilya Verbin  <ilya.verbin@intel.com>
5667             Kirill Yukhin  <kirill.yukhin@intel.com>
5668             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5670         * config/i386/i386.c (ix86_print_operand): Support z-masking.
5671         * config/i386/predicate.md (const_0_to_4_operand): New.
5672         (const_0_to_5_operand): Ditto.
5673         * config/i386/sse.md (UNSPEC_COMPRESS): New.
5674         (UNSPEC_COMPRESS_STORE): Ditto.
5675         (UNSPEC_EXPAND): Ditto.
5676         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5677         (define_mode_attr ssescalarsize): Ditto.
5678         (avx512f_load<mode>_mask): Ditto.
5679         (avx512f_store<mode>_mask): Ditto.
5680         (avx512f_storedqu<mode>_mask): Ditto.
5681         (avx512f_vmcmp<mode>3_mask): Ditto.
5682         (avx512f_fmadd_<mode>_mask): Ditto.
5683         (avx512f_fmadd_<mode>_mask3): Ditto.
5684         (avx512f_fmsub_<mode>_mask): Ditto.
5685         (avx512f_fmsub_<mode>_mask3): Ditto.
5686         (avx512f_fnmadd_<mode>_mask): Ditto.
5687         (avx512f_fnmadd_<mode>_mask3): Ditto.
5688         (avx512f_fnmsub_<mode>_mask): Ditto.
5689         (avx512f_fnmsub_<mode>_mask3): Ditto.
5690         (avx512f_fmaddsub_<mode>_mask): Ditto.
5691         (avx512f_fmaddsub_<mode>_mask3): Ditto.
5692         (avx512f_fmsubadd_<mode>_mask): Ditto.
5693         (avx512f_fmsubadd_<mode>_mask3): Ditto.
5694         (vec_unpacku_float_lo_v16si): Ditto.
5695         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5696         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5697         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5698         (vec_extract_lo_<mode>_maskm): Ditto.
5699         (vec_extract_hi_<mode>_maskm): Ditto.
5700         (avx512f_vternlog<mode>_mask): Ditto.
5701         (avx512f_shufps512_mask): Ditto.
5702         (avx512f_fixupimm<mode>_mask): Ditto.
5703         (avx512f_shufpd512_mask): Ditto.
5704         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5705         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5706         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5707         (ashr<mode>3<mask_name>): Ditto.
5708         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5709         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5710         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5711         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5712         (avx512f_pshufdv3_mask): Ditto.
5713         (avx512f_perm<mode>_mask): Ditto.
5714         (avx512f_vpermi2var<mode>3_mask): Ditto.
5715         (avx512f_vpermt2var<mode>3_mask): Ditto.
5716         (avx512f_compress<mode>_mask): Ditto.
5717         (avx512f_compressstore<mode>_mask): Ditto.
5718         (avx512f_expand<mode>_mask): Ditto.
5719         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5720         to support masking.
5721         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5722         (<plusminus_insn><mode>3<mask_name>): Ditto.
5723         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5724         (mul<mode>3<mask_name>): Ditto.
5725         (*mul<mode>3<mask_name>): Ditto.
5726         (<sse>_div<mode>3<mask_name>): Ditto.
5727         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5728         (<sse>_sqrt<mode>2<mask_name>): Ditto.
5729         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5730         (<code><mode>3<mask_name>/smaxmin): Ditto.
5731         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5732         (*<code><mode>3<mask_name>/smaxmin): Ditto.
5733         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5734         (ufloatv16siv16sf2<mask_name>): Ditto.
5735         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5736         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5737         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5738         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5739         (ufloatv8siv8df<mask_name>): Ditto.
5740         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5741         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5742         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5743         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5744         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5745         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5746         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5747         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5748         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5749         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5750         (vec_extract_lo_<mode><mask_name>): Ditto.
5751         (vec_extract_hi_<mode><mask_name>): Ditto.
5752         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
5753         (avx512f_movddup512<mask_name>): Ditto.
5754         (avx512f_unpcklpd512<mask_name>): Ditto.
5755         (*avx512f_unpcklpd512<mask_name>): Ditto.
5756         (*avx512f_vmscalef<mode>): Ditto.
5757         (avx512f_scalef<mode><mask_name>): Ditto.
5758         (avx512f_getexp<mode><mask_name>): Ditto.
5759         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
5760         (avx512f_rndscale<mode><mask_name>): Ditto.
5761         (avx512f_shufps512_1<mask_name>): Ditto.
5762         (avx512f_shufpd512_1<mask_name>): Ditto.
5763         (<plusminus_insn><mode>3<mask_name>): Ditto.
5764         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5765         (vec_widen_umult_even_v16si<mask_name>): Ditto.
5766         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
5767         (vec_widen_smult_even_v16si<mask_name>): Ditto.
5768         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
5769         (mul<mode>3<mask_name>): Ditto.
5770         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5771         (<shift_insn><mode>3<mask_name>): Ditto.
5772         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
5773         (avx512f_<rotate><mode><mask_name>): Ditto.
5774         (<code><mode>3<mask_name>/maxmin): Ditto.
5775         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
5776         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
5777         (*andnot<mode>3<mask_name>): Ditto.
5778         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
5779         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
5780         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
5781         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
5782         (vec_set_lo_<mode><mask_name>): Ditto.
5783         (vec_set_hi_<mode><mask_name>): Ditto.
5784         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
5785         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
5786         (avx512f_pshufd_1<mask_name>): Ditto.
5787         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
5788         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
5789         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
5790         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
5791         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
5792         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
5793         (avx512er_exp2<mode><mask_name>): Ditto.
5794         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
5795         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
5796         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
5797         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
5798         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
5799         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
5800         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
5801         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
5802         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
5803         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
5804         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
5805         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
5806         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
5807         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
5808         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
5809         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
5810         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
5811         (avx512f_getmant<mode><mask_name>): Ditto.
5812         (clz<mode>2<mask_name>): Ditto.
5813         (<mask_codefor>conflict<mode><mask_name>): Ditto.
5814         (*srcp14<mode>): Remove visibility.
5815         (*rsqrt14<mode>): Ditto.
5816         (*fma_fmsub_<mode>): Ditto.
5817         (*fma_fnmadd_<mode>): Ditto.
5818         (*avx512f_rndscale<mode>): Ditto.
5819         * config/i386/subst.md: New file.
5821 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
5823         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
5824         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
5825         (atomic_load_explicit, atomic_exchange_explicit)
5826         (atomic_compare_exchange_strong_explicit)
5827         (atomic_compare_exchange_weak_explicit): Use __auto_type to
5828         declare variable initialized with PTR argument.
5830 2013-11-12  Jeff Law  <law@redhat.com>
5832         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
5833         backedge_seen_p.  Set, use and pass it to children appropriately.
5834         (thread_through_normal_block): Similarly.
5835         (thread_across_edge): Similarly.
5837         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
5838         memory references as volatile.
5839         (insert_trap_and_remove_trailing_statements): Fix comment.
5841 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
5843         PR other/58712
5844         * ira-costs.c (record_operand_costs): Check operands number for
5845         the single set.
5847 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5849         PR target/59054
5850         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
5851         constraints that would allow DImode into the traditional Altivec
5852         registers, but cause undesirable code generation when loading 0 as
5853         a constant.
5854         (movdi_internal64): Likewise.
5855         (cmp<mode>_fpr): Do not use %x for CR register output.
5856         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
5857         -mallow-upper-sf debug switches are used.
5859 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
5861         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
5862         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
5863         Relocate prototypes from gimple.h.
5864         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
5865         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
5866         from gimple.h.
5867         * gimple.h: Move some prototypes to gimplify.h.
5868         (gimple_predicate, enum fallback, enum gimplify_status): Move to
5869         gimplify.h.
5870         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
5871         Relocate from gimpify.c.
5872         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5873         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
5874         is_gimple_reg_rhs) Relocate from gimplify.c.
5875         * gimplify.c (mark_addressable): Move to gimple-expr.c.
5876         (gimple_seq_add_stmt_without_update): Move to gimple.c.
5877         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5878         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
5879         is_gimple_reg_rhs): Move to gimple-expr.c.
5880         (should_carry_location_p): Move to gimple.c.
5881         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
5882         to gimple.h.
5883         (annotate_one_with_location, annotate_all_with_location_after,
5884         annotate_all_with_location): Move to gimple.c.
5885         (compare_case_labels, sort_case_labels,
5886         preprocess_case_label_vec_for_gimple): Move to gimple.c.
5887         (rhs_predicate_for): Make static.
5888         (gimplify_assign): Relocate from gimple.c.
5889         * gimple.c (gimplify_assign): Move to gimplify.c.
5890         (gimple_seq_add_stmt_without_update, should_carry_location_p,
5891         annotate_one_with_location, annotate_all_with_location_after,
5892         annotate_all_with_location, compare_case_labels, sort_case_labels,
5893         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
5894         * tree.h (unshare_expr, unshare_expr_without_location,
5895         mark_addressable): Move prototypes to gimplify.h.
5896         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
5897         tmp_var_id_num
5898         * asan.c: Include gimplify.h rather than gimple.h.
5899         * cfgloopmanip.c: Likewise.
5900         * cgraphunit.c: Likewise.
5901         * cilk-common.c: Likewise.
5902         * dwarf2out.c: Dont include gimple.h.
5903         * fold-const.c: Include gimplify.h rather than gimple.h.
5904         * function.c: Likewise.
5905         * gimple-fold.c: Likewise.
5906         * gimple-ssa-strength-reduction.c: Likewise.
5907         * graphite-clast-to-gimple.c: Likewise.
5908         * graphite-sese-to-poly.c: Likewise.
5909         * ipa-prop.c: Likewise.
5910         * ipa-split.c: Likewise.
5911         * ipa.c: Likewise.
5912         * langhooks.c: Dont include gimple.h.
5913         * loop-init.c: Include gimplify.h rather than gimple.h.
5914         * omp-low.c: Likewise.
5915         * sese.c: Likewise.
5916         * stor-layout.c: Likewise.
5917         * targhooks.c: Likewise.
5918         * trans-mem.c: Likewise.
5919         * tree-affine.c: Likewise.
5920         * tree-cfg.c: Likewise.
5921         * tree-cfgcleanup.c: Likewise.
5922         * tree-complex.c: Likewise.
5923         * tree-if-conv.c: Likewise.
5924         * tree-inline.c: Likewise.
5925         * tree-iterator.c: Likewise.
5926         * tree-loop-distribution.c: Likewise.
5927         * tree-nested.c: Likewise.
5928         * tree-parloops.c: Likewise.
5929         * tree-predcom.c: Likewise.
5930         * tree-profile.c: Likewise.
5931         * tree-scalar-evolution.c: Likewise.
5932         * tree-sra.c: Likewise.
5933         * tree-ssa-address.c: Likewise.
5934         * tree-ssa-ccp.c: Likewise.
5935         * tree-ssa-dce.c: Likewise.
5936         * tree-ssa-forwprop.c: Likewise.
5937         * tree-ssa-ifcombine.c: Likewise.
5938         * tree-ssa-loop-im.c: Likewise.
5939         * tree-ssa-loop-ivopts.c: Likewise.
5940         * tree-ssa-loop-manip.c: Likewise.
5941         * tree-ssa-loop-niter.c: Likewise.
5942         * tree-ssa-loop-prefetch.c: Likewise.
5943         * tree-ssa-loop-unswitch.c: Likewise.
5944         * tree-ssa-math-opts.c: Likewise.
5945         * tree-ssa-phiopt.c: Likewise.
5946         * tree-ssa-phiprop.c: Likewise.
5947         * tree-ssa-pre.c: Likewise.
5948         * tree-ssa-propagate.c: Likewise.
5949         * tree-ssa-reassoc.c: Likewise.
5950         * tree-ssa-sccvn.c: Likewise.
5951         * tree-ssa-strlen.c: Likewise.
5952         * tree-ssa.c: Likewise.
5953         * tree-switch-conversio: Likewise.n.c
5954         * tree-tailcall.c: Likewise.
5955         * tree-vect-data-refs.c: Likewise.
5956         * tree-vect-generic.c: Likewise.
5957         * tree-vect-loop-manip.c: Likewise.
5958         * tree-vect-loop.c: Likewise.
5959         * tree-vect-patterns.c: Likewise.
5960         * tree-vect-stmts.c: Likewise.
5961         * tsan.c: Likewise.
5962         * value-prof.c: Likewise.
5963         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
5964         * config/alpha/alpha.c: Likewise.
5965         * config/darwin.c: Likewise.
5966         * config/i386/i386.c: Likewise.
5967         * config/ia64/ia64.c: Likewise.
5968         * config/mep/mep.c: Likewise.
5969         * config/mips/mips.c: Likewise.
5970         * config/rs6000/rs6000.c: Likewise.
5971         * config/s390/s390.c: Likewise.
5972         * config/sh/sh.c: Likewise.
5973         * config/sparc/sparc.c: Likewise.
5974         * config/spu/spu.c: Likewise.
5975         * config/stormy16/stormy16.c: Likewise.
5976         * config/tilegx/tilegx.c: Likewise.
5977         * config/tilepro/tilepro.c: Likewise.
5978         * config/xtensa/xtensa.c: Likewise.
5980 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
5982         * tree.c (grow_tree_vec_stat): New function ...
5983         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
5984         and macro front-end.
5986 2013-11-12  Marek Polacek  <polacek@redhat.com>
5988         * final.c (update_alignments): Initialize label to NULL_RTX.
5990 2013-11-12  Jeff Law  <law@redhat.com>
5992         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
5993         (insert_trap_and_remove_trailing_statements): New argument OP which
5994         is the NULL pointer.  Emit the trap after the load/store through
5995         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
5996         when trivial to do so.
5997         (isolate_path): Corresponding changes.
5998         (gimple_ssa_isolate_erroneous_path): Likewise.
6000 2013-11-12  Teresa Johnson  <tejohnson@google.com>
6001             Jan Hubicka  <jh@suse.cz>
6003         * predict.c (drop_profile): New function.
6004         (handle_missing_profiles): Ditto.
6005         (counts_to_freqs): Don't overwrite estimated frequencies
6006         when function has no profile counts.
6007         * predict.h (handle_missing_profiles): Declare.
6008         * tree-inline.c (freqs_to_counts): New function.
6009         (copy_cfg_body): Invoke freqs_to_counts as needed.
6010         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6012 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6014         PR target/59088
6015         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6016         Set for m_HASWELL.
6017         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6019 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6021         PR target/59084
6022         * config/i386/i386.c (ix86_option_override_internal): Check
6023         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6024         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6025         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6026         MASK_AVX256_SPLIT_UNALIGNED_STORE.
6028         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6029         Clear m_COREI7_AVX and update comments.
6030         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6032 2013-11-12  Martin Jambor  <mjambor@suse.cz>
6034         PR rtl-optimization/10474
6035         * ira.c (interesting_dest_for_shprep): New function.
6036         (split_live_ranges_for_shrink_wrap): Likewise.
6037         (find_moveable_pseudos): Move calculation of dominance info,
6038         df_analysios and the final anlyses to...
6039         (ira): ...here, call split_live_ranges_for_shrink_wrap.
6041 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
6043         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6044         Handle type conversion.
6046 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
6047             Jan Hubicka  <jh@suse.cz>
6049         * cgraph.c (dump_cgraph_node): Profile dump added.
6050         * cgraph.h (struct cgraph_node): New time profile variable added.
6051         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6052         * gcov-io.h (gcov_type): New profiler type introduced.
6053         * ipa-profile.c (lto_output_node): Streaming for time profile added.
6054         (input_node): Time profiler is read from LTO stream.
6055         * predict.c (maybe_hot_count_p): Hot prediction changed.
6056         * profile.c (instrument_values): New case for time profiler added.
6057         (compute_value_histograms): Read of time profile.
6058         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6059         * tree-profile.c (init_ic_make_global_vars): Time profiler
6060         function added.
6061         (gimple_init_edge_profiler): TP function instrumentation.
6062         (gimple_gen_time_profiler): New.
6063         * value-prof.c (gimple_add_histogram_value): Support for time profiler
6064         added.
6065         (dump_histogram_value): TP type added to dumps.
6066         (visit_hist): More sensitive check that takes TP into account.
6067         (gimple_find_values_to_profile): TP instrumentation.
6068         * value-prof.h (hist_type): New histogram type added.
6069         (struct histogram_value_t): Pointer to struct function added.
6070         * libgcc/Makefile.in: New GCOV merge function for TP added.
6071         * libgcov.c: function_counter variable introduced.
6072         (_gcov_merge_time_profile): New.
6073         (_gcov_time_profiler): New.
6075 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
6076             Jeff Law  <law@redhat.com>
6078         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6079         ao_ref_init_from_ptr_and_size for builtins.
6081 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
6082             H.J. Lu  <hongjiu.lu@intel.com>
6084         PR target/58853
6085         * config/i386/x86-tune.def
6086         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6087         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6088         * config/i386/i386.h
6089         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6090         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
6091         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6092         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6093         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6094         misaligned_prologue_used.  Check that
6095         desired_aling <= epilogue_size_needed.
6097 2013-11-11  Cong Hou  <congh@google.com>
6099         PR tree-optimization/59050
6100         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6102 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6104         PR middle-end/59049
6105         * expmed.c (emit_store_flag): Fail for const-const comparison.
6107 2013-11-11  Tristan Gingold  <gingold@adacore.com>
6108             Eric Botcazou  <ebotcazou@adacore.com>
6110         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6111         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6112         * tree.def (CONSTRUCTOR): Likewise.
6113         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
6114         * gimplify.c (gimplify_init_constructor): Do not clear the object when
6115         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6117 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
6119         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6120         diagnostic_finish.
6122 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6124         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6125         comparisons.
6127 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6129         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6131 2013-11-08  Jeff Law  <law@redhat.com>
6133         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6134         threading paths first, then perform PHI node checks if applicable.
6136 2013-11-10  Karlson2k  <k2k@narod.ru>
6137             Kai Tietz  <ktietz@redhat.com>
6139         PR plugin/52872
6140         * configure.ac: Adding for exported symbols check
6141         and for rdynamic-check executable-extension.
6142         * configure: Regenerated.
6144 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
6146         * mode-switching.c (optimize_mode_switching): Mark block as
6147         nontransparent, if last_mode at block exit is different from no_mode.
6149 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6151         * function.c (NAME__MAIN): Move to...
6152         * cfgexpand.c (NAME__MAIN): ...here.
6154 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
6156         * target.def (can_use_doloop_p): New hook.
6157         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6158         * doc/tm.texi: Regenerate.
6159         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6160         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6161         * hooks.c (hook_bool_dint_dint_uint_true): New function.
6162         * targhooks.h (can_use_doloop_if_innermost): Declare.
6163         * targhooks.c (can_use_doloop_if_innermost): New function.
6164         * target.h: Include double-int.h.
6165         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6166         Remove iteration count, maximum iteration count, loop depth and
6167         enter-at-top inputs from doloop_begin and doloop_end.
6168         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6169         interface.
6170         * config/arc/arc.c (arc_can_use_doloop_p): New function.
6171         (TARGET_CAN_USE_DOLOOP_P): Define.
6172         * config/arm/thumb2.md (doloop_end): Update for new interface.
6173         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6174         * config/bfin/bfin.md (doloop_end): Update for new interface.
6175         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6176         (TARGET_CAN_USE_DOLOOP_P): Define.
6177         * config/c6x/c6x.md (doloop_end): Update for new interface.
6178         * config/ia64/ia64.md (doloop_end): Update for new interface.
6179         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6180         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6181         interface.
6182         * config/mep/mep.c (mep_emit_doloop): Likewise.
6183         (TARGET_CAN_USE_DOLOOP_P): Define.
6184         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6185         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6186         * config/s390/s390.md (doloop_end): Update for new interface.
6187         * config/sh/sh.md (doloop_end): Likewise.
6188         * config/spu/spu.md (doloop_end): Likewise.
6189         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6190         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6191         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6192         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6193         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6194         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6195         interface.
6196         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6198 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
6200         PR other/59055
6201         * doc/extend.texi: Move Cilk Plus Builtins node before Other
6202         Builtins node.
6204 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
6205             Joseph Myers  <joseph@codesourcery.com>
6207         * ginclude/stdatomic.h: New file.
6208         * Makefile.in (USER_H): Add stdatomic.h.
6210 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6212         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6213         comparisons.
6215 2013-11-08  Jeff Law  <law@redhat.com>
6217         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6218         * tree-ssa-threadupdate.c (delete_thread_path): New function.
6219         (ssa_redirect_edges, thread_block_1): Use it.
6220         (thread_through_loop_header, mark_threaded_blocks): Likewise.
6221         (thread_through_all_blocks, register_jump_thread): Likewise.
6222         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6224 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
6226         * config/arm/aarch-common.c
6227         (search_term): New typedef.
6228         (shift_rtx_costs): New array.
6229         (arm_rtx_shift_left_p): New.
6230         (arm_find_sub_rtx_with_search_term): Likewise.
6231         (arm_find_sub_rtx_with_code): Likewise.
6232         (arm_early_load_addr_dep): Add sanity checking.
6233         (arm_no_early_alu_shift_dep): Likewise.
6234         (arm_no_early_alu_shift_value_dep): Likewise.
6235         (arm_no_early_mul_dep): Likewise.
6236         (arm_no_early_store_addr_dep): Likewise.
6238 2013-11-08  Richard Biener  <rguenther@suse.de>
6240         PR tree-optimization/59047
6241         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6243 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
6245         * common.opt (fcheck-pointer-bounds): Move to ...
6246         * c-family/c.opt: ... here.
6247         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6248         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6249         * langhooks.h (lang_hooks): Remove chkp_supported field.
6250         * toplev.c (process_options): Remove chkp_supported check.
6252 2013-11-08  Richard Biener  <rguenther@suse.de>
6254         PR tree-optimization/59038
6255         PR tree-optimization/58955
6256         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6257         previous change.  Handle known dependences correctly.
6259 2013-11-08  Tom de Vries  <tom@codesourcery.com>
6261         * config/rs6000/t-xilinx: Remove duplicate contents.
6263 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
6264             Joseph Myers  <joseph@codesourcery.com>
6266         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6267         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6268         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6269         (struct tree_base): Add atomic_flag field.
6270         * tree.h (TYPE_ATOMIC): New accessor macro.
6271         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6272         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6273         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6274         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6275         * tree.c (set_type_quals): Set TYPE_ATOMIC.
6276         (find_atomic_core_type): New function.
6277         (build_qualified_type): Adjust alignment for qualified types.
6278         (build_atomic_base): New function
6279         (build_common_tree_nodes): Build atomicQI_type_node,
6280         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6281         atomicTI_type_node.
6282         * print-tree.c (print_node): Print atomic qualifier.
6283         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6284         * target.def (atomic_assign_expand_fenv): New hook.
6285         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6286         * doc/tm.texi: Regenerate.
6287         * targhooks.c (default_atomic_assign_expand_fenv): New function.
6288         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6289         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6290         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6291         function type.
6292         * config/i386/i386.c (enum ix86_builtins): Add
6293         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6294         IX86_BUILTIN_FNCLEX.
6295         (bdesc_special_args): Add __builtin_ia32_fnstenv,
6296         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6297         (ix86_expand_builtin): Handle the new built-in functions.
6298         (ix86_atomic_assign_expand_fenv): New function.
6299         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6300         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6301         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6302         (fnstenv, fldenv, fnstsw, fnclex): New insns.
6304 2013-11-07  Steve Ellcey  <sellcey@mips.com>
6306         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6307         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6308         (MULTILIB_DIRNAMES): Add fp64 directory.
6309         (MULTILIB_EXCEPTIONS): Add new exclusions.
6311 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
6313         * gimplify.c (gimple_regimplify_operands): Do not set
6314         SSA_NAME_DEF_STMT.
6315         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6316         (rewrite_close_phi_out_of_ssa): Same.
6317         (rewrite_phi_out_of_ssa): Same.
6318         (rewrite_degenerate_phi): Same.
6319         (handle_scalar_deps_crossing_scop_limits): Same.
6320         * tree-if-conv.c (predicate_scalar_phi): Same.
6321         * tree-parloops.c (create_loads_for_reductions): Same.
6322         (create_final_loads_for_reduction): Same.
6323         (create_loads_and_stores_for_name): Same.
6324         (transform_to_exit_first_loop): Same.
6325         (create_parallel_loop): Same.
6326         * tree-ssa-loop-im.c
6327         (move_computations_dom_walker::before_dom_children): Same.
6328         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6329         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6330         * tree-ssa-propagate.c (substitute_and_fold): Same.
6331         * tree-vect-loop.c (vect_finalize_reduction): Same.
6332         * tree-vect-stmts.c (vectorizable_call): Same.
6334 2013-11-07  Mike Stump  <mikestump@comcast.net>
6336         * config/pdp11/pdp11.c: Include dbxout.h.
6337         * config/picochip/picochip.c: Likewise.
6339 2013-11-07  Cong Hou  <congh@google.com>
6341         PR tree-optimization/56764
6342         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6343         Combine alias checks if it is possible to amortize the runtime
6344         overhead.  Return the number of alias checks after merging.
6345         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6346         Use the function vect_create_cond_for_alias_checks () to check
6347         the number of alias checks.
6349 2013-11-07  Jeff Law  <law@redhat.com>
6351         * varpool.c (ctor_for_folding): Fix typo in comment.
6353 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
6355         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6356         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
6358 2013-11-07  Jeff Law  <law@redhat.com>
6360         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6362         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6363         No longer check if we have __builtin_trap, assume it's available.
6365 2013-11-07  Diego Novillo  <dnovillo@google.com>
6367         * attribs.c (lookup_scoped_attribute_spec): Make static.
6368         (get_attribute_namespace): Likewise.
6369         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6370         (validate_arglist): Move earlier in the file. Make static.
6371         (expand_stack_restore): Move from stmt.c
6372         (expand_stack_save): Move from stmt.c
6373         (rewrite_call_expr_array): Move earlier in the file.
6374         (rewrite_call_expr_valist): Likewise.
6375         * cfgexpand.c: Include hard-reg-set.h before tree.h
6376         Include recog.h.
6377         Include output.h.
6378         (expand_asm_loc): Move from stmt.c.
6379         (n_occurrences): Move from stmt.c.
6380         (check_operand_nalternatives): Move from stmt.c.
6381         (tree_conflicts_with_clobbers_p): Move from stmt.c.
6382         (expand_asm_operands): Move from stmt.c
6383         (expand_asm_stmt): Move from stmt.c
6384         (expand_computed_goto): Move from stmt.c
6385         (expand_goto): Move from stmt.c
6386         (expand_null_return_1): Move from stmt.c
6387         (expand_null_return): Move from stmt.c
6388         (expand_value_return): Move from stmt.c
6389         (expand_return): Move from stmt.c
6390         (expand_main_function): Move from function.c
6391         (stack_protect_prologue): Move from function.c
6392         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6393         (build_function_decl_skip_args): Move from tree.c.
6394         * explow.c (tree_expr_size): Move from tree.c.
6395         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6396         (fields_length): Move from tree.c.
6397         * fold-const.c (size_low_cst): Move from tree.c.
6398         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6399         (tree_expr_nonzero_p): Make static. Move earlier in the file.
6400         (fold_build3_initializer_loc): Remove.
6401         (tree_invalid_nonnegative_warnv_p): Make static.
6402         * function.c (expand_main_function): Move to cfgexpand.c.
6403         (stack_protect_prologue): Move to cfgexpand.c.
6404         (set_insn_locations): Move earlier in the file.
6405         * gimple-fold.c: Include langhooks.h.
6406         (truth_type_for): Move from tree.c.
6407         * print-tree.c (print_vec_tree): Remove.
6408         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6409         (expand_goto): Move to cfgexpand.c.
6410         (n_occurrences): Move to cfgexpand.c.
6411         (expand_asm_loc): Move to cfgexpand.c
6412         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6413         (expand_asm_operands): Move to cfgexpand.c.
6414         (expand_asm_stmt): Move to cfgexpand.c.
6415         (check_operand_nalternatives): Move to cfgexpand.c
6416         (expand_null_return): Move to cfgexpand.c.
6417         (expand_value_return): Move to cfgexpand.c.
6418         (expand_null_return_1): Move to cfgexpand.c.
6419         (expand_return): Move to cfgexpand.c.
6420         (expand_stack_save): Move to builtins.c.
6421         (expand_stack_restore): Move to builtins.c
6422         * symtab.c: Include output.h.
6423         (decl_assembler_name_hash): Move from tree.c.
6424         (decl_assembler_name_equal): Move from tree.c.
6425         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6426         * tree-eh.c (in_array_bounds_p): Move from tree.c.
6427         (range_in_array_bounds_p): Move from tree.c.
6428         * tree-object-size.c (fini_object_sizes): Make static.
6429         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6430         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6431         * tree.c (decl_assembler_name_equal): Move to symtab.c.
6432         (tree_expr_size): Move to explow.c.
6433         (decl_assembler_name_hash): Move to symtab.c.
6434         (real_twop): Remove.
6435         (tree_expr_size): Move to explow.c.
6436         (stabilize_reference_1): Move earlier in the file. Make static.
6437         (omp_remove_redundant_declare_simd_attrs): Remove.
6438         (simple_cst_list_equal): Move earlier in the file. Make static.
6439         (size_low_cst): Move to fold-const.c.
6440         (build_type_no_quals): Remove.
6441         (build_function_type_skip_args): Move to cgraphclones.c.
6442         (build_function_decl_skip_args): Move to cgraphclones.c.
6443         (in_array_bounds_p): Move to tree-eh.c.
6444         (range_in_array_bounds_p): Move to tree-eh.c.
6445         (truth_type_for): Move to gimple-fold.c.
6446         (list_equal_p): Remove.
6447         * tree.h (decl_assembler_name_equal): Remove.
6448         (decl_assembler_name_hash): Remove.
6449         (truth_type_for): Remove.
6450         (build_type_no_quals): Remove.
6451         (build_function_decl_skip_args): Remove.
6452         (in_array_bounds_p): Remove.
6453         (range_in_array_bounds_p): Remove.
6454         (size_low_cst): Remove.
6455         (omp_remove_redundant_declare_simd_attrs): Remove.
6456         (tree_expr_size): Remove.
6457         (fields_length): Remove.
6458         (stabilize_reference_1): Remove.
6459         (expand_goto): Remove.
6460         (expand_stack_save): Remove.
6461         (expand_stack_restore): Remove.
6462         (expand_return): Remove.
6463         (fold_build3_initializer_loc): Remove.
6464         (tree_expr_nonzero_p): Remove.
6465         (tree_invalid_nonnegative_warnv_p): Remove.
6466         (tree_expr_nonzero_warnv_p): Remove.
6467         (fold_builtin_snprintf_chk): Remove.
6468         (validate_arglist): Remove.
6469         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6470         (simple_cst_list_equal): Remove.
6471         (real_twop): Remove.
6472         (expand_main_function): Remove.
6473         (stack_protect_prologue): Remove.
6474         (print_vec_tree): Remove.
6475         (lookup_scoped_attribute_spec): Remove.
6476         (get_attribute_namespace): Remove.
6477         (expand_computed_goto): Remove.
6478         (expand_asm_stmt): Remove.
6479         (list_equal_p): Remove.
6480         (ssa_name_nonnegative_p): Remove.
6481         (fini_object_sizes): Remove.
6482         (addr_expr_of_non_mem_decl_p): Remove.
6483         (is_tm_safe_or_pure): Move to trans-mem.c.
6484         (more_const_call_expr_args_p): Remove.
6485         (save_vtable_map_decl): Remove.
6487 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
6489         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6490         linker plugins, too.
6492         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6493         link to libgomp and its dependencies.
6494         * config/ia64/hpux.h (LIB_SPEC): Likewise.
6495         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6496         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6497         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6499 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
6501         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6502         (determine_value_range): Add loop argument.  Use get_range_info to
6503         improve range.
6504         (bound_difference): Adjust caller.
6506 2013-11-07  Richard Biener  <rguenther@suse.de>
6507             Jakub Jelinek  <jakub@redhat.com>
6509         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6510         latches from header PHI arguments from the latch edge.
6512 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
6514         PR c++/58176
6515         * varasm.c (output_constant): Handle NULLPTR_TYPE.
6517 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6519         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6520         misaligned_prologue_used when it has been set.
6522 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
6523             Jakub Jelinek  <jakub@redhat.com>
6525         PR sanitizer/59029
6526         * asan.c (get_mem_refs_of_builtin_call): Allow
6527         integer literals as addresses in instrumented builtins.
6529 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6531         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6532         Explain why plus_constant is not used.
6534 2013-11-07  Richard Biener  <rguenther@suse.de>
6536         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6537         (canonicalize_value): ... this.  Also handle stripping of
6538         TREE_OVERFLOW.
6539         (get_value, set_lattice_value, get_value_for_expr): Adjust.
6540         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6541         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6543 2013-11-07  Richard Biener  <rguenther@suse.de>
6545         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6547 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6549         PR target/59034
6550         * config/i386/i386.md (push peepholer/splitter): Use Pmode
6551         with stack_pointer_rtx.
6553 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6555         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6556         using operand_equal_p.
6558 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6560         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6561         * tree-affine.c (get_inner_reference_aff): Return base.
6562         * tree-affine.h (get_inner_reference_aff): Change prototype.
6564 2013-11-06  Tobias Burnus  <burnus@net-b.de>
6566         * doc/invoke.texi (Wdate-time): Fix typo.
6568 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6570         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6571         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6572         fp_arith_reg_operand instead of arith_reg_operand.
6574 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6576         * config/sh/sh.md (adddi3): Remove empty constraints.
6577         Remove can_create_pseudo_p and arith_reg_operand check.
6578         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6579         Split before reload.
6581 2013-11-06  Jeff Law  <law@redhat.com>
6582             Tom Tromey  <tromey@redhat.com>
6584         * gdbinit.in: Disable strict type checking.
6586 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
6588         * tree-pass.h (make_pass_live_range_shrinkage): New external.
6589         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6590         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6591         (rest_of_handle_live_range_shrinkage): Ditto
6592         (class pass_live_range_shrinkage): Ditto.
6593         (pass_data_live_range_shrinkage): Ditto.
6594         (make_pass_live_range_shrinkage): Ditto.
6595         * sched-int.h (initialize_live_range_shrinkage): New prototype.
6596         (finish_live_range_shrinkage): Ditto.
6597         * sched-deps.c (create_insn_reg_set): Make void return value.
6598         * passes.def: Add pass_live_range_shrinkage.
6599         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6600         * haifa-sched.c (live_range_shrinkage_p): New.
6601         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6602         New functions.
6603         (rank_for_schedule): Add code for pressure relief through live
6604         range shrinkage.
6605         (schedule_insn): Print more debug info.
6606         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6607         through live range shrinkage.
6608         * doc/invoke.texi (-flive-range-shrinkage): New.
6609         * common.opt (flive-range-shrinkage): New.
6611 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
6613         PR target/59021
6614         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6615         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6616         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6617         RTXes that return in AVX256 register.
6619 2013-11-06  Richard Biener  <rguenther@suse.de>
6621         PR tree-optimization/58653
6622         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6623         (prepare_initializers_chain): Adjust.
6625 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
6627         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6628         (gimple_in_transaction): Use bb_in_transaction.
6629         * basic-block.h (bb_in_transaction): Relocate here and rename.
6630         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6632 2013-11-06  Richard Biener  <rguenther@suse.de>
6634         * tree.c (drop_tree_overflow): New function.
6635         * tree.h (drop_tree_overflow): Declare.
6636         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6637         * tree-vrp.c (range_int_cst_singleton_p): Use
6638         is_overflow_infinity instead of testing TREE_OVERFLOW.
6639         (extract_range_from_assert): Likewise.
6640         (zero_nonzero_bits_from_vr): Likewise.
6641         (extract_range_basic): Likewise.
6642         (register_new_assert_for): Use drop_tree_overflow.
6643         (vrp_visit_phi_node): Likewise.
6645 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6647         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6648         checking for leaf functions without dynamic stack allocation.
6649         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6650         (ia64_expand_prologue): Likewise.
6651         * config/mips/mips.c (mips_expand_prologue): Likewise.
6652         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6653         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6654         (sparc_flat_expand_prologue): Likewise.
6656 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
6658         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
6659         (__ST3_LANE_FUNC): Likewise.
6660         (__ST4_LANE_FUNC): Likewise.
6662 2013-11-06  Nick Clifton  <nickc@redhat.com>
6664         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
6665         name returned by msp430_mcu_name.
6666         (LIB_SPEC): If a -T option has not been specified then set a
6667         default, mcu-specific, linker script.
6668         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6669         * config/msp430/msp430.c (msp430x_names): Likewise.
6670         Alpha sort the names for ease of comparison.
6671         (msp430_mcu_name): New function:  Returns a string suitable for
6672         use as a C preprocessor symbol based upon the name of the MCU
6673         being targeted.
6674         (msp430_option_override): Accept msp430x and msp430xv2 as generic
6675         mcu names.
6676         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6678         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6679         unless it is the last part of a spec substring.
6680         * doc/invoke.texi (Spec Files): Document space insertion
6681         behaviour of %*.
6683 2013-11-06  Christian Bruel  <christian.bruel@st.com>
6685         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6686         Factorize probabilities, Use adjust_address instead of
6687         adjust_automodify_address when possible. Enable for optimize.
6688         (sh_expand_strlen): New function.
6689         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6690         * config/sh/sh.md (strlensi): New pattern.
6691         (UNSPEC_BUILTIN_STRLEN): Define.
6693 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
6695         PR middle-end/58970
6696         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6697         (expand_assignment): If *bitpos is negative, set *offset
6698         and adjust *bitpos, so that it is not negative.
6700 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
6702         * config/i386/bdver3.md : Added two additional decoder units
6703         to support issue rate of 4 and remodeled vector unit.
6704         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6705         architectures is set to 4.
6706         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6707         lookahead is set to 4 for BD architectures.
6709 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6711         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6712         Remove restriction against use of VSX instructions when generating
6713         code for little endian mode.
6715 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6717         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6718         for both big and little endian.
6719         (mulv8hi3): Swap input operands for merge high and merge low
6720         instructions for little endian.
6722 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6724         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6725         define_insn to define_expand that uses even patterns for big
6726         endian and odd patterns for little endian.
6727         (vec_widen_smult_even_v16qi): Likewise.
6728         (vec_widen_umult_even_v8hi): Likewise.
6729         (vec_widen_smult_even_v8hi): Likewise.
6730         (vec_widen_umult_odd_v16qi): Likewise.
6731         (vec_widen_smult_odd_v16qi): Likewise.
6732         (vec_widen_umult_odd_v8hi): Likewise.
6733         (vec_widen_smult_odd_v8hi): Likewise.
6734         (altivec_vmuleub): New define_insn.
6735         (altivec_vmuloub): Likewise.
6736         (altivec_vmulesb): Likewise.
6737         (altivec_vmulosb): Likewise.
6738         (altivec_vmuleuh): Likewise.
6739         (altivec_vmulouh): Likewise.
6740         (altivec_vmulesh): Likewise.
6741         (altivec_vmulosh): Likewise.
6743 2013-11-05  Mike Stump  <mikestump@comcast.net>
6745         * Makefile.in (mostlyclean): Remove c-family objects.
6747 2013-11-05  Ian Lance Taylor  <iant@google.com>
6749         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6750         If possible, add .cfi directives to record change to bx.
6751         * config/i386/i386.c (ix86_emit_cfi): New function.
6752         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
6754 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
6756         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
6757         immediately after a label for a tablejump pattern.
6759         * config/arm/arm.c (is_jump_table): Remove.
6760         (create_fix_barrier): Use tablejump_p instead.
6761         (arm_reorg): Likewise.
6762         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
6763         (thumb2_output_casesi): Likewise.
6764         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
6765         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
6766         casesi_shift_media, casesi_load_media): Likewise.
6767         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
6768         * config/microblaze/microblaze.md: Likewise.
6770 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6772         * doc/invoke.texi (-Wdate-time): Document.
6774 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
6776         * double-int.c (lshift_double, rshift_double): Remove
6777         SHIFT_COUNT_TRUNCATED handling.
6779 2013-11-05  Jeff Law  <law@redhat.com>
6781         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
6782         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
6783         * gimple-ssa-isolate-paths.c: New file.
6784         * gimple.c (check_loadstore): New function.
6785         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
6786         Verify OP is in the argument list and the argument corresponding
6787         to OP is a pointer type.  Use operand_equal_p rather than
6788         pointer equality when testing if OP is on the nonnull list.
6789         Use check_loadstore rather than count_ptr_derefs.  Handle
6790         GIMPLE_RETURN statements.
6791         * tree-vrp.c (infer_nonnull_range): Remove.
6792         * gimple.h (infer_nonnull_range): Declare.
6793         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
6794         * passes.def: Add pass_isolate_erroneous_paths.
6795         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
6796         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
6797         * tree-ssa.c (struct count_ptr_d): Remove.
6798         (count_ptr_derefs, count_uses_and_derefs): Remove.
6799         * tree-ssa.h (count_uses_and_derefs): Remove.
6801 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6803         PR rtl-optimization/58997
6804         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
6805         get_iv_value to be in iv->mode rather than iv->extend_mode.
6806         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
6807         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
6808         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
6809         mode.
6811 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6813         * gimple.h: Move some prototypes to gimple-expr.h and add to include
6814         list.
6815         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
6816         Move to gimple-expr.h.
6817         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
6818         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
6819         is_gimple_id, virtual_operand_p, is_gimple_addressable,
6820         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
6821         Relocate here.
6822         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
6823         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
6824         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
6825         is_gimple_address, is_gimple_invariant_address,
6826         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6827         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
6828         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
6829         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
6830         gimple_decl_printable_name, useless_type_conversion_p,
6831         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
6832         gimple-expr.[ch].
6833         * gimple-expr.c: New File.
6834         (useless_type_conversion_p, gimple_set_body, gimple_body,
6835         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
6836         gimple_can_coalesce_p, extract_ops_from_tree_1,
6837         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
6838         is_gimple_address, is_gimple_invariant_address,
6839         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6840         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
6841         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
6842         is_gimple_mem_ref_addr): Relocate here.
6843         * Makefile.in (OBJS): Add gimple-expr.o.
6845 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
6847         * gengtype-parse.c (struct_field_seq): Support empty structs.
6849 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6851         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
6853 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6855         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
6856         for !TARGET_80387.
6857         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
6858         _SOFT_FLOAT here.
6859         (LONG_DOUBLE_TYPE_SIZE): New define.
6860         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
6862 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
6864         PR c++/58724
6865         * doc/extend.texi [visibility ("visibility_type")]: Add example
6866         about visibility attribute on namespace declaration.
6868 2013-11-05  Richard Biener  <rguenther@suse.de>
6870         PR ipa/58492
6871         * passes.def (all_passes): Start with pass_fixup_cfg again.
6873 2013-11-05  Richard Biener  <rguenther@suse.de>
6875         PR tree-optimization/58955
6876         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
6877         edge direction.
6879 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6881         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
6882         little endian.
6883         (vec_pack_ufix_trunc_v2df): Likewise.
6885 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
6887         PR middle-end/58981
6888         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
6889         pattern, instead of word_mode.
6891         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
6892         Pmode for size.
6893         (set_storage_via_setmem): Likewise.
6895 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6897         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
6898         gimple.h and the rest of the condition in eliminate_build.
6899         (eliminate_build): Call new routine.
6900         * gimple.h (phi_ssa_name_p): Delete.
6902 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
6904         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
6905         case of no prefix and reserving zero slots, because when that's the
6906         case we'll never get here.
6907         * vec.h (va_heap::reserve): Don't try and handle
6908         vec_prefix::calculate_allocation returning zero because that should
6909         never happen.
6911 2013-11-05  Richard Biener  <rguenther@suse.de>
6913         PR middle-end/58941
6914         * tree-dfa.c (get_ref_base_and_extent): Merge common code
6915         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
6916         process trailing array detection before diving into the
6917         view-converted object (and possibly apply some extra offset).
6919 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
6921         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
6922         New function.
6923         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
6925 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6927         PR tree-optimization/58958
6928         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
6929         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6931 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6933         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
6934         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
6936 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6938         PR tree-optimization/58984
6939         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
6940         set *SIZE_P if non-NULL on success.
6941         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
6942         callers.
6943         (ipcp_transform_function): Likewise.  Punt if size of access
6944         is different from TYPE_SIZE on v->value's type.
6946 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6948         * doc/invoke.texi (-fopenmp-simd): Document new option.
6949         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
6950         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
6951         * tree.c (attribute_value_equal): Ditto.
6953 2013-11-04  Wei Mi  <wmi@google.com>
6955         * sched-rgn.c (add_branch_dependences): Keep insns in
6956         a SCHED_GROUP at the end of BB to remain their location.
6958 2013-11-04  Wei Mi  <wmi@google.com>
6960         * config/i386/i386.c (memory_address_length): Extract a part
6961         of code to rip_relative_addr_p.
6962         (rip_relative_addr_p): New Function.
6963         (ix86_macro_fusion_p): Ditto.
6964         (ix86_macro_fusion_pair_p): Ditto.
6965         * config/i386/i386.h: Add new tune features about macro-fusion.
6966         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6967         * doc/tm.texi: Generated.
6968         * doc/tm.texi.in: Ditto.
6969         * haifa-sched.c (try_group_insn): New Function.
6970         (group_insns_for_macro_fusion): Ditto.
6971         (sched_init): Call group_insns_for_macro_fusion.
6972         * target.def: Add two hooks: macro_fusion_p and
6973         macro_fusion_pair_p.
6975 2013-11-04  Kostya Serebryany  <kcc@google.com>
6977         Update to match the changed asan API.
6978         * asan.c (asan_function_start): New function.
6979         (asan_emit_stack_protection): Update the string stored in the
6980         stack red zone to match new API.  Store the PC of the current
6981         function in the red zone.
6982         (asan_global_struct): Update the __asan_global definition to match
6983         the new API.
6984         (asan_add_global): Ditto.
6985         * asan.h (asan_function_start): New prototype.
6986         * final.c (final_start_function): Call asan_function_start.
6987         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
6988         to __asan_init_v3.
6990 2013-11-04  Wei Mi  <wmi@google.com>
6992         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
6993         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
6994         * config/i386/i386.c (ix86_option_override_internal): Ditto.
6995         (ix86_issue_rate): Ditto.
6996         (ix86_adjust_cost): Ditto.
6997         (ia32_multipass_dfa_lookahead): Ditto.
6998         (ix86_sched_init_global): Ditto.
6999         (get_builtin_code_for_version): Ditto.
7000         * config/i386/i386.h (enum target_cpu_default): Ditto.
7001         (enum processor_type): Ditto.
7002         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7004 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7006         PR rtl-optimization/58967
7007         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7008         !lra_in_progress for mode sizes bigger word.
7010 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7012         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7013         arguments to merge instruction for little endian.
7014         (vec_widen_umult_lo_v16qi): Likewise.
7015         (vec_widen_smult_hi_v16qi): Likewise.
7016         (vec_widen_smult_lo_v16qi): Likewise.
7017         (vec_widen_umult_hi_v8hi): Likewise.
7018         (vec_widen_umult_lo_v8hi): Likewise.
7019         (vec_widen_smult_hi_v8hi): Likewise.
7020         (vec_widen_smult_lo_v8hi): Likewise.
7022 2013-11-04  Ian Lance Taylor  <iant@google.com>
7024         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7025         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7026         builtins that take pointers.
7027         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7028         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7029         (run_gcc): Pass -fnon-call-exceptions.
7031 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7033         * optabs.c (expand_vec_perm): Revert one incorrect line from
7034         2013-10-31 change.
7036         PR tree-optimization/58978
7037         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7038         use_stmt by single_imm_use directly.  Only call single_imm_use
7039         on SSA_NAMEs.
7041 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7043         PR rtl-optimization/58968
7044         * lra-spills.c (return_regno_p): New function.
7045         (lra_final_code_change): Use it.
7047 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
7049         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7050         * target.def (float_exceptions_rounding_supported_p): New hook.
7051         * targhooks.c (default_float_exceptions_rounding_supported_p): New
7052         function.
7053         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7054         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7055         New @hook.
7056         * doc/tm.texi: Regenerate.
7057         * config.gcc (powerpc*-*-linux*): Set extra_objs.
7058         * config/rs6000/rs6000-linux.c: New file.
7059         * config/rs6000/rs6000-protos.h
7060         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7061         * config/rs6000/linux.h
7062         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7063         * config/rs6000/linux64.h
7064         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7065         * config/rs6000/t-linux (rs6000-linux.o): New rule.
7066         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7068 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7070         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7071         Replace the define_insn_and_split with a define_insn and two
7072         define_splits, with the split after reload re-permuting the source
7073         register to its original value.
7074         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7075         (*vsx_le_perm_store_v8hi): Likewise.
7076         (*vsx_le_perm_store_v16qi): Likewise.
7078 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7080         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
7081         little endian.
7083 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7085         PR tree-optimization/58946
7086         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7087         bbs with bbinfo[idx].op != NULL before all blocks with
7088         bbinfo[idx].op == NULL.
7090 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
7092         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7093         (avr_dump_double_int_hex): Likewise.
7094         (avr_log_vadump): Remove %D and %X handling.
7095         * config/avr/avr.c (avr_double_int_push_digit): Delete.
7096         (avr_map_op_t): Change map from double_int to unsigned int.
7097         (avr_map_op): Update accordingly.
7098         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7099         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7100         unsigned ints rather than double_ints.
7102 2013-11-03  Marek Polacek  <polacek@redhat.com>
7104         Implement -fsanitize=vla-bound.
7105         * opts.c (common_handle_option): Handle vla-bound.
7106         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7107         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7108         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7110 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7112         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7113         little endian.
7115 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
7117         * config/i386/constraints.md (Ts, Tv): New address constrains.
7118         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7119         constraint for address_no_seg_operand.
7120         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7121         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7122         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7123         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7124         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7125         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7126         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7127         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7128         constraint for vsib_address_operand.
7130 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
7132         * gcse.c (pre_delete): Remove references to regmove from comments.
7133         * recog.c: (validate_replace_rtx_1): Likewise.
7134         * config/rl78/rl78.c: Likewise.
7135         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7136         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7137         * common/config/mmix/mmix-common.c: Likewise.
7139 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
7141         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7142         * gimplify.c (gimplify_compound_lval): Likewise.
7143         * graphite-clast-to-gimple.c (gloog): Likewise.
7144         * graphite-dependences.c (loop_is_parallel_p): Likewise.
7145         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7146         (limit_scop); Likewise.
7147         (build_scops): Likewise.
7148         (dot_scop): Likewise.
7149         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7150         (build_scop_drs): Likewise.
7151         (insert_stmts): Likewise.
7152         (insert_out_of_ssa_copy): Likewise.
7153         (remove_phi): Likewise.
7154         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7155         * hw-doloop.c (discover_loop): Likewise.
7156         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7157         * tree-dfa.c (dump_enumerated_decls): Likewise.
7158         * tree-if-conv.c (if_convertable_loop_p): Likewise.
7159         * tree-inline.c (tree_function_versioning): Likewise.
7160         * tree-loop-distribution.c (build_rdg): Likewise.
7161         (rdg_flag_vertex_and_dependent): Likewise.
7162         (distribute_loop): Likewise.
7163         * tree-parloops.c (loop_parallel_p): Likewise.
7164         (eliminate_local_variables): Likewise.
7165         (separate_decls_in_region): Likewise.
7166         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7167         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7168         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7169         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7170         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7171         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7172         (vectorizable_condition): Likewise.
7174 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
7176         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7177         * configure: Regenerate.
7178         * config/i386/i386.md (*movdi_internal): Change
7179         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7180         (*movdf_internal): Ditto.
7181         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7182         * config/i386/sse.md (vec_concatv2di): Output interunit movq
7183         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7185 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
7187         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7188         after comment.
7190 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7192         Automated part of renaming of symtab_node_base to symtab_node.
7194         Patch autogenerated by rename_symtab.py from
7195         https://github.com/davidmalcolm/gcc-refactoring-scripts
7196         revision 58bb219cc090b2f4516a9297d868c245495ee622
7197         with ChangeLog entry fixed up by hand.
7199         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7200         symtab_node.
7201         (cgraph_node_for_asm): Likewise.
7202         * cgraph.h (symtab_node_base): Likewise.
7203         (cgraph_node): Likewise.
7204         (varpool_node): Likewise.
7205         (is_a_helper <cgraph_node>::test): Likewise.
7206         (is_a_helper <varpool_node>::test): Likewise.
7207         (symtab_nodes): Likewise.
7208         (symtab_register_node): Likewise.
7209         (symtab_unregister_node): Likewise.
7210         (symtab_remove_node): Likewise.
7211         (symtab_get_node): Likewise.
7212         (symtab_node_for_asm): Likewise.
7213         (symtab_node_asm_name): Likewise.
7214         (symtab_node_name): Likewise.
7215         (symtab_insert_node_to_hashtable): Likewise.
7216         (symtab_add_to_same_comdat_group): Likewise.
7217         (symtab_dissolve_same_comdat_group_list): Likewise.
7218         (dump_symtab_node): Likewise.
7219         (debug_symtab_node): Likewise.
7220         (dump_symtab_base): Likewise.
7221         (verify_symtab_node): Likewise.
7222         (verify_symtab_base): Likewise.
7223         (symtab_used_from_object_file_p): Likewise.
7224         (symtab_alias_ultimate_target): Likewise.
7225         (symtab_resolve_alias): Likewise.
7226         (fixup_same_cpp_alias_visibility): Likewise.
7227         (symtab_for_node_and_aliases): Likewise.
7228         (symtab_nonoverwritable_alias): Likewise.
7229         (availability symtab_node_availability): Likewise.
7230         (symtab_semantically_equivalent_p): Likewise.
7231         (fixup_same_cpp_alias_visibility): Likewise.
7232         (symtab_prevail_in_asm_name_hash): Likewise.
7233         (cgraph): Likewise.
7234         (varpool): Likewise.
7235         (varpool_first_variable): Likewise.
7236         (varpool_next_variable): Likewise.
7237         (varpool_first_static_initializer): Likewise.
7238         (varpool_next_static_initializer): Likewise.
7239         (varpool_first_defined_variable): Likewise.
7240         (varpool_next_defined_variable): Likewise.
7241         (cgraph_first_defined_function): Likewise.
7242         (cgraph_next_defined_function): Likewise.
7243         (cgraph_first_function): Likewise.
7244         (cgraph_next_function): Likewise.
7245         (cgraph_first_function_with_gimple_body): Likewise.
7246         (cgraph_next_function_with_gimple_body): Likewise.
7247         (symtab_alias_target): Likewise.
7248         (symtab_real_symbol_p): Likewise.
7249         (symtab_can_be_discarded): Likewise.
7250         * cgraphbuild.c (mark_address): Likewise.
7251         (mark_load): Likewise.
7252         (mark_store): Likewise.
7253         * cgraphunit.c (decide_is_symbol_needed): Likewise.
7254         (first): Likewise.
7255         (enqueue_node): Likewise.
7256         (referred_to_p): Likewise.
7257         (cgraph_process_same_body_aliases): Likewise.
7258         (analyze_functions): Likewise.
7259         (handle_alias_pairs): Likewise.
7260         (output_weakrefs): Likewise.
7261         (compile): Likewise.
7262         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7263         * ipa-inline-analysis.c (inline_write_summary): Likewise.
7264         * ipa-prop.c (remove_described_reference): Likewise.
7265         (try_decrement_rdesc_refcount): Likewise.
7266         (ipa_edge_duplication_hook): Likewise.
7267         * ipa-ref.c (ipa_record_reference): Likewise.
7268         (ipa_maybe_record_reference): Likewise.
7269         (ipa_clone_ref): Likewise.
7270         (ipa_clone_references): Likewise.
7271         (ipa_clone_referring): Likewise.
7272         (ipa_find_reference): Likewise.
7273         (ipa_remove_stmt_references): Likewise.
7274         (ipa_clear_stmts_in_references): Likewise.
7275         * ipa-ref.h (symtab_node_base): Likewise.
7276         (ipa_ref): Likewise.
7277         (ipa_record_reference): Likewise.
7278         (ipa_maybe_record_reference): Likewise.
7279         (ipa_clone_references): Likewise.
7280         (ipa_clone_referring): Likewise.
7281         (ipa_clone_ref): Likewise.
7282         (ipa_find_reference): Likewise.
7283         (ipa_remove_stmt_references): Likewise.
7284         (ipa_clear_stmts_in_references): Likewise.
7285         * ipa-reference.c (ipa_reference_write_optimization_summary):
7286         Likewise.
7287         * ipa.c (enqueue_node): Likewise.
7288         (process_references): Likewise.
7289         (walk_polymorphic_call_targets): Likewise.
7290         (symtab_remove_unreachable_nodes): Likewise.
7291         (address_taken_from_non_vtable_p): Likewise.
7292         (comdat_can_be_unshared_p_1): Likewise.
7293         (comdat_can_be_unshared_p): Likewise.
7294         (can_replace_by_local_alias): Likewise.
7295         (function_and_variable_visibility): Likewise.
7296         * is-a.h: Likewise (within example in comment).
7297         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7298         (lto_symtab_encoder_encode): Likewise.
7299         (lto_symtab_encoder_delete_node): Likewise.
7300         (lto_symtab_encoder_in_partition_p): Likewise.
7301         (lto_set_symtab_encoder_in_partition): Likewise.
7302         (output_refs): Likewise.
7303         (compute_ltrans_boundary): Likewise.
7304         (output_symtab): Likewise.
7305         (input_node): Likewise.
7306         (input_ref): Likewise.
7307         (input_edge): Likewise.
7308         (input_cgraph_1): Likewise.
7309         (input_refs): Likewise.
7310         (output_cgraph_opt_summary): Likewise.
7311         (input_node_opt_summary): Likewise.
7312         (input_cgraph_opt_section): Likewise.
7313         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7314         Likewise.
7315         * lto-streamer-out.c (lto_output): Likewise.
7316         (output_symbol_p): Likewise.
7317         (produce_symtab): Likewise.
7318         * lto-streamer.h (lto_encoder_entry): Likewise.
7319         (lto_free_function_in_decl_state_for_node): Likewise.
7320         (lto_symtab_encoder_encode): Likewise.
7321         (lto_symtab_encoder_delete_node): Likewise.
7322         (lto_symtab_encoder_in_partition_p): Likewise.
7323         (lto_set_symtab_encoder_in_partition): Likewise.
7324         (lto_symtab_encoder_lookup): Likewise.
7325         (lsei_node): Likewise.
7326         (lto_symtab_encoder_deref): Likewise.
7327         * symtab.c (symtab_hash): Likewise.
7328         (assembler_name_hash): Likewise.
7329         (symtab_nodes): Likewise.
7330         (hash_node): Likewise.
7331         (eq_node): Likewise.
7332         (hash_node_by_assembler_name): Likewise.
7333         (eq_assembler_name): Likewise.
7334         (insert_to_assembler_name_hash): Likewise.
7335         (unlink_from_assembler_name_hash): Likewise.
7336         (symtab_prevail_in_asm_name_hash): Likewise.
7337         (symtab_register_node): Likewise.
7338         (symtab_insert_node_to_hashtable): Likewise.
7339         (symtab_unregister_node): Likewise.
7340         (symtab_get_node): Likewise.
7341         (symtab_remove_node): Likewise.
7342         (symtab_initialize_asm_name_hash): Likewise.
7343         (symtab_node_for_asm): Likewise.
7344         (symtab_add_to_same_comdat_group): Likewise.
7345         (symtab_dissolve_same_comdat_group_list): Likewise.
7346         (symtab_node_asm_name): Likewise.
7347         (symtab_node_name): Likewise.
7348         (dump_symtab_base): Likewise.
7349         (dump_symtab_node): Likewise.
7350         (dump_symtab): Likewise.
7351         (debug_symtab_node): Likewise.
7352         (verify_symtab_base): Likewise.
7353         (verify_symtab_node): Likewise.
7354         (verify_symtab): Likewise.
7355         (symtab_used_from_object_file_p): Likewise.
7356         (symtab_node_availability): Likewise.
7357         (symtab_alias_ultimate_target): Likewise.
7358         (fixup_same_cpp_alias_visibility): Likewise.
7359         (symtab_resolve_alias): Likewise.
7360         (symtab_for_node_and_aliases): Likewise.
7361         (symtab_for_node_and_aliases): Likewise.
7362         (symtab_nonoverwritable_alias_1): Likewise.
7363         (symtab_nonoverwritable_alias): Likewise.
7364         (symtab_semantically_equivalent_p): Likewise.
7365         * value-prof.c (init_node_map): Likewise.
7366         * varasm.c (find_decl): Likewise.
7367         * varpool.c (varpool_node_for_asm): Likewise.
7368         (varpool_remove_unreferenced_decls): Likewise.
7370 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7372         Manual part of renaming of symtab_node_base to symtab_node.
7374         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7375         clashes with the preferred name for the base class.
7376         (const_symtab_node): Remove redundant typedef.
7378 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7380         * optabs.c (expand_vec_perm): Avoid vector mode punning
7381         SUBREGs in SET_DEST.
7382         * expmed.c (store_bit_field_1): Likewise.
7383         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7384         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7385         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7386         * config/i386/i386.c (ix86_expand_vector_move_misalign,
7387         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7388         ix86_expand_sse_unpack, ix86_expand_args_builtin,
7389         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7390         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7391         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7392         expand_vec_perm_vpshufb2_vpermq,
7393         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7394         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7395         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7396         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
7397         than *d itself.
7399 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
7401         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7402         Use gcc_unreachable for unhandled modes.  Do not check results of
7403         expand_simple_binop.  If not expanded to target, move the result.
7405 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
7406             Shiva Chen  <shiva0217@gmail.com>
7408         * config.gcc (nds32*-*-*): Add nds32 target.
7409         * config/nds32/nds32.c: New file.
7410         * config/nds32/nds32.h: New file.
7411         * config/nds32/nds32.md: New file.
7412         * config/nds32/constants.md: New file.
7413         * config/nds32/constraints.md: New file.
7414         * config/nds32/iterators.md: New file.
7415         * config/nds32/nds32-doubleword.md: New file.
7416         * config/nds32/nds32-intrinsic.md: New file.
7417         * config/nds32/nds32_intrinsic.h: New file.
7418         * config/nds32/nds32-modes.def: New file.
7419         * config/nds32/nds32-multiple.md: New file.
7420         * config/nds32/nds32.opt: New file.
7421         * config/nds32/nds32-opts.h: New file.
7422         * config/nds32/nds32-protos.h: New file.
7423         * config/nds32/nds32-peephole2.md: New file.
7424         * config/nds32/pipelines.md: New file.
7425         * config/nds32/predicates.md: New file.
7426         * config/nds32/t-mlibs: New file.
7427         * common/config/nds32: New directory and files.
7429         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7430         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7431         * doc/install.texi (Cross-Compiler-Specific Options): Document
7432         --with-nds32-lib for nds32 target.
7433         * doc/extend.texi (Function Attributes, Target Builtins): Document
7434         nds32 specific attributes.
7436 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
7438         * lra-constraints (process_alt_operands): Use the result
7439         elimination register for operand when matching constraints.
7441 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7443         * tree-vrp.c (maybe_set_nonzero_bits): New function.
7444         (remove_range_assertions): Call it.
7446         * tree.c (tree_ctz): New function.
7447         * tree.h (tree_ctz): New prototype.
7448         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7449         first argument from tree to const_tree.
7450         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7451         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7452         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7453         static.
7454         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7455         * tree-vect-loop.c (vect_analyze_loop_operations,
7456         vect_transform_loop): Don't force scalar loop for bound just because
7457         number of iterations is unknown, only do it if it is not known to be
7458         a multiple of vectorization_factor.
7459         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7461         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7462         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
7463         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7464         (set_nonzero_bits, get_nonzero_bits): New prototypes.
7465         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7466         a default def isn't partially constant.
7467         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7468         is known to be partially zero.
7469         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7470         to see if a default def isn't partially constant.
7471         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7472         creation of a range, if VR_RANGE, try to improve nonzero_bits from
7473         the range.
7474         (set_nonzero_bits, get_nonzero_bits): New functions.
7476         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7477         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7478         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7479         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7480         uses but in the condition and ASSERT_EXPR and the other successor of
7481         the predecessor bb is __builtin_unreachable (), set_range_info of the
7482         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7484 2013-10-31  Martin Jambor  <mjambor@suse.cz>
7486         PR rtl-optimization/58934
7487         Revert:
7488         2013-10-30  Martin Jambor  <mjambor@suse.cz>
7489         PR rtl-optimization/10474
7490         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7491         nor df analysis.
7492         (interesting_dest_for_shprep): New function.
7493         (split_live_ranges_for_shrink_wrap): Likewise.
7494         (ira): Calculate dominance info and df analysis. Call
7495         split_live_ranges_for_shrink_wrap.
7497 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
7498             Yury Gribov  <y.gribov@samsung.com>
7500         PR sanitizer/58543
7501         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7502         shadow pointer to avoid clobbering the main one.
7504 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7506         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7508 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7510         PR bootstrap/58933
7511         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
7512         it for calling update_costs_from_allocno.
7513         (assign_hard_reg): Call restore_costs_from_copies only for
7514         !retry_p.  Pass new argument to update_costs_from_copies.
7515         (color_pass): Pass new argument to update_costs_from_copies.
7516         (ira_mark_allocation_change): Ditto.
7518 2013-10-30  Sharad Singhai  <singhai@google.com>
7520         PR middle-end/58134
7521         * opts.c (common_handle_option): Remove deprecated option
7522         -ftree-vectorizer-verbose.
7523         * doc/invoke.texi (Debugging Options): Ditto.
7524         * opts-global.c (handle_common_deferred_options): Ditto.
7525         (dump_remap_tree_vectorizer_verbose): Delete.
7526         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7528 2013-10-30  DJ Delorie  <dj@redhat.com>
7530         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7531         that take no arguments.
7533 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7535         PR other/58545
7536         * reload1.c (update_eliminables_and_spill): New function, broken
7537         out of reload.
7538         (reload): Use it.  Check for frame size change after frame size
7539         alignment, and call update_eliminables_and_spill first if continue-ing.
7541 2013-10-30  Cong Hou  <congh@google.com>
7543         PR target/58762
7544         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7545         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7546         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7548 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
7550         PR rtl-optimization/58369
7551         * reload1.c (compute_reload_subreg_offset): New function.
7552         (choose_reload_regs): Use it to pass endian-correct
7553         offset to subreg_regno_offset.
7555 2013-10-30  Tobias Burnus  <burnus@net-b.de>
7557         PR other/33426
7558         * tree-cfg.c (replace_loop_annotate): Replace warning by
7559         warning_at.
7561 2013-10-30  Jason Merrill  <jason@redhat.com>
7563         * configure.ac (loose_warn): Add -Wno-format if
7564         --disable-build-format-warnings.
7566 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
7568         * cgraphunit.c (analyze_functions): Split symtab_node declarations
7569         onto multiple lines to make things easier for rename_symtab.py.
7571         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7572         (symtab_semantically_equivalent_p): Likewise.
7574 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7576         PR target/58784
7577         * lra.c (check_rtl): Remove address check before LRA work.
7579 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
7581         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7582         POINTER_PLUS_EXPR in the defining statement.
7584 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7586         * regmove.c: Remove.
7587         * tree-pass.h (make_pass_regmove): Remove.
7588         * timevar.def (TV_REGMOVE): Remove.
7589         * passes.def (pass_regmove): Remove.
7590         * opts.c (default_options_table): Remove entry for regmove.
7591         * doc/passes.texi: Remove regmove pass description.
7592         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7593         options.
7594         (-fdump-rtl-regmove): Ditto.
7595         * common.opt (foptimize-register-move, fregmove): Ignore.
7596         * Makefile.in (OBJS): Remove regmove.o.
7597         * regmove.c: Remove.
7598         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7599         and type.
7600         (struct ira_allocno) New member allocno_prefs.
7601         (ALLOCNO_PREFS): New macro.
7602         (ira_prefs, ira_prefs_num): New external vars.
7603         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7604         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7605         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7606         Ditto.
7607         (ira_add_allocno_copy_to_list): Remove prototype.
7608         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7609         (ira_pref_iterator): New type.
7610         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7611         (FOR_EACH_PREF): New macro.
7612         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7613         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
7614         code.
7615         (ira_setup_alts): New function.
7616         (decrease_live_ranges_number): New function.
7617         (ira): Call the above function.
7618         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7619         (ira_create_allocno): Initialize allocno prefs.
7620         (pref_pool, pref_vec): New static vars.
7621         (initiate_prefs, find_allocno_pref, ira_create_pref): New
7622         functions.
7623         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7624         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7625         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7626         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7627         (ira_add_allocno_copy_to_list): Make static.  Rename to
7628         add_allocno_copy_to_list.
7629         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
7630         swap_allocno_copy_ends_if_necessary.
7631         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7632         ira_remove_allocno_prefs.
7633         (ira_flattening): Ditto.
7634         (ira_build): Call initiate_prefs, print_prefs.
7635         (ira_destroy): Call finish_prefs.
7636         * ira-color.c (struct update_cost_record): New.
7637         (struct allocno_color_data): Add new member update_cost_records.
7638         (update_cost_record_pool): New static var.
7639         (init_update_cost_records, get_update_cost_record): New functions.
7640         (free_update_cost_record_list, finish_update_cost_records): Ditto.
7641         (struct update_cost_queue_elem): Add member from.
7642         (initiate_cost_update): Call init_update_cost_records.
7643         (finish_cost_update): Call finish_update_cost_records.
7644         (queue_update_cost, get_next_update_cost): Add new param from.
7645         (Update_allocno_cost, update_costs_from_allocno): New functions.
7646         (update_costs_from_prefs): Ditto.
7647         (update_copy_costs): Rename to update_costs_from_copies.
7648         (restore_costs_from_copies): New function.
7649         (update_conflict_hard_regno_costs): Don't go back.
7650         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
7651         more debug info.
7652         (pop_allocnos): Add priniting more debug info.
7653         (color_allocnos): Remove prefs for conflicting hard regs.
7654         Call update_costs_from_prefs.
7655         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7656         (get_dup_num): Rename, modify, and move to ira.c
7657         (process_regs_for_copy): Add prefs.
7658         (add_insn_allocno_copies): Put src as first arg of
7659         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
7660         * ira-costs.c (record_reg_classes): Modify and move code into
7661         record_operands_costs.
7662         (find_costs_and_classes): Create prefs for the hard reg of small
7663         reg class.
7664         (process_bb_node_for_hard_reg_moves): Add prefs.
7666 2013-10-30  Richard Biener  <rguenther@suse.de>
7668         PR middle-end/57100
7669         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7670         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7671         as worker for ...
7672         (pre_and_rev_post_order_compute): ... which now wraps it.
7673         * graph.c (draw_cfg_nodes_no_loops): Use
7674         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7675         on cfun.
7677 2013-10-30  Christian Bruel  <christian.bruel@st.com>
7679         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7680         (sh_expand_cmpstr): Handle known align and schedule improvements.
7681         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7682         * config/sh/sh.md (cmpstrnsi): New pattern.
7684 2013-10-30  Martin Jambor  <mjambor@suse.cz>
7686         PR rtl-optimization/10474
7687         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7688         nor df analysis.
7689         (interesting_dest_for_shprep): New function.
7690         (split_live_ranges_for_shrink_wrap): Likewise.
7691         (ira): Calculate dominance info and df analysis. Call
7692         split_live_ranges_for_shrink_wrap.
7694 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7696         PR target/58854
7697         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7699 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7701         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7702         * tree.h (POINTER_BOUNDS_P): New.
7703         (BOUNDED_TYPE_P): New.
7704         (BOUNDED_P): New.
7705         (pointer_bounds_type_node): New.
7706         * tree.c (build_common_tree_nodes): Initialize
7707         pointer_bounds_type_node.
7708         * gimple.h (gimple_call_get_nobnd_arg_index): New.
7709         (gimple_call_num_nobnd_args): New.
7710         (gimple_call_nobnd_arg): New.
7711         (gimple_return_retbnd): New.
7712         (gimple_return_set_retbnd): New
7713         * gimple.c (gimple_build_return): Increase number of ops
7714         for return statement.
7715         (gimple_call_get_nobnd_arg_index): New.
7716         * gimple-pretty-print.c (dump_gimple_return): Print second op.
7718 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7720         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7721         with "chkp ctor" and "bnd_legacy" attributes.
7722         * gimplify.c (gimplify_init_constructor): Avoid infinite
7723         loop during gimplification of bounds initializer.
7725 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7727         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7728         (handle_bnd_legacy): New.
7729         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7730         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7731         attributes.
7733 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7735         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7736         (BT_FN_PTR_CONST_PTR): New.
7737         (BT_FN_CONST_PTR_CONST_PTR): New.
7738         (BT_FN_PTR_CONST_PTR_SIZE): New.
7739         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7740         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7741         (BT_FN_VOID_CONST_PTR_SIZE): New.
7742         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7743         * chkp-builtins.def: New.
7744         * builtins.def: include chkp-builtins.def.
7745         (DEF_CHKP_BUILTIN): New.
7746         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7747         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7748         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7749         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7750         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7751         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7752         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7753         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7754         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
7755         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7756         * common.opt (fcheck-pointer-bounds): New.
7757         * toplev.c (process_options): Check Pointer Bounds Checker is
7758         supported.
7759         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
7761 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7763         * target.def (builtin_chkp_function): New.
7764         (chkp_bound_type): New.
7765         (chkp_bound_mode): New.
7766         (fn_abi_va_list_bounds_size): New.
7767         (load_bounds_for_arg): New.
7768         (store_bounds_for_arg): New.
7769         * targhooks.h (default_load_bounds_for_arg): New.
7770         (default_store_bounds_for_arg): New.
7771         (default_fn_abi_va_list_bounds_size): New.
7772         (default_chkp_bound_type): New.
7773         (default_chkp_bound_mode): New.
7774         (default_builtin_chkp_function): New.
7775         * targhooks.c (default_load_bounds_for_arg): New.
7776         (default_store_bounds_for_arg): New.
7777         (default_fn_abi_va_list_bounds_size): New.
7778         (default_chkp_bound_type): New.
7779         (default_chkp_bound_mode); New.
7780         (default_builtin_chkp_function): New.
7781         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
7782         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7783         (TARGET_STORE_BOUNDS_FOR_ARG): New.
7784         (TARGET_BUILTIN_CHKP_FUNCTION): New.
7785         (TARGET_CHKP_BOUND_TYPE): New.
7786         (TARGET_CHKP_BOUND_MODE): New.
7787         * doc/tm.texi: Regenerated.
7788         * langhooks.h (lang_hooks): Add chkp_supported field.
7789         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
7790         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
7792 2013-10-29  Andrew Pinski <apinski@cavium.com>
7794         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
7795         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
7796         fails, combining the branches anyways.
7797         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
7798         increases the number of combinings.
7799         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
7801 2013-10-29  Mike Stump  <mikestump@comcast.net>
7803         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
7804         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
7805         (make_vector_mode): Increase namebuf to 16.
7806         (emit_insn_modes_h): When processing BImode, don't
7807         also match partial int modes.
7808         (emit_class_narrowest_mode): Likewise.
7810         * config/bfin/bfin-modes.def: Add precision to PDI.
7811         * config/m32c/m32c-modes.def: Add precision to PSI.
7812         * config/msp430/msp430-modes.def: Add precision to PSI.
7813         * config/rs6000/rs6000-modes.def: Add precision to PTI.
7814         * config/sh/sh-modes.def: Add precision to PSI and PDI.
7816 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
7818         PR target/54236
7819         * config/sh/sh.md (*addc): Rename existing variations to ...
7820         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
7821         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
7822         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
7823         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
7825 2013-10-29  Teresa Johnson  <tejohnson@google.com>
7827         PR ipa/58862
7828         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
7829         insanities when updating probabilities.
7831 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7833         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
7834         prettyprinter for cgraph_node to reflect the conversion of the
7835         symtable types to a C++ class hierarchy: it now *is* a
7836         symtab_node_base, rather than having one (named "symbol").
7838 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7840         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
7841         __cilkrts_pop_frame.  If matched, then return true for built-in
7842         function name.
7843         (expand_builtin): Added BUILT_IN_CILK_DETACH and
7844         BUILT_IN_CILK_POP_FRAME case.
7845         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
7846         (lhs_cilk_detect_spawn): Likewise.
7847         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
7848         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
7849         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
7850         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
7851         (LANG_HOOKS_CILKPLUS): Likewise.
7852         * tree.h (CILK_SPAWN_FN): Likewise.
7853         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
7854         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
7855         (OBJS): Added cilk-common.o.
7856         (BUILTINS_DEF): Added cilk-builtins.def.
7857         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
7858         (lhd_cilk_detect_spawn): Likewise.
7859         * langhooks.h (lang_hooks_for_cilkplus): New struct.
7860         (struct lang_hooks): Added new field called "cilkplus."
7861         * cilk-common.c: New file.
7862         * cilk.h: Likewise.
7863         * cilk-builtins.def: Likewise.
7864         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
7865         "__cilk" macro and set it to 200.
7866         * function.h (struct function::cilk_frame_decl): New field.
7867         (struct function::is_cilk_function): Likewise.
7868         (struct function::calls_cilk_spawn): Likewise.
7869         * gimplify.c (gimplify_call_expr): Added a check if the function call
7870         being gimplified is a spawn detach point.  If so, then add pop_frame
7871         and detach function calls.
7872         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
7873         for gimplifying _Cilk_spawn and _Cilk_sync statements.
7874         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
7875         function.  If so, added a _Cilk_sync and gimplified it.
7876         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
7877         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
7878         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
7879         spawner function.
7880         (can_inline_edge_p): Prevent inling of spawnee function.
7881         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
7882         for functions that use Cilk keywords.
7883         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
7884         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
7885         CILK_SYNC_STMT cases.
7886         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
7887         trees.
7888         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
7889         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
7890         * passes.texi (Cilk Keywords): New section that describes the compiler
7891         code changes for handling Cilk Keywords.
7893 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7895         Patch autogenerated by refactor_symtab.py from
7896         https://github.com/davidmalcolm/gcc-refactoring-scripts
7897         revision 58bb219cc090b2f4516a9297d868c245495ee622
7899         * asan.c (asan_finish_file): Update for conversion of symtab types to
7900         a true class hierarchy.
7901         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7902         * cgraph.c (cgraph_get_body): Likewise.
7903         (cgraph_get_create_real_symbol_node): Likewise.
7904         (verify_cgraph_node): Likewise.
7905         (verify_edge_corresponds_to_fndecl): Likewise.
7906         (verify_edge_count_and_frequency): Likewise.
7907         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
7908         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
7909         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
7910         (cgraph_node_cannot_return): Likewise.
7911         (cgraph_set_pure_flag_1): Likewise.
7912         (cgraph_set_const_flag_1): Likewise.
7913         (cgraph_set_nothrow_flag_1): Likewise.
7914         (cgraph_make_node_local_1): Likewise.
7915         (cgraph_for_node_and_aliases): Likewise.
7916         (cgraph_for_node_thunks_and_aliases): Likewise.
7917         (cgraph_node_can_be_local_p): Likewise.
7918         (cgraph_node_cannot_be_local_p_1): Likewise.
7919         (cgraph_function_body_availability): Likewise.
7920         (dump_cgraph_node): Likewise.
7921         (cgraph_rtl_info): Likewise.
7922         (cgraph_mark_address_taken_node): Likewise.
7923         (cgraph_remove_node): Likewise.
7924         (cgraph_release_function_body): Likewise.
7925         (cgraph_update_edges_for_call_stmt_node): Likewise.
7926         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7927         (cgraph_make_edge_direct): Likewise.
7928         (cgraph_resolve_speculation): Likewise.
7929         (cgraph_speculative_call_info): Likewise.
7930         (cgraph_turn_edge_to_speculative): Likewise.
7931         (cgraph_create_edge_1): Likewise.
7932         (cgraph_set_call_stmt): Likewise.
7933         (cgraph_node_for_asm): Likewise.
7934         (cgraph_add_thunk): Likewise.
7935         (cgraph_same_body_alias): Likewise.
7936         (cgraph_create_function_alias): Likewise.
7937         (cgraph_create_node): Likewise.
7938         (cgraph_create_empty_node): Likewise.
7939         (record_function_versions): Likewise.
7940         (used_from_object_file_p): Likewise.
7941         * cgraph.h (symtab_can_be_discarded): Likewise.
7942         (symtab_real_symbol_p): Likewise.
7943         (cgraph_mark_force_output_node): Likewise.
7944         (cgraph_edge_recursive_p): Likewise.
7945         (symtab_alias_target): Likewise.
7946         (varpool_all_refs_explicit_p): Likewise.
7947         (varpool_can_remove_if_no_refs): Likewise.
7948         (cgraph_only_called_directly_or_aliased_p): Likewise.
7949         (cgraph_next_function_with_gimple_body): Likewise.
7950         (cgraph_first_function_with_gimple_body): Likewise.
7951         (cgraph_function_with_gimple_body_p): Likewise.
7952         (cgraph_next_function): Likewise.
7953         (cgraph_first_function): Likewise.
7954         (cgraph_next_defined_function): Likewise.
7955         (cgraph_first_defined_function): Likewise.
7956         (varpool_next_defined_variable): Likewise.
7957         (varpool_first_defined_variable): Likewise.
7958         (varpool_next_static_initializer): Likewise.
7959         (varpool_first_static_initializer): Likewise.
7960         (varpool_next_variable): Likewise.
7961         (varpool_first_variable): Likewise.
7962         (varpool_node_name): Likewise.
7963         (varpool): Likewise.
7964         (cgraph): Likewise.
7965         (is_a_helper <varpool_node>::test): Likewise.
7966         (is_a_helper <cgraph_node>::test): Likewise.
7967         (varpool_variable_node): Likewise.
7968         (cgraph_function_or_thunk_node): Likewise.
7969         (varpool_alias_target): Likewise.
7970         (cgraph_alias_target): Likewise.
7971         (cgraph_node_name): Likewise.
7972         (varpool_node_asm_name): Likewise.
7973         (cgraph_node_asm_name): Likewise.
7974         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
7975         (cgraph_rebuild_references): Likewise.
7976         (rebuild_cgraph_edges): Likewise.
7977         (record_eh_tables): Likewise.
7978         (build_cgraph_edges): Likewise.
7979         (mark_store): Likewise.
7980         (mark_load): Likewise.
7981         (mark_address): Likewise.
7982         (record_type_list): Likewise.
7983         (record_reference): Likewise.
7984         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
7985         (cgraph_materialize_clone): Likewise.
7986         (cgraph_function_versioning): Likewise.
7987         (cgraph_copy_node_for_versioning): Likewise.
7988         (update_call_expr): Likewise.
7989         (cgraph_find_replacement_node): Likewise.
7990         (cgraph_create_virtual_clone): Likewise.
7991         (cgraph_clone_node): Likewise.
7992         * cgraphunit.c (compile): Likewise.
7993         (output_weakrefs): Likewise.
7994         (output_in_order): Likewise.
7995         (expand_function): Likewise.
7996         (assemble_thunks_and_aliases): Likewise.
7997         (expand_thunk): Likewise.
7998         (mark_functions_to_output): Likewise.
7999         (handle_alias_pairs): Likewise.
8000         (analyze_functions): Likewise.
8001         (walk_polymorphic_call_targets): Likewise.
8002         (varpool_finalize_decl): Likewise.
8003         (process_function_and_variable_attributes): Likewise.
8004         (cgraph_process_same_body_aliases): Likewise.
8005         (analyze_function): Likewise.
8006         (cgraph_add_new_function): Likewise.
8007         (cgraph_finalize_function): Likewise.
8008         (referred_to_p): Likewise.
8009         (cgraph_reset_node): Likewise.
8010         (cgraph_process_new_functions): Likewise.
8011         (enqueue_node): Likewise.
8012         (decide_is_symbol_needed): Likewise.
8013         * coverage.c (coverage_compute_profile_id): Likewise.
8014         * dbxout.c (dbxout_expand_expr): Likewise.
8015         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8016         (reference_to_unused): Likewise.
8017         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8018         * gimplify.c (unvisit_body): Likewise.
8019         (unshare_body): Likewise.
8020         * ipa-cp.c (ipcp_generate_summary): Likewise.
8021         (ipcp_decision_stage): Likewise.
8022         (identify_dead_nodes): Likewise.
8023         (decide_whether_version_node): Likewise.
8024         (decide_about_value): Likewise.
8025         (perhaps_add_new_callers): Likewise.
8026         (create_specialized_node): Likewise.
8027         (update_profiling_info): Likewise.
8028         (ipcp_propagate_stage): Likewise.
8029         (estimate_local_effects): Likewise.
8030         (good_cloning_opportunity_p): Likewise.
8031         (devirtualization_time_bonus): Likewise.
8032         (propagate_constants_accross_call): Likewise.
8033         (initialize_node_lattices): Likewise.
8034         (ipcp_cloning_candidate_p): Likewise.
8035         (determine_versionability): Likewise.
8036         (print_all_lattices): Likewise.
8037         (print_lattice): Likewise.
8038         (ipcp_discover_new_direct_edges): Likewise.
8039         * ipa-devirt.c (ipa_devirt): Likewise.
8040         (likely_target_p): Likewise.
8041         (update_type_inheritance_graph): Likewise.
8042         (possible_polymorphic_call_target_p): Likewise.
8043         (dump_possible_polymorphic_call_targets): Likewise.
8044         (devirt_variable_node_removal_hook): Likewise.
8045         (record_binfo): Likewise.
8046         (maybe_record_node): Likewise.
8047         (build_type_inheritance_graph): Likewise.
8048         * ipa-inline-analysis.c (inline_write_summary): Likewise.
8049         (inline_generate_summary): Likewise.
8050         (inline_analyze_function): Likewise.
8051         (do_estimate_growth): Likewise.
8052         (simple_edge_hints): Likewise.
8053         (estimate_node_size_and_time): Likewise.
8054         (estimate_edge_devirt_benefit): Likewise.
8055         (compute_inline_parameters): Likewise.
8056         (estimate_function_body_sizes): Likewise.
8057         (compute_bb_predicates): Likewise.
8058         (initialize_inline_failed): Likewise.
8059         (dump_inline_summary): Likewise.
8060         (dump_inline_edge_summary): Likewise.
8061         * ipa-inline-transform.c (inline_transform): Likewise.
8062         (preserve_function_body_p): Likewise.
8063         (save_inline_function_body): Likewise.
8064         (inline_call): Likewise.
8065         (clone_inlined_nodes): Likewise.
8066         (can_remove_node_now_p): Likewise.
8067         (can_remove_node_now_p_1): Likewise.
8068         * ipa-inline.c (early_inliner): Likewise.
8069         (early_inline_small_functions): Likewise.
8070         (inline_always_inline_functions): Likewise.
8071         (ipa_inline): Likewise.
8072         (flatten_function): Likewise.
8073         (inline_small_functions): Likewise.
8074         (speculation_useful_p): Likewise.
8075         (recursive_inlining): Likewise.
8076         (update_caller_keys): Likewise.
8077         (reset_edge_caches): Likewise.
8078         (update_edge_key): Likewise.
8079         (edge_badness): Likewise.
8080         (relative_time_benefit): Likewise.
8081         (want_inline_self_recursive_call_p): Likewise.
8082         (want_inline_small_function_p): Likewise.
8083         (want_early_inline_function_p): Likewise.
8084         (num_calls): Likewise.
8085         (can_early_inline_edge_p): Likewise.
8086         (can_inline_edge_p): Likewise.
8087         (report_inline_failed_reason): Likewise.
8088         * ipa-profile.c (ipa_profile): Likewise.
8089         (ipa_propagate_frequency): Likewise.
8090         (ipa_propagate_frequency_1): Likewise.
8091         (ipa_profile_generate_summary): Likewise.
8092         * ipa-prop.c (ipcp_transform_function): Likewise.
8093         (read_replacements_section): Likewise.
8094         (ipa_prop_read_section): Likewise.
8095         (ipa_modify_call_arguments): Likewise.
8096         (ipa_print_node_params): Likewise.
8097         (propagate_controlled_uses): Likewise.
8098         (update_indirect_edges_after_inlining): Likewise.
8099         (remove_described_reference): Likewise.
8100         (ipa_make_edge_direct_to_target): Likewise.
8101         (ipa_analyze_node): Likewise.
8102         (ipa_analyze_params_uses): Likewise.
8103         (ipa_compute_jump_functions): Likewise.
8104         (ipa_get_callee_param_type): Likewise.
8105         (ipa_print_node_jump_functions): Likewise.
8106         (ipa_initialize_node_params): Likewise.
8107         (ipa_populate_param_decls): Likewise.
8108         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8109         (write_agg_replacement_chain): Likewise.
8110         (ipa_write_node_info): Likewise.
8111         (ipa_edge_duplication_hook): Likewise.
8112         (try_decrement_rdesc_refcount): Likewise.
8113         * ipa-pure-const.c (propagate_nothrow): Likewise.
8114         (propagate_pure_const): Likewise.
8115         (pure_const_read_summary): Likewise.
8116         (pure_const_write_summary): Likewise.
8117         (analyze_function): Likewise.
8118         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8119         (ipa_ref_referring_ref_list): Likewise.
8120         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8121         (ipa_remove_stmt_references): Likewise.
8122         (ipa_find_reference): Likewise.
8123         (ipa_dump_referring): Likewise.
8124         (ipa_dump_references): Likewise.
8125         (ipa_record_reference): Likewise.
8126         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8127         (ipa_reference_write_optimization_summary): Likewise.
8128         (write_node_summary_p): Likewise.
8129         (propagate): Likewise.
8130         (read_write_all_from_decl): Likewise.
8131         (generate_summary): Likewise.
8132         (analyze_function): Likewise.
8133         (propagate_bits): Likewise.
8134         (ipa_reference_get_not_written_global): Likewise.
8135         (ipa_reference_get_not_read_global): Likewise.
8136         * ipa-split.c (execute_split_functions): Likewise.
8137         (split_function): Likewise.
8138         * ipa-utils.c (ipa_merge_profiles): Likewise.
8139         (dump_cgraph_node_set): Likewise.
8140         (ipa_reverse_postorder): Likewise.
8141         (ipa_edge_within_scc): Likewise.
8142         (ipa_get_nodes_in_cycle): Likewise.
8143         (ipa_free_postorder_info): Likewise.
8144         (ipa_reduced_postorder): Likewise.
8145         (searchc): Likewise.
8146         (recursive_call_p): Likewise.
8147         * ipa.c (ipa_cdtor_merge): Likewise.
8148         (record_cdtor_fn): Likewise.
8149         (function_and_variable_visibility): Likewise.
8150         (varpool_externally_visible_p): Likewise.
8151         (cgraph_externally_visible_p): Likewise.
8152         (comdat_can_be_unshared_p): Likewise.
8153         (comdat_can_be_unshared_p_1): Likewise.
8154         (address_taken_from_non_vtable_p): Likewise.
8155         (ipa_discover_readonly_nonaddressable_vars): Likewise.
8156         (symtab_remove_unreachable_nodes): Likewise.
8157         (walk_polymorphic_call_targets): Likewise.
8158         (process_references): Likewise.
8159         (enqueue_node): Likewise.
8160         (has_addr_references_p): Likewise.
8161         (cgraph_non_local_node_p_1): Likewise.
8162         * is-a.h (varpool_analyze_node): Likewise.
8163         * lto-cgraph.c (input_symtab): Likewise.
8164         (merge_profile_summaries): Likewise.
8165         (input_cgraph_1): Likewise.
8166         (input_edge): Likewise.
8167         (input_varpool_node): Likewise.
8168         (input_node): Likewise.
8169         (input_overwrite_node): Likewise.
8170         (compute_ltrans_boundary): Likewise.
8171         (output_refs): Likewise.
8172         (lto_output_varpool_node): Likewise.
8173         (lto_output_node): Likewise.
8174         (reachable_from_other_partition_p): Likewise.
8175         (referenced_from_other_partition_p): Likewise.
8176         (lto_output_edge): Likewise.
8177         (output_node_opt_summary): Likewise.
8178         (add_node_to): Likewise.
8179         (reachable_from_this_partition_p): Likewise.
8180         (lto_set_symtab_encoder_in_partition): Likewise.
8181         (lto_symtab_encoder_in_partition_p): Likewise.
8182         (lto_set_symtab_encoder_encode_initializer): Likewise.
8183         (lto_symtab_encoder_encode_initializer_p): Likewise.
8184         (lto_set_symtab_encoder_encode_body): Likewise.
8185         (lto_symtab_encoder_encode_body_p): Likewise.
8186         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8187         Likewise.
8188         * lto-streamer-in.c (lto_read_body): Likewise.
8189         (fixup_call_stmt_edges): Likewise.
8190         (fixup_call_stmt_edges_1): Likewise.
8191         * lto-streamer-out.c (produce_symtab): Likewise.
8192         (output_symbol_p): Likewise.
8193         (write_symbol): Likewise.
8194         (lto_output): Likewise.
8195         (copy_function): Likewise.
8196         (output_function): Likewise.
8197         * passes.c (function_called_by_processed_nodes_p): Likewise.
8198         (ipa_write_optimization_summaries): Likewise.
8199         (ipa_write_summaries): Likewise.
8200         (do_per_function_toporder): Likewise.
8201         (do_per_function): Likewise.
8202         (dump_passes): Likewise.
8203         * symtab.c (symtab_semantically_equivalent_p): Likewise.
8204         (symtab_nonoverwritable_alias): Likewise.
8205         (symtab_nonoverwritable_alias_1): Likewise.
8206         (symtab_for_node_and_aliases): Likewise.
8207         (symtab_resolve_alias): Likewise.
8208         (fixup_same_cpp_alias_visibility): Likewise.
8209         (symtab_alias_ultimate_target): Likewise.
8210         (symtab_used_from_object_file_p): Likewise.
8211         (verify_symtab_base): Likewise.
8212         (dump_symtab_base): Likewise.
8213         (symtab_node_name): Likewise.
8214         (symtab_node_asm_name): Likewise.
8215         (symtab_dissolve_same_comdat_group_list): Likewise.
8216         (symtab_add_to_same_comdat_group): Likewise.
8217         (symtab_unregister_node): Likewise.
8218         (symtab_insert_node_to_hashtable): Likewise.
8219         (symtab_register_node): Likewise.
8220         (unlink_from_assembler_name_hash): Likewise.
8221         (insert_to_assembler_name_hash): Likewise.
8222         (eq_assembler_name): Likewise.
8223         (hash_node_by_assembler_name): Likewise.
8224         (eq_node): Likewise.
8225         (hash_node): Likewise.
8226         * toplev.c (wrapup_global_declaration_2): Likewise.
8227         * trans-mem.c (ipa_tm_execute): Likewise.
8228         (ipa_tm_transform_clone): Likewise.
8229         (ipa_tm_transform_transaction): Likewise.
8230         (ipa_tm_transform_calls_redirect): Likewise.
8231         (ipa_tm_insert_gettmclone_call): Likewise.
8232         (ipa_tm_insert_irr_call): Likewise.
8233         (ipa_tm_create_version): Likewise.
8234         (ipa_tm_create_version_alias): Likewise.
8235         (ipa_tm_mark_forced_by_abi_node): Likewise.
8236         (ipa_tm_mark_force_output_node): Likewise.
8237         (ipa_tm_diagnose_tm_safe): Likewise.
8238         (ipa_tm_mayenterirr_function): Likewise.
8239         (ipa_tm_scan_irr_function): Likewise.
8240         (ipa_tm_note_irrevocable): Likewise.
8241         (ipa_tm_scan_calls_clone): Likewise.
8242         (get_cg_data): Likewise.
8243         * tree-eh.c (tree_could_trap_p): Likewise.
8244         * tree-emutls.c (ipa_lower_emutls): Likewise.
8245         (create_emultls_var): Likewise.
8246         (lower_emutls_function_body): Likewise.
8247         (gen_emutls_addr): Likewise.
8248         (emutls_decl): Likewise.
8249         (new_emutls_decl): Likewise.
8250         * tree-inline.c (tree_function_versioning): Likewise.
8251         (optimize_inline_calls): Likewise.
8252         (expand_call_inline): Likewise.
8253         (estimate_num_insns): Likewise.
8254         (copy_bb): Likewise.
8255         (delete_unreachable_blocks_update_callgraph): Likewise.
8256         * tree-nested.c (gimplify_all_functions): Likewise.
8257         (create_nesting_tree): Likewise.
8258         (check_for_nested_with_variably_modified): Likewise.
8259         * tree-pretty-print.c (dump_function_header): Likewise.
8260         * tree-profile.c (tree_profiling): Likewise.
8261         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8262         (modify_function): Likewise.
8263         (convert_callers): Likewise.
8264         (convert_callers_for_node): Likewise.
8265         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8266         (associate_varinfo_to_alias): Likewise.
8267         (create_variable_info_for): Likewise.
8268         (get_constraint_for_ssa_var): Likewise.
8269         * tree-vectorizer.c (increase_alignment): Likewise.
8270         * tree.c (find_decls_types_in_var): Likewise.
8271         (find_decls_types_in_node): Likewise.
8272         (free_lang_data_in_decl): Likewise.
8273         * value-prof.c (gimple_ic_transform): Likewise.
8274         (gimple_ic): Likewise.
8275         (check_ic_target): Likewise.
8276         (init_node_map): Likewise.
8277         * varasm.c (decl_binds_to_current_def_p): Likewise.
8278         (default_binds_local_p_1): Likewise.
8279         (dump_tm_clone_pairs): Likewise.
8280         (assemble_alias): Likewise.
8281         (find_decl): Likewise.
8282         (mark_decl_referenced): Likewise.
8283         * varpool.c (varpool_for_node_and_aliases): Likewise.
8284         (varpool_extra_name_alias): Likewise.
8285         (varpool_create_variable_alias): Likewise.
8286         (add_new_static_var): Likewise.
8287         (varpool_finalize_named_section_flags): Likewise.
8288         (varpool_remove_unreferenced_decls): Likewise.
8289         (enqueue_node): Likewise.
8290         (varpool_assemble_decl): Likewise.
8291         (assemble_aliases): Likewise.
8292         (varpool_analyze_node): Likewise.
8293         (cgraph_variable_initializer_availability): Likewise.
8294         (varpool_add_new_variable): Likewise.
8295         (ctor_for_folding): Likewise.
8296         (dump_varpool_node): Likewise.
8297         (varpool_remove_initializer): Likewise.
8298         (varpool_remove_node): Likewise.
8299         (varpool_node_for_decl): Likewise.
8300         (varpool_create_empty_node): Likewise.
8301         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8302         (ix86_get_function_versions_dispatcher): Likewise.
8304 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8306         * cgraph.h (symtab_node_base): Convert to a class;
8307         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8308         chain_next/prev from symtab_node_def.
8309         (cgraph_node): Inherit from symtab_node; add GTY option
8310         tag ("SYMTAB_FUNCTION").
8311         (varpool_node): Inherit from symtab_node; add GTY option
8312         tag ("SYMTAB_VARIABLE").
8313         (symtab_node_def): Remove.
8314         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8315         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8316         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8317         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8319         * ipa-ref.h (symtab_node_def): Drop.
8320         (symtab_node): Change underlying type from symtab_node_def to
8321         symtab_node_base.
8322         (const_symtab_node): Likwise.
8324         * is-a.h: Update examples in comment.
8326         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8327         (assembler_name_hash): Likewise.
8329 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
8331         * doc/tree-ssa.texi (gimple_phi_result): Document.
8332         (gimple_phi_num_args, gimple_phi_arg): Likewise.
8333         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8334         (PHI_RESULT, PHI_NUM_ARGS): Remove.
8335         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8337 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8339         * expr.h: Revert change and include tree-core.h.
8340         * rtl.h: Revert change and don't include tree-core.h.
8342 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8344         * config/darwin.c: Include gimple.h.
8345         * config/i386/winnt.c: Likewise.
8347 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
8349         PR tree-optimization/19831
8350         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8352 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8354         * tree-outof-ssa.h: Remove include files.
8355         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8356         * expr.c: Likewise.
8357         * tree-ssa-coalesce.c: Likewise.
8358         * cfgexpand.c: Likewise.
8359         * tree-ssa-ter.c: Likewise.
8360         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8361         * lto-streamer.h: Likewise.
8362         * cgraphbuild.c: Add gimple.h to include list.
8363         * data-streamer-in.c: Likewise.
8364         * ipa-cp.c: Likewise.
8365         * tree-streamer.c: Likewise.
8366         * lto-compress.c: Likewise.
8367         * ipa-reference.c: Likewise.
8368         * data-streamer-out.c: Likewise.
8369         * lto-cgraph.c: Likewise.
8370         * cgraphclones.c: Likewise.
8371         * ipa-utils.c: Likewise.
8372         * data-streamer.c: Likewise.
8373         * ipa-split.c: Likewise.
8374         * lto-section-in.c: Likewise.
8375         * tree-streamer-out.c: Likewise.
8376         * ipa-prop.c: Likewise.
8377         * tree-streamer-in.c: Likewise.
8378         * symtab.c: Likewise.
8379         * opts-global.c: Likewise.
8380         * lto-opts.c: Likewise.
8381         * lto-section-out.c: Likewise.
8382         * lto-streamer.c: Likewise.
8383         * rtl.h: Add tree-core.h to include list.
8384         * expr.h: Remove tree-core.h from include list.
8385         * gimple.h: Likewise.
8386         * ipa-utils.h: Likewise.
8387         * streamer-hooks.h: Likewise.
8388         * streamer-hooks.c: Include input.h.
8390 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8392         * config/arm/arm.c (cortexa7_extra_costs): New table.
8393         (arm_cortex_a7_tune): New.
8394         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8396 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
8398         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8400 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8402         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8403         to use autogenerated markers for a class-hierarchy, every class
8404         must have a GTY marker.
8405         * gengtype.h (struct type): Add linked list of subclasses to
8406         the "s" member of the union.
8407         (add_subclass): New decl.
8408         * gengtype-state.c (read_state_struct_type): Set up subclass
8409         linked list.
8410         * gengtype.c (get_ultimate_base_class): New.
8411         (add_subclass): New.
8412         (new_structure): Set up subclass linked list.
8413         (set_gc_used_type): Propagate usage information to subclasses.
8414         (output_mangled_typename): Use get_ultimate_base_class.
8415         (walk_subclasses): Use the subclass linked list, avoiding an
8416         O(N^2) when writing out all types.
8417         (walk_type): Issue an error if the base class is missing a tag,
8418         rather than generating bogus C code.  Add a gcc_unreachable
8419         default case, in case people omit tags from concrete subclasses,
8420         or get the values wrong.
8421         (write_func_for_structure): Issue an error for subclasses for
8422         which the base doesn't have a "desc", since otherwise the
8423         autogenerated routines for the base would silently fail to visit
8424         any subclass fields.
8425         (write_root): Use get_ultimate_base_class, tweaking constness of
8426         tp to match that function's signature.
8428 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8430         * doc/gty.texi (GTY Options): Add note about inheritance to
8431         description of desc and tag.
8432         (Inheritance and GTY): New.
8434 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8436         * gengtype-parse.c (opts_have): Drop "static" so that
8437         we can use this from gengtype.c.
8438         * gengtype.c (set_gc_used_type): Mark any base class as used;
8439         update field traversal to visit inherited fields.
8440         (output_mangled_typename):  Convert references to classes within
8441         an inheritance hierarchy to reference the ultimate base class,
8442         since only it will have gt_ functions.
8443         (get_string_option): New.
8444         (walk_subclasses): New.
8445         (walk_type): Treat GTY structs that have a "desc" as being the
8446         root of an inheritance hierarchy.  Generate a switch on it
8447         within the marking function which walks all subclasses, adding
8448         cases for them via walk_subclasses.  For subclasses, visit all
8449         fields of the type (including inherited ones).
8450         (write_func_for_structure): Don't write fns for subclasses, only
8451         for the ultimate base class within an inheritance hierarchy.
8452         Subclasses-marking will be handled by the base class marking functions.
8453         (write_types): Likewise.
8454         (write_local_func_for_structure): Likewise.
8455         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8456         a "tag" option (and are thus concrete subclasses).
8457         (write_root): Use the marker function for the ultimate base class.
8458         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8459         (opts_have): Add declaration.
8461 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
8463         * lra-spills.c (lra_final_code_change): Remove useless move insns
8464         originated from moves of pseudos.
8466 2013-10-28  Jeff Law  <law@redhat.com>
8468         * lower-subreg.c (resolve_simple_move): Fix comment typo.
8470 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
8472         * df-scan.c (df_collection_rec): Adjust.
8473         (copy_defs): New constant.
8474         (copy_uses): Likewise.
8475         (copy_eq_uses): Likewise.
8476         (copy_mw): Likewise.
8477         (copy_all): Likewise.
8478         (df_insn_rescan): Adjust.
8479         (df_notes_rescan): Likewise.
8480         (df_swap_refs): Likewise.
8481         (df_sort_and_compress_refs): Likewise.
8482         (df_sort_and_compress_mws): Likewise.
8483         (df_install_refs): Likewise.
8484         (df_install_mws): Likewise.
8485         (df_refs_add_to_chains): Add flags parameter controlling which vectors
8486         are coppied.
8487         (df_bb_refs_record): Adjust.
8488         (df_record_entry_block_defs): Likewise.
8489         (df_record_exit_block_defs): Likewise.
8490         (df_refs_verify): Likewise.
8491         (df_mws_verify): Likewise.
8492         (df_insn_refs_verify): Likewise.
8493         (df_bb_verify): Likewise.
8494         * ipa-pure-const.c (finish_state): Remove.
8495         (propagate): Adjust.
8496         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8497         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8498         var-tracking.c: Adjust.
8499         * vec.c (stack_vecs): Remove.
8500         (register_stack_vec): Likewise.
8501         (stack_vec_register_index): Likewise.
8502         (unregister_stack_vec): Likewise.
8503         * vec.h (struct va_stack): Remove.
8504         (struct vec<T, A, vl_ptr>): Specialize as
8505         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8506         allocation strategy compatable with the vl_ptr layout.
8507         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8508         specialization anyway.
8509         (class stack_vec): New class.
8510         (vec_stack_alloc): Remove.
8511         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8513 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8514             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8515             Sergey Lega  <sergey.s.lega@intel.com>
8516             Anna Tikhonova  <anna.tikhonova@intel.com>
8517             Ilya Tocar  <ilya.tocar@intel.com>
8518             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8519             Ilya Verbin  <ilya.verbin@intel.com>
8520             Kirill Yukhin  <kirill.yukhin@intel.com>
8521             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8523         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8524         (*prefetch_avx512pf_<mode>): New.
8525         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8526         (avx512f_maskcmp<mode>3): Ditto.
8527         (vashrv16si3): Ditto.
8529 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8530             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8531             Sergey Lega  <sergey.s.lega@intel.com>
8532             Anna Tikhonova  <anna.tikhonova@intel.com>
8533             Ilya Tocar  <ilya.tocar@intel.com>
8534             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8535             Ilya Verbin  <ilya.verbin@intel.com>
8536             Kirill Yukhin  <kirill.yukhin@intel.com>
8537             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8539         * config/i386/i386.md (any_truncate): New.
8540         (trunsuffix): Ditto.
8541         * config/i386/predicates.md (const_8_to_9_operand): New.
8542         (const_10_to_11_operand): Ditto.
8543         (const_12_to_13_operand): Ditto.
8544         (const_14_to_15_operand): Ditto.
8545         (const_16_to_19_operand): Ditto.
8546         (const_20_to_23_operand): Ditto.
8547         (const_24_to_27_operand): Ditto.
8548         (const_28_to_31_operand): Ditto.
8549         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8550         (cvtusi2<ssescalarmodesuffix>32): New.
8551         (cvtusi2<ssescalarmodesuffix>64): Ditto.
8552         (ufloatv16siv16sf2): Ditto.
8553         (avx512f_fix_notruncv16sfv16si): Ditto.
8554         (avx512f_ufix_notruncv16sfv16si): Ditto.
8555         (avx512f_vcvtss2usi): Ditto.
8556         (avx512f_vcvtss2usiq): Ditto.
8557         (avx512f_vcvttss2usi): Ditto.
8558         (avx512f_vcvttss2usiq): Ditto.
8559         (avx512f_vcvtsd2usi): Ditto.
8560         (avx512f_vcvtsd2usiq): Ditto.
8561         (avx512f_vcvttsd2usi): Ditto.
8562         (avx512f_vcvttsd2usiq): Ditto.
8563         (ufloatv8siv8df): Ditto.
8564         (avx512f_cvtdq2pd512_2): Ditto.
8565         (avx512f_cvtpd2dq512): Ditto.
8566         (avx512f_ufix_notruncv8dfv8si): Ditto.
8567         (avx512f_cvtpd2ps512): Ditto.
8568         (vec_unpacks_lo_v16sf): Ditto.
8569         (vec_unpacks_hi_v16sf): Ditto.
8570         (vec_unpacks_float_hi_v16si): Ditto.
8571         (vec_unpacks_float_lo_v16si): Ditto.
8572         (avx512f_unpckhps512): Ditto.
8573         (avx512f_unpcklps512): Ditto.
8574         (avx512f_movshdup512): Ditto.
8575         (avx512f_movsldup512): Ditto.
8576         (vec_extract_lo_v32hi): Ditto.
8577         (vec_extract_hi_v32hi): Ditto.
8578         (vec_extract_lo_v64qi): Ditto.
8579         (vec_extract_hi_v64qi): Ditto.
8580         (avx512f_unpckhpd512): Ditto.
8581         (avx512f_movddup512): Ditto.
8582         (avx512f_unpcklpd512): Ditto.
8583         (*avx512f_unpcklpd512): Ditto.
8584         (avx512f_shufps512_1): Ditto.
8585         (avx512f_shufpd512_1): Ditto.
8586         (avx512f_interleave_highv8di): Ditto.
8587         (avx512f_interleave_lowv8di): Ditto.
8588         (PMOV_DST_MODE): Ditto.
8589         (pmov_src_mode): Ditto.
8590         (pmov_src_lower): Ditto.
8591         (pmov_suff): Ditto.
8592         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8593         (*avx512f_<code>v8div16qi2): Ditto.
8594         (*avx512f_<code>v8div16qi2_store): Ditto.
8595         (vec_widen_umult_even_v16si): Ditto.
8596         (*vec_widen_umult_even_v16si): Ditto.
8597         (vec_widen_smult_even_v16si): Ditto.
8598         (*vec_widen_smult_even_v16si): Ditto.
8599         (avx512f_interleave_highv16si): Ditto.
8600         (avx512f_interleave_lowv16si): Ditto.
8601         (avx512f_<code>v16qiv16si2): Ditto.
8602         (avx512f_<code>v16hiv16si2): Ditto.
8603         (avx512f_<code>v8qiv8di2): Ditto.
8604         (avx512f_<code>v8hiv8di2): Ditto.
8605         (avx512f_<code>v8siv8di2): Ditto.
8606         (avx512cd_maskb_vec_dupv8di): Ditto.
8607         (avx512cd_maskw_vec_dupv16si): Ditto.
8608         (avx512f_vcvtph2ps512): Ditto.
8609         (avx512f_vcvtps2ph512): Ditto.
8610         (VEC_EXTRACT_MODE): Extened with wider modes.
8611         (VEC_PERM_AVX2): Ditto.
8612         (VEC_PERM_CONST): Ditto.
8614 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8616         * config/arc/arc.c (arc_ccfsm_post_advance):
8617         Add comment about TYPE_RETURN.
8619 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
8621         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8622         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8623         (strip_offset): Convert offset to unsigned number.
8625 2013-10-27  Tom de Vries  <tom@codesourcery.com>
8627         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8628         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8630 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
8632         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8633         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8634         (TARGET_BIG_ENDIAN): New macro.
8635         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8636         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8637         * config/sh/sh.c: Likewise.
8638         * config/sh/sh.h: Likewise.
8640 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
8642         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8643         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
8645 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8647         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8648         Fix formatting.
8649         (cmpstr_t, cmpstrsi): Fix formatting.
8651 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8653         PR target/52483
8654         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8655         addressing, do not use general_operand for memory operands.
8657 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
8659         Revert:
8660         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8661         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8663 2013-10-26  Jeff Law  <law@redhat.com>
8665         * predict.c (PRED_MUDFLAP): Remove.
8666         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
8668         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8669         (OBJS): Remove tree-nomudflap.o
8670         (GTFILES): Remove tree-mudflap.c
8671         * builtins.c (expand_builtin_alloc): Remove mudflap support.
8672         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8673         (mfwrap_spec, mflib_spec): Likewise.
8674         (cpp_unique_options, cc1_options, static_specs): Likewise.
8675         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8676         * passes.def: Likewise.
8677         * toplev.c (compile_file, process_options): Likewise.
8678         * tree-inline.c (copy_tree_r): Likewise.
8679         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8680         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8681         (build_constant_desc, output_constant_def_contents): Likewise.
8682         (categorize_decl_for_section): Likewise.
8683         * tree-mudflap.c: Removed.
8684         * tree-mudflap.h: Removed.
8685         * tree-nomudflap.c: Removed.
8686         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8687         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8688         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8689         * config/sol2.h (MFLIB_SPEC): Likewise.
8690         * doc/install.texi: Remove mudflap references.
8691         * doc/passes.texi: Similarly.
8692         * doc/sourcebuild.texi: Similarly.
8693         * doc/invoke.texi: Remove mudlfap related options.
8695 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8697         PR rtl-optimization/58759
8698         * lra-constraints.c (lra_constraints): Remove wrong condition to
8699         remove insn setting up an equivalent pseudo.
8701 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8703         * config/rs6000/rs6000-protos.h
8704         (rs6000_secondary_memory_needed_mode): New prototype.
8705         * config/rs6000/rs6000.c: Include ira.h.
8706         (TARGET_LRA_P): Redefine.
8707         (rs6000_legitimate_offset_address_p): Call
8708         legitimate_constant_pool_address_p in strict mode for LRA.
8709         (rs6000_legitimate_address_p): Ditto.
8710         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
8711         (rs6000_emit_move): Add LRA version of code to generate load/store
8712         of SDmode values.
8713         (rs6000_secondary_memory_needed_mode): New.
8714         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8715         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8716         constants, memory, and FP registers.
8717         (rs6000_lra_p): New.
8718         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8719         * config/rs6000/rs6000.opt (mlra): New option.
8720         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8722 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
8724         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8725         has_single_use () and not do the conversion if has_single_use ()
8726         returns false for the multiplication result.
8728 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
8730         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8731         to "NODE", since this works on a "tree", not an
8732         "enum tree_code".
8733         (CONSTANT_CLASS_P): Likewise.
8734         (TYPE_P): Likewise.
8735         (DECL_P): Likewise.
8736         (INDIRECT_REF_P): Likewise.
8737         (REFERENCE_CLASS_P): Likewise.
8738         (COMPARISON_CLASS_P): Likewise.
8739         (UNARY_CLASS_P): Likewise.
8740         (BINARY_CLASS_P): Likewise.
8741         (STATEMENT_CLASS_P): Likewise.
8742         (VL_EXP_CLASS_P): Likewise.
8743         (EXPRESSION_CLASS_P): Likewise.
8744         (IS_TYPE_OR_DECL_P): Likewise.
8746 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
8748         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8749         ADDR_EXPR in the defining statement.
8751 2013-10-25  Richard Biener  <rguenther@suse.de>
8753         PR tree-optimization/58626
8754         * tree-loop-distribution.c (enum rdg_dep_type): Remove
8755         anti_dd, output_dd and input_dd.
8756         (struct rdg_edge): Remove level and relation members.
8757         (RDGE_LEVEL, RDGE_RELATION): Remove.
8758         (dot_rdg_1): Adjust.
8759         (create_rdg_edge_for_ddr): Remove.
8760         (create_rdg_edges_for_scalar): Adjust.
8761         (create_edge_for_control_dependence): Likewise.
8762         (create_rdg_edges): Split into ...
8763         (create_rdg_flow_edges): ... this
8764         (create_rdg_cd_edges): ... and this.
8765         (free_rdg): Adjust.
8766         (build_rdg): Likewise, do not compute data dependences or
8767         add edges for them.
8768         (pg_add_dependence_edges): New function.
8769         (pgcmp): Likewise.
8770         (distribute_loop): First apply all non-dependence based
8771         partition mergings.  Then compute dependences between partitions
8772         and merge and order partitions according to them.
8774 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8776         PR rtl-optimization/58831
8777         * alias.c (init_alias_analysis): At the beginning of each iteration,
8778         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
8780 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8782         * recog.c (search_ofs): New static variable moved from...
8783         (peep2_find_free_register): ...here.
8784         (peephole2_optimize): Initialize it.
8786 2013-10-25  Tobias Burnus  <burnus@net-b.de>
8788         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
8790 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
8792         * config/i386/i386.h (TARGET_MPX): New define.
8793         (TARGET_MPX_P): Ditto.
8795 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8797         * config/i386/constraints.md (B): New.
8798         (Ti): New.
8799         (Tb): New.
8800         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8801         * config/i386/i386-modes.def (BND32): New.
8802         (BND64): New.
8803         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8804         * config/i386/i386.c (isa_opts): Add mmpx.
8805         (regclass_map): Add bound registers.
8806         (dbx_register_map): Likewise.
8807         (dbx64_register_map): Likewise.
8808         (svr4_dbx_register_map): Likewise.
8809         (PTA_MPX): New.
8810         (ix86_option_override_internal): Support MPX ISA.
8811         (ix86_conditional_register_usage): Support bound registers.
8812         (print_reg): Likewise.
8813         (ix86_code_end): Add MPX bnd prefix.
8814         (output_set_got): Likewise.
8815         (ix86_output_call_insn): Likewise.
8816         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
8817         (ix86_print_operand_punct_valid_p): Likewise.
8818         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
8819         UNSPEC_BNDMK_ADDR.
8820         (ix86_class_likely_spilled_p): Add bound regs support.
8821         (ix86_hard_regno_mode_ok): Likewise.
8822         (x86_order_regs_for_local_alloc): Likewise.
8823         (ix86_bnd_prefixed_insn_p): New.
8824         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
8825         (FIXED_REGISTERS): Add bound registers.
8826         (CALL_USED_REGISTERS): Likewise.
8827         (REG_ALLOC_ORDER): Likewise.
8828         (HARD_REGNO_NREGS): Likewise.
8829         (TARGET_MPX): New.
8830         (VALID_BND_REG_MODE): New.
8831         (FIRST_BND_REG): New.
8832         (LAST_BND_REG): New.
8833         (reg_class): Add BND_REGS.
8834         (REG_CLASS_NAMES): Likewise.
8835         (REG_CLASS_CONTENTS): Likewise.
8836         (BND_REGNO_P): New.
8837         (ANY_BND_REG_P): New.
8838         (BNDmode): New.
8839         (HI_REGISTER_NAMES): Add bound registers.
8840         * config/i386/i386.md (UNSPEC_BNDMK): New.
8841         (UNSPEC_BNDMK_ADDR): New.
8842         (UNSPEC_BNDSTX): New.
8843         (UNSPEC_BNDLDX): New.
8844         (UNSPEC_BNDLDX_ADDR): New.
8845         (UNSPEC_BNDCL): New.
8846         (UNSPEC_BNDCU): New.
8847         (UNSPEC_BNDCN): New.
8848         (UNSPEC_MPX_FENCE): New.
8849         (BND0_REG): New.
8850         (BND1_REG): New.
8851         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8852         (length_immediate): Likewise.
8853         (prefix_0f): Likewise.
8854         (memory): Likewise.
8855         (prefix_rep): Check for bnd prefix.
8856         (length_nobnd): New.
8857         (length): Use length_nobnd if specified.
8858         (BND): New.
8859         (bnd_ptr): New.
8860         (BNDCHECK): New.
8861         (bndcheck): New.
8862         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
8863         (*jcc_2): Likewise.
8864         (jump): Likewise.
8865         (simple_return_internal): Likewise.
8866         (simple_return_pop_internal): Likewise.
8867         (*indirect_jump): Add MPX bnd prefix.
8868         (*tablejump_1): Likewise.
8869         (simple_return_internal_long): Likewise.
8870         (simple_return_indirect_internal): Likewise.
8871         (<mode>_mk): New.
8872         (*<mode>_mk): New.
8873         (mov<mode>): New.
8874         (*mov<mode>_internal_mpx): New.
8875         (<mode>_<bndcheck>): New.
8876         (*<mode>_<bndcheck>): New.
8877         (<mode>_ldx): New.
8878         (*<mode>_ldx): New.
8879         (<mode>_stx): New.
8880         (*<mode>_stx): New.
8881         * config/i386/predicates.md (lea_address_operand): Rename to...
8882         (address_no_seg_operand): ... this.
8883         (address_mpx_no_base_operand): New.
8884         (address_mpx_no_index_operand): New.
8885         (bnd_mem_operator): New.
8886         * config/i386/i386.opt (mmpx): New.
8887         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
8888         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
8890 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8892         * mode-classes.def (MODE_POINTER_BOUNDS): New.
8893         * tree.def (POINTER_BOUNDS_TYPE): New.
8894         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
8895         (POINTER_BOUNDS_MODE): New.
8896         (make_pointer_bounds_mode): New.
8897         * machmode.h (POINTER_BOUNDS_MODE_P): New.
8898         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
8899         (layout_type): Support POINTER_BOUNDS_TYPE.
8900         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
8901         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8902         (type_contains_placeholder_1): Likewise.
8903         * tree.h (POINTER_BOUNDS_TYPE_P): New.
8904         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
8905         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
8907 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8909         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
8910         mode of address computation when calling memory_address_addr_space.
8912 2013-08-24  Richard Henderson  <rth@twiddle.net>
8914         PR rtl/58542
8915         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
8916         instead of create_convert_operand_to.
8917         (maybe_emit_sync_lock_test_and_set): Likewise.
8918         (expand_atomic_compare_and_swap): Likewise.
8919         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
8921 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
8923         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
8924         Change param_is to use the struct and not the pointer to the struct.
8926 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
8928         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
8929         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8930         Move to targhooks.c.
8931         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
8932         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8933         Relocate from gimplify.c.
8934         * targhooks.h: Add 2 prototypes.
8935         * tree.h: Delete 2 prototypes.
8937 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8939         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
8940         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
8942 2013-10-24  Cong Hou  <congh@google.com>
8944         * convert.c (convert_to_real): Guard those unsafe math function
8945         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
8946         specially.
8948 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
8950         PR ipa/58712
8951         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
8952         as argument.
8953         (cgraph_create_edge): Use the new argument.
8954         (cgraph_create_indirect_edge): Likewise.
8956 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
8958         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
8959         TYPE_UNCOND_BRANCH.
8960         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
8961         changes statep->state.
8963 2013-10-24  Tobias Burnus  <burnus@net-b.de>
8965         PR other/33426
8966         * tree-cfg.c (replace_loop_annotate): New function.
8967         (execute_build_cfg): Call it.
8968         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
8969         * internal-fn.c (expand_ANNOTATE): New function.
8970         * internal-fn.def (ANNOTATE): Define as new internal function.
8971         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
8972         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
8973         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
8974         * doc/extend.texi (Pragmas): Document #pragma ivdep.
8975         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
8977 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
8978             Marcus Shawcroft  <marcus.shawcroft@arm.com>
8980         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
8981         Special case reload SP+C into none GENERAL_REGS.
8983 2013-10-24  Michael Matz  <matz@suse.de>
8985         * gengtype.c (is_file_equal): Check that files will be same length.
8987 2013-10-25  Christian Bruel  <christian.bruel@st.com>
8989         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
8990         * config/sh/t-sh (sh-mem.o): New rule.
8991         * config/sh/sh-mem.cc (expand_block_move): Moved here.
8992         (sh_expand_cmpstr): New function.
8993         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
8994         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
8995         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
8996         (rotlhi3_8): Rename.
8998 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9000         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9001         * Makefile.in (CXXDEPMODE): Assign and change users.
9002         (CCDEPMODE): Delete.
9003         * configure: Regenerate.
9005 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
9007         * gengtype-parse.c (require_without_advance): New.
9008         (type): For GTY-marked types that are not GTY((user)), parse any
9009         base classes, requiring them to be single-inheritance, and not
9010         be templates.  For non-GTY-marked types and GTY((user)),
9011         continue to skip over any C++ inheritance specification.
9012         * gengtype-state.c (state_writer::write_state_struct_type):
9013         Write base class of type (if any).
9014         (read_state_struct_type): Read base class of type (if any).
9015         * gengtype.c (new_structure): Add a "base_class" parameter.
9016         (create_optional_field_): Update for new parameter to new_structure.
9017         (adjust_field_rtx_def): Likewise.
9018         (adjust_field_tree_exp): Likewise.
9019         * gengtype.h (struct type): Add "base_class" field to the s
9020         union field.
9021         (new_structure): Add "base" parameter.
9023 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
9025         PR target/57756
9026         * config/i386/i386.c (ix86_option_override_internal):
9027         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9028         (ix86_valid_target_attribute_tree):
9029         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9030         Change TARGET_SSE to TARGET_SSE_P (opts->...)
9032 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9034         * tree-ssa-loop.h: Remove include files.
9035         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9036         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9037         * graphite-clast-to-gimple.c: Likewise.
9038         * graphite-scop-detection.c: Likewise.
9039         * graphite-sese-to-poly.c: Likewise.
9040         * ipa-inline-analysis.c: Likewise.
9041         * ipa-pure-const.c: Likewise.
9042         * loop-init.c: Likewise.
9043         * passes.c: Likewise.
9044         * predict.c: Likewise.
9045         * tree-cfg.c: Likewise.
9046         * tree-cfgcleanup.c: Likewise.
9047         * tree-chrec.c: Likewise.
9048         * tree-data-ref.c: Likewise.
9049         * tree-loop-distribution.c: Likewise.
9050         * tree-parloops.c: Likewise.
9051         * tree-predcom.c: Likewise.
9052         * tree-scalar-evolution.c: Likewise.
9053         * tree-ssa-address.c: Likewise.
9054         * tree-ssa.c: Likewise.
9055         * tree-ssa-dce.c: Likewise.
9056         * tree-ssa-loop.c: Likewise.
9057         * tree-ssa-loop-im.c: Likewise.
9058         * tree-ssa-loop-ivcanon.c: Likewise.
9059         * tree-ssa-loop-ivopts.c: Likewise.
9060         * tree-ssa-loop-manip.c: Likewise.
9061         * tree-ssa-loop-niter.c: Likewise.
9062         * tree-ssa-loop-prefetch.c: Likewise.
9063         * tree-ssa-loop-unswitch.c: Likewise.
9064         * tree-ssa-reassoc.c: Likewise.
9065         * tree-vect-data-refs.c: Likewise.
9066         * tree-vect-loop.c: Likewise.
9067         * tree-vect-loop-manip.c: Likewise.
9068         * tree-vectorizer.c: Likewise.
9069         * tree-vect-stmts.c: Likewise.
9070         * tree-vrp.c: Likewise.
9072 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9074         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9076 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9078         PR tree-optimization/58775
9079         PR tree-optimization/58791
9080         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9081         (insert_stmt_after): Rewritten, don't move the stmt, but really
9082         insert it.
9083         (get_stmt_uid_with_default): Remove.
9084         (build_and_add_sum): Use insert_stmt_after and
9085         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
9086         (update_range_test): Set uid on stmts added by
9087         force_gimple_operand_gsi.  Don't immediately modify statements
9088         in inter-bb optimization, just update oe->op values.
9089         (optimize_range_tests): Return bool whether any changed have been made.
9090         (update_ops): New function.
9091         (struct inter_bb_range_test_entry): New type.
9092         (maybe_optimize_range_tests): Perform statement changes here.
9093         (not_dominated_by, appears_later_in_bb, get_def_stmt,
9094         ensure_ops_are_available): Remove.
9095         (find_insert_point): Rewritten.
9096         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9097         return LHS of the (new resp. old) stmt.  Don't call
9098         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9099         instead of last, move new stmt at the right place.
9100         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9101         (negate_value): Likewise.  Set uids.
9102         (break_up_subtract_bb): Initialize uids.
9103         (reassociate_bb): Adjust rewrite_expr_tree caller.
9104         (do_reassoc): Don't call renumber_gimple_stmt_uids.
9106 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
9108         PR target/58838
9109         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9110         TARGET_32BIT final condition.
9111         (mulsi3_internal2 and splitter): Same.
9113 2013-10-23  Jeff Law  <law@redhat.com>
9115         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9116         through joiner blocks with abnormal outgoing edges.
9118         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9119         Add parameter JOINERS, to allow/disallow threading through joiner
9120         blocks.
9121         (thread_block): New.  Call thread_block_1.
9122         (mark_threaded_blocks): Remove code to filter out certain cases
9123         of threading through joiner blocks.
9124         (thread_through_all_blocks): Document how we can have a dangling
9125         edge AUX field and clear it.
9127 2013-10-23  Ian Lance Taylor  <iant@google.com>
9129         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9130         (C++ Dialect Options): Likewise.
9131         (Optimize Options): Likewise.
9133 2013-10-23  Tom de Vries  <tom@codesourcery.com>
9135         PR tree-optimization/58805
9136         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9138 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9140         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9141         sequence based on get_range_info returned range.
9143 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9145         * tree-ssa.h: Remove all #include's
9146         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9147         * alias.c: Move required includes from tree-ssa.h.
9148         * asan.c: Likewise.
9149         * builtins.c: Likewise.
9150         * calls.c: Likewise.
9151         * cfgexpand.c: Likewise.
9152         * cfghooks.c: Likewise.
9153         * cfgloop.c: Likewise.
9154         * cfgloopmanip.c: Likewise.
9155         * cgraph.c: Likewise.
9156         * cgraphbuild.c: Likewise.
9157         * cgraphclones.c: Likewise.
9158         * cgraphunit.c: Likewise.
9159         * dse.c: Likewise.
9160         * except.c: Likewise.
9161         * expr.c: Likewise.
9162         * final.c: Likewise.
9163         * fold-const.c: Likewise.
9164         * ggc-page.c: Likewise.
9165         * gimple-builder.c: Likewise.
9166         * gimple-fold.c: Likewise.
9167         * gimple-iterator.c: Likewise.
9168         * gimple-low.c: Likewise.
9169         * gimple-pretty-print.c: Likewise.
9170         * gimple-ssa-strength-reduction.c: Likewise.
9171         * gimple-streamer-in.c: Likewise.
9172         * gimple-streamer-out.c: Likewise.
9173         * gimplify.c: Likewise.
9174         * graphite-blocking.c: Likewise.
9175         * graphite-clast-to-gimple.c: Likewise.
9176         * graphite-dependences.c: Likewise.
9177         * graphite-interchange.c: Likewise.
9178         * graphite-optimize-isl.c: Likewise.
9179         * graphite-poly.c: Likewise.
9180         * graphite-scop-detection.c: Likewise.
9181         * graphite-sese-to-poly.c: Likewise.
9182         * graphite.c: Likewise.
9183         * ipa-cp.c: Likewise.
9184         * ipa-inline-analysis.c: Likewise.
9185         * ipa-inline-transform.c: Likewise.
9186         * ipa-inline.c: Likewise.
9187         * ipa-prop.c: Likewise.
9188         * ipa-pure-const.c: Likewise.
9189         * ipa-reference.c: Likewise.
9190         * ipa-split.c: Likewise.
9191         * ipa-utils.c: Likewise.
9192         * loop-init.c: Likewise.
9193         * lto-cgraph.c: Likewise.
9194         * lto-section-in.c: Likewise.
9195         * lto-section-out.c: Likewise.
9196         * lto-streamer-in.c: Likewise.
9197         * lto-streamer-out.c: Likewise.
9198         * lto-streamer.c: Likewise.
9199         * omp-low.c: Likewise.
9200         * passes.c: Likewise.
9201         * predict.c: Likewise.
9202         * print-tree.c: Likewise.
9203         * profile.c: Likewise.
9204         * sese.c: Likewise.
9205         * targhooks.c: Likewise.
9206         * tracer.c: Likewise.
9207         * trans-mem.c: Likewise.
9208         * tree-call-cdce.c: Likewise.
9209         * tree-cfg.c: Likewise.
9210         * tree-cfgcleanup.c: Likewise.
9211         * tree-chrec.c: Likewise.
9212         * tree-complex.c: Likewise.
9213         * tree-data-ref.c: Likewise.
9214         * tree-dfa.c: Likewise.
9215         * tree-eh.c: Likewise.
9216         * tree-emutls.c: Likewise.
9217         * tree-if-conv.c: Likewise.
9218         * tree-inline.c: Likewise.
9219         * tree-into-ssa.c: Likewise.
9220         * tree-loop-distribution.c: Likewise.
9221         * tree-mudflap.c: Likewise.
9222         * tree-nested.c: Likewise.
9223         * tree-nrv.c: Likewise.
9224         * tree-object-size.c: Likewise.
9225         * tree-outof-ssa.c: Likewise.
9226         * tree-parloops.c: Likewise.
9227         * tree-phinodes.c: Likewise.
9228         * tree-predcom.c: Likewise.
9229         * tree-pretty-print.c: Likewise.
9230         * tree-profile.c: Likewise.
9231         * tree-scalar-evolution.c: Likewise.
9232         * tree-sra.c: Likewise.
9233         * tree-ssa-address.c: Likewise.
9234         * tree-ssa-alias.c: Likewise.
9235         * tree-ssa-ccp.c: Likewise.
9236         * tree-ssa-coalesce.c: Likewise.
9237         * tree-ssa-copy.c: Likewise.
9238         * tree-ssa-copyrename.c: Likewise.
9239         * tree-ssa-dce.c: Likewise.
9240         * tree-ssa-dom.c: Likewise.
9241         * tree-ssa-dse.c: Likewise.
9242         * tree-ssa-forwprop.c: Likewise.
9243         * tree-ssa-ifcombine.c: Likewise.
9244         * tree-ssa-live.c: Likewise.
9245         * tree-ssa-loop-ch.c: Likewise.
9246         * tree-ssa-loop-im.c: Likewise.
9247         * tree-ssa-loop-ivcanon.c: Likewise.
9248         * tree-ssa-loop-ivopts.c: Likewise.
9249         * tree-ssa-loop-manip.c: Likewise.
9250         * tree-ssa-loop-niter.c: Likewise.
9251         * tree-ssa-loop-prefetch.c: Likewise.
9252         * tree-ssa-loop-unswitch.c: Likewise.
9253         * tree-ssa-loop.c: Likewise.
9254         * tree-ssa-math-opts.c: Likewise.
9255         * tree-ssa-operands.c: Likewise.
9256         * tree-ssa-phiopt.c: Likewise.
9257         * tree-ssa-phiprop.c: Likewise.
9258         * tree-ssa-pre.c: Likewise.
9259         * tree-ssa-propagate.c: Likewise.
9260         * tree-ssa-reassoc.c: Likewise.
9261         * tree-ssa-sccvn.c: Likewise.
9262         * tree-ssa-sink.c: Likewise.
9263         * tree-ssa-strlen.c: Likewise.
9264         * tree-ssa-structalias.c: Likewise.
9265         * tree-ssa-tail-merge.c: Likewise.
9266         * tree-ssa-ter.c: Likewise.
9267         * tree-ssa-threadedge.c: Likewise.
9268         * tree-ssa-threadupdate.c: Likewise.
9269         * tree-ssa-uncprop.c: Likewise.
9270         * tree-ssa-uninit.c: Likewise.
9271         * tree-ssa.c: Likewise.
9272         * tree-ssanames.c: Likewise.
9273         * tree-stdarg.c: Likewise.
9274         * tree-streamer-in.c: Likewise.
9275         * tree-switch-conversion.c: Likewise.
9276         * tree-tailcall.c: Likewise.
9277         * tree-vect-data-refs.c: Likewise.
9278         * tree-vect-generic.c: Likewise.
9279         * tree-vect-loop-manip.c: Likewise.
9280         * tree-vect-loop.c: Likewise.
9281         * tree-vect-patterns.c: Likewise.
9282         * tree-vect-slp.c: Likewise.
9283         * tree-vect-stmts.c: Likewise.
9284         * tree-vectorizer.c: Likewise.
9285         * tree-vrp.c: Likewise.
9286         * tree.c: Likewise.
9287         * tsan.c: Likewise.
9288         * value-prof.c: Likewise.
9289         * var-tracking.c: Likewise.
9290         * varpool.c: Likewise.
9291         * vtable-verify.c: Likewise.
9293 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9295         * config/tilegx/tilegx.c: Include "tree.h".
9297 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9299         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9300         the info, not after it.
9301         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9302         dump_ssaname_info call.
9303         (pp_gimple_stmt_1): Adjust caller.
9304         (dump_phi_nodes): Likewise.  Don't print "# " here.
9306 2013-10-22  Jan Hubicka  <jh@suse.cz>
9308         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9309         tuning flag.
9310         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9311         * i386.c (expand_small_movmem_or_setmem): New function.
9312         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9313         function.
9314         (alg_usable_p): Add support for value ranges; cleanup.
9315         (ix86_expand_set_or_movmem): Add support for misaligned moves.
9317 2013-10-22  Sterling Augustine  <saugustine@google.com>
9319         * doc/invoke.texi: Document -ggnu-pubnames.
9320         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9321         logic.
9322         * dwarf2out.c: Include gdb/gdb-index.h.
9323         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9324         debug_generate_pub_sections.
9325         (is_java, output_pubtables, output_pubname): New functions.
9326         (include_pubname_in_output): Handle debug_generate_pub_sections at
9327         level 2.
9328         (size_of_pubnames): Use new local space_for_flags based on
9329         debug_generate_pub_sections.
9330         (output_pubnames): Unify pubnames and pubtypes output logic.
9331         Genericize comments.  Call output_pubname.
9332         (dwarf2out_finish): Move logic to output_pubnames and call it.
9334 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
9336         PR target/58779
9337         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9338         Remove CCCmode handling.
9339         <case LTU>: Return 'c' suffix for CCCmode.
9340         <case GEU>: Return 'nc' suffix for CCCmode.
9341         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9342         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9343         (*sub<mode>3_cc_overflow): Ditto.
9344         (*subsi3_zext_cc_overflow): Ditto.
9346 2013-10-22  Steve Ellcey  <sellcey@mips.com>
9348         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
9349         (AND (NOT OP1) (NOT OP2)).
9351 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
9353         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9354         meaning of merge-high and merge-low masks for little endian; avoid
9355         use of vector-pack masks for little endian for mismatched modes.
9357 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9359         * config/tilepro/tilepro.c: Include "tree.h".
9361 2013-10-22  Andreas Schwab  <schwab@suse.de>
9363         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9364         with PRE_DEC.
9366 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
9368         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9369         [Ed Smith-Rowland]): New entries.
9370         ([Stephen M. Webb]): Update.
9372 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
9374         * tree-ssa-ter.h: Remove duplicate copy of file contents.
9376 2013-10-21  Marek Polacek  <polacek@redhat.com>
9378         PR middle-end/58809
9379         * fold-const.c (fold_range_test): Return 0 if the type is not
9380         an integral type.
9382 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
9384         * system.h: Move hwint.h include further down.
9385         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
9386         gcc_checking_asserts.
9387         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9389 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9391         Fix volatile issues in optimize_bit_field_compare.
9392         * fold-const.c (optimize_bit_field_compare): Bail out if
9393         lvolatilep or rvolatilep.
9395 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9397         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9398         and get_inner_reference returning different pmode for non-volatile
9399         bit-field members dependent on flag_strict_volatile_bitfields.
9400         * stor-layout.c (layout_decl): Remove special handling of
9401         flag_strict_volatile_bitfields.
9402         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9403         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9405 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
9407         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9408         calculations.
9410 2013-10-21  Jeff Law  <law@redhat.com>
9412         * tree-ssa-threadedge.c (thread_through_normal_block): New
9413         argument VISITED.  Remove VISISTED as a local variable.  When we
9414         have a threadable jump, verify the destination of the jump has not
9415         been visised.
9416         (thread_across_edge): Allocate VISITED bitmap once at function
9417         scope and use it throughout.  Make sure to set appropriate bits in
9418         VISITED for E (start of jump thread path).
9419         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9420         through a joiner if any edge on the path has a recorded jump thread.
9422 2013-10-21  Ian Lance Taylor  <iant@google.com>
9424         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9425         don't imply that attributes can solve all problems.
9426         (Directory Options): Fix typo.
9428 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9430         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9431         extend and extend_add.
9433 2013-10-21  Richard Biener  <rguenther@suse.de>
9435         PR tree-optimization/58794
9436         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9437         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9439 2013-10-21  Richard Biener  <rguenther@suse.de>
9441         PR middle-end/58742
9442         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9443         to (T) X for sign-changing conversions (or no conversion).
9445 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
9447         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9449 2013-10-20  Jan Hubicka  <jh@suse.cz>
9451         * config/i386/i386-tune.def: Add comment; organize into categories
9453 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9455         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9456         argument.  Update function comment.
9457         (expand_set_or_movmem_via_rep): New function combining
9458         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9459         (expand_movmem_via_rep_mov): Remove.
9460         expand_setmem_via_rep_stos): Remove.
9461         (expand_movmem_epilogue): Update calls correspondingly.
9462         (expand_setmem_epilogue_via_loop): Likewise.
9463         (emit_memset): New.
9464         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9465         (expand_set_or_movmem_prologue): New function combining
9466         expand_movmem_prologue and expand_setmem_prologue.
9467         (expand_movmem_prologue): Remove.
9468         (expand_setmem_prologue): Remove.
9469         (expand_set_or_movmem_constant_prologue): New function combining
9470         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9471         (expand_constant_movmem_prologue): Remove.
9472         (expand_constant_setmem_prologue): Remove.
9473         (promote_duplicated_reg): Allow vector-const0 value.
9474         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9475         and ix86_expand_setmem.
9476         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9477         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9479 2013-10-21  Diego Novillo  <dnovillo@google.com>
9481         * asan.c: Include tree.h
9482         * bb-reorder.c: Likewise.
9483         * cfgcleanup.c: Likewise.
9484         * cfgloopmanip.c: Likewise.
9485         * data-streamer-in.c: Likewise.
9486         * data-streamer-out.c: Likewise.
9487         * data-streamer.c: Likewise.
9488         * dwarf2cfi.c: Likewise.
9489         * graphite-blocking.c: Likewise.
9490         * graphite-clast-to-gimple.c: Likewise.
9491         * graphite-dependences.c: Likewise.
9492         * graphite-interchange.c: Likewise.
9493         * graphite-optimize-isl.c: Likewise.
9494         * graphite-poly.c: Likewise.
9495         * graphite-scop-detection.c: Likewise.
9496         * graphite-sese-to-poly.c: Likewise.
9497         * graphite.c: Likewise.
9498         * ipa-devirt.c: Likewise.
9499         * ipa-profile.c: Likewise.
9500         * ipa.c: Likewise.
9501         * ira.c: Likewise.
9502         * loop-init.c: Likewise.
9503         * loop-unroll.c: Likewise.
9504         * lower-subreg.c: Likewise.
9505         * lto/lto-object.c: Likewise.
9506         * recog.c: Likewise.
9507         * reginfo.c: Likewise.
9508         * tree-loop-distribution.c: Likewise.
9509         * tree-parloops.c: Likewise.
9510         * tree-ssa-strlen.c: Likewise.
9511         * tree-streamer.c: Likewise.
9512         * value-prof.c: Likewise.
9513         * target-globals.c: Likewise.
9514         * expr.h: Include tree-core.h instead of tree.h.
9515         * gimple.h: Likewise.
9516         * ipa-prop.h: Likewise.
9517         * ipa-utils.h: Likewise.
9518         * lto-streamer.h: Likewise.
9519         * streamer-hooks.h: Likewise.
9520         * ipa-reference.h: Include cgraph.h instead of tree.h.
9521         * cgraph.h: Include basic-block.h instead of tree.h.
9522         * tree-streamer.h: Do not include tree.h.
9523         * genattrtab.c (write_header): Generate inclusion of tree.h.
9524         * genautomata.c (main): Likewise.
9525         * genemit.c: Likewise.
9526         * genopinit.c: Likewise.
9527         * genoutput.c (output_prologue): Likewise.
9528         * genpeep.c: Likewise.
9530 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9532         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9533         little endian.
9534         (vec_unpacku_hi_v8hi): Likewise.
9535         (vec_unpacku_lo_v16qi): Likewise.
9536         (vec_unpacku_lo_v8hi): Likewise.
9538 2013-10-20  Jan Hubicka  <jh@suse.cz>
9540         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9541         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9542         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9544 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
9546         * config/mips/mips.h (ISA_HAS_WSBH): Define.
9547         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9548         constants.
9549         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9551 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
9553         PR target/58603
9554         * system.h: Undef m_slot.
9556 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9558         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9559         all elements for both endian flavors.
9561 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9563         PR target/58792
9564         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9565         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
9566         and SI_REG for 64bit SYSV ABI targets.
9568 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9570         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9571         to multi_reg_return.  Clarify that we are skipping USEs of multiple
9572         return registers.  Use bool type where appropriate.
9574 2013-10-18  Jan Hubicka  <jh@suse.cz>
9576         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9577         for cold functions.
9578         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9579         (X86_TUNE_PUSH_MEMORY): Likewise.
9580         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9581         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9582         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9583         New.
9584         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9585         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9586         Remove.
9587         (ix86_option_override_internal): Update to use tune features instead
9588         of variables.
9590 2013-10-18  Cong Hou  <congh@google.com>
9592         PR tree-optimization/58508
9593         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9594         statement that contains data refs with zero-step.
9596 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9598         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9599         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9600         * gimple-low.c (gimple_check_call_arg,
9601         gimple_check_call_matching_types): Move to cgraph.c.
9602         * gimple-low.h: Remove prototype.
9603         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9604         Relocate from gimple-low.c.
9605         * cgraph.h: Add prototype.  Don't include basic-block.h.
9606         * gimplify.c: Add gimple-low to include list.
9607         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9608         * tree-eh.c: Add gimple-low to include list.
9609         * tree-nested.c: Likewise.
9610         * cfgexpand.c: Add tree-ssa-address.h to include list.
9611         * expr.c: Likewise.
9612         * gimple-fold.c: Likewise.
9613         * gimple-ssa-strength-reduction.c: Likewise.
9614         * trans-mem.c: Likewise.
9615         * tree-mudflap.c: Likewise.
9616         * tree-ssa-loop-ivopts.c: Likewise.
9617         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9618         (degenerate_phi_result): Move to tree-phinodes.c.
9619         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9620         * tree-ssa-threadedge.c: Likewise.
9621         * tree-vrp.c: Likewise.
9622         * tree-phinodes.c (degenerate_phi_result): Relocate here.
9623         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9624         * tree-phinodes.h (degenerate_phi_result): Add prototype.
9625         * tree-ssa-copy.c: Include tree-ssa-dom.h.
9626         * tree-ssa-forwprop.c: Likewise.
9627         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9628         pass_data_cleanup_cfg_post_optimizing,
9629         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9630         * tree-optimize.c: Delete File.
9631         * graphite.c: Include tree-cfgcleanup.h.
9632         * passes.c: Likewise.
9633         * tree-cfg.c: Likewise.
9634         * tree-profile.c: Likewise.
9635         * tree-ssa-dse.c: Likewise.
9636         * tree-ssa-loop-ivcanon.c: Likewise.
9637         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9638         * tree-outof-ssa.c: Include sbitmap.h.
9639         * tree-ssa-live.c: Likewise.
9640         * tree-ssa-propagate.c: Likewise.
9641         * tree-ssa-structalias.c: Likewise.
9642         * tree-stdarg.c: Likewise.
9643         * Makefile.in (OBJS): Delete tree-optimize.o.
9644         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9645         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9646         * varasm.c: Include basic-block.h.
9647         * cfgloop.h: Include function.h instead of basic-block.h
9648         (bb_loop_depth): Move to cfgloop.c.
9649         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9651 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9653         * predict.c (probably_never_executed): Compare frequency-based
9654         count to number of training runs.
9655         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9657 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9659         * config/arm/arm.c (cortexa9_extra_costs): New table.
9660         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
9662 2013-10-18  Jeff Law  <law@redhat.com>
9664         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
9666         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
9667         (register_jump_thread): Add "registered_jump_thread" debug
9668         counter support.
9669         * dbgcnt.def (registered_jump_thread): New debug counter.
9671 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9673         * config/rs6000/rs6000.c: Include cgraph.h.
9675 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9677         * tree-ssa-tail-merge.c (replace_block_by): Update edge
9678         weights during merging.
9680 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9682         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
9683         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9684         * tree-ssa-operands.h: Remove prototype.
9685         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9686         * gimple.c (virtual_operand_p): Relocate from gimple.c.
9687         * gimple.h: Add prototype.
9688         * gimple-ssa.h: Include tree-ssa-operands.h.
9689         * tree-dump.c: Add tree-cfg.h to include list.
9690         * tree-ssa-alias.c: Add ipa-reference.h to include list.
9691         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9692         * config/i386/i386.c: Don't include tree-flow.h.
9693         * config/rs6000/rs6000.c: Likewise.
9695 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9697         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9699 2013-10-18  Richard Biener  <rguenther@suse.de>
9701         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9702         or TYPE_UNSIGNED of integral types.
9703         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9704         NULL_TREE for zero-precision integral types.
9706 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
9708         * config/aarch64/arm_neon.h
9709         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9711 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
9713         PR target/57756
9714         * opth-gen.awk: Define target_flags_explicit.
9716 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9718         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9719         fields to the reg_addr array that describes the valid addressing
9720         mode for any register, general purpose registers, floating point
9721         registers, and Altivec registers.
9722         (FIRST_RELOAD_REG_CLASS): Likewise.
9723         (LAST_RELOAD_REG_CLASS): Likewise.
9724         (struct reload_reg_map_type): Likewise.
9725         (reload_reg_map_type): Likewise.
9726         (RELOAD_REG_VALID): Likewise.
9727         (RELOAD_REG_MULTIPLE): Likewise.
9728         (RELOAD_REG_INDEXED): Likewise.
9729         (RELOAD_REG_OFFSET): Likewise.
9730         (RELOAD_REG_PRE_INCDEC): Likewise.
9731         (RELOAD_REG_PRE_MODIFY): Likewise.
9732         (reg_addr): Likewise.
9733         (mode_supports_pre_incdec_p): New helper functions to say whether
9734         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9735         (mode_supports_pre_modify_p): Likewise.
9736         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9737         print the valid address mode bits for each mode.
9738         (rs6000_debug_print_mode): Likewise.
9739         (rs6000_debug_reg_global): Likewise.
9740         (rs6000_setup_reg_addr_masks): New function to set up the address
9741         mask bits for each type.
9742         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9743         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9744         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9745         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9746         PRE_MODIFY are supported.
9747         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9748         registers, instead of {src,dest}_av_p.
9749         (rs6000_print_options_internal): Tweak the debug output slightly.
9751 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9753         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
9754         isa attribute.
9756 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
9758         * tree-flow.h (struct omp_region): Move to omp-low.c.
9759         Remove omp_ prototypes and variables.
9760         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
9761         (copy_var_decl): Relocate prototype from tree-flow.h.
9762         * gimple.c (copy_var_decl): Relocate from omp-low.c.
9763         * tree.h: Move prototype to omp-low.h.
9764         * omp-low.h: New File.  Relocate prototypes here.
9765         * omp-low.c (struct omp_region): Make local here.
9766         (root_omp_region): Make static.
9767         (copy_var_decl) Move to gimple.c.
9768         (new_omp_region): Make static.
9769         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
9770         * tree-cfg.c: Include omp-low.h.
9771         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
9772         * gimplify.c: Include omp-low.h.
9773         * tree-parloops.c: Likewise.
9775 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9777         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
9778         operands are in memory, prefer to force non-matched operand 1 to
9779         the register.
9781 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9783         PR target/58673
9784         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
9785         restrict TImode addresses to single indirect registers if both
9786         -mquad-memory and -mvsx-timode are used.
9787         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
9788         we should emit load/store quad.  Remove using %y for quad memory
9789         addresses.
9791         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
9792         constraints to allow load/store quad on machines where TImode is
9793         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
9794         for TImode to load integer constants.
9796 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9798         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
9800 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9802         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
9803         handling of STACK_REG.
9805 2013-10-17  Richard Biener  <rguenther@suse.de>
9807         PR tree-optimization/58143
9808         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
9809         New function.
9810         (rewrite_to_defined_overflow): Likewise.
9811         (move_computations_dom_walker::before_dom): Rewrite stmts
9812         with undefined signed overflow that are not always executed
9813         into unsigned arithmetic.
9815 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
9817         PR target/57756
9818         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
9819         explicit isa flag to be an options variable, instead of using
9820         global_options_set.  Remove define from rs6000.h.
9821         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
9823         * config/rs6000/rs6000.c (rs6000_option_override_internal):
9824         Initialize rs6000_isa_flags_explicit.
9825         (rs6000_function_specific_save): Add gcc_options* parameter, so
9826         that the powerpc builds after the 2013-10-15 changes.
9827         (rs6000_function_specific_restore): Likewise.
9829 2013-10-16  DJ Delorie  <dj@redhat.com>
9831         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
9832         op is a REG before checking REGNO.
9833         (rl78_alloc_physical_registers): Verify pattern is a SET before
9834         checking SET_SRC.
9836 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9838         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
9839         endianness.
9840         (vec_unpacks_lo_v4sf): Likewise.
9841         (vec_unpacks_float_hi_v4si): Likewise.
9842         (vec_unpacks_float_lo_v4si): Likewise.
9843         (vec_unpacku_float_hi_v4si): Likewise.
9844         (vec_unpacku_float_lo_v4si): Likewise.
9846 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9848         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
9849         (vsx_concat_v2sf): Likewise.
9851 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
9853         * config/aarch64/aarch64.md
9854         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
9856 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
9858         PR tree-optimization/58697
9859         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
9860         estimated_loop_iterations_int.
9861         (max_stmt_executions_int): Call get_max_loop_iterations_int.
9862         (get_max_loop_iterations_int): New.  HWINT version of
9863         get_max_loop_iterations.
9864         * cfgloop.h: Add prototypes.
9865         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
9866         * loop-unroll.c (decide_peel_once_rolling): Call
9867         get_estimated_loop_iterations_int.
9868         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
9869         * tree-ssa-loop-niter.h: Tweak prototypes.
9871 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
9873         * gengtype-parse.c (struct_field_seq): Ignore access-control
9874         keywords ("public:" etc).
9876 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9878         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
9879         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
9881 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
9883         * config/arm/arm.opt (mlra): New option.
9884         * config/arm/arm.c (arm_lra_p): New function.
9885         (TARGET_LRA_P): Define.
9887 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
9889         * tree-core.h (tree_code_name): Remove.
9890         * tree.h (get_tree_code_name): New prototype.
9891         * tree.c (tree_code_name): Make static.
9892         (get_tree_code_name): New function.
9893         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
9894         tree_class_check_failed, tree_range_check_failed,
9895         tree_not_class_check_failed, omp_clause_check_failed,
9896         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
9897         wrapper get_tree_code_name instead of calling tree_code_name directly.
9898         * tree-vrp.c (dump_asserts_for): Likewise.
9899         * tree-dump.c (dequeue_and_dump): Likewise.
9900         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
9901         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
9902         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
9903         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
9904         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
9905         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
9906         dump_gimple_omp_for): Likewise.
9907         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
9908         * tree-ssa-pre.c (print_pre_expr): Likewise.
9909         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
9910         * print-tree.c (print_node_brief, print_node): Likewise.
9911         * gimple.c (gimple_check_failed): Likewise.
9912         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
9913         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
9914         * config/mep/mep.c (mep_validate_vliw): Likewise.
9915         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
9916         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9918 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9920         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
9921         for AMD bdver3.
9923 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
9925         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9926         (MULTILIB_MATCHES): Add multilib for -march=v8.
9928 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
9930         PR target/57756
9931         * optc-save-gen.awk: Add extra parameter to the save and restore
9932         target calls.
9933         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
9934         * tree.c (build_optimization_node): New parameter.  Add extra parameter
9935         to call to cl_optimization_save.
9936         (build_target_option_node): New parameter. Add extra parameter
9937         to call to cl_target_option_save.
9938         * tree.h (build_optimization_node): New parameter.
9939         (build_target_option_node): New parameter.
9940         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
9941         build_optimization_node and build_target_option_node.
9942         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
9943         (handle_pragma_push_options): Ditto.
9944         * toplev.c (process_options): Ditto.
9945         * opts.c (init_options_struct): Check for opts_set non-null.
9946         * target.def (target_option.save): New parameter.
9947         (target_option.restore): New parameter.
9948         * tm.texi: Generate.
9949         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
9950         (ix86_pragma_target_parse): Ditto.
9951         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
9952         parameters.
9953         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
9954         to  build_optimization_node and build_target_option_node.
9955         (rs6000_valid_attribute_p): Ditto.
9956         (rs6000_pragma_target_parse): Ditto.
9957         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
9958         data.
9959         * config/i386/i386.h:
9960         TARGET_64BIT_P: New Macro
9961         TARGET_MMX_P: New Macro.
9962         TARGET_3DNOW_P: New Macro.
9963         TARGET_3DNOW_A_P: New Macro.
9964         TARGET_SSE_P: New Macro.
9965         TARGET_SSE2_P: New Macro.
9966         TARGET_SSE3_P: New Macro.
9967         TARGET_SSSE3_P: New Macro.
9968         TARGET_SSE4_1_P: New Macro.
9969         TARGET_SSE4_2_P: New Macro.
9970         TARGET_AVX_P: New Macro.
9971         TARGET_AVX2_P: New Macro.
9972         TARGET_AVX512F_P: New Macro.
9973         TARGET_AVX512PF_P: New Macro.
9974         TARGET_AVX512ER_P: New Macro.
9975         TARGET_AVX512CD_P: New Macro.
9976         TARGET_FMA_P: New Macro.
9977         TARGET_SSE4A_P: New Macro.
9978         TARGET_FMA4_P: New Macro.
9979         TARGET_XOP_P: New Macro.
9980         TARGET_LWP_P: New Macro.
9981         TARGET_ABM_P: New Macro.
9982         TARGET_BMI_P: New Macro.
9983         TARGET_BMI2_P: New Macro.
9984         TARGET_LZCNT_P: New Macro.
9985         TARGET_TBM_P: New Macro.
9986         TARGET_POPCNT_P: New Macro.
9987         TARGET_SAHF_P: New Macro.
9988         TARGET_MOVBE_P: New Macro.
9989         TARGET_CRC32_P: New Macro.
9990         TARGET_AES_P: New Macro.
9991         TARGET_PCLMUL_P: New Macro.
9992         TARGET_CMPXCHG16B_P: New Macro.
9993         TARGET_FSGSBASE_P: New Macro.
9994         TARGET_RDRND_P: New Macro.
9995         TARGET_F16C_P: New Macro.
9996         TARGET_RTM_P: New Macro.
9997         TARGET_HLE_P: New Macro.
9998         TARGET_RDSEED_P: New Macro.
9999         TARGET_PRFCHW_P: New Macro.
10000         TARGET_ADX_P: New Macro.
10001         TARGET_FXSR_P: New Macro.
10002         TARGET_XSAVE_P: New Macro.
10003         TARGET_XSAVEOPT_P: New Macro.
10004         TARGET_LP64_P: New Macro.
10005         TARGET_X32_P: New Macro.
10006         TARGET_FPMATH_DEFAULT_P: New Macro.
10007         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10008         * config/i386/i386.c (ix86_option_override_internal): New parameters.
10009         opts and opts_set.
10010         Change ix86_tune_string to access opts->x_ix86_tune_string.
10011         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10012         Change ix86_arch_string to access opts->x_ix86_arch_string.
10013         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10014         Change ix86_pmode to access opts->x_ix86_pmode.
10015         Change ix86_abi to access opts->x_ix86_abi.
10016         Change ix86_cmodel to access opts->x_ix86_cmodel.
10017         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10018         Change ix86_isa_flags_explicit to access
10019         opts->x_ix86_isa_flags_explicit.
10020         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10021         Change ix86_regparm to access opts->x_ix86_regparm.
10022         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10023         Change ix86_preferred_stack_boundary_arg to access
10024         opts->x_ix86_preferred_stack_boundary_arg.
10025         Change ix86_force_align_arg_pointer to access
10026         opts->x_ix86_force_align_arg_pointer.
10027         Change ix86_incoming_stack_boundar_arg to access
10028         opts->x_ix86_incoming_stack_boundar_arg.
10029         Change ix86_fpmath to access opts->x_ix86_fpmath.
10030         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10031         Change ix86_recip_name to access opts->x_ix86_recip_name.
10032         Change ix86_stack_protector_guard to access
10033         opts->x_ix86_stack_protector_guard.
10034         Change ix86_tune_memcpy_strategy to access
10035         opts->x_ix86_tune_memcpy_strategy.
10036         Change ix86_tune_memset_strategy to access
10037         opts->x_ix86_tune_memset_strategy.
10038         Change global_options to access opts.
10039         Change global_options_set to access opts_set.
10040         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10041         Change TARGET_MMX to TARGET_MMX_P (opts->...).
10042         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10043         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10044         Change TARGET_SSE to TARGET_SSE_P (opts->...).
10045         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10046         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10047         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10048         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10049         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10050         Change TARGET_AVX to TARGET_AVX_P (opts->...).
10051         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10052         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10053         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10054         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10055         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10056         Change TARGET_FMA to TARGET_FMA_P (opts->...).
10057         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10058         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10059         Change TARGET_XOP to TARGET_XOP_P (opts->...).
10060         Change TARGET_LWP to TARGET_LWP_P (opts->...).
10061         Change TARGET_ABM to TARGET_ABM_P (opts->...).
10062         Change TARGET_BMI to TARGET_BMI_P (opts->...).
10063         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10064         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10065         Change TARGET_TBM to TARGET_TBM_P (opts->...).
10066         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10067         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10068         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10069         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10070         Change TARGET_AES to TARGET_AES_P (opts->...).
10071         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10072         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10073         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10074         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10075         Change TARGET_F16C to TARGET_F16C_P (opts->...).
10076         Change TARGET_RTM to TARGET_RTM_P (opts->...).
10077         Change TARGET_HLE to TARGET_HLE_P (opts->...).
10078         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10079         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10080         Change TARGET_ADX to TARGET_ADX_P (opts->...).
10081         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10082         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10083         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10084         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10085         Change TARGET_X32 to TARGET_X32_P (opts->...).
10086         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10087         Change TARGET_FLOAT_RETURNS_IN_80387 to
10088         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10089         (ix86_function_specific_save): New parameter. Use opts-> fields
10090         to replace global fields.
10091         (ix86_function_specific_restore): Ditto.
10092         (ix86_valid_target_attribute_inner_p): New parameters.
10093         Fix recursive call.
10094         Fix call to ix86_handle_option and set_option.
10095         (ix86_valid_target_attribute_tree): New parameters.
10096         Change global_options to access opts.
10097         Change global_options_set to access opts_set.
10098         Fix call to ix86_valid_target_attribute_inner_p.
10099         Change ix86_tune_string to access opts->x_ix86_tune_string.
10100         Change ix86_arch_string to access opts->x_ix86_arch_string.
10101         Change ix86_fpmath to access opts->x_ix86_fpmath
10102         Fix call to ix86_option_override_internal.
10103         Fix call to ix86_add_new_builtins.
10104         Fix calls to build_optimization_node and build_target_option_node.
10105         (ix86_valid_target_attribute_p): Remove access to global_options.
10106         Use new gcc_options structure func_options.
10107         Fix call to ix86_valid_target_attribute_tree.
10108         Fix call to  build_optimization_node.
10109         (get_builtin_code_for_version): Fix call to
10110         ix86_valid_target_attribute_tree.
10112 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
10114         * Makefile.in (PICFLAG): New.
10115         (enable_host_shared): New.
10116         (INTERNAL_CFLAGS): Use PICFLAG.
10117         (LIBIBERTY): Use pic build of libiberty.a if configured with
10118         --enable-host-shared.
10119         * configure.ac: Add --enable-host-shared, setting up new
10120         PICFLAG variable.
10121         * configure: Regenerate.
10122         * doc/install.texi (--enable-shared): Add note contrasting it with ...
10123         (--enable-host-shared): New option.
10125 2013-10-15  Richard Biener  <rguenther@suse.de>
10127         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10128         for built-in functions.
10130 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10132         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10133         (optimize_range_tests_1): New function,
10134         extracted from optimize_range_tests.
10135         (optimize_range_tests_xor): Similarly.
10136         (optimize_range_tests_diff): New function.
10137         (optimize_range_tests): Use optimize_range_tests_1.
10139 2013-10-15  Cong Hou  <congh@google.com>
10141         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10142         requirement of the reduction pattern so that one operand of the
10143         reduction operation can come from outside of the loop.
10145 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10147         * config/arm/neon-schedgen.ml: Remove.
10148         * config/arm/cortex-a9-neon.md: Remove comment regarding
10149         neon-schedgen.ml.
10151 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10153         * config/arm/types: Remove old neon types.
10155 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10157         * config/arm/cortex-a7.md
10158         (cortex_a7_neon_type): New.
10159         (cortex_a7_neon_mul): Update for new types.
10160         (cortex_a7_neon_mla): Likewise.
10161         (cortex_a7_neon): Likewise.
10163 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10165         * config/arm/cortex-a15-neon.md
10166         (cortex_a15_neon_type): New,
10168         (cortex_a15_neon_int_1): Remove.
10169         (cortex_a15_neon_int_2): Likewise.
10170         (cortex_a15_neon_int_3): Likewise.
10171         (cortex_a15_neon_int_4): Likewise.
10172         (cortex_a15_neon_int_5): Likewise.
10173         (cortex_a15_neon_vqneg_vqabs): Likewise.
10174         (cortex_a15_neon_vmov): Likewise.
10175         (cortex_a15_neon_vaba): Likewise.
10176         (cortex_a15_neon_vaba_qqq): Likewise.
10177         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10178         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10179         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10180         Likewise.
10181         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10182         (cortex_a15_neon_mla_qqq_8_16): Likewise.
10183         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10184         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10185         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10186         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10187         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10188         (cortex_a15_neon_shift_1): Likewise.
10189         (cortex_a15_neon_shift_2): Likewise.
10190         (cortex_a15_neon_shift_3): Likewise.
10191         (cortex_a15_neon_vshl_ddd): Likewise.
10192         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10193         (cortex_a15_neon_vsra_vrsra): Likewise.
10194         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10195         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10196         (cortex_a15_neon_bp_3cycle): Likewise.
10197         (cortex_a15_neon_ldm_2): Likewise.
10198         (cortex_a15_neon_stm_2): Likewise.
10199         (cortex_a15_neon_mcr): Likewise.
10200         (cortex_a15_neon_mrc): Likewise.
10201         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10202         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10203         (cortex_a15_neon_fp_vmul_ddd): Likewise.
10204         (cortex_a15_neon_fp_vmul_qqd): Likewise.
10205         (cortex_a15_neon_fp_vmla_ddd): Likewise.
10206         (cortex_a15_neon_fp_vmla_qqq): Likewise.
10207         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10208         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10209         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10210         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10211         (cortex_a15_neon_bp_simple): Likewise.
10212         (cortex_a15_neon_bp_2cycle): Likewise.
10213         (cortex_a15_neon_bp_3cycle): Likewise.
10214         (cortex_a15_neon_vld1_1_2_regs): Likewise.
10215         (cortex_a15_neon_vld1_3_4_regs): Likewise.
10216         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10217         (cortex_a15_neon_vld2_4_regs): Likewise.
10218         (cortex_a15_neon_vld3_vld4): Likewise.
10219         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10220         (cortex_a15_neon_vst1_3_4_regs): Likewise.
10221         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10222         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10223         (cortex_a15_neon_vst3_vst4): Rename to...
10224         (cortex_a15_neon_vst4): This, update for new attributes.
10225         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10226         (cortex_a15_neon_vld3_vld4_lane): Likewise.
10227         (cortex_a15_neon_vst1_vst2_lane): Likewise.
10228         (cortex_a15_neon_vst3_vst4_lane): Likewise.
10229         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10230         (cortex_a15_neon_ldm_2): Likewise.
10231         (cortex_a15_neon_stm_2): Likewise.
10232         (cortex_a15_neon_mcr): Likewise.
10233         (cortex_a15_neon_mcr_2_mcrr): Likewise.
10234         (cortex_a15_neon_mrc): Likewise.
10235         (cortex_a15_neon_mrrc): Likewise.
10237         (cortex_a15_neon_abd): New.
10238         (cortex_a15_neon_abd_q): Likewise.
10239         (cortex_a15_neon_aba): Likewise.
10240         (cortex_a15_neon_aba_q): Likewise.
10241         (cortex_a15_neon_acc): Likewise.
10242         (cortex_a15_neon_acc_q): Likewise.
10243         (cortex_a15_neon_arith_basic): Likewise.
10244         (cortex_a15_neon_arith_complex): Likewise.
10245         (cortex_a15_neon_multiply): Likewise.
10246         (cortex_a15_neon_multiply_q): Likewise.
10247         (cortex_a15_neon_mla): Likewise.
10248         (cortex_a15_neon_mla_q): Likewise.
10249         (cortex_a15_neon_sat_mla_long): Likewise.
10250         (cortex_a15_neon_shift_acc): Likewise.
10251         (cortex_a15_neon_shift_imm_basic): Likewise.
10252         (cortex_a15_neon_shift_imm_complex): Likewise.
10253         (cortex_a15_neon_shift_reg_basic): Likewise.
10254         (cortex_a15_neon_shift_reg_basic_q): Likewise.
10255         (cortex_a15_neon_shift_reg_complex): Likewise.
10256         (cortex_a15_neon_shift_reg_complex_q): Likewise.
10257         (cortex_a15_neon_fp_negabs): Likewise
10258         (cortex_a15_neon_fp_arith): Likewise
10259         (cortex_a15_neon_fp_arith_q): Likewise
10260         (cortex_a15_neon_fp_cvt_int): Likewise
10261         (cortex_a15_neon_fp_cvt_int_q): Likewise
10262         (cortex_a15_neon_fp_cvt_16): Likewise
10263         (cortex_a15_neon_fp_mul): Likewise
10264         (cortex_a15_neon_fp_mul_q): Likewise
10265         (cortex_a15_neon_fp_mla): Likewise
10266         (cortex_a15_neon_fp_mla_q): Likewise
10267         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10268         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10269         (cortex_a15_neon_bitops): Likewise.
10270         (cortex_a15_neon_bitops_q): Likewise.
10271         (cortex_a15_neon_from_gp): Likewise.
10272         (cortex_a15_neon_from_gp_q): Likewise.
10273         (cortex_a15_neon_tbl3_tbl4): Likewise.
10274         (cortex_a15_neon_zip_q): Likewise.
10275         (cortex_a15_neon_to_gp): Likewise.
10276         (cortex_a15_neon_load_a): Likewise.
10277         (cortex_a15_neon_load_b): Likewise.
10278         (cortex_a15_neon_load_c): Likewise.
10279         (cortex_a15_neon_load_d): Likewise.
10280         (cortex_a15_neon_load_e): Likewise.
10281         (cortex_a15_neon_load_f): Likewise.
10282         (cortex_a15_neon_store_a): Likewise.
10283         (cortex_a15_neon_store_b): Likewise.
10284         (cortex_a15_neon_store_c): Likewise.
10285         (cortex_a15_neon_store_d): Likewise.
10286         (cortex_a15_neon_store_e): Likewise.
10287         (cortex_a15_neon_store_f): Likewise.
10288         (cortex_a15_neon_store_g): Likewise.
10289         (cortex_a15_neon_store_h): Likewise.
10290         (cortex_a15_vfp_to_from_gp): Likewise.
10292 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10294         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10296         (cortex_a9_neon_vshl_ddd): Remove.
10297         (cortex_a9_neon_vst3_vst4): Likewise.
10298         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10300         (cortex_a9_neon_bit_ops_q): New.
10302         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10303         (cortex_a9_neon_int_2): Likewise.
10304         (cortex_a9_neon_int_3): Likewise.
10305         (cortex_a9_neon_int_4): Likewise.
10306         (cortex_a9_neon_int_5): Likewise.
10307         (cortex_a9_neon_vqneg_vqabs): Likewise.
10308         (cortex_a9_neon_vmov): Likewise.
10309         (cortex_a9_neon_vaba): Likewise.
10310         (cortex_a9_neon_vaba_qqq): Likewise.
10311         (cortex_a9_neon_shift_1): Likewise.
10312         (cortex_a9_neon_shift_2): Likewise.
10313         (cortex_a9_neon_shift_3): Likewise.
10314         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10315         (cortex_a9_neon_vsra_vrsra): Likewise.
10316         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10317         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10318         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10319         Likewise.
10320         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10321         (cortex_a9_neon_mla_qqq_8_16): Likewise.
10322         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10323         Likewise.
10324         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10325         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10326         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10327         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10328         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10329         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10330         (cortex_a9_neon_fp_vsum): Likewise.
10331         (cortex_a9_neon_fp_vmul_ddd): Likewise.
10332         (cortex_a9_neon_fp_vmul_qqd): Likewise.
10333         (cortex_a9_neon_fp_vmla_ddd): Likewise.
10334         (cortex_a9_neon_fp_vmla_qqq): Likewise.
10335         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10336         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10337         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10338         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10339         (cortex_a9_neon_bp_simple): Likewise.
10340         (cortex_a9_neon_bp_2cycle): Likewise.
10341         (cortex_a9_neon_bp_3cycle): Likewise.
10342         (cortex_a9_neon_ldr): Likewise.
10343         (cortex_a9_neon_str): Likewise.
10344         (cortex_a9_neon_vld1_1_2_regs): Likewise.
10345         (cortex_a9_neon_vld1_3_4_regs): Likewise.
10346         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10347         (cortex_a9_neon_vld2_4_regs): Likewise.
10348         (cortex_a9_neon_vld3_vld4): Likewise.
10349         (cortex_a9_neon_vld1_vld2_lane): Likewise.
10350         (cortex_a9_neon_vld3_vld4_lane): Likewise.
10351         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10352         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10353         (cortex_a9_neon_vst1_3_4_regs): Likewise.
10354         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10355         (cortex_a9_neon_vst1_vst2_lane): Likewise.
10356         (cortex_a9_neon_vst3_vst4_lane): Likewise.
10357         (cortex_a9_neon_mcr): Likewise.
10358         (cortex_a9_neon_mcr_2_mcrr): Likewise.
10359         (cortex_a9_neon_mrc): Likewise.
10360         (cortex_a9_neon_mrrc): Likewise.
10362 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10364         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10366         (cortex_a8_neon_vshl_ddd): Remove.
10367         (cortex_a8_neon_vst3_vst4): Likewise.
10368         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10370         (cortex_a8_neon_bit_ops_q): New.
10372         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10373         (cortex_a8_neon_int_2): Likewise..
10374         (cortex_a8_neon_int_3): Likewise.
10375         (cortex_a8_neon_int_5): Likewise.
10376         (cortex_a8_neon_vqneg_vqabs): Likewise.
10377         (cortex_a8_neon_int_4): Likewise.
10378         (cortex_a8_neon_vaba): Likewise.
10379         (cortex_a8_neon_vaba_qqq): Likewise.
10380         (cortex_a8_neon_shift_1): Likewise.
10381         (cortex_a8_neon_shift_2): Likewise.
10382         (cortex_a8_neon_shift_3): Likewise.
10383         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10384         (cortex_a8_neon_vsra_vrsra): Likewise.
10385         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10386         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10387         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10388         Likewise.
10389         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10390         (cortex_a8_neon_mla_qqq_8_16): Likewise.
10391         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10392         Likewise.
10393         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10394         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10395         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10396         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10397         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10398         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10399         (cortex_a8_neon_fp_vsum): Likewise.
10400         (cortex_a8_neon_fp_vmul_ddd): Likewise.
10401         (cortex_a8_neon_fp_vmul_qqd): Likewise.
10402         (cortex_a8_neon_fp_vmla_ddd): Likewise.
10403         (cortex_a8_neon_fp_vmla_qqq): Likewise.
10404         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10405         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10406         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10407         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10408         (cortex_a8_neon_bp_simple): Likewise.
10409         (cortex_a8_neon_bp_2cycle): Likewise.
10410         (cortex_a8_neon_bp_3cycle): Likewise.
10411         (cortex_a8_neon_ldr): Likewise.
10412         (cortex_a8_neon_str): Likewise.
10413         (cortex_a8_neon_vld1_1_2_regs): Likewise.
10414         (cortex_a8_neon_vld1_3_4_regs): Likewise.
10415         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10416         (cortex_a8_neon_vld2_4_regs): Likewise.
10417         (cortex_a8_neon_vld3_vld4): Likewise.
10418         (cortex_a8_neon_vld1_vld2_lane): Likewise.
10419         (cortex_a8_neon_vld3_vld4_lane): Likewise.
10420         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10421         (cortex_a8_neon_vst1_3_4_regs): Likewise.
10422         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10423         (cortex_a8_neon_vst1_vst2_lane): Likewise.
10424         (cortex_a8_neon_vst3_vst4_lane): Likewise.
10425         (cortex_a8_neon_mcr): Likewise.
10426         (cortex_a8_neon_mcr_2_mcrr): Likewise.
10427         (cortex_a8_neon_mrc): Likewise.
10428         (cortex_a8_neon_mrrc): Likewise.
10430 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10432         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10433         (fp): New.
10434         * config/aarch64/aarch64-simd.md (neon_type): Remove.
10435         (aarch64_simd_dup<mode>): Add "type" attribute.
10436         (aarch64_dup_lane<mode>): Likewise.
10437         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10438         (*aarch64_simd_mov<mode>): Likewise.
10439         (aarch64_simd_mov_from_<mode>low): Likewise.
10440         (aarch64_simd_mov_from_<mode>high): Likewise.
10441         (orn<mode>3): Likewise.
10442         (bic<mode>3): Likewise.
10443         (add<mode>3): Likewise.
10444         (sub<mode>3): Likewise.
10445         (mul<mode>3): Likewise.
10446         (*aarch64_mul3_elt<mode>): Likewise.
10447         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10448         (*aarch64_mul3_elt_to_128df): Likewise.
10449         (*aarch64_mul3_elt_to_64v2df): Likewise.
10450         (neg<mode>2): Likewise.
10451         (abs<mode>2): Likewise.
10452         (abd<mode>_3): Likewise.
10453         (aba<mode>_3): Likewise.
10454         (fabd<mode>_3): Likewise.
10455         (*fabd_scalar<mode>3): Likewise.
10456         (and<mode>3): Likewise.
10457         (ior<mode>3): Likewise.
10458         (xor<mode>3): Likewise.
10459         (one_cmpl<mode>2): Likewise.
10460         (aarch64_simd_vec_set<mode>): Likewise.
10461         (aarch64_simd_lshr<mode>): Likewise.
10462         (aarch64_simd_ashr<mode>): Likewise.
10463         (aarch64_simd_imm_shl<mode>): Likewise.
10464         (aarch64_simd_reg_sshl<mode): Likewise.
10465         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10466         (aarch64_simd_reg_shl<mode>_signed): Likewise.
10467         (aarch64_simd_vec_setv2di): Likewise.
10468         (aarch64_simd_vec_set<mode>): Likewise.
10469         (aarch64_mla<mode>): Likewise.
10470         (*aarch64_mla_elt<mode>): Likewise.
10471         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10472         (aarch64_mls<mode>): Likewise.
10473         (*aarch64_mls_elt<mode>): Likewise.
10474         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10475         (<su><maxmin><mode>3): Likewise.
10476         (move_lo_quad_<mode>): Likewise.
10477         (aarch64_simd_move_hi_quad_<mode>): Likewise.
10478         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10479         (vec_pack_trunc_<mode>): Likewise.
10480         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10481         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10482         (*aarch64_<su>mlal_lo<mode>): Likewise.
10483         (*aarch64_<su>mlal_hi<mode>): Likewise.
10484         (*aarch64_<su>mlsl_lo<mode>): Likewise.
10485         (*aarch64_<su>mlsl_hi<mode>): Likewise.
10486         (*aarch64_<su>mlal<mode>): Likewise.
10487         (*aarch64_<su>mlsl<mode>): Likewise.
10488         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10489         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10490         (add<mode>3): Likewise.
10491         (sub<mode>3): Likewise.
10492         (mul<mode>3): Likewise.
10493         (div<mode>3): Likewise.
10494         (neg<mode>2): Likewise.
10495         (abs<mode>2): Likewise.
10496         (fma<mode>4): Likewise.
10497         (*aarch64_fma4_elt<mode>): Likewise.
10498         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10499         (*aarch64_fma4_elt_to_128df): Likewise.
10500         (*aarch64_fma4_elt_to_64v2df): Likewise.
10501         (fnma<mode>4): Likewise.
10502         (*aarch64_fnma4_elt<mode>): Likewise.
10503         (*aarch64_fnma4_elt_<vswap_width_name><mode>
10504         (*aarch64_fnma4_elt_to_128df): Likewise.
10505         (*aarch64_fnma4_elt_to_64v2df): Likewise.
10506         (<frint_pattern><mode>2): Likewise.
10507         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10508         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10509         (vec_unpacks_lo_v4sf): Likewise.
10510         (aarch64_float_extend_lo_v2df): Likewise.
10511         (vec_unpacks_hi_v4sf): Likewise.
10512         (aarch64_float_truncate_lo_v2sf): Likewise.
10513         (aarch64_float_truncate_hi_v4sf): Likewise.
10514         (aarch64_vmls<mode>): Likewise.
10515         (<su><maxmin><mode>3): Likewise.
10516         (<maxmin_uns><mode>3): Likewise.
10517         (reduc_<sur>plus_<mode>): Likewise.
10518         (reduc_<sur>plus_v2di): Likewise.
10519         (reduc_<sur>plus_v2si): Likewise.
10520         (reduc_<sur>plus_<mode>): Likewise.
10521         (aarch64_addpv4sf): Likewise.
10522         (clz<mode>2): Likewise.
10523         (reduc_<maxmin_uns>_<mode>): Likewise.
10524         (reduc_<maxmin_uns>_v2di): Likewise.
10525         (reduc_<maxmin_uns>_v2si): Likewise.
10526         (reduc_<maxmin_uns>_<mode>): Likewise.
10527         (reduc_<maxmin_uns>_v4sf): Likewise.
10528         (aarch64_simd_bsl<mode>_internal): Likewise.
10529         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10530         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10531         (aarch64_get_lane<mode>): Likewise.
10532         (*aarch64_combinez<mode>): Likewise.
10533         (aarch64_combine<mode>): Likewise.
10534         (aarch64_simd_combine<mode>): Likewise.
10535         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10536         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10537         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10538         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10539         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10540         (aarch64_<sur>h<addsub><mode>): Likewise.
10541         (aarch64_<sur><addsub>hn<mode>): Likewise.
10542         (aarch64_<sur><addsub>hn2<mode>): Likewise.
10543         (aarch64_pmul<mode>): Likewise.
10544         (aarch64_<su_optab><optab><mode>): Likewise.
10545         (aarch64_<sur>qadd<mode>): Likewise.
10546         (aarch64_sqmovun<mode>): Likewise.
10547         (aarch64_<sur>qmovn<mode>): Likewise.
10548         (aarch64_s<optab><mode>): Likewise.
10549         (aarch64_sq<r>dmulh<mode>): Likewise.
10550         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10551         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10552         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10553         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10554         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10555         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10556         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10557         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10558         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10559         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10560         (aarch64_sqdmull<mode>): Likewise.
10561         (aarch64_sqdmull_lane<mode>_internal): Likewise.
10562         (aarch64_sqdmull_n<mode>): Likewise.
10563         (aarch64_sqdmull2<mode>_internal): Likewise.
10564         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10565         (aarch64_sqdmull2_n<mode>_internal): Likewise.
10566         (aarch64_<sur>shl<mode>): Likewise.
10567         (aarch64_<sur>q<r>shl<mode>
10568         (aarch64_<sur>shll_n<mode>): Likewise.
10569         (aarch64_<sur>shll2_n<mode>): Likewise.
10570         (aarch64_<sur>shr_n<mode>): Likewise.
10571         (aarch64_<sur>sra_n<mode>): Likewise.
10572         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10573         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10574         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10575         (aarch64_cm<optab><mode>): Likewise.
10576         (aarch64_cm<optab>di): Likewise.
10577         (aarch64_cm<optab><mode>): Likewise.
10578         (aarch64_cm<optab>di): Likewise.
10579         (aarch64_cmtst<mode>): Likewise.
10580         (aarch64_cmtstdi): Likewise.
10581         (aarch64_cm<optab><mode>): Likewise.
10582         (*aarch64_fac<optab><mode>): Likewise.
10583         (aarch64_addp<mode>): Likewise.
10584         (aarch64_addpdi): Likewise.
10585         (sqrt<mode>2): Likewise.
10586         (vec_load_lanesoi<mode>): Likewise.
10587         (vec_store_lanesoi<mode>): Likewise.
10588         (vec_load_lanesci<mode>): Likewise.
10589         (vec_store_lanesci<mode>): Likewise.
10590         (vec_load_lanesxi<mode>): Likewise.
10591         (vec_store_lanesxi<mode>): Likewise.
10592         (*aarch64_mov<mode>): Likewise.
10593         (aarch64_ld2<mode>_dreg): Likewise.
10594         (aarch64_ld2<mode>_dreg): Likewise.
10595         (aarch64_ld3<mode>_dreg): Likewise.
10596         (aarch64_ld3<mode>_dreg): Likewise.
10597         (aarch64_ld4<mode>_dreg): Likewise.
10598         (aarch64_ld4<mode>_dreg): Likewise.
10599         (aarch64_tbl1<mode>): Likewise.
10600         (aarch64_tbl2v16qi): Likewise.
10601         (aarch64_combinev16qi): Likewise.
10602         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10603         (aarch64_st2<mode>_dreg): Likewise.
10604         (aarch64_st2<mode>_dreg): Likewise.
10605         (aarch64_st3<mode>_dreg): Likewise.
10606         (aarch64_st3<mode>_dreg): Likewise.
10607         (aarch64_st4<mode>_dreg): Likewise.
10608         (aarch64_st4<mode>_dreg): Likewise.
10609         (*aarch64_simd_ld1r<mode>): Likewise.
10610         (aarch64_frecpe<mode>): Likewise.
10611         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10612         (aarch64_frecps<mode>): Likewise.
10614 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10616         * config/arm/iterators.md (V_elem_ch): New.
10617         (q): Likewise.
10618         (VQH_type): Likewise.
10619         * config/arm/arm.md (is_neon_type): New.
10620         (conds): Use is_neon_type.
10621         (anddi3_insn): Update type attribute.
10622         (xordi3_insn): Likewise.
10623         (one_cmpldi2): Likewise.
10624         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10625         * config/arm/neon.md (neon_mov): Update type attribute.
10626         (*movmisalign<mode>_neon_store): Likewise.
10627         (*movmisalign<mode>_neon_load): Likewise.
10628         (vec_set<mode>_internal): Likewise.
10629         (vec_set<mode>_internal): Likewise.
10630         (vec_setv2di_internal): Likewise.
10631         (vec_extract<mode>): Likewise.
10632         (vec_extract<mode>): Likewise.
10633         (vec_extractv2di): Likewise.
10634         (*add<mode>3_neon): Likewise.
10635         (adddi3_neon): Likewise.
10636         (*sub<mode>3_neon): Likewise.
10637         (subdi3_neon): Likewise.
10638         (fma<VCVTF:mode>4): Likewise.
10639         (fma<VCVTF:mode>4_intrinsic): Likewise.
10640         (*fmsub<VCVTF:mode>4): Likewise.
10641         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10642         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10643         (ior<mode>3): Likewise.
10644         (and<mode>3): Likewise.
10645         (orn<mode>3_neon): Likewise.
10646         (orndi3_neon): Likewise.
10647         (bic<mode>3_neon): Likewise.
10648         (bicdi3_neon): Likewise.
10649         (xor<mode>3): Likewise.
10650         (one_cmpl<mode>2): Likewise.
10651         (abs<mode>2): Likewise.
10652         (neg<mode>2): Likewise.
10653         (negdi2_neon): Likewise.
10654         (*umin<mode>3_neon): Likewise.
10655         (*umax<mode>3_neon): Likewise.
10656         (*smin<mode>3_neon): Likewise.
10657         (*smax<mode>3_neon): Likewise.
10658         (vashl<mode>3): Likewise.
10659         (vashr<mode>3_imm): Likewise.
10660         (vlshr<mode>3_imm): Likewise.
10661         (ashl<mode>3_signed): Likewise.
10662         (ashl<mode>3_unsigned): Likewise.
10663         (neon_load_count): Likewise.
10664         (ashldi3_neon_noclobber): Likewise.
10665         (ashldi3_neon): Likewise.
10666         (signed_shift_di3_neon): Likewise.
10667         (unsigned_shift_di3_neon): Likewise.
10668         (ashrdi3_neon_imm_noclobber): Likewise.
10669         (lshrdi3_neon_imm_noclobber): Likewise.
10670         (<shift>di3_neon): Likewise.
10671         (widen_ssum<mode>3): Likewise.
10672         (widen_usum<mode>3): Likewise.
10673         (quad_halves_<code>v4si): Likewise.
10674         (quad_halves_<code>v4sf): Likewise.
10675         (quad_halves_<code>v8hi): Likewise.
10676         (quad_halves_<code>v16qi): Likewise.
10677         (reduc_splus_v2di): Likewise.
10678         (neon_vpadd_internal<mode>): Likewise.
10679         (neon_vpsmin<mode>): Likewise.
10680         (neon_vpsmax<mode>): Likewise.
10681         (neon_vpumin<mode>): Likewise.
10682         (neon_vpumax<mode>): Likewise.
10683         (*ss_add<mode>_neon): Likewise.
10684         (*us_add<mode>_neon): Likewise.
10685         (*ss_sub<mode>_neon): Likewise.
10686         (*us_sub<mode>_neon): Likewise.
10687         (neon_vadd<mode>_unspec): Likewise.
10688         (neon_vaddl<mode>): Likewise.
10689         (neon_vaddw<mode>): Likewise.
10690         (neon_vhadd<mode>): Likewise.
10691         (neon_vqadd<mode>): Likewise.
10692         (neon_vaddhn<mode>): Likewise.
10693         (neon_vmul<mode>): Likewise.
10694         (neon_vfms<VCVTF:mode>): Likewise.
10695         (neon_vmlal<mode>): Likewise.
10696         (neon_vmls<mode>): Likewise.
10697         (neon_vmlsl<mode>): Likewise.
10698         (neon_vqdmulh<mode>): Likewise.
10699         (neon_vqdmlal<mode>): Likewise.
10700         (neon_vqdmlsl<mode>): Likewise.
10701         (neon_vmull<mode>): Likewise.
10702         (neon_vqdmull<mode>): Likewise.
10703         (neon_vsub<mode>_unspec): Likewise.
10704         (neon_vsubl<mode>): Likewise.
10705         (neon_vsubw<mode>): Likewise.
10706         (neon_vqsub<mode>): Likewise.
10707         (neon_vhsub<mode>): Likewise.
10708         (neon_vsubhn<mode>): Likewise.
10709         (neon_vceq<mode>): Likewise.
10710         (neon_vcge<mode>): Likewise.
10711         (neon_vcgeu<mode>): Likewise.
10712         (neon_vcgt<mode>): Likewise.
10713         (neon_vcgtu<mode>): Likewise.
10714         (neon_vcle<mode>): Likewise.
10715         (neon_vclt<mode>): Likewise.
10716         (neon_vcage<mode>): Likewise.
10717         (neon_vcagt<mode>): Likewise.
10718         (neon_vtst<mode>): Likewise.
10719         (neon_vabd<mode>): Likewise.
10720         (neon_vabdl<mode>): Likewise.
10721         (neon_vaba<mode>): Likewise.
10722         (neon_vabal<mode>): Likewise.
10723         (neon_vmax<mode>): Likewise.
10724         (neon_vmin<mode>): Likewise.
10725         (neon_vpaddl<mode>): Likewise.
10726         (neon_vpadal<mode>): Likewise.
10727         (neon_vpmax<mode>): Likewise.
10728         (neon_vpmin<mode>): Likewise.
10729         (neon_vrecps<mode>): Likewise.
10730         (neon_vrsqrts<mode>): Likewise.
10731         (neon_vqabs<mode>): Likewise.
10732         (neon_vqneg<mode>): Likewise.
10733         (neon_vcls<mode>): Likewise.
10734         (clz<mode>2): Likewise.
10735         (popcount<mode>2): Likewise.
10736         (neon_vrecpe<mode>): Likewise.
10737         (neon_vrsqrte<mode>): Likewise.
10738         (neon_vget_lane<mode>_sext_internal): Likewise.
10739         (neon_vget_lane<mode>_zext_internal): Likewise.
10740         (neon_vdup_n<mode>): Likewise.
10741         (neon_vdup_n<mode>): Likewise.
10742         (neon_vdup_nv2di): Likewise.
10743         (neon_vdup_lane<mode>_interal): Likewise.
10744         (*neon_vswp<mode>): Likewise.
10745         (neon_vcombine<mode>): Likewise.
10746         (float<mode><V_cvtto>2): Likewise.
10747         (floatuns<mode><V_cvtto>2): Likewise.
10748         (fix_trunc<mode><V_cvtto>2): Likewise.
10749         (fixuns_trunc<mode><V_cvtto>2
10750         (neon_vcvt<mode>): Likewise.
10751         (neon_vcvt<mode>): Likewise.
10752         (neon_vcvtv4sfv4hf): Likewise.
10753         (neon_vcvtv4hfv4sf): Likewise.
10754         (neon_vcvt_n<mode>): Likewise.
10755         (neon_vcvt_n<mode>): Likewise.
10756         (neon_vmovn<mode>): Likewise.
10757         (neon_vqmovn<mode>): Likewise.
10758         (neon_vqmovun<mode>): Likewise.
10759         (neon_vmovl<mode>): Likewise.
10760         (neon_vmul_lane<mode>): Likewise.
10761         (neon_vmul_lane<mode>): Likewise.
10762         (neon_vmull_lane<mode>): Likewise.
10763         (neon_vqdmull_lane<mode>): Likewise.
10764         (neon_vqdmulh_lane<mode>): Likewise.
10765         (neon_vqdmulh_lane<mode>): Likewise.
10766         (neon_vmla_lane<mode>): Likewise.
10767         (neon_vmla_lane<mode>): Likewise.
10768         (neon_vmlal_lane<mode>): Likewise.
10769         (neon_vqdmlal_lane<mode>): Likewise.
10770         (neon_vmls_lane<mode>): Likewise.
10771         (neon_vmls_lane<mode>): Likewise.
10772         (neon_vmlsl_lane<mode>): Likewise.
10773         (neon_vqdmlsl_lane<mode>): Likewise.
10774         (neon_vext<mode>): Likewise.
10775         (neon_vrev64<mode>): Likewise.
10776         (neon_vrev32<mode>): Likewise.
10777         (neon_vrev16<mode>): Likewise.
10778         (neon_vbsl<mode>_internal): Likewise.
10779         (neon_vshl<mode>): Likewise.
10780         (neon_vqshl<mode>): Likewise.
10781         (neon_vshr_n<mode>): Likewise.
10782         (neon_vshrn_n<mode>): Likewise.
10783         (neon_vqshrn_n<mode>): Likewise.
10784         (neon_vqshrun_n<mode>): Likewise.
10785         (neon_vshl_n<mode>): Likewise.
10786         (neon_vqshl_n<mode>): Likewise.
10787         (neon_vqshlu_n<mode>): Likewise.
10788         (neon_vshll_n<mode>): Likewise.
10789         (neon_vsra_n<mode>): Likewise.
10790         (neon_vsri_n<mode>): Likewise.
10791         (neon_vsli_n<mode>): Likewise.
10792         (neon_vtbl1v8qi): Likewise.
10793         (neon_vtbl2v8qi): Likewise.
10794         (neon_vtbl3v8qi): Likewise.
10795         (neon_vtbl4v8qi): Likewise.
10796         (neon_vtbl1v16qi): Likewise.
10797         (neon_vtbl2v16qi): Likewise.
10798         (neon_vcombinev16qi): Likewise.
10799         (neon_vtbx1v8qi): Likewise.
10800         (neon_vtbx2v8qi): Likewise.
10801         (neon_vtbx3v8qi): Likewise.
10802         (neon_vtbx4v8qi): Likewise.
10803         (*neon_vtrn<mode>_insn): Likewise.
10804         (*neon_vzip<mode>_insn): Likewise.
10805         (*neon_vuzp<mode>_insn): Likewise.
10806         (neon_vld1<mode>): Likewise.
10807         (neon_vld1_lane<mode>): Likewise.
10808         (neon_vld1_lane<mode>): Likewise.
10809         (neon_vld1_dup<mode>): Likewise.
10810         (neon_vld1_dup<mode>): Likewise.
10811         (neon_vld1_dupv2di): Likewise.
10812         (neon_vst1<mode>): Likewise.
10813         (neon_vst1_lane<mode>): Likewise.
10814         (neon_vst1_lane<mode>): Likewise.
10815         (neon_vld2<mode>): Likewise.
10816         (neon_vld2<mode>): Likewise.
10817         (neon_vld2_lane<mode>): Likewise.
10818         (neon_vld2_lane<mode>): Likewise.
10819         (neon_vld2_dup<mode>): Likewise.
10820         (neon_vst2<mode>): Likewise.
10821         (neon_vst2<mode>): Likewise.
10822         (neon_vst2_lane<mode>): Likewise.
10823         (neon_vst2_lane<mode>): Likewise.
10824         (neon_vld3<mode>): Likewise.
10825         (neon_vld3qa<mode>): Likewise.
10826         (neon_vld3qb<mode>): Likewise.
10827         (neon_vld3_lane<mode>): Likewise.
10828         (neon_vld3_lane<mode>): Likewise.
10829         (neon_vld3_dup<mode>): Likewise.
10830         (neon_vst3<mode>): Likewise.
10831         (neon_vst3qa<mode>): Likewise.
10832         (neon_vst3qb<mode>): Likewise.
10833         (neon_vst3_lane<mode>): Likewise.
10834         (neon_vst3_lane<mode>): Likewise.
10835         (neon_vld4<mode>): Likewise.
10836         (neon_vld4qa<mode>): Likewise.
10837         (neon_vld4qb<mode>): Likewise.
10838         (neon_vld4_lane<mode>): Likewise.
10839         (neon_vld4_lane<mode>): Likewise.
10840         (neon_vld4_dup<mode>): Likewise.
10841         (neon_vst4<mode>): Likewise.
10842         (neon_vst4qa<mode>): Likewise.
10843         (neon_vst4qb<mode>): Likewise.
10844         (neon_vst4_lane<mode>): Likewise.
10845         (neon_vst4_lane<mode>): Likewise.
10846         (neon_vec_unpack<US>_lo_<mode>): Likewise.
10847         (neon_vec_unpack<US>_hi_<mode>): Likewise.
10848         (neon_vec_<US>mult_lo_<mode>): Likewise.
10849         (neon_vec_<US>mult_hi_<mode>): Likewise.
10850         (neon_vec_<US>shiftl_<mode>): Likewise.
10851         (neon_unpack<US>_<mode>): Likewise.
10852         (neon_vec_<US>mult_<mode>): Likewise.
10853         (vec_pack_trunc_<mode>): Likewise.
10854         (neon_vec_pack_trunc_<mode>): Likewise.
10855         (neon_vabd<mode>_2): Likewise.
10856         (neon_vabd<mode>_3): Likewise.
10858 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10860         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
10861         (load_pair): Update type attribute.
10862         (store_pair): Update type attribute.
10863         * config/aarch64/iterators.md (q): New.
10865 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10867         * config/arm/types.md: Add new types for Neon insns.
10869 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10870             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10871             Sergey Lega  <sergey.s.lega@intel.com>
10872             Anna Tikhonova  <anna.tikhonova@intel.com>
10873             Ilya Tocar  <ilya.tocar@intel.com>
10874             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10875             Ilya Verbin  <ilya.verbin@intel.com>
10876             Kirill Yukhin  <kirill.yukhin@intel.com>
10877             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10879         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
10880         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
10881         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
10882         (rcp14<mode>): New.
10883         (srcp14<mode>): Ditto.
10884         (rsqrt14<mode>): Ditto.
10885         (rsqrt14<mode>): Ditto.
10886         (avx512f_vmscalef<mode>): Ditto.
10887         (avx512f_scalef<mode>): Ditto.
10888         (avx512f_getexp<mode>): Ditto.
10889         (avx512f_sgetexp<mode>): Ditto.
10890         (avx512f_fixupimm<mode>): Ditto.
10891         (avx512f_sfixupimm<mode>): Ditto.
10892         (avx512f_rndscale<mode>): Ditto.
10893         (*avx512er_exp2<mode>): Ditto.
10894         (*avx512er_rcp28<mode>): Ditto.
10895         (avx512er_rsqrt28<mode>): Ditto.
10896         (avx512f_getmant<mode>): Ditto.
10897         (avx512f_getmant<mode>): Ditto.
10898         (avx512f_rndscale<mode>): Fix formatting.
10900 2013-10-15  Martin Jambor  <mjambor@suse.cz>
10902         * ipa-utils.h (ipa_edge_within_scc): Declare.
10903         * ipa-cp.c (edge_within_scc): Moved...
10904         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
10906 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10907             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10908             Sergey Lega  <sergey.s.lega@intel.com>
10909             Anna Tikhonova  <anna.tikhonova@intel.com>
10910             Ilya Tocar  <ilya.tocar@intel.com>
10911             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10912             Ilya Verbin  <ilya.verbin@intel.com>
10913             Kirill Yukhin  <kirill.yukhin@intel.com>
10914             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10916         * config/i386/predicates.md (const_8_to_15_operand): New.
10917         (const_16_to_31_operand): Ditto.
10918         * config/i386/sse.md (V8FI): New.
10919         (V16FI): Ditto.
10920         (reduc_splus_v8df): Ditto.
10921         (reduc_splus_v16sf): Ditto.
10922         (avx512f_vextract<shuffletype>32x4_1): Ditto.
10923         (vec_extract_hi_<mode>): Ditto.
10924         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
10925         (vec_set_lo_<mode>): Ditto.
10926         (vec_set_hi_<mode>): Ditto.
10927         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
10928         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
10929         (avx512f_pshufd_1): Ditto.
10930         (avx512f_broadcast<mode>): Ditto.
10931         (avx512f_broadcast<mode>): Ditto.
10932         (define_split): Split vec_extract_lo into move.
10933         (ssequartermode): Ditto.
10934         (ssedoublemode): Extened with wider modes.
10935         (vec_extract_lo_<mode>): Ditto.
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 (register_or_constm1_operand): New.
10948         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
10949         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
10950         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
10951         UNSPEC_SCATTER_PREFETCH
10952         (VI48_512): New.
10953         (avx512f_ucmp<mode>3): Ditto.
10954         (avx512f_vternlog<mode>): Ditto.
10955         (avx512f_align<mode>): Ditto.
10956         (<shift_insn><mode>3): Ditto.
10957         (avx512f_<rotate>v<mode>): Ditto.
10958         (avx512f_<rotate><mode>): Ditto.
10959         (avx512f_eq<mode>3): Ditto.
10960         (avx512f_eq<mode>3_1): Ditto.
10961         (avx512f_gt<mode>3): Ditto.
10962         (avx512f_testm<mode>3): Ditto.
10963         (avx512f_testnm<mode>3): Ditto.
10964         (avx512pf_gatherpf<mode>): Ditto.
10965         (*avx512pf_gatherpf<mode>_mask): Ditto.
10966         (*avx512pf_gatherpf<mode>): Ditto.
10967         (avx512pf_scatterpf<mode>): Ditto.
10968         (*avx512pf_scatterpf<mode>_mask): Ditto.
10969         (*avx512pf_scatterpf<mode>): Ditto.
10970         (avx512f_vec_dup_gpr<mode>): Ditto.
10971         (clz<mode>2): Ditto.
10972         (conflict<mode>): Ditto.
10973         (REDUC_SMINMAX_MODE): Extened with wider modes.
10974         (reduc_<code>_<mode>): Ditto.
10975         (vlshr<mode>3): Ditto.
10976         (vashl<mode>3): Ditto.
10978 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10979             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10980             Sergey Lega  <sergey.s.lega@intel.com>
10981             Anna Tikhonova  <anna.tikhonova@intel.com>
10982             Ilya Tocar  <ilya.tocar@intel.com>
10983             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10984             Ilya Verbin  <ilya.verbin@intel.com>
10985             Kirill Yukhin  <kirill.yukhin@intel.com>
10986             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10988         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
10989         UNSPEC_SCATTER.
10990         (VI48F_512): New.
10991         (avx512fmaskmode): Ditto.
10992         (bcstscalarsuff): Ditto.
10993         (avx512f_blendm<mode>): Ditto.
10994         (cmp_imm_predicate): Ditto.
10995         (avx512f_cmp<mode>3): Ditto.
10996         (avx512f_vec_dup<mode>): Ditto.
10997         (avx512f_vec_dup_mem<mode>): Ditto.
10998         (avx512f_vpermi2var<mode>3): Ditto.
10999         (avx512f_vpermt2var<mode>3): Ditto.
11000         (vec_init<mode>): Ditto.
11001         (avx512f_gathersi<mode>): Ditto.
11002         (*avx512f_gathersi<mode>): Ditto.
11003         (*avx512f_gathersi<mode>_2): Ditto.
11004         (avx512f_gatherdi<mode>): Ditto.
11005         (*avx512f_gatherdi<mode>): Ditto.
11006         (*avx512f_gatherdi<mode>_2): Ditto.
11007         (avx512f_scattersi<mode>): Ditto.
11008         (*avx512f_scattersi<mode>): Ditto.
11009         (avx512f_scatterdi<mode>): Ditto.
11010         (*avx512f_scatterdi<mode>): Ditto.
11011         (sseintprefix): Extened with wider modes.
11012         (VEC_GATHER_IDXSI): Ditto.
11013         (VEC_GATHER_IDXDI): Ditto.
11014         (VEC_GATHER_SRCDI): Ditto.
11016 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11017             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11019         * config/arm/t-aprofile: New file.
11020         * config.gcc: Handle --with-multilib-list option.
11022 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
11024         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11025         the input for r2.
11027 2013-10-15  Richard Biener  <rguenther@suse.de>
11029         * tree-loop-distribution.c (build_empty_rdg): Inline into
11030         single user.
11031         (rdg_flag_vertex): Inline into single user.
11032         (rdg_flag_vertex_and_dependent): Likewise.
11033         (build_rdg_partition_for_vertex): Remove processed bitmap.
11034         (rdg_build_partitions): Simplify.
11036 2013-10-15  Richard Biener  <rguenther@suse.de>
11038         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11039         Restructure forwarding through conversions and copies to
11040         avoid performing copy-propagation the wrong way.  Adjust
11041         recursion invocations.
11042         (forward_propagate_addr_expr): Add argument stating if we
11043         are recursing from a single-use.
11044         (ssa_forward_propagate_and_combine): Adjust.
11046 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
11048         * dumpfile.h (gcc::dump_manager): New class, to hold state
11049         relating to dumpfile management.
11050         (get_dump_file_name): Remove in favor of method of dump_manager.
11051         (dump_initialized_p): Likewise.
11052         (dump_start): Likewise.
11053         (dump_finish): Likewise.
11054         (dump_switch_p): Likewise.
11055         (dump_register): Likewise.
11056         (get_dump_file_info): Likewise.
11057         * context.c (gcc::context::context): Construct the dump_manager
11058         instance.
11059         * context.h (gcc::context::get_dumps): New.
11060         (gcc::context::m_dumps): New.
11061         * coverage.c (coverage_init): Port to dump_manager API.
11062         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11063         (extra_dump_files_in_use): Likewise.
11064         (extra_dump_files_alloced): Likewise.
11065         (gcc::dump_manager::dump_manager): New.
11066         (dump_register): Convert to...
11067         (gcc::dump_manager::dump_register): ...method, replacing
11068         function-static next_dump with m_next_dump field.
11069         (get_dump_file_info): Convert to...
11070         (gcc::dump_manager::get_dump_file_info): ...method.
11071         (get_dump_file_name): Convert to...
11072         (gcc::dump_manager::get_dump_file_name): ...method.
11073         (dump_start): Convert to...
11074         (gcc::dump_manager::dump_start): ...method.
11075         (dump_finish): Convert to...
11076         (gcc::dump_manager::dump_finish): ...method.
11077         (dump_begin): Replace body with...
11078         (gcc::dump_manager::dump_begin): ...new method.
11079         (dump_phase_enabled_p): Convert to...
11080         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11081         (dump_phase_enabled_p): Convert to...
11082         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11083         (dump_initialized_p):  Convert to...
11084         (gcc::dump_manager::dump_initialized_p): ...method.
11085         (dump_flag_name): Replace body with...
11086         (gcc::dump_manager::dump_flag_name): ...new method.
11087         (dump_enable_all): Convert to...
11088         (gcc::dump_manager::dump_enable_all): ...new method.
11089         (opt_info_enable_passes): Convert to...
11090         (gcc::dump_manager::opt_info_enable_passes): ...new method.
11091         (dump_switch_p_1): Convert to...
11092         (gcc::dump_manager::dump_switch_p_1): ...new method.
11093         (dump_switch_p):  Convert to...
11094         (gcc::dump_manager::dump_switch_p): ...new method.
11095         (opt_info_switch_p): Port to dump_manager API.
11096         (enable_rtl_dump_file): Likewise.
11097         * opts-global.c (handle_common_deferred_options): Port to new
11098         dump_manager API.
11099         * passes.c (pass_manager::finish_optimization_passes): Likewise.
11100         (pass_manager::register_one_dump_file): Likewise.
11101         (pass_manager::register_pass): Likewise.
11102         (pass_init_dump_file): Likewise.
11103         (pass_fini_dump_file): Likewise.
11104         * statistics.c (statistics_early_init): Likewise.
11106 2013-10-14  Richard Biener  <rguenther@suse.de>
11108         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11109         iterative_hash_canonical_type, gimple_canonical_type_hash,
11110         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11111         gimple_register_canonical_type, print_gimple_types_stats,
11112         free_gimple_type_tables): Move to lto/lto.c
11113         (gt-gimple.h): Do not include.
11114         * gimple.h (gimple_register_canonical_type,
11115         print_gimple_types_stats, free_gimple_type_tables): Remove.
11116         * Makefile.in (GTFILES): Remove gimple.c.
11118 2013-10-14  Travis Snoozy  <quandary@remstate.com>
11120         PR target/58716
11121         * config/msp430/msp430.c (msp430_option_override): Correct thinko
11122         scanning for msp430x targets.
11124 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
11126         PR bootstrap/58509
11127         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11128         (registers_ok_for_ldd_peep): Move around.
11129         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11130         * config/sparc/sparc.md (widening peepholes): Use it.
11132 2013-10-14  Richard Biener  <rguenther@suse.de>
11134         PR middle-end/58712
11135         PR middle-end/55358
11136         * gimple.c (iterative_hash_canonical_type): Make sure to
11137         record the hash into the correct hashtable slot.
11139 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
11141         PR rtl-optimization/58662
11142         * combine.c (try_combine): Take into account death nodes on I2 when
11143         splitting a PARALLEL of two independent SETs.  Fix dump message.
11145 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
11147         PR target/51244
11148         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11149         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11150         extra_objs.
11151         * config/sh/t-sh (sh_treg_combine.o): New entry.
11152         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11153         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11154         (register_sh_passes): New function.  Register sh_treg_combine pass.
11155         (sh_option_override): Invoke it.
11156         (sh_canonicalize_comparison): Handle op0_preserve_value.
11157         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11158         opportunities.  Canonicalize branch condition.
11159         (nott): Allow only if pseudos can be created for non-SH2A.
11161 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
11163         PR target/58690
11164         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11165         (ix86_expand_movmem): Replace copy_addr_to_reg with
11166         ix86_copy_addr_to_reg.
11167         (ix86_expand_setmem): Likewise.
11169 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
11171         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11172         provided by ix86_fp_compare_mode instead of CCFPUmode.
11174 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
11176         * config/aarch64/arm_neon.h
11177         (vtbx<1,3>_<psu>8): Fix register constriants.
11179 2013-10-11  Jeff Law  <law@redhat.com>
11181         PR tree-optimization/58640
11182         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11183         threading paths that cross over two loop entry points.
11185 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11187         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11188         handle vector float as well.
11189         (*vsx_le_perm_load_v4si): Likewise.
11190         (*vsx_le_perm_store_v2di): Likewise.
11191         (*vsx_le_perm_store_v4si): Likewise.
11193 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11195         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11196         directly to circumvent subtract from splat{31} workaround.
11197         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11198         prototype.
11199         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11200         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11201         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11202         (altivec_vperm_<mode>): Convert to define_insn_and_split to
11203         separate big and little endian logic.
11204         (*altivec_vperm_<mode>_internal): New define_insn.
11205         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11206         separate big and little endian logic.
11207         (*altivec_vperm_<mode>_uns_internal): New define_insn.
11208         (vec_permv16qi): Add little endian logic.
11210 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
11212         * doc/extend.texi (returns_nonnull): Remove arguments.
11214 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11215             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11216             Sergey Lega  <sergey.s.lega@intel.com>
11217             Anna Tikhonova  <anna.tikhonova@intel.com>
11218             Ilya Tocar  <ilya.tocar@intel.com>
11219             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11220             Ilya Verbin  <ilya.verbin@intel.com>
11221             Kirill Yukhin  <kirill.yukhin@intel.com>
11222             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11224         * config/i386/sse.md (VI48F_256_512): New.
11225         (avx2_permvar<mode>): Change to ...
11226         (<avx2_avx512f>_permvar<mode>): This.
11228 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11229             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11230             Sergey Lega  <sergey.s.lega@intel.com>
11231             Anna Tikhonova  <anna.tikhonova@intel.com>
11232             Ilya Tocar  <ilya.tocar@intel.com>
11233             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11234             Ilya Verbin  <ilya.verbin@intel.com>
11235             Kirill Yukhin  <kirill.yukhin@intel.com>
11236             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11238         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11239         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11240         * config/i386/sse.md (VI4_AVX): New.
11241         (sf2simodelower): Ditto.
11242         (sse2_cvtps2dq): Change to ...
11243         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
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 (V_512): New.
11256         (VI_512): Ditto.
11257         (vcond<V_512:mode><VF_512:mode>): Ditto.
11258         (vcond<V_512:mode><VI_512:mode>): Ditto.
11259         (vcondu<V_512:mode><VI_512:mode>): Ditto.
11261 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11262             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11263             Sergey Lega  <sergey.s.lega@intel.com>
11264             Anna Tikhonova  <anna.tikhonova@intel.com>
11265             Ilya Tocar  <ilya.tocar@intel.com>
11266             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11267             Ilya Verbin  <ilya.verbin@intel.com>
11268             Kirill Yukhin  <kirill.yukhin@intel.com>
11269             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11271         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11272         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11273         (FMAMODE): Ditto.
11274         (fma<mode>4): Removed condition.
11275         (fms<mode>4): Ditto.
11276         (fnma<mode>4): Ditto.
11277         (fnms<mode>4): Ditto.
11278         (fma4i_fmadd_<mode>): Ditto.
11279         (*fma_fmadd_<mode>): Ditto.
11280         (*fma_fmsub_<mode>): Ditto.
11281         (*fma_fnmadd_<mode>): Ditto.
11282         (*fma_fnmsub_<mode>): Ditto.
11283         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11284         (*fma_fmaddsub_<mode>): Ditto.
11285         (*fma_fmsubadd_<mode>): Ditto.
11286         (*fmai_fmadd_<mode>): Ditto.
11287         (*fmai_fmsub_<mode>): Ditto.
11288         (*fmai_fnmadd_<mode>): Ditto.
11289         (*fmai_fnmsub_<mode>): Ditto.
11291 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11292             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11293             Sergey Lega  <sergey.s.lega@intel.com>
11294             Anna Tikhonova  <anna.tikhonova@intel.com>
11295             Ilya Tocar  <ilya.tocar@intel.com>
11296             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11297             Ilya Verbin  <ilya.verbin@intel.com>
11298             Kirill Yukhin  <kirill.yukhin@intel.com>
11299             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11301         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11302         (VI124_256): Changed to ...
11303         (VI124_256_48_512): This.
11304         (ssepackmode): Extended with wider modes.
11305         (<code><mode>3): Changed iterator.
11306         (*avx2_<code><mode>3): Ditto.
11307         (vec_pack_trunc_<mode>): Ditto.
11309 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11310             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11311             Sergey Lega  <sergey.s.lega@intel.com>
11312             Anna Tikhonova  <anna.tikhonova@intel.com>
11313             Ilya Tocar  <ilya.tocar@intel.com>
11314             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11315             Ilya Verbin  <ilya.verbin@intel.com>
11316             Kirill Yukhin  <kirill.yukhin@intel.com>
11317             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11319         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11320         (VI8F_256_512): Ditto.
11321         (abs<mode>2): Changed iterator.
11322         (avx2_perm<mode>): Changed to ...
11323         (<avx2_avx512f>_perm<mode>): This.
11324         (avx2_perm<mode>_1): Changed to ...
11325         (<avx2_avx512f>_perm<mode>_1): This.
11327 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11328             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11329             Sergey Lega  <sergey.s.lega@intel.com>
11330             Anna Tikhonova  <anna.tikhonova@intel.com>
11331             Ilya Tocar  <ilya.tocar@intel.com>
11332             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11333             Ilya Verbin  <ilya.verbin@intel.com>
11334             Kirill Yukhin  <kirill.yukhin@intel.com>
11335             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11337         * config/i386/sse.md (VI48_AVX512F): New.
11338         (VI48_AVX2): Changed to ...
11339         (VI48_AVX2_48_AVX512F): This.
11340         (avx2_ashrv<mode>): Changed to ...
11341         (<avx2_avx512f>_ashrv<mode>): This.
11342         (avx2_<shift_insn>v<mode>): Changed to ...
11343         (<avx2_avx512f>_<shift_insn>v<mode>): This.
11345 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11346             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11347             Sergey Lega  <sergey.s.lega@intel.com>
11348             Anna Tikhonova  <anna.tikhonova@intel.com>
11349             Ilya Tocar  <ilya.tocar@intel.com>
11350             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11351             Ilya Verbin  <ilya.verbin@intel.com>
11352             Kirill Yukhin  <kirill.yukhin@intel.com>
11353             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11355         * config/i386/sse.md (VI4_AVX512F): New.
11356         (VI8_AVX2_AVX512F): Ditto.
11357         (mul<mode>3): Extended with wider modes.
11358         (*<sse4_1_avx2>_mul<mode>3): Ditto.
11359         (mul<mode>3): Ditto.
11360         (vec_widen_<s>mult_odd_<mode>): Ditto.
11362 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11363             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11364             Sergey Lega  <sergey.s.lega@intel.com>
11365             Anna Tikhonova  <anna.tikhonova@intel.com>
11366             Ilya Tocar  <ilya.tocar@intel.com>
11367             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11368             Ilya Verbin  <ilya.verbin@intel.com>
11369             Kirill Yukhin  <kirill.yukhin@intel.com>
11370             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11372         * config/i386/sse.md (VI2_AVX512F): New.
11373         (VI124_AVX512F): Ditto.
11374         (sseunpackmode): Extended with wider modes.
11375         (sseunpackfltmode): Ditto.
11376         (vec_unpacks_float_hi_<mode>): Ditto.
11377         (vec_unpacks_float_lo_<mode>): Ditto.
11378         (vec_unpacku_float_hi_<mode>): Ditto.
11379         (vec_unpacku_float_lo_<mode>): Ditto.
11380         (vec_unpacks_lo_<mode>): Ditto.
11381         (vec_unpacks_hi_<mode>): Ditto.
11382         (vec_unpacku_lo_<mode>): Ditto.
11383         (vec_unpacku_hi_<mode>): Ditto.
11385 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11386             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11387             Sergey Lega  <sergey.s.lega@intel.com>
11388             Anna Tikhonova  <anna.tikhonova@intel.com>
11389             Ilya Tocar  <ilya.tocar@intel.com>
11390             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11391             Ilya Verbin  <ilya.verbin@intel.com>
11392             Kirill Yukhin  <kirill.yukhin@intel.com>
11393             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11395         * config/i386/i386.md (multdiv): New.
11396         (multdiv_mnemonic): Ditto.
11397         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11398         (<sse>_vm<multdiv_mnemonic><mode>3): This.
11399         (<sse>_vmdiv<mode>3): Removed.
11401 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11402             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11403             Sergey Lega  <sergey.s.lega@intel.com>
11404             Anna Tikhonova  <anna.tikhonova@intel.com>
11405             Ilya Tocar  <ilya.tocar@intel.com>
11406             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11407             Ilya Verbin  <ilya.verbin@intel.com>
11408             Kirill Yukhin  <kirill.yukhin@intel.com>
11409             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11411         * config/i386/sse.md (V): Extended with wider modes.
11412         (VF2): Ditto.
11413         (ssehalfvecmode): Ditto.
11414         (i128): Ditto.
11415         (ssepackfltmode): Ditto.
11416         (avx_vec_concat<mode>): Ditto.
11417         (V_256_512): New iterator.
11418         (VF2_512_256): Ditto.
11419         (si2dfmode): New attribute.
11420         (si2dfmodelower): Ditto.
11421         (sf2dfmode): Ditto.
11422         (concat_tg_mode): Ditto.
11423         (floatv4siv4df2): Changed to ...
11424         (float<si2dfmodelower><mode>2): This.
11425         (avx_cvtps2pd256): Changed to ...
11426         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11427         (vec_pack_trunc_v4df): Changed to ...
11428         (vec_pack_trunc_<mode>): This.
11429         (avx_vpermil<mode>): Changed to ...
11430         (<sse2_avx_avx512f>_vpermil<mode>): This.
11431         (<fixsuffix>fix_truncv8dfv8si2): New.
11432         (vec_pack_sfix_trunc_v8df): Ditto.
11433         (avx512f_rndscale<mode>): Ditto.
11434         (avx512f_roundpd512): Ditto.
11435         (vec_pack_ufix_trunc_<mode>): Updated iterator.
11437 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11438             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11439             Sergey Lega  <sergey.s.lega@intel.com>
11440             Anna Tikhonova  <anna.tikhonova@intel.com>
11441             Ilya Tocar  <ilya.tocar@intel.com>
11442             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11443             Ilya Verbin  <ilya.verbin@intel.com>
11444             Kirill Yukhin  <kirill.yukhin@intel.com>
11445             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11447         * config/i386/i386.md (any_fix): New iterator.
11448         (fixsuffix): New attribute.
11449         * config/i386/sse.md (VF1): Extened with wider modes.
11450         (VI): Ditto.
11451         (VI_AVX2): Ditto.
11452         (VI8): Ditto.
11453         (sseintvecmodelower): Ditto.
11454         (ssescalarmode): Ditto.
11455         (ssescalarnum): Ditto.
11456         (VF1_128_256): New.
11457         (ssexmmmode): Ditto.
11458         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11459         (<sse>_rcp<mode>2): Change iterator.
11460         (rsqrt<mode>2): Ditto.
11461         (<sse>_rsqrt<mode>2): Ditto.
11462         (avx2_vec_dup<mode>): Ditto.
11463         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11464         (round<mode>2_sfix): Ditto.
11465         (avx2_pbroadcast<mode>): Ditto.
11466         (*andnot<mode>3): Handle XI mode.
11467         (*<code><mode>3): Ditto.
11468         (AVXTOSSEMODE): Removed.
11469         (avx_vpermil<mode>): Changed to ...
11470         (<sse2_avx_avx512f>_vpermil<mode>): This.
11472 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11473             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11474             Sergey Lega  <sergey.s.lega@intel.com>
11475             Anna Tikhonova  <anna.tikhonova@intel.com>
11476             Ilya Tocar  <ilya.tocar@intel.com>
11477             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11478             Ilya Verbin  <ilya.verbin@intel.com>
11479             Kirill Yukhin  <kirill.yukhin@intel.com>
11480             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11482         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11483         (<sse>_comi): Ditto.
11484         (<sse>_ucomi): Ditto.
11485         (sse_cvtss2siq_2): Ditto.
11486         (sse2_cvtsd2si): Ditto.
11487         (sse2_cvtsd2siq): Ditto.
11488         (sse2_cvttsd2si): Ditto.
11489         (sse2_cvttsd2siq): Ditto.
11490         (<shift_insn><mode>3): Ditto.
11491         (sse2_cvtsi2sdq): Update constraint and prefix.
11492         (sse_cvtsi2ss): Update prefix.
11493         (sse_cvtsi2ssq): Ditto.
11495 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11497         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11498         ignore internal calls.
11500 2013-10-11  Richard Biener  <rguenther@suse.de>
11502         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11503         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
11504         TREE_OVERFLOW is set.
11506 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
11508         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11510         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11511         * gimple.h: Likewise.
11513         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11515         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11516         macros.
11518         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11520         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11521         * configure: Regenerate.
11523 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11525         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11526         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11527         formatting fixes, use pp_colon instead of pp_character (..., ':'),
11528         similarly pp_right_paren.
11529         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11530         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11531         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11532         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11533         clauses.
11534         (omp_declare_simd_clauses_equal,
11535         omp_remove_redundant_declare_simd_attrs): New functions.
11536         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11537         (walk_tree_1): Handle new OpenMP 4.0 clauses.
11538         * tree.h (OMP_LOOP_CHECK): Define.
11539         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11540         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11541         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11542         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11543         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11544         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11545         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11546         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11547         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11548         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11549         OMP_CLAUSE_SIMDLEN_EXPR): Define.
11550         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11551         (omp_remove_redundant_declare_simd_attrs): New prototype.
11552         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11553         GIMPLE_OMP_TEAMS): New codes.
11554         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11555         * omp-low.c (struct omp_context): Add cancel_label and cancellable
11556         fields.
11557         (target_nesting_level): New variable.
11558         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11559         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
11560         for collapse > 1 static schedule unless ordered.
11561         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
11562         (determine_parallel_type): Adjust get_ws_args_for caller.
11563         (install_var_field): Handle mask & 4 for double indirection.
11564         (scan_sharing_clauses): Ignore shared clause on teams construct.
11565         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11566         (create_omp_child_function): If inside target or declare target
11567         constructs, set "omp declare target" attribute on the child function.
11568         (find_combined_for): New function.
11569         (scan_omp_parallel): Handle combined loops.
11570         (scan_omp_target, scan_omp_teams): New functions.
11571         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11572         restrictions and set ctx->cancellable for cancellable constructs.
11573         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11574         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
11575         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11576         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11577         (omp_clause_aligned_alignment): New function.
11578         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11579         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
11580         on teams constructs.  Handle user defined reductions and new
11581         OpenMP 4.0 clauses.
11582         (lower_reduction_clauses): Don't set placeholder to address of ref
11583         if it has already the right type.
11584         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11585         (expand_parallel_call): Use the new non-_start suffixed builtins,
11586         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11587         and GOMP_parallel_end after the call.
11588         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11589         (expand_omp_for_init_counts): Handle combined loops.
11590         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11591         loops.
11592         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
11593         end of cancellable loops.
11594         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11595         Likewise.  Handle collapse > 1 loops.
11596         (expand_omp_simd): Handle combined loops.
11597         (expand_omp_for): Add inner_stmt argument, adjust callers of
11598         expand_omp_for* functions, use expand_omp_for_static*chunk even
11599         for collapse > 1 unless ordered.
11600         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11601         of cancellable sections.
11602         (expand_omp_single): Remove need_barrier variable, just rely on
11603         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
11604         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11605         (expand_omp_atomic_load, expand_omp_atomic_store,
11606         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11607         (expand_omp_target): New function.
11608         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
11609         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11610         (build_omp_regions_1): Immediately close region for
11611         GF_OMP_TARGET_KIND_UPDATE.
11612         (maybe_add_implicit_barrier_cancel): New function.
11613         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
11614         cancellation.
11615         (lower_omp_single): Likewise.  Add clobber after the barrier.
11616         (lower_omp_taskgroup): New function.
11617         (lower_omp_for): Handle combined loops.  Adjust
11618         lower_rec_input_clauses caller.  Handle cancellation.
11619         (lower_depend_clauses): New function.
11620         (lower_omp_taskreg): Lower depend clauses.  Adjust
11621         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
11622         cancellation.
11623         (lower_omp_target, lower_omp_teams): New functions.
11624         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
11625         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11626         and GOMP_cancellation_point calls.
11627         (lower_omp): Fold stmts inside of target region.
11628         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11629         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11630         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11631         (BT_FN_VOID_OMPFN_PTR_UINT,
11632         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11633         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11634         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11635         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11636         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11637         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11638         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11639         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11640         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11641         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11642         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11643         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11644         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11645         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
11646         BUILT_IN_GOMP_PARALLEL_END.
11647         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11648         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11649         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11650         GF_OMP_FOR_KIND_DISTRIBUTE.
11651         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11652         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11653         (dump_gimple_omp_return): Print lhs if it has any.
11654         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11655         gimple_omp_atomic_seq_cst_p.
11656         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11657         and GIMPLE_OMP_TEAMS.
11658         * langhooks.c (lhd_omp_mappable_type): New function.
11659         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
11660         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
11661         hook.
11662         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
11663         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
11664         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
11665         (struct gimplify_omp_ctx): Add combined_loop field.
11666         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
11667         on stmts inside of target region.
11668         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11669         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11670         ORT_TARGET and ORT_TARGET_DATA.
11671         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11672         Handle GOVD_MAP.
11673         (omp_notice_threadprivate_variable): Complain about threadprivate
11674         variables in target region.
11675         (omp_notice_variable): Complain about vars with non-mappable type
11676         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11677         (omp_check_private): Ignore ORT_TARGET* regions.
11678         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11679         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11680         (find_combined_omp_for): New function.
11681         (gimplify_omp_for): Handle gimplification of combined loops.
11682         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11683         OMP_TEAMS.
11684         (gimplify_omp_target_update): New function.
11685         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11686         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11687         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11688         (gimplify_body): If fndecl has "omp declare target" attribute, add
11689         implicit ORT_TARGET context around it.
11690         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11691         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11692         * tree-nested.c (convert_nonlocal_reference_stmt,
11693         convert_local_reference_stmt, convert_gimple_call): Handle
11694         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11695         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11696         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11697         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11698         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11699         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11700         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11701         BUILT_IN_GOMP_LOOP_END_CANCEL,
11702         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11703         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11704         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11705         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11706         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11707         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11708         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11709         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11710         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11711         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11712         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11713         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11714         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11715         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11716         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11717         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11718         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11719         gimple_build_omp_teams): New functions.
11720         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11721         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
11722         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11723         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11724         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11725         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11726         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11727         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11728         GF_OMP_ATOMIC_SEQ_CST): New.
11729         (gimple_build_omp_taskgroup, gimple_build_omp_target,
11730         gimple_build_omp_teams): New prototypes.
11731         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11732         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11733         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11734         GIMPLE_OMP_SINGLE as end of range.
11735         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11736         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11737         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11738         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11739         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11740         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11741         gimple_omp_target_kind, gimple_omp_target_set_kind,
11742         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11743         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11744         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11745         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11746         gimple_omp_teams_set_clauses): New inlines.
11747         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11748         and GIMPLE_OMP_TASKGROUP.
11749         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
11750         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
11751         enum omp_clause_proc_bind_kind): New.
11752         (union omp_clause_subcode): Add depend_kind, map_kind and
11753         proc_bind_kind fields.
11754         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
11755         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11756         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
11757         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
11758         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11760 2013-10-10  Teresa Johnson  <tejohnson@google.com>
11762         * predict.c (tree_estimate_probability): Add new parameter
11763         for estimate_bb_frequencies.
11764         (estimate_bb_frequencies): Add new parameter to force estimation.
11765         (rebuild_frequencies): When max frequency in function is small,
11766         recompute counts from frequencies.
11767         * predict.h (estimate_bb_frequencies): New parameter.
11769 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11771         * ipa-inline.c (ipa_inline): Fix leak of "order" when
11772         optimizations are disabled.
11774 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11776         * coverage.c (coverage_finish): Fix leak of da_file_name.
11778 2013-10-10  Jan Hubicka  <jh@suse.cz>
11780         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
11781         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
11782         Bobcat and generic.
11784 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
11786         PR middle-end/58670
11787         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
11788         if any labels are in FALLTHRU_BB, use a special label emitted
11789         immediately after the asm goto insn rather than label_rtx
11790         of the LABEL_DECL.
11791         (expand_asm_stmt): Adjust caller.
11792         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
11793         edge if the last insn in predecessor is a jump with single successor,
11794         but it isn't simplejump_p.
11796 2013-10-10  Richard Biener  <rguenther@suse.de>
11798         PR tree-optimization/58656
11799         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
11801 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11803         * gimplify.c: Include expr.h and tm_p.h for targets with special
11804         va-arg padding requirements.
11806 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11808         * tree-flow.h: Move some prototypes to gimple.h.
11809         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
11810         * gimple.h: Relocate some prototypes from tree-flow.h
11811         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
11812         Move to gimplify.c.
11813         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
11814         (build_va_arg_indirect_ref): Relocate and make static.
11815         (std_gimplify_va_arg_expr): Relocate here.
11816         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
11817         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
11819 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11821         * doc/md.texi: Document the mnemonic attribute.
11823 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11825         PR target/57377
11826         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
11827         (set_attr_alternative x ...) when searching for user defined
11828         mnemonic attribute.
11830 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11832         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
11834 2013-10-09  Easwaran Raman <eraman@google.com>
11836         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
11837         * cfgexpand.c (defer_stack_allocation): ...use here
11838         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
11840 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11842         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
11843         (operand_equal_for_value_replacement): New function, extracted from
11844         value_replacement and enhanced to catch more cases.
11845         (value_replacement): Use operand_equal_for_value_replacement.
11847 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11849         * loop-doloop.c (doloop_modify, doloop_optimize): Use
11850         get_max_loop_iterations.
11852 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11854         * config/arm/aarch-common.c (arm_early_load_addr_dep):
11855         Place comment above function.
11857 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11859         * tree-flow.h: Remove all remaining prototypes, enums and structs that
11860         are not related to tree-cfg.c.
11861         * tree-ssa-address.h: New file.  Relocate prototypes.
11862         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
11863         (addr_for_mem_ref): New.  Combine call to get_address_description and
11864         return addr_for_mem_ref.
11865         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
11866         * tree-ssa-live.h: Adjust prototypes.
11867         * passes.c: Include tree-ssa-live.h.
11868         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
11869         * graphite.c (graphite_transform_loops): Make static.
11870         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11871         make_pass_graphite, pass_data_graphite_transforms,
11872         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
11873         * ipa-pure-const.c (warn_function_noreturn): Make static.
11874         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11875         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11876         Relocate from tree-cfg.c
11877         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
11878         static.
11879         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11880         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11881         Move to ipa-pure-const.c.
11882         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
11883         Relocate from tree-optimize.c.
11884         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
11885         make_pass_fixup_cfg): Move to tree-cfg.c.
11886         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
11887         Relocate some prototypes.
11888         * tree-data-ref.h (tree_check_data_deps) Add prototype.
11889         * tree-dump.c (dump_function_to_file): Remove prototype.
11890         Add tree-flow.h to the include file.
11891         * tree-dump.h: Remove prototype.
11892         * tree-parloops.h: New File.  Add prototypes.
11893         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
11894         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
11895         from tree-ssa-loop.c.
11896         * tree-predcom.c (run_tree_predictive_commoning,
11897         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
11898         Relocate here from tree-ssa-loop.c.
11899         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
11900         ssa_name_values.release ().
11901         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
11902         (ssa_name_values): Relocate from tree-flow.h.
11903         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
11904         * tree-ssa-loop.c (run_tree_predictive_commoning,
11905         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
11906         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11907         make_pass_graphite, pass_data_graphite_transforms,
11908         make_pass_graphite_transforms, gate_tree_parallelize_loops,
11909         tree_parallelize_loops, pass_data_parallelize_loops,
11910         make_pass_parallelize_loops): Move to other files.
11911         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
11912         moved here.
11913         * tree.h: Remove prototypes from tree-address.c.
11915 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11917         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
11918         (struct int_tree_map): Move to tree-hasher.h
11919         (SCALE, LABEL, PERCENT): Move to gimple.h
11920         * tree-flow-inline.h: Delete.  Move functions to other files.
11921         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
11922         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
11923         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
11924         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
11925         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
11926         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
11927         * tree-hasher.h: Don't include tree-flow.h.
11928         (struct int_tree_map): Relocate from tree-flow.h.
11929         * tree-sra.c (contains_view_convert_expr_p): Relocate from
11930         tree-flow-inline.h and make static.
11931         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
11932         tree-flow-inline.h.
11933         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
11934         tree-flow-inline.h and make static.
11935         * tree.h (is_global_var, may_be_aliased): Relocate from
11936         tree-flow-inline.h.
11937         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
11938         * value-prof.c: No longer include tree-flow-inline.h.
11939         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
11941 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11943         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
11944         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
11945         (enum move_pos): Move to tree-ssa-loop-im.h
11946         * cfgloop.h: Move some prototypes.
11947         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
11948         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
11949         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
11950         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
11951         (loop_containing_stmt): Relocate from tree-flow-inline.h.
11952         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
11953         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
11954         (enum move_pos): Relocate here.
11955         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
11956         tree-ssa-loop.c.
11957         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
11958         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
11959         make_pass_lim): Relocate here from tree-ssa-loop.c.
11960         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
11961         tree-ssa-loop.c.
11962         (loop_edge_to_cancel, unloop_loops): Make static.
11963         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11964         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
11965         (tree_complete_unroll, gate_tree_complete_unroll,
11966         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
11967         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11968         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
11969         * tree-ssa-loop-ivopts.c: Remove local prototypes.
11970         (stmt_invariant_in_loop_p): Remove unused function.
11971         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
11972         * tree-ssa-loop-manip.h: New file.  Add prototypes.
11973         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
11974         (gcov_type_to_double_int): Move to cfgloop.h.
11975         (double_int_cmp, bound_index,
11976         estimate_numbers_of_iterations_loop): Make static.
11977         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
11978         (max_loop_iterations): Factor out get_max_loop_iterations.
11979         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
11980         cfgloop.c.
11981         * tree-ssa-loop-niter.h: New file.  Add prototypes.
11982         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
11983         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
11984         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
11985         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
11986         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
11987         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
11988         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
11989         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
11990         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
11991         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
11992         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11993         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
11994         pass_data_complete_unroll, make_pass_complete_unroll,
11995         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11996         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
11997         tree-ssa-loop-ivcanon.c.
11998         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
11999         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12000         tree-ssa-loop-prefetch.c.
12001         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12002         tree-ssa-loop-im.c.
12003         (get_lsm_tmp_name): Relocate and add suffix parameter.
12004         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12005         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12006         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12007         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12008         (get_estimated_loop_iterations): Factor out accessor from
12009         estimated_loop_iterations in tree-ssa-loop-niter.c.
12010         (get_max_loop_iterations): Factor out accessor from
12011         _max_loop_iterations in tree-ssa-niter.c.
12012         * loop-unroll.c (decide_unroll_constant_iterations,
12013         decide_unroll_runtime_iterations, decide_peel_simple,
12014         decide_unroll_stupid): Use new get_* accessors.
12016 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
12018         PR tree-optimization/20318
12019         * doc/extend.texi (returns_nonnull): New function attribute.
12020         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12021         attribute.
12022         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12023         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12025 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
12027         PR middle-end/58570
12028         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12029         false if both components are bitfields.
12031 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12033         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12034         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12035         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12036         * config/aarch64/aarch64.h
12037         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12038         * config/aarch64/aarch64-simd-builtins.def
12039         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12041 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12043         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12045 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12047         * config/aarch64/arm_neon.h (vdiv_f64): Added.
12049 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12051         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12052         (vneg_f64): New intrinsic.
12053         (vneg_s8): Asm replaced with C.
12054         (vneg_s16): Likewise.
12055         (vneg_s32): Likewise.
12056         (vneg_s64): New intrinsic.
12057         (vnegq_f32): Asm replaced with C.
12058         (vnegq_f64): Likewise.
12059         (vnegq_s8): Likewise.
12060         (vnegq_s16): Likewise.
12061         (vnegq_s32): Likewise.
12062         (vnegq_s64): Likewise.
12064 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
12066         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12068 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12070         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12071         packed stack special handling.
12072         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12073         back to fixed stack slots for FPRs saved due to stdarg.
12075 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12077         * config/s390/s390.c (s390_frame_info): Restructure function.
12079 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12081         * config/s390/s390.c (struct s390_frame_layout): New field
12082         gpr_save_slots.
12083         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12084         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12085         regs_ever_clobbered to char*.
12086         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12087         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
12088         (s390_register_info): Enable FPR save slots.  Move/Copy some
12089         functionality into ...
12090         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12091         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12092         function.
12093         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
12094         not imply a stack frame.
12095         (s390_init_frame_layout): Remove variable clobbered_regs.
12096         (s390_update_register_info): Remove function.
12097         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12098         cannot be used for register renaming.
12099         (s390_hard_regno_scratch_ok): New function.
12100         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12101         (s390_initial_elimination_offset): Change offset calculation of
12102         the return address pointer.
12103         (save_gprs): Deal with only r6 being saved from the call-saved regs.
12104         (restore_gprs): Set frame related flag.
12105         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12106         (s390_emit_prologue): Call s390_register_info instead of
12107         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
12108         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12109         (s390_optimize_prologue): Call s390_optimize_register_info.
12110         Try to remove also FPR slot save/restore INSNs.  Remove frame
12111         related flags from restore INSNs.
12113 2013-10-08  DJ Delorie  <dj@redhat.com>
12115         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12116         (movhi): Likewise.
12118         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12119         avoid conflict with the MI use of %c.
12120         * config/rl78/rl78-real.md: change %c to %C throughout.
12121         * config/rl78/rl78-virt.md: Likewise.
12123 2013-10-08  Jan Hubicka  <jh@suse.cz>
12125         * config/i386/i386.c (ix86_option_override_internal): Switch
12126         to SSE math for -ffast-math when target ISA supports SSE2.
12128 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
12130         * tree-flow.h: Remove some prototypes.
12131         * tree.h: Remove some protypes, add a couple.
12132         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12133         using_eh_for_cleanups_p): Add interface routines for front ends.
12134         * tree-eh.h: New file.  Add protoptyes.
12135         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12136         (add_stmt_to_eh_lp_fn): Make static.
12137         (lower_try_finally): Use new using_eh_for_cleanups_p.
12138         * emit-rtl.c: Include tree-eh.h.
12139         * gimple.h: Include tree-eh.h.
12141 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
12143         PR tree-optimization/58480
12144         * tree-vrp.c (infer_nonnull_range): New function.
12145         (infer_value_range): Call infer_nonnull_range.
12147 2013-10-08  Dehao Chen  <dehao@google.com>
12149         PR tree-optimization/58619
12150         * tree-inline.c (copy_phis_for_bb): Combine location data
12151         only if non-null.
12153 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12155         PR target/58423
12156         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12157         RTX_FRAME_RELATED_P on INSN.
12159 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12161         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12162         (altivec_expand_vec_perm_const): Call it.
12164 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12166         * config/rs6000/vector.md (mov<mode>): Emit permuted move
12167         sequences for LE VSX loads and stores at expand time.
12168         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12169         prototype.
12170         * config/rs6000/rs6000.c (rs6000_const_vec): New.
12171         (rs6000_gen_le_vsx_permute): New.
12172         (rs6000_gen_le_vsx_load): New.
12173         (rs6000_gen_le_vsx_store): New.
12174         (rs6000_gen_le_vsx_move): New.
12175         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12176         (*vsx_le_perm_load_v4si): New.
12177         (*vsx_le_perm_load_v8hi): New.
12178         (*vsx_le_perm_load_v16qi): New.
12179         (*vsx_le_perm_store_v2di): New.
12180         (*vsx_le_perm_store_v4si): New.
12181         (*vsx_le_perm_store_v8hi): New.
12182         (*vsx_le_perm_store_v16qi): New.
12183         (*vsx_xxpermdi2_le_<mode>): New.
12184         (*vsx_xxpermdi4_le_<mode>): New.
12185         (*vsx_xxpermdi8_le_V8HI): New.
12186         (*vsx_xxpermdi16_le_V16QI): New.
12187         (*vsx_lxvd2x2_le_<mode>): New.
12188         (*vsx_lxvd2x4_le_<mode>): New.
12189         (*vsx_lxvd2x8_le_V8HI): New.
12190         (*vsx_lxvd2x16_le_V16QI): New.
12191         (*vsx_stxvd2x2_le_<mode>): New.
12192         (*vsx_stxvd2x4_le_<mode>): New.
12193         (*vsx_stxvd2x8_le_V8HI): New.
12194         (*vsx_stxvd2x16_le_V16QI): New.
12196 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
12198         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12200 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12202         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12203         loop to work also for 31bit ABI.
12204         Save the stack pointer for frame_size > 0.
12206 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12208         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12209         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12210         constraint letters from expanders.
12211         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12212         retry count to general_operand.
12213         ("tabort"): Give operand 0 a mode.
12214         ("tabort_1"): Add mode and constraint letter for operand 0.
12215         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12217 2013-10-04  Jeff Law  <law@redhat.com>
12219         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12221         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12222         out of ...
12223         (thread_across_edge): Here.  Call it.
12225 2013-10-04  Cary Coutant  <ccoutant@google.com>
12227         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12228         discarding a location list expression (or a piece of one).
12230 2013-10-03  Jan Hubicka  <jh@suse.cz>
12232         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12233         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
12234         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12236 2013-10-03  Jan Hubicka  <jh@suse.cz>
12238         * config/i386/i386.c (ix86_option_override_internal): Do not enable
12239         accumulate-outgoing-args when producing unwind info.
12241 2013-10-03  Wei Mi  <wmi@google.com>
12243         * lra-constraints.c (insert_move_for_subreg): New function
12244         extracted from simplify_operand_subreg.
12245         (simplify_operand_subreg): Add reload for paradoxical subreg.
12247 2013-10-03  Rong Xu  <xur@google.com>
12249         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12250         the candidate of builtin_expect such that we should fix the
12251         size/time estimation.
12252         (estimate_function_body_sizes): Do the acutally size/time fix-up
12253         for builtin_expect.
12255 2013-10-03  Rong Xu  <xur@google.com>
12257         * predict.c (tree_predict_by_opcode): Get the probability
12258         for builtin_expect from param builtin_expect_probability.
12259         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12260         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12261         * doc/invoke.texi: Add documentation for builtin-expect-probability.
12263 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
12265         PR c++/19476
12266         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12267         * calls.c (alloca_call_p): Use get_callee_fndecl.
12268         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12269         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12270         Likewise.
12271         (vrp_visit_stmt): Remove duplicated code.
12273 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12275         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12276         ceildf2, btruncdf2, instead of vsx_* name.
12278         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12279         iterators to only do V2DF and V4SF here.  Move the DF code to
12280         rs6000.md where it is combined with SF mode.  Replace <VSv> with
12281         just 'v' since only vector operations are handled with these insns
12282         after moving the DF support to rs6000.md.
12283         (vsx_sub<mode>3): Likewise.
12284         (vsx_mul<mode>3): Likewise.
12285         (vsx_div<mode>3): Likewise.
12286         (vsx_fre<mode>2): Likewise.
12287         (vsx_neg<mode>2): Likewise.
12288         (vsx_abs<mode>2): Likewise.
12289         (vsx_nabs<mode>2): Likewise.
12290         (vsx_smax<mode>3): Likewise.
12291         (vsx_smin<mode>3): Likewise.
12292         (vsx_sqrt<mode>2): Likewise.
12293         (vsx_rsqrte<mode>2): Likewise.
12294         (vsx_fms<mode>4): Likewise.
12295         (vsx_nfma<mode>4): Likewise.
12296         (vsx_copysign<mode>3): Likewise.
12297         (vsx_btrunc<mode>2): Likewise.
12298         (vsx_floor<mode>2): Likewise.
12299         (vsx_ceil<mode>2): Likewise.
12300         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12301         (vsx_sminsf3): Likewise.
12302         (vsx_fmadf4): Likewise.
12303         (vsx_fmsdf4): Likewise.
12304         (vsx_nfmadf4): Likewise.
12305         (vsx_nfmsdf4): Likewise.
12306         (vsx_cmpdf_internal1): Likewise.
12308         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12309         simpler to select whether a target has SPE or traditional floating
12310         point support in iterators.
12311         (TARGET_DF_SPE): Likewise.
12312         (TARGET_SF_FPR): Likewise.
12313         (TARGET_DF_FPR): Likewise.
12314         (TARGET_SF_INSN): Macros to say whether floating point support
12315         exists for a given operation for expanders.
12316         (TARGET_DF_INSN): Likewise.
12318         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12319         combining of SF/DF mode operations, using both traditional and VSX
12320         registers.
12321         (Fvsx): Likewise.
12322         (Ff): Likewise.
12323         (Fv): Likewise.
12324         (Fs): Likewise.
12325         (Ffre): Likewise.
12326         (FFRE): Likewise.
12327         (abs<mode>2): Combine SF/DF modes using traditional floating point
12328         instructions.  Add support for using the upper DF registers with
12329         VSX support, and SF registers with power8-vector support.  Update
12330         expanders for operations supported by both the SPE and traditional
12331         floating point units.
12332         (abs<mode>2_fpr): Likewise.
12333         (nabs<mode>2): Likewise.
12334         (nabs<mode>2_fpr): Likewise.
12335         (neg<mode>2): Likewise.
12336         (neg<mode>2_fpr): Likewise.
12337         (add<mode>3): Likewise.
12338         (add<mode>3_fpr): Likewise.
12339         (sub<mode>3): Likewise.
12340         (sub<mode>3_fpr): Likewise.
12341         (mul<mode>3): Likewise.
12342         (mul<mode>3_fpr): Likewise.
12343         (div<mode>3): Likewise.
12344         (div<mode>3_fpr): Likewise.
12345         (sqrt<mode>3): Likewise.
12346         (sqrt<mode>3_fpr): Likewise.
12347         (fre<Fs>): Likewise.
12348         (rsqrt<mode>2): Likewise.
12349         (cmp<mode>_fpr): Likewise.
12350         (smax<mode>3): Likewise.
12351         (smin<mode>3): Likewise.
12352         (smax<mode>3_vsx): Likewise.
12353         (smin<mode>3_vsx): Likewise.
12354         (negsf2): Delete SF operations that are merged with DF.
12355         (abssf2): Likewise.
12356         (addsf3): Likewise.
12357         (subsf3): Likewise.
12358         (mulsf3): Likewise.
12359         (divsf3): Likewise.
12360         (fres): Likewise.
12361         (fmasf4_fpr): Likewise.
12362         (fmssf4_fpr): Likewise.
12363         (nfmasf4_fpr): Likewise.
12364         (nfmssf4_fpr): Likewise.
12365         (sqrtsf2): Likewise.
12366         (rsqrtsf_internal1): Likewise.
12367         (smaxsf3): Likewise.
12368         (sminsf3): Likewise.
12369         (cmpsf_internal1): Likewise.
12370         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12371         (negdf2): Delete DF operations that are merged with SF.
12372         (absdf2): Likewise.
12373         (nabsdf2): Likewise.
12374         (adddf3): Likewise.
12375         (subdf3): Likewise.
12376         (muldf3): Likewise.
12377         (divdf3): Likewise.
12378         (fred): Likewise.
12379         (rsqrtdf_internal1): Likewise.
12380         (fmadf4_fpr): Likewise.
12381         (fmsdf4_fpr): Likewise.
12382         (nfmadf4_fpr): Likewise.
12383         (nfmsdf4_fpr): Likewise.
12384         (sqrtdf2): Likewise.
12385         (smaxdf3): Likewise.
12386         (smindf3): Likewise.
12387         (cmpdf_internal1): Likewise.
12388         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12389         (btrunc<mode>2): Delete separate expander, and combine with the
12390         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
12391         (btrunc<mode>2_fpr): Likewise.
12392         (ceil<mode>2): Likewise.
12393         (ceil<mode>2_fpr): Likewise.
12394         (floor<mode>2): Likewise.
12395         (floor<mode>2_fpr): Likewise.
12396         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12397         Add support for using the upper registers with VSX and
12398         power8-vector.  Move insns to be closer to the define_expands. On
12399         VSX systems, prefer the traditional form of FMA over the VSX
12400         version, since the traditional form allows the target not to
12401         overlap with the inputs.
12402         (fms<mode>4_fpr): Likewise.
12403         (nfma<mode>4_fpr): Likewise.
12404         (nfms<mode>4_fpr): Likewise.
12406 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12407             Richard Earnshaw  <richard.earnshaw@arm.com>
12409         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12410         (struct mult_cost_table): Likewise.
12411         (struct mem_cost_table): Likewise.
12412         (struct fp_cost_table): Likewise.
12413         (struct vector_cost_table): Likewise.
12414         (cpu_cost_table): Likewise.
12415         * config/arm/arm.opt (mold-rts-costs): New option.
12416         (mnew-generic-costs): Likewise.
12417         * config/arm/arm.c (generic_extra_costs): New table.
12418         (cortexa15_extra_costs): Likewise.
12419         (arm_slowmul_tune): Use NULL as new costs.
12420         (arm_fastmul_tune): Likewise.
12421         (arm_strongarm_tune): Likewise.
12422         (arm_xscale_tune): Likewise.
12423         (arm_9e_tune): Likewise.
12424         (arm_v6t2_tune): Likewise.
12425         (arm_cortex_a5_tune): Likewise.
12426         (arm_cortex_a9_tune): Likewise.
12427         (arm_v6m_tune): Likewise.
12428         (arm_fa726te_tune): Likewise.
12429         (arm_cortex_a15_tune): Use cortex15_extra_costs.
12430         (arm_cortex_tune): Use generict_extra_costs.
12431         (shifter_op_p): New function.
12432         (arm_unspec_cost): Likewise.
12433         (LIBCALL_COST): Define.
12434         (arm_new_rtx_costs): New function.
12435         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12436         table is available. Use old costs otherwise unless mnew-generic-costs
12437         is specified.
12438         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12439         (cpu_cost_table): Declare.
12441 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12443         PR target/58460
12444         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12445         (*subs_mul_imm_<mode>)
12446         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12447         (*sub_<shift>_<mode>)
12448         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12449         Remove k constraint.
12451 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
12453         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12454         code.
12455         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12457 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12459         * predict.c (probably_never_executed): New function.
12460         (probably_never_executed_bb_p): Invoke probably_never_executed.
12461         (probably_never_executed_edge_p): Ditto.
12462         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12463         Treat profile insanities conservatively.
12465 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
12467         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12469 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
12471         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12472         use it.  Use smaller increase for scratch.  Don't increase reject
12473         for early clobber scratch.
12474         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12475         setting eliminated regs except setting fp from hfp.
12476         (lra_eliminate): Check lra_insn_recog_data on NULL.
12478 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12480         PR target/58587
12481         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12482         setting -mvsx-timode by default until the underlying problem is fixed.
12483         (RS6000_CPU, power7 defaults): Likewise.
12485 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12487         * config/x-linux (host-linux.o): Remove header dependencies.
12488         Use $(COMPILE) and $(POSTCOMPILE).
12489         * config/t-linux-android (linux-android.o): Ditto.
12491 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12493         * Makefile.in (expmed.o-warn): Remove.
12495 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12497         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12498         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12500 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12502         * dojump.c (do_jump_1): Divide probability between
12503         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12505 2013-10-02  Tom Tromey  <tromey@redhat.com>
12507         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12509 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12511         * tree-flow.h: Remove some prototypes.
12512         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12513         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12514         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12515         mark_virtual_phi_result_for_renaming): Relocate here.
12516         * tree-into-ssa.h: Add prototypes.
12517         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12518         single_pred_before_succ_order.
12519         (blocks_in_phiopt_order): Rename and move to cfganal.c.
12520         (nonfreeing_call_p) Move to gimple.c.
12521         * cfganal.c (single_pred_before_succ_order): Move and renamed from
12522         tree-ssa-phiopt.c.
12523         * basic-block.h (single_pred_before_succ_order): Add prototype.
12524         * gimple.c (nonfreeing_call_p): Relocate here.
12525         * gimple.h: Add prototype.
12526         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12527         * tree-ssa-dom.h: New file.  Relocate prototypes here.
12528         * tree-ssa.h: Include tree-ssa-dom.h.
12530 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12532         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12533         Use $(COMPILE) and $(POSTCOMPILE).
12535         * config/alpha/x-alpha (driver-alpha.o): Ditto.
12537 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12539         * tree-flow.h: Remove some prototypes.
12540         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12541         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12542         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12543         propagate_tree_value*): Move from here to...
12544         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12545         propagate_tree_value*): Relocate here.
12546         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12547         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12548         * gimple-fold.c: Remove gimple-fold.h from include list.
12549         * tree-vrp.c: Remove gimple-fold.h from include list.
12550         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12551         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12552         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12553         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12554         * sese.c: Add tree-ssa-propagate.h to include list.
12556 2013-10-02  Richard Biener  <rguenther@suse.de>
12558         * tree-loop-distribution.c: Include tree-vectorizer.h for
12559         find_loop_location.
12560         (enum partition_kind): Remove PKIND_REDUCTION.
12561         (struct partition_s): Remove has_writes member, add reduction_p member.
12562         (partition_alloc): Adjust.
12563         (partition_builtin_p): Likewise.
12564         (partition_has_writes): Remove.
12565         (partition_reduction_p): New function.
12566         (partition_merge_into): Likewise.
12567         (generate_code_for_partition): Commonize builtin partition
12568         handling tail.
12569         (rdg_cannot_recompute_vertex_p): Remove.
12570         (already_processed_vertex_p): Likewise.
12571         (rdg_flag_vertex): Do not set has_writes.
12572         (classify_partition): Adjust.
12573         (rdg_build_partitions): Do not set has_writes, treat all
12574         partitions as useful.
12575         (distribute_loop): Record number of library calls generated.  Adjust.
12576         (tree_loop_distribution): Report number of loops and library
12577         calls generated as opt-info.
12579 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12581         * tree-flow.h: Include new .h files.  Move prototypes.
12582         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
12583         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
12584         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12585         * tree-pretty-print.h: Add prototypes from tree-flow.h.
12586         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
12587         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12588         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12589         * tree.h (get_ref_base_and_extent): Move prototype out.
12590         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12591         tree-dfa.h.
12592         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
12593         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12594         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12595         * tree-scalar-evolution.c: Include tree.h.
12596         * sese.c: Include tree.h.
12597         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12598         * dwarf2out.c: Include tree-dfa.h.
12599         * tree-chrec.c: Include tree.h.
12600         * tree-data-ref.c: Include tree.h.
12602 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
12604         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12605         Fix whitespace.
12607 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12609         * config/t-sol2 (sol2-c.o): Remove header dependencies.
12610         Use $(COMPILE) and $(POSTCOMPILE).
12611         (sol2-cxx.o): Likewise.
12612         (sol2-stubs.o): Likewise.
12613         (sol2.o): Likewise.
12614         * config/x-solaris (host-solaris.o): Likewise.
12616         * config/sparc/t-sparc (sparc.o): Remove.
12617         (sparc-c.o): Remove header dependencies.
12618         Use $(COMPILE) and $(POSTCOMPILE).
12619         * config/sparc/x-sparc: Likewise.
12621 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
12623         * config/arc/arc-opts.h: Add 2013 to Copyright years.
12624         * config/arc/arc700.md: Likewise.
12625         * config/arc/arc-modes.def: Likewise.
12626         * config/arc/arc-simd.h: Likewise.
12627         * config/arc/t-arc-uClibc: Likewise.
12628         * config/arc/t-arc-newlib: Likewise.
12630 2013-10-02  Renlin Li  <renlin.li@arm.com>
12632         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12633         plus_constant.
12634         (aarch64_expand_epilogue): Likewise.
12636 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12637             Yufeng Zhang  <yufeng.zhang@arm.com>
12639         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12640         declaration.
12641         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12642         'base_in' represent a conversion and legal_cast_p_1 holds; set
12643         'base_in' with the returned value from get_unwidened.
12645 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12647         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12648         plus_constant is not used.
12650 2013-10-01  Wei Mi  <wmi@google.com>
12652         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12653         * config/i386/i386.md: Add define_peephole2 to
12654         break partial reg stall for cvtss2sd/cvtsd2ss.
12656 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12658         * config/arc/arc.c (pass_arc_ifcvt::clone):
12659         Update for ctxt_ -> m_ctxt change.
12661 2013-10-01  Jeff Law  <law@redhat.com>
12663         * tree-ssa-threadupdate.c (struct redirection_data): Delete
12664         outgoing_edge and intermediate_edge fields.  Instead store the path.
12665         (redirection_data::hash): Hash on the last edge's destination index.
12666         (redirection_data::equal): Check the entire thread path.
12667         (lookup_redirectio_data): Corresponding changes.
12668         (create_edge_and_update_destination_phis): Likewise.
12669         (thread_single_edge): Likewise.
12671 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12672             Diego Novillo <dnovillo@google.com>
12674         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12675         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12676         (vld32wh_insn, vld32wl_insn): Delete commented-out old
12677         versions of these patterns.
12679         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12680         (__builtin_arc_aligned): Likewise.
12682         * config/arc/arc.md: Expand adc_0 comment stating the intended
12683         purpose and why it isn't ready.
12684         Replace commented out call_value_via_label_mixed with a
12685         plain comment about bl_s.
12687         * config/arc/arc.c (stdio.h): Don't include directly.
12688         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12689         Remove if (1) condition.
12690         (arc_encode_section_info): Fix comment.
12692 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12694         * config/arc/arc.c (arc_conditional_register_usage):
12695         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12696         Also set reg_alloc_order for DMA config regs.
12698 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12699             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12701         * doc/install.texi (--with-cpu): Mention ARC.
12702         (arc-*-elf32): New paragraph.
12703         (arc-linux-uclibc): Likewise.
12704         * doc/md.texi (Machine Constraints): Add ARC part.
12705         * doc/invoke.texi: (menu): Add ARC Options.
12706         (Machine Dependent Options) <ARC Options>: Add synopsis.
12707         (node ARC Options): Add.
12708         * doc/extend.texi (long_call / short_call attribute): Add ARC.
12709         (ARC Built-in Functions): New section defining
12710         generic ARC built-in functions.
12711         (ARC SIMD Built-in Functions): New section defining SIMD specific
12712         built-in functions.
12713         (Declaring Attributes of Functions): Extended
12714         description of short_call and long_call attributes for ARC and
12715         added index entries.
12717 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
12718             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
12719             Joern Rennecke  <joern.rennecke@embecosm.com>
12720             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
12721             Brendan Kehoe  <brendan@zen.org>
12722             Michael Eager  <eager@eagercon.com>
12723             Simon Cook  <simon.cook@embecosm.com>
12724             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12726         * config/arc, common/config/arc: New directories.
12728 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12729             Brendan Kehoe  <brendan@zen.org>
12730             Simon Cook  <simon.cook@embecosm.com>
12732         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12734 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12736         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12737         * tree-ssa-coalesce.h: New. Move prototype to here.
12738         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12739         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12740         (gimple_can_coalesce_p): Move to...
12741         * gimple.c (gimple_can_coalesce_p): Here.
12743 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12745         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12746         (dump_decl_set): Move to gimple.c.
12747         * gimple.h: Don't include tree-ssa-operands.h.
12748         (dump_decl_set): Add prototype.
12749         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12750         Move to gimple-ssa.h.
12751         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
12752         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
12753         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
12754         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
12755         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
12756         than PHI_ARG_DEF.
12757         (dump_decl_set): Relocate here.
12758         * gimple-ssa.h: New file.
12759         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12760         Relocate from gimple.h.
12761         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
12762         * tree-ssa-operands.c (swap_ssa_operands): Rename from
12763         swap_tree_operands and remove non-ssa path.
12764         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
12765         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
12766         swap_ssa_operands.
12767         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
12768         vect_is_simple_reduction_1): Use swap_ssa_operands.
12769         * tree-flow.h: Move various prototypes to tree-phinodes.h.
12770         (enum need_phi_state): Move to tree-into-ssa.c.
12771         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12772         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
12773         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
12774         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
12775         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12776         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12777         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12778         num_imm_uses): Move to ssa-iterators.h.
12779         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
12780         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
12781         tree-phinodes.h.
12782         (op_iter_done, op_iter_next_def, op_iter_next_tree,
12783         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
12784         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
12785         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
12786         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
12787         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
12788         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
12789         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
12790         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
12791         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
12792         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
12793         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
12794         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
12795         (set_phi_nodes): Move to tree-phinodes.h.
12796         * tree-ssa-operands.h (enum ssa_op_iter_type,
12797         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
12798         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
12799         (dump_decl_set): Remove prototype.
12800         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
12801         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
12802         (set_phi_nodes): Relocate from tree-flow-inline.h.
12803         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
12804         tree-flow-inline.h
12805         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
12806         include list.  Temporarily add gimple.h to include list.
12807         * ssa-iterators.h: New file.
12808         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12809         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
12810         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
12811         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
12812         Relocate from tree-ssa-operands.h.
12813         (delink_imm_use, link_imm_use_to_list, link_imm_use,
12814         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12815         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12816         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12817         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
12818         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
12819         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
12820         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
12821         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
12822         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
12823         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
12824         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
12825         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
12826         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
12827         Relocate from tree-flow-inline.h.
12828         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
12830 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
12832         * aarch64-simd.md
12833         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
12834         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
12835         Insert '\t' to output template.
12836         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
12837         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
12838         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
12839         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
12841 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
12843         * doc/install.texi (Host/target specific installation notes for GCC):
12844         Put @anchor before @heading.
12845         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
12846         Use @email for email addresses.
12848 2013-10-01  Jeff Law  <law@redhat.com>
12850         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
12851         a vec.  Only delete the path if we create one without successfully
12852         registering a jump thread.
12853         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
12854         as a pointer.
12855         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
12856         (paths): New vector of jump threading paths.
12857         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
12858         (THREAD_PATH): New accessor macro for the entire thread path.
12859         (lookup_redirection_data): Get intermediate and final outgoing edge
12860         from the thread path.
12861         (create_edge_and_update_destination_phis): Copy the threading path.
12862         (ssa_fix_duplicate_block_edges): Get edges and block types from the
12863         jump threading path.
12864         (ssa_redirect_edges): Get edges and block types from the jump threading
12865         path.  Free the path vector.
12866         (thread_block): Get edges from the jump threading path.  Look at the
12867         entire path to see if we thread to a loop exit.  If we cancel a jump
12868         thread request, then free the path vector.
12869         (thread_single_edge): Get edges and block types from the jump threading
12870         path.  Free the path vector.
12871         (thread_through_loop_header): Get edges and block types from the jump
12872         threading path.  Free the path vector.
12873         (mark_threaded_blocks): Iterate over the vector of paths and store
12874         the path on the appropriate edge.  Get edges and block types from the
12875         jump threading path.
12876         (mark_threaded_blocks): Get edges and block types from the jump
12877         threading path.  Free the path vector.
12878         (thread_through_all_blocks): Use the vector of paths rather than
12879         a vector of 3-edge sets.
12880         (register_jump_thread): Accept pointer to a path vector rather
12881         than the path vector itself.  Store the path vector for later use.
12882         Simplify.
12884 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
12885             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12887         PR target/58574
12888         * config/s390/s390.c (s390_split_branches): Modify check for table
12889         jump insns.
12890         (s390_chunkify_start): Rearrange table jump insn check in order to
12891         deal with compare and branch insns correctly.
12893 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
12895         PR target/58578
12896         Revert
12897         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
12898         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
12899         define_insn_and_split.
12900         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
12901         (shiftsi3_compare): New pattern.
12902         (rrx): New pattern.
12903         * config/arm/unspecs.md (UNSPEC_RRX): New.
12905 2013-10-01  Alan Modra  <amodra@gmail.com>
12907         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
12908         casing inout operands.
12910 2013-10-01  Richard Biener  <rguenther@suse.de>
12912         PR tree-optimization/58553
12913         * tree-loop-distribution.c (struct partition_s): Add niter member.
12914         (classify_partition): Populate niter member for the partition
12915         and properly identify whether the relevant store happens before
12916         or after the loop exit.
12917         (generate_memset_builtin): Use niter member from the partition.
12918         (generate_memcpy_builtin): Likewise.
12920 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12922         * vec.h (vec_prefix, vec): Prefix member names with "m_".
12923         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
12925 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12927         * basic-block.h (edge_list): Prefix member names with "m_".
12928         * context.h (context): Likewise.
12929         * domwalk.h (dom_walker): Likewise.
12930         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
12931         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
12932         * hash-table.h (hash_table): Likewise.
12933         * machmode.h (bit_field_mode_iterator): Likewise.
12934         * pass_manager.h (pass_list): Likewise.
12935         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
12936         * tree-pass.h (pass_data): Likewise.
12937         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
12938         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
12939         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
12940         * asan.c (pass_data_asan): Update accordingly.
12941         * cfganal.c (control_dependences::find_control_dependence): Likewise.
12942         (control_dependences::control_dependences): Likewise.
12943         (control_dependences::~control_dependences): Likewise.
12944         (control_dependences::~control_dependences): Likewise.
12945         (control_dependences::get_edges_dependent_on): Likewise.
12946         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
12947         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
12948         * context.c (gcc::context::context): Likewise.
12949         * cprop.c (pass_rtl_cprop::clone): Likewise.
12950         * domwalk.c (dom_walker::walk): Likewise.
12951         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
12952         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
12953         * mode-switching.c (pass_mode_switching::clone): Likewise.
12954         * passes.c (opt_pass::opt_pass): Likewise.
12955         (pass_manager::pass_manager): Likewise.
12956         * predict.c (pass_strip_predict_hints::clone): Likewise.
12957         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
12958         (pass_split_all_insns::clone): Likewise.
12959         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
12960         Likewise.
12961         (bit_field_mode_iterator::next_mode): Likewise.
12962         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
12963         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
12964         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
12965         * tree-complex.c (pass_lower_complex::clone): Likewise.
12966         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
12967         * tree-object-size.c (pass_object_sizes::clone): Likewise.
12968         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
12969         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
12970         (pass_fold_builtins::clone): Likewise.
12971         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
12972         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
12973         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
12974         (pass_cd_dce::clone): Likewise.
12975         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
12976         (pass_phi_only_cprop::clone): Likewise.
12977         * tree-ssa-dse.c (pass_dse::clone): Likewise.
12978         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
12979         * tree-ssa-loop.c (pass_lim::clone): Likewise.
12980         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
12981         * tree-ssa-pre.c (pass_fre::clone): Likewise.
12982         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
12983         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
12984         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
12985         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
12986         * tree-vrp.c (pass_vrp::clone): Likewise.
12987         * tsan.c (pass_tsan::clone): Likewise.
12989 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
12991         PR middle-end/58564
12992         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
12993         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
12995         PR middle-end/58564
12996         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
12997         optimization, punt if sign_bit_p looked through any zero extension.
12999 2013-09-30  Teresa Johnson  <tejohnson@google.com>
13001         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13002         Update redirected out edge count in joiner case.
13003         (ssa_redirect_edges): Common the joiner and non-joiner cases
13004         so that joiner case gets profile updates.
13006 2013-09-30  Richard Biener  <rguenther@suse.de>
13008         PR tree-optimization/58554
13009         * tree-loop-distribution.c (classify_partition): Require
13010         unconditionally executed stores for memcpy and memset recognition.
13011         (tree_loop_distribution): Calculate dominance info.
13013 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
13015         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13016         (NO_PROFILE_COUNTERS): Likewise.
13017         (PROFILE_HOOK): Likewise.
13018         (FUNCTION_PROFILER): Likewise.
13019         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13021 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
13023         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13024         calls and defines in TARGET_MACHO conditional.
13025         (load_macho_picbase_di): Likewise.
13026         (reload_macho_picbase): Likewise.
13027         (reload_macho_picbase_si): Likewise.
13028         (reload_macho_picbase_di): Likewise.
13029         (nonlocal_goto_receiver): Likewise.
13031 2013-09-30  Nick Clifton  <nickc@redhat.com>
13033         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
13034         that use the MSP430X ISA.
13035         (msp430_option_override): Scan -mmcu command line option for any
13036         MCU name that supports the MSP430X ISA.
13037         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13038         -mmcu options which enable the MSP430X ISA.
13040 2013-09-30  Richard Biener  <rguenther@suse.de>
13042         PR middle-end/58532
13043         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13044         before looking for setjmp-like calls.
13046 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13048         PR target/10901
13049         * config/darwin-protos.h (machopic_get_function_picbase): New.
13050         * config/darwin.c (machopic_get_function_picbase): New.
13051         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13052         label for a new func.  (load_macho_picbase_di): Likewise.
13053         (reload_macho_picbase): New expand.
13054         (reload_macho_picbase_si): New insn.
13055         (reload_macho_picbase_di): New insn.
13056         (nonlocal_goto_receiver): New define and split.
13057         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13058         (unspecv enum): Add UNSPECV_NLGR.
13060 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13062         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13063         that altivec registers are correctly sized on Darwin.
13065 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13067         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13068         darwin-driver.o): Use COMPILE and POSTCOMPILE.
13069         * config/x-darwin (host-darwin.o): Likewise.
13070         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13071         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13072         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13074 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
13076         * doc/invoke.texi: Fix usage of @tie{} command.
13078 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
13080         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13082 2013-09-28  Jan Hubicka  <jh@suse.cz>
13084         * config/i386/x86-tune.def: Add documentation for each of the options;
13085         add whitespace.
13087 2013-09-28  Jan Hubicka  <jh@suse.cz>
13089         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13090         generic.
13091         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13092         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13093         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13094         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13095         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13097 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
13099         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13100         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13101         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13102         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13103         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13104         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13105         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13106         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13107         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13108         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13109         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13110         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13111         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13112         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13113         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13114         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13115         gimple.h, godump.c, graphite-clast-to-gimple.c,
13116         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13117         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13118         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13119         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13120         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13121         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13122         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13123         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13124         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13125         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13126         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13127         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13128         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13129         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13130         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13131         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13132         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13133         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13134         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13135         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13136         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13137         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13138         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13139         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13140         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13141         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13142         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13143         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13144         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13145         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13146         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13147         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13148         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13149         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13150         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13151         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13152         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13153         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13154         whitespace before "(".
13156 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
13158         * expr.h (extract_bit_field): Remove packedp parameter.
13159         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13160         from forward declaration.
13161         (store_split_bit_field): Remove packedp arg from calls to
13162         extract_fixed_bit_field.
13163         (extract_bit_field_1): Remove packedp parameter and packedp
13164         argument from recursive calls and calls to extract_fixed_bit_field.
13165         (extract_bit_field): Remove packedp parameter and corresponding
13166         arg to extract_bit_field_1.
13167         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
13168         to issue warnings.
13169         (extract_split_bit_field): Remove packedp arg from call to
13170         extract_fixed_bit_field.
13171         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13172         (copy_blkmode_from_reg): Likewise.
13173         (copy_blkmode_to_reg): Likewise.
13174         (read_complex_part): Likewise.
13175         (store_field): Likewise.
13176         (expand_expr_real_1): Likewise.
13177         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13178         to extract_bit_field.
13179         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13180         call to extract_bit_field.
13181         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13182         call to extract_bit_field.
13183         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13184         and special packedp behavior from -fstrict-volatile-bitfields
13185         documentation.
13187 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13189         * lra-eliminations.c (init_elim_table): Guard value_p.
13191 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
13193         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13194         DFmode, DImode, and SFmode in the upper VSX registers based on the
13195         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
13196         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
13197         of the VSX register handling.
13199         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13200         (f32_sv): Likewise.
13201         (zero_extendsidi2_lfiwzx): Add support for loading into the
13202         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
13203         only do VSX memory options on Altivec registers.
13204         (extendsidi2_lfiwax): Likewise.
13205         (extendsfdf2_fpr): Likewise.
13206         (mov<mode>_hardfloat, SF/SD modes): Likewise.
13207         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13208         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13209         (movdi_internal64): Likewise.
13211 2013-09-27  Xinliang David Li  <davidxl@google.com>
13213         * opts.c (finish_options): Adjust parameters
13214         according to vect cost model.
13215         (common_handle_option): Set dynamic vect cost
13216         model for FDO.
13217         targhooks.c (default_add_stmt_cost): Compute stmt cost
13218         unconditionally.
13219         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13220         Use helper function.
13221         * tree-vectorizer.h (unlimited_cost_model): New function.
13222         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13223         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13224         function.
13225         (vect_enhance_data_refs_alignment): Ditto.
13226         * flag-types.h: New enum.
13227         * common/config/i386/i386-common.c (ix86_option_init_struct):
13228         No need to initialize vect_cost_model flag.
13229         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13230         unconditionally.
13232 2013-09-27  Diego Novillo  <dnovillo@google.com>
13234         * gimple.h (enum ssa_mode): Remove.
13236 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
13238         * cfgloop.h (number_of_loops): Fix typo in check for null.
13240 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
13242         PR middle-end/58551
13243         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13244         are children of outermost saved_cfun's loop, and set it up to
13245         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
13246         if loop != loop0 and SESE region contains bbs that belong to loop0.
13248 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13250         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13251         (binary_scale_code_p, get_base_term, get_index_term): New functions.
13252         (set_address_segment, set_address_base, set_address_index)
13253         (set_address_disp): Accept the argument unconditionally.
13254         (baseness): Remove must_be_base_p and must_be_index_p checks.
13255         (decompose_normal_address): Classify as much as possible in the
13256         main loop.
13258 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13260         * cse.c (count_reg_usage): Handle INT_LIST.
13261         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13262         * reginfo.c (reg_scan_mark_refs): Likewise.
13263         * reload1.c (eliminate_regs_1): Likewise.
13265 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
13267         PR middle-end/58547
13268         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13269         signed.
13271 2013-09-27  Richard Biener  <rguenther@suse.de>
13273         PR tree-optimization/58459
13274         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13275         restriction not propagating into loops.
13277 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
13279         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13280         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13281         * doc/tree-ssa.texi (Walking use-def chains): Delete.
13283 2013-09-26  Richard Biener  <rguenther@suse.de>
13285         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13287 2013-09-26  Richard Biener  <rguenther@suse.de>
13289         * alias.h (component_uses_parent_alias_set): Rename to ...
13290         (component_uses_parent_alias_set_from): ... this.
13291         * alias.c (component_uses_parent_alias_set): Rename to ...
13292         (component_uses_parent_alias_set_from): ... this and return
13293         the desired parent.
13294         (reference_alias_ptr_type_1): Use the result from
13295         component_uses_parent_alias_set_from instead of stripping
13296         components one at a time.
13297         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13299 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
13301         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13302         Move prototypes to...
13303         * tree-ssa-ter.h: New File.  Move prototypes here.
13304         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13305         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13306         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
13307         from is_replaceable_p.
13308         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13309         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
13310         (process_replaceable): Use ter_is_replaceable_p.
13311         (find_replaceable_in_bb): Use ter_is_replaceable_p.
13312         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
13313         newly refactored ssa_is_replaceable_p.
13314         * cfgexpand.c: Include tree-outof-ssa.h.
13315         * ssaexpand.h: Delete.
13317 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
13319         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13320         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13321         tree-ssa.c
13322         (create_gimple_tmp): Delete.
13323         (get_expr_type, build_assign, build_type_cast): Move to...
13324         * gimple-builder.c: New File.
13325         (get_expr_type): Relocate from gimple.c.
13326         (build_assign, build_type_cast): Change to only create ssanames.
13327         * gimple.h: Move prototypes to...
13328         * gimple-builder.h: New File. Here.
13329         * tree-ssa.h: And here.
13330         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13331         count_uses_and_derefs): Relocate from gimple.c.
13332         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13333         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13334         * tree-ssa-math-opts (execute_cse_reciprocals): Use
13335         gimple_replace_ssa_lhs.
13336         * asan.c: Include gimple-builder.h.
13337         * Makefile.in: Add gimple-builder.o.
13339 2013-09-26  Richard Biener  <rguenther@suse.de>
13341         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13342         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13343         (loe_visit_block): Use gcc_checking_assert.
13344         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13345         gimple_assign_ssa_name_copy_p.
13346         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13347         change.
13349 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
13351         * config/rs6000/t-rs6000 (rs6000.o): Remove.
13352         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13354 2013-09-26  Richard Biener  <rguenther@suse.de>
13356         PR tree-optimization/58539
13357         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13358         the fact that debug statements are not taking part in loop-closed
13359         SSA construction.
13361 2013-09-26  Nick Clifton  <nickc@redhat.com>
13363         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13364         time warning message.
13365         (msp430_print_operand_raw): Delete unused letter parameter.
13366         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13367         (msp430_print_operand_address): New function.
13368         (msp430_print_operand): Move address printing code from here to
13369         new function.
13370         * config/msp430/msp430.md (movsipsi2): Add comment in generated
13371         assembler.
13372         (zero_extendpsisi2): Likewise.
13373         (extendpsisi2): New pattern.
13374         (andneghi3): New pattern.
13376 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
13378         * config/aarch64/aarch64.opt (mlra): New option.
13379         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13380         (TARGET_LRA_P): Define.
13382 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
13384         * expr.c (expand_assignment): Remove obsolete comment.
13386 2013-09-25  Jeff Law  <law@redhat.com>
13388         * tree-flow.h (thread_through_all_blocks): Prototype moved into
13389         tree-ssa-threadupdate.h.
13390         (register_jump_thread): Similarly.
13391         * tree-ssa-threadupdate.h: New header file.
13392         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13393         * tree-vrp.c: Likewise.
13394         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13395         (thread_around_empty_blocks): Change type of path vector argument to
13396         an edge,type pair from just an edge.  Initialize both elements when
13397         appending to a jump threading path.  Tweak references to elements
13398         appropriately.
13399         (thread_across_edge): Similarly.  Release memory for the elements
13400         as needed.
13401         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13402         (dump_jump_thread_path): New function broken out from
13403         register_jump_thread.
13404         (register_jump_thread): Use dump_jump_thread_path.  Change type of
13405         path vector entries.  Search the path for NULL edges and dump
13406         the path if one is found.  Tweak the conversion of path to 3-edge
13407         form to use the block copy type information embedded in the path.
13409 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13411         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13413 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13414             Vladimir Makarov  <vmakarov@redhat.com>
13416         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13417         from the least significant bit.
13418         (strip_address_mutations): Add bitfield operations handling.
13419         (must_be_index_p): Add shifting and rotate operations handling.
13420         (set_address_base): Use must_be_base_p predicate.
13421         (set_address_index): Use must_be_index_p predicate.
13423 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13424             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13425             Sergey Lega  <sergey.s.lega@intel.com>
13426             Anna Tikhonova  <anna.tikhonova@intel.com>
13427             Ilya Tocar  <ilya.tocar@intel.com>
13428             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13429             Ilya Verbin  <ilya.verbin@intel.com>
13430             Kirill Yukhin  <kirill.yukhin@intel.com>
13431             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13433         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13434         Use new names.
13435         (ix86_expand_vector_move_misalign): Support new unaligned load and
13436         stores and use new names.
13437         (CODE_FOR_sse2_storedqu): Rename to ...
13438         (CODE_FOR_sse2_storedquv16qi): ... this.
13439         (CODE_FOR_sse2_loaddqu): Rename to ...
13440         (CODE_FOR_sse2_loaddquv16qi): ... this.
13441         (CODE_FOR_avx_loaddqu256): Rename to ...
13442         (CODE_FOR_avx_loaddquv32qi): ... this.
13443         (CODE_FOR_avx_storedqu256): Rename to ...
13444         (CODE_FOR_avx_storedquv32qi): ... this.
13445         * config/i386/i386.md (fpint_logic): New.
13446         * config/i386/sse.md (VMOVE): Extend for AVX512.
13447         (VF): Ditto.
13448         (VF_128_256): New.
13449         (VF_512): Ditto.
13450         (VI_UNALIGNED_LOADSTORE): Ditto.
13451         (sse2_avx_avx512f): Ditto.
13452         (sse2_avx2): Extend for AVX512.
13453         (sse4_1_avx2): Ditto.
13454         (avx2_avx512f): New.
13455         (sse): Extend for AVX512.
13456         (sse2): Ditto.
13457         (sse4_1): Ditto.
13458         (avxsizesuffix): Ditto.
13459         (sseintvecmode): Ditto.
13460         (ssePSmode): Ditto.
13461         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13462         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13463         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13464         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13465         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13466         (<sse2_avx_avx512f>_storedqu<mode): ... this.
13467         (<sse>_movnt<mode>): Replace constraint "x" with "v".
13468         (STORENT_MODE): Extend for AVX512.
13469         (*absneg<mode>2): Replace constraint "x" with "v".
13470         (*mul<mode>3): Ditto.
13471         (*ieee_smin<mode>3): Ditto.
13472         (*ieee_smax<mode>3): Ditto.
13473         (avx_cmp<mode>3): Replace VF with VF_128_256.
13474         (*<sse>_maskcmp<mode>3_comm): Ditto.
13475         (<sse>_maskcmp<mode>3): Ditto.
13476         (<sse>_andnot<mode>3): Extend for AVX512.
13477         (<code><mode>3, anylogic): Replace VF with VF_128_256.
13478         (<code><mode>3, fpint_logic): New.
13479         (*<code><mode>3): Extend for AVX512.
13480         (avx512flogicsuff): New.
13481         (avx512f_<logic><mode>): Ditto.
13482         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13483         VF_128_256.
13484         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13485         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13486         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13487         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13488         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13489         (xop_vpermil2<mode>3): Ditto.
13490         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13491         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13492         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13493         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13495 2013-09-25  Tom Tromey  <tromey@redhat.com>
13497         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13498         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13499         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13500         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13501         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13502         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13503         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13504         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13505         (GRAPHITE_HTAB_H): Remove.
13507 2013-09-25  Tom Tromey  <tromey@redhat.com>
13509         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13511 2013-09-25  Tom Tromey  <tromey@redhat.com>
13513         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13515 2013-09-25  Tom Tromey  <tromey@redhat.com>
13517         * config/i386/t-i386 (i386.o): Remove.
13518         (i386-c.o): Use COMPILE and POSTCOMPILE.
13520 2013-09-25  Tom Tromey  <tromey@redhat.com>
13522         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13524 2013-09-25  Tom Tromey  <tromey@redhat.com>
13526         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13527         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13528         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13529         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13530         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13531         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13532         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13533         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13534         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13535         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13536         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13537         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13538         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13539         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13540         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13541         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13542         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13543         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13544         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13545         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13546         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13547         (tree-ssa-pre.o, tree-ssa-sccvn.o)
13548         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13549         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13550         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13551         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13552         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13553         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13554         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13555         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13556         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13557         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13558         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13559         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13560         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13561         (graphite-clast-to-gimple.o, graphite-dependences.o)
13562         (graphite-interchange.o, graphite-poly.o)
13563         (graphite-scop-detection.o, graphite-sese-to-poly.o)
13564         (graphite-optimize-isl.o, tree-vect-loop.o)
13565         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13566         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13567         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13568         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13569         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13570         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13571         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13572         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13573         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13574         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13575         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13576         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13577         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13578         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13579         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13580         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13581         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13582         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13583         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13584         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13585         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13586         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13587         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13588         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13589         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13590         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13591         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13592         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13593         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13594         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13595         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13596         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13597         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13598         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13599         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13600         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13601         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13602         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13603         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13604         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13605         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13606         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13607         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13608         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13609         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13610         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13611         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13612         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13613         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13614         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13615         (gcov-dump.o): Remove.
13616         (default-c.o): Use COMPILE and POSTCOMPILE.
13617         (CFLAGS-gcc.o): New variable.
13618         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13620 2013-09-25  Tom Tromey  <tromey@redhat.com>
13622         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13623         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13624         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13625         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13626         (c-family/c-pragma.o, c-family/c-pretty-print.o)
13627         (c-family/c-semantics.o, c-family/c-ada-spec.o)
13628         (c-family/array-notation-common.o, c-family/stub-objc.o)
13629         (c-family/c-ubsan.o): Remove.
13631 2013-09-25  Tom Tromey  <tromey@redhat.com>
13633         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13635 2013-09-25  Tom Tromey  <tromey@redhat.com>
13637         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13638         to add -DENABLE_SHARED_LIBGCC.
13639         (gcc.o): Don't use subshell.
13641 2013-09-25  Tom Tromey  <tromey@redhat.com>
13643         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13644         * configure.ac: Don't invoke AM_PROG_CC_C_O.
13645         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13646         * configure, config.in: Rebuild.
13648 2013-09-25  Tom Tromey  <tromey@redhat.com>
13650         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13651         (COMPILE, POSTCOMPILE): New variables.
13652         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13653         (DEPFILES): New variable.
13654         Include ".Po" files.
13655         * configure.ac: Add checks for dependency checking.
13656         * configure, aclocal.m4: Regenerate.
13658 2013-09-25  Tom Tromey  <tromey@redhat.com>
13660         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
13661         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
13663 2013-09-25  Tom Tromey  <tromey@redhat.com>
13665         * Makefile.in (generated_files): Add options.h,
13666         target-hooks-def.h, insn-opinit.h,
13667         common/common-target-hooks-def.h, pass-instances.def,
13668         c-family/c-target-hooks-def.h.
13670 2013-09-25  Jeff Law  <law@redhat.com>
13672         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13673         than foo[foo.length () - 1] to access last member in a vec.
13674         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13676 2013-09-25  Richard Biener  <rguenther@suse.de>
13678         PR middle-end/58521
13679         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13681 2013-09-25  Jan Hubicka  <jh@suse.cz>
13683         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13684         test.
13686 2013-09-25  Marek Polacek  <polacek@redhat.com>
13688         PR sanitizer/58420
13689         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13690         when determining the type name.
13692 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
13694         * config/sh/sh.md: Fix formatting.
13696 2013-09-24  Xinliang David Li  <davidxl@google.com>
13698         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13699         max peel iterations parameter.
13700         * param.def: New parameter.
13701         * doc/invoke.texi: Document New parameter.
13703 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
13705         * gimple-pretty-print.c: Various whitespace tweaks.
13706         * tree-core.h: Likewise.
13707         * tree-pretty-print.c: Likewise.
13708         * tree-ssa-alias.c: Likewise.
13709         * tree-ssa-copy.c: Likewise.
13710         * tree-ssanames.c: Likewise.
13711         * tree-ssanames.h: Likewise.
13712         * tree-vrp.c: Likewise.
13714 2013-09-24  Alan Modra  <amodra@gmail.com>
13716         PR middle-end/57134
13717         PR middle-end/57586
13718         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13719         for output operands that disallow regs.  Don't use EXPAND_WRITE on
13720         inout operands.
13722 2013-09-24  Richard Biener  <rguenther@suse.de>
13724         PR middle-end/58513
13725         * tree.c (reference_alias_ptr_type): Move ...
13726         * alias.c (reference_alias_ptr_type): ... here and implement
13727         in terms of the new reference_alias_ptr_type_1.
13728         (ref_all_alias_ptr_type_p): New helper.
13729         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13730         use ref_all_alias_ptr_type_p.
13731         (get_deref_alias_set): Add flag_strict_aliasing check here.
13732         (reference_alias_ptr_type_1): New function, split out from ...
13733         (get_alias_set): ... here.
13734         (alias_ptr_types_compatible_p): New function.
13735         * alias.h (reference_alias_ptr_type): Declare.
13736         (alias_ptr_types_compatible_p): Likewise.
13737         * tree.h (reference_alias_ptr_type): Remove.
13738         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13739         to compare MEM_REF alias types.
13741 2013-09-24  Richard Biener  <rguenther@suse.de>
13743         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13745 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13747         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13748         reload helper function arrays into a single array reg_addr.
13749         (reload_fpr_gpr): Likewise.
13750         (reload_gpr_vsx): Likewise.
13751         (reload_vsx_gpr): Likewise.
13752         (struct rs6000_reg_addr): Likewise.
13753         (reg_addr): Likewise.
13754         (rs6000_debug_reg_global): Change rs6000_vector_reload,
13755         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
13756         (rs6000_init_hard_regno_mode_ok): Likewise.
13757         (rs6000_secondary_reload_direct_move): Likewise.
13758         (rs6000_secondary_reload): Likewise.
13760         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
13761         constraints: wu, ww, and wy.  Repurpose wv constraint added during
13762         power8 changes.  Put wg constraint in alphabetical order.
13764         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
13765         for future work to add ISA 2.07 VSX single precision support.
13766         (-mvsx-scalar-double): Change default from -1 to 1, update
13767         documentation comment.
13768         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
13769         (-mupper-regs-df): New debug switch to control whether DF values
13770         can go in the traditional Altivec registers.
13771         (-mupper-regs-sf): New debug switch to control whether SF values
13772         can go in the traditional Altivec registers.
13774         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
13775         and wy constraints.
13776         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
13777         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
13778         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
13779         (rs6000_debug_legitimate_address_p): Print if we are running
13780         before, during, or after reload.
13781         (rs6000_secondary_reload): Add a comment.
13782         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
13784         * config/rs6000/constraints.md (wa constraint): Sort w<x>
13785         constraints.  Update documentation string.
13786         (wd constraint): Likewise.
13787         (wf constraint): Likewise.
13788         (wg constraint): Likewise.
13789         (wn constraint): Likewise.
13790         (ws constraint): Likewise.
13791         (wt constraint): Likewise.
13792         (wx constraint): Likewise.
13793         (wz constraint): Likewise.
13794         (wu constraint): New constraint for ISA 2.07 SFmode scalar
13795         instructions.
13796         (ww constraint): Likewise.
13797         (wy constraint): Likewise.
13798         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
13799         in the previous submissions.
13800         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
13802 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
13804         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
13805         (REG_BR_PROB): Say that the probability is stored in an int_list.
13806         * reg-notes.def: Update commentary to mention INT_LIST.
13807         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
13808         (INT_LIST): New rtx.
13809         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
13810         * rtlanal.c (int_reg_note_p): New function.
13811         (alloc_reg_note): Assert that the note does not have an int argument.
13812         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
13813         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
13814         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
13815         rather than an INSN_LIST.  Handle INT_LIST.
13816         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
13817         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
13818         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
13819         Manipulate them as ints rather than rtxes.
13820         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
13821         * regmove.c (copy_src_to_dest): Likewise.
13822         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
13824         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
13825         into the cases that need it.
13826         * config/arm/arm.c (arm_unwind_emit): Likewise.
13828         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
13829         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
13830         * loop-doloop.c (add_test, doloop_modify): Likewise.
13831         * loop-unswitch.c (compare_and_jump_seq): Likewise.
13832         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
13833         * predict.c (combine_predictions_for_insn): Likewise.
13834         * print-rtl.c (print_rtx): Handle INT_LIST.
13835         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
13836         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
13837         * config/arm/arm.c (emit_unlikely_jump): Likewise.
13838         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
13839         (ix86_split_fp_branch, predict_jump): Likewise.
13840         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
13841         * config/sh/sh.c (expand_cbranchsi4): Likewise.
13842         * config/spu/spu.c (ea_load_store_inline): Likewise.
13844         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
13845         value of a REG_BR_PROB note.
13846         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13847         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
13848         * emit-rtl.c (try_split): Likewise.
13849         * predict.c (br_prob_note_reliable_p): Likewise.
13850         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
13851         * reorg.c (mostly_true_jump): Likewise.
13852         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
13853         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
13854         * config/i386/i386.c (ix86_print_operand): Likewise.
13855         * config/ia64/ia64.c (ia64_print_operand): Likewise.
13856         * config/mmix/mmix.c (mmix_print_operand): Likewise.
13857         * config/rs6000/rs6000.c (output_cbranch): Likewise.
13858         * config/s390/s390.c (s390_expand_tbegin): Likewise.
13859         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
13860         * config/sparc/sparc.c (output_cbranch): Likewise.
13861         * config/spu/spu.c (get_branch_target): Likewise.
13862         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
13863         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
13865 2013-09-23  Jan Hubicka  <jh@suse.cz>
13867         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
13868         for ipa-devirt.
13869         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
13870         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
13871         of external calls
13872         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
13873         (gimple_fold_call): Dump inconsistent devirtualizations; add
13874         sanity check for type based devirtualizations.
13875         * ipa-prop.c: Include ipa-utils.h
13876         (ipa_intraprocedural_devirtualization): Add sanity check.
13877         (try_make_edge_direct_virtual_call): Likewise.
13879 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
13881         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
13882         assignment statements.
13884 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13886         * gimple-pretty-print.c (dump_ssaname_info): New function.
13887         (dump_gimple_phi): Call it.
13888         (pp_gimple_stmt_1): Likewise.
13889         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
13890         (range_info_def): Declare.
13891         * tree-pretty-print.c (pp_double_int): New function.
13892         (dump_generic_node): Call it.
13893         * tree-pretty-print.h (pp_double_int): Declare.
13894         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
13895         * tree-ssanames.h (range_info_def): New structure.
13896         (value_range_type): Move definition here.
13897         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
13898         Declare.
13899         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
13900         initialization.
13901         (set_range_info): New function.
13902         (get_range_info): Likewise.
13903         (duplicate_ssa_name_range_info): Likewise.
13904         (duplicate_ssa_name_fn): Check pointer type and call
13905         duplicate_ssa_name_range_info.
13906         * tree-ssa-copy.c (fini_copy_prop): Likewise.
13907         * tree-vrp.c (value_range_type): Remove definition, now in
13908         tree-ssanames.h.
13909         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
13910         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
13911         (SSA_NAME_RANGE_INFO): New macro.
13913 2013-09-23  Richard Biener  <rguenther@suse.de>
13915         PR tree-optimization/58464
13916         * tree-ssa-pre.c (phi_trans_lookup): Remove.
13917         (phi_trans_add): Change to add conditionally on being not present.
13918         (phi_translate_1): Remove recursion detection here.
13919         (phi_translate): Pre-seed the cache with NULL to catch
13920         recursion here in a more generic way.
13921         (bitmap_find_leader): Adjust comment.
13922         (get_representative_for): Dump value-numbers.
13923         (create_expression_by_pieces): Likewise.
13924         (insert_into_preds_of_block): Likewise.
13926 2013-09-23  Christian Bruel  <christian.bruel@st.com>
13928         PR target/58475
13929         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
13930         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
13932 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
13934         Revert r202780:
13935         2013-09-20  Renlin Li  <renlin.li@arm.com>
13937         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13938         plus_constant.
13939         (aarch64_expand_epilogue): Likewise.
13940         (aarch64_legitimize_reload_address): Likewise.
13942 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
13944         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
13945         NULL_TREE before pushing them onto the vector.  Likewise for labels.
13947 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
13949         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
13950         comparison operators when -fno-trapping-math is in effect.
13951         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
13952         comparison operators in TFmode and assert that unsupported operators
13953         cannot reach here.
13954         (ia64_print_operand): Likewise.
13956 2013-09-21  Jan Hubicka  <jh@suse.cz>
13958         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
13959         (sse_typeless_stores): Enable for core
13960         (sse_load0_by_pxor): Likewise.
13961         (four_jump_limit): Disable for core.
13962         (pad_returns): Likewise.
13963         (avoid_vector_decode): Likewise.
13964         (fuse_cmp_and_branch): Enable for cores.
13965         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
13967 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
13969         PR middle-end/56791
13970         * config/pa/pa.c (pa_option_override): Disable auto increment and
13971         decrement instructions until reload is completed.
13973         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
13974         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
13975         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13977 2013-09-20  DJ Delorie  <dj@redhat.com>
13978             Nick Clifton  <nickc@redhat.com>
13980         * config/rl78/rl78.c: Various whitespace and comment tweaks.
13981         (need_to_save): Save bank 0 on interrupts.
13982         (characterize_address): Strip far address wrappers.
13983         (rl78_as_legitimate_address): Likewise.
13984         (transcode_memory_rtx): Likewise.
13985         (rl78_peep_movhi_p): Disable this peephole after devirt.
13986         (rl78_propogate_register_origins): Forget all origins when a
13987         CLOBBER is seen.
13988         * config/rl78/rl78-virt.md: Various whitespace tweaks.
13989         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
13990         peephole2's.
13991         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
13992         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
13993         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
13994         relocating.
13995         * config/rl78/constraints.md: Various whitespace and paren tweaks.
13997 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
13999         * config/pa/pa.md: In "scc" insn patterns, change output template to
14000         handle const0_rtx in reg_or_0_operand operands.
14002 2013-09-20  Martin Husemann  <martin@NetBSD.org>
14004         PR target/56875
14005         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14006         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14008 2013-09-20  Richard Biener  <rguenther@suse.de>
14010         PR middle-end/58484
14011         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14012         remembering SSA name version and block index.
14013         (new_scev_info_str): Adjust.
14014         (hash_scev_info): Likewise.  Also hash the block index.
14015         (eq_scev_info): Adjust.
14016         (find_var_scev_info): Likewise.
14017         (struct instantiate_cache_entry): Remove.
14018         (struct instantiate_cache_type): Use a htab to map name, block
14019         to chrec.
14020         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14021         (get_instantiated_value_entry): Likewise.
14022         (hash_idx_scev_info, eq_idx_scev_info): New functions.
14023         (instantiate_scev_name): Adjust.
14025 2013-09-20  Jeff Law  <law@redhat.com>
14027         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14029 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
14031         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14032         Call aarch64_simd_expand_args to update op[argc].
14034 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14036         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14037         plugin argument.
14039 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14041         * gengtype.c (file_rules): Added rule for *.cc files.
14042         (get_output_file_with_visibility): Give fatal message when no
14043         rules found.
14045 2013-09-20  Renlin Li  <renlin.li@arm.com>
14047         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14048         (aarch64_expand_epilogue): Likewise.
14049         (aarch64_legitimize_reload_address): Likewise.
14051 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14053         PR middle-end/57748
14054         * expr.c (expand_assignment): Remove misalignp code path.
14056 2013-09-20  Marek Polacek  <polacek@redhat.com>
14058         PR sanitizer/58413
14059         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14060         TYPE_PRECISION.  Add asserts.
14062 2013-09-20  Richard Biener  <rguenther@suse.de>
14064         PR tree-optimization/58453
14065         * tree-loop-distribution.c (distribute_loop): Apply the cost
14066         model for -ftree-loop-distribute-patterns, too.
14068 2013-09-20  Richard Biener  <rguenther@suse.de>
14070         PR middle-end/58473
14071         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14072         make type comparison less strict.
14074 2013-09-20  Alan Modra  <amodra@gmail.com>
14076         * configure: Regenerate.
14077         * aclocal.m4: Regenerate.
14079 2013-09-20  Marek Polacek  <polacek@redhat.com>
14081         PR other/58467
14082         * doc/extend.texi: Document that attribute used is meant to be used
14083         on variables with static storage duration.
14085 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14087         PR tree-optimization/58472
14088         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14089         simd_lane_access set inv_p = false.
14090         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14091         the simduid magic VAR_DECL.
14093 2013-09-19  Jan Hubicka  <jh@suse.cz>
14095         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14097 2013-09-17  Jeff Law  <law@redhat.com>
14099         * tree-ssa-dom.c (record_temporary_equivalences): New function
14100         split out of dom_opt_dom_walker::after_dom_children.
14101         (dom_opt_dom_walker::thread_across_edge): Move common code
14102         in here from dom_opt_dom_walker::after_dom_children.
14103         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14105 2013-09-19  Jan Hubicka  <jh@suse.cz>
14107         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14108         (TARGET_GENERIC): Use PROCESOR_GENERIC
14109         (enum processor_type): Unify generic32 and 64.
14110         * i386.md (cpu): Likewise.
14111         * x86-tune.def (use_leave): Enable for generic32.
14112         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14113         * athlon.md: Change generic64 to generic in all occurences.
14114         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14115         (ix86_target_macros_internal): Likewise.
14116         * driver-i386.c (host_detect_local_cpu): Likewise.
14117         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14118         to ..
14119         (generic_memcpy, generic_memset, generic_cost): This one.
14120         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14121         (m_GENERIC32, m_GENERIC64): Remove.
14122         (m_GENERIC): Turn into one flag.
14123         (processor_target): Unify generic tunnings.
14124         (ix86_option_override_internal): Replace generic32/64 by generic.
14125         (ix86_issue_rate): Likewise.
14126         (ix86_adjust_cost): Likewise.
14128 2013-09-19  Jan Hubicka  <jh@suse.cz>
14130         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14131         of speculative flag.
14133 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14135         * omp-low.c (expand_omp_sections): Always pass len - 1 to
14136         GOMP_sections_start, even if !exit_reachable.
14138 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14140         * lra-constraints.c (need_for_all_save_p): Use macro
14141         HARD_REGNO_CALL_PART_CLOBBERED.
14142         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14143         set up pseudo conflict hard regs.
14145 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14147         PR target/58452
14148         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14149         operands.
14151 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14153         PR rtl-optimization/58438
14154         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14155         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14156         from previous subpasses.
14158 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
14160         * arm.c (arm_get_frame_offsets): Validate architecture supports
14161         LDRD/STRD before accepting the tuning preference.
14162         (arm_expand_prologue): Likewise.
14163         (arm_expand_epilogue): Likewise.
14165 2013-09-18  Richard Biener  <rguenther@suse.de>
14167         PR tree-optimization/58417
14168         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14169         have chrecs with symbols defined in the loop as operands.
14170         (chrec_fold_multiply): Likewise.
14171         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14172         parameters before folding binary operations.
14173         (struct instantiate_cache_entry_hasher): Remove.
14174         (struct instantiate_cache_type): Use a pointer-map.
14175         (instantiate_cache_type::instantiate_cache_type): New function.
14176         (instantiate_cache_type::get): Likewise.
14177         (instantiate_cache_type::set): Likewise.
14178         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14179         (get_instantiated_value_entry): Likewise.
14180         (global_cache): New global.
14181         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14182         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14183         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14184         (instantiate_scev_name): Adjust.
14185         (instantiate_scev): Construct global instead of local cache.
14186         (resolve_mixers): Likewise.
14188 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
14189             Paolo Carlini  <paolo.carlini@oracle.com>
14191         PR c++/58458
14192         * doc/implement-cxx.texi: Fix references to the C++ standards.
14194 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
14196         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14197         * tree-vect-data-refs.c (vect_analyze_data_refs): For
14198         simd_lane_access drs, update also DR_ALIGNED_TO.
14200 2013-09-18  Marek Polacek  <polacek@redhat.com>
14202         PR sanitizer/58411
14203         * doc/extend.texi: Document no_sanitize_undefined attribute.
14204         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14205         no_sanitize_undefined attribute.
14207 2013-09-18  Nick Clifton  <nickc@redhat.com>
14209         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14210         (ASM_DECLARE_FUNCTION_NAME): Define.
14212 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
14214         * compare-elim.c (find_comparison_dom_walker): New class
14215         (find_comparisons_in_bb): Rename to
14216         find_comparison_dom_walker::before_dom_children
14217         (find_comparisons): Adjust
14218         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14219         adjust.
14220         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14221         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14222         (init_walk_dominator_tree): Remove declaration.
14223         (fini_walk_dominator_tree): Remove declaration.
14224         * fwprop.c (single_def_use_dom_walker): New class
14225         (single_def_use_enter_block): Convert to
14226         single_def_use_dom_walker::before_dom_children.
14227         (single_def_use_leave_block): Convert to
14228         single_def_use_dom_walker::after_dom_children.
14229         (build_single_def_use_links): Adjust.
14230         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14231         class.
14232         (find_candidates_in_block): Convert to
14233         find_candidates_dom_walker::before_dom_children.
14234         (execute_strength_reduction): Adjust.
14235         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14236         (sese_dom_walker): New class.
14237         (sese_dom_walker::sese_dom_walker): New constructor.
14238         (sese_dom_walker::~sese_dom_walker): New destructor.
14239         (build_sese_conditions_before): Convert to
14240         sese_dom_walker::before_dom_children.
14241         (build_sese_conditions_after): Convert to
14242         sese_dom_walker::after_dom_children.
14243         (build_poly_scop): Adjust
14244         * tree-into-ssa.c (rewrite_dom_walker): New class
14245         (rewrite_enter_block): Convert to
14246         rewrite_dom_walker::before_dom_children.
14247         (rewrite_leave_block): Convert to
14248         rewrite_dom_walker::after_dom_children.
14249         (rewrite_update_dom_walker): New class.
14250         (rewrite_update_enter_block): Convert to
14251         rewrite_update_dom_walker::before_dom_children.
14252         (rewrite_update_leave_block): Convert to
14253         rewrite_update_dom_walker::after_dom_children.
14254         (rewrite_blocks, rewrite_into_ssa): Adjust.
14255         (mark_def_dom_walker): New class.
14256         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14257         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14258         (mark_def_sites_blocks): Convert to
14259         mark_def_dom_walker::before_dom_children.
14260         (mark_def_site_blocks): Remove.
14261         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14262         (tree_ssa_dominator_optimize): Adjust.
14263         (dom_thread_across_edge): Convert to method
14264         dom_opt_dom_walker::thread_across_edge.
14265         (dom_opt_enter_block): Convert to member function
14266         dom_opt_dom_walker::before_dom_children.
14267         (dom_opt_leave_block): Convert to member function
14268         dom_opt_dom_walker::after_dom_children.
14269         * tree-ssa-dse.c (dse_dom_walker): New class.
14270         (dse_enter_block): Convert to member function
14271         dse_dom_walker::before_dom_children.
14272         (tree_ssa_dse): Adjust.
14273         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14274         (determine_invariantness_stmt): Convert to method
14275         invariantness_dom_walker::before_dom_children.
14276         (determine_invariantness): Remove
14277         (move_computations_dom_walker): New class.
14278         (move_computations_stmt): Convert to method
14279         move_computations_dom_walker::before_dom_children.
14280         (move_computations, tree_ssa_lim): Adjust.
14281         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14282         (nt_init_block): Convert to method
14283         notrappping_dom_walker::before_dom_children.
14284         (nt_fini_block): Convert to method
14285         method nontrapping_dom_walker::after_dom_children.
14286         (get_non_trapping): Adjust.
14287         * tree-ssa-pre.c (eliminate_dom_walker): New class.
14288         (eliminate_bb): Convert to method
14289         eliminate_dom_walker::before_dom_children.
14290         (eliminate_leave_block): Convert to method
14291         eliminate_dom_walker::after_dom_children.
14292         (eliminate): Adjust.
14293         * tree-ssa-strlen.c (strlen_dom_walker): New class.
14294         (strlen_enter_block): Convert to method
14295         strlen_dom_walker::before_dom_children.
14296         (strlen_leave_block): Convert to method
14297         method strlen_dom_walker::after_dom_children.
14298         (tree_ssa_strlen): Adjust.
14299         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14300         (tree_ssa_uncprop): Adjust.
14301         (uncprop_leave_block): Convert to method
14302         uncprop_dom_walker::after_dom_children.
14303         (uncprop_leave_block): Convert to method
14304         uncprop_dom_walker::before_dom_children.
14306 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
14308         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14309         branch in same basic block.  Check both src and dest of the move insn.
14311 2013-09-17  Nick Clifton  <nickc@redhat.com>
14313         * config/rl78/rl78-real.md (bf): New pattern.
14314         (bt): New pattern.
14315         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14316         (rl78_print_operand): Do not put a # before a %B.
14317         * config/rl78/rl78.opt: Tweak doc strings.
14319 2013-09-17  DJ Delorie  <dj@redhat.com>
14321         * config/rl78/constraints.md (Wcv): Allow up to $r31.
14322         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14323         (rl78_option_override): Likewise, if -mallregs.
14324         (is_virtual_register): Likewise.
14325         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14326         (REGNO_OK_FOR_BASE_P): Likewise.
14327         * config/rl78/rl78.opt (-mallregs): New.
14329 2013-09-17  Nick Clifton  <nickc@redhat.com>
14331         * config/rl78/rl78.c (need_to_save): Change return type to bool.
14332         For interrupt functions: save all call clobbered registers if the
14333         interrupt handler is not a leaf function.
14334         (rl78_expand_prologue): Always recompute the frame information.
14335         For interrupt functions: only select bank 0 if one of the bank 0
14336         registers is going to be psuhed.
14338 2013-09-17  DJ Delorie  <dj@redhat.com>
14340         * config/rl78/constraints.md: For each W* constraint, rename to C*
14341         and create a W* constraint that checks for an optional ES: prefix
14342         pattern also.
14343         * config/rl78/rl78.md (UNS_ES_ADDR): New.
14344         (es_addr): New.  Used to wrap far addresses.
14345         * config/rl78/rl78-protos.h (rl78_es_addr): New.
14346         (rl78_es_base): New.
14347         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14348         wrapped far addresses.
14349         (rl78_print_operand_1): Unwrap far addresses before processing.
14350         (rl78_lo16): Wrap far addresses in unspecs.
14351         (rl78_es_addr): New.
14352         (rl78_es_base): New.
14353         (insn_ok_now): Check for not-yet-wrapped far addresses.
14354         (transcode_memory_rtx): Properly re-wrap far addresses.
14356 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14358         * config/sparc/t-rtems: Add leon3 multilibs.
14360 2013-09-17  Cong Hou  <congh@google.com>
14362         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14363         when checking the dot production pattern. The type of rhs operand
14364         of multiply is now checked correctly.
14366 2013-09-17  Jeff Law  <law@redhat.com>
14368         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14369         edge implied equivalences into successor phis.
14370         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14371         here from tree-ssa-threadedge.c.
14372         (mark_threaded_blocks): When threading through a joiner, if both
14373         successors of the joiner's clone reach the same block, verify the
14374         PHI arguments are equal.  If not, cancel the jump threading request.
14375         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14376         tree-ssa-threadupdate.c
14377         (thread_across_edge): Don't check PHI argument equality when
14378         threading through joiner block here.
14380 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
14382         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14383         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14384         (warn_uninit, warn_uninitialized_vars,
14385         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14386         Move to tree-ssa-uninit.c.
14387         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14388         (has_undefined_value_p): New.  Pass dependant parts of
14389         ssa_undefined_value_p.
14390         (uninit_undefined_value_p): Use has_undefined_value_p.
14391         (warn_uninit, warn_uninitialized_vars,
14392         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14393         Move from tree-ssa.c.
14394         * tree-ssa.h: Adjust prototypes.
14396 2013-09-17  Jan Hubicka  <jh@suse.cz>
14398         PR middle-end/58332
14399         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14400         * ipa-inline.c (can_inline_edge_p): Do not downgrade
14401         FUNCTION_NOT_OPTIMIZED.
14402         * ipa-inline-analysis.c (compute_inline_parameters): Function
14403         not optimized is not inlinable unless it is alwaysinline.
14404         (inline_analyze_function): Force calls in not optimized
14405         function not inlinable.
14407 2013-09-17  Jan Hubicka  <jh@suse.cz>
14409         PR middle-end/58329
14410         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14411         to return NULL.
14412         * ipa.c (function_and_variable_visibility): Likewise.
14413         * ipa-profile.c (ipa_profile): Likewise.
14415 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14417         PR ipa/58398
14418         * cgraph.c (cgraph_function_body_availability): Check for ifunc
14419         attribute, and don't inline the resolver in this case.
14421 2013-09-17  Teresa Johnson  <tejohnson@google.com>
14423         * coverage.c (get_coverage_counts): Add missing newline.
14425 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14427         PR tree-optimization/58088
14428         * fold-const.c (mask_with_trailing_zeros): New function.
14429         (fold_binary_loc): Make sure we don't recurse infinitely
14430         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14431         Use mask_with_trailing_zeros where appropriate.
14433 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
14435         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14436         of 'prev' var to get better distance estimation.
14438 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14440         * tree-inline.h (struct copy_body_data): Add transform_parameter.
14441         * tree-inline.c (is_parameter_of): New predicate.
14442         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14443         a parameter has been remapped.
14444         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14445         (optimize_inline_calls): Initialize transform_parameter.
14446         (copy_gimple_seq_and_replace_locals): Likewise.
14447         (tree_function_versioning): Likewise.
14448         (maybe_inline_call_in_expr): Likewise.
14450 2013-09-17  Nick Clifton  <nickc@redhat.com>
14452         * config/msp430/msp430-protos.h: Add prototypes for new functions.
14453         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14454         interrupt handlers.
14455         (is_attr_func): New function.
14456         (msp430_is_interrupt_func): New function.
14457         (is_naked_func): New function.
14458         (is_reentrant_func): New function.
14459         (is_critical_func): New function.
14460         (msp430_start_function): Add annotations for function attributes.
14461         (msp430_attr): New function.
14462         (msp430_attribute_table): New.
14463         (msp430_function_section): New function.
14464         (TARGET_ASM_FUNCTION_SECTION): Define.
14465         (msp430_builtin): New enum.
14466         (msp430_init_builtins): New function.
14467         (msp430_builtin_devl): New function.
14468         (msp430_expand_builtin): New function.
14469         (TARGET_INIT_BUILTINS): Define.
14470         (TARGET_EXPAND_BUILTINS): Define.
14471         (TARGET_BUILTIN_DECL): Define.
14472         (msp430_expand_prologue): Add support for naked, interrupt,
14473         critical and reentrant functions.
14474         (msp430_expand_epilogue): Likewise.
14475         (msp430_print_operand): Handle 'O' character.
14476         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14477         NO_TRAMPOLINES.
14478         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14479         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14480         (pushm): Use a 'n' rather than an 'i' constraint.
14481         (msp_return): Add generation of the interrupt return instruction.
14482         (disable_interrupts): New pattern.
14483         (enable_interrupts): New pattern.
14484         (push_intr_state): New pattern.
14485         (pop_intr_state): New pattern.
14486         (bic_SR): New pattern.
14487         (bis_SR): New pattern.
14488         * doc/extend.texi: Document MSP430 function attributes and builtin
14489         functions.
14491 2013-09-17  Richard Biener  <rguenther@suse.de>
14493         PR tree-optimization/58432
14494         * tree-loop-distribution.c (tree_loop_distribution): Also
14495         scan PHIs for outside loop uses and seed a partition from them.
14497 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
14499         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14500         (restructure_reference): Call backtrace_base_for_ref.
14502 2013-09-17  Alan Modra  <amodra@gmail.com>
14504         PR target/57589
14505         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14506         patch.
14508 2013-09-16  DJ Delorie  <dj@redhat.com>
14510         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14511         vregs location for RL78/G10.
14512         (rl78_expand_prologue): Avoid SEL on G10.
14513         (rl78_expand_epilogue): Likewise.
14514         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14515         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14516         __RL78_G10__ when appropriate.
14517         (ASM_SPEC): Pass -mg10 along to the assembler.
14518         * config/rl78/rl78.md (sel_rb): Disable for G10.
14519         * config/rl78/rl78.opt: Add -mg10 option.
14520         * config/rl78/t-rl78: Add -mg10 multilib.
14522 2013-09-16  Xinliang David Li  <davidxl@google.com>
14524         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14525         * omp-low.c (omp_max_vf): Ditto.
14526         (expand_omp_simd): Ditto.
14527         * tree-vectorizer.c (vectorize_loops): Ditto.
14528         (gate_vect_slp): Ditto.
14529         (gate_increase_alignment): Ditto.
14530         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14531         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14532         (gate_tree_vectorize): Name change.
14533         (tree_vectorize): Ditto.
14534         (pass_vectorize::gate): Call new function.
14535         (pass_vectorize::execute): Ditto.
14536         * opts.c: O3 default setting change.
14537         (finish_options): Check new flag.
14538         * doc/invoke.texi: Document new flags.
14539         * common.opt: New flags.
14541 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
14543         * doc/tm.texi.in (Cond Exec Macros): Remove node.
14544         (Condition Code): Don't reference it.
14545         * doc/tm.texi: Regenerate.
14547 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
14549         PR middle-end/58418
14550         * lra-constraints.c (undo_optional_reloads): Consider all optional
14551         reload even if it did not get a hard reg.
14553 2013-09-16  Teresa Johnson  <tejohnson@google.com>
14555         * dumpfile.c (dump_loc): Remove newline emission.
14556         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14557         emission to dump_printf_loc calls where missing.
14558         (vect_mark_for_runtime_alias_test): Ditto.
14559         (vect_analyze_data_ref_dependence): Ditto.
14560         (vect_analyze_data_ref_dependences): Ditto.
14561         (vect_slp_analyze_data_ref_dependence): Ditto.
14562         (vect_slp_analyze_data_ref_dependences): Ditto.
14563         (vect_compute_data_ref_alignment): Ditto.
14564         (vect_update_misalignment_for_peel): Ditto.
14565         (vect_verify_datarefs_alignment): Ditto.
14566         (vector_alignment_reachable_p): Ditto.
14567         (vect_get_data_access_cost): Ditto.
14568         (vect_enhance_data_refs_alignment): Ditto.
14569         (vect_find_same_alignment_drs): Ditto.
14570         (vect_analyze_data_refs_alignment): Ditto.
14571         (vect_analyze_group_access): Ditto.
14572         (vect_analyze_data_ref_access): Ditto.
14573         (vect_analyze_data_ref_accesses): Ditto.
14574         (vect_prune_runtime_alias_test_list): Ditto.
14575         (vect_analyze_data_refs): Ditto.
14576         (vect_create_addr_base_for_vector_ref): Ditto.
14577         (vect_create_data_ref_ptr): Ditto.
14578         (vect_grouped_store_supported): Ditto.
14579         (vect_grouped_load_supported): Ditto.
14580         * value-prof.c (check_counter): Ditto.
14581         (check_ic_target): Ditto.
14582         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14583         (vect_recog_widen_mult_pattern): Ditto.
14584         (vect_recog_widen_sum_pattern): Ditto.
14585         (vect_recog_over_widening_pattern): Ditto.
14586         (vect_recog_widen_shift_pattern): Ditto.
14587         (vect_recog_rotate_pattern): Ditto.
14588         (vect_recog_vector_vector_shift_pattern): Ditto.
14589         (vect_recog_divmod_pattern): Ditto.
14590         (vect_recog_mixed_size_cond_pattern): Ditto.
14591         (vect_recog_bool_pattern): Ditto.
14592         (vect_pattern_recog_1): Ditto.
14593         (vect_pattern_recog): Ditto.
14594         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14595         (vect_is_simple_iv_evolution): Ditto.
14596         (vect_analyze_scalar_cycles_1): Ditto.
14597         (vect_get_loop_niters): Ditto.
14598         (vect_analyze_loop_1): Ditto.
14599         (vect_analyze_loop_form): Ditto.
14600         (vect_analyze_loop_operations): Ditto.
14601         (vect_analyze_loop_2): Ditto.
14602         (vect_analyze_loop): Ditto.
14603         (report_vect_op): Ditto.
14604         (vect_is_slp_reduction): Ditto.
14605         (vect_is_simple_reduction_1): Ditto.
14606         (vect_get_known_peeling_cost): Ditto.
14607         (vect_estimate_min_profitable_iters): Ditto.
14608         (vect_model_reduction_cost): Ditto.
14609         (vect_model_induction_cost): Ditto.
14610         (get_initial_def_for_induction): Ditto.
14611         (vect_create_epilog_for_reduction): Ditto.
14612         (vectorizable_reduction): Ditto.
14613         (vectorizable_induction): Ditto.
14614         (vectorizable_live_operation): Ditto.
14615         (vect_loop_kill_debug_uses): Ditto.
14616         (vect_transform_loop): Ditto.
14617         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14618         (vect_stmt_relevant_p): Ditto.
14619         (process_use): Ditto.
14620         (vect_mark_stmts_to_be_vectorized): Ditto.
14621         (vect_model_simple_cost): Ditto.
14622         (vect_model_promotion_demotion_cost): Ditto.
14623         (vect_model_store_cost): Ditto.
14624         (vect_get_store_cost): Ditto.
14625         (vect_model_load_cost): Ditto.
14626         (vect_get_load_cost): Ditto.
14627         (vect_init_vector_1): Ditto.
14628         (vect_get_vec_def_for_operand): Ditto.
14629         (vect_finish_stmt_generation): Ditto.
14630         (vectorizable_call): Ditto.
14631         (vectorizable_conversion): Ditto.
14632         (vectorizable_assignment): Ditto.
14633         (vectorizable_shift): Ditto.
14634         (vectorizable_operation): Ditto.
14635         (vectorizable_store): Ditto.
14636         (vectorizable_load): Ditto.
14637         (vectorizable_condition): Ditto.
14638         (vect_analyze_stmt): Ditto.
14639         (vect_transform_stmt): Ditto.
14640         (vect_is_simple_use): Ditto.
14641         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14642         (vect_can_advance_ivs_p): Ditto.
14643         (vect_update_ivs_after_vectorizer): Ditto.
14644         (vect_do_peeling_for_loop_bound): Ditto.
14645         (vect_gen_niters_for_prolog_loop): Ditto.
14646         (vect_update_inits_of_drs): Ditto.
14647         (vect_create_cond_for_alias_checks): Ditto.
14648         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14649         (vect_build_slp_tree_1): Ditto.
14650         (vect_supported_load_permutation_p): Ditto.
14651         (vect_analyze_slp_instance): Ditto.
14652         (vect_analyze_slp): Ditto.
14653         (vect_make_slp_decision): Ditto.
14654         (vect_detect_hybrid_slp): Ditto.
14655         (vect_bb_vectorization_profitable_p): Ditto.
14656         (vect_slp_analyze_bb_1): Ditto.
14657         (vect_update_slp_costs_according_to_vf): Ditto.
14658         (vect_get_mask_element): Ditto.
14659         (vect_transform_slp_perm_load): Ditto.
14660         (vect_schedule_slp_instance): Ditto.
14661         (vect_schedule_slp): Ditto.
14662         (vect_slp_transform_bb): Ditto.
14663         * profile.c (read_profile_edge_counts): Ditto.
14664         (compute_branch_probabilities): Ditto.
14665         * coverage.c (get_coverage_counts): Ditto.
14667 2013-09-16  Diego Novillo  <dnovillo@google.com>
14669         * tree-core.h: Add missing comment lines from refactoring of tree.h.
14671 2013-09-16  Jan Hubicka  <jh@suse.cz>
14673         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14674         abstract functions; for static functions check the presence of body.
14676 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14678         * config/aarch64/aarch64-simd-builtins.def (fma): New.
14679         * config/aarch64/aarch64-simd.md
14680         (aarch64_mla_elt<mode>): New.
14681         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14682         (aarch64_mls_elt<mode>): Likewise.
14683         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14684         (aarch64_fma4_elt<mode>): Likewise.
14685         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14686         (aarch64_fma4_elt_to_128v2df): Likewise.
14687         (aarch64_fma4_elt_to_64df): Likewise.
14688         (fnma<mode>4): Likewise.
14689         (aarch64_fnma4_elt<mode>): Likewise.
14690         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14691         (aarch64_fnma4_elt_to_128v2df): Likewise.
14692         (aarch64_fnma4_elt_to_64df): Likewise.
14693         * config/aarch64/iterators.md (VDQSF): New.
14694         * config/aarch64/arm_neon.h
14695         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14696         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14698 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14700         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14701         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14702         (aarch64_mul3_elt_to_128df): Likewise.
14703         (aarch64_mul3_elt_to_64v2df): Likewise.
14704         * config/aarch64/iterators.md (VEL): Also handle DFmode.
14705         (VMUL): New.
14706         (VMUL_CHANGE_NLANES) Likewise.
14707         (h_con): Likewise.
14708         (f): Likewise.
14709         * config/aarch64/arm_neon.h
14710         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14712 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14714         * config/aarch64/arm_neon.h
14715         (vcvtx_high_f32_f64): Fix parameters.
14717 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14718             Uros Bizjak  <ubizjak@gmail.com>
14720         * config/alpha.c: Include tree-ssanames.h.
14722 2013-09-16  Richard Biener  <rguenther@suse.de>
14724         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14725         (dot_rdg_1): Handle control_dd.
14726         (create_edge_for_control_dependence): New function.
14727         (create_rdg_edges): Add control dependences if asked for.
14728         (build_rdg): Likewise.
14729         (generate_loops_for_partition): If there are not necessary
14730         control stmts remove all their dependencies.
14731         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14732         (distribute_loop): Pass on control dependences.
14733         (tree_loop_distribution): Compute control dependences and remove
14734         restriction on number of loop nodes.
14736 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
14738         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14739         for internal calls.
14741 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
14743         * cse.c (try_const_anchors): Punt on CC modes.
14745 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14747         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14749 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
14751         PR target/58382
14752         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
14753         calls to word_mode.
14755 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14757         PR target/48094
14758         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
14759         seen.
14760         (darwin_objc1_section): Likewise.
14761         (darwin_file_end): Emit Image Info section when required.
14763 2013-09-14  Jan Hubicka  <jh@suse.cz>
14765         * tree-into-ssa.c (gate_into_ssa): New.
14766         (pass_data_build_ssa): Use it.
14767         * cgraph.h (expand_thunk): Update prototype.
14768         * cgraphunit.c (analyze_function): Expand thunks early.
14769         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
14770         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
14771         set lowered flag; do not add new function.
14772         (assemble_thunks_and_aliases): Update.
14773         * tree-ssa.c (gate_init_datastructures): New gate.
14774         (pass_data_init_datastructures): Use it.
14776 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14778         PR target/58269
14779         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
14780         xmm register set described in the psABI.
14782 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
14784         * dwarf2out.c (should_emit_struct_debug): Add check
14785         for type_decl variable is not NULL.
14787 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
14789         * config.gcc: Use new winnt-c.c target hooks
14790         * config/t-winnt: New file
14791         * config/winnt-c.c: New file
14792         * doc/tm.texi.in: Document new hook
14793         * doc/tm.texi: Regenerated
14795 2013-09-13  Jan Hubicka  <jh@suse.cz>
14797         PR middle-end/58094
14798         * ipa-inline.c (check_callers): New function.
14799         (check_caller_edge): Remove.
14800         (want_inline_function_to_all_callers_p): Also permit alises that are
14801         called dirrectly.
14802         (inline_to_all_callers): Terminate the walk when devirtualization
14803         introduce new calls.
14805 2013-09-13  Jan Hubicka  <jh@suse.cz>
14807         * ipa-inline-analysis.c (struct growth_data): Add node.
14808         (do_estimate_growth_1): Fix detection of recursion.
14810 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
14812         PR tree-optimization/58392
14813         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
14814         to avoid shadowing of outer loop variable.  If
14815         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
14816         replace_by_duplicate_decl simduid of loops that have it set and
14817         set dest_cfun->has_simduid_loops and/or
14818         dest_cfun->has_force_vect_loops.
14819         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
14820         instead of maybe_lookup_decl.
14821         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
14822         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
14823         call.  Copy over force_vect and copy and remap simduid.  Set
14824         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
14825         (copy_cfg_body): Remove blocks_to_copy argument.  Use
14826         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
14827         caller.  Don't set cfun->has_simduid_loops and/or
14828         cfun->has_force_vect_loops here.
14829         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
14830         caller.
14831         (expand_call_inline, tree_function_versioning): Adjust copy_body
14832         callers.
14834 2013-09-13  Martin Jambor  <mjambor@suse.cz>
14836         PR bootstrap/58388
14837         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
14838         the assert if the edge was a speculative one.
14840 2013-09-13  Richard Biener  <rguenther@suse.de>
14842         * tree-data-ref.h (known_dependences_p): Move here ...
14843         * tree-loop-distribution.c (known_dependences_p): ... from here.
14844         (dump_rdg_component, debug_rdg_component): Remove.
14845         (dump_rdg): Adjust.
14846         (generate_loops_for_partition): Use gimple_uid instead of
14847         relying on matching stmt visit order.
14848         (rdg_build_partitions): Take starting stmt vector.
14849         (ldist_gen): Merge into ...
14850         (distribute_loop): ... this function.  Do not compute starting
14851         vertices vector.
14852         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
14854 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14856         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
14857         Set type attribute correctly. Set predicable_short_it attribute.
14858         (cmpsi_shiftsi): Remove %? from output template.
14860 2013-09-13  Richard Biener  <rguenther@suse.de>
14862         * tree-loop-distribution.c (struct rdg_component,
14863         rdg_defs_used_in_other_loops_p, free_rdg_components,
14864         rdg_build_components): Remove.
14865         (stmts_from_loop): Do not record virtual PHIs.
14866         (generate_loops_for_partition): Skip virtual PHIs.
14867         (build_rdg_partition_for_component): Rename to ...
14868         (build_rdg_partition_for_vertex): ... this and adjust.
14869         (rdg_build_partitions): Take a vector of starting vertices
14870         instead of components.  Remove unnecessary leftover handling.
14871         (ldist_gen): Do not build components or record other stores.
14872         (distribute_loop): Do not distribute loops containing stmts
14873         with side-effects.
14875 2013-09-13  Christian Bruel  <christian.bruel@st.com>
14877         PR target/58314
14878         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
14880 2013-09-13  Kai Tietz  <ktietz@redhat.com>
14882         * config.gcc: Separate cases for mingw and cygwin targets,
14883         and add 64-bit cygwin target case.
14885         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
14886         dll-export inline-functions.
14887         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
14889 2013-09-13  Jeff Law  <law@redhat.com>
14891         PR middle-end/58387
14892         Revert:
14893         2013-09-06  Jeff Law  <law@redhat.com>
14895         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14896         edge implied equivalences into successor phis.
14898 2013-09-12  DJ Delorie  <dj@redhat.com>
14900         * config/rl78/rl78-virt.md: Change from | to \; for asm line
14901         separators.
14903 2013-09-12  Brooks Moses  <bmoses@google.com>
14905         PR driver/42955
14906         * Makefile.in: Do not install driver binaries in $(target)/bin.
14908 2013-09-12  DJ Delorie  <dj@redhat.com>
14910         * config/rl78/rl78.opt (mrelax): New.
14911         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
14912         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
14914         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
14915         between SP and FP.
14916         (rl78_expand_epilogue): Likewise.
14918 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
14920         PR middle-end/58335
14921         * lra-eliminations.c (remove_reg_equal_offset_note): New.
14922         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
14923         pointer elimination with using remove_reg_equal_offset_note.
14925 2013-09-12  DJ Delorie  <dj@redhat.com>
14927         * config/msp430/: New port.
14928         * config.gcc (msp430): Added.
14929         * doc/invoke.texi: Document MSP430 options.
14930         * doc/install.texi: Document msp430-elf
14931         * doc/md.texi: Document msp430-elf
14932         * doc/contrib.texi: Document msp430-elf
14934         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
14935         PSImode.
14937 2013-09-12  Martin Jambor  <mjambor@suse.cz>
14939         PR ipa/58389
14940         * ipa-prop.c (remove_described_reference): Give up if the edge in the
14941         reference descriptor is NULL.
14942         (ipa_edge_removal_hook): If owning a reference descriptor, set its
14943         edge to NULL.
14945 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14947         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
14948         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
14949         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
14950         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
14951         make_temp_ssa_name): move to tree-ssanames.h
14952         * tree-ssa-alias.h: Move prototype.
14953         * tree-ssa.h: Include tree-ssanames.h.
14954         * tree-ssanames.c (FREE_SSANAMES): Move to here.
14955         * tree-ssanames.h: New.  Move items from tree-flow*.h
14956         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
14958 2013-09-12  Richard Biener  <rguenther@suse.de>
14960         PR tree-optimization/58404
14961         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
14962         propagate non-invariant addresses into dereferences wrapped
14963         in component references.
14965 2013-09-12  Richard Biener  <rguenther@suse.de>
14967         PR tree-optimization/58402
14968         * passes.def: Move pass_late_warn_uninitialized later.
14970 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14972         * tree-ssa.h: New.  Move content from tree-flow.h and
14973         tree-flow-inline.h.
14974         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
14975         Move prototypes belonging to tree-ssa.c.
14976         * tree-flow-inline.h (redirect_edge_var_map_def,
14977         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
14978         tree-ssa.h.
14979         * gimple.h: Adjust prototypes.
14980         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
14981         to...
14982         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
14983         * tree.h: Move prototype to tree-ssa.h.
14984         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
14985         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
14986         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
14987         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
14988         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
14989         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
14990         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
14991         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
14992         graphite-blocking.c, graphite-clast-to-gimple.c,
14993         graphite-dependences.c, graphite-interchange.c,
14994         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
14995         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
14996         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
14997         ipa-reference.c, ipa-split.c, ipa-utils.c,
14998         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
14999         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15000         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15001         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15002         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15003         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15004         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15005         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15006         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15007         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15008         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15009         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15010         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15011         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15012         value-prof.c, var-tracking.c,
15013         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15015 2013-09-12  Richard Biener  <rguenther@suse.de>
15017         PR tree-optimization/58396
15018         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15019         (build_rdg): Take a loop-nest parameter, fix memleaks.
15020         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15022 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
15024         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15025         for SLM.
15027 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
15029         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15030         The FMA instruction names should have a 'v' prefix.
15032 2013-09-12  Richard Biener  <rguenther@suse.de>
15034         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15035         (dot_rdg): Use popen instead of system in optional code.
15036         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15037         (already_processed_vertex_p): Adjust.
15038         (has_anti_or_output_dependence, predecessor_has_mem_write,
15039         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15040         rdg_flag_uses): Remove.
15041         (rdg_flag_vertex): Simplify.
15042         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15043         remove recursion.
15044         (build_rdg_partition_for_component): Process the first vertex
15045         of a component only.
15046         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15048 2013-09-12  Alan Modra  <amodra@gmail.com>
15050         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15052 2013-09-11  DJ Delorie  <dj@redhat.com>
15053             Nick Clifton  <nickc@redhat.com>
15055         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15056         (rl78_stack_based_mem): New.
15057         * config/rl78/constraints.md (Iv08): New.
15058         (Iv16): New.
15059         (Iv24): New.
15060         (Is09): New.
15061         (Is17): New.
15062         (Is25): New.
15063         (ISsi): New.
15064         (IShi): New.
15065         (ISqi): New.
15066         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15067         (movhi): Likewise.
15068         (movsi): Change from expand to insn-and-split.
15069         (ashrsi3): Clobber AX.
15070         (lshrsi3): New.
15071         (ashlsi3): New.
15072         (cbranchsi4): New.
15073         * config/rl78/rl78.md (CC_REG): Fix.
15074         (addsi3): Allow memory and immediate operands.
15075         (addsi3_internal): Split into...
15076         (addsi3_internal_virt): ...new, and ...
15077         (addsi3_internal_real): ...new.
15078         (subsi): New.
15079         (subsi3_internal_virt): New.
15080         (subsi3_internal_real): New.
15081         (mulsi3): Add memory operand.
15082         (mulsi3_rl78): Likewise.
15083         (mulsi3_g13): Likewise.
15084         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15085         (cbranchqi4_real): Add more constraint options.
15086         (cbranchhi4_real): Expand pattern.
15087         (cbranchhi4_real_signed): New.
15088         (cbranchhi4_real_inverted): New.
15089         (cbranchsi4_real_lt): New.
15090         (cbranchsi4_real_ge): New.
15091         (cbranchsi4_real_signed): New.
15092         (cbranchsi4_real): New.
15093         (peephole2): New.
15094         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15095         constant shifts.
15096         (lshrsi3_virt): Likewise.
15097         (ashlsi3_virt): Likewise.
15098         (cbranchqi4_virt_signed): New.
15099         (cbranchhi4_virt_signed): New.
15100         (cbranchsi4_virt): New.
15101         * config/rl78/rl78.c: Whitespace fixes throughout.
15102         (move_elim_pass): New.
15103         (pass_data_rl78_move_elim): New.
15104         (pass_rl78_move_elim): New.
15105         (make_pass_rl78_move_elim): New.
15106         (rl78_devirt_info): Run devirt earlier.
15107         (rl78_move_elim_info): New.
15108         (rl78_asm_file_start): Register it.
15109         (rl78_split_movsi): New.
15110         (rl78_as_legitimate_address): Allow virtual base registers when
15111         appropriate.
15112         (rl78_addr_space_convert): Remove spurious debug stuff.
15113         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15114         (rl78_print_operand): More cases for not printing '#'.
15115         (rl78_expand_compare): Remove most of the logic.
15116         (content_memory): New.
15117         (clear_content_memory): New.
15118         (get_content_index): New.
15119         (get_content_name): New.
15120         (display_content_memory): New.
15121         (update_content): New.
15122         (record_content): New.
15123         (already_contains): New.
15124         (insn_ok_now): Re-recog insns with virtual registers.
15125         (add_postponed_content_update): New.
15126         (process_postponed_content_update): New.
15127         (gen_and_emit_move): New.
15128         (transcode_memory_rtx): Record new location content.
15129         Use gen_and_emit_move.
15130         (force_into_acc): New.
15131         (move_to_acc): Use gen_and_emit_move.
15132         (move_from_acc): Likewise.
15133         (move_acc_to_reg): Likewise.
15134         (move_to_x): Likewise.
15135         (move_to_hl): Likewise.
15136         (move_to_de): Likewise.
15137         (rl78_alloc_physical_registers_op1): Record location content.
15138         (has_constraint): New.
15139         (rl78_alloc_physical_registers_op2): Record location content.
15140         Optimize use of HL.
15141         (rl78_alloc_physical_registers_ro1): Likewise.
15142         (rl78_alloc_physical_registers_cmp): Likewise.
15143         (rl78_alloc_physical_registers_umul): Likewise.
15144         (rl78_alloc_address_registers_macax): New.
15145         (rl78_alloc_physical_registers): Initialize and set location
15146         content memory as needed.
15147         (rl78_reorg): Make sure split2 is called.
15148         (rl78_rtx_costs): New.
15150 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
15152         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15153         for (not (neg ...)) and (neg (not ...)) cases.
15155 2013-09-11  Richard Biener  <rguenther@suse.de>
15157         PR middle-end/58377
15158         * passes.def: Split critical edges before late uninit warning passes.
15159         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15161 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
15163         PR tree-optimization/58385
15164         * fold-const.c (build_range_check): If both low and high are NULL,
15165         use omit_one_operand_loc to preserve exp side-effects.
15167 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15169         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15171 2013-09-11  Richard Biener  <rguenther@suse.de>
15173         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15174         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15175         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15176         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15177         stmts_from_loop, known_dependences_p, build_empty_rdg,
15178         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15179         * tree-loop-distribution.c: ... here.
15180         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15181         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15182         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15183         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15184         * tree-loop-distribution.c: ... here.
15185         * tree-loop-distribution.c: Include gimple-pretty-print.h.
15186         (struct partition_s): Add loops member.
15187         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15188         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15189         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15191 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15192             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15193             Sergey Lega  <sergey.s.lega@intel.com>
15194             Anna Tikhonova  <anna.tikhonova@intel.com>
15195             Ilya Tocar  <ilya.tocar@intel.com>
15196             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15197             Ilya Verbin  <ilya.verbin@intel.com>
15198             Kirill Yukhin  <kirill.yukhin@intel.com>
15199             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15201         * config/i386/constraints.md (k): New.
15202         (Yk): Ditto.
15203         * config/i386/i386.c (const regclass_map): Add new mask registers.
15204         (dbx_register_map): Ditto.
15205         (dbx64_register_map): Ditto.
15206         (svr4_dbx_register_map): Ditto.
15207         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15208         disabled.
15209         (ix86_preferred_reload_class): Disable constants for mask registers.
15210         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15211         (ix86_hard_regno_mode_ok): Support new mask registers.
15212         (x86_order_regs_for_local_alloc): Ditto.
15213         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15214         (FIXED_REGISTERS): Add new mask registers.
15215         (CALL_USED_REGISTERS): Ditto.
15216         (REG_ALLOC_ORDER): Ditto.
15217         (VALID_MASK_REG_MODE): New.
15218         (FIRST_MASK_REG): Ditto.
15219         (LAST_MASK_REG): Ditto.
15220         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15221         (MAYBE_MASK_CLASS_P): New.
15222         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15223         (REG_CLASS_CONTENTS): Ditto.
15224         (MASK_REGNO_P): New.
15225         (ANY_MASK_REG_P): Ditto.
15226         (HI_REGISTER_NAMES): Add new mask registers.
15227         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15228         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15229         mask registers.
15230         (attribute "type"): Add mskmov, msklog.
15231         (attribute "length_immediate"): Support them.
15232         (attribute "memory"): Ditto.
15233         (attribute "prefix_0f"): Ditto.
15234         (*movhi_internal): Support new mask registers.
15235         (*movqi_internal): Ditto.
15236         (define_split): Split out clobber pattern is a logic
15237         insn on mask registers.
15238         (*k<logic><mode>): New.
15239         (*andhi_1): Extend to support mask regs.
15240         (*andqi_1): Extend to support mask regs.
15241         (kandn<mode>): New.
15242         (define_split): Split and-not to and and not if operands
15243         are not mask regs.
15244         (*<code><mode>_1): Separate HI mode to new pattern...
15245         (*<code>hi_1): This.
15246         (*<code>qi_1): Extend to support mask regs.
15247         (kxnor<mode>): New.
15248         (kortestzhi): Ditto.
15249         (kortestchi): Ditto.
15250         (kunpckhi): Ditto.
15251         (*one_cmpl<mode>2_1): Remove HImode and handle it...
15252         (*one_cmplhi2_1): ...Here, now with mask registers support.
15253         (*one_cmplqi2_1): Support new mask registers.
15254         (HI/QImode arithmetics splitter): Don't split if mask registers
15255         are used.
15256         (HI/QImode not splitter): Ditto.
15257         * config/i386/predicated.md (mask_reg_operand): New.
15258         (general_reg_operand): Ditto.
15260 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15262         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15263         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15265 2013-09-10  Jeff Law  <law@redhat.com>
15267         PR tree-optimization/58380
15268         * tree-ssa-threadupdate.c (thread_block): Recognize another case
15269         of threading through a buried loop header.
15271         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15272         return value for single successor case.
15274 2013-09-10  Jan Hubicka  <jh@suse.cz>
15276         * ipa-devirt.c (ipa_devirt): Enable with LTO.
15278 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
15280         PR target/58361
15281         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15282         support conditional execution.
15283         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15285 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
15287         * lra.c (lra): Clear lra_optional_reload_pseudos before every
15288         constraint pass.
15289         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15290         Check destination too to check move insn.
15291         (undo_optional_reloads): Add check that the original peudo did not
15292         changed its allocation and the optional reload was inherited on last
15293         inheritance pass.  Break loop after deciding to keep optional reload.
15294         (lra_undo_inheritance): Add check that inherited pseudo still in
15295         memory.
15297 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
15299         * config/aarch64/aarch64.md (generic_sched): New.
15300         * config/aarch64/aarch64-generic.md (load): Make conditional
15301         on generic_sched attribute.
15302         (nonload): Likewise.
15304 2013-09-10  Jan Hubicka  <jh@suse.cz>
15306         * lto-cgraph.c: Include ipa-utils.h.
15307         (compute_ltrans_boundary): Also add possible targets into the boundary.
15309 2013-09-10  Jan Hubicka  <jh@suse.cz>
15311         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15312         VAR_DECL of vtable rather than full expression.
15314 2013-09-10  Jan Hubicka  <jh@suse.cz>
15315             Paolo Carlini  <paolo.carlini@oracle.com>
15317         * cgraphunit.c (analyze_functions): Save input_location, set it
15318         to UNKNOWN_LOCATION and restore it at the end.
15320 2013-09-10  Martin Jambor  <mjambor@suse.cz>
15322         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15323         represented by a thunk.
15325 2013-09-10  Jeff Law  <law@redhat.com>
15327         PR tree-optimization/58343
15328         * tree-ssa-threadupdate.c (thread_block): Identify and disable
15329         jump threading requests through loop headers buried in the middle
15330         of a jump threading path.
15332         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15333         in return value/type.
15335 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
15337         PR rtl-optimization/58365
15338         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15339         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15340         it differs.
15342 2013-09-10  Richard Biener  <rguenther@suse.de>
15344         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15345         * tree-data-ref.c (create_rdg_vertices): Collect all data
15346         references, signal failure to the caller, use data-ref API.
15347         (build_rdg): Compute data references only once.  Maintain lifetime
15348         of data references and data dependences from within RDG.
15349         (free_rdg): Free dependence relations.
15350         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15351         inventing extra dependences.
15352         (distribute_loop): Update for RDG API changes.
15354 2013-09-10  Kai Tietz  <ktietz@redhat.com>
15356         * doc/invoke.texi (fms-extensions): Document changed
15357         behavior for ms-abi targets.
15358         * config/i386/i386.c (ix86_option_override_internal):
15359         Set default value of option -fms-extension for ms-abi targets.
15361 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15363         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15365 2013-09-10  Alan Modra  <amodra@gmail.com>
15367         PR target/58330
15368         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15370 2013-09-10  Alan Modra  <amodra@gmail.com>
15372         * config/rs6000/predicates.md (add_cint_operand): New.
15373         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15374         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15375         using add_cint_operand.
15376         (largetoc_high_plus_aix): Likewise.
15378 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
15380         PR tree-optimization/58364
15381         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15382         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15383         the current range can't be an unconditional true or false.
15385 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
15387         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15389 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
15391         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15393 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15395         PR c++/43452
15396         * doc/invoke.texi (-Wdelete-incomplete): Document it.
15398 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
15400         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15401         NO_REGS for immediate that can't be moved directly into FP_REGS.
15403 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15405         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15406         comparison with negated operand.
15407         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15408         RTL form.
15410 2013-09-09  Richard Biener  <rguenther@suse.de>
15412         PR middle-end/58326
15413         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15414         of a subloop record all its block as affecting loop-closed SSA form.
15416 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15418         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15419         of an rtx/bitpos pair.
15420         (store_fixed_bit_field): Update accordingly.
15422 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15424         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15425         GEN_INT.
15426         * builtins.c (expand_errno_check): Likewise.
15427         * dwarf2cfi.c (init_return_column_size): Likewise.
15428         * except.c (sjlj_mark_call_sites): Likewise.
15429         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15430         * lra-constraints.c (emit_inc): Likewise.
15431         * ree.c (combine_set_extension): Likewise.
15432         * regmove.c (fixup_match_2): Likewise.
15433         * reload1.c (inc_for_reload): Likewise.
15435 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15437         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15438         (force_to_mode, simplify_shift_const_1, simplify_comparison):
15439         Use gen_int_mode with the mode of the associated simplify_* call.
15440         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15441         * expmed.c (expand_shift_1): Likewise.
15442         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15443         * loop-iv.c (iv_number_of_iterations): Likewise.
15444         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15445         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15447 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15449         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15450         of the associated expand_* call.
15451         (asan_emit_stack_protection): Likewise.
15452         * builtins.c (round_trampoline_addr): Likewise.
15453         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15454         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15455         (emit_store_flag): Likewise.
15456         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15457         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15458         Likewise.
15459         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15460         * ifcvt.c (noce_try_store_flag_constants): Likewise.
15461         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15462         * modulo-sched.c (generate_prolog_epilog): Likewise.
15463         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15464         (expand_ctz, expand_ffs, expand_unop): Likewise.
15466 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15468         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15469         of the associated gen_rtx_* call.
15470         * caller-save.c (init_caller_save): Likewise.
15471         * combine.c (find_split_point, make_extraction): Likewise.
15472         (make_compound_operation): Likewise.
15473         * dwarf2out.c (mem_loc_descriptor): Likewise.
15474         * explow.c (plus_constant, probe_stack_range): Likewise.
15475         * expmed.c (expand_mult_const): Likewise.
15476         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15477         * reload1.c (init_reload): Likewise.
15478         * valtrack.c (cleanup_auto_inc_dec): Likewise.
15479         * var-tracking.c (adjust_mems): Likewise.
15480         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15481         rather than gen_rtx_fmt_ee.
15483 2013-09-09  Jan Hubicka  <jh@suse.cz>
15485         PR middle-end/58294
15486         * value-prof.c (gimple_ic): Copy also abnormal edges.
15488 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15490         * asan.c (asan_shadow_cst): Use gen_int_mode.
15492 2013-09-08  Jan Hubicka  <jh@suse.cz>
15494         * ipa-profile.c: Add toplevel comment.
15495         (ipa_propagate_frequency_1): Be more conservative when profile is read.
15496         (contains_hot_call_p): New function.
15497         (ipa_propagate_frequency): Set frequencies based on counts when
15498         profile is read.
15499         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15500         profile; do not tamper with profile after inlining if it is read.
15502 2013-09-08  Jan Hubicka  <jh@suse.cz>
15504         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15505         speculative edges.
15507 2013-09-08  Jan Hubicka  <jh@suse.cz>
15509         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15510         summary generation.
15512 2013-09-08  Jeff Law  <law@redhat.com>
15514         PR bootstrap/58340
15515         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15516         of 'found'.
15518 2013-09-08  Andi Kleen  <ak@linux.intel.com>
15520         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15522 2013-09-08  Jan Hubicka  <jh@suse.cz>
15524         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15526 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
15528         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15529         for non-debug insns.
15530         * lra.c (new_insn_reg): Take the containing insn as a parameter.
15531         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15532         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15533         accordingly.
15535 2013-09-08  Jan Hubicka  <jh@suse.cz>
15537         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15538         targets and devirtualize to BUILT_IN_UNREACHABLE.
15539         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15540         * ipa.c (walk_polymorphic_call_targets): New function.
15541         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15542         functions; use the new timevar.
15543         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15544         was removed from the program.
15545         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15546         not consider it in the walk when its vtable is dead.
15547         (possible_polymorphic_call_targets_1): Pass anonymous flag to
15548         record_binfo.
15549         (devirt_variable_node_removal_hook): New function.
15550         (possible_polymorphic_call_targets): Also register
15551         devirt_variable_node_removal_hook.
15552         (ipa_devirt): Do not do non-speculative devirtualization.
15553         (gate_ipa_devirt): One execute if devirtualizing speculatively.
15555 2013-09-08  Jan Hubicka  <jh@suse.cz>
15557         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15558         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15559         varpool_remove_variable_insertion_hook): Declare.
15560         * varpool.c (varpool_node_hook_list): New structure.
15561         (first_varpool_node_removal_hook,
15562         first_varpool_variable_insertion_hook): New variables.
15563         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15564         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15565         varpool_remove_variable_insertion_hook,
15566         varpool_call_variable_insertion_hooks): New functions.
15567         (varpool_remove_node): Use it.
15569 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
15571         PR c++/54941
15572         * diagnostic.c (diagnostic_build_prefix): When s.file is
15573         "<built-in>" don't output line and column numbers.
15575 2013-09-06  Jan Hubicka  <jh@suse.cz>
15577         * cgraphunit.c (expand_thunk): Get body before touching arguments.
15578         * lto-streamer-out.c: Stream thunks, too.
15579         * lto-streamer-in.c (input_function): Pop cfun here
15580         (lto_read_body): Instead of here.
15582 2013-09-06  Caroline Tice  <cmtice@google.com>
15584         * doc/install.texi: Add documentation for the --enable-vtable-verify
15585         and the --disable-libvtv configure options.
15587 2013-09-06  Jeff Law  <law@redhat.com>
15589         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15590         edge implied equivalences into successor phis.
15592 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
15594         * resource.c (mark_referenced_resources): Handle COND_EXEC.
15596 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
15598         * resource.c (mark_target_live_regs): Compute resources taking
15599         into account if a call is predicated or not.
15601 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15603         * toplev.c (output_stack_usage): Be prepared for suffixes created by
15604         the compiler in the function names.
15606 2013-09-06  Jan Hubicka  <jh@suse.cz>
15608         PR middle-end/58094
15609         * ipa-inline.c (has_caller_p): New function.
15610         (want_inline_function_to_all_callers_p): Use it.
15611         (sum_callers, inline_to_all_callers): Break out from ...
15612         (ipa_inline): ... here.
15614 2013-09-06  Jan Hubicka  <jh@suse.cz>
15616         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15617         only when AVX is enabled.
15619 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15621         * config/aarch64/aarch64.md
15622         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15623         is fpsimd_<load/store>2.
15624         (load_pair<mode>): Likewise.
15625         (store_pair<mode>): Likewise.
15627 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15629         * config/arm/types.md (type): Add "mrs" type.
15630         * config/aarch64/aarch64.md
15631         (aarch64_load_tp_hard): Make type "mrs".
15632         * config/arm/arm.md
15633         (load_tp_hard): Make type "mrs".
15634         * config/arm/cortex-a15.md: Update with new attributes.
15635         * config/arm/cortex-a5.md: Update with new attributes.
15636         * config/arm/cortex-a53.md: Update with new attributes.
15637         * config/arm/cortex-a7.md: Update with new attributes.
15638         * config/arm/cortex-a8.md: Update with new attributes.
15639         * config/arm/cortex-a9.md: Update with new attributes.
15640         * config/arm/cortex-m4.md: Update with new attributes.
15641         * config/arm/cortex-r4.md: Update with new attributes.
15642         * config/arm/fa526.md: Update with new attributes.
15643         * config/arm/fa606te.md: Update with new attributes.
15644         * config/arm/fa626te.md: Update with new attributes.
15645         * config/arm/fa726te.md: Update with new attributes.
15647 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15649         * config/aarch64/aarch64.md
15650         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15651         (*movtf_aarch64): Likewise.
15652         * config/arm/arm.md
15653         (thumb1_movdi_insn): Use "multiple" for type where more than one
15654         instruction is used for a move.
15655         (*arm32_movhf): Likewise.
15656         (*thumb_movdf_insn): Likewise.
15658 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15660         * config/arm/types.md (type): Rename fcpys to fmov.
15661         * config/arm/vfp.md
15662         (*arm_movsi_vfp): Rename type fcpys as fmov.
15663         (*thumb2_movsi_vfp): Likewise
15664         (*movhf_vfp_neon): Likewise
15665         (*movhf_vfp): Likewise
15666         (*movsf_vfp): Likewise
15667         (*thumb2_movsf_vfp): Likewise
15668         (*movsfcc_vfp): Likewise
15669         (*thumb2_movsfcc_vfp): Likewise
15670         * config/aarch64/aarch64-simd.md
15671         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15672         * config/aarch64/aarch64.md
15673         (*movsi_aarch64): Replace type mov_reg with fmovs.
15674         (*movdi_aarch64): Likewise
15675         (*movsf_aarch64): Likewise
15676         (*movdf_aarch64): Likewise
15677         * config/arm/arm.c
15678         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15679         * config/arm/iwmmxt.md
15680         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15681         * config/arm/arm1020e.md: Update with new attributes.
15682         * config/arm/cortex-a15-neon.md: Update with new attributes.
15683         * config/arm/cortex-a5.md: Update with new attributes.
15684         * config/arm/cortex-a53.md: Update with new attributes.
15685         * config/arm/cortex-a7.md: Update with new attributes.
15686         * config/arm/cortex-a8-neon.md: Update with new attributes.
15687         * config/arm/cortex-a9.md: Update with new attributes.
15688         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15689         * config/arm/cortex-r4f.md: Update with new attributes.
15690         * config/arm/marvell-pj4.md: Update with new attributes.
15691         * config/arm/vfp11.md: Update with new attributes.
15693 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15695         * config/aarch64/aarch64.md
15696         (*madd<mode>): Fix type attribute.
15697         (*maddsi_uxtw): Likewise.
15698         (*msub<mode>): Likewise.
15699         (*msubsi_uxtw): Likewise.
15700         (<su_optab>maddsidi4): Likewise.
15701         (<su_optab>msubsidi4): Likewise.
15703 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15705         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15706         * config/arm/arm.md (core_cycles): Remove fdiv.
15707         * config/arm/vfp.md:
15708         (*sqrtsf2_vfp): Update for attribute changes.
15709         (*sqrtdf2_vfp): Likewise.
15710         * config/aarch64/aarch64.md:
15711         (sqrt<mode>2): Update for attribute changes.
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/arm/types.md
15727         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15728         * config/aarch64/aarch64.md
15729         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15730         new attributes.
15731         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15732         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15733         (float<GPI:mode><GPF:mode>2): Likewise.
15734         * config/arm/vfp.md
15735         (*truncsisf2_vfp): Update with new attributes.
15736         (*truncsidf2_vfp): Likewise.
15737         (fixuns_truncsfsi2): Likewise.
15738         (fixuns_truncdfsi2): Likewise.
15739         (*floatsisf2_vfp): Likewise.
15740         (*floatsidf2_vfp): Likewise.
15741         (floatunssisf2): Likewise.
15742         (floatunssidf2): Likewise.
15743         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15744         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15745         * config/arm/arm1020e.md: Update with new attributes.
15746         * config/arm/cortex-a15-neon.md: Update with new attributes.
15747         * config/arm/cortex-a5.md: Update with new attributes.
15748         * config/arm/cortex-a53.md: Update with new attributes.
15749         * config/arm/cortex-a7.md: Update with new attributes.
15750         * config/arm/cortex-a8-neon.md: Update with new attributes.
15751         * config/arm/cortex-a9.md: Update with new attributes.
15752         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15753         * config/arm/cortex-r4f.md: Update with new attributes.
15754         * config/arm/marvell-pj4.md: Update with new attributes.
15755         * config/arm/vfp11.md: Update with new attributes.
15757 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15759         * config/aarch64/arm_neon.h
15760         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
15761         (vqtbx<1,2,3,4><q>_s8): Likewise.
15763 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15765         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
15766         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
15767         (add<mode>3): Add type attribute.
15768         (add<mode>3): Likewise.
15769         (usadd<mode>3): Likewise.
15770         (ssadd<mode>3): Likewise.
15771         (sub<mode>3): Likewise.
15772         (sub<mode>3): Likewise.
15773         (ussub<mode>3): Likewise.
15774         (sssub<mode>3): Likewise.
15775         (ssmulsa3): Likewise.
15776         (usmulusa3): Likewise.
15777         (arm_usatsihi): Likewise.
15778         * config/arm/vfp.md
15779         (*movdi_vfp): Add types for all instructions.
15780         (*movdi_vfp_cortexa8): Likewise.
15781         (*movhf_vfp_neon): Likewise.
15782         (*movhf_vfp): Likewise.
15783         (*movdf_vfp): Likewise.
15784         (*thumb2_movdf_vfp): Likewise.
15785         (*thumb2_movdfcc_vfp): Likewise.
15786         * config/arm/arm.md: Add type attribute to all insn patterns.
15787         (*thumb1_adddi3): Add type attribute.
15788         (*arm_adddi3): Likewise.
15789         (*adddi_sesidi_di): Likewise.
15790         (*adddi_zesidi_di): Likewise.
15791         (*thumb1_addsi3): Likewise.
15792         (addsi3_compare0): Likewise.
15793         (*addsi3_compare0_scratch): Likewise.
15794         (*compare_negsi_si): Likewise.
15795         (cmpsi2_addneg): Likewise.
15796         (*addsi3_carryin_<optab>): Likewise.
15797         (*addsi3_carryin_alt2_<optab>): Likewise.
15798         (*addsi3_carryin_clobercc_<optab>): Likewise.
15799         (*subsi3_carryin): Likewise.
15800         (*subsi3_carryin_const): Likewise.
15801         (*subsi3_carryin_compare): Likewise.
15802         (*subsi3_carryin_compare_const): Likewise.
15803         (*arm_subdi3): Likewise.
15804         (*thumb_subdi3): Likewise.
15805         (*subdi_di_zesidi): Likewise.
15806         (*subdi_di_sesidi): Likewise.
15807         (*subdi_zesidi_di): Likewise.
15808         (*subdi_sesidi_di): Likewise.
15809         (*subdi_zesidi_ze): Likewise.
15810         (thumb1_subsi3_insn): Likewise.
15811         (*arm_subsi3_insn): Likewise.
15812         (*anddi3_insn): Likewise.
15813         (*anddi_zesidi_di): Likewise.
15814         (*anddi_sesdi_di): Likewise.
15815         (*ne_zeroextracts): Likewise.
15816         (*ne_zeroextracts): Likewise.
15817         (*ite_ne_zeroextr): Likewise.
15818         (*ite_ne_zeroextr): Likewise.
15819         (*anddi_notdi_di): Likewise.
15820         (*anddi_notzesidi): Likewise.
15821         (*anddi_notsesidi): Likewise.
15822         (andsi_notsi_si): Likewise.
15823         (thumb1_bicsi3): Likewise.
15824         (*iordi3_insn): Likewise.
15825         (*iordi_zesidi_di): Likewise.
15826         (*iordi_sesidi_di): Likewise.
15827         (*thumb1_iorsi3_insn): Likewise.
15828         (*xordi3_insn): Likewise.
15829         (*xordi_zesidi_di): Likewise.
15830         (*xordi_sesidi_di): Likewise.
15831         (*arm_xorsi3): Likewise.
15832         (*andsi_iorsi3_no): Likewise.
15833         (*smax_0): Likewise.
15834         (*smax_m1): Likewise.
15835         (*arm_smax_insn): Likewise.
15836         (*smin_0): Likewise.
15837         (*arm_smin_insn): Likewise.
15838         (*arm_umaxsi3): Likewise.
15839         (*arm_uminsi3): Likewise.
15840         (*minmax_arithsi): Likewise.
15841         (*minmax_arithsi_): Likewise.
15842         (*satsi_<SAT:code>): Likewise.
15843         (arm_ashldi3_1bit): Likewise.
15844         (arm_ashrdi3_1bit): Likewise.
15845         (arm_lshrdi3_1bit): Likewise.
15846         (*arm_negdi2): Likewise.
15847         (*thumb1_negdi2): Likewise.
15848         (*arm_negsi2): Likewise.
15849         (*thumb1_negsi2): Likewise.
15850         (*negdi_extendsid): Likewise.
15851         (*negdi_zero_extend): Likewise.
15852         (*arm_abssi2): Likewise.
15853         (*thumb1_abssi2): Likewise.
15854         (*arm_neg_abssi2): Likewise.
15855         (*thumb1_neg_abss): Likewise.
15856         (one_cmpldi2): Likewise.
15857         (extend<mode>di2): Likewise.
15858         (*compareqi_eq0): Likewise.
15859         (*arm_extendhisi2addsi): Likewise.
15860         (*arm_movdi): Likewise.
15861         (*thumb1_movdi_insn): Likewise.
15862         (*arm_movt): Likewise.
15863         (*thumb1_movsi_insn): Likewise.
15864         (pic_add_dot_plus_four): Likewise.
15865         (pic_add_dot_plus_eight): Likewise.
15866         (tls_load_dot_plus_eight): Likewise.
15867         (*thumb1_movhi_insn): Likewise.
15868         (*thumb1_movsf_insn): Likewise.
15869         (*movdf_soft_insn): Likewise.
15870         (*thumb_movdf_insn): Likewise.
15871         (cbranchsi4_insn): Likewise.
15872         (cbranchsi4_scratch): Likewise.
15873         (*negated_cbranchsi4): Likewise.
15874         (*tbit_cbranch): Likewise.
15875         (*tlobits_cbranch): Likewise.
15876         (*tstsi3_cbranch): Likewise.
15877         (*cbranchne_decr1): Likewise.
15878         (*addsi3_cbranch): Likewise.
15879         (*addsi3_cbranch_scratch): Likewise.
15880         (*arm_cmpdi_insn): Likewise.
15881         (*arm_cmpdi_unsig): Likewise.
15882         (*arm_cmpdi_zero): Likewise.
15883         (*thumb_cmpdi_zero): Likewise.
15884         (*deleted_compare): Likewise.
15885         (*mov_scc): Likewise.
15886         (*mov_negscc): Likewise.
15887         (*mov_notscc): Likewise.
15888         (*cstoresi_eq0_thumb1_insn): Likewise.
15889         (cstoresi_nltu_thumb1): Likewise.
15890         (cstoresi_ltu_thu): Likewise.
15891         (thumb1_addsi3_addgeu): Likewise.
15892         (*arm_jump): Likewise.
15893         (*thumb_jump): Likewise.
15894         (*check_arch2): Likewise.
15895         (arm_casesi_internal): Likewise.
15896         (thumb1_casesi_dispatch): Likewise.
15897         (*arm_indirect_jump): Likewise.
15898         (*thumb1_indirect_jump): Likewise.
15899         (nop): Likewise.
15900         (*and_scc): Likewise.
15901         (*ior_scc): Likewise.
15902         (*compare_scc): Likewise.
15903         (*cond_move): Likewise.
15904         (*cond_arith): Likewise.
15905         (*cond_sub): Likewise.
15906         (*cmp_ite0): Likewise.
15907         (*cmp_ite1): Likewise.
15908         (*cmp_and): Likewise.
15909         (*cmp_ior): Likewise.
15910         (*ior_scc_scc): Likewise.
15911         (*ior_scc_scc_cmp): Likewise.
15912         (*and_scc_scc): Likewise.
15913         (*and_scc_scc_cmp): Likewise.
15914         (*and_scc_scc_nod): Likewise.
15915         (*negscc): Likewise.
15916         (movcond_addsi): Likewise.
15917         (movcond): Likewise.
15918         (*ifcompare_plus_move): Likewise.
15919         (*if_plus_move): Likewise.
15920         (*ifcompare_move_plus): Likewise.
15921         (*if_move_plus): Likewise.
15922         (*ifcompare_arith_arith): Likewise.
15923         (*if_arith_arith): Likewise.
15924         (*ifcompare_arith_move): Likewise.
15925         (*if_arith_move): Likewise.
15926         (*ifcompare_move_arith): Likewise.
15927         (*if_move_arith): Likewise.
15928         (*ifcompare_move_not): Likewise.
15929         (*if_move_not): Likewise.
15930         (*ifcompare_not_move): Likewise.
15931         (*if_not_move): Likewise.
15932         (*ifcompare_shift_move): Likewise.
15933         (*if_shift_move): Likewise.
15934         (*ifcompare_move_shift): Likewise.
15935         (*if_move_shift): Likewise.
15936         (*ifcompare_shift_shift): Likewise.
15937         (*ifcompare_not_arith): Likewise.
15938         (*ifcompare_arith_not): Likewise.
15939         (*if_arith_not): Likewise.
15940         (*ifcompare_neg_move): Likewise.
15941         (*if_neg_move): Likewise.
15942         (*ifcompare_move_neg): Likewise.
15943         (*if_move_neg): Likewise.
15944         (prologue_thumb1_interwork): Likewise.
15945         (*cond_move_not): Likewise.
15946         (*sign_extract_onebit): Likewise.
15947         (*not_signextract_onebit): Likewise.
15948         (stack_tie): Likewise.
15949         (align_4): Likewise.
15950         (align_8): Likewise.
15951         (consttable_end): Likewise.
15952         (consttable_1): Likewise.
15953         (consttable_2): Likewise.
15954         (consttable_4): Likewise.
15955         (consttable_8): Likewise.
15956         (consttable_16): Likewise.
15957         (*thumb1_tablejump): Likewise.
15958         (prefetch): Likewise.
15959         (force_register_use): Likewise.
15960         (thumb_eh_return): Likewise.
15961         (load_tp_hard): Likewise.
15962         (load_tp_soft): Likewise.
15963         (tlscall): Likewise.
15964         (*arm_movtas_ze): Likewise.
15965         (*arm_rev): Likewise.
15966         (*arm_revsh): Likewise.
15967         (*arm_rev16): Likewise.
15968         * config/arm/thumb2.md
15969         (*thumb2_smaxsi3): Likewise.
15970         (*thumb2_sminsi3): Likewise.
15971         (*thumb32_umaxsi3): Likewise.
15972         (*thumb2_uminsi3): Likewise.
15973         (*thumb2_negdi2): Likewise.
15974         (*thumb2_abssi2): Likewise.
15975         (*thumb2_neg_abss): Likewise.
15976         (*thumb2_movsi_insn): Likewise.
15977         (tls_load_dot_plus_four): Likewise.
15978         (*thumb2_movhi_insn): Likewise.
15979         (*thumb2_mov_scc): Likewise.
15980         (*thumb2_mov_negs): Likewise.
15981         (*thumb2_mov_negs): Likewise.
15982         (*thumb2_mov_nots): Likewise.
15983         (*thumb2_mov_nots): Likewise.
15984         (*thumb2_movsicc_): Likewise.
15985         (*thumb2_movsfcc_soft_insn): Likewise.
15986         (*thumb2_indirect_jump): Likewise.
15987         (*thumb2_and_scc): Likewise.
15988         (*thumb2_ior_scc): Likewise.
15989         (*thumb2_ior_scc_strict_it): Likewise.
15990         (*thumb2_cond_move): Likewise.
15991         (*thumb2_cond_arith): Likewise.
15992         (*thumb2_cond_ari): Likewise.
15993         (*thumb2_cond_sub): Likewise.
15994         (*thumb2_negscc): Likewise.
15995         (*thumb2_movcond): Likewise.
15996         (thumb2_casesi_internal): Likewise.
15997         (thumb2_casesi_internal_pic): Likewise.
15998         (*thumb2_alusi3_short): Likewise.
15999         (*thumb2_mov<mode>_shortim): Likewise.
16000         (*thumb2_addsi_short): Likewise.
16001         (*thumb2_subsi_short): Likewise.
16002         (thumb2_addsi3_compare0): Likewise.
16003         (*thumb2_cbz): Likewise.
16004         (*thumb2_cbnz): Likewise.
16005         (*thumb2_one_cmplsi2_short): Likewise.
16006         (*thumb2_negsi2_short): Likewise.
16007         (*orsi_notsi_si): Likewise.
16008         * config/arm/arm1020e.md: Update with new attributes.
16009         * config/arm/arm1026ejs.md: Update with new attributes.
16010         * config/arm/arm1136jfs.md: Update with new attributes.
16011         * config/arm/arm926ejs.md: Update with new attributes.
16012         * config/arm/cortex-a15.md: Update with new attributes.
16013         * config/arm/cortex-a5.md: Update with new attributes.
16014         * config/arm/cortex-a53.md: Update with new attributes.
16015         * config/arm/cortex-a7.md: Update with new attributes.
16016         * config/arm/cortex-a8.md: Update with new attributes.
16017         * config/arm/cortex-a9.md: Update with new attributes.
16018         * config/arm/cortex-m4.md: Update with new attributes.
16019         * config/arm/cortex-r4.md: Update with new attributes.
16020         * config/arm/fa526.md: Update with new attributes.
16021         * config/arm/fa606te.md: Update with new attributes.
16022         * config/arm/fa626te.md: Update with new attributes.
16023         * config/arm/fa726te.md: Update with new attributes.
16025 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16027         * config/aarch64/aarch64-simd.md
16028         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16029         <vwx> iterator to ensure correct register choice.
16030         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16031         (aarch64_sqdmull_n<mode>): Likewise.
16032         (aarch64_sqdmull2_n<mode>_internal): Likewise.
16033         * config/aarch64/arm_neon.h
16034         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16035         (vml<as><q>_n_<su>16): Likewise.
16036         (vml<as>l_high_lane<q>_<su>16): Likewise.
16037         (vml<as>l_high_n_<su>16): Likewise.
16038         (vml<as>l_lane<q>_<su>16): Likewise.
16039         (vml<as>l_n_<su>16): Likewise.
16040         (vmul<q>_lane<q>_<su>16): Likewise.
16041         (vmul<q>_n_<su>16): Likewise.
16042         (vmull_lane<q>_<su>16): Likewise.
16043         (vmull_n_<su>16): Likewise.
16044         (vmull_high_lane<q>_<su>16): Likewise.
16045         (vmull_high_n_<su>16): Likewise.
16046         (vqrdmulh<q>_n_s16): Likewise.
16048 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
16050         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16051         have the correct lane parameter.
16053 2013-09-06  Richard Biener <rguenther@suse.de>
16055         * cfganal.c (control_dependences::~control_dependences):
16056         Properly free all of the vector.
16058 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
16060         PR target/58269
16061         * config/i386/i386.c (ix86_conditional_register_usage):
16062         Proper initialize extended SSE registers.
16064 2013-09-06  Jan Hubicka  <jh@suse.cz>
16066         PR tree-optimization/58311
16067         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16069 2013-09-06  Jan Hubicka  <jh@suse.cz>
16071         * Makefile.in (tree-sra.o): Update dependencies.
16072         * tree-sra.c: Include ipa-utils.h
16073         (scan_function): Use recursive_call_p.
16074         (has_caller_p): New function.
16075         (cgraph_for_node_and_aliases): Count also callers of aliases.
16077 2013-09-06  Jan Hubicka  <jh@suse.cz>
16079         PR middle-end/58094
16080         * cgraph.h (symtab_semantically_equivalent_p): Declare.
16081         * tree-tailcall.c: Include ipa-utils.h.
16082         (find_tail_calls): Use it.
16083         * ipa-pure-const.c (check_call): Likewise.
16084         * ipa-utils.c (recursive_call_p): New function.
16085         * ipa-utils.h (recursive_call_p): Dclare.
16086         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16087         (symtab_semantically_equivalent_p): New function.
16088         * Makefile.in (tree-tailcall.o): Update dependencies.
16090 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
16092         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16093         non-inlinable part.
16095 2013-09-06  Richard Biener  <rguenther@suse.de>
16097         * lto-streamer.h (lto_global_var_decls): Remove.
16098         * Makefile.in (OBJS): Remove lto-symtab.o.
16099         (lto-symtab.o): Remove.
16100         (GTFILES): Remove lto-symtab.c
16101         * lto-symtab.c: Move to lto/
16103 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16105         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16106         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16107         (UNSPEC_FPINT_RINT): New constant definitions.
16108         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16109         definition with 2 attributes.
16110         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16111         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16112         definitions.
16114 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16116         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16117         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16118         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
16119         attribute to "z196_alone".
16120         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16121         "zEC12_simple".
16123 2013-09-06  Richard Biener  <rguenther@suse.de>
16125         * basic-block.h (class control_dependences): New.
16126         * tree-ssa-dce.c (control_dependence_map): Remove.
16127         (cd): New global.
16128         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16129         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16130         find_pdom, find_control_dependence, find_all_control_dependences):
16131         Move to cfganal.c.
16132         (mark_control_dependent_edges_necessary,
16133         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16134         tree_dce_done, perform_tree_ssa_dce): Adjust.
16135         * cfganal.c (set_control_dependence_map_bit,
16136         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16137         find_all_control_dependences): Move from tree-ssa-dce.c and
16138         implement as methods of control_dependences class.
16139         (control_dependences::control_dependences): New.
16140         (control_dependences::~control_dependences): Likewise.
16141         (control_dependences::get_edges_dependent_on): Likewise.
16142         (control_dependences::get_edge): Likewise.
16144 2013-09-04  Jan Hubicka  <jh@suse.cz>
16146         * tree.c (types_same_for_odr): Drop overactive check.
16147         * ipa-devirt.c (hash_type_name): Likewise.
16149 2013-09-04  Jan Hubicka  <jh@suse.cz>
16151         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16152         (analyze_functions): ... here.
16154 2013-09-04  Jan Hubicka  <jh@suse.cz>
16156         PR middle-end/58201
16157         * cgraphunit.c (analyze_functions): Clear AUX fields
16158         after processing; initialize assembler name has.
16160 2013-09-05  Jeff Law  <law@redhat.com>
16162         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16163         from thread_around_empty_block.  Record threading path into PATH.
16164         Recurse if threading through the initial block is successful.
16165         (thread_across_edge): Corresponding changes to slightly simplify.
16167 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16169         * config/aarch64/aarch64.md
16170         (type): Remove frecpe, frecps, frecpx.
16171         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16172         fix to be a TARGET_SIMD instruction.
16173         (aarch64_frecps): Remove.
16174         * config/aarch64/aarch64-simd.md
16175         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16176         (aarch64_frecps<mode>): Handle all float/vector of float modes.
16178 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16179             Sofiane Naci  <sofiane.naci@arm.com>
16181         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16182         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16183         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16184         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16185         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
16186         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16187         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
16188         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
16189         into "clz, "rbit".  Rename "shift" to "shift_imm".
16190         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16191         changes.  Update for attribute changes all occurrences of arlo_* and
16192         shift* types.
16193         * config/arm/arm-fixed.md: Update for attribute changes
16194         all occurrences of arlo_* types.
16195         * config/arm/thumb2.md: Update for attribute changes all occurrences
16196         of arlo_* types.
16197         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
16198         (cortexa7_older_only): Likewise.
16199         (cortexa7_younger):  Likewise.
16200         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16201         (1020alu_shift_op): Likewise.
16202         (1020alu_shift_reg_op): Likewise.
16203         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16204         (alu_shift_op): Likewise.
16205         (alu_shift_reg_op): Likewise.
16206         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16207         (11_alu_shift_op): Likewise.
16208         (11_alu_shift_reg_op): Likewise.
16209         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16210         (9_alu_shift_reg_op): Likewise.
16211         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16212         attribute changes.
16213         (cortex_a15_alu_shift): Likewise.
16214         (cortex_a15_alu_shift_reg): Likewise.
16215         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16216         attribute changes.
16217         (cortex_a5_alu_shift): Likewise.
16218         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16219         attribute changes.
16220         (cortex_a53_alu_shift): Likewise.
16221         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16222         attribute changes.
16223         (cortex_a7_alu_reg): Likewise.
16224         (cortex_a7_alu_shift): Likewise.
16225         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16226         attribute changes.
16227         (cortex_a8_alu_shift): Likewise.
16228         (cortex_a8_alu_shift_reg): Likewise.
16229         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16230         (cortex_a9_dp_shift): Likewise.
16231         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16232         attribute changes.
16233         * config/arm/cortex-r4.md
16234         (cortex_r4_alu): Update for attribute changes.
16235         (cortex_r4_mov): Likewise.
16236         (cortex_r4_alu_shift_reg): Likewise.
16237         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16238         (526_alu_shift_op): Likewise.
16239         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16240         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16241         (626te_alu_shift_op): Likewise.
16242         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16243         (726te_alu_shift_op): Likewise.
16244         (726te_alu_shift_reg_op): Likewise.
16245         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16246         (mp626_alu_shift_op): Likewise.
16247         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16248         (pj4_alu_conds): Likewise.
16249         (pj4_shift): Likewise.
16250         (pj4_shift_conds): Likewise.
16251         (pj4_alu_shift): Likewise.
16252         (pj4_alu_shift_conds): Likewise.
16253         * config/aarch64/aarch64.md: Update for attribute change
16254         all occurrences of arlo_* and shift* types.
16256 2013-09-05  Mike Stump  <mikestump@comcast.net>
16258         * tree.h: Move documentation for tree_function_decl to tree-core.h
16259         with the declaration.
16261 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
16263         PR target/58139
16264         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16265         looking for widest mode.
16267 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
16269         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16271 2013-09-05  Richard Biener  <rguenther@suse.de>
16273         PR tree-optimization/58137
16274         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16275         Do not create vectors of pointers.
16276         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16277         types for the components of the vector initializer.
16278         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16279         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16281 2013-09-05  Martin Jambor  <mjambor@suse.cz>
16283         * ipa-prop.c (remove_described_reference): Accept missing references,
16284         return false if that hppens, otherwise return true.
16285         (cgraph_node_for_jfunc): New function.
16286         (try_decrement_rdesc_refcount): Likewise.
16287         (try_make_edge_direct_simple_call): Use them.
16288         (ipa_edge_removal_hook): Remove references from rdescs.
16289         (ipa_edge_duplication_hook): Clone rdescs and their references
16290         when the new edge has the same caller as the old one.
16291         * cgraph.c (cgraph_resolve_speculation): Remove speculative
16292         reference before removing any edges.
16294 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
16296         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16297         initial store.
16298         * thumb2.md (thumb2_storewb_parisi): New pattern.
16300 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
16302         * config/aarch64/aarch64-option-extensions.def: Add
16303         AARCH64_OPT_EXTENSION of 'crc'.
16304         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16305         (AARCH64_ISA_CRC): Ditto.
16306         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16307         description of the CRC extension.
16309 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16311         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16312         * config/rs6000/linux.h: Ditto.
16313         * alpha/linux.h: Ditto.
16314         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16315         no_c99_libc_has_function.
16316         * config/c6x/uclinux-elf.h: Ditto.
16317         * config/lm32/uclinux-elf.h: Ditto.
16318         * config/m68k/uclinux.h: Ditto.
16319         * config/moxie/uclinux.h: Ditto.
16320         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16321         (crisv32-*-linux*, cris-*-linux*): Ditto.
16322         * config/bfin/bfin.c: Include "tm_p.h".
16324 2013-09-05  Richard Biener  <rguenther@suse.de>
16326         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16327         check for a definition without a basic-block.
16329 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16330             Sofiane Naci <sofiane.naci@arm.com>
16332         * config/aarch64/aarch64.md
16333         (*movti_aarch64): Rename r_2_f and f_2_r.
16334         (*movsf_aarch64): Likewise.
16335         (*movdf_aarch64): Likewise.
16336         (*movtf_aarch64): Likewise.
16337         (aarch64_movdi_<mode>low): Likewise.
16338         (aarch64_movdi_<mode>high): Likewise.
16339         (aarch64_mov<mode>high_di): Likewise.
16340         (aarch64_mov<mode>low_di): Likewise.
16341         (aarch64_movtilow_tilow): Likewise.
16342         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
16343         values to config/arm/types.md
16344         (attribute "conds"): Update for attribute change.
16345         (anddi3_insn): Likewise.
16346         (iordi3_insn): Likewise.
16347         (xordi3_insn): Likewise.
16348         (one_cmpldi2): Likewise.
16349         * config/arm/types.md (type): Add Neon types.
16350         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16351         use "type" attribute.
16352         (movmisalign<mode>_neon_store): Likewise.
16353         (movmisalign<mode>_neon_load): Likewise.
16354         (vec_set<mode>_internal): Likewise.
16355         (vec_setv2di_internal): Likewise.
16356         (vec_extract<mode>): Likewise.
16357         (vec_extractv2di): Likewise.
16358         (add<mode>3_neon): Likewise.
16359         (adddi3_neon): Likewise.
16360         (sub<mode>3_neon): Likewise.
16361         (subdi3_neon): Likewise.
16362         (mul<mode>3_neon): Likewise.
16363         (mul<mode>3add<mode>_neon): Likewise.
16364         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16365         (fma<VCVTF:mode>4)): Likewise.
16366         (fma<VCVTF:mode>4_intrinsic): Likewise.
16367         (fmsub<VCVTF:mode>4)): Likewise.
16368         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16369         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16370         (ior<mode>3): Likewise.
16371         (and<mode>3): Likewise.
16372         (anddi3_neon): Likewise.
16373         (orn<mode>3_neon): Likewise.
16374         (orndi3_neon): Likewise.
16375         (bic<mode>3_neon): Likewise.
16376         (bicdi3_neon): Likewise.
16377         (xor<mode>3): Likewise.
16378         (one_cmpl<mode>2): Likewise.
16379         (abs<mode>2): Likewise.
16380         (neg<mode>2): Likewise.
16381         (umin<mode>3_neon): Likewise.
16382         (umax<mode>3_neon): Likewise.
16383         (smin<mode>3_neon): Likewise.
16384         (smax<mode>3_neon): Likewise.
16385         (vashl<mode>3): Likewise.
16386         (vashr<mode>3_imm): Likewise.
16387         (vlshr<mode>3_imm): Likewise.
16388         (ashl<mode>3_signed): Likewise.
16389         (ashl<mode>3_unsigned): Likewise.
16390         (neon_load_count): Likewise.
16391         (ashldi3_neon_noclobber): Likewise.
16392         (signed_shift_di3_neon): Likewise.
16393         (unsigned_shift_di3_neon): Likewise.
16394         (ashrdi3_neon_imm_noclobber): Likewise.
16395         (lshrdi3_neon_imm_noclobber): Likewise.
16396         (widen_ssum<mode>3): Likewise.
16397         (widen_usum<mode>3): Likewise.
16398         (quad_halves_<code>v4si): Likewise.
16399         (quad_halves_<code>v4sf): Likewise.
16400         (quad_halves_<code>v8hi): Likewise.
16401         (quad_halves_<code>v16qi): Likewise.
16402         (reduc_splus_v2di): Likewise.
16403         (neon_vpadd_internal<mode>): Likewise.
16404         (neon_vpsmin<mode>): Likewise.
16405         (neon_vpsmax<mode>): Likewise.
16406         (neon_vpumin<mode>): Likewise.
16407         (neon_vpumax<mode>): Likewise.
16408         (ss_add<mode>_neon): Likewise.
16409         (us_add<mode>_neon): Likewise.
16410         (ss_sub<mode>_neon): Likewise.
16411         (us_sub<mode>_neon): Likewise.
16412         (neon_vadd<mode>_unspec): Likewise.
16413         (neon_vaddl<mode>): Likewise.
16414         (neon_vaddw<mode>): Likewise.
16415         (neon_vhadd<mode>): Likewise.
16416         (neon_vqadd<mode>): Likewise.
16417         (neon_vaddhn<mode>): Likewise.
16418         (neon_vmul<mode>): Likewise.
16419         (neon_vmla<mode>): Likewise.
16420         (neon_vmlal<mode>): Likewise.
16421         (neon_vmls<mode>): Likewise.
16422         (neon_vmlsl<mode>): Likewise.
16423         (neon_vqdmulh<mode>): Likewise.
16424         (neon_vqdmlal<mode>): Likewise.
16425         (neon_vqdmlsl<mode>): Likewise.
16426         (neon_vmull<mode>): Likewise.
16427         (neon_vqdmull<mode>): Likewise.
16428         (neon_vsub<mode>_unspec): Likewise.
16429         (neon_vsubl<mode>): Likewise.
16430         (neon_vsubw<mode>): Likewise.
16431         (neon_vqsub<mode>): Likewise.
16432         (neon_vhsub<mode>): Likewise.
16433         (neon_vsubhn<mode>): Likewise.
16434         (neon_vceq<mode>): Likewise.
16435         (neon_vcge<mode>): Likewise.
16436         (neon_vcgeu<mode>): Likewise.
16437         (neon_vcgt<mode>): Likewise.
16438         (neon_vcgtu<mode>): Likewise.
16439         (neon_vcle<mode>): Likewise.
16440         (neon_vclt<mode>): Likewise.
16441         (neon_vcage<mode>): Likewise.
16442         (neon_vcagt<mode>): Likewise.
16443         (neon_vtst<mode>): Likewise.
16444         (neon_vabd<mode>): Likewise.
16445         (neon_vabdl<mode>): Likewise.
16446         (neon_vaba<mode>): Likewise.
16447         (neon_vabal<mode>): Likewise.
16448         (neon_vmax<mode>): Likewise.
16449         (neon_vmin<mode>): Likewise.
16450         (neon_vpaddl<mode>): Likewise.
16451         (neon_vpadal<mode>): Likewise.
16452         (neon_vpmax<mode>): Likewise.
16453         (neon_vpmin<mode>): Likewise.
16454         (neon_vrecps<mode>): Likewise.
16455         (neon_vrsqrts<mode>): Likewise.
16456         (neon_vqabs<mode>): Likewise.
16457         (neon_vqneg<mode>): Likewise.
16458         (neon_vcls<mode>): Likewise.
16459         (clz<mode>2): Likewise.
16460         (popcount<mode>2): Likewise.
16461         (neon_vrecpe): Likewise.
16462         (neon_vrsqrte): Likewise.
16463         (neon_vget_lane<mode>_sext_internal): Likewise.
16464         (neon_vget_lane<mode>_zext_internal): Likewise.
16465         (neon_vdup_n<mode>): Likewise.
16466         (neon_vdup_nv2di): Likewise.
16467         (neon_vdpu_lane<mode>_internal): Likewise.
16468         (neon_vswp<mode>): Likewise.
16469         (float<mode><V_cvtto>2): Likewise.
16470         (floatuns<mode><V_cvtto>2): Likewise.
16471         (fix_trunc<mode><V_cvtto>)2): Likewise
16472         (fixuns_trunc<mode><V_cvtto)2): Likewise.
16473         (neon_vcvt<mode>): Likewise.
16474         (neon_vcvtv4sfv4hf): Likewise.
16475         (neon_vcvtv4hfv4sf): Likewise.
16476         (neon_vcvt_n<mode>): Likewise.
16477         (neon_vmovn<mode>): Likewise.
16478         (neon_vqmovn<mode>): Likewise.
16479         (neon_vqmovun<mode>): Likewise.
16480         (neon_vmovl<mode>): Likewise.
16481         (neon_vmul_lane<mode>): Likewise.
16482         (neon_vmull_lane<mode>): Likewise.
16483         (neon_vqdmull_lane<mode>): Likewise.
16484         (neon_vqdmulh_lane<mode>): Likewise.
16485         (neon_vmla_lane<mode>): Likewise.
16486         (neon_vmlal_lane<mode>): Likewise.
16487         (neon_vqdmlal_lane<mode>): Likewise.
16488         (neon_vmls_lane<mode>): Likewise.
16489         (neon_vmlsl_lane<mode>): Likewise.
16490         (neon_vqdmlsl_lane<mode>): Likewise.
16491         (neon_vext<mode>): Likewise.
16492         (neon_vrev64<mode>): Likewise.
16493         (neon_vrev32<mode>): Likewise.
16494         (neon_vrev16<mode>): Likewise.
16495         (neon_vbsl<mode>_internal): Likewise.
16496         (neon_vshl<mode>): Likewise.
16497         (neon_vqshl<mode>): Likewise.
16498         (neon_vshr_n<mode>): Likewise.
16499         (neon_vshrn_n<mode>): Likewise.
16500         (neon_vqshrn_n<mode>): Likewise.
16501         (neon_vqshrun_n<mode>): Likewise.
16502         (neon_vshl_n<mode>): Likewise.
16503         (neon_vqshl_n<mode>): Likewise.
16504         (neon_vqshlu_n<mode>): Likewise.
16505         (neon_vshll_n<mode>): Likewise.
16506         (neon_vsra_n<mode>): Likewise.
16507         (neon_vsri_n<mode>): Likewise.
16508         (neon_vsli_n<mode>): Likewise.
16509         (neon_vtbl1v8qi): Likewise.
16510         (neon_vtbl2v8qi): Likewise.
16511         (neon_vtbl3v8qi): Likewise.
16512         (neon_vtbl4v8qi): Likewise.
16513         (neon_vtbx1v8qi): Likewise.
16514         (neon_vtbx2v8qi): Likewise.
16515         (neon_vtbx3v8qi): Likewise.
16516         (neon_vtbx4v8qi): Likewise.
16517         (neon_vtrn<mode>_internal): Likewise.
16518         (neon_vzip<mode>_internal): Likewise.
16519         (neon_vuzp<mode>_internal): Likewise.
16520         (neon_vld1<mode>): Likewise.
16521         (neon_vld1_lane<mode>): Likewise.
16522         (neon_vld1_dup<mode>): Likewise.
16523         (neon_vld1_dupv2di): Likewise.
16524         (neon_vst1<mode>): Likewise.
16525         (neon_vst1_lane<mode>): Likewise.
16526         (neon_vld2<mode>): Likewise.
16527         (neon_vld2_lane<mode>): Likewise.
16528         (neon_vld2_dup<mode>): Likewise.
16529         (neon_vst2<mode>): Likewise.
16530         (neon_vst2_lane<mode>): Likewise.
16531         (neon_vld3<mode>): Likewise.
16532         (neon_vld3qa<mode>): Likewise.
16533         (neon_vld3qb<mode>): Likewise.
16534         (neon_vld3_lane<mode>): Likewise.
16535         (neon_vld3_dup<mode>): Likewise.
16536         (neon_vst3<mode>): Likewise.
16537         (neon_vst3qa<mode>): Likewise.
16538         (neon_vst3qb<mode>): Likewise.
16539         (neon_vst3_lane<mode>): Likewise.
16540         (neon_vld4<mode>): Likewise.
16541         (neon_vld4qa<mode>): Likewise.
16542         (neon_vld4qb<mode>): Likewise.
16543         (neon_vld4_lane<mode>): Likewise.
16544         (neon_vld4_dup<mode>): Likewise.
16545         (neon_vst4<mode>): Likewise.
16546         (neon_vst4qa<mode>): Likewise.
16547         (neon_vst4qb<mode>): Likewise.
16548         (neon_vst4_lane<mode>): Likewise.
16549         (neon_vec_unpack<US>_lo_<mode>): Likewise.
16550         (neon_vec_unpack<US>_hi_<mode>): Likewise.
16551         (neon_vec_<US>mult_lo_<mode>): Likewise.
16552         (neon_vec_<US>mult_hi_<mode>): Likewise.
16553         (neon_vec_<US>shiftl_<mode>): Likewise.
16554         (neon_unpack<US>_<mode>): Likewise.
16555         (neon_vec_<US>mult_<mode>): Likewise.
16556         (vec_pack_trunc_<mode>): Likewise.
16557         (neon_vec_pack_trunk_<mode>): Likewise.
16558         (neon_vabd<mode>_2): Likewise.
16559         (neon_vabd<mode>_3): Likewise.
16560         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16561         (thumb2_movsi_vfp): Likewise.
16562         (movdi_vfp): Likewise.
16563         (movdi_vfp_cortexa8): Likewise.
16564         (movhf_vfp_neon): Likewise.
16565         (movhf_vfp): Likewiwse.
16566         (movsf_vfp): Likewiwse.
16567         (thumb2_movsf_vfp): Likewiwse.
16568         (movdf_vfp): Likewise.
16569         (thumb2_movdf_vfp): Likewise.
16570         (movsfcc_vfp): Likewise.
16571         (thumb2_movsfcc_vfp): Likewise.
16572         (movdfcc_vfp): Likewise.
16573         (thumb2_movdfcc_vfp): Likewise.
16574         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16575         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16576         (v10_v2c): Likewise.
16577         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16578         attribute change.
16579         (cortex_a15_neon_int_2): Likewise.
16580         (cortex_a15_neon_int_3): Likewise.
16581         (cortex_a15_neon_int_4): Likewise.
16582         (cortex_a15_neon_int_5): Likewise.
16583         (cortex_a15_neon_vqneg_vqabs): Likewise.
16584         (cortex_a15_neon_vmov): Likewise.
16585         (cortex_a15_neon_vaba): Likewise.
16586         (cortex_a15_neon_vaba_qqq): Likewise.
16587         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16588         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16589         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16590         scalar_64_32_long_scalar): Likewise.
16591         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16592         (cortex_a15_neon_mla_qqq_8_16): Likewise.
16593         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16594         lotype_qdd_64_32_long): Likewise.
16595         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16596         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16597         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16598         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16599         (cortex_a15_neon_shift_1): Likewise.
16600         (cortex_a15_neon_shift_2): Likewise.
16601         (cortex_a15_neon_shift_3): Likewise.
16602         (cortex_a15_neon_vshl_ddd): Likewise.
16603         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16604         (cortex_a15_neon_vsra_vrsra): Likewise.
16605         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16606         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16607         (cortex_a15_neon_fp_vmul_ddd): Likewise.
16608         (cortex_a15_neon_fp_vmul_qqd): Likewise.
16609         (cortex_a15_neon_fp_vmla_ddd): Likewise.
16610         (cortex_a15_neon_fp_vmla_qqq): Likewise.
16611         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16612         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16613         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16614         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16615         (cortex_a15_neon_bp_simple): Likewise.
16616         (cortex_a15_neon_bp_2cycle): Likewise.
16617         (cortex_a15_neon_bp_3cycle): Likewise.
16618         (cortex_a15_neon_vld1_1_2_regs): Likewise.
16619         (cortex_a15_neon_vld1_3_4_regs): Likewise.
16620         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16621         (cortex_a15_neon_vld2_4_regs): Likewise.
16622         (cortex_a15_neon_vld3_vld4): Likewise.
16623         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16624         (cortex_a15_neon_vst1_3_4_regs): Likewise.
16625         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16626         (cortex_a15_neon_vst3_vst4): Likewise.
16627         (cortex_a15_neon_vld1_vld2_lane): Likewise.
16628         (cortex_a15_neon_vld3_vld4_lane" 10
16629         (cortex_a15_neon_vst1_vst2_lane): Likewise.
16630         (cortex_a15_neon_vst3_vst4_lane): Likewise.
16631         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16632         (cortex_a15_neon_ldm_2): Likewise.0
16633         (cortex_a15_neon_stm_2): Likewise.
16634         (cortex_a15_neon_mcr): Likewise.
16635         (cortex_a15_neon_mcr_2_mcrr): Likewise.
16636         (cortex_a15_neon_mrc): Likewise.
16637         (cortex_a15_neon_mrrc): Likewise.
16638         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16639         change.
16640         (cortex_a15_alu_shift): Likewise.
16641         (cortex_a15_alu_shift_reg): Likewise.
16642         (cortex_a15_mult32): Likewise.
16643         (cortex_a15_mult64): Likewise.
16644         (cortex_a15_block): Likewise.
16645         (cortex_a15_branch): Likewise.
16646         (cortex_a15_load1): Likewise.
16647         (cortex_a15_load3): Likewise.
16648         (cortex_a15_store1): Likewise.
16649         (cortex_a15_store3): Likewise.
16650         (cortex_a15_call): Likewise.
16651         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16652         (cortex_a5_f2r): Likewise.
16653         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16654         change.
16655         (cortex_a53_f2r): Likewise.
16656         * config/arm/cortex-a7.md
16657         (cortex_a7_branch): Update for attribute change.
16658         (cortex_a7_call): Likewise.
16659         (cortex_a7_alu_imm): Likewise.
16660         (cortex_a7_alu_reg): Likewise.
16661         (cortex_a7_alu_shift): Likewise.
16662         (cortex_a7_mul): Likewise.
16663         (cortex_a7_load1): Likewise.
16664         (cortex_a7_store1): Likewise.
16665         (cortex_a7_load2): Likewise.
16666         (cortex_a7_store2): Likewise.
16667         (cortex_a7_load3): Likewise.
16668         (cortex_a7_store3): Likewise.
16669         (cortex_a7_load4): Likewise.
16670         (cortex_a7_store4): Likewise.
16671         (cortex_a7_fpalu): Likewise.
16672         (cortex_a7_fconst): Likewise.
16673         (cortex_a7_fpmuls): Likewise.
16674         (cortex_a7_neon_mul): Likewise.
16675         (cortex_a7_fpmacs): Likewise.
16676         (cortex_a7_neon_mla: Likewise.
16677         (cortex_a7_fpmuld: Likewise.
16678         (cortex_a7_fpmacd: Likewise.
16679         (cortex_a7_fpfmad: Likewise.
16680         (cortex_a7_fdivs: Likewise.
16681         (cortex_a7_fdivd: Likewise.
16682         (cortex_a7_r2f: Likewise.
16683         (cortex_a7_f2r: Likewise.
16684         (cortex_a7_f_flags: Likewise.
16685         (cortex_a7_f_loads: Likewise.
16686         (cortex_a7_f_loadd: Likewise.
16687         (cortex_a7_f_stores: Likewise.
16688         (cortex_a7_f_stored: Likewise.
16689         (cortex_a7_neon): Likewise.
16690         * config/arm/cortex-a8-neon.md
16691         (cortex_a8_neon_mrc): Update for attribute change.
16692         (cortex_a8_neon_mrrc): Likewise.
16693         (cortex_a8_neon_int_1): Likewise.
16694         (cortex_a8_neon_int_2): Likewise.
16695         (cortex_a8_neon_int_3): Likewise.
16696         (cortex_a8_neon_int_4): Likewise.
16697         (cortex_a8_neon_int_5): Likewise.
16698         (cortex_a8_neon_vqneg_vqabs): Likewise.
16699         (cortex_a8_neon_vmov): Likewise.
16700         (cortex_a8_neon_vaba): Likewise.
16701         (cortex_a8_neon_vaba_qqq): Likewise.
16702         (cortex_a8_neon_vsma): Likewise.
16703         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16704         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16705         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16706         long_scalar): Likewise.
16707         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16708         (cortex_a8_neon_mla_qqq_8_16): Likewise.
16709         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16710         long_scalar_qdd_64_32_long): Likewise.
16711         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16712         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16713         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16714         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16715         (cortex_a8_neon_shift_1): Likewise.
16716         (cortex_a8_neon_shift_2): Likewise.
16717         (cortex_a8_neon_shift_3): Likewise.
16718         (cortex_a8_neon_vshl_ddd): Likewise.
16719         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16720         (cortex_a8_neon_vsra_vrsra): Likewise.
16721         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16722         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16723         (cortex_a8_neon_fp_vsum): Likewise.
16724         (cortex_a8_neon_fp_vmul_ddd): Likewise.
16725         (cortex_a8_neon_fp_vmul_qqd): Likewise.
16726         (cortex_a8_neon_fp_vmla_ddd): Likewise.
16727         (cortex_a8_neon_fp_vmla_qqq): Likewise.
16728         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16729         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16730         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16731         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16732         (cortex_a8_neon_bp_simple): Likewise.
16733         (cortex_a8_neon_bp_2cycle): Likewise.
16734         (cortex_a8_neon_bp_3cycle): Likewise.
16735         (cortex_a8_neon_ldr): Likewise.
16736         (cortex_a8_neon_str): Likewise.
16737         (cortex_a8_neon_vld1_1_2_regs): Likewise.
16738         (cortex_a8_neon_vld1_3_4_regs): Likewise.
16739         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16740         (cortex_a8_neon_vld2_4_regs): Likewise.
16741         (cortex_a8_neon_vld3_vld4): Likewise.
16742         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16743         (cortex_a8_neon_vst1_3_4_regs): Likewise.
16744         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16745         (cortex_a8_neon_vst3_vst4): Likewise.
16746         (cortex_a8_neon_vld1_vld2_lane): Likewise.
16747         (cortex_a8_neon_vld3_vld4_lane): Likewise.
16748         (cortex_a8_neon_vst1_vst2_lane): Likewise.
16749         (cortex_a8_neon_vst3_vst4_lane): Likewise.
16750         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
16751         (cortex_a8_neon_mcr): Likewise.
16752         (cortex_a8_neon_mcr_2_mcrr): Likewise.
16753         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
16754         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
16755         change.
16756         (ca9_neon_mrrc): Likewise.
16757         (cortex_a9_neon_int_1): Likewise.
16758         (cortex_a9_neon_int_2): Likewise.
16759         (cortex_a9_neon_int_3): Likewise.
16760         (cortex_a9_neon_int_4): Likewise.
16761         (cortex_a9_neon_int_5): Likewise.
16762         (cortex_a9_neon_vqneg_vqabs): Likewise.
16763         (cortex_a9_neon_vmov): Likewise.
16764         (cortex_a9_neon_vaba): Likewise.
16765         (cortex_a9_neon_vaba_qqq): Likewise.
16766         (cortex_a9_neon_vsma): Likewise.
16767         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16768         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16769         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16770         long_scalar): Likewise.
16771         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16772         (cortex_a9_neon_mla_qqq_8_16): Likewise.
16773         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16774         long_scalar_qdd_64_32_long): Likewise.
16775         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16776         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16777         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
16778         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16779         (cortex_a9_neon_shift_1): Likewise.
16780         (cortex_a9_neon_shift_2): Likewise.
16781         (cortex_a9_neon_shift_3): Likewise.
16782         (cortex_a9_neon_vshl_ddd): Likewise.
16783         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16784         (cortex_a9_neon_vsra_vrsra): Likewise.
16785         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
16786         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
16787         (cortex_a9_neon_fp_vsum): Likewise.
16788         (cortex_a9_neon_fp_vmul_ddd): Likewise.
16789         (cortex_a9_neon_fp_vmul_qqd): Likewise.
16790         (cortex_a9_neon_fp_vmla_ddd): Likewise.
16791         (cortex_a9_neon_fp_vmla_qqq): Likewise.
16792         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
16793         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
16794         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16795         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16796         (cortex_a9_neon_bp_simple): Likewise.
16797         (cortex_a9_neon_bp_2cycle): Likewise.
16798         (cortex_a9_neon_bp_3cycle): Likewise.
16799         (cortex_a9_neon_ldr): Likewise.
16800         (cortex_a9_neon_str): Likewise.
16801         (cortex_a9_neon_vld1_1_2_regs): Likewise.
16802         (cortex_a9_neon_vld1_3_4_regs): Likewise.
16803         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16804         (cortex_a9_neon_vld2_4_regs): Likewise.
16805         (cortex_a9_neon_vld3_vld4): Likewise.
16806         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16807         (cortex_a9_neon_vst1_3_4_regs): Likewise.
16808         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
16809         (cortex_a9_neon_vst3_vst4): Likewise.
16810         (cortex_a9_neon_vld1_vld2_lane): Likewise.
16811         (cortex_a9_neon_vld3_vld4_lane): Likewise.
16812         (cortex_a9_neon_vst1_vst2_lane): Likewise.
16813         (cortex_a9_neon_vst3_vst4_lane): Likewise.
16814         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
16815         (cortex_a9_neon_mcr): Likewise.
16816         (cortex_a9_neon_mcr_2_mcrr): Likewise.
16817         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
16818         (cortex_a9_fps): Likewise.
16819         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
16820         change.
16821         (cortex_m4_fmuls): Likewise.
16822         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
16823         change.
16824         (cortex_r4_mrc): Likewise.
16825         * config/arm/iterators.md: Update comment referring to neon_type.
16826         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
16827         (iwmmxt_movsi_insn): Likewise.
16828         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
16829         attribute change.
16830         (pj4_core_to_vfp): Likewise.
16831         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
16832         attribute change.
16833         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
16834         (vfp_fstore): Likewise.
16835         * doc/md.texi: Change references to neon_type to refer to type.
16837 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16839         * tree.h (DECL_BUILT_IN): Fix typo in comment.
16841 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
16843         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
16844         lglobl if not weak.
16846 2013-09-04  Easwaran Raman  <eraman@google.com>
16848         PR middle-end/57370
16849         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
16850         (build_and_add_sum): Use it.
16851         (appears_later_in_bb): Simplify code.
16853 2013-09-04  Teresa Johnson  <tejohnson@google.com>
16855         * dumpfile.c (dump_finish): Don't close stderr/stdout.
16857 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
16859         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
16861 2013-09-04  Jan Hubicka  <jh@suse.cz>
16863         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
16864         * ipa-devirt.c: Include diganostic.h
16865         (odr_type_d): Add types and types_set.
16866         (hash_type_name): Work for types with vtables during LTO.
16867         (odr_hasher::remove): Fix comment; destroy types_set.
16868         (add_type_duplicate): New function,
16869         (get_odr_type): Use it.
16870         (dump_type_inheritance_graph): Dump type duplicates.
16871         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
16872         graph.
16873         * tree.c (types_same_for_odr): Give exact answers on types with
16874         virtual tables.
16876 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16878         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
16879         explaining their differences.
16881 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
16883         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
16885 2013-09-03  Jeff Law  <law@redhat.com>
16887         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
16888         when not threading through a joiner block.  Pass joiner/no joiner
16889         state to register_jump_thread.
16890         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
16891         state from argument rather than implying on path length.
16892         Dump the entire jump thread path into debugging dump.
16893         * tree-flow.h (register_jump_thread): Update prototype.
16895 2013-08-29  Xinliang David Li  <davidxl@google.com>
16897         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16898         Remove a trivial gcc_assert.
16900 2013-08-29  Xinliang David Li  <davidxl@google.com>
16902         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
16903         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
16904         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16905         Delay base decl alignment adjustment.
16906         * tree-vectorizer.c (vect_destroy_datarefs): New function.
16907         * tree-vectorizer.h: New data structure.
16908         (set_dr_misalignment): New function.
16909         (dr_misalignment): Ditto.
16910         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
16911         (vectorizable_load): Ditto.
16912         (ensure_base_align): New function.
16913         (vectorize_loops): Add dbg_cnt support.
16914         (execute_vect_slp): Ditto.
16915         * dbgcnt.def: New debug counter.
16916         * Makefile: New dependency.
16918 2013-09-03  Meador Inge  <meadori@codesourcery.com>
16920         Revert:
16922         2013-08-30  Meador Inge  <meadori@codesourcery.com>
16924         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16926 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
16928         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
16929         function descriptor.
16931 2013-09-03  Richard Biener  <rguenther@suse.de>
16933         * tree-affine.c (add_elt_to_tree): Fix association issue,
16934         avoid useless converts and make sure to always return a
16935         properly typed result.
16937 2013-09-03  Richard Biener  <rguenther@suse.de>
16939         PR middle-end/57656
16940         * fold-const.c (negate_expr_p): Fix division case.
16941         (negate_expr): Likewise.
16943 2013-09-03  Richard Biener  <rguenther@suse.de>
16945         PR lto/58285
16946         * tree-streamer-out.c: Include tm.h.
16947         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
16949 2013-09-03  Jan Hubicka  <jh@suse.cz>
16951         * tree-profile.c (tree_profiling): Cleanup CFG when done.
16953 2013-09-03  Alan Modra  <amodra@gmail.com>
16955         * config.gcc (powerpc*-*-linux*): Add support for little-endian
16956         multilibs to big-endian target and vice versa.
16957         * config/rs6000/t-linux64: Use := assignment on all vars.
16958         (MULTILIB_EXTRA_OPTS): Remove fPIC.
16959         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
16960         * config/rs6000/t-linux64le: New file.
16961         * config/rs6000/t-linux64bele: New file.
16962         * config/rs6000/t-linux64lebe: New file.
16964 2013-09-02  Jan Hubicka  <jh@suse.cz>
16966         * ipa-inline-transform.c (inline_transform): Do not
16967         optimize_inline_calls when not optimizing.
16969 2013-09-02  Jan Hubicka  <jh@suse.cz>
16971         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
16972         duplicated nodes for assembler names.
16973         * symtab.c (symtab_unregister_node): Do not attempt to unlink
16974         hard registers from assembler name hash.
16976 2013-09-02  Jan Hubicka  <jh@suse.cz>
16978         * ipa-split.c (execute_split_functions): Split externally visible
16979         functions called once.
16981 2013-09-02  Martin Jambor  <mjambor@suse.cz>
16983         PR ipa/58106
16984         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
16985         linked list.  When finding the correct duplicate, also consider also
16986         the caller in additon to its inlined_to node.
16988 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
16990         * config/aarch64/aarch64-simd-builtins.def
16991         (dup_lane_scalar): Remove.
16992         * config/aarch64/aarch64-simd.md
16993         (aarch64_simd_dup): Add 'w->w' alternative.
16994         (aarch64_dup_lane<mode>): Allow for VALL.
16995         (aarch64_dup_lane_scalar<mode>): Remove.
16996         (aarch64_dup_lane_<vswap_width_name><mode>): New.
16997         (aarch64_get_lane_signed<mode>): Add w->w altenative.
16998         (aarch64_get_lane_unsigned<mode>): Likewise.
16999         (aarch64_get_lane<mode>): Likewise.
17000         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17001         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17002         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17003         (VCON): Change container of V2SF.
17004         (vswap_width_name): Likewise.
17005         * config/aarch64/arm_neon.h
17006         (__aarch64_vdup_lane_any): New.
17007         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17008         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17009         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17011 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
17013         PR middle-end/56382
17014         * expr.c (emit_move_complex): Do not move complex FP values as parts if
17015         the source or the destination is a single hard register.
17017 2013-09-02  Richard Biener  <rguenther@suse.de>
17019         PR middle-end/57511
17020         * tree-scalar-evolution.c (instantiate_scev_name): Allow
17021         non-linear SCEVs.
17023 2013-09-02  Richard Biener  <rguenther@suse.de>
17025         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17026         arithmetic to sizetype.
17028 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
17030         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17031         Find auto-increment use both before and after candidate.
17033 2013-09-02  Marek Polacek  <polacek@redhat.com>
17035         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17037 2013-09-01  Jan Hubicka  <jh@suse.cz>
17039         * Makefile.in: Add ipa-profile.o
17040         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17041         * cgraph.c (struct cgraph_propagate_frequency_data,
17042         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17043         ipa-profile.c; replace cgraph_ by ipa_ prefix.
17044         * cgraph.h (cgraph_propagate_frequency): Remove.
17045         * ipa-inline-analysis.c: Include ipa-utils.h;
17046         drop duplicated cfgloop.h.
17047         (inline_update_callee_summaries): Update.
17048         * ipa-profile.c: New file.
17049         * ipa-utils.h (ipa_propagate_frequency): Declare.
17050         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17051         data-streamer.h, value-prof.h.
17052         (symtab_remove_unreachable_nodes): Update profile.
17053         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17054         account_time_size, cmp_counts, dump_histogram,
17055         ipa_profile_generate_summary, ipa_profile_write_summary,
17056         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17057         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17058         Move to ipa-profile.c.
17060 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
17062         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17064 2013-09-01  Jan Hubicka  <jh@suse.cz>
17066         * common.opt (fdevirtualize-speculatively): New function.
17067         * invoke.texi (fdevirtualize-speculatively): Document.
17068         * ipa-devirt.c: Include ipa-inline.h
17069         (likely_target_p): New function.
17070         (ipa_devirt): New function.
17071         (gate_ipa_devirt): New function.
17072         (pass_data_ipa_devirt): New static var.
17073         (pass_ipa_devirt): Likewise.
17074         (make_pass_ipa_devirt): New function.
17075         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17076         (common_handle_option): Disable devirtualization when
17077         value range profiling is available.
17078         * passes.def (pass_ipa_devirt): Add.
17079         * timever.def (TV_IPA_DEVIRT): New timevar.
17080         * tree-pass.h (make_pass_ipa_devirt):
17082 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
17084         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17085         include sanitize(undefined).
17087 2013-08-31  Diego Novillo  <dnovillo@google.com>
17089         * Makefile.in (TREE_CORE_H): Define.
17090         (TREE_H): Use.
17091         (GTFILES): Add tree-core.h.
17092         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17093         size the array.
17094         * tree-core.h: New file.
17095         Move all data structures, enum, typedefs, global
17096         declarations and constants from ...
17097         * tree.h: ... here.
17099 2013-08-31  Jan Hubicka  <jh@suse.cz>
17101         * bulitins.c (expand_builtin): Do not early exit for gcov
17102         instrumented functions.
17104 2013-08-31  Marek Polacek  <polacek@redhat.com>
17106         * ubsan.c: Include tm_p.h.
17108 2013-08-31  Jan Hubicka  <jh@suse.cz>
17110         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17111         warning.
17113         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17114         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17115         * tree-cfg.c (verify_gimple_label): ... here.
17116         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17117         (ipa_merge_profiles): New function.
17118         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17119         (lto_input_function_body): Likewise.
17120         * ipa-utils.h (ipa_merge_profiles): Declare.
17121         * lto-streamer.h (lto_input_function_body): Update prototype.
17122         (emit_label_in_global_context_p): Remove.
17123         * lto-symtab.c: Include ipa-utils.h
17124         (lto_cgraph_replace_node): Use ipa_merge_profiles.
17126 2013-08-31  Jan Hubicka  <jh@suse.cz>
17128         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17130 2013-08-31  Jan Hubicka  <jh@suse.cz>
17132         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17134 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
17136         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17137         "cmp" RTX before signed_comparison_operator check to account
17138         for "code" changes.
17140 2013-08-30  Jan Hubicka  <jh@suse.cz>
17142         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17143         (detect_type_change_1): Rename to ...
17144         (detect_type_change): ... this one; early return on non-polymorphic
17145         types.
17146         (detect_type_change_ssa): Add comp_type parameter; update
17147         use of detect_type_change.
17148         (compute_complex_assign_jump_func): Add param_type parameter;
17149         update use of detect_type_change_ssa.
17150         (compute_complex_ancestor_jump_func): Likewise.
17151         (ipa_get_callee_param_type): New function.
17152         (ipa_compute_jump_functions_for_edge): Compute parameter type;
17153         update calls to the jump function computation functions.
17155 2013-08-30  Teresa Johnson  <tejohnson@google.com>
17156             Steven Bosscher  <steven@gcc.gnu.org>
17158         * cfgrtl.c (fixup_new_cold_bb): New routine.
17159         (commit_edge_insertions): Invoke fixup_partitions.
17160         (find_partition_fixes): New routine.
17161         (fixup_partitions): Ditto.
17162         (verify_hot_cold_block_grouping): Update comments.
17163         (rtl_verify_edges): Invoke find_partition_fixes.
17164         (rtl_verify_bb_pointers): Update comments.
17165         (rtl_verify_bb_layout): Ditto.
17166         * basic-block.h (probably_never_executed_edge_p): Declare.
17167         (fixup_partitions): Ditto.
17168         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17169         * bb-reorder.c (sanitize_hot_paths): New function.
17170         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17171         sanitize_hot_paths.
17172         * predict.c (probably_never_executed_edge_p): New routine.
17173         * cfg.c (check_bb_profile): Add partition insanity warnings.
17175 2013-08-30  Meador Inge  <meadori@codesourcery.com>
17177         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17179 2013-08-30  Marek Polacek  <polacek@redhat.com>
17181         * Makefile.in (ubsan.o): Add.
17182         (c-family/c-ubsan.o): Add.
17183         (builtins.o): Add ubsan.h dependency.
17184         * ubsan.h: New file.
17185         * ubsan.c: New file.
17186         * common.opt: Add -fsanitize=undefined option.
17187         (flag_sanitize): Add variable.
17188         (fsanitize=): Add option.  Add Driver.
17189         (fsanitize=thread): Remove option.
17190         (fsanitize=address): Likewise.
17191         (static-libubsan): New option.
17192         * doc/invoke.texi: Document the new flag and -static-libubsan.
17193         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17194         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17195         * builtin-attrs.def (ATTR_COLD): Define.
17196         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17197         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17198         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17199         * flag-types.h (sanitize_code): New enum.
17200         * opts.c (common_handle_option): Parse command line arguments
17201         of -fsanitize=.  Add -fsanitize=unreachable option.
17202         * varasm.c (get_variable_section): Adjust.
17203         (assemble_noswitch_variable): Likewise.
17204         (assemble_variable): Likewise.
17205         (output_constant_def_contents): Likewise.
17206         (categorize_decl_for_section): Likewise.
17207         (place_block_symbol): Likewise.
17208         (output_object_block): Likewise.
17209         * builtins.def: Likewise.
17210         * toplev.c (compile_file): Likewise.
17211         (process_options): Likewise.
17212         * cppbuiltin.c: Likewise.
17213         * tsan.c (tsan_pass): Likewise.
17214         (tsan_gate): Likewise.
17215         (tsan_gate_O0): Likewise.
17216         * cfgexpand.c (partition_stack_vars): Likewise.
17217         (expand_stack_vars): Likewise.
17218         (defer_stack_allocation): Likewise.
17219         (expand_used_vars): Likewise.
17220         * cfgcleanup.c (old_insns_match_p): Likewise.
17221         * asan.c (asan_finish_file): Likewise.
17222         (asan_instrument): Likewise.
17223         (gate_asan): Likewise.
17224         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17225         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17226         (asan_global_struct): Use pointer_sized_int_node instead
17227         calling build_nonstandard_integer_type.
17228         (initialize_sanitizer_builtins): Likewise.
17229         (asan_finish_file): Likewise.
17230         * gcc.c: Document %{%:function(args):X}.
17231         (static_spec_functions): Add sanitize.
17232         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17233         store funcval != NULL there.
17234         (do_spec_1): Adjust handle_spec_function caller.
17235         (handle_braces): Allow %:function(args) as condition.
17236         (sanitize_spec_function): New function.
17237         (ADD_STATIC_LIBUBSAN_LIBS): Define.
17238         (LIBUBSAN_SPEC): Likewise.
17239         (LIBUBSAN_EARLY_SPEC): Likewise.
17240         (SANITIZER_SPEC): Handle libubsan.
17241         (SANITIZER_EARLY_SPEC): Likewise.
17242         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17243         instead of fsanitize=address.
17244         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17245         instead of fsanitize=address*.
17246         * builtins.c: Include ubsan.h.
17247         (fold_builtin_0): Instrument __builtin_unreachable.
17248         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17249         instead of flag_asan.
17250         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17251         (pointer_sized_int_node): Define.
17252         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17254 2013-08-30  Mike Stump  <mikestump@comcast.net>
17256         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17257         with RE patterns.
17259 2013-08-29  Jan Hubicka  <jh@suse.cz>
17261         * cgraph.c (cgraph_function_body_availability): Handle weakref
17262         correctly.
17263         * passes.def: Remove pass_fixup_cfg.
17264         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17265         track when we need to remove functions.
17266         (gate_ipa_inline): Execute inlining always; add comment why.
17267         (pass_data_ipa_inline): Remove TODO_remove_functions.
17268         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17269         do not produce summaries.
17270         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17271         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17272         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17273         constant pool and vtable.
17275 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
17277         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17278         New arm_neon.h's internal macros to specify 64-bit constants.
17279         Avoid using stdint.h's macros.
17281 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17283         * recog.c (verify_changes): Verify that changes[i].old is non-zero
17284         before applying REG_P.
17286 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
17288         PR tree-optimization/58277
17289         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17290         after seeing too many stmts with vdef in between dombb and current
17291         bb, invalidate everything.
17293 2013-08-30  Richard Biener  <rguenther@suse.de>
17295         * fold-const.c (fold_single_bit_test): Fix overflow test.
17297 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
17299         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17300         and which can live in a register, always retrieve the value on entry.
17301         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17302         passed by invisible reference specially.
17303         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17304         (vt_add_function_parameter): Correctly deal with a parameter passed by
17305         invisible reference.
17307 2013-08-30  Jan Hubicka  <jh@suse.cz>
17309         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17311 2013-08-30  Richard Biener  <rguenther@suse.de>
17313         PR tree-optimization/58228
17314         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17315         allow invariant loads in nested loop vectorization.
17317 2013-08-30  Richard Biener  <rguenther@suse.de>
17319         PR tree-optimization/58223
17320         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17321         (has_anti_or_output_dependence): ... this and adjust to also
17322         look for output dependences.
17323         (mark_nodes_having_upstream_mem_writes): Adjust.
17324         (rdg_flag_uses): Likewise.
17326 2013-08-30  Richard Biener  <rguenther@suse.de>
17328         PR tree-optimization/58010
17329         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17330         assert that we have a loop-closed PHI.
17332 2013-08-29  Jan Hubicka  <jh@suse.cz>
17334         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17335         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17336         * lto-section-in.c (lto_free_function_in_decl_state): New function.
17337         (lto_free_function_in_decl_state_for_node): New function.
17339 2013-08-29  Xinliang David Li  <davidxl@google.com>
17341         * loop-unroll.c (report_unroll_peel): Minor message change.
17342         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17343         Emit alignment peeling message with default -fopt-info.
17344         (vect_loop_versioning): Emit loop version info message.
17345         * tree-vectorizer.c (vectorize_loops): Minor message change.
17346         (execute_vect_slp): Ditto.
17348 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
17350         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17351         of the clone from the DECL_NAME of the original function.
17353 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
17355         * passes.c (register_pass): Add overload.
17356         * tree-pass.h (register_pass): Forward declare it.  Add comment.
17358 2013-08-29  Jan Hubicka  <jh@suse.cz>
17360         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17361         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17362         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17363         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17364         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17365         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17366         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17367         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17369 2013-08-29  Teresa Johnson  <tejohnson@google.com>
17371         * dumpfile.c (dump_loc): Output column number.
17372         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17373         * doc/invoke.texi: Document optall -fopt-info flag.
17374         * profile.c (read_profile_edge_counts): Use new dump framework.
17375         (compute_branch_probabilities): Ditto.
17376         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17377         when pass not in any opt group.
17378         * pass_manager.h (pass_manager::get_pass_profile): New method.
17379         * value-prof.c (check_counter): Use new dump framework.
17380         (check_ic_target): Ditto.
17381         * coverage.c (get_coverage_counts): Ditto.
17382         (coverage_init): Setup new dump framework.
17384 2013-08-29  Richard Biener  <rguenther@suse.de>
17386         PR tree-optimization/58246
17387         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17388         handle the dominance check inside a basic-block.
17390 2013-08-29  Richard Biener  <rguenther@suse.de>
17392         PR middle-end/57287
17393         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17394         of default defs that appear in abnormal PHI nodes.
17396 2013-08-29  Richard Biener  <rguenther@suse.de>
17398         PR tree-optimization/57685
17399         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17400         single-use operands to avoid exponential complexity.
17402 2013-08-28  Dehao Chen  <dehao@google.com>
17404         * ipa-inline.c (edge_badness): Fix integer underflow.
17406 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
17408         * gtm-builtins.def (_ITM_free): Declare leaf.
17410 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17412         PR target/58067
17413         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17414         (*tls_local_dynamic_base_64_largepic): Likewise.
17415         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17416         Remove predicate from call operand.
17417         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17418         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17420 2013-08-28  Jeff Law  <law@redhat.com>
17422         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17423         checks for the number of predecessors and successors allowed.
17424         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17425         which require copying a joiner block if there is a request which
17426         is a subpath that requires no joiner block copying.
17428 2013-08-28  Jan Hubicka  <jh@suse.cz>
17430         * lto-streamer-out.c (DFS_write_tree_body): Drop
17431         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17432         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17433         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17434         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17435         Do not read DECL_ERROR_ISSUED.
17436         (unpack_ts_decl_with_vis_value_fields): Do not read
17437         DECL_DEFER_OUTPUT.
17438         (lto_input_ts_binfo_tree_pointers): Do not read
17439         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17440         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17441         write DECL_ERROR_ISSUED..
17442         (pack_ts_decl_with_vis_value_fields): Do not write
17443         DECL_DEFER_OUTPUT.
17444         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17445         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17446         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17447         * tree.h (tree_decl_common): Update comment.
17448         (DECL_ERROR_ISSUED): Remove.
17450 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17452         PR middle-end/58257
17453         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17455 2013-08-28  Jan Hubicka  <jh@suse.cz>
17457         * builtins.def (free): Declare leaf.
17459 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
17461         * gdbhooks.py: New.
17462         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17463         * configure: Regenerate.
17465 2013-08-27  Martin Jambor  <mjambor@suse.cz>
17467         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17468         (ipa_ancestor_jf_data): Likewise.
17469         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17470         (ipa_get_jf_pass_through_type_preserved): New function.
17471         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17472         (ipa_get_jf_ancestor_type_preserved): New function.
17473         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17474         (ipa_get_jf_ancestor_result): Likewise.
17475         (propagate_vals_accross_pass_through): Use
17476         ipa_get_jf_pass_through_result to do all the value mappings.
17477         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17478         type_preserved flag.
17479         (ipa_set_jf_cst_copy): New function.
17480         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17481         (ipa_set_jf_arith_pass_through): Likewise.
17482         (ipa_set_ancestor_jf): Likewise.
17483         (compute_complex_assign_jump_func): Set type_preserved instead of
17484         punting.
17485         (ipa_compute_jump_functions_for_edge): Likewise.
17486         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17487         (update_jump_functions_after_inlining): Update type_preserved.
17488         Explicitely create jump functions when combining one with pass_through.
17489         (ipa_write_jump_function): Stream the type_preserved flags.
17490         (ipa_read_jump_function): Likewise.
17492 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
17493             Aldy Hernandez  <aldyh@redhat.com>
17495         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17496         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17497         * function.h (struct function): Add has_force_vect_loops and
17498         has_simduid_loops.
17499         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17500         * gimple.c (gimple_build_omp_critical): Add KIND argument and
17501         handle it.
17502         * gimple.def: Update CLAUSES comments.
17503         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17504         (gimple_build_omp_for): Add argument to prototype.
17505         (gimple_omp_for_kind): New.
17506         (gimple_omp_for_set_kind): New.
17507         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17508         GOVD_DATA_SHARE_CLASS.
17509         (enum omp_region_type): Add ORT_SIMD.
17510         (gimple_add_tmp_var): Handle ORT_SIMD.
17511         (gimplify_var_or_parm_decl): Same.
17512         (is_gimple_stmt): Same.
17513         (omp_firstprivatize_variable): Same.
17514         (omp_add_variable): Only use splay_tree_insert if lookup failed.
17515         (omp_notice_variable): Handle ORT_SIMD.
17516         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17517         (omp_check_private): Handle ORT_SIMD.
17518         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17519         OMP_CLAUSE_SAFELEN.
17520         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17521         Handle OMP_CLAUSE_LASTPRIVATE.
17522         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17523         OMP_CLAUSE_SAFELEN.
17524         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17525         (gimplify_expr): Handle OMP_SIMD.
17526         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17527         (expand_GOMP_SIMD_VF): New.
17528         (expand_GOMP_SIMD_LAST_LANE): New.
17529         * internal-fn.def (GOMP_SIMD_LANE): New.
17530         (GOMP_SIMD_VF): New.
17531         (GOMP_SIMD_LAST_LANE): New.
17532         * omp-low.c: Include target.h.
17533         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17534         OMP_CLAUSE_SAFELEN.
17535         (check_omp_nesting_restrictions): Same.
17536         (omp_max_vf): New.
17537         (lower_rec_simd_input_clauses): New.
17538         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17539         OMP_CLAUSE_LINEAR.
17540         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17541         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17542         (expand_omp_build_assign): New.
17543         (expand_omp_for_init_counts): New.
17544         (expand_omp_for_init_vars): New.
17545         (extract_omp_for_update_vars): New.
17546         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17547         and rewrite accordingly.
17548         (expand_omp_simd): New.
17549         (expand_omp_for): Use expand_omp_simd.
17550         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17551         (lower_omp_for): Do not lower the body.
17552         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17553         in their own loops.
17554         * tree-flow.h (find_omp_clause): Remove prototype.
17555         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17556         forcing vectorization of the loop, or if flag_tree_vectorize.
17557         (gate_tree_if_conversion): Similarly.
17558         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17559         gimple_build_omp_for.
17560         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17561         * tree-parloops (create_parallel_loop): Pass kind argument to
17562         gimple_build_omp_for.
17563         * tree-pretty-print.c (dump_omp_clause): Add cases for
17564         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17565         OMP_CLAUSE__SIMDUID_.
17566         (dump_generic_node): Handle OMP_SIMD.
17567         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17568         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17569         unroll OMP_SIMD loops here.
17570         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17571         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17572         loop->safelen.
17573         (vect_analyze_data_refs): Handle simd loops.
17574         * tree-vect-loop.c (vectorizable_live_operation): Handle
17575         IFN_GOMP_SIMD*.
17576         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17577         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17578         (vectorizable_load): Same.
17579         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17580         (struct simduid_to_vf): New.
17581         (simduid_to_vf::hash): New.
17582         (simduid_to-vf::equal): New.
17583         (struct simd_array_to_simduid): New.
17584         (simd_array_to_simduid::hash): New.
17585         (simd_array_to_simduid::equal): New.
17586         (adjust_simduid_builtins): New.
17587         (struct note_simd_array_uses_struct): New.
17588         (note_simd_array_uses_cb): New.
17589         (note_simd_array_uses): New.
17590         (vectorize_loops): Handle simd hints and adjust simd builtins
17591         accordingly.
17592         * tree-vectorizer.h (struct _stmt_vec_info): Add
17593         simd_lane_access_p field.
17594         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17595         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17596         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17597         (omp_clause_code_name): Same.
17598         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17599         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17600         * tree.def (OMP_SIMD): New entry.
17601         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17602         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17603         (OMP_CLAUSE_DECL): Adjust range for new clauses.
17604         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17605         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17606         (OMP_CLAUSE_LINEAR_STEP): New.
17607         (OMP_CLAUSE_SAFELEN_EXPR): New.
17608         (OMP_CLAUSE__SIMDUID__DECL): New.
17609         (find_omp_clause): New prototype.
17611 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
17613         * config/i386/driver-i386.c (host_detect_local_cpu): Update
17614         Haswell processor detection.
17616 2013-08-27  Christian Widmer  <shadow@umbrox.de>
17618         PR target/57927
17619         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17620         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
17621         AVX2 capable processors.
17623 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
17625         * config/aarch64/arm_neon.h: Replace all inline asm implementations
17626         of vget_low_* with implementations in terms of other intrinsics.
17628 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
17630         PR middle-end/57219
17631         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17632         values to -1, 0 and 1.
17634 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
17636         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17637         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17638         (<optab><mode>3_insn): Remove.
17639         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17640         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17641         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17642         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17643         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17644         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17645         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17646         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17647         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17648         (ror<mode>3_insn): Likewise.
17649         * config/aarch64/predicates.md (aarch64_simd_register): New.
17651 2013-08-27  Richard Biener  <rguenther@suse.de>
17653         PR tree-optimization/57521
17654         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17655         one edge is non-critical.
17656         (find_phi_replacement_condition): Make sure to use a non-critical
17657         edge.  Cleanup and remove old bug workarounds.
17658         (bb_postdominates_preds): Remove.
17659         (if_convertible_loop_p_1): Do not compute post-dominators.
17660         (combine_blocks): Do not free post-dominators.
17661         (main_tree_if_conversion): Likewise.
17662         (pass_data_if_conversion): Add TODO_verify_ssa.
17664 2013-08-27  DJ Delorie  <dj@redhat.com>
17666         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
17668 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
17670         * function.c (assign_parm_find_data_types): Set passed_mode and
17671         nominal_mode to the TYPE_MODE of nominal_type for the built
17672         pointer type in case of the struct-pass-by-reference.
17674 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17676         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17677         (UINT16_TYPE): Change default to "unsigned int".
17679         * config/avr/avr.opt (mfract-convert-truncate): New option.
17680         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17681         is set, round negative fractional integers according to n1169
17682         when converting to integer types.
17684 2013-08-26  Jan Hubicka  <jh@suse.cz>
17686         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17687         methods can not be called indirectly when their address is not taken.
17689 2013-08-26  Jan Hubicka  <jh@suse.cz>
17691         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17692         ctor_for_folding.
17694 2013-08-26  Jan Hubicka  <jh@suse.cz>
17696         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17697         can be unshared.
17699 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17701         * reload.c (find_valid_class): Allow classes that do not include
17702         FIRST_PSEUDO_REGISTER - 1.
17704 2013-08-26  Jan Hubicka  <jh@suse.cz>
17706         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17707         fix edge count/frequency when speculation failed; fix type check
17708         for the direct call.
17710 2013-08-26  Jan Hubicka  <jh@suse.cz>
17712         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17714 2013-08-26  Jan Hubicka  <jh@suse.cz>
17716         * ipa-inline-transform.c (inline_transform): Be ready for basic block
17717         to be changed by edge redirection.
17719 2013-08-26  Jan Hubicka  <jh@suse.cz>
17721         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17722         formating; add sanity check.
17723         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17724         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17725         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17726         (resolve_noninline_speculation): Update callee keys, too.
17728 2013-08-26  Jan Hubicka  <jh@suse.cz>
17730         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17731         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17733 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17735         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17736         into proper place.
17738 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
17740         * config/i386/i386.c (ix86_debug_options): Remove prototype.
17741         (x86_64_elf_select_section): Ditto.
17742         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17743         arguments.
17744         (ix86_pass_by_reference): Ditto.
17745         (output_set_got): Ditto.
17746         (ix86_unary_operator_ok): Ditto.
17747         (ix86_expand_builtin): Ditto.
17749 2013-08-23  Jan Hubicka  <jh@suse.cz>
17751         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
17753 2013-08-23  Jan Hubicka  <jh@suse.cz>
17755         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
17756         (tree_decl_with_vis): Add FINAL field.
17758 2013-08-23  Jeff Law  <law@redhat.com>
17760         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
17761         the debugging dump when the expression is fully redundant.
17763 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17765         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
17766         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
17767         * pretty-print.c (pp_formatted_text_data): Likewise.
17768         (pp_write_text_to_stream): Likewise.
17769         (pp_write_text_as_dot_label_to_stream): Likewise.
17770         (pp_append_r): Likewise.
17771         (pp_format): Likewise.
17772         (pp_flush): Likewise.
17773         (pp_clear_output_area): Likewise.
17774         (pp_append_text): Likewise.
17775         (pp_formatted_text): Likewise.
17776         (pp_remaining_character_count_for_line): Likewise.
17777         (pp_newline): Likewise.
17778         (pp_character): Likewise.
17779         (output_buffer::~output_buffer): Define.
17780         (pretty_printer::~pretty_printer): Destruct output buffer.
17781         * pretty-print.h (output_buffer::~output_buffer): Declare.
17782         (pretty_printer::~pretty_printer): Declare virtual.
17784 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
17786         PR other/57324
17787         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
17788         HOST_WIDE_INT_M1U): New macros.
17789         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
17790         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
17791         unsigned -1 for lshift.
17792         * cse.c (cse_insn): Likewise.
17793         * double-int.c (rshift_double, lshift_double): Likewise.
17794         * builtins.c (fold_builtin_bitop): Likewise.
17795         * combine.c (force_to_mode): Likewise.
17796         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
17797         * simplify-rtx.c (simplify_const_unary_operation,
17798         simplify_const_binary_operation): Likewise.
17799         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
17800         check_va_list_escapes): Likewise.
17801         * rtlanal.c (nonzero_bits1): Likewise.
17802         * expmed.c (expand_smod_pow2): Likewise.
17803         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
17805 2013-08-23  Jan Hubicka  <jh@suse.cz>
17807         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
17808         as having address taken.
17810 2013-08-23  Jan Hubicka  <jh@suse.cz>
17812         * ipa-utils.h (method_class_type): Declare.
17813         * ipa-devirt.c (method_class_type): Export.
17815         * cgraphunit.c (analyze_functions): Do basic devirtualization;
17816         do not walk base classes of anonymous types.
17818 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
17820         PR rtl-optimization/58220
17821         PR regression/58221
17822         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
17823         handle SEQUENCE insns properly.
17825 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17827         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
17828         definition.
17829         (pp_newline_and_indent): Likewise.
17830         (pp_separate_with): Likewise.
17831         * pretty-print.c (pp_newline_and_flush): Define.
17832         (pp_newline_and_indent): Likewise.
17833         (pp_separate_with): Likewise.
17835 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17837         PR target/58218
17838         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
17839         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
17841 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
17843         * config/i386/predicates.md (ext_sse_reg_operand): New.
17844         * config/i386/i386.md (*movti_internal): Use
17845         predicate to determine if EVEX is needed.
17846         (*movsi_internal): Ditto.
17847         (*movdf_internal): Ditto.
17848         (*movsf_internal): Ditto.
17849         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
17851 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17853         PR tree-optimization/58209
17854         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
17855         (find_tail_calls): Give up for pointer result types if m is non-NULL.
17856         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
17857         emit POINTER_PLUS_EXPR.
17858         (create_tailcall_accumulator): For pointer result type accumulate in
17859         sizetype type.
17861 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
17863         * configure.ac: Add backslashes missing from the last change.
17864         * configure: Regenerate.
17866 2013-08-22  Jan Hubicka  <jh@susue.cz>
17868         * ipa.c (function_and_variable_visibility): First remember function
17869         was global and then make it local.
17871 2013-08-22  Julian Brown  <julian@codesourcery.com>
17873         * configure.ac: Add aarch64 to list of arches which use "nop" in
17874         debug_line test.
17875         * configure: Regenerate.
17877 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17879         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
17880         gnu_libc_has_function.
17881         * config/s390/tpf.h: Likewise.
17883 2013-08-22  Jan Hubicka  <jh@susue.cz>
17885         * timevar.c (validate_phases): Add cast.
17887 2013-08-22  Jan Hubicka  <jh@susue.cz>
17889         * timevar.c (validate_phases): Use size_t for memory.
17890         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
17892 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17894         * pretty-print.h (output_buffer::output_buffer): Declare.
17895         (pretty_printer::pretty_printer): Likewise.
17896         (pp_construct): Remove.
17897         * pretty-print.c (output_buffer::output_buffer): Define.
17898         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
17899         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
17900         (print_gimple_expr): Likewise.
17901         (print_gimple_seq): Likewise.
17902         (gimple_dump_bb): Likewise.
17903         * sched-vis.c (dump_value_slim): Likewise.
17904         (dump_insn_slim): Likewise.
17905         (dump_rtl_slim): Likewise.
17906         (str_pattern_slim): Likewise.
17907         * tree-mudflap.c (mf_varname_tree): Likewise.
17908         * graph.c (print_graph_cfg): Likewise.
17909         (start_graph_dump): Likewise.
17910         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
17911         placement-new.
17912         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
17913         pretty printer initialization.
17914         * coretypes.h (diagnostic_context): Remove superflous type alias
17915         declaration.
17916         (pretty_printer): Likewise.  Declare directly as a class.
17917         (pretty_print_info): Remove declaration as class.
17918         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
17919         and pp_clear_output_area.
17920         (asan_add_global): Likewise.
17922 2013-08-22  Jan Hubicka  <jh@suse.cz>
17924         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
17925         * ipa-utils.h (update_type_inheritance_graph): Declare.
17926         (possible_polymorphic_call_target_p): Declare.
17927         (possible_polymorphic_call_target_p): New.
17928         * ipa-devirt.c: Update toplevel comments.
17929         (cached_polymorphic_call_targets): Move up.
17930         (odr_type_d): Move ID down.
17931         (polymorphic_type_binfo_p): Update comment.
17932         (odr_hasher::remove): Likewise;
17933         (get_odr_type): Set anonymous_namespace.
17934         (dump_odr_type): Dump it.
17935         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
17936         (maybe_record_node): Record node in cached_polymorphic_call_targets.
17937         (record_binfo): Add comment.
17938         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
17939         built.
17940         (devirt_node_removal_hook): Do not iCE when cache is freed.
17941         (possible_polymorphic_call_target_p): New predicate.
17942         (update_type_inheritance_graph): New function.
17944 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17945             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17946             Sergey Lega  <sergey.s.lega@intel.com>
17947             Anna Tikhonova  <anna.tikhonova@intel.com>
17948             Ilya Tocar  <ilya.tocar@intel.com>
17949             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17950             Ilya Verbin  <ilya.verbin@intel.com>
17951             Kirill Yukhin  <kirill.yukhin@intel.com>
17952             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17954         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
17955         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
17956         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
17957         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
17958         (OPTION_MASK_ISA_AVX2_UNSET): Update.
17959         (OPTION_MASK_ISA_AVX512F_UNSET): New.
17960         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
17961         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
17962         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
17963         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
17964         OPT_mavx512pf, OPT_mavx512er cases.
17965         * config/i386/constraints.md (v): New constraint.
17966         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
17967         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
17968         (bit_AVX512CD): New.
17969         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17970         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
17971         * config/i386/i386-c.c (ix86_target_macros_internal):
17972         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
17973         __AVX512PF__.
17974         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
17975         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
17976         * config/i386/i386.c (regclass_map, dbx_register_map)
17977         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
17978         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
17979         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
17980         -mavx512pf options.
17981         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
17982         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
17983         -mavx512pf options.  Fix formatting.
17984         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
17985         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
17986         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
17987         -mavx512cd, -mavx512pf options.
17988         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
17989         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
17990         (ix86_preferred_output_reload_class): Replace SSE_REGS with
17991         ALL_SSE_REGS.
17992         (ix86_hard_regno_mode_ok): Support 512-bit registers.
17993         (ix86_set_reg_reg_cost): Ditto.
17994         (x86_order_regs_for_local_alloc): Ditto.
17995         (MAX_VECT_LEN): Extend to 64-byte.
17996         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
17997         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
17998         (TARGET_AVX512ER, TARGET_AVX512CD): New.
17999         (BIGGEST_ALIGNMENT): Extend to 512-bits.
18000         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18001         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18002         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18003         (SSE_REG_MODE_P): Support new modes.
18004         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18005         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18006         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18007         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18008         (REG_CLASS_CONTENTS): Add new registers.
18009         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18010         (EXT_REX_SSE_REGNO_P): New.
18011         (HI_REGISTER_NAMES): Add new registers.
18012         * config/i386/i386.md: Define constants for new registers.
18013         (mode): Add new 512-bit modes.
18014         (prefix): Support evex prefix.
18015         (isa): Support avx512f, noavx512f, fma_avx512f.
18016         (ssemodesuffix): Add new 512-bit modes.
18017         (movxi): New.
18018         (*movxi_internal_avx512f): Ditto.
18019         (*movdi_internal): Replace constraint "x" with the new constraint "v".
18020         Support MODE_XI.
18021         (*movsi_internal): Likewise.
18022         (*movdf_internal): Likewise.
18023         (*movsf_internal): Likewise.
18024         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18025         (<code><mode>3): Likewise.
18026         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18027         New.
18028         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18029         with the new constraint "v".
18030         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18031         modes.
18032         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18033         with the new constraint "v".
18034         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18035         (<sse2>_storedqu<avxsizesuffix>): Likewise.
18036         (*<plusminus_insn><mode>3): Likewise.
18037         (<sse>_vm<plusminus_insn><mode>3): Likewise.
18038         (*mul<mode>3): Likewise.
18039         (<sse>_vmmul<mode>3): Likewise.
18040         (<sse>_div<mode>3): Likewise.
18041         (<sse>_vmdiv<mode>3): Likewise.
18042         (<sse>_sqrt<mode>2): Likewise.
18043         (<sse>_vmsqrt<mode>2): Likewise.
18044         (*<code><mode>3_finite): Likewise.
18045         (*<code><mode>3) <smaxmin>: Likewise.
18046         (<sse>_vm<code><mode>3): Likewise.
18047         (*<code><mode>3) <any_logic>: Likewise.
18048         (*fma_fmadd_<mode>): Likewise.
18049         (*fma_fmsub_<mode>): Likewise.
18050         (*fma_fnmadd_<mode>): Likewise.
18051         (*fma_fnmsub_<mode>): Likewise.
18052         (*fma_fmaddsub_<mode>): Likewise.
18053         (*fma_fmsubadd_<mode>): Likewise.
18054         (*fmai_fmadd_<mode>): Likewise.
18055         (*fmai_fmsub_<mode>): Likewise.
18056         (*fmai_fnmadd_<mode>): Likewise.
18057         (*fmai_fnmsub_<mode>): Likewise.
18058         (sse_cvtsi2ss): Likewise.
18059         (sse_cvtsi2ssq): Likewise.
18060         (sse_cvtss2si): Likewise.
18061         (sse_cvtss2si_2): Likewise.
18062         (sse_cvtss2siq): Likewise.
18063         (sse_cvtss2siq_2): Likewise.
18064         (sse_cvttss2si): Likewise.
18065         (sse_cvtss2siq_2): Likewise.
18066         (float<sseintvecmodelower><mode>2): Likewise.
18067         (sse2_cvtsd2si_2): Likewise.
18068         (sse2_cvtsd2siq_2): Likewise.
18069         (*<plusminus_insn><mode>3): Likewise.
18070         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18071         (*<sse4_1_avx2>_mul<mode>3): Likewise.
18072         (ashr<mode>3): Likewise.
18073         (<shift_insn><mode>3): Likewise.
18074         (avx2_<code><mode>3): Likewise.
18075         (*avx2_<code><mode>3): Likewise.
18076         (*andnot<mode>3): Likewise.
18077         (*<code><mode>3) <any_logic>: Likewise.
18078         (abs<mode>2): Likewise.
18079         (avx2_permvar<mode>): Likewise.
18080         (avx2_perm<mode>_1): Likewise.
18081         (*avx_vpermilp<mode>): Likewise.
18082         (avx_vpermilvar<mode>3): Likewise.
18083         (avx2_ashrv<mode>): Likewise.
18084         (avx2_<shift_insn>v<mode>): Likewise.
18085         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18086         -mavx512cd.
18087         * doc/rtl.texi: Document XImode.
18089 2013-08-21  Jeff Law  <law@redhat.com>
18091         * tree-flow.h (register_jump_thread): Pass vector of edges
18092         instead of each important edge.
18093         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18094         thread path into a vector and pass that to register_jump_thread.
18095         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18096         passed in edge vector to the current 3-edge form.
18098         Revert:
18099         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18101         * dce.c (fini_dce): Call df_analyze again just in case
18102         delete_unmarked_insns removed anything.
18104 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
18106         * reload.h (struct reg_equivs): Rename to ..
18107         (struct reg_equivs_s): .. this.
18109 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
18111         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18113 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18115         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18117 2013-08-21  Jeff Law  <law@redhat.com>
18119         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18120         simplify assignments too.  If the RHS collapses to a singleton
18121         range, then return the value for the range.
18123 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18125         * config/i386/sse.md (V16): Rename to...
18126         (VMOVE): this.
18127         (mov<mode>): Update iterator name.
18128         (*mov<mode>_internal): Ditto.
18129         (push<mode>1): Ditto.
18130         (movmisalign<mode>): Ditto.
18132 2013-08-20  Jan Hubicka  <jh@suse.cz>
18134         PR bootstrap/58186
18135         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18136         entry for direct edges.
18137         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18139 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18141         Revert my last two changes, r201865 and r201864:
18143         Revert r201865:
18144         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18146         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18147         instances can own GC refs.
18149         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18150         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18151         (gcc::context::gt_pch_nx): Likewise.
18152         (gcc::context::gt_pch_nx):  Likewise.
18153         * ggc.h (gt_ggc_mx <T>): New.
18154         (gt_pch_nx_with_op <T>): New.
18155         (gt_pch_nx <T>): New.
18156         * passes.c (opt_pass::gt_ggc_mx): New.
18157         (opt_pass::gt_pch_nx): New.
18158         (opt_pass::gt_pch_nx_with_op): New.
18159         (pass_manager::gt_ggc_mx): New.
18160         (pass_manager::gt_pch_nx): New.
18161         (pass_manager::gt_pch_nx_with_op): New.
18162         (pass_manager::operator new): Use
18163         ggc_internal_cleared_alloc_stat rather than xcalloc.
18164         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18165         (pass_manager::gt_ggc_mx): New.
18166         (pass_manager::gt_pch_nx): New.
18167         (pass_manager::gt_pch_nx_with_op): New.
18168         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18169         (opt_pass::operator new): New.
18170         (opt_pass::gt_ggc_mx): New.
18171         (opt_pass::gt_pch_nx): New.
18172         (opt_pass::gt_pch_nx_with_op): New.
18174         Revert r201864:
18175         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18177         * Makefile.in (GTFILES): Add context.h.
18178         * context.c (gcc::context::operator new): New.
18179         (gcc::context::gt_ggc_mx): New.
18180         (gcc::context::gt_pch_nx): New.
18181         (gcc::context::gt_pch_nx): New.
18182         * context.h (gcc::context): Add GTY((user)) marking.
18183         (gcc::context::operator new): New.
18184         (gcc::context::gt_ggc_mx): New.
18185         (gcc::context::gt_pch_nx): New.
18186         (gcc::context::gt_pch_nx): New.
18187         (g): Add GTY marking.
18188         (gt_ggc_mx (gcc::context *)): New.
18189         (gt_pch_nx (gcc::context *)): New.
18190         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18191         void *cookie)): New.
18192         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18194 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18196         * dce.c (fini_dce): Call df_analyze again just in case
18197         delete_unmarked_insns removed anything.
18199 2013-08-20  Teresa Johnson  <tejohnson@google.com>
18201         PR rtl-optimizations/57451
18202         * final.c (reemit_insn_block_notes): Prevent lexical blocks
18203         from crossing split section boundaries.
18205 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
18207         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18208         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18209         with MULTLIB_DEFAULTS.
18211 2013-08-20  Nick Clifton  <nickc@redhat.com>
18213         * target.def (narrow_volatile_bitfield): Note that the default
18214         value is false, not !TARGET_STRICT_ALIGN.
18215         * doc/tm.texi: Regenerate.
18217 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
18219         Fix LIB_SPEC for systems without libpthread.
18221         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18222         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18223         for Android.
18224         * config/i386/linux-common.h: Likewise.
18225         * config/mips/linux-common.h: Likewise.
18227 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18229         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18230         checks.
18232 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18234         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18235         instances can own GC refs.
18237         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18238         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18239         (gcc::context::gt_pch_nx): Likewise.
18240         (gcc::context::gt_pch_nx):  Likewise.
18241         * ggc.h (gt_ggc_mx <T>): New.
18242         (gt_pch_nx_with_op <T>): New.
18243         (gt_pch_nx <T>): New.
18244         * passes.c (opt_pass::gt_ggc_mx): New.
18245         (opt_pass::gt_pch_nx): New.
18246         (opt_pass::gt_pch_nx_with_op): New.
18247         (pass_manager::gt_ggc_mx): New.
18248         (pass_manager::gt_pch_nx): New.
18249         (pass_manager::gt_pch_nx_with_op): New.
18250         (pass_manager::operator new): Use
18251         ggc_internal_cleared_alloc_stat rather than xcalloc.
18252         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18253         (pass_manager::gt_ggc_mx): New.
18254         (pass_manager::gt_pch_nx): New.
18255         (pass_manager::gt_pch_nx_with_op): New.
18256         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18257         (opt_pass::operator new): New.
18258         (opt_pass::gt_ggc_mx): New.
18259         (opt_pass::gt_pch_nx): New.
18260         (opt_pass::gt_pch_nx_with_op): New.
18262 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18264         * Makefile.in (GTFILES): Add context.h.
18265         * context.c (gcc::context::operator new): New.
18266         (gcc::context::gt_ggc_mx): New.
18267         (gcc::context::gt_pch_nx): New.
18268         (gcc::context::gt_pch_nx): New.
18269         * context.h (gcc::context): Add GTY((user)) marking.
18270         (gcc::context::operator new): New.
18271         (gcc::context::gt_ggc_mx): New.
18272         (gcc::context::gt_pch_nx): New.
18273         (gcc::context::gt_pch_nx): New.
18274         (g): Add GTY marking.
18275         (gt_ggc_mx (gcc::context *)): New.
18276         (gt_pch_nx (gcc::context *)): New.
18277         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18278         void *cookie)): New.
18279         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18281 2013-08-20  Alan Modra  <amodra@gmail.com>
18283         PR target/57865
18284         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18285         (rs6000_emit_epilogue): Likewise.
18287 2013-08-19  Dehao Chen  <dehao@google.com>
18289         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18291 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
18292             Jakub Jelinek  <jakub@redhat.com>
18294         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18295         (BUILT_IN_FABSD64): Likewise.
18296         (BUILT_IN_FABSD128): Likewise.
18297         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18298         (fold_builtin_1): Likewise.
18299         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18300         destination and source operands.
18301         (*abstd2_fpr): Likewise.
18302         (*nabstd2_fpr): Likewise.
18304 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
18306         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18307         JUMP_P and INSN_P.
18309 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
18311         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18312         incomplete.
18314 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18316         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18317         * builtins.c (default_libc_has_function): New.
18318         (gnu_libc_has_function): Ditto.
18319         (no_c99_libc_has_function): Ditto.
18320         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18321         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18322         (fold_builtin_sincos): Likewise.
18323         (fold_builtin_cexp): Likewise.
18324         * builtins.def (DEF_C94_BUILTIN): Likewise.
18325         (DEF_C99_BUILTIN): Likewise.
18326         (DEF_C99_C90RES_BUILTIN): Likewise.
18327         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18328         definitions to using this define.
18329         * config/darwin-protos.h (darwin_libc_has_function): New.
18330         * config/darwin.c (darwin_libc_has_function): Ditto.
18331         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18332         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18333         * config/darwin.h: Ditto.
18334         * config/elfos.h: Ditto.
18335         * config/freebsd.h: Ditto.
18336         * config/i386/cygming.h: Ditto.
18337         * config/i386/djgpp.h: Ditto.
18338         * config/i386/i386-interix.h: Ditto.
18339         * config/microblaze/microblaze.h: Ditto.
18340         * config/mmix/mmix.h: Ditto.
18341         * config/gnu-user.h: Ditto.
18342         * config/ia64/hpux.h: Ditto.
18343         * config/pa/pa-hpux.h: Ditto.
18344         * config/pdp11/pdp11.h: Ditto.
18345         * config/picochip/picochip.h: Ditto.
18346         * config/linux.h: Ditto.
18347         * config/netbsd.h: Ditto.
18348         * config/openbsd.h: Ditto.
18349         * config/rs6000/aix43.h: Ditto.
18350         * config/rs6000/aix51.h: Ditto.
18351         * config/rs6000/aix52.h: Ditto.
18352         * config/rs6000/aix53.h: Ditto.
18353         * config/rs6000/aix61.h: Ditto.
18354         * config/rs6000/darwin.h: Ditto.
18355         * config/rs6000/linux.h: Ditto.
18356         * config/rs6000/linux64.h: Ditto.
18357         * config/s390/tpf.h: Ditto.
18358         * config/sol2-10.h: Ditto.
18359         * config/sol2.h: Ditto.
18360         * config/vms/vms.h: Ditto.
18361         * config/vxworks.h: Ditto.
18362         * config/linux-android.c (linux_android_libc_has_function):
18363         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18364         * config/linux-protos.h (linux_android_libc_has_function):
18365         New declaration.
18366         * config/i386/i386.c (ix86_libc_has_function): New.
18367         * config/i386/i386-protos.h
18368         (ix86_libc_has_function): New declaration.
18369         * config/i386/i386.md
18370         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18371         ("isinf<mode>2): Likewise.
18372         * convert.c (convert_to_integer): Using new target hook
18373         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18374         TARGET_C99_FUNCTIONS.
18375         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18376         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18377         * coretypes.h (function_class): New enum for different
18378         classes of functions.
18379         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18380         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18381         (TARGET_HAS_SINCOS): Likewise.
18382         (TARGET_LIBC_HAS_FUNCTION): New.
18383         * doc/tm.texi: Regenerated.
18384         * targhooks.h (default_libc_has_function): New declaration.
18385         (no_c99_libc_has_function): Ditto.
18386         (gnu_libc_has_function): Ditto.
18387         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18388         and TARGET_HAS_SINCOS.
18390 2013-08-18  Jan Hubicka  <jh@suse.cz>
18392         * Makeifle-in (ipa-devirt.o): New.
18393         (GTFILES): Add ipa-utils.h and ipa-devirt.c
18394         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18395         (analyze_functions): Look into possible targets of polymorphic call.
18396         * dumpfile.c (dump_files): Add type-inheritance dump.
18397         * dumpfile.h (TDI_inheritance): New.
18398         * ipa-devirt.c: New file.
18399         * ipa-utils.h (odr_type_d): Forward declare.
18400         (odr_type): New type.
18401         (build_type_inheritance_graph): Declare.
18402         (possible_polymorphic_call_targets): Declare and introduce inline
18403         variant when only edge is pased.
18404         (dump_possible_polymorphic_call_targets): Likewise.
18405         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18406         * tree.c (type_in_anonymous_namespace_p): Break out from ...
18407         (types_same_for_odr): ... here.
18408         * tree.h (type_in_anonymous_namespace_p): Declare.
18410 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
18412         PR tree-optimization/58006
18413         * tree-parloops.c (take_address_of): Don't ICE if get_name
18414         returns NULL.
18415         (eliminate_local_variables_stmt): Remove clobber stmts.
18417 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
18419         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18420         error message is issued for an alias to undefined symbol.
18422 2013-08-18  Jan Hubicka  <jh@suse.cz>
18424         * cgraph.c (cgraph_create_indirect_edge): Discover
18425         polymorphic calls and record basic info into indirect_info.
18426         * gimple-fold.c (gimple_fold_call): When doing BINFO based
18427         devirtualization, ignore objc function calls.
18428         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18429         call with no parm index info.
18430         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18431         * tree.c (virtual_method_call_p): New function.
18432         * tree.h (virtual_method_call_p): Declare.
18434 2013-08-16  Jan Hubicka  <jh@suse.cz>
18436         PR middle-end/58179
18437         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18439 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
18441         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18442         attribute.
18444 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18446         * gengtype.c (type_for_name): Add special-case support for
18447         locating types within the "gcc::" namespace.
18448         (open_base_files): Emit a "using namespace gcc" directive.
18450 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
18452         PR target/58160
18453         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18454         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18456         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18457         array instead of each individual operand as a separate argument.
18458         (emit_fusion_gpr_load): Likewise.
18459         (expand_fusion_gpr_load): Add new function declaration.
18461         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18462         signature to have the operands passed as an array, instead of as
18463         separate arguments.  Allow ZERO_EXTEND to be in the memory
18464         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
18465         depend on the register live/dead flags when peepholes are run.
18466         (expand_fusion_gpr_load): New function to be called from the
18467         peephole2 pass, to change the register that addis sets to be the
18468         target register.
18469         (emit_fusion_gpr_load): Change the calling signature to have the
18470         operands passed as an array, instead of as separate arguments.
18471         Allow ZERO_EXTEND to be in the memory address, and also
18472         SIGN_EXTEND if -mpower8-fusion-sign.
18474         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18475         unspec enumeration.
18476         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18477         adjust the register addis loads up in the peephole2 pass.  Do not
18478         depend on the register live/dead state when the peephole pass is done.
18480 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18482         * gengtype.c (create_user_defined_type): Ensure that the kind
18483         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18484         declaration is seen before the GTY((user)) marking.
18486 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18488         PR target/58105
18489         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18491 2013-08-16  Jan Hubicka  <jh@suse.cz>
18493         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18494         arugment expected_type.
18495         (gimple_fold_call): Use it.
18496         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18497         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18498         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18499         (try_make_edge_direct_virtual_call): Likewise.
18500         * tree.c (obj_type_ref_class): New.
18501         * tree.h (obj_type_ref_class): Use it.
18503 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18505         * sched-vis.c (rtl_slim_pp_initialized): Remove.
18506         (rtl_slim_pp): Likewise.
18507         (init_rtl_slim_pretty_print): Likewise.
18508         (dump_value_slim):  Don't call it.  Use local pretty printer.
18509         (dump_insn_slim): Likewise.
18510         (dump_rtl_slim): Likewise.
18511         (str_pattern_slim): Likewise.
18512         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18513         Simplify.
18515 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
18517         PR tree-optimization/58164
18518         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18519         walk gimple_goto_dest of GIMPLE_GOTO.
18521         PR tree-optimization/58165
18522         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18523         bi_call must be the last stmt in a bb, don't split_block, instead
18524         use fallthru edge from it and give up if there is none.
18525         Release conds vector when returning early.
18527 2013-08-14  Xinliang David Li  <davidxl@google.com>
18529         * config/i386/i386.c (ix86_option_override_internal):
18530         Remove unused variable and field.
18532 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18534         PR target/57949
18535         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18536         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18537         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18538         and Linux, correct BLKmode alignment when 128-bit alignment is
18539         required and compatibility flag is not set.
18540         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18541         for zero-size arguments when compatibility flag is not set.
18543 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18545         PR tree-optimization/58145
18546         * tree-sra.c (build_ref_for_offset): If prev_base has
18547         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18549 2013-08-14  Xinliang David Li  <davidxl@google.com>
18551         * config/i386/i386.c (ix86_option_override_internal):
18552         Fix uninitialized variable error.
18554 2013-08-14  Xinliang David Li  <davidxl@google.com>
18556         * config/i386/i386.opt: Define two new options.
18557         * config/i386/x86-tune.def: Add arch selector field in macros.
18558         * config/i386/i386.h: Adjust macro definition.
18559         * config/i386/i386.c (ix86_option_override_internal):
18560         Refactor the code.
18561         (parse_mtune_ctrl_str): New function.
18562         (set_ix86_tune_features): New function.
18563         (ix86_function_specific_restore): Call the new helper function.
18565 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
18567         PR rtl-optimization/57662
18568         * sel-sched.c (code_motion_process_successors): When the current insn
18569         is removed after the recursive traversal, break from the loop.
18570         Add comments and debug printouts.
18572 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18573             Alexandre Oliva  <aoliva@redhat.com>
18575         PR target/58067
18576         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18577         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18578         there also UNSPEC_PLTOFF.
18580 2013-08-14  Marek Polacek  <polacek@redhat.com>
18582         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18583         NUM_CONDITIONS bit positions.
18585 2013-08-13  Cary Coutant  <ccoutant@google.com>
18587         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18588         (attr_checksum): Hash vector contents instead of pointer.
18589         (attr_checksum_ordered): Likewise.
18591 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
18593         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18594         when Pmode != word_mode.  Add length_address attribute.
18595         (sse3_monitor_<mode>): Merge from sse3_monitor and
18596         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
18597         Pmode != word_mode.  Update insn length attribute.
18598         * config/i386/i386.c (ix86_option_override_internal): Update
18599         ix86_gen_monitor selection for merged sse3_monitor insn.
18601 2013-08-13  Julian Brown  <julian@codesourcery.com>
18603         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18604         perform invalid legitimization on greater-than-word-size modes for
18605         TARGET_E500_DOUBLE.
18607 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18609         * ira.c (setup_class_translate_array): Use aclass instead of cl
18610         for classes not fully covered by allocno classes.
18612 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
18614         PR tree-optimization/57661
18615         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18616         * tree-inline.c (tree_function_versioning): Initialize it.
18617         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18618         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18619         that is not being copied.
18621         PR sanitizer/56417
18622         * asan.c (instrument_strlen_call): Fix typo in comment.
18623         Use char * type even for the lhs of POINTER_PLUS_EXPR.
18625 2013-08-13  Steve Ellcey  <sellcey@mips.com>
18627         * config/mips/mips.md (prefetch): Use lw instead of ld on
18628         loongson in 32bit mode.
18630 2013-08-13  Nick Clifton  <nickc@redhat.com>
18632         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18634 2013-08-13  Jan Hubicka  <jh@suse.cz>
18636         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18637         introduced edge; fix typo in sanity check.
18638         (cgraph_resolve_speculation): Export; improve diagnostic.
18639         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18640         speculation at type mismatch.
18641         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18642         (cgraph_resolve_speculation): Declare.
18643         (symtab_can_be_discarded): New function.
18644         * value-prof.c (gimple_ic_transform): Remove actual transform code.
18645         * ipa-inline-transform.c (speculation_removed): New global var.
18646         (clone_inlined_nodes): See if speculation can be removed.
18647         (inline_call): If speculations was removed, we growths may not match.
18648         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18649         (speculation_useful_p): New function.
18650         (resolve_noninline_speculation): New function.
18651         (inline_small_functions): Resolve useless speculations.
18652         * ipa-inline.h (speculation_useful_p): Declare
18653         * ipa.c (can_replace_by_local_alias): Simplify.
18654         (ipa_profile): Produce speculative calls in non-lto, too;
18655         add simple cost model; produce local aliases.
18657 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
18659         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
18660         PASS_MANAGER_H.
18662 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
18664         * config/i386/i386.c (ix86_function_versions): Use error + inform.
18666 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
18668         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18669         iterator instead of X87MODEF.
18671 2013-08-12  Perez Read  <netfirewall@gmail.com>
18673         PR target/58132
18674         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
18675         operand 0 for intel asm alternative.
18676         (*movabs<mode>_2): Ditto for operand 1.
18678 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
18680         * config/aarch64/arm_none.h
18681         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18683 2013-08-12  Nick Clifton  <nickc@redhat.com>
18685         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18687 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
18689         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18690         expand for QI/HImode operand to produce more effictive code for
18691         unsigned char(short) --> float(double) conversion.
18693 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
18695         * doc/invoke.texi: Mention that -ftls-model does not force the final
18696         model.
18698 2013-08-12  Marek Polacek  <polacek@redhat.com>
18699             Marc Glisse  <marc.glisse@inria.fr>
18701         PR tree-optimization/57980
18702         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18703         when creating -1 constant.
18705 2013-08-10  Jan Hubicka  <jh@suse.cz>
18707         Workaround binutils PR14342.
18708         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18709         (gimple_init_edge_profiler): Likewise.
18710         (gimple_gen_ic_func_profiler): Likewise.
18712 2013-08-09  Jan Hubicka  <jh@suse.cz>
18714         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18716 2013-08-09  Xinliang David Li  <davidxl@google.com>
18718         * config/i386/stringop.def: New file.
18719         * config/i386/stringop.opt: New file.
18720         * config/i386/i386-opts.h: Include stringopt.def.
18721         * config/i386/i386.opt: Include stringopt.opt.
18722         * config/i386/i386.c (ix86_option_override_internal):
18723         Override default size based stringop inline strategies with options.
18724         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18725         New function.
18727 2013-08-09  Jan Hubicka  <jh@suse.cz>
18729         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18731 2013-08-09  Jan Hubicka  <jh@suse.cz>
18733         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18734         CGRAPH_FREQ_MAX.
18735         (dump_cgraph_node): Dump profile-id.
18736         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18737         and common_target_probability.
18738         * lto-cgraph.c (lto_output_edge): Stream common targets.
18739         (lto_output_node): Stream profile ids.
18740         (input_node): Stream profile ids.
18741         (input_edge): Stream common targets.
18742         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18743         * ipa.c: Include value-prof.h
18744         (ipa_profile_generate_summary): Turn indirect call statement histograms
18745         into common targets.
18746         (ipa_profile): Turn common targets into speculative edges.
18748 2013-08-09  Jan Hubicka  <jh@suse.cz>
18750         * cgraph.h (cgraph_node): Add profile_id.
18751         * value-prof.c (cgraph_node_map): Turn into pointer_map.
18752         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
18753         (del_node_map): Update.
18754         (find_func_by_funcdef_no): Replace by ...
18755         (find_func_by_profile_id): ... this one.
18756         (gimple_ic_transform): Do not remove useful histograms when
18757         speculation is not done; dump info when indirect call removal
18758         can happen at LTO.
18759         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
18760         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
18761         (__gcov_indirect_call_profiler_v2): .. this one.
18762         * profile.h (init_node_map): Update.
18763         * coverage.c (coverage_compute_profile_id): New function.
18764         * coverage.h (coverage_compute_profile_id): Declare.
18765         * tree-profile.c (init_ic_make_global_vars): Make
18766         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
18767         (gimple_init_edge_profiler): Update prototype of
18768         __gcov_indirect_call_profiler.
18769         (gimple_gen_ic_func_profiler): Simplify.
18770         (tree_profiling): Use init_node_map
18772 2013-08-09  Jan Hubicka  <jh@suse.cz>
18774         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
18775         non-speculative refs.
18776         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
18777         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
18778         (cgraph_set_call_stmt): Likewise.
18779         (cgraph_create_edge_1): Fix release checking compilatoin;
18780         clear lto_stmt_uid.
18781         (cgraph_free_edge): Free indirect info.
18782         (cgraph_turn_edge_to_speculative): New function.
18783         (cgraph_speculative_call_info): New function.
18784         (cgraph_make_edge_direct): Return direct edge; handle speculation.
18785         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
18786         (dump_cgraph_node): Dump speculation.
18787         (verify_edge_count_and_frequency): Accept speculative edges.
18788         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
18789         (verify_cgraph_node): Handle speculation.
18790         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
18791         (cgraph_set_call_stmt): Update prototype.
18792         (cgraph_make_edge_direct): Update prototype.
18793         (cgraph_speculative_call_info): Declare.
18794         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
18795         to change; update call of ipa_find_references.
18796         * ipa-ref.c (ipa_record_reference): Fix return value; clear
18797         lto_stmt_uid and speculative flags.
18798         (ipa_dump_references): Dump speculation.
18799         (ipa_clone_references): Clone speculative flag.
18800         (ipa_clone_referring): Likewise.
18801         (ipa_clone_ref): New function.
18802         (ipa_find_reference): Look into lto_stmt_uids
18803         (ipa_clear_stmts_in_references): Do not clear speculative calls.
18804         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
18805         (ipa_find_reference): Update declaration.
18806         (ipa_clone_ref): Declare.
18807         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
18808         stream speculative flag.
18809         (lto_output_ref): Stream statements uids and speculation.
18810         (input_ref): Likewise.
18811         (input_edge): Stream speuclation.
18812         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
18813         (cgraph_set_call_stmt_including_clones): Handle speculation.
18814         * ipa-inline.c (heap_edge_removal_hook): New function.
18815         (inline_small_functions): Register it.
18816         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
18817         also initialize refs.
18818         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
18819         edge to change.
18820         (try_make_edge_direct_simple_call): Likewise.
18821         (try_make_edge_direct_simple_call): Likewise.
18822         (update_indirect_edges_after_inlining): Likewise.
18823         (remove_described_reference): Look proper lto_stmt_uid.
18824         (propagate_controlled_uses): Likewise.
18825         (propagate_controlled_uses): Liekwise.
18826         * tree-inline.c (copy_bb): Copy speculative edges.
18827         (redirect_all_calls): New function.
18828         (copy_cfg_body): Do redirection after loop info is updated.
18829         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
18831 2013-08-09  Jan Hubicka  <jh@suse.cz>
18833         * lto-streamer-out.c (output_function): Renumber PHIs.
18834         * lto-streamer-in.c (input_function): Likewise.
18836 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
18838         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
18839         (get_lane_unsigned): Likewise.
18840         (dup_lane_scalar): Likewise.
18841         (get_lane): enable for VALL.
18842         * config/aarch64/aarch64-simd.md
18843         (aarch64_dup_lane_scalar<mode>): Remove.
18844         (aarch64_get_lane_signed<mode>): Likewise.
18845         (aarch64_get_lane_unsigned<mode>): Likewise.
18846         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
18847         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
18848         (aarch64_get_lane<mode>): Enable for all vector modes.
18849         (aarch64_get_lanedi): Remove misleading constraints.
18850         * config/aarch64/arm_neon.h
18851         (__aarch64_vget_lane_any): Define.
18852         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
18853         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
18854         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
18855         * config/aarch64/iterators.md (VDQQH): New.
18856         (VDQQHS): Likewise.
18857         (vwcore): Likewise.
18859 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
18861         * configure.ac: Add GAS check for LEON instructions on SPARC.
18862         * configure: Regenerate.
18863         * config.in: Likewise.
18864         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
18865         sparc*-*-* block.
18866         * config/sparc/sparc.opt (LEON, LEON3): New masks.
18867         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
18868         for LEON or LEON3.
18869         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
18870         (AS_LEON_FLAG): New macro.
18871         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
18872         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
18873         Deal with LEON and LEON3 for the memory model.
18874         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
18875         (atomic_compare_and_swap<mode>_1): Likewise.
18876         (*atomic_compare_and_swap<mode>_1): Likewise.
18878 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18880         * config/arm/neon.md (vcond): Fix floating-point vector
18881         comparisons against 0.
18883 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
18885         * lra-constraints.c (emit_spill_move): Remove assert.
18886         (process_alt_operands): Add more debugging
18887         output.  Increase reject for spilling into memory.  Decrease
18888         reject for reloading scratch.
18889         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
18891 2013-08-08  Steve Ellcey  <sellcey@mips.com>
18893         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
18894         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
18895         micromips incompatible.  Add nan2008.
18896         (MULTILIB_DIRNAMES): Add nan2008.
18897         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18898         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
18899         and micromips incompatible.  Add nan2008.
18900         (MULTILIB_DIRNAMES): Add nan2008.
18901         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18903 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
18905         PR rtl-optimization/58079
18906         * combine.c (combine_simplify_rtx): Avoid using SUBST if
18907         simplify_comparison has widened a comparison with an integer.
18909 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18911         * config/arm/neon.md (movmisalign<mode>): Disable when we
18912         don't allow unaligned accesses.
18913         (*movmisalign<mode>_neon_store): Likewise.
18914         (*movmisalign<mode>_neon_load): Likewise.
18915         (*movmisalign<mode>_neon_store): Likewise.
18916         (*movmisalign<mode>_neon_load): Likewise.
18918 2013-08-08  Jan Hubicka  <jh@suse.cz>
18920         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
18921         (make_pass_rebuild_cgraph_edges): Also clear references.
18922         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
18923         * ipa-inline-transform.c (inline_transform): Remove all references
18924         after inlining.
18925         * cgraphunit.c (expand_function): Remove all references after
18926         expansion.
18927         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
18928         (ipa_find_reference): Rewrite to iterator.
18929         (remove_stmt_references): Likewise.
18930         (ipa_clear_stmts_in_references): New function.
18931         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
18932         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
18933         clear references.
18934         * ipa-split.c (split_function): Remove references in split function.
18936 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18938         PR target/57431
18939         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
18940         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
18942 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18944         PR target/56979
18945         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
18946         suggested mode for the assignment isn't compatible with the
18947         registers required.
18949 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18951         PR target/58065
18952         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
18954 2013-08-07  Xinliang David Li  <davidxl@google.com>
18956         * config/i386/i386.opt: New option -mtune-ctrl=.
18957         * config/i386/x86-tune.def: New file.
18958         * config/i386/i386.h: include x86-tune.def.
18959         * config/i386/i386.c (ix86_option_override_internal):
18960         Parsing -mtune-ctrl= option and set tune features.
18962 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
18964         PR other/12081
18965         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
18966         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
18967         to gen_2arg_fn_t.
18969 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
18971         * rtl.h (update_alignments): Declare.
18972         * final.c (grow_label_align): New function extracted from...
18973         (shorten_branches): ...here.  Call it.
18974         (update_alignments): New function.
18975         * reorg.c (sibling_labels): New variable.
18976         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
18977         the new label along with it onto the sibling_labels vector.
18978         (fill_simple_delay_slots): Adjust call to get_label_before.
18979         (fill_slots_from_thread): Likewise.
18980         (relax_delay_slots): Likewise.
18981         (make_return_insns): Likewise.
18982         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
18984 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
18986         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
18987         document its semantics.
18988         (diagnostic_report_diagnostic): Adjust accordingly.
18990 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18992         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
18993         (sparc_option_override): ...and port to new C++ pass API.
18994         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
18996 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
18998         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19000 2013-08-06  Caroline Tice  <cmtice@google.com>
19002         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19003         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19004         * tree-pass.h: Add pass_vtable_verify.
19005         * varasm.c (assemble_variable): Add code to properly set the comdat
19006         section and name for the .vtable_map_vars section.
19007         (assemble_vtyv_preinit_initializer): New function.
19008         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
19009         LINK_ONCE flag.
19010         * output.h: Add function decl for assemble_vtv_preinit_initializer.
19011         * vtable-verify.c: New file.
19012         * vtable-verify.h: New file.
19013         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19014         initialiation levels.
19015         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19016         * passes.def: Insert pass_vtable_verify.
19017         * aclocal.m4: Reorder includes.
19018         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
19019         -fvtv-counts options.
19020         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19021         as appropriate, if -fvtable-verify=... is used.
19022         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19023         -fvtable-verify=... is used.
19024         * Makefile.in (OBJS):  Add vtable-verify.o to list.
19025         (vtable-verify.o): Add new build rule.
19026         (GTFILES): Add vtable-verify.c to list.
19027         * common.opt (fvtable-verify=): New flag.
19028         (vtv_priority): Values for fvtable-verify= flag.
19029         (fvtv-counts): New flag.
19030         (fvtv-debug): New flag.
19031         * tree.h (save_vtable_map_decl): New extern function decl.
19033 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19035         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19036         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19037         (pass_data_rl78_devirt): ...new pass_data instance and...
19038         (make_pass_rl78_devirt): ...new function.
19039         (rl78_asm_file_start): Port pass registration to new C++ API.
19041 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19043         * coretypes.h (rtl_opt_pass): Add.
19044         (gcc::context): Add.
19045         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19046         (epiphany_init): Port to new C++ pass API.
19047         (epiphany_optimize_mode_switching): Likewise.
19048         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19049         (pass_manager::get_pass_mode_switching): New.
19050         (pass_manager::get_pass_peephole2): New.
19051         * mode-switching.c (pass_mode_switching): Add clone method.
19052         * recog.c (pass_peephole2): Add clone method.
19053         (pass_split_all_insns): Add clone method.
19055 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
19057         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19058         (mips_option_override): ...here, porting to new C++ API for passes.
19060 2013-08-06  Jan Hubicka  <jh@suse.cz>
19062         * cgraph.c (cgraph_get_body): New function based on lto.c
19063         implementation.
19064         * cgraph.h (cgraph_get_body): Declare.
19065         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19066         LTO paths.
19067         * cgraphunit.c (expand_function): Get body prior expanding.
19068         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19069         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19070         really need.
19071         * passes.c (do_per_function_toporder): Get body.
19072         * tree-inline.c (expand_call_inline): Get body prior inlining it.
19073         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19075 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19077         PR fortran/57987
19078         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19079         is not re-finalized.  Rename second parameter to no_collect.
19081 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19083         PR middle-end/58041
19084         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19085         MEM_REF has proper alignment information.
19087 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
19089         PR other/12081
19090         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19091         class insn_gen_fn.
19092         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19093         rtx (*) (rtx, ...) with insn_gen_fn.
19094         * genoutput.c (output_insn_data): Cast gen_? function pointers to
19095         insn_gen_fn::stored_funcptr.  Add initializer braces.
19097 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19099         Rewrite how instances of passes are cloned to remove assumptions
19100         about their sizes (thus allowing pass subclasses to have
19101         additional data fields, albeit non-GC-managed ones at this point).
19103         * passes.c (make_pass_instance): Now that passes have clone
19104         methods, rewrite this function to eliminate XNEW and memcpy
19105         calls that used hardcoded sizes.  Since this function no longer
19106         creates pass instances, rename it to...
19107         (add_pass_instance): ...this.  Document the old way that passes were
19108         numbered and flagged, and rework this function to continue using it.
19109         (next_pass_1): Add an initial_pass argument for use by
19110         add_pass_instance.
19111         (position_pass): When adding multiple instances of a pass, use
19112         the pass's clone method, rather than relying on the XNEW/memcpy
19113         within the former make_pass_instance (now add_pass_instance).
19114         (pass_manager::pass_manager): When invoking next_pass_1, also supply
19115         the initial instance of the current pass within the pass manager.
19117 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19119         This is the automated part of the conversion of passes from C
19120         structs to C++ classes.
19122         Patch autogenerated by refactor_passes.py from
19123         https://github.com/davidmalcolm/gcc-refactoring-scripts
19124         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19126         * asan.c (pass_asan): Convert from a global struct to a subclass of
19127         gimple_opt_pass along with...
19128         (pass_data_asan): ...new pass_data instance and...
19129         (make_pass_asan): ...new function.
19130         (pass_asan_O0): Convert from a global struct to a subclass of
19131         gimple_opt_pass along with...
19132         (pass_data_asan_O0): ...new pass_data instance and...
19133         (make_pass_asan_O0): ...new function.
19134         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19135         subclass of rtl_opt_pass along with...
19136         (pass_data_inc_dec): ...new pass_data instance and...
19137         (make_pass_inc_dec): ...new function.
19138         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19139         a subclass of rtl_opt_pass along with...
19140         (pass_data_reorder_blocks): ...new pass_data instance and...
19141         (make_pass_reorder_blocks): ...new function.
19142         (pass_duplicate_computed_gotos): Convert from a global struct to a
19143         subclass of rtl_opt_pass along with...
19144         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19145         (make_pass_duplicate_computed_gotos): ...new function.
19146         (pass_partition_blocks): Convert from a global struct to a subclass of
19147         rtl_opt_pass along with...
19148         (pass_data_partition_blocks): ...new pass_data instance and...
19149         (make_pass_partition_blocks): ...new function.
19150         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19151         struct to a subclass of rtl_opt_pass along with...
19152         (pass_data_branch_target_load_optimize1): ...new pass_data instance
19153         and...
19154         (make_pass_branch_target_load_optimize1): ...new function.
19155         (pass_branch_target_load_optimize2): Convert from a global struct to a
19156         subclass of rtl_opt_pass along with...
19157         (pass_data_branch_target_load_optimize2): ...new pass_data instance
19158         and...
19159         (make_pass_branch_target_load_optimize2): ...new function.
19160         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19161         of rtl_opt_pass along with...
19162         (pass_data_jump): ...new pass_data instance and...
19163         (make_pass_jump): ...new function.
19164         (pass_jump2): Convert from a global struct to a subclass of
19165         rtl_opt_pass along with...
19166         (pass_data_jump2): ...new pass_data instance and...
19167         (make_pass_jump2): ...new function.
19168         * cfgexpand.c (pass_expand): Convert from a global struct to a
19169         subclass of rtl_opt_pass along with...
19170         (pass_data_expand): ...new pass_data instance and...
19171         (make_pass_expand): ...new function.
19172         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19173         of rtl_opt_pass along with...
19174         (pass_data_free_cfg): ...new pass_data instance and...
19175         (make_pass_free_cfg): ...new function.
19176         (pass_into_cfg_layout_mode): Convert from a global struct to a
19177         subclass of rtl_opt_pass along with...
19178         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19179         (make_pass_into_cfg_layout_mode): ...new function.
19180         (pass_outof_cfg_layout_mode): Convert from a global struct to a
19181         subclass of rtl_opt_pass along with...
19182         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19183         (make_pass_outof_cfg_layout_mode): ...new function.
19184         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19185         struct to a subclass of gimple_opt_pass along with...
19186         (pass_data_build_cgraph_edges): ...new pass_data instance and...
19187         (make_pass_build_cgraph_edges): ...new function.
19188         (pass_rebuild_cgraph_edges): Convert from a global struct to a
19189         subclass of gimple_opt_pass along with...
19190         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19191         (make_pass_rebuild_cgraph_edges): ...new function.
19192         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19193         subclass of gimple_opt_pass along with...
19194         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19195         and...
19196         (make_pass_remove_cgraph_callee_edges): ...new function.
19197         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19198         struct to a subclass of rtl_opt_pass along with...
19199         (pass_data_stack_adjustments): ...new pass_data instance and...
19200         (make_pass_stack_adjustments): ...new function.
19201         * combine.c (pass_combine): Convert from a global struct to a subclass
19202         of rtl_opt_pass along with...
19203         (pass_data_combine): ...new pass_data instance and...
19204         (make_pass_combine): ...new function.
19205         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19206         global struct to a subclass of rtl_opt_pass along with...
19207         (pass_data_compare_elim_after_reload): ...new pass_data instance
19208         and...
19209         (make_pass_compare_elim_after_reload): ...new function.
19210         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19211         of rtl_opt_pass along with...
19212         (pass_data_rtl_cprop): ...new pass_data instance and...
19213         (make_pass_rtl_cprop): ...new function.
19214         * cse.c (pass_cse): Convert from a global struct to a subclass of
19215         rtl_opt_pass along with...
19216         (pass_data_cse): ...new pass_data instance and...
19217         (make_pass_cse): ...new function.
19218         (pass_cse2): Convert from a global struct to a subclass of
19219         rtl_opt_pass along with...
19220         (pass_data_cse2): ...new pass_data instance and...
19221         (make_pass_cse2): ...new function.
19222         (pass_cse_after_global_opts): Convert from a global struct to a
19223         subclass of rtl_opt_pass along with...
19224         (pass_data_cse_after_global_opts): ...new pass_data instance and...
19225         (make_pass_cse_after_global_opts): ...new function.
19226         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19227         of rtl_opt_pass along with...
19228         (pass_data_ud_rtl_dce): ...new pass_data instance and...
19229         (make_pass_ud_rtl_dce): ...new function.
19230         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19231         rtl_opt_pass along with...
19232         (pass_data_fast_rtl_dce): ...new pass_data instance and...
19233         (make_pass_fast_rtl_dce): ...new function.
19234         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19235         a subclass of rtl_opt_pass along with...
19236         (pass_data_df_initialize_opt): ...new pass_data instance and...
19237         (make_pass_df_initialize_opt): ...new function.
19238         (pass_df_initialize_no_opt): Convert from a global struct to a
19239         subclass of rtl_opt_pass along with...
19240         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19241         (make_pass_df_initialize_no_opt): ...new function.
19242         (pass_df_finish): Convert from a global struct to a subclass of
19243         rtl_opt_pass along with...
19244         (pass_data_df_finish): ...new pass_data instance and...
19245         (make_pass_df_finish): ...new function.
19246         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19247         rtl_opt_pass along with...
19248         (pass_data_rtl_dse1): ...new pass_data instance and...
19249         (make_pass_rtl_dse1): ...new function.
19250         (pass_rtl_dse2): Convert from a global struct to a subclass of
19251         rtl_opt_pass along with...
19252         (pass_data_rtl_dse2): ...new pass_data instance and...
19253         (make_pass_rtl_dse2): ...new function.
19254         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19255         subclass of rtl_opt_pass along with...
19256         (pass_data_dwarf2_frame): ...new pass_data instance and...
19257         (make_pass_dwarf2_frame): ...new function.
19258         * except.c (pass_set_nothrow_function_flags): Convert from a global
19259         struct to a subclass of rtl_opt_pass along with...
19260         (pass_data_set_nothrow_function_flags): ...new pass_data instance
19261         and...
19262         (make_pass_set_nothrow_function_flags): ...new function.
19263         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19264         subclass of rtl_opt_pass along with...
19265         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19266         and...
19267         (make_pass_convert_to_eh_region_ranges): ...new function.
19268         * final.c (pass_compute_alignments): Convert from a global struct to a
19269         subclass of rtl_opt_pass along with...
19270         (pass_data_compute_alignments): ...new pass_data instance and...
19271         (make_pass_compute_alignments): ...new function.
19272         (pass_final): Convert from a global struct to a subclass of
19273         rtl_opt_pass along with...
19274         (pass_data_final): ...new pass_data instance and...
19275         (make_pass_final): ...new function.
19276         (pass_shorten_branches): Convert from a global struct to a subclass of
19277         rtl_opt_pass along with...
19278         (pass_data_shorten_branches): ...new pass_data instance and...
19279         (make_pass_shorten_branches): ...new function.
19280         (pass_clean_state): Convert from a global struct to a subclass of
19281         rtl_opt_pass along with...
19282         (pass_data_clean_state): ...new pass_data instance and...
19283         (make_pass_clean_state): ...new function.
19284         * function.c (pass_instantiate_virtual_regs): Convert from a global
19285         struct to a subclass of rtl_opt_pass along with...
19286         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19287         (make_pass_instantiate_virtual_regs): ...new function.
19288         (pass_leaf_regs): Convert from a global struct to a subclass of
19289         rtl_opt_pass along with...
19290         (pass_data_leaf_regs): ...new pass_data instance and...
19291         (make_pass_leaf_regs): ...new function.
19292         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19293         subclass of rtl_opt_pass along with...
19294         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19295         and...
19296         (make_pass_thread_prologue_and_epilogue): ...new function.
19297         (pass_match_asm_constraints): Convert from a global struct to a
19298         subclass of rtl_opt_pass along with...
19299         (pass_data_match_asm_constraints): ...new pass_data instance and...
19300         (make_pass_match_asm_constraints): ...new function.
19301         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19302         subclass of rtl_opt_pass along with...
19303         (pass_data_rtl_fwprop): ...new pass_data instance and...
19304         (make_pass_rtl_fwprop): ...new function.
19305         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19306         rtl_opt_pass along with...
19307         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19308         (make_pass_rtl_fwprop_addr): ...new function.
19309         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19310         rtl_opt_pass along with...
19311         (pass_data_rtl_pre): ...new pass_data instance and...
19312         (make_pass_rtl_pre): ...new function.
19313         (pass_rtl_hoist): Convert from a global struct to a subclass of
19314         rtl_opt_pass along with...
19315         (pass_data_rtl_hoist): ...new pass_data instance and...
19316         (make_pass_rtl_hoist): ...new function.
19317         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19318         subclass of gimple_opt_pass along with...
19319         (pass_data_lower_cf): ...new pass_data instance and...
19320         (make_pass_lower_cf): ...new function.
19321         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19322         from a global struct to a subclass of gimple_opt_pass along with...
19323         (pass_data_strength_reduction): ...new pass_data instance and...
19324         (make_pass_strength_reduction): ...new function.
19325         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19326         of rtl_opt_pass along with...
19327         (pass_data_rtl_ifcvt): ...new pass_data instance and...
19328         (make_pass_rtl_ifcvt): ...new function.
19329         (pass_if_after_combine): Convert from a global struct to a subclass of
19330         rtl_opt_pass along with...
19331         (pass_data_if_after_combine): ...new pass_data instance and...
19332         (make_pass_if_after_combine): ...new function.
19333         (pass_if_after_reload): Convert from a global struct to a subclass of
19334         rtl_opt_pass along with...
19335         (pass_data_if_after_reload): ...new pass_data instance and...
19336         (make_pass_if_after_reload): ...new function.
19337         * init-regs.c (pass_initialize_regs): Convert from a global struct to
19338         a subclass of rtl_opt_pass along with...
19339         (pass_data_initialize_regs): ...new pass_data instance and...
19340         (make_pass_initialize_regs): ...new function.
19341         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19342         of ipa_opt_pass_d along with...
19343         (pass_data_ipa_cp): ...new pass_data instance and...
19344         (make_pass_ipa_cp): ...new function.
19345         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19346         global struct to a subclass of gimple_opt_pass along with...
19347         (pass_data_inline_parameters): ...new pass_data instance and...
19348         (make_pass_inline_parameters): ...new function.
19349         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19350         subclass of gimple_opt_pass along with...
19351         (pass_data_early_inline): ...new pass_data instance and...
19352         (make_pass_early_inline): ...new function.
19353         (pass_ipa_inline): Convert from a global struct to a subclass of
19354         ipa_opt_pass_d along with...
19355         (pass_data_ipa_inline): ...new pass_data instance and...
19356         (make_pass_ipa_inline): ...new function.
19357         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19358         struct to a subclass of gimple_opt_pass along with...
19359         (pass_data_local_pure_const): ...new pass_data instance and...
19360         (make_pass_local_pure_const): ...new function.
19361         (pass_ipa_pure_const): Convert from a global struct to a subclass of
19362         ipa_opt_pass_d along with...
19363         (pass_data_ipa_pure_const): ...new pass_data instance and...
19364         (make_pass_ipa_pure_const): ...new function.
19365         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19366         to a subclass of ipa_opt_pass_d along with...
19367         (pass_data_ipa_reference): ...new pass_data instance and...
19368         (make_pass_ipa_reference): ...new function.
19369         * ipa-split.c (pass_split_functions): Convert from a global struct to
19370         a subclass of gimple_opt_pass along with...
19371         (pass_data_split_functions): ...new pass_data instance and...
19372         (make_pass_split_functions): ...new function.
19373         (pass_feedback_split_functions): Convert from a global struct to a
19374         subclass of gimple_opt_pass along with...
19375         (pass_data_feedback_split_functions): ...new pass_data instance and...
19376         (make_pass_feedback_split_functions): ...new function.
19377         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19378         global struct to a subclass of simple_ipa_opt_pass along with...
19379         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19380         instance and...
19381         (make_pass_ipa_function_and_variable_visibility): ...new function.
19382         (pass_ipa_free_inline_summary): Convert from a global struct to a
19383         subclass of simple_ipa_opt_pass along with...
19384         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19385         (make_pass_ipa_free_inline_summary): ...new function.
19386         (pass_ipa_whole_program_visibility): Convert from a global struct to a
19387         subclass of ipa_opt_pass_d along with...
19388         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19389         and...
19390         (make_pass_ipa_whole_program_visibility): ...new function.
19391         (pass_ipa_profile): Convert from a global struct to a subclass of
19392         ipa_opt_pass_d along with...
19393         (pass_data_ipa_profile): ...new pass_data instance and...
19394         (make_pass_ipa_profile): ...new function.
19395         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19396         ipa_opt_pass_d along with...
19397         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19398         (make_pass_ipa_cdtor_merge): ...new function.
19399         * ira.c (pass_ira): Convert from a global struct to a subclass of
19400         rtl_opt_pass along with...
19401         (pass_data_ira): ...new pass_data instance and...
19402         (make_pass_ira): ...new function.
19403         (pass_reload): Convert from a global struct to a subclass of
19404         rtl_opt_pass along with...
19405         (pass_data_reload): ...new pass_data instance and...
19406         (make_pass_reload): ...new function.
19407         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19408         subclass of rtl_opt_pass along with...
19409         (pass_data_cleanup_barriers): ...new pass_data instance and...
19410         (make_pass_cleanup_barriers): ...new function.
19411         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19412         of rtl_opt_pass along with...
19413         (pass_data_loop2): ...new pass_data instance and...
19414         (make_pass_loop2): ...new function.
19415         (pass_rtl_loop_init): Convert from a global struct to a subclass of
19416         rtl_opt_pass along with...
19417         (pass_data_rtl_loop_init): ...new pass_data instance and...
19418         (make_pass_rtl_loop_init): ...new function.
19419         (pass_rtl_loop_done): Convert from a global struct to a subclass of
19420         rtl_opt_pass along with...
19421         (pass_data_rtl_loop_done): ...new pass_data instance and...
19422         (make_pass_rtl_loop_done): ...new function.
19423         (pass_rtl_move_loop_invariants): Convert from a global struct to a
19424         subclass of rtl_opt_pass along with...
19425         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19426         (make_pass_rtl_move_loop_invariants): ...new function.
19427         (pass_rtl_unswitch): Convert from a global struct to a subclass of
19428         rtl_opt_pass along with...
19429         (pass_data_rtl_unswitch): ...new pass_data instance and...
19430         (make_pass_rtl_unswitch): ...new function.
19431         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19432         subclass of rtl_opt_pass along with...
19433         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19434         and...
19435         (make_pass_rtl_unroll_and_peel_loops): ...new function.
19436         (pass_rtl_doloop): Convert from a global struct to a subclass of
19437         rtl_opt_pass along with...
19438         (pass_data_rtl_doloop): ...new pass_data instance and...
19439         (make_pass_rtl_doloop): ...new function.
19440         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19441         a subclass of rtl_opt_pass along with...
19442         (pass_data_lower_subreg): ...new pass_data instance and...
19443         (make_pass_lower_subreg): ...new function.
19444         (pass_lower_subreg2): Convert from a global struct to a subclass of
19445         rtl_opt_pass along with...
19446         (pass_data_lower_subreg2): ...new pass_data instance and...
19447         (make_pass_lower_subreg2): ...new function.
19448         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19449         struct to a subclass of ipa_opt_pass_d along with...
19450         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19451         (make_pass_ipa_lto_gimple_out): ...new function.
19452         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19453         of ipa_opt_pass_d along with...
19454         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19455         (make_pass_ipa_lto_finish_out): ...new function.
19456         * mode-switching.c (pass_mode_switching): Convert from a global struct
19457         to a subclass of rtl_opt_pass along with...
19458         (pass_data_mode_switching): ...new pass_data instance and...
19459         (make_pass_mode_switching): ...new function.
19460         * modulo-sched.c (pass_sms): Convert from a global struct to a
19461         subclass of rtl_opt_pass along with...
19462         (pass_data_sms): ...new pass_data instance and...
19463         (make_pass_sms): ...new function.
19464         * omp-low.c (pass_expand_omp): Convert from a global struct to a
19465         subclass of gimple_opt_pass along with...
19466         (pass_data_expand_omp): ...new pass_data instance and...
19467         (make_pass_expand_omp): ...new function.
19468         (pass_lower_omp): Convert from a global struct to a subclass of
19469         gimple_opt_pass along with...
19470         (pass_data_lower_omp): ...new pass_data instance and...
19471         (make_pass_lower_omp): ...new function.
19472         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19473         of gimple_opt_pass along with...
19474         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19475         (make_pass_diagnose_omp_blocks): ...new function.
19476         * passes.c (pass_early_local_passes): Convert from a global struct to
19477         a subclass of simple_ipa_opt_pass along with...
19478         (pass_data_early_local_passes): ...new pass_data instance and...
19479         (make_pass_early_local_passes): ...new function.
19480         (pass_all_early_optimizations): Convert from a global struct to a
19481         subclass of gimple_opt_pass along with...
19482         (pass_data_all_early_optimizations): ...new pass_data instance and...
19483         (make_pass_all_early_optimizations): ...new function.
19484         (pass_all_optimizations): Convert from a global struct to a subclass
19485         of gimple_opt_pass along with...
19486         (pass_data_all_optimizations): ...new pass_data instance and...
19487         (make_pass_all_optimizations): ...new function.
19488         (pass_all_optimizations_g): Convert from a global struct to a subclass
19489         of gimple_opt_pass along with...
19490         (pass_data_all_optimizations_g): ...new pass_data instance and...
19491         (make_pass_all_optimizations_g): ...new function.
19492         (pass_rest_of_compilation): Convert from a global struct to a subclass
19493         of rtl_opt_pass along with...
19494         (pass_data_rest_of_compilation): ...new pass_data instance and...
19495         (make_pass_rest_of_compilation): ...new function.
19496         (pass_postreload): Convert from a global struct to a subclass of
19497         rtl_opt_pass along with...
19498         (pass_data_postreload): ...new pass_data instance and...
19499         (make_pass_postreload): ...new function.
19500         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19501         subclass of rtl_opt_pass along with...
19502         (pass_data_gcse2): ...new pass_data instance and...
19503         (make_pass_gcse2): ...new function.
19504         * postreload.c (pass_postreload_cse): Convert from a global struct to
19505         a subclass of rtl_opt_pass along with...
19506         (pass_data_postreload_cse): ...new pass_data instance and...
19507         (make_pass_postreload_cse): ...new function.
19508         * predict.c (pass_profile): Convert from a global struct to a subclass
19509         of gimple_opt_pass along with...
19510         (pass_data_profile): ...new pass_data instance and...
19511         (make_pass_profile): ...new function.
19512         (pass_strip_predict_hints): Convert from a global struct to a subclass
19513         of gimple_opt_pass along with...
19514         (pass_data_strip_predict_hints): ...new pass_data instance and...
19515         (make_pass_strip_predict_hints): ...new function.
19516         * recog.c (pass_peephole2): Convert from a global struct to a subclass
19517         of rtl_opt_pass along with...
19518         (pass_data_peephole2): ...new pass_data instance and...
19519         (make_pass_peephole2): ...new function.
19520         (pass_split_all_insns): Convert from a global struct to a subclass of
19521         rtl_opt_pass along with...
19522         (pass_data_split_all_insns): ...new pass_data instance and...
19523         (make_pass_split_all_insns): ...new function.
19524         (pass_split_after_reload): Convert from a global struct to a subclass
19525         of rtl_opt_pass along with...
19526         (pass_data_split_after_reload): ...new pass_data instance and...
19527         (make_pass_split_after_reload): ...new function.
19528         (pass_split_before_regstack): Convert from a global struct to a
19529         subclass of rtl_opt_pass along with...
19530         (pass_data_split_before_regstack): ...new pass_data instance and...
19531         (make_pass_split_before_regstack): ...new function.
19532         (pass_split_before_sched2): Convert from a global struct to a subclass
19533         of rtl_opt_pass along with...
19534         (pass_data_split_before_sched2): ...new pass_data instance and...
19535         (make_pass_split_before_sched2): ...new function.
19536         (pass_split_for_shorten_branches): Convert from a global struct to a
19537         subclass of rtl_opt_pass along with...
19538         (pass_data_split_for_shorten_branches): ...new pass_data instance
19539         and...
19540         (make_pass_split_for_shorten_branches): ...new function.
19541         * ree.c (pass_ree): Convert from a global struct to a subclass of
19542         rtl_opt_pass along with...
19543         (pass_data_ree): ...new pass_data instance and...
19544         (make_pass_ree): ...new function.
19545         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19546         subclass of rtl_opt_pass along with...
19547         (pass_data_stack_regs): ...new pass_data instance and...
19548         (make_pass_stack_regs): ...new function.
19549         (pass_stack_regs_run): Convert from a global struct to a subclass of
19550         rtl_opt_pass along with...
19551         (pass_data_stack_regs_run): ...new pass_data instance and...
19552         (make_pass_stack_regs_run): ...new function.
19553         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19554         subclass of rtl_opt_pass along with...
19555         (pass_data_cprop_hardreg): ...new pass_data instance and...
19556         (make_pass_cprop_hardreg): ...new function.
19557         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19558         subclass of rtl_opt_pass along with...
19559         (pass_data_reginfo_init): ...new pass_data instance and...
19560         (make_pass_reginfo_init): ...new function.
19561         * regmove.c (pass_regmove): Convert from a global struct to a subclass
19562         of rtl_opt_pass along with...
19563         (pass_data_regmove): ...new pass_data instance and...
19564         (make_pass_regmove): ...new function.
19565         * regrename.c (pass_regrename): Convert from a global struct to a
19566         subclass of rtl_opt_pass along with...
19567         (pass_data_regrename): ...new pass_data instance and...
19568         (make_pass_regrename): ...new function.
19569         * reorg.c (pass_delay_slots): Convert from a global struct to a
19570         subclass of rtl_opt_pass along with...
19571         (pass_data_delay_slots): ...new pass_data instance and...
19572         (make_pass_delay_slots): ...new function.
19573         (pass_machine_reorg): Convert from a global struct to a subclass of
19574         rtl_opt_pass along with...
19575         (pass_data_machine_reorg): ...new pass_data instance and...
19576         (make_pass_machine_reorg): ...new function.
19577         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19578         of rtl_opt_pass along with...
19579         (pass_data_sched): ...new pass_data instance and...
19580         (make_pass_sched): ...new function.
19581         (pass_sched2): Convert from a global struct to a subclass of
19582         rtl_opt_pass along with...
19583         (pass_data_sched2): ...new pass_data instance and...
19584         (make_pass_sched2): ...new function.
19585         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19586         to a subclass of rtl_opt_pass along with...
19587         (pass_data_stack_ptr_mod): ...new pass_data instance and...
19588         (make_pass_stack_ptr_mod): ...new function.
19589         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19590         to a subclass of rtl_opt_pass along with...
19591         (pass_data_rtl_store_motion): ...new pass_data instance and...
19592         (make_pass_rtl_store_motion): ...new function.
19593         * tracer.c (pass_tracer): Convert from a global struct to a subclass
19594         of gimple_opt_pass along with...
19595         (pass_data_tracer): ...new pass_data instance and...
19596         (make_pass_tracer): ...new function.
19597         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19598         to a subclass of gimple_opt_pass along with...
19599         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19600         (make_pass_diagnose_tm_blocks): ...new function.
19601         (pass_lower_tm): Convert from a global struct to a subclass of
19602         gimple_opt_pass along with...
19603         (pass_data_lower_tm): ...new pass_data instance and...
19604         (make_pass_lower_tm): ...new function.
19605         (pass_tm_init): Convert from a global struct to a subclass of
19606         gimple_opt_pass along with...
19607         (pass_data_tm_init): ...new pass_data instance and...
19608         (make_pass_tm_init): ...new function.
19609         (pass_tm_mark): Convert from a global struct to a subclass of
19610         gimple_opt_pass along with...
19611         (pass_data_tm_mark): ...new pass_data instance and...
19612         (make_pass_tm_mark): ...new function.
19613         (pass_tm_edges): Convert from a global struct to a subclass of
19614         gimple_opt_pass along with...
19615         (pass_data_tm_edges): ...new pass_data instance and...
19616         (make_pass_tm_edges): ...new function.
19617         (pass_tm_memopt): Convert from a global struct to a subclass of
19618         gimple_opt_pass along with...
19619         (pass_data_tm_memopt): ...new pass_data instance and...
19620         (make_pass_tm_memopt): ...new function.
19621         (pass_ipa_tm): Convert from a global struct to a subclass of
19622         simple_ipa_opt_pass along with...
19623         (pass_data_ipa_tm): ...new pass_data instance and...
19624         (make_pass_ipa_tm): ...new function.
19625         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19626         subclass of gimple_opt_pass along with...
19627         (pass_data_call_cdce): ...new pass_data instance and...
19628         (make_pass_call_cdce): ...new function.
19629         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19630         subclass of gimple_opt_pass along with...
19631         (pass_data_build_cfg): ...new pass_data instance and...
19632         (make_pass_build_cfg): ...new function.
19633         (pass_split_crit_edges): Convert from a global struct to a subclass of
19634         gimple_opt_pass along with...
19635         (pass_data_split_crit_edges): ...new pass_data instance and...
19636         (make_pass_split_crit_edges): ...new function.
19637         (pass_warn_function_return): Convert from a global struct to a
19638         subclass of gimple_opt_pass along with...
19639         (pass_data_warn_function_return): ...new pass_data instance and...
19640         (make_pass_warn_function_return): ...new function.
19641         (pass_warn_function_noreturn): Convert from a global struct to a
19642         subclass of gimple_opt_pass along with...
19643         (pass_data_warn_function_noreturn): ...new pass_data instance and...
19644         (make_pass_warn_function_noreturn): ...new function.
19645         (pass_warn_unused_result): Convert from a global struct to a subclass
19646         of gimple_opt_pass along with...
19647         (pass_data_warn_unused_result): ...new pass_data instance and...
19648         (make_pass_warn_unused_result): ...new function.
19649         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19650         a subclass of gimple_opt_pass along with...
19651         (pass_data_merge_phi): ...new pass_data instance and...
19652         (make_pass_merge_phi): ...new function.
19653         * tree-complex.c (pass_lower_complex): Convert from a global struct to
19654         a subclass of gimple_opt_pass along with...
19655         (pass_data_lower_complex): ...new pass_data instance and...
19656         (make_pass_lower_complex): ...new function.
19657         (pass_lower_complex_O0): Convert from a global struct to a subclass of
19658         gimple_opt_pass along with...
19659         (pass_data_lower_complex_O0): ...new pass_data instance and...
19660         (make_pass_lower_complex_O0): ...new function.
19661         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
19662         subclass of gimple_opt_pass along with...
19663         (pass_data_lower_eh): ...new pass_data instance and...
19664         (make_pass_lower_eh): ...new function.
19665         (pass_refactor_eh): Convert from a global struct to a subclass of
19666         gimple_opt_pass along with...
19667         (pass_data_refactor_eh): ...new pass_data instance and...
19668         (make_pass_refactor_eh): ...new function.
19669         (pass_lower_resx): Convert from a global struct to a subclass of
19670         gimple_opt_pass along with...
19671         (pass_data_lower_resx): ...new pass_data instance and...
19672         (make_pass_lower_resx): ...new function.
19673         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19674         of gimple_opt_pass along with...
19675         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19676         (make_pass_lower_eh_dispatch): ...new function.
19677         (pass_cleanup_eh): Convert from a global struct to a subclass of
19678         gimple_opt_pass along with...
19679         (pass_data_cleanup_eh): ...new pass_data instance and...
19680         (make_pass_cleanup_eh): ...new function.
19681         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19682         to a subclass of simple_ipa_opt_pass along with...
19683         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19684         (make_pass_ipa_lower_emutls): ...new function.
19685         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19686         a subclass of gimple_opt_pass along with...
19687         (pass_data_if_conversion): ...new pass_data instance and...
19688         (make_pass_if_conversion): ...new function.
19689         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19690         subclass of gimple_opt_pass along with...
19691         (pass_data_build_ssa): ...new pass_data instance and...
19692         (make_pass_build_ssa): ...new function.
19693         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19694         global struct to a subclass of gimple_opt_pass along with...
19695         (pass_data_loop_distribution): ...new pass_data instance and...
19696         (make_pass_loop_distribution): ...new function.
19697         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19698         subclass of gimple_opt_pass along with...
19699         (pass_data_mudflap_1): ...new pass_data instance and...
19700         (make_pass_mudflap_1): ...new function.
19701         (pass_mudflap_2): Convert from a global struct to a subclass of
19702         gimple_opt_pass along with...
19703         (pass_data_mudflap_2): ...new pass_data instance and...
19704         (make_pass_mudflap_2): ...new function.
19705         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19706         subclass of gimple_opt_pass along with...
19707         (pass_data_mudflap_1): ...new pass_data instance and...
19708         (make_pass_mudflap_1): ...new function.
19709         (pass_mudflap_2): Convert from a global struct to a subclass of
19710         gimple_opt_pass along with...
19711         (pass_data_mudflap_2): ...new pass_data instance and...
19712         (make_pass_mudflap_2): ...new function.
19713         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19714         gimple_opt_pass along with...
19715         (pass_data_nrv): ...new pass_data instance and...
19716         (make_pass_nrv): ...new function.
19717         (pass_return_slot): Convert from a global struct to a subclass of
19718         gimple_opt_pass along with...
19719         (pass_data_return_slot): ...new pass_data instance and...
19720         (make_pass_return_slot): ...new function.
19721         * tree-object-size.c (pass_object_sizes): Convert from a global struct
19722         to a subclass of gimple_opt_pass along with...
19723         (pass_data_object_sizes): ...new pass_data instance and...
19724         (make_pass_object_sizes): ...new function.
19725         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19726         global struct to a subclass of gimple_opt_pass along with...
19727         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19728         and...
19729         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19730         (pass_fixup_cfg): Convert from a global struct to a subclass of
19731         gimple_opt_pass along with...
19732         (pass_data_fixup_cfg): ...new pass_data instance and...
19733         (make_pass_fixup_cfg): ...new function.
19734         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19735         (make_pass_mudflap_1): ...new function.
19736         (pass_mudflap_2): Replace declaration with that of...
19737         (make_pass_mudflap_2): ...new function.
19738         (pass_asan): Replace declaration with that of...
19739         (make_pass_asan): ...new function.
19740         (pass_asan_O0): Replace declaration with that of...
19741         (make_pass_asan_O0): ...new function.
19742         (pass_tsan): Replace declaration with that of...
19743         (make_pass_tsan): ...new function.
19744         (pass_tsan_O0): Replace declaration with that of...
19745         (make_pass_tsan_O0): ...new function.
19746         (pass_lower_cf): Replace declaration with that of...
19747         (make_pass_lower_cf): ...new function.
19748         (pass_refactor_eh): Replace declaration with that of...
19749         (make_pass_refactor_eh): ...new function.
19750         (pass_lower_eh): Replace declaration with that of...
19751         (make_pass_lower_eh): ...new function.
19752         (pass_lower_eh_dispatch): Replace declaration with that of...
19753         (make_pass_lower_eh_dispatch): ...new function.
19754         (pass_lower_resx): Replace declaration with that of...
19755         (make_pass_lower_resx): ...new function.
19756         (pass_build_cfg): Replace declaration with that of...
19757         (make_pass_build_cfg): ...new function.
19758         (pass_early_tree_profile): Replace declaration with that of...
19759         (make_pass_early_tree_profile): ...new function.
19760         (pass_cleanup_eh): Replace declaration with that of...
19761         (make_pass_cleanup_eh): ...new function.
19762         (pass_sra): Replace declaration with that of...
19763         (make_pass_sra): ...new function.
19764         (pass_sra_early): Replace declaration with that of...
19765         (make_pass_sra_early): ...new function.
19766         (pass_early_ipa_sra): Replace declaration with that of...
19767         (make_pass_early_ipa_sra): ...new function.
19768         (pass_tail_recursion): Replace declaration with that of...
19769         (make_pass_tail_recursion): ...new function.
19770         (pass_tail_calls): Replace declaration with that of...
19771         (make_pass_tail_calls): ...new function.
19772         (pass_tree_loop): Replace declaration with that of...
19773         (make_pass_tree_loop): ...new function.
19774         (pass_tree_loop_init): Replace declaration with that of...
19775         (make_pass_tree_loop_init): ...new function.
19776         (pass_lim): Replace declaration with that of...
19777         (make_pass_lim): ...new function.
19778         (pass_tree_unswitch): Replace declaration with that of...
19779         (make_pass_tree_unswitch): ...new function.
19780         (pass_predcom): Replace declaration with that of...
19781         (make_pass_predcom): ...new function.
19782         (pass_iv_canon): Replace declaration with that of...
19783         (make_pass_iv_canon): ...new function.
19784         (pass_scev_cprop): Replace declaration with that of...
19785         (make_pass_scev_cprop): ...new function.
19786         (pass_empty_loop): Replace declaration with that of...
19787         (make_pass_empty_loop): ...new function.
19788         (pass_record_bounds): Replace declaration with that of...
19789         (make_pass_record_bounds): ...new function.
19790         (pass_graphite): Replace declaration with that of...
19791         (make_pass_graphite): ...new function.
19792         (pass_graphite_transforms): Replace declaration with that of...
19793         (make_pass_graphite_transforms): ...new function.
19794         (pass_if_conversion): Replace declaration with that of...
19795         (make_pass_if_conversion): ...new function.
19796         (pass_loop_distribution): Replace declaration with that of...
19797         (make_pass_loop_distribution): ...new function.
19798         (pass_vectorize): Replace declaration with that of...
19799         (make_pass_vectorize): ...new function.
19800         (pass_slp_vectorize): Replace declaration with that of...
19801         (make_pass_slp_vectorize): ...new function.
19802         (pass_complete_unroll): Replace declaration with that of...
19803         (make_pass_complete_unroll): ...new function.
19804         (pass_complete_unrolli): Replace declaration with that of...
19805         (make_pass_complete_unrolli): ...new function.
19806         (pass_parallelize_loops): Replace declaration with that of...
19807         (make_pass_parallelize_loops): ...new function.
19808         (pass_loop_prefetch): Replace declaration with that of...
19809         (make_pass_loop_prefetch): ...new function.
19810         (pass_iv_optimize): Replace declaration with that of...
19811         (make_pass_iv_optimize): ...new function.
19812         (pass_tree_loop_done): Replace declaration with that of...
19813         (make_pass_tree_loop_done): ...new function.
19814         (pass_ch): Replace declaration with that of...
19815         (make_pass_ch): ...new function.
19816         (pass_ccp): Replace declaration with that of...
19817         (make_pass_ccp): ...new function.
19818         (pass_phi_only_cprop): Replace declaration with that of...
19819         (make_pass_phi_only_cprop): ...new function.
19820         (pass_build_ssa): Replace declaration with that of...
19821         (make_pass_build_ssa): ...new function.
19822         (pass_build_alias): Replace declaration with that of...
19823         (make_pass_build_alias): ...new function.
19824         (pass_build_ealias): Replace declaration with that of...
19825         (make_pass_build_ealias): ...new function.
19826         (pass_dominator): Replace declaration with that of...
19827         (make_pass_dominator): ...new function.
19828         (pass_dce): Replace declaration with that of...
19829         (make_pass_dce): ...new function.
19830         (pass_dce_loop): Replace declaration with that of...
19831         (make_pass_dce_loop): ...new function.
19832         (pass_cd_dce): Replace declaration with that of...
19833         (make_pass_cd_dce): ...new function.
19834         (pass_call_cdce): Replace declaration with that of...
19835         (make_pass_call_cdce): ...new function.
19836         (pass_merge_phi): Replace declaration with that of...
19837         (make_pass_merge_phi): ...new function.
19838         (pass_split_crit_edges): Replace declaration with that of...
19839         (make_pass_split_crit_edges): ...new function.
19840         (pass_pre): Replace declaration with that of...
19841         (make_pass_pre): ...new function.
19842         (pass_profile): Replace declaration with that of...
19843         (make_pass_profile): ...new function.
19844         (pass_strip_predict_hints): Replace declaration with that of...
19845         (make_pass_strip_predict_hints): ...new function.
19846         (pass_lower_complex_O0): Replace declaration with that of...
19847         (make_pass_lower_complex_O0): ...new function.
19848         (pass_lower_complex): Replace declaration with that of...
19849         (make_pass_lower_complex): ...new function.
19850         (pass_lower_vector): Replace declaration with that of...
19851         (make_pass_lower_vector): ...new function.
19852         (pass_lower_vector_ssa): Replace declaration with that of...
19853         (make_pass_lower_vector_ssa): ...new function.
19854         (pass_lower_omp): Replace declaration with that of...
19855         (make_pass_lower_omp): ...new function.
19856         (pass_diagnose_omp_blocks): Replace declaration with that of...
19857         (make_pass_diagnose_omp_blocks): ...new function.
19858         (pass_expand_omp): Replace declaration with that of...
19859         (make_pass_expand_omp): ...new function.
19860         (pass_expand_omp_ssa): Replace declaration with that of...
19861         (make_pass_expand_omp_ssa): ...new function.
19862         (pass_object_sizes): Replace declaration with that of...
19863         (make_pass_object_sizes): ...new function.
19864         (pass_strlen): Replace declaration with that of...
19865         (make_pass_strlen): ...new function.
19866         (pass_fold_builtins): Replace declaration with that of...
19867         (make_pass_fold_builtins): ...new function.
19868         (pass_stdarg): Replace declaration with that of...
19869         (make_pass_stdarg): ...new function.
19870         (pass_early_warn_uninitialized): Replace declaration with that of...
19871         (make_pass_early_warn_uninitialized): ...new function.
19872         (pass_late_warn_uninitialized): Replace declaration with that of...
19873         (make_pass_late_warn_uninitialized): ...new function.
19874         (pass_cse_reciprocals): Replace declaration with that of...
19875         (make_pass_cse_reciprocals): ...new function.
19876         (pass_cse_sincos): Replace declaration with that of...
19877         (make_pass_cse_sincos): ...new function.
19878         (pass_optimize_bswap): Replace declaration with that of...
19879         (make_pass_optimize_bswap): ...new function.
19880         (pass_optimize_widening_mul): Replace declaration with that of...
19881         (make_pass_optimize_widening_mul): ...new function.
19882         (pass_warn_function_return): Replace declaration with that of...
19883         (make_pass_warn_function_return): ...new function.
19884         (pass_warn_function_noreturn): Replace declaration with that of...
19885         (make_pass_warn_function_noreturn): ...new function.
19886         (pass_cselim): Replace declaration with that of...
19887         (make_pass_cselim): ...new function.
19888         (pass_phiopt): Replace declaration with that of...
19889         (make_pass_phiopt): ...new function.
19890         (pass_forwprop): Replace declaration with that of...
19891         (make_pass_forwprop): ...new function.
19892         (pass_phiprop): Replace declaration with that of...
19893         (make_pass_phiprop): ...new function.
19894         (pass_tree_ifcombine): Replace declaration with that of...
19895         (make_pass_tree_ifcombine): ...new function.
19896         (pass_dse): Replace declaration with that of...
19897         (make_pass_dse): ...new function.
19898         (pass_nrv): Replace declaration with that of...
19899         (make_pass_nrv): ...new function.
19900         (pass_rename_ssa_copies): Replace declaration with that of...
19901         (make_pass_rename_ssa_copies): ...new function.
19902         (pass_sink_code): Replace declaration with that of...
19903         (make_pass_sink_code): ...new function.
19904         (pass_fre): Replace declaration with that of...
19905         (make_pass_fre): ...new function.
19906         (pass_check_data_deps): Replace declaration with that of...
19907         (make_pass_check_data_deps): ...new function.
19908         (pass_copy_prop): Replace declaration with that of...
19909         (make_pass_copy_prop): ...new function.
19910         (pass_vrp): Replace declaration with that of...
19911         (make_pass_vrp): ...new function.
19912         (pass_uncprop): Replace declaration with that of...
19913         (make_pass_uncprop): ...new function.
19914         (pass_return_slot): Replace declaration with that of...
19915         (make_pass_return_slot): ...new function.
19916         (pass_reassoc): Replace declaration with that of...
19917         (make_pass_reassoc): ...new function.
19918         (pass_rebuild_cgraph_edges): Replace declaration with that of...
19919         (make_pass_rebuild_cgraph_edges): ...new function.
19920         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
19921         (make_pass_remove_cgraph_callee_edges): ...new function.
19922         (pass_build_cgraph_edges): Replace declaration with that of...
19923         (make_pass_build_cgraph_edges): ...new function.
19924         (pass_local_pure_const): Replace declaration with that of...
19925         (make_pass_local_pure_const): ...new function.
19926         (pass_tracer): Replace declaration with that of...
19927         (make_pass_tracer): ...new function.
19928         (pass_warn_unused_result): Replace declaration with that of...
19929         (make_pass_warn_unused_result): ...new function.
19930         (pass_diagnose_tm_blocks): Replace declaration with that of...
19931         (make_pass_diagnose_tm_blocks): ...new function.
19932         (pass_lower_tm): Replace declaration with that of...
19933         (make_pass_lower_tm): ...new function.
19934         (pass_tm_init): Replace declaration with that of...
19935         (make_pass_tm_init): ...new function.
19936         (pass_tm_mark): Replace declaration with that of...
19937         (make_pass_tm_mark): ...new function.
19938         (pass_tm_memopt): Replace declaration with that of...
19939         (make_pass_tm_memopt): ...new function.
19940         (pass_tm_edges): Replace declaration with that of...
19941         (make_pass_tm_edges): ...new function.
19942         (pass_split_functions): Replace declaration with that of...
19943         (make_pass_split_functions): ...new function.
19944         (pass_feedback_split_functions): Replace declaration with that of...
19945         (make_pass_feedback_split_functions): ...new function.
19946         (pass_strength_reduction): Replace declaration with that of...
19947         (make_pass_strength_reduction): ...new function.
19948         (pass_ipa_lower_emutls): Replace declaration with that of...
19949         (make_pass_ipa_lower_emutls): ...new function.
19950         (pass_ipa_function_and_variable_visibility): Replace declaration with
19951         that of...
19952         (make_pass_ipa_function_and_variable_visibility): ...new function.
19953         (pass_ipa_tree_profile): Replace declaration with that of...
19954         (make_pass_ipa_tree_profile): ...new function.
19955         (pass_early_local_passes): Replace declaration with that of...
19956         (make_pass_early_local_passes): ...new function.
19957         (pass_ipa_whole_program_visibility): Replace declaration with that
19958         of...
19959         (make_pass_ipa_whole_program_visibility): ...new function.
19960         (pass_ipa_lto_gimple_out): Replace declaration with that of...
19961         (make_pass_ipa_lto_gimple_out): ...new function.
19962         (pass_ipa_increase_alignment): Replace declaration with that of...
19963         (make_pass_ipa_increase_alignment): ...new function.
19964         (pass_ipa_inline): Replace declaration with that of...
19965         (make_pass_ipa_inline): ...new function.
19966         (pass_ipa_free_lang_data): Replace declaration with that of...
19967         (make_pass_ipa_free_lang_data): ...new function.
19968         (pass_ipa_free_inline_summary): Replace declaration with that of...
19969         (make_pass_ipa_free_inline_summary): ...new function.
19970         (pass_ipa_cp): Replace declaration with that of...
19971         (make_pass_ipa_cp): ...new function.
19972         (pass_ipa_reference): Replace declaration with that of...
19973         (make_pass_ipa_reference): ...new function.
19974         (pass_ipa_pure_const): Replace declaration with that of...
19975         (make_pass_ipa_pure_const): ...new function.
19976         (pass_ipa_pta): Replace declaration with that of...
19977         (make_pass_ipa_pta): ...new function.
19978         (pass_ipa_lto_finish_out): Replace declaration with that of...
19979         (make_pass_ipa_lto_finish_out): ...new function.
19980         (pass_ipa_tm): Replace declaration with that of...
19981         (make_pass_ipa_tm): ...new function.
19982         (pass_ipa_profile): Replace declaration with that of...
19983         (make_pass_ipa_profile): ...new function.
19984         (pass_ipa_cdtor_merge): Replace declaration with that of...
19985         (make_pass_ipa_cdtor_merge): ...new function.
19986         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
19987         of...
19988         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19989         (pass_init_datastructures): Replace declaration with that of...
19990         (make_pass_init_datastructures): ...new function.
19991         (pass_fixup_cfg): Replace declaration with that of...
19992         (make_pass_fixup_cfg): ...new function.
19993         (pass_expand): Replace declaration with that of...
19994         (make_pass_expand): ...new function.
19995         (pass_instantiate_virtual_regs): Replace declaration with that of...
19996         (make_pass_instantiate_virtual_regs): ...new function.
19997         (pass_rtl_fwprop): Replace declaration with that of...
19998         (make_pass_rtl_fwprop): ...new function.
19999         (pass_rtl_fwprop_addr): Replace declaration with that of...
20000         (make_pass_rtl_fwprop_addr): ...new function.
20001         (pass_jump): Replace declaration with that of...
20002         (make_pass_jump): ...new function.
20003         (pass_jump2): Replace declaration with that of...
20004         (make_pass_jump2): ...new function.
20005         (pass_lower_subreg): Replace declaration with that of...
20006         (make_pass_lower_subreg): ...new function.
20007         (pass_cse): Replace declaration with that of...
20008         (make_pass_cse): ...new function.
20009         (pass_fast_rtl_dce): Replace declaration with that of...
20010         (make_pass_fast_rtl_dce): ...new function.
20011         (pass_ud_rtl_dce): Replace declaration with that of...
20012         (make_pass_ud_rtl_dce): ...new function.
20013         (pass_rtl_dce): Replace declaration with that of...
20014         (make_pass_rtl_dce): ...new function.
20015         (pass_rtl_dse1): Replace declaration with that of...
20016         (make_pass_rtl_dse1): ...new function.
20017         (pass_rtl_dse2): Replace declaration with that of...
20018         (make_pass_rtl_dse2): ...new function.
20019         (pass_rtl_dse3): Replace declaration with that of...
20020         (make_pass_rtl_dse3): ...new function.
20021         (pass_rtl_cprop): Replace declaration with that of...
20022         (make_pass_rtl_cprop): ...new function.
20023         (pass_rtl_pre): Replace declaration with that of...
20024         (make_pass_rtl_pre): ...new function.
20025         (pass_rtl_hoist): Replace declaration with that of...
20026         (make_pass_rtl_hoist): ...new function.
20027         (pass_rtl_store_motion): Replace declaration with that of...
20028         (make_pass_rtl_store_motion): ...new function.
20029         (pass_cse_after_global_opts): Replace declaration with that of...
20030         (make_pass_cse_after_global_opts): ...new function.
20031         (pass_rtl_ifcvt): Replace declaration with that of...
20032         (make_pass_rtl_ifcvt): ...new function.
20033         (pass_into_cfg_layout_mode): Replace declaration with that of...
20034         (make_pass_into_cfg_layout_mode): ...new function.
20035         (pass_outof_cfg_layout_mode): Replace declaration with that of...
20036         (make_pass_outof_cfg_layout_mode): ...new function.
20037         (pass_loop2): Replace declaration with that of...
20038         (make_pass_loop2): ...new function.
20039         (pass_rtl_loop_init): Replace declaration with that of...
20040         (make_pass_rtl_loop_init): ...new function.
20041         (pass_rtl_move_loop_invariants): Replace declaration with that of...
20042         (make_pass_rtl_move_loop_invariants): ...new function.
20043         (pass_rtl_unswitch): Replace declaration with that of...
20044         (make_pass_rtl_unswitch): ...new function.
20045         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20046         (make_pass_rtl_unroll_and_peel_loops): ...new function.
20047         (pass_rtl_doloop): Replace declaration with that of...
20048         (make_pass_rtl_doloop): ...new function.
20049         (pass_rtl_loop_done): Replace declaration with that of...
20050         (make_pass_rtl_loop_done): ...new function.
20051         (pass_web): Replace declaration with that of...
20052         (make_pass_web): ...new function.
20053         (pass_cse2): Replace declaration with that of...
20054         (make_pass_cse2): ...new function.
20055         (pass_df_initialize_opt): Replace declaration with that of...
20056         (make_pass_df_initialize_opt): ...new function.
20057         (pass_df_initialize_no_opt): Replace declaration with that of...
20058         (make_pass_df_initialize_no_opt): ...new function.
20059         (pass_reginfo_init): Replace declaration with that of...
20060         (make_pass_reginfo_init): ...new function.
20061         (pass_inc_dec): Replace declaration with that of...
20062         (make_pass_inc_dec): ...new function.
20063         (pass_stack_ptr_mod): Replace declaration with that of...
20064         (make_pass_stack_ptr_mod): ...new function.
20065         (pass_initialize_regs): Replace declaration with that of...
20066         (make_pass_initialize_regs): ...new function.
20067         (pass_combine): Replace declaration with that of...
20068         (make_pass_combine): ...new function.
20069         (pass_if_after_combine): Replace declaration with that of...
20070         (make_pass_if_after_combine): ...new function.
20071         (pass_ree): Replace declaration with that of...
20072         (make_pass_ree): ...new function.
20073         (pass_partition_blocks): Replace declaration with that of...
20074         (make_pass_partition_blocks): ...new function.
20075         (pass_match_asm_constraints): Replace declaration with that of...
20076         (make_pass_match_asm_constraints): ...new function.
20077         (pass_regmove): Replace declaration with that of...
20078         (make_pass_regmove): ...new function.
20079         (pass_split_all_insns): Replace declaration with that of...
20080         (make_pass_split_all_insns): ...new function.
20081         (pass_fast_rtl_byte_dce): Replace declaration with that of...
20082         (make_pass_fast_rtl_byte_dce): ...new function.
20083         (pass_lower_subreg2): Replace declaration with that of...
20084         (make_pass_lower_subreg2): ...new function.
20085         (pass_mode_switching): Replace declaration with that of...
20086         (make_pass_mode_switching): ...new function.
20087         (pass_sms): Replace declaration with that of...
20088         (make_pass_sms): ...new function.
20089         (pass_sched): Replace declaration with that of...
20090         (make_pass_sched): ...new function.
20091         (pass_ira): Replace declaration with that of...
20092         (make_pass_ira): ...new function.
20093         (pass_reload): Replace declaration with that of...
20094         (make_pass_reload): ...new function.
20095         (pass_clean_state): Replace declaration with that of...
20096         (make_pass_clean_state): ...new function.
20097         (pass_branch_prob): Replace declaration with that of...
20098         (make_pass_branch_prob): ...new function.
20099         (pass_value_profile_transformations): Replace declaration with that
20100         of...
20101         (make_pass_value_profile_transformations): ...new function.
20102         (pass_postreload_cse): Replace declaration with that of...
20103         (make_pass_postreload_cse): ...new function.
20104         (pass_gcse2): Replace declaration with that of...
20105         (make_pass_gcse2): ...new function.
20106         (pass_split_after_reload): Replace declaration with that of...
20107         (make_pass_split_after_reload): ...new function.
20108         (pass_branch_target_load_optimize1): Replace declaration with that
20109         of...
20110         (make_pass_branch_target_load_optimize1): ...new function.
20111         (pass_thread_prologue_and_epilogue): Replace declaration with that
20112         of...
20113         (make_pass_thread_prologue_and_epilogue): ...new function.
20114         (pass_stack_adjustments): Replace declaration with that of...
20115         (make_pass_stack_adjustments): ...new function.
20116         (pass_peephole2): Replace declaration with that of...
20117         (make_pass_peephole2): ...new function.
20118         (pass_if_after_reload): Replace declaration with that of...
20119         (make_pass_if_after_reload): ...new function.
20120         (pass_regrename): Replace declaration with that of...
20121         (make_pass_regrename): ...new function.
20122         (pass_cprop_hardreg): Replace declaration with that of...
20123         (make_pass_cprop_hardreg): ...new function.
20124         (pass_reorder_blocks): Replace declaration with that of...
20125         (make_pass_reorder_blocks): ...new function.
20126         (pass_branch_target_load_optimize2): Replace declaration with that
20127         of...
20128         (make_pass_branch_target_load_optimize2): ...new function.
20129         (pass_leaf_regs): Replace declaration with that of...
20130         (make_pass_leaf_regs): ...new function.
20131         (pass_split_before_sched2): Replace declaration with that of...
20132         (make_pass_split_before_sched2): ...new function.
20133         (pass_compare_elim_after_reload): Replace declaration with that of...
20134         (make_pass_compare_elim_after_reload): ...new function.
20135         (pass_sched2): Replace declaration with that of...
20136         (make_pass_sched2): ...new function.
20137         (pass_stack_regs): Replace declaration with that of...
20138         (make_pass_stack_regs): ...new function.
20139         (pass_stack_regs_run): Replace declaration with that of...
20140         (make_pass_stack_regs_run): ...new function.
20141         (pass_df_finish): Replace declaration with that of...
20142         (make_pass_df_finish): ...new function.
20143         (pass_compute_alignments): Replace declaration with that of...
20144         (make_pass_compute_alignments): ...new function.
20145         (pass_duplicate_computed_gotos): Replace declaration with that of...
20146         (make_pass_duplicate_computed_gotos): ...new function.
20147         (pass_variable_tracking): Replace declaration with that of...
20148         (make_pass_variable_tracking): ...new function.
20149         (pass_free_cfg): Replace declaration with that of...
20150         (make_pass_free_cfg): ...new function.
20151         (pass_machine_reorg): Replace declaration with that of...
20152         (make_pass_machine_reorg): ...new function.
20153         (pass_cleanup_barriers): Replace declaration with that of...
20154         (make_pass_cleanup_barriers): ...new function.
20155         (pass_delay_slots): Replace declaration with that of...
20156         (make_pass_delay_slots): ...new function.
20157         (pass_split_for_shorten_branches): Replace declaration with that of...
20158         (make_pass_split_for_shorten_branches): ...new function.
20159         (pass_split_before_regstack): Replace declaration with that of...
20160         (make_pass_split_before_regstack): ...new function.
20161         (pass_convert_to_eh_region_ranges): Replace declaration with that
20162         of...
20163         (make_pass_convert_to_eh_region_ranges): ...new function.
20164         (pass_shorten_branches): Replace declaration with that of...
20165         (make_pass_shorten_branches): ...new function.
20166         (pass_set_nothrow_function_flags): Replace declaration with that of...
20167         (make_pass_set_nothrow_function_flags): ...new function.
20168         (pass_dwarf2_frame): Replace declaration with that of...
20169         (make_pass_dwarf2_frame): ...new function.
20170         (pass_final): Replace declaration with that of...
20171         (make_pass_final): ...new function.
20172         (pass_rtl_seqabstr): Replace declaration with that of...
20173         (make_pass_rtl_seqabstr): ...new function.
20174         (pass_release_ssa_names): Replace declaration with that of...
20175         (make_pass_release_ssa_names): ...new function.
20176         (pass_early_inline): Replace declaration with that of...
20177         (make_pass_early_inline): ...new function.
20178         (pass_inline_parameters): Replace declaration with that of...
20179         (make_pass_inline_parameters): ...new function.
20180         (pass_update_address_taken): Replace declaration with that of...
20181         (make_pass_update_address_taken): ...new function.
20182         (pass_convert_switch): Replace declaration with that of...
20183         (make_pass_convert_switch): ...new function.
20184         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20185         to a subclass of simple_ipa_opt_pass along with...
20186         (pass_data_ipa_tree_profile): ...new pass_data instance and...
20187         (make_pass_ipa_tree_profile): ...new function.
20188         * tree-sra.c (pass_sra_early): Convert from a global struct to a
20189         subclass of gimple_opt_pass along with...
20190         (pass_data_sra_early): ...new pass_data instance and...
20191         (make_pass_sra_early): ...new function.
20192         (pass_sra): Convert from a global struct to a subclass of
20193         gimple_opt_pass along with...
20194         (pass_data_sra): ...new pass_data instance and...
20195         (make_pass_sra): ...new function.
20196         (pass_early_ipa_sra): Convert from a global struct to a subclass of
20197         gimple_opt_pass along with...
20198         (pass_data_early_ipa_sra): ...new pass_data instance and...
20199         (make_pass_early_ipa_sra): ...new function.
20200         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20201         subclass of gimple_opt_pass along with...
20202         (pass_data_ccp): ...new pass_data instance and...
20203         (make_pass_ccp): ...new function.
20204         (pass_fold_builtins): Convert from a global struct to a subclass of
20205         gimple_opt_pass along with...
20206         (pass_data_fold_builtins): ...new pass_data instance and...
20207         (make_pass_fold_builtins): ...new function.
20208         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20209         subclass of gimple_opt_pass along with...
20210         (pass_data_copy_prop): ...new pass_data instance and...
20211         (make_pass_copy_prop): ...new function.
20212         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20213         global struct to a subclass of gimple_opt_pass along with...
20214         (pass_data_rename_ssa_copies): ...new pass_data instance and...
20215         (make_pass_rename_ssa_copies): ...new function.
20216         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20217         subclass of gimple_opt_pass along with...
20218         (pass_data_dce): ...new pass_data instance and...
20219         (make_pass_dce): ...new function.
20220         (pass_dce_loop): Convert from a global struct to a subclass of
20221         gimple_opt_pass along with...
20222         (pass_data_dce_loop): ...new pass_data instance and...
20223         (make_pass_dce_loop): ...new function.
20224         (pass_cd_dce): Convert from a global struct to a subclass of
20225         gimple_opt_pass along with...
20226         (pass_data_cd_dce): ...new pass_data instance and...
20227         (make_pass_cd_dce): ...new function.
20228         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20229         subclass of gimple_opt_pass along with...
20230         (pass_data_dominator): ...new pass_data instance and...
20231         (make_pass_dominator): ...new function.
20232         (pass_phi_only_cprop): Convert from a global struct to a subclass of
20233         gimple_opt_pass along with...
20234         (pass_data_phi_only_cprop): ...new pass_data instance and...
20235         (make_pass_phi_only_cprop): ...new function.
20236         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20237         subclass of gimple_opt_pass along with...
20238         (pass_data_dse): ...new pass_data instance and...
20239         (make_pass_dse): ...new function.
20240         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20241         a subclass of gimple_opt_pass along with...
20242         (pass_data_forwprop): ...new pass_data instance and...
20243         (make_pass_forwprop): ...new function.
20244         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20245         struct to a subclass of gimple_opt_pass along with...
20246         (pass_data_tree_ifcombine): ...new pass_data instance and...
20247         (make_pass_tree_ifcombine): ...new function.
20248         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20249         subclass of gimple_opt_pass along with...
20250         (pass_data_ch): ...new pass_data instance and...
20251         (make_pass_ch): ...new function.
20252         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20253         subclass of gimple_opt_pass along with...
20254         (pass_data_tree_loop): ...new pass_data instance and...
20255         (make_pass_tree_loop): ...new function.
20256         (pass_tree_loop_init): Convert from a global struct to a subclass of
20257         gimple_opt_pass along with...
20258         (pass_data_tree_loop_init): ...new pass_data instance and...
20259         (make_pass_tree_loop_init): ...new function.
20260         (pass_lim): Convert from a global struct to a subclass of
20261         gimple_opt_pass along with...
20262         (pass_data_lim): ...new pass_data instance and...
20263         (make_pass_lim): ...new function.
20264         (pass_tree_unswitch): Convert from a global struct to a subclass of
20265         gimple_opt_pass along with...
20266         (pass_data_tree_unswitch): ...new pass_data instance and...
20267         (make_pass_tree_unswitch): ...new function.
20268         (pass_predcom): Convert from a global struct to a subclass of
20269         gimple_opt_pass along with...
20270         (pass_data_predcom): ...new pass_data instance and...
20271         (make_pass_predcom): ...new function.
20272         (pass_vectorize): Convert from a global struct to a subclass of
20273         gimple_opt_pass along with...
20274         (pass_data_vectorize): ...new pass_data instance and...
20275         (make_pass_vectorize): ...new function.
20276         (pass_graphite): Convert from a global struct to a subclass of
20277         gimple_opt_pass along with...
20278         (pass_data_graphite): ...new pass_data instance and...
20279         (make_pass_graphite): ...new function.
20280         (pass_graphite_transforms): Convert from a global struct to a subclass
20281         of gimple_opt_pass along with...
20282         (pass_data_graphite_transforms): ...new pass_data instance and...
20283         (make_pass_graphite_transforms): ...new function.
20284         (pass_check_data_deps): Convert from a global struct to a subclass of
20285         gimple_opt_pass along with...
20286         (pass_data_check_data_deps): ...new pass_data instance and...
20287         (make_pass_check_data_deps): ...new function.
20288         (pass_iv_canon): Convert from a global struct to a subclass of
20289         gimple_opt_pass along with...
20290         (pass_data_iv_canon): ...new pass_data instance and...
20291         (make_pass_iv_canon): ...new function.
20292         (pass_scev_cprop): Convert from a global struct to a subclass of
20293         gimple_opt_pass along with...
20294         (pass_data_scev_cprop): ...new pass_data instance and...
20295         (make_pass_scev_cprop): ...new function.
20296         (pass_record_bounds): Convert from a global struct to a subclass of
20297         gimple_opt_pass along with...
20298         (pass_data_record_bounds): ...new pass_data instance and...
20299         (make_pass_record_bounds): ...new function.
20300         (pass_complete_unroll): Convert from a global struct to a subclass of
20301         gimple_opt_pass along with...
20302         (pass_data_complete_unroll): ...new pass_data instance and...
20303         (make_pass_complete_unroll): ...new function.
20304         (pass_complete_unrolli): Convert from a global struct to a subclass of
20305         gimple_opt_pass along with...
20306         (pass_data_complete_unrolli): ...new pass_data instance and...
20307         (make_pass_complete_unrolli): ...new function.
20308         (pass_parallelize_loops): Convert from a global struct to a subclass
20309         of gimple_opt_pass along with...
20310         (pass_data_parallelize_loops): ...new pass_data instance and...
20311         (make_pass_parallelize_loops): ...new function.
20312         (pass_loop_prefetch): Convert from a global struct to a subclass of
20313         gimple_opt_pass along with...
20314         (pass_data_loop_prefetch): ...new pass_data instance and...
20315         (make_pass_loop_prefetch): ...new function.
20316         (pass_iv_optimize): Convert from a global struct to a subclass of
20317         gimple_opt_pass along with...
20318         (pass_data_iv_optimize): ...new pass_data instance and...
20319         (make_pass_iv_optimize): ...new function.
20320         (pass_tree_loop_done): Convert from a global struct to a subclass of
20321         gimple_opt_pass along with...
20322         (pass_data_tree_loop_done): ...new pass_data instance and...
20323         (make_pass_tree_loop_done): ...new function.
20324         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20325         struct to a subclass of gimple_opt_pass along with...
20326         (pass_data_cse_reciprocals): ...new pass_data instance and...
20327         (make_pass_cse_reciprocals): ...new function.
20328         (pass_cse_sincos): Convert from a global struct to a subclass of
20329         gimple_opt_pass along with...
20330         (pass_data_cse_sincos): ...new pass_data instance and...
20331         (make_pass_cse_sincos): ...new function.
20332         (pass_optimize_bswap): Convert from a global struct to a subclass of
20333         gimple_opt_pass along with...
20334         (pass_data_optimize_bswap): ...new pass_data instance and...
20335         (make_pass_optimize_bswap): ...new function.
20336         (pass_optimize_widening_mul): Convert from a global struct to a
20337         subclass of gimple_opt_pass along with...
20338         (pass_data_optimize_widening_mul): ...new pass_data instance and...
20339         (make_pass_optimize_widening_mul): ...new function.
20340         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20341         subclass of gimple_opt_pass along with...
20342         (pass_data_phiopt): ...new pass_data instance and...
20343         (make_pass_phiopt): ...new function.
20344         (pass_cselim): Convert from a global struct to a subclass of
20345         gimple_opt_pass along with...
20346         (pass_data_cselim): ...new pass_data instance and...
20347         (make_pass_cselim): ...new function.
20348         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20349         subclass of gimple_opt_pass along with...
20350         (pass_data_phiprop): ...new pass_data instance and...
20351         (make_pass_phiprop): ...new function.
20352         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20353         subclass of gimple_opt_pass along with...
20354         (pass_data_pre): ...new pass_data instance and...
20355         (make_pass_pre): ...new function.
20356         (pass_fre): Convert from a global struct to a subclass of
20357         gimple_opt_pass along with...
20358         (pass_data_fre): ...new pass_data instance and...
20359         (make_pass_fre): ...new function.
20360         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20361         subclass of gimple_opt_pass along with...
20362         (pass_data_reassoc): ...new pass_data instance and...
20363         (make_pass_reassoc): ...new function.
20364         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20365         subclass of gimple_opt_pass along with...
20366         (pass_data_sink_code): ...new pass_data instance and...
20367         (make_pass_sink_code): ...new function.
20368         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20369         subclass of gimple_opt_pass along with...
20370         (pass_data_strlen): ...new pass_data instance and...
20371         (make_pass_strlen): ...new function.
20372         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20373         struct to a subclass of gimple_opt_pass along with...
20374         (pass_data_build_alias): ...new pass_data instance and...
20375         (make_pass_build_alias): ...new function.
20376         (pass_build_ealias): Convert from a global struct to a subclass of
20377         gimple_opt_pass along with...
20378         (pass_data_build_ealias): ...new pass_data instance and...
20379         (make_pass_build_ealias): ...new function.
20380         (pass_ipa_pta): Convert from a global struct to a subclass of
20381         simple_ipa_opt_pass along with...
20382         (pass_data_ipa_pta): ...new pass_data instance and...
20383         (make_pass_ipa_pta): ...new function.
20384         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20385         subclass of gimple_opt_pass along with...
20386         (pass_data_uncprop): ...new pass_data instance and...
20387         (make_pass_uncprop): ...new function.
20388         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20389         global struct to a subclass of gimple_opt_pass along with...
20390         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20391         (make_pass_late_warn_uninitialized): ...new function.
20392         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20393         to a subclass of gimple_opt_pass along with...
20394         (pass_data_init_datastructures): ...new pass_data instance and...
20395         (make_pass_init_datastructures): ...new function.
20396         (pass_early_warn_uninitialized): Convert from a global struct to a
20397         subclass of gimple_opt_pass along with...
20398         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20399         (make_pass_early_warn_uninitialized): ...new function.
20400         (pass_update_address_taken): Convert from a global struct to a
20401         subclass of gimple_opt_pass along with...
20402         (pass_data_update_address_taken): ...new pass_data instance and...
20403         (make_pass_update_address_taken): ...new function.
20404         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20405         struct to a subclass of gimple_opt_pass along with...
20406         (pass_data_release_ssa_names): ...new pass_data instance and...
20407         (make_pass_release_ssa_names): ...new function.
20408         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20409         subclass of gimple_opt_pass along with...
20410         (pass_data_stdarg): ...new pass_data instance and...
20411         (make_pass_stdarg): ...new function.
20412         * tree-switch-conversion.c (pass_convert_switch): Convert from a
20413         global struct to a subclass of gimple_opt_pass along with...
20414         (pass_data_convert_switch): ...new pass_data instance and...
20415         (make_pass_convert_switch): ...new function.
20416         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20417         to a subclass of gimple_opt_pass along with...
20418         (pass_data_tail_recursion): ...new pass_data instance and...
20419         (make_pass_tail_recursion): ...new function.
20420         (pass_tail_calls): Convert from a global struct to a subclass of
20421         gimple_opt_pass along with...
20422         (pass_data_tail_calls): ...new pass_data instance and...
20423         (make_pass_tail_calls): ...new function.
20424         * tree-vect-generic.c (pass_lower_vector): Convert from a global
20425         struct to a subclass of gimple_opt_pass along with...
20426         (pass_data_lower_vector): ...new pass_data instance and...
20427         (make_pass_lower_vector): ...new function.
20428         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20429         gimple_opt_pass along with...
20430         (pass_data_lower_vector_ssa): ...new pass_data instance and...
20431         (make_pass_lower_vector_ssa): ...new function.
20432         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20433         to a subclass of gimple_opt_pass along with...
20434         (pass_data_slp_vectorize): ...new pass_data instance and...
20435         (make_pass_slp_vectorize): ...new function.
20436         (pass_ipa_increase_alignment): Convert from a global struct to a
20437         subclass of simple_ipa_opt_pass along with...
20438         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20439         (make_pass_ipa_increase_alignment): ...new function.
20440         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20441         gimple_opt_pass along with...
20442         (pass_data_vrp): ...new pass_data instance and...
20443         (make_pass_vrp): ...new function.
20444         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20445         subclass of simple_ipa_opt_pass along with...
20446         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20447         (make_pass_ipa_free_lang_data): ...new function.
20448         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20449         gimple_opt_pass along with...
20450         (pass_data_tsan): ...new pass_data instance and...
20451         (make_pass_tsan): ...new function.
20452         (pass_tsan_O0): Convert from a global struct to a subclass of
20453         gimple_opt_pass along with...
20454         (pass_data_tsan_O0): ...new pass_data instance and...
20455         (make_pass_tsan_O0): ...new function.
20456         * var-tracking.c (pass_variable_tracking): Convert from a global
20457         struct to a subclass of rtl_opt_pass along with...
20458         (pass_data_variable_tracking): ...new pass_data instance and...
20459         (make_pass_variable_tracking): ...new function.
20460         * web.c (pass_web): Convert from a global struct to a subclass of
20461         rtl_opt_pass along with...
20462         (pass_data_web): ...new pass_data instance and...
20463         (make_pass_web): ...new function.
20464         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20465         declaration with that of...
20466         (make_pass_mode_switch_use): ...new function.
20467         (pass_resolve_sw_modes): Replace declaration with that of...
20468         (make_pass_resolve_sw_modes): ...new function.
20469         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20470         from a global struct to a subclass of rtl_opt_pass along with...
20471         (pass_data_mode_switch_use): ...new pass_data instance and...
20472         (make_pass_mode_switch_use): ...new function.
20473         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20474         from a global struct to a subclass of rtl_opt_pass along with...
20475         (pass_data_resolve_sw_modes): ...new pass_data instance and...
20476         (make_pass_resolve_sw_modes): ...new function.
20477         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20478         struct to a subclass of rtl_opt_pass along with...
20479         (pass_data_insert_vzeroupper): ...new pass_data instance and...
20480         (make_pass_insert_vzeroupper): ...new function.
20481         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20482         global struct to a subclass of rtl_opt_pass along with...
20483         (pass_data_work_around_errata): ...new pass_data instance and...
20484         (make_pass_work_around_errata): ...new function.
20485         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20486         struct to a subclass of rtl_opt_pass along with...
20487         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20488         (make_pass_mips_machine_reorg2): ...new function.
20490 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20492         * passes.c (pass_manager::operator new): New.
20494 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20496         Handwritten part of conversion of passes to C++ classes.
20498         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20499         (toplev.o): Add dep on PASS_MANAGER_H.
20500         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20501         of early local pases to reflect this moving from a global to a
20502         member of gcc::pass_manager.
20503         (cgraph_add_new_function): Likewise.
20504         * lto-cgraph.c (lto_output_node): Update for conversion of
20505         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20506         * passes.c (opt_pass::clone): New.
20507         (opt_pass::gate): New.
20508         (opt_pass::execute): New.
20509         (opt_pass::opt_pass): New.
20510         (pass_manager::execute_early_local_passes): New.
20511         (pass_manager::execute_pass_mode_switching): new.
20512         (finish_optimization_passes): Convert to...
20513         (pass_manager::finish_optimization_passes): ...this.
20514         (finish_optimization_passes): Update for conversion of passes to
20515         C++ classes.
20516         (register_dump_files_1): Use has_gate since we cannot portably
20517         check a vtable entry against NULL.
20518         (dump_one_pass): Likewise.
20519         (ipa_write_summaries_2): Likewise.
20520         (ipa_write_optimization_summaries_1): Likewise.
20521         (ipa_read_summaries_1): Likewise.
20522         (ipa_read_optimization_summaries_1): Likewise.
20523         (execute_ipa_stmt_fixups): Likewise.
20524         (pass_manager::pass_manager): Rewrite pass-creation, invoking
20525         pass-creation functions rather than wiring up globals, and
20526         storing the results in fields of pass_manager generated using
20527         pass-instances.def.
20528         (pass_manager::dump_profile_report): Update for conversion of
20529         passes to C++ classes.
20530         (pass_manager::execute_ipa_summary_passes): Likewise.
20531         (execute_one_ipa_transform_pass): Likewise.
20532         (execute_one_pass): Use has_gate and has_execute since we cannot
20533         portably check a vtable entry against NULL.
20534         * pass_manager.h (pass_manager::finish_optimization_passes): New.
20535         (pass_manager): Use pass-instances.def to add fields for the
20536         various pass instances.
20537         * toplev.c (finalize): Update for move of
20538         finish_optimization_passes to a method of gcc::pass_manager.
20539         * toplev.h (finish_optimization_passes): Move to method of class
20540         pass_manager.
20541         * tree-pass.h (struct pass_data): New.
20542         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20543         (opt_pass::gate): Convert to virtual function.
20544         (opt_pass::~opt_pass): New.
20545         (opt_pass::clone): New.
20546         (opt_pass::execute): Convert to virtual function.
20547         (opt_pass::opt_pass): New.
20548         (opt_pass::ctxt_): new.
20549         (gimple_opt_pass): Convert to subclass of opt_pass.
20550         (gimple_opt_pass::gimple_opt_pass): New.
20551         (rtl_opt_pass): Convert to subclass of opt_pass.
20552         (rtl_opt_pass::rtl_opt_pass): New.
20553         (ipa_opt_pass_d): Convert to subclass of opt_pass.
20554         (ipa_opt_pass_d::ipa_opt_pass_d): New.
20555         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20556         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20557         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20558         invocation of pass_mode_switching to reflect this moving from a
20559         global to a member of gcc::pass_manager.
20560         (ix86_option_override): Rework how pass_insert_vzeroupper is
20561         added to the pass_manager to reflect autogenerated changes.
20562         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20564 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
20566         PR rtl-optimization/57708
20567         * recog.c (peep2_find_free_register): Validate all regs in a
20568         multi-reg mode.
20570 2013-08-05  Jan Hubicka  <jh@suse.cz>
20572         PR lto/57602
20573         * cgraph.c (verify_cgraph_node): Accept local flags from other
20574         partitions.
20575         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20576         (function_and_variable_visibility): Likewise.
20577         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20579 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20581         * graph.c (init_graph_slim_pretty_print): Remove.
20582         (print_graph_cfg): Do not call it.  Use local pretty printer.
20583         (start_graph_dump): Likewise.
20585 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20587         * gimple-pretty-print.c (buffer): Remove.
20588         (initialized): Likewise.
20589         (maybe_init_pretty_print): Likewise.
20590         (print_gimple_stmt): Do not call it.  Use non-static local
20591         pretty_printer variable.
20592         (print_gimple_expr): Likewise.
20593         (print_gimple_seq): Likewise.
20594         (gimple_dump_bb): Likewise.
20596 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20598         * asan.c (asan_pp): Remove.
20599         (asan_pp_initialized): Likewise.
20600         (asan_pp_initialize): Likewise.
20601         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
20602         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
20603         (asan_add_global): Likewise.
20605 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20607         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
20608         * diagnostic.h (diagnostic_flush_buffer): Adjust.
20609         * pretty-print.c (pp_formatted_text_data): Likewise.
20610         (pp_indent): Rename from pp_base_indent.
20611         (pp_format): Rename from pp_base_format.
20612         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20613         (pp_format_verbatim): Rename from pp_base_format_verbatim.
20614         (pp_flush): Rename from pp_base_flush.
20615         (pp_set_line_maximum_length): Rename from
20616         pp_base_set_line_maximum_length.
20617         (pp_clear_output_area): Rename from pp_base_clear_output_area.
20618         (pp_set_prefix): Rename from pp_base_set_prefix.
20619         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20620         (pp_emit_prefix): Rename from pp_base_emit_prefix.
20621         (pp_append_text): Rename from pp_base_append_text.
20622         (pp_formatted_text): Rename from pp_base_formatted_text.
20623         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20624         (pp_remaining_character_count_for_line): Rename from
20625         pp_base_remaining_character_count_for_line.
20626         (pp_newline): Rename from pp_base_newline.
20627         (pp_character): Rename from pp_base_character.
20628         (pp_string): Rename from pp_base_string.
20629         (pp_maybe_space): Rename from pp_base_maybe_space.
20630         * asan.c (asan_pp_string): Adjust.
20631         (asan_emit_stack_protection): Likewise.
20632         (asan_add_global): Likewise.
20633         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20634         * tree-mudflap.c (mf_varname_tree): Likewise.
20635         * tree-pretty-print.c (pp_tree_identifier): Rename from
20636         pp_base_tree_identifier.
20637         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20638         Declare as function.
20640 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20642         * pretty-print.h (pp_bar_bar): New.
20643         (pp_ampersand_ampersand): Likewise.
20644         (pp_less_equal): Likewise.
20645         (pp_greater_equal): Likewise.
20646         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20647         printer functions instead of pp_string or operators and punctuators.
20648         (dump_gimple_call): Likewise.
20649         (dump_gimple_omp_for): Likewise.
20650         (dump_gimple_transaction): Likewise.
20651         (dump_gimple_phi): Likewise.
20652         (pp_gimple_stmt_1): Likewise.
20653         * sched-vis.c (print_insn): Likewise.
20654         * tree-mudflap.c (mf_varname_tree): Likewise.
20655         * tree-pretty-print.c (dump_block_node): Likewise.
20656         (dump_generic_node): Likewise.
20658 2013-08-02  Jan Hubicka  <jh@suse.cz>
20660         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
20661         boundaries.
20662         * lto-streamer-out.c (tree_is_indexable): Results decls and
20663         parm decls are not indexable.
20664         (DFS_write_tree_body): Do not follow args and results.
20665         (hash_tree): Likewise.
20666         (output_functions): Rearrange so struct function is needed
20667         only when real body is output; be able to also ouptut abstract
20668         functions; output DECL_ARGUMENTS and DECL_RESULT.
20669         (lto_output): When not in WPA, ale store abstract functions.
20670         (write_symbol): Do not care about RESULT_DECL.
20671         (output_symbol_p): Handle correctly sbtract decls.
20672         * lto-streamer-in.c (input_function): Rearrange so struct
20673         function can be NULL at entry; allow streaming of
20674         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20675         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20676         sanity check during LTO.
20677         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20678         RESULT_DECl and DECL_ARGUMENTS.
20679         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20680         Likewise.
20682 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20684         * pretty-print.h (pp_underscore): New.
20685         (pp_comma): Tidy.
20686         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20687         printer functions instead of pp_character.
20688         (dump_binary_rhs): Likewise.
20689         (dump_ternary_rhs): Likewise.
20690         (dump_gimple_call_args): Likewise.
20691         (pp_points_to_solution): Likewise.
20692         (dump_gimple_call): Likewise.
20693         (dump_gimple_switch): Likewise.
20694         (dump_gimple_cond): Likewise.
20695         (dump_gimple_bind): Likewise.
20696         (dump_gimple_try): Likewise.
20697         (dump_gimple_omp_for): Likewise.
20698         (dump_gimple_omp_continue): Likewise.
20699         (dump_gimple_omp_single): Likewise.
20700         (dump_gimple_omp_sections): Likewise.
20701         (dump_gimple_omp_block): Likewise.
20702         (dump_gimple_omp_critical): Likewise.
20703         (dump_gimple_transaction): Likewise.
20704         (dump_gimple_asm): Likewise.
20705         (dump_gimple_phi): Likewise.
20706         (dump_gimple_omp_parallel): Likewise.
20707         (dump_gimple_omp_task): Likewise.
20708         (dump_gimple_omp_atomic_load): Likewise.
20709         (dump_gimple_omp_atomic_store): Likewise.
20710         (dump_gimple_mem_ops): Likewise.
20711         (pp_gimple_stmt_1): Likewise.
20712         (pp_cfg_jump): Likewise.
20713         (dump_implicit_edges): Likewise.
20714         (gimple_dump_bb_for_graph): Likewise.
20715         * graph.c (draw_cfg_node): Likewise.
20716         * langhooks.c (lhd_print_error_function): Likewise.
20717         * sched-vis.c (print_exp): Likewise.
20718         (print_value): Likewise.
20719         (print_pattern): Likewise.
20720         (print_insn): Likewise.
20721         (rtl_dump_bb_for_graph): Likewise.
20722         * tree-pretty-print.c (dump_function_declaration): Likewise.
20723         (dump_array_domain): Likewise.
20724         (dump_omp_clause): Likewise.
20725         (dump_location): Likewise.
20726         (dump_generic_node): Likewise.
20727         (print_struct_decl): Likewise.
20728         * diagnostic.c (diagnostic_show_locus): Use pp_space.
20730 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20732         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20733         candidate table when replacing a candidate statement.
20734         (replace_rhs_if_not_dup): Likewise.
20735         (replace_one_candidate): Likewise.
20737 2013-08-02  Jan Hubicka  <jh@suse.cz>
20738             Martin Liska  <marxin.liska@gmail.com>
20740         * cgraphunit.c (add_new_function): Fix logic when adding from
20741         late IPA pass.
20742         (assemble_thunk): Rename to ...
20743         (expand_thunk); .. this one; export; get it working with
20744         general functions; make produced gimple valid.
20745         * cgraph.h (expand_thunk): Declare.
20747 2013-08-02  Jan Hubicka  <jh@suse.cz>
20749         * ipa-cp.c (gather_context_independent_values): Use
20750         ipa_get_param_move_cost.
20751         (get_replacement_map): Remove PARAM; move parameter folding
20752         into tree-inline.c
20753         (create_specialized_node): Update.
20754         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
20755         assert that we have gimple body; update move_cost.
20756         (count_formal_params): Assert that we have gimple body.
20757         (ipa_dump_param): New function.
20758         (ipa_alloc_node_params): Break out from ...
20759         (ipa_initialize_node_params): ... here.
20760         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
20761         (ipa_write_node_info): Stream move costs.
20762         (ipa_read_node_info): Read move costs.
20763         (ipa_update_after_lto_read): Do not recompute node params.
20764         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
20765         (ipa_get_param): Check we are not in WPA.
20766         (ipa_get_param_move_cost): New.
20767         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
20768         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
20769         parm numbers to be present.
20771 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20773         PR rtl-optimization/58048
20774         * lra-constraints.c (process_alt_operands): Don't check asm
20775         operand on register.
20777 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
20779         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
20780         the implied StoreLoad barrier for atomic operations if before.
20782 2013-08-02  Jan Hubicka  <jh@suse.cz>
20783             Martin Liska  <marxin.liska@gmail.com>
20785         * cgraph.c (cgraph_function_body_availability): Do not check
20786         cgraph flags.
20787         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
20788         symtab_node_availability): Declare.
20789         * ipa.c (can_replace_by_local_alias): New.
20790         (function_and_variable_visibility): Use it.
20791         * symtab.c (symtab_for_node_and_aliases,
20792         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
20794 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20796         PR rtl-optimization/57963
20797         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
20798         (lra_constraints): Use them.
20800 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
20802         * config/arm/types.md (define_attr "type"): Add "load_acq"
20803         and "store_rel".
20804         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
20805         changes.
20806         (cortex_a53_store1): Likewise.
20808 2013-08-01  Jan Hubicka  <jh@suse.cz>
20810         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
20811         partitions are not needed.
20813 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
20815         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
20816         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
20817         MAYBE_NON_Q_CLASS_P where appropriate.
20819 2013-08-01  Jan Hubicka  <jh@suse.cz>
20821         * cgraph.h (release_function_body): Declare.
20822         * tree.c (free_lang_data_in_decl): Free, parameters and return values
20823         of unused delcarations.
20825 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20827         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
20828         RTL form when subtracting a constant.
20830 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20832         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
20833         Generate canonical plus rtx with negated immediate instead of minus
20834         where appropriate.
20835         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
20837 2013-08-01  Jan Hubicka  <jh@suse.cz>
20839         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
20840         (cgraph_release_function_body): Likewise.
20841         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
20842         * cgraph.h (cgrpah_node): Rename abstract_and_needed
20843         to used_as_abstract_origin.
20844         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
20845         symbols used as abstract origins.
20846         * cgraphunit.c (analyze_functions): Update.
20847         * ipa.c (symtab_remove_unreachable_nodes): Recompute
20848         used_as_abstract_origin.
20849         * tree-inline.c (tree_function_versioning): Update
20850         used_as_abstract_origin; be ready for DECL_RESULT and
20851         DECL_ARGUMENTS to be NULL.
20853         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
20854         for abstract functions.
20855         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
20856         real symbols.
20858 2013-08-01  Jan Hubicka  <jh@suse.cz>
20860         * profile.c (compute_value_histograms): Fix thinko.
20862 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20864         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
20865         aarch-common-protos.h to extra_headers.
20866         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20867         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
20868         * config/aarch64/t-aarch64 (aarch-common.o): Define.
20870 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20872         * config/aarch64/aarch64.md (define_attr "type"): Delete.
20873         Include "../arm/types.md".  Define "type" attribute for all patterns.
20874         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
20875         attribute changes.
20877 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
20879         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
20880         to support power8 load fusion.
20881         (fusion_gpr_mem_load): Likewise.
20883         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
20885         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
20886         declarations for power8 load fusion.
20887         (emit_fusion_gpr_load): Likewise.
20889         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20890         tuning for power8, turn on fusion mode by default.  Turn on sign
20891         extending fusion mode if normal fusion mode is on, and we are at
20892         -O2 or -O3.
20893         (fusion_gpr_load_p): New function, return true if we can fuse an
20894         addis instruction with a dependent load to a GPR.
20895         (emit_fusion_gpr_load): Emit the instructions for power8 load
20896         fusion to GPRs.
20898         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
20899         (VSX load fusion peepholes): New peepholes to fuse together an
20900         addi instruction with a VSX load instruction.
20902         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
20903         peepholes to fuse an addis instruction with a load to a GPR base
20904         register.  If we are supporting sign extending fusions, convert
20905         sign extending loads to zero extending loads and add an explicit
20906         sign extension.
20908 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20910         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
20911         aarch-common-protos.h to extra_headers.
20912         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20913         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
20914         (arm_early_store_addr_dep): Likewise.
20915         (arm_no_early_alu_shift_dep): Likewise.
20916         (arm_no_early_alu_shift_value_dep): Likewise.
20917         (arm_no_early_mul_dep): Likewise.
20918         (arm_no_early_store_addr_dep): Likewise.
20919         (arm_mac_accumulator_is_mul_result): Likewise.
20920         (arm_mac_accumulator_is_result): Likewise.
20921         * config/arm/aarch-common.c: ... here.  New file.
20922         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
20923         here to ...
20924         (arm_early_store_addr_dep): Likewise.
20925         (arm_no_early_alu_shift_dep): Likewise.
20926         (arm_no_early_alu_shift_value_dep): Likewise.
20927         (arm_no_early_mul_dep): Likewise.
20928         (arm_no_early_store_addr_dep): Likewise.
20929         (arm_mac_accumulator_is_mul_result): Likewise.
20930         (arm_mac_accumulator_is_result): Likewise.
20931         * config/arm/aarch-common-protos.h: ... here.  New file.
20932         * config/arm/t-arm (aarch-common.o): Define.
20934 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20936         * config/arm/arm.md: Include new file "types.md".
20937         (define_attr "type"): Move from here to ...
20938         (define_attr "mul32"): Likewise.
20939         (define_attr "mul64"): Likewise.
20940         * config/arm/types.md: ... here.  New file.
20942 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20944         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
20945         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
20947 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20949         * gen-pass-instances.awk: Fix offset of substr().
20951 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
20953         * Makefile.in (pass-instances.def): New.
20954         (passes.o): Replace dependency on passes.def with one on
20955         pass-instances.def
20957         * gen-pass-instances.awk: New.
20959         * passes.c (pass_manager::pass_manager): Use pass-instances.def
20960         rather than passes.def, updating local definition of NEXT_PASS
20961         macro to add an extra NUM parameter (currently unused).
20963 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
20965         * Makefile.in (PASS_MANAGER_H): New.
20966         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
20967         (passes.o): Likewise.
20968         (statistics.o): Likewise.
20969         (cgraphunit.o): Likewise.
20970         (context.o): Depend on PASS_MANAGER_H.
20972         * pass_manager.h: New.
20974         * cgraphunit.c (cgraph_add_new_function): Update for moves
20975         of globals to fields of pass_manager.
20976         (analyze_function): Likewise.
20977         (expand_function): Likewise.
20978         (ipa_passes): Likewise.
20979         (compile): Likewise.
20981         * context.c (context::context): New.
20982         * context.h  (context::context): New.
20983         (context::get_passes): New.
20984         (context::passes_): New.
20986         * lto-cgraph.c (input_node): Update for moves of globals to
20987         fields of pass_manager.
20989         * passes.c (all_passes): Remove, in favor of a field of the
20990         same name within the new class pass_manager.
20991         (all_small_ipa_passes): Likewise.
20992         (all_lowering_passes): Likewise.
20993         (all_regular_ipa_passes): Likewise.
20994         (all_late_ipa_passes): Likewise.
20995         (all_lto_gen_passes): Likewise.
20996         (passes_by_id): Likewise.
20997         (passes_by_id_size): Likewise.
20998         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20999         the new class pass_manager.
21000         (set_pass_for_id): Convert to...
21001         (pass_manager::set_pass_for_id): ...method.
21002         (get_pass_for_id): Convert to...
21003         (pass_manager::get_pass_for_id): ...method.
21004         (register_one_dump_file): Move body of implementation into...
21005         (pass_manager::register_one_dump_file): ...here.
21006         (register_dump_files_1): Convert to...
21007         (pass_manager::register_dump_files_1): ...method.
21008         (register_dump_files): Convert to...
21009         (pass_manager::register_dump_files): ...method.
21010         (create_pass_tab): Update for moves of globals to fields of
21011         pass_manager.
21012         (dump_passes): Move body of implementation into...
21013         (pass_manager::dump_passes): ...here.
21014         (register_pass): Move body of implementation into...
21015         (pass_manager::register_pass): ...here.
21016         (init_optimization_passes): Convert into...
21017         (pass_manager::pass_manager): ...constructor for new
21018         pass_manager class, and initialize the pass_lists array.
21019         (check_profile_consistency): Update for moves of globals to
21020         fields of pass_manager.
21021         (dump_profile_report): Move body of implementation into...
21022         (pass_manager::dump_profile_report): ...here.
21023         (ipa_write_summaries_1): Update for moves of pass lists from
21024         being globals to fields of pass_manager.
21025         (ipa_write_optimization_summaries): Likewise.
21026         (ipa_read_summaries):  Likewise.
21027         (ipa_read_optimization_summaries): Likewise.
21028         (execute_all_ipa_stmt_fixups): Likewise.
21030         * statistics.c (statistics_fini): Update for moves of globals to
21031         fields of pass_manager.
21033         * toplev.c (general_init): Replace call to
21034         init_optimization_passes with construction of the pass_manager
21035         instance.
21037         * tree-pass.h (all_passes): Remove, in favor of a field of the
21038         same name within the new class pass_manager.
21039         (all_small_ipa_passes): Likewise.
21040         (all_lowering_passes): Likewise.
21041         (all_regular_ipa_passes): Likewise.
21042         (all_lto_gen_passes): Likewise.
21043         (all_late_ipa_passes): Likewise.
21044         (passes_by_id): Likewise.
21045         (passes_by_id_size): Likewise.
21046         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21047         the new class pass_manager.
21048         (get_pass_for_id): Remove.
21050 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21052         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21053         configs.
21055 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21057         * arm.md (mulhi3): New expand pattern.
21059 2013-07-30  Jan Hubicka  <jh@suse.cz>
21060             Martin Liska  <marxin.liska@gmail.com>
21062         * profile.c (compute_value_histograms): Do not ICE when
21063         there is mismatch only on some counters.
21065 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21067         PR rtl-optimization/57637
21068         * function.c (move_insn_for_shrink_wrap): Also check the
21069         GEN set of the LIVE problem for the liveness analysis
21070         if it exists, otherwise give up.
21072 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21074         PR tree-optimization/57993
21075         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21076         replaced statement in the candidate table.
21077         (phi_add_costs): Return infinite cost when the hidden basis does
21078         not dominate all phis on which the candidate is dependent.
21079         (replace_one_candidate): Record replaced statement in the
21080         candidate table.
21082 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21084         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21085         (ashlv2si3): New expander.
21086         (*ashlv2si3_i): New define_insn_and_split.
21087         * predicates.md (float_operation): Allow patterns with three
21088         basic sub-patterns.
21090         PR rtl-optimization/58021
21091         * mode-switching.c (create_pre_exit): Always split off preceding
21092         insns if we are not at the basic block head.
21094 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
21096         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21097         (UCLIBC_DYNAMIC_LINKER): New macro.
21098         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21099         `-mnan=2008'.
21100         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21101         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
21102         `-mnan=2008'.
21103         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21104         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21105         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21106         for SF and DF modes.  Use ieee_quad_format for TF mode.
21107         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21108         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21109         (mips_option_override): Handle `-mnan=legacy'.
21110         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21111         `-mabs=2008' and `-mnan=2008'.
21112         (OPTION_DEFAULT_SPECS): Add "nan" default.
21113         (ASM_SPEC): Handle `-mnan='.
21114         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21115         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21116         comment accordingly.
21117         (neg<mode>2): Likewise.
21118         * config/mips/mips.opt (mabs, mnan): New options.
21119         * doc/install.texi (Configuration): Document `--with-nan=' option.
21120         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21121         `-mnan=' options.
21122         (MIPS Options): Document them.
21123         * config.gcc <mips*-*-*>: Handle `--with-nan='.
21124         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21125         * configure: Regenerate.
21126         * config.in: Regenerate.
21128 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21130         * config/i386/i386.md (float post-reload splitters): Do not check
21131         for subregs of SSE registers.
21133 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21134             H.J. Lu  <hongjiu.lu@intel.com>
21136         PR target/57954
21137         PR target/57988
21138         * config/i386/i386.md (post-reload splitter
21139         to avoid partial SSE reg dependency stalls): New pattern.
21141 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21143         * config/s390/s390.md ("movcc"): Swap load and store instructions.
21145 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
21147         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21148         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21150 2013-07-26  Cary Coutant  <ccoutant@google.com>
21152         * dwarf2out.c (die_checksum_ordered): Don't include template
21153         instantiations in signature.
21154         (is_template_parameter): New function.
21155         (is_template_instantiation): New function.
21156         (generate_skeleton_bottom_up): Don't include template instantiations
21157         in type unit DIE.
21158         (generate_skeleton): Likewise.
21159         (break_out_comdat_types): Move recursive call to break out nested
21160         types earlier.
21161         (prune_unused_types_mark_generic_parms_dies): Call
21162         is_template_parameter.
21164 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
21166         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21167         uses vector registers.
21168         * config/aarch64/iterators.md: Add attributes rtn and vas.
21170 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21171             Richard Earnshaw  <richard.earnshaw@arm.com>
21173         * combine.c (simplify_comparison): Re-canonicalize operands
21174         where appropriate.
21175         * config/arm/arm.md (movcond_addsi): New splitter.
21177 2013-07-25  Sterling Augustine  <saugustine@google.com>
21179         * dwarf2out.c (size_of_pubnames): Move code to...
21180         (include_pubname_in_output): ...here.  New.
21181         (want_pubnames): Rearrange.
21182         (output_pubnames): Call include_pubname_in_output.  Move assertion.
21184 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21186         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21188 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21190         PR target/38836
21191         * doc/extend.texi: Remove obsolete builtins. Fix
21192         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21194 2013-07-25  Jan Hubicka  <jh@suse.cz>
21196         * cgraph.c (release_function_body): Break out from ...
21197         (cgraph_release_function_body): ... this one; also release DECL_RESULT
21198         and DECL_ARGUMENTS.
21199         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21200         old_tree in the map.
21201         (create_specialized_node): Update.
21202         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21203         into index.
21204         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21205         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21206         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21207         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21208         DECL_RESULT.
21210 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21212         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21213         addsi3_carryin_alt2_<optab>): Correct output template.
21215 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21217         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21218         Adjust for arm_restrict_it.
21219         Remove trailing whitespace.
21221 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
21223         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21224         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21226         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21228 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
21230         PR rtl-optimization/57960
21231         * lra-constraints.c (process_alt_operands): Use the right mode
21232         when checking strict_low.
21234 2013-07-25  Jan Hubicka  <jh@suse.cz>
21236         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21237         * cgraph.c (cgraph_remove_node): Do not release function body
21238         when in cgraph streaming.
21239         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21240         in other partitions are not considered reachable; fix handling of
21241         clones.
21243 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21245         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21247 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21249         PR target/19599
21250         PR target/57731
21251         PR target/57837
21252         * config/arm/arm.md ("*sibcall_insn): Replace use of
21253         Ss with US. Adjust output for v5 and v4t.
21254         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21256         * config/arm/constraints.md ("Ss"): Rename to US.
21258 2013-07-25  Terry Guo  <terry.guo@arm.com>
21260         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21261         shift_add/shift_sub0/shift_sub1 RTXs.
21263 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
21264             Anton Blanchard  <anton@au1.ibm.com>
21266         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21267         (altivec_vpks<VI_char>ss): Likewise.
21268         (altivec_vpks<VI_char>us): Likewise.
21269         (altivec_vpku<VI_char>us): Likewise.
21270         (altivec_vpku<VI_char>um): Likewise.
21272 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
21274         Introduce context class.
21276         * Makefile.in (CONTEXT_H): New.
21277         (OBJS): Add context.o.
21278         (toplev.o): Add CONTEXT_H to dependencies.
21279         (context.o): New.
21281         * toplev.c (general_init): Create the singleton gcc::context instance.
21283         * context.c: New.
21285         * context.h: New.
21287 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
21289         PR rtl-optimization/57968
21290         * mode-switching.c (create_pre_exit): Allow instructions that
21291         don't set a return register to need a non-exit mode.
21293 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21294             Anton Blanchard  <anton@au1.ibm.com>
21296         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21297         operands to vperm for little endian.
21298         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21299         of lvsl to create the control mask for a vperm for little endian.
21301 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21302             Anton Blanchard  <anton@au1.ibm.com>
21304         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21305         two operands for little-endian.
21307 2013-07-23  Steve Ellcey  <sellcey@mips.com>
21309         * config/mips/mips.c (mips_case_values_threshold): New.
21310         (TARGET_CASE_VALUES_THRESHOLD): Define.
21312 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21313             Anton Blanchard  <anton@au1.ibm.com>
21315         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21316         selection of field for vector splat in little endian mode.
21318 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
21320         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21321         expanders to rs6000.md.
21322         (ior<mode>3): Likewise.
21323         (and<mode>3): Likewise.
21324         (one_cmpl<mode>2): Likewise.
21325         (nor<mode>3): Likewise.
21326         (andc<mode>3): Likewise.
21327         (eqv<mode>3): Likewise.
21328         (nand<mode>3): Likewise.
21329         (orc<mode>3): Likewise.
21331         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21332         declaration.
21334         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21335         to split multi-word logical operations.
21336         (rs6000_split_logical_di): Likewise.
21337         (rs6000_split_logical): Likewise.
21339         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21340         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21341         and allow TImode operations in 32-bit.
21342         (vsx_and<mode>3_64bit): Likewise.
21343         (vsx_ior<mode>3_32bit): Likewise.
21344         (vsx_ior<mode>3_64bit): Likewise.
21345         (vsx_xor<mode>3_32bit): Likewise.
21346         (vsx_xor<mode>3_64bit): Likewise.
21347         (vsx_one_cmpl<mode>2_32bit): Likewise.
21348         (vsx_one_cmpl<mode>2_64bit): Likewise.
21349         (vsx_nor<mode>3_32bit): Likewise.
21350         (vsx_nor<mode>3_64bit): Likewise.
21351         (vsx_andc<mode>3_32bit): Likewise.
21352         (vsx_andc<mode>3_64bit): Likewise.
21353         (vsx_eqv<mode>3_32bit): Likewise.
21354         (vsx_eqv<mode>3_64bit): Likewise.
21355         (vsx_nand<mode>3_32bit): Likewise.
21356         (vsx_nand<mode>3_64bit): Likewise.
21357         (vsx_orc<mode>3_32bit): Likewise.
21358         (vsx_orc<mode>3_64bit): Likewise.
21360         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21361         logical types in GPRs.
21363         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21364         logical insns to rs6000.md, and allow TImode operations in
21365         32-bit.
21366         (altivec_ior<mode>3): Likewise.
21367         (altivec_xor<mode>3): Likewise.
21368         (altivec_one_cmpl<mode>2): Likewise.
21369         (altivec_nor<mode>3): Likewise.
21370         (altivec_andc<mode>3): Likewise.
21372         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21373         attributes for moving the 128-bit logical operations into
21374         rs6000.md.
21375         (BOOL_REGS_OUTPUT): Likewise.
21376         (BOOL_REGS_OP1): Likewise.
21377         (BOOL_REGS_OP2): Likewise.
21378         (BOOL_REGS_UNARY): Likewise.
21379         (BOOL_REGS_AND_CR0): Likewise.
21380         (one_cmpl<mode>2): Add support for DI logical operations on
21381         32-bit, splitting the operations to 32-bit.
21382         (anddi3): Likewise.
21383         (iordi3): Likewise.
21384         (xordi3): Likewise.
21385         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21386         changes to combine the 32/64-bit code, allow logical operations on
21387         TI mode in 32-bit, and to use similar match_operator patterns like
21388         scalar mode uses.  Combine the Altivec and VSX code for logical
21389         operations, and move it here.
21390         (ior<mode>3, 128-bit types): Likewise.
21391         (xor<mode>3, 128-bit types): Likewise.
21392         (one_cmpl<mode>3, 128-bit types): Likewise.
21393         (nor<mode>3, 128-bit types): Likewise.
21394         (andc<mode>3, 128-bit types): Likewise.
21395         (eqv<mode>3, 128-bit types): Likewise.
21396         (nand<mode>3, 128-bit types): Likewise.
21397         (orc<mode>3, 128-bit types): Likewise.
21398         (and<mode>3_internal): Likewise.
21399         (bool<mode>3_internal): Likewise.
21400         (boolc<mode>3_internal1): Likewise.
21401         (boolc<mode>3_internal2): Likewise.
21402         (boolcc<mode>3_internal1): Likewise.
21403         (boolcc<mode>3_internal2): Likewise.
21404         (eqv<mode>3_internal1): Likewise.
21405         (eqv<mode>3_internal2): Likewise.
21406         (one_cmpl1<mode>3_internal): Likewise.
21408 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21410         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21411         Rename flag_stack_usage to flag_stack_usage_info.
21413 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21415         * config/microblaze/sync.md: New file.
21416         * config/microblaze/microblaze.md: Include sync.md
21417         * config/microblaze/microblaze.c: Add print_operand 'y'.
21418         * config/microblaze/constraints.md: Add memory_contraint
21419         'Q' which is a single register.
21421 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
21423         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21425 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21427         * reload.c (find_reloads): Exit loop once we find this operand
21428         cannot be reloaded somehow for this alternative.
21430         * reload.c (find_reloads): Exit loop once we find a hard register.
21432         * rtlanal.c (computed_jump_p): Exit loop once we find label
21433         reference is used.
21435         * i386.c (ix86_pad_returns): Exit loop after setting replace.
21437         * cfgloopmanip.c (remove_path): Exit loop after setting
21438         irred_invalidated.
21440         * gensupport.c (subst_dup): Avoid loop if code is not
21441         MATCH_DUP nor MATCH_OP_DUP.
21443 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
21445         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21447 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21449         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21450         true for SP_REGNUM if mode == ptr_mode.
21451         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21452         with value R0_REGNUM + 31.
21454 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21456         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21457         pad pointer-typed argument downward.
21459 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21461         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21462         and __ILP32__ when the ILP32 model is in use.
21464 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21466         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21467         (aarch64_load_symref_appropriately): In the case of
21468         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21469         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21470         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21471         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21472         if 'mode' doesn't equal to 'ptr_mode'.
21473         (aarch64_output_mi_thunk): Add an assertion on the alignment of
21474         'vcall_offset'; change to call aarch64_emit_move differently depending
21475         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21476         to calculate the upper bound of 'vcall_offset'.
21477         (aarch64_cannot_force_const_mem): Change to also return true if
21478         mode != ptr_mode.
21479         (aarch64_legitimize_reload_address): In the case of large
21480         displacements, add new local variable 'xmode' and an assertion
21481         based on it; change to use 'xmode' to generate the new rtx and
21482         reload.
21483         (aarch64_asm_trampoline_template): Change to generate the template
21484         differently depending on TARGET_ILP32 or not; change to use
21485         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21486         (aarch64_trampoline_size): Removed.
21487         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21488         and replace immediate literals with it.  Change to use 'ptr_mode'
21489         instead of 'DImode' and call convert_memory_address if the mode
21490         of 'fnaddr' doesn't equal to 'ptr_mode'.
21491         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21492         to output symbol.
21493         (aarch64_elf_asm_destructor): Likewise.
21494         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21495         on TARGET_ILP32 instead of aarch64_trampoline_size.
21496         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21497         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21498         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21499         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
21500         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21501         (storewb_pair<GPI:mode>_<P:mode>): ... this.
21502         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21503         depending on the value of 'mode'.
21504         (add_losym_<mode>): New.
21505         (ldr_got_small_<mode>): New, based on ldr_got_small.
21506         (ldr_got_small): Remove.
21507         (ldr_got_small_sidi): New.
21508         * config/aarch64/iterators.md (P): New.
21509         (PTR): Change to 'ptr_mode' in the condition.
21511 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21513         * config.gcc (aarch64*-*-*): Support --with-abi.
21514         (aarch64*-*-elf): Support --with-multilib-list.
21515         (aarch64*-*-linux*): Likewise.
21516         (supported_defaults): Add abi to aarch64*-*-*.
21517         * configure.ac: Mention AArch64 for --with-multilib-list.
21518         * configure: Re-generated.
21519         * config/aarch64/biarchilp32.h: New file.
21520         * config/aarch64/biarchlp64.h: New file.
21521         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21522         (ABI_SPEC): Ditto.
21523         (MULTILIB_DEFAULTS): Ditto.
21524         (DRIVER_SELF_SPECS): Ditto.
21525         (ASM_SPEC): Update to also substitute -mabi.
21526         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21527         file whose name depends on -mabi= and -mbig-endian.
21528         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21529         TARGET_ILP32.
21530         (POINTER_SIZE): New define.
21531         (POINTERS_EXTEND_UNSIGNED): Ditto.
21532         (enum aarch64_abi_type): New enumeration tag.
21533         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21534         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21535         (TARGET_ILP32): New define.
21536         * config/aarch64/aarch64.opt (mabi): New.
21537         (aarch64_abi): New.
21538         (ilp32, lp64): New values for -mabi.
21539         * config/aarch64/t-aarch64 (comma): New define.
21540         (MULTILIB_OPTIONS): Ditto.
21541         (MULTILIB_DIRNAMES): Ditto.
21542         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21543         * doc/invoke.texi: Document -mabi for AArch64.
21545 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
21547         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21549 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21550             Anton Blanchard  <anton@au1.ibm.com>
21552         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21553         endianness when selecting field to splat.
21555 2013-07-22  Eric Christopher  <echristo@gmail.com>
21557         * dwarf2out.c (die_odr_checksum): New function to use
21558         CHECKSUM_ macros and ULEB128 for DIE tag.
21559         (generate_type_signature): Use.
21561 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
21563         * config.gcc (sparc*-*-*): Accept leon3 processor.
21564         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21565         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21566         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21567         * config/sparc/sparc.opt (enum processor_type): Add leon3.
21568         (mfix-ut699): Adjust comment.
21569         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21570         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21571         (CPP_CPU_SPEC): Likewise.
21572         (ASM_CPU_SPEC): Likewise.
21573         * config/sparc/sparc.c (leon3_cost): New constant.
21574         (sparc_option_override): Add leon3 support.
21575         (mem_ref): New function.
21576         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21577         (sparc_do_work_around_errata): Look into the instruction in the delay
21578         slot and adjust accordingly.  Add fix for the data cache nullify issues
21579         of the UT699.  Change insertion position for the NOP.
21580         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21581         (leon3_load): New reservation.
21582         (leon_store): Bump latency to 2.
21583         (grfpu): New automaton.
21584         (grfpu_alu): New unit.
21585         (grfpu_ds): Likewise.
21586         (leon_fp_alu): Adjust.
21587         (leon_fp_mult): Delete.
21588         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21589         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21590         * config/sparc/sparc.md (cpu): Add leon3.
21591         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21592         (swapsi): Likewise.
21593         (atomic_test_and_set): Likewise.
21594         (ldstub): Likewise.
21596 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
21598         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
21599         default for R5900 targets.
21600         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21601         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21602         * config/mips/mips.c (mips_option_override): Report an error for
21603         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
21604         for -march=r5900 -mhard-float.
21606 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21608         * df-problems.c (can_move_insns_across): Exit loop once we
21609         find a non-fixed, non-global register.
21611         * ipa-pure-const.c (propagate_nothrow): Exit loop after
21612         setting can_throw.
21614         * omega.c (omega_eliminate_red): Break after setting red_found.
21615         (omega_problem_has_red_equations): Similarly after setting found.
21616         (omega_query_variable): Similarly after setting coupled.
21618 2013-07-22  Marek Polacek  <polacek@redhat.com>
21620         * gimplify.c: Don't include gimple.h twice.
21622 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21624         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21625         instead of TARGET_THUMB1.
21626         (Pz): New constraint.
21627         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21628         encodings.
21629         (compare_negsi_si): Likewise.
21630         (compare_addsi2_op0): Likewise.
21631         (compare_addsi2_op1): Likewise.
21632         (addsi3_carryin_<optab>): Likewise.
21633         (addsi3_carryin_alt2_<optab>): Likewise.
21634         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21635         for arm_restrict_it.
21636         (subsi3_carryin): Likewise.
21637         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21638         (minmax_arithsi): Disable for arm_restrict_it.
21639         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21640         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21641         (satsi_<SAT:code>_shift): Likewise.
21642         (arm_shiftsi3): Add alternative for 16-bit encoding.
21643         (arm32_movhf): Disable for arm_restrict_it.
21644         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21645         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21647 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
21649         * config/arm/arm.md (attribute "insn"): Delete.
21650         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21651         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21652         (not_shiftsi): Update for attribute change.
21653         (not_shiftsi_compare0): Likewise.
21654         (not_shiftsi_compare0_scratch): Likewise.
21655         (arm_one_cmplsi2): Likewise.
21656         (thumb1_one_cmplsi2): Likewise.
21657         (notsi_compare0): Likewise.
21658         (notsi_compare0_scratch): Likewise.
21659         (thumb1_movdi_insn): Likewise.
21660         (arm_movsi_insn): Likewise.
21661         (movhi_insn_arch4): Likewise.
21662         (movhi_bytes): Likewise.
21663         (arm_movqi_insn): Likewise.
21664         (thumb1_movqi_insn): Likewise.
21665         (arm32_movhf): Likewise.
21666         (thumb1_movhf): Likewise.
21667         (arm_movsf_soft_insn): Likewise.
21668         (thumb1_movsf_insn): Likewise.
21669         (thumb_movdf_insn): Likewise.
21670         (movsicc_insn): Likewise.
21671         (movsfcc_soft_insn): Likewise.
21672         (and_scc): Likewise.
21673         (cond_move): Likewise.
21674         (if_move_not): Likewise.
21675         (if_not_move): Likewise.
21676         (if_shift_move): Likewise.
21677         (if_move_shift): Likewise.
21678         (if_shift_shift): Likewise.
21679         (if_not_arith): Likewise.
21680         (if_arith_not): Likewise.
21681         (cond_move_not): Likewise.
21682         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21683         (neon_mov<mode>): Likewise.
21684         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21685         (thumb2_movsi_vfp): Likewise.
21686         (movsf_vfp): Likewise.
21687         (thumb2_movsf_vfp): Likewise.
21688         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21689         change.
21690         (cortexa7_older_only): Likewise.
21691         (cortexa7_younger): Likewise.
21692         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21693         (1020alu_shift_op): Likewise.
21694         (1020alu_shift_reg_op): Likewise.
21695         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21696         (alu_shift_op): Likewise.
21697         (alu_shift_reg_op): Likewise.
21698         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21699         (11_alu_shift_op): Likewise.
21700         (11_alu_shift_reg_op): Likewise.
21701         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21702         (9_alu_shift_reg_op): Likewise.
21703         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21704         change.
21705         (cortex_a15_alu_shift): Likewise.
21706         (cortex_a15_alu_shift_reg): Likewise.
21707         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21708         (cortex_a5_alu_shift): Likewise.
21709         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21710         change.
21711         (cortex_a53_alu_shift): Likewise.
21712         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21713         change.
21714         (cortex_a7_alu_reg): Likewise.
21715         (cortex_a7_alu_shift): Likewise.
21716         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21717         (cortex_a8_alu_shift): Likewise.
21718         (cortex_a8_alu_shift_reg): Likewise.
21719         (cortex_a8_mov): Likewise.
21720         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21721         (cortex_a9_dp_shift): Likewise.
21722         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21723         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21724         (cortex_r4_mov): Likewise.
21725         (cortex_r4_alu_shift): Likewise.
21726         (cortex_r4_alu_shift_reg): Likewise.
21727         * config/arm/fa526.md (526_alu_op): Update for attribute change.
21728         (526_alu_shift_op): Likewise.
21729         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21730         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21731         (626te_alu_shift_op): Likewise.
21732         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21733         (726te_alu_op): Likewise.
21734         (726te_alu_shift_op): Likewise.
21735         (726te_alu_shift_reg_op): Likewise.
21736         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21737         (mp626_alu_shift_op): Likewise.
21738         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21739         (pj4_alu_e1_conds): Likewise.
21740         (pj4_alu): Likewise.
21741         (pj4_alu_conds): Likewise.
21742         (pj4_shift): Likewise.
21743         (pj4_shift_conds): Likewise.
21744         (pj4_alu_shift): Likewise.
21745         (pj4_alu_shift_conds): Likewise.
21747 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21749         * config/arm/predicates.md (shiftable_operator_strict_it):
21750         New predicate.
21751         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
21752         Disable cond_exec version for arm_restrict_it.
21753         (thumb2_smaxsi3): Convert to generate cond_exec.
21754         (thumb2_sminsi3): Likewise.
21755         (thumb32_umaxsi3): Likewise.
21756         (thumb2_uminsi3): Likewise.
21757         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
21758         (thumb2_neg_abssi2): Likewise.
21759         (thumb2_mov_scc): Add alternative for 16-bit encoding.
21760         (thumb2_movsicc_insn): Adjust alternatives.
21761         (thumb2_mov_negscc): Disable for arm_restrict_it.
21762         (thumb2_mov_negscc_strict_it): New pattern.
21763         (thumb2_mov_notscc_strict_it): New pattern.
21764         (thumb2_mov_notscc): Disable for arm_restrict_it.
21765         (thumb2_ior_scc): Likewise.
21766         (thumb2_ior_scc_strict_it): New pattern.
21767         (thumb2_cond_move): Adjust for arm_restrict_it.
21768         (thumb2_cond_arith): Disable for arm_restrict_it.
21769         (thumb2_cond_arith_strict_it): New pattern.
21770         (thumb2_cond_sub): Adjust for arm_restrict_it.
21771         (thumb2_movcond): Likewise.
21772         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
21773         (thumb2_zero_extendhisi2_v6): Likewise.
21774         (thumb2_zero_extendqisi2_v6): Likewise.
21775         (orsi_notsi_si): Likewise.
21776         (orsi_not_shiftsi_si): Likewise.
21778 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
21780         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
21781         instruction sequence is 1 byte shorter.
21783 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
21785         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
21786         it is not needed after split.
21788 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
21790         PR target/51784
21791         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
21792         second label for nonlocal goto receivers. Don't output pic base labels
21793         unless we're producing PIC; mark that action unreachable().
21794         (ix86_save_reg): If the function contains a nonlocal label, save the
21795         PIC base reg.
21796         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
21797         * config/darwin.c (emitted_pic_label_num): New GTY.
21798         (update_pic_label_number_if_needed): New.
21799         (machopic_output_function_base_name): Adjust for nonlocal receiver
21800         case.
21801         (machopic_should_output_picbase_label): New.
21802         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
21803         (nonlocal_goto_receiver): New insn and split.
21805 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
21807         * config/aarch64/aarch64-builtins.c
21808         (aarch64_fold_builtin): Fold abs in all modes.
21809         * config/aarch64/aarch64-simd-builtins.def
21810         (abs): Enable for all modes.
21811         * config/aarch64/arm_neon.h
21812         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
21813         (vabs_f64): Add missing intrinsic.
21815 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
21817         * config/aarch64/arm_neon.h (vabs_s64): New function
21819 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
21821         PR target/57516
21822         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
21823         * config/avr/avr.md (adjust_len): Add `round'.
21824         * config/avr/avr-protos.h (avr_out_round): New prototype.
21825         (avr_out_plus): Add `out_label' argument.
21826         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
21827         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
21828         Handle the case where `insn' is just a pattern.
21829         (avr_out_bitop): Handle the case where `insn' is just a pattern.
21830         (avr_out_round): New function.
21831         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
21833 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
21835         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21836         Add check for flag_stack_usage to handle -fstack-usage support
21838 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
21840         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
21841         interaction for new Power8 flags and VSX.
21843 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
21845         PR middle-end/57698
21846         * tree-inline.c (expand_call_inline): Emit errors during
21847         early_inlining only if optimization is not turned on.
21849 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21851         * passes.def: New.
21853         * passes.c (init_optimization_passes): Move the construction of
21854         the pass hierarchy into a new passes.def file.
21856         * Makefile.in (passes.o): Add dependency on passes.def.
21858 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21860         * passes.c (init_optimization_passes): Introduce macros for
21861         constructing the tree of passes (INSERT_PASSES_AFTER,
21862         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
21863         TERMINATE_PASS_LIST).
21865 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
21866             Wei Mi  <wmi@google.com>
21868         PR rtl-optimization/57878
21869         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
21870         top.
21871         (reload_pseudo_compare_func): Check nregs first for reload
21872         pseudos.
21874 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21876         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
21878 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
21880         * read-rtl.c (validate_const_int): Once an invalid character is
21881         seen, quit the loop.
21883         * gengtype.c (write_roots): Similarly once we find the "deletable"
21884         or "if_marked" option.
21886 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21888         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
21889         "xtab" and "sat".  Move value "clz" from here to ...
21890         (attriubte "type"): ... here.
21891         (satsi_<SAT:code>): Delete "insn" attribute.
21892         (satsi_<SAT:code>_shift): Likewise.
21893         (arm_zero_extendqisi2addsi): Likewise.
21894         (arm_extendqisi2addsi): Likewise.
21895         (clzsi2): Update for attribute changes.
21896         (rbitsi2): Likewise.
21897         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
21898         attribute.
21899         (arm_usatsihi): Likewise.
21900         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21902 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21904         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
21905         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
21906         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
21907         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
21908         in alphabetical order.
21909         (attribute "core_cycles"): Update for attribute changes.
21910         (arm_addsi3): Likewise.
21911         (addsi3_compare0): Likewise.
21912         (addsi3_compare0_scratch): Likewise.
21913         (addsi3_compare_op1): Likewise.
21914         (addsi3_compare_op2): Likewise.
21915         (compare_addsi2_op0): Likewise.
21916         (compare_addsi2_op1): Likewise.
21917         (addsi3_carryin_shift_<optab>): Likewise.
21918         (subsi3_carryin_shift): Likewise.
21919         (rsbsi3_carryin_shift): Likewise.
21920         (arm_subsi3_insn): Likewise.
21921         (subsi3_compare0): Likewise.
21922         (subsi3_compare): Likewise.
21923         (arm_andsi3_insn): Likewise.
21924         (thumb1_andsi3_insn): Likewise.
21925         (andsi3_compare0): Likewise.
21926         (andsi3_compare0_scratch): Likewise.
21927         (zeroextractsi_compare0_scratch
21928         (andsi_not_shiftsi_si): Likewise.
21929         (iorsi3_insn): Likewise.
21930         (iorsi3_compare0): Likewise.
21931         (iorsi3_compare0_scratch): Likewise.
21932         (arm_xorsi3): Likewise.
21933         (thumb1_xorsi3_insn): Likewise.
21934         (xorsi3_compare0): Likewise.
21935         (xorsi3_compare0_scratch): Likewise.
21936         (satsi_<SAT:code>_shift): Likewise.
21937         (rrx): Likewise.
21938         (arm_shiftsi3): Likewise.
21939         (shiftsi3_compare0): Likewise.
21940         (not_shiftsi): Likewise.
21941         (not_shiftsi_compare0): Likewise.
21942         (not_shiftsi_compare0_scratch): Likewise.
21943         (arm_one_cmplsi2): Likewise.
21944         (thumb_one_complsi2): Likewise.
21945         (notsi_compare0): Likewise.
21946         (notsi_compare0_scratch): Likewise.
21947         (thumb1_zero_extendhisi2): Likewise.
21948         (arm_zero_extendhisi2): Likewise.
21949         (arm_zero_extendhisi2_v6): Likewise.
21950         (arm_zero_extendhisi2addsi): Likewise.
21951         (thumb1_zero_extendqisi2): Likewise.
21952         (thumb1_zero_extendqisi2_v6): Likewise.
21953         (arm_zero_extendqisi2): Likewise.
21954         (arm_zero_extendqisi2_v6): Likewise.
21955         (arm_zero_extendqisi2addsi): Likewise.
21956         (thumb1_extendhisi2): Likewise.
21957         (arm_extendhisi2): Likewise.
21958         (arm_extendhisi2_v6): Likewise.
21959         (arm_extendqisi): Likewise.
21960         (arm_extendqisi_v6): Likewise.
21961         (arm_extendqisi2addsi): Likewise.
21962         (thumb1_extendqisi2): Likewise.
21963         (thumb1_movdi_insn): Likewise.
21964         (arm_movsi_insn): Likewise.
21965         (movsi_compare0): Likewise.
21966         (movhi_insn_arch4): Likewise.
21967         (movhi_bytes): Likewise.
21968         (arm_movqi_insn): Likewise.
21969         (thumb1_movqi_insn): Likewise.
21970         (arm32_movhf): Likewise.
21971         (thumb1_movhf): Likewise.
21972         (arm_movsf_soft_insn): Likewise.
21973         (thumb1_movsf_insn): Likewise.
21974         (movdf_soft_insn): Likewise.
21975         (thumb_movdf_insn): Likewise.
21976         (arm_cmpsi_insn): Likewise.
21977         (cmpsi_shiftsi): Likewise.
21978         (cmpsi_shiftsi_swp): Likewise.
21979         (arm_cmpsi_negshiftsi_si): Likewise.
21980         (movsicc_insn): Likewise.
21981         (movsfcc_soft_insn): Likewise.
21982         (arith_shiftsi): Likewise.
21983         (arith_shiftsi_compare0
21984         (arith_shiftsi_compare0_scratch
21985         (sub_shiftsi): Likewise.
21986         (sub_shiftsi_compare0
21987         (sub_shiftsi_compare0_scratch
21988         (and_scc): Likewise.
21989         (cond_move): Likewise.
21990         (if_plus_move): Likewise.
21991         (if_move_plus): Likewise.
21992         (if_move_not): Likewise.
21993         (if_not_move): Likewise.
21994         (if_shift_move): Likewise.
21995         (if_move_shift): Likewise.
21996         (if_shift_shift): Likewise.
21997         (if_not_arith): Likewise.
21998         (if_arith_not): Likewise.
21999         (cond_move_not): Likewise.
22000         (thumb1_ashlsi3): Set type attribute.
22001         (thumb1_ashrsi3): Likewise.
22002         (thumb1_lshrsi3): Likewise.
22003         (thumb1_rotrsi3): Likewise.
22004         (shiftsi3_compare0_scratch): Likewise.
22005         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22006         (neon_mov<mode>): Likewise.
22007         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22008         attribute changes.
22009         (thumb2_movsi_insn): Likewise.
22010         (thumb2_cmpsi_neg_shiftsi): Likewise.
22011         (thumb2_extendqisi_v6): Likewise.
22012         (thumb2_zero_extendhisi2_v6): Likewise.
22013         (thumb2_zero_extendqisi2_v6): Likewise.
22014         (thumb2_shiftsi3_short): Likewise.
22015         (thumb2_addsi3_compare0_scratch): Likewise.
22016         (orsi_not_shiftsi_si): Likewise.
22017         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22018         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22019         changes.
22020         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22021         (1020alu_shift_op): Likewise.
22022         (1020alu_shift_reg_op): Likewise.
22023         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22024         (alu_shift_op): Likewise.
22025         (alu_shift_reg_op): Likewise.
22026         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22027         (11_alu_shift_op): Likewise.
22028         (11_alu_shift_reg_op): Likewise.
22029         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22030         (9_alu_shift_reg_op): Likewise.
22031         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22032         changes.
22033         (cortex_a15_alu_shift): Likewise.
22034         (cortex_a15_alu_shift_reg): Likewise.
22035         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22036         changes.
22037         (cortex_a5_alu_shift): Likewise.
22038         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22039         changes.
22040         (cortex_a53_alu_shift): Likewise.
22041         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22042         changes.
22043         (cortex_a7_alu_reg): Likewise.
22044         (cortex_a7_alu_shift): Likewise.
22045         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22046         changes.
22047         (cortex_a8_alu_shift): Likewise.
22048         (cortex_a8_alu_shift_reg): Likewise.
22049         (cortex_a8_mov): Likewise.
22050         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22051         (cortex_a9_dp_shift): Likewise.
22052         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22053         changes.
22054         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22055         changes.
22056         (cortex_r4_mov): Likewise.
22057         (cortex_r4_alu_shift): Likewise.
22058         (cortex_r4_alu_shift_reg): Likewise.
22059         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22060         (526_alu_shift_op): Likewise.
22061         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22062         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22063         (626te_alu_shift_op): Likewise.
22064         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22065         (726te_alu_op): Likewise.
22066         (726te_alu_shift_op): Likewise.
22067         (726te_alu_shift_reg_op): Likewise.
22068         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22069         (mp626_alu_shift_op): Likewise.
22070         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22071         (pj4_alu_e1_conds): Likewise.
22072         (pj4_alu): Likewise.
22073         (pj4_alu_conds): Likewise.
22074         (pj4_shift): Likewise.
22075         (pj4_shift_conds): Likewise.
22076         (pj4_alu_shift): Likewise.
22077         (pj4_alu_shift_conds): Likewise.
22078         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22079         changes.
22080         (cortexa7_older_only): Likewise.
22081         (cortexa7_younger): Likewise.
22083 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22085         * ipa-pure-const.c (generate_summary): Rename to...
22086         (pure_const_generate_summary): ... this.
22088 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
22090         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22092 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
22094         PR target/57909
22095         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22096         usage in HI mode.
22098 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22100         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22101         enabled without -march=zEC12.
22102         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22103         flags to be set.
22105 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22107         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22108         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22109         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22110         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22111         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22112         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22113         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22114         ISA_HAS_FP4.
22115         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22116         and ISA_HAS_NMADD3_NMSUB3.
22117         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22118         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22119         (nmsub4<mode>, nmsub3<mode>): Likewise.
22120         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22122 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22124         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22125         TARGET_MIPS5400 checking.
22127 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
22128             Peter Bergner  <bergner@vnet.ibm.com>
22130         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22131         registers in the comment.
22132         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22133         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22134         rather than FIRST_PSEUDO_REGISTERS.
22136 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
22138         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22139         enable extra ISA flags with TARGET_HTM.
22141 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22143         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22144         Fix comment typos.
22146 2013-07-15  Cong Hou  <congh@google.com>
22148         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22149         in compare function for sorting.
22151 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
22153         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22154         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22155         * config/rs6000/rs6000.opt: Add -mhtm option.
22156         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22157         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22158         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22159         __HTM__ if the HTM instructions are available.
22160         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22161         htm_spr_reg_operand): New define_predicates.
22162         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22163         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22164         Include htm.md.
22165         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22166         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22167         HTM builtin functions.
22168         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22169         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22170         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22171         (rs6000_builtin_mask_calculate): Likewise.
22172         (rs6000_option_override_internal): Likewise.
22173         (bdesc_htm): Add new HTM builtin support.
22174         (htm_spr_num): New function.
22175         (htm_spr_regno): Likewise.
22176         (rs6000_htm_spr_icode): Likewise.
22177         (htm_expand_builtin): Likewise.
22178         (htm_init_builtins): Likewise.
22179         (rs6000_expand_builtin): Add support for HTM builtin functions.
22180         (rs6000_init_builtins): Likewise.
22181         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22182         option.
22183         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22184         (TARGET_HTM, MASK_HTM): Define macros.
22185         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22186         (FIXED_REGISTERS): Likewise.
22187         (CALL_USED_REGISTERS): Likewise.
22188         (CALL_REALLY_USED_REGISTERS): Likewise.
22189         (REG_ALLOC_ORDER): Likewise.
22190         (enum reg_class): Likewise.
22191         (REG_CLASS_NAMES): Likewise.
22192         (REG_CLASS_CONTENTS): Likewise.
22193         (REGISTER_NAMES): Likewise.
22194         (ADDITIONAL_REGISTER_NAMES): Likewise.
22195         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22196         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22197         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22198         * config/rs6000/htm.md: New file.
22199         * config/rs6000/htmintrin.h: New file.
22200         * config/rs6000/htmxlintrin.h: New file.
22202 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22204         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22205         Define SYMBOL_TINY_GOT, update comment.
22206         * config/aarch64/aarch64.c
22207         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22208         (aarch64_expand_mov_immediate): Likewise.
22209         (aarch64_print_operand): Likewise.
22210         (aarch64_classify_symbol): Likewise.
22211         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22212         (ldr_got_tiny): Define.
22214 2013-07-13  Tobias Grosser  <tobias@grosser.es>
22216         PR tree-optimization/54094
22217         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22218           scheduling dimension for the parallelism check from the polyhedral
22219           information in the AST.
22220         * graphite-dependences.c (carries_deps): Do not assume the schedule is
22221           in 2D + 1 form.
22223 2013-07-13  Jason Merrill  <jason@redhat.com>
22225         * print-tree.c (debug_vec_tree): Use debug_raw.
22226         (debug_raw (vec<tree, va_gc> &)): New.
22227         (debug_raw (vec<tree, va_gc> *)): New.
22228         * tree.h: Declare them.
22230 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
22232         * ifcvt.c (ifcvt_after_combine): New static variable.
22233         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22234         for size.
22235         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
22236         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22237         rest_of_handle_if_after_reload): Pass new argument for if_convert.
22239 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
22241         * config/mips/mips.c (mips_expand_call): Remove empty statement.
22243 2013-07-12  Michael Matz  <matz@suse.de>
22245         PR middle-end/55771
22246         * convert.c (convert_to_real): Reject non-float inner types.
22248 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
22250         * config/aarch64/aarch64-protos.h
22251         (aarch64_simd_immediate_valid_for_move): Remove.
22252         * config/aarch64/aarch64.c (simd_immediate_info): New member.
22253         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22254         cases.
22255         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22257 2013-07-11  Steve Ellcey  <sellcey@mips.com>
22259         * config/mips/mips.c (mips_conditional_register_usage): Do not
22260         use t[0-7] registers in MIPS16 mode when optimizing for size.
22262 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
22264         * config/i386/i386.c (dispatch_function_versions): Fix array
22265         indexing of function_version_info to match actual_versions.
22267 2013-07-11  Teresa Johnson  <tejohnson@google.com>
22269         * vec.h (struct va_gc): Move release out-of-line.
22270         (va_gc::release): Call ggc_free on released vec.
22272 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22274         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22275         Require GOT register as additional operand in UNSPEC.
22276         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22277         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22278         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22279         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22280         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22281         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22282         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22284 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
22286         PR target/57631
22287         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22288         name seen by assembler/linker rather if available.
22290 2013-07-11  Andreas Schwab  <schwab@suse.de>
22292         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22294 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
22296         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22298 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
22300         * doc/tm.texi.in: Move hook documentation to ....
22301         * target.def: ... here.
22303         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22304         text on @hook line.
22305         * doc/tm.texi: Regenerate.
22307 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
22309         PR c++/57869
22310         * doc/invoke.texi: Document -Wconditionally-supported.
22312 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22314         PR target/57844
22315         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22316         of my_fp.
22318 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22320         PR target/57506
22321         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22322         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22323         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22324         Remove duplicate devices.
22325         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22326         * config/avr/t-multilib: Regenerate.
22327         * config/avr/avr-tables.opt: Regenerate.
22328         * doc/avr-mmcu.texi: Regenerate.
22330 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22332         PR target/56987
22333         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22335 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
22337         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22338         the cost of MULT when optimizing for size.
22340 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22342         * config/cr16/cr16-protos.h: Don't include target.h.
22344 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
22346         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22347         adjust register size for TDmode and TFmode for VSX registers.
22349 2013-07-08  Kai Tietz  <ktietz@redhat.com>
22351         PR target/56892
22352         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22353         hook_bool_const_tree_true.
22355 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22357         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22358         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22359         * config/s390/s390.md: Define FPR*_REGNUM constants.
22360         Fix FPR2_REGNUM constant (18 -> 17).
22361         ("*trunc<BFP:mode><DFP_ALL:mode>2")
22362         ("*trunc<DFP_ALL:mode><BFP:mode>2")
22363         ("trunc<BFP:mode><DFP_ALL:mode>2")
22364         ("trunc<DFP_ALL:mode><BFP:mode>2")
22365         ("*extend<BFP:mode><DFP_ALL:mode>2")
22366         ("*extend<DFP_ALL:mode><BFP:mode>2")
22367         ("extend<BFP:mode><DFP_ALL:mode>2")
22368         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22369         FPR4_REGNUM.
22371 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
22373         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22375 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22377         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22378         and cfun_fpr_bit_p to cfun_fpr_save_p.
22379         (s390_frame_area, s390_register_info, s390_frame_info)
22380         (s390_emit_prologue, s390_emit_epilogue)
22381         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22382         register numbers.
22383         * config/s390/s390.h: Define *_REGNUM macros for floating point
22384         register numbers.
22386 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22388         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22390 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
22392         PR rtl-optimization/57786
22393         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22394         and break out of the loop when it is set to false.
22396 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
22398         PR target/57819
22399         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22400         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22401         (const_int 63)) 0)).
22402         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22403         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22404         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22406         PR rtl-optimization/57829
22407         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22408         mask bits outside of mode are just sign-extension from mode to HWI.
22410 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22412         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22413         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22414         adjust_address instead of change_address to keep info about alignment.
22415         (emit_strmov): Remove.
22416         (emit_memmov): New function.
22417         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22418         (expand_movmem_epilogue): Likewise and return updated rtx for
22419         destination.
22420         (expand_constant_movmem_prologue): Likewise and return updated rtx for
22421         destination and source.
22422         (decide_alignment): Refactor, handle vector_loop.
22423         (ix86_expand_movmem): Likewise.
22424         (ix86_expand_setmem): Likewise.
22425         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22427 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
22429         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22430         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22432 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22434         * config/i386/sse.md (sse_movlhps): Change alternative 3
22435         of operand 2 to "m".
22437 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22439         PR target/57807
22440         * config/i386/sse.md (iptr): New mode attribute.
22441         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22442         (<sse>_vm<plusminus_insn><mode>3): Ditto.
22443         (<sse>_vmmul<mode>3): Ditto.
22444         (<sse>_vmdiv<mode>3): Ditto.
22445         (sse_vmrcpv4sf2): Ditto.
22446         (<sse>_vmsqrt<mode>2): Ditto.
22447         (sse_vmrsqrtv4sf2): Ditto.
22448         (<sse>_vm<code><mode>3): Ditto.
22449         (avx_vmcmp<mode>3): Ditto.
22450         (<sse>_vmmaskcmp<mode>3): Ditto.
22451         (<sse>_comi): Ditto.
22452         (<sse>_ucomi): Ditto.
22453         (*xop_vmfrcz_<mode>): Ditto.
22454         (*fmai_fmadd_<mode>): Ditto.
22455         (*fmai_fmsub_<mode>): Ditto.
22456         (*fmai_fnmadd_<mode>): Ditto.
22457         (*fmai_fnmsub_<mode>): Ditto.
22458         (*fma4i_vmfmadd_<mode>): Ditto.
22459         (*fma4i_vmfmsub_<mode>): Ditto.
22460         (*fma4i_vmfnmadd_<mode>): Ditto.
22461         (*fma4i_vmfnmsub_<mode>): Ditto.
22462         (*xop_vmfrcz_<mode>): Ditto.
22463         (sse_cvtps2pi): Ditto.
22464         (sse_cvttps2pi): Ditto.
22465         (sse_cvtss2si): Ditto.
22466         (sse_cvtss2si_2): Ditto.
22467         (sse_cvtss2siq_2): Ditto.
22468         (sse_cvttss2si): Ditto.
22469         (sse_cvttss2siq): Ditto.
22470         (sse_cvtsd2si): Ditto.
22471         (sse_cvtsd2si_2): Ditto.
22472         (sse_cvtsd2siq_2): Ditto.
22473         (sse_cvttsd2si): Ditto.
22474         (sse_cvttsd2siq): Ditto.
22475         (sse_cvtsd2ss): Ditto.
22476         (sse_cvtss2sd): Ditto.
22477         (avx2_pbroadcast<mode>): Ditto.
22478         (avx2_pbroadcast<mode>_1): Ditto.
22479         (*avx_vperm_broadcast_v4sf): Ditto.
22481         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22482         (sse_movlhps): Ditto.
22483         (sse_storehps): Ditto.
22484         (sse_loadhps): Ditto.
22485         (sse_storelps): Ditto.
22486         (sse_loadlps): Ditto.
22487         (*vec_concatv4sf): Ditto.
22488         (*vec_interleave_highv2df): Ditto.
22489         (*vec_interleave_lowv2df): Ditto.
22490         (*vec_extractv2df_1_sse): Ditto.
22491         (*vec_extractv2df_0_sse): Ditto.
22492         (sse2_storelpd): Ditto.
22493         (sse2_loadlpd): Ditto.
22494         (sse2_movsd): Ditto.
22495         (*vec_concatv4si): Ditto.
22496         (vec_concatv2di): Ditto.
22498         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22499         for Intel asm dialect.
22500         (mmx_punpcklwd): Ditto.
22501         (mmx_punpckldq): Ditto.
22503         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22504         for intel assembler dialect.
22506 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
22508         PR target/29776
22509         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22510         for BUILT_IN_C{LZ,LRSB}*.
22511         * tree.h (CASE_INT_FN): Add FN##IMAX case.
22512         * tree-vrp.c (extract_range_basic): Handle
22513         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
22514         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22515         fall thru to code calling set_value*.
22516         * builtins.c (expand_builtin): Remove *IMAX cases.
22517         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22518         if width is bigger than 2*HWI.
22520 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
22522         PR rtl-optimization/55342
22523         * lra-int.h (lra_subreg_reload_pseudos): New.
22524         * lra.c: Add undoing optional reloads to the block diagram.
22525         (lra_subreg_reload_pseudos): New.
22526         (lra_optional_reload_pseudos): Change comments.
22527         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
22528         lra_optional_reload_pseudos after undo transformations.
22529         * lra-assigns.c (pseudo_prefix_title): New.
22530         (lra_setup_reg_renumber): Use it.
22531         (spill_for): Ditto.  Check subreg reload pseudos too.
22532         (assign_by_spills): Consider subreg reload pseudos too.
22533         * lra-constraints.c (simplify_operand_subreg): Use
22534         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22535         (curr_insn_transform): Recognize and do optional reloads.
22536         (undo_optional_reloads): New.
22537         (lra_undo_inheritance): Call undo_optional_reloads.
22539 2013-07-05  Thomas Quinot  <quinot@adacore.com>
22541         * tree-complex.c (expand_complex_operations_1): Fix typo.
22543 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
22545         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22546         (tune_params): New member 'const vec_costs'.
22547         * config/aarch64/aarch64.c (generic_vector_cost): New.
22548         (generic_tunings): New member 'generic_vector_cost'.
22549         (aarch64_builtin_vectorization_cost): New.
22550         (aarch64_add_stmt_cost): New.
22551         (TARGET_VECTORIZE_ADD_STMT_COST): New.
22552         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22554 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
22556         PR target/57777
22557         * config/i386/predicates.md (vsib_address_operand): Disallow
22558         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22560 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
22562         PR middle-end/55030
22563         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22564         expand_builtin_setjmp_receiver.
22565         (expand_label): Adjust, call expand_builtin_setjmp_receiver
22566         with NULL for the label parameter.
22567         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22568         the frame-pointer.  Adjust comments.
22569         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22570         only if LABEL is non-NULL.
22572 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
22574         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22575         (ARM_ABI_AAPCS64): Ditto.
22576         (arm_abi): Ditto.
22577         (ARM_DEFAULT_ABI): Ditto.
22579 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22581         * config/aarch64/aarch64-builtins.c
22582         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22583         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22584         (st1): Likewise.
22585         * config/aarch64/aarch64-simd.md
22586         (aarch64_ld1<VALL:mode>): New.
22587         (aarch64_st1<VALL:mode>): Likewise.
22588         * config/aarch64/arm_neon.h
22589         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22591 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
22593         * config/i386/i386.c (gate_insert_vzeroupper): Check if
22594         target ISA is AVX.
22595         (ix86_option_override_internal):Turn on all -mavx target flags by
22596         default as they are dependent on AVX anyway.
22598 2013-07-02  Cary Coutant  <ccoutant@google.com>
22600         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22601         deterministic hash.
22602         (loc_checksum_ordered): Likewise.
22603         (hash_loc_operands): Remove inline keyword.
22605 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
22607         PR tree-optimization/57741
22608         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22609         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22610         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22611         Allow REAL_CST step_exprs if flag_associative_math.
22612         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22614 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22616         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22618 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22620         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22622 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22624         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22625         encoding.
22626         (iorsi3_insn): Likewise.
22627         (arm_xorsi3): Likewise.
22629 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
22631         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
22632         to ...
22633         (attribute "type"): ... here, and prefix with "wmmx_".
22634         (attribute "core_cycles"): Update for attribute changes.
22635         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22636         (tbcstv4hi): Likewise.
22637         (tbcstv2si): Likewise.
22638         (iwmmxt_iordi3): Likewise.
22639         (iwmmxt_xordi3): Likewise.
22640         (iwmmxt_anddi3): Likewise.
22641         (iwmmxt_nanddi3): Likewise.
22642         (iwmmxt_arm_movdi): Likewise.
22643         (iwmmxt_movsi_insn): Likewise.
22644         (mov<mode>_internal): Likewise.
22645         (and<mode>3_iwmmxt): Likewise.
22646         (ior<mode>3_iwmmxt): Likewise.
22647         (xor<mode>3_iwmmxt): Likewise.
22648         (add<mode>3_iwmmxt): Likewise.
22649         (ssaddv8qi3): Likewise.
22650         (ssaddv4hi3): Likewise.
22651         (ssaddv2si3): Likewise.
22652         (usaddv8qi3): Likewise.
22653         (usaddv4hi3): Likewise.
22654         (usaddv2si3): Likewise.
22655         (sub<mode>3_iwmmxt): Likewise.
22656         (sssubv8qi3): Likewise.
22657         (sssubv4hi3): Likewise.
22658         (sssubv2si3): Likewise.
22659         (ussubv8qi3): Likewise.
22660         (ussubv4hi3): Likewise.
22661         (ussubv2si3): Likewise.
22662         (mulv4hi3_iwmmxt): Likewise.
22663         (smulv4hi3_highpart): Likewise.
22664         (umulv4hi3_highpart): Likewise.
22665         (iwmmxt_wmacs): Likewise.
22666         (iwmmxt_wmacsz): Likewise.
22667         (iwmmxt_wmacu): Likewise.
22668         (iwmmxt_wmacuz): Likewise.
22669         (iwmmxt_clrdi): Likewise.
22670         (iwmmxt_clrv8qi): Likewise.
22671         (iwmmxt_clr4hi): Likewise.
22672         (iwmmxt_clr2si): Likewise.
22673         (iwmmxt_uavgrndv8qi3): Likewise.
22674         (iwmmxt_uavgrndv4hi3): Likewise.
22675         (iwmmxt_uavgv8qi3): Likewise.
22676         (iwmmxt_uavgv4hi3): Likewise.
22677         (iwmmxt_tinsrb): Likewise.
22678         (iwmmxt_tinsrh): Likewise.
22679         (iwmmxt_tinsrw): Likewise.
22680         (iwmmxt_textrmub): Likewise.
22681         (iwmmxt_textrmsb): Likewise.
22682         (iwmmxt_textrmuh): Likewise.
22683         (iwmmxt_textrmsh): Likewise.
22684         (iwmmxt_textrmw): Likewise.
22685         (iwmxxt_wshufh): Likewise.
22686         (eqv8qi3): Likewise.
22687         (eqv4hi3): Likewise.
22688         (eqv2si3): Likewise.
22689         (gtuv8qi3): Likewise.
22690         (gtuv4hi3): Likewise.
22691         (gtuv2si3): Likewise.
22692         (gtv8qi3): Likewise.
22693         (gtv4hi3): Likewise.
22694         (gtv2si3): Likewise.
22695         (smax<mode>3_iwmmxt): Likewise.
22696         (umax<mode>3_iwmmxt): Likewise.
22697         (smin<mode>3_iwmmxt): Likewise.
22698         (umin<mode>3_iwmmxt): Likewise.
22699         (iwmmxt_wpackhss): Likewise.
22700         (iwmmxt_wpackwss): Likewise.
22701         (iwmmxt_wpackdss): Likewise.
22702         (iwmmxt_wpackhus): Likewise.
22703         (iwmmxt_wpackwus): Likewise.
22704         (iwmmxt_wpackdus): Likewise.
22705         (iwmmxt_wunpckihb): Likewise.
22706         (iwmmxt_wunpckihh): Likewise.
22707         (iwmmxt_wunpckihw): Likewise.
22708         (iwmmxt_wunpckilb): Likewise.
22709         (iwmmxt_wunpckilh): Likewise.
22710         (iwmmxt_wunpckilw): Likewise.
22711         (iwmmxt_wunpckehub): Likewise.
22712         (iwmmxt_wunpckehuh): Likewise.
22713         (iwmmxt_wunpckehuw): Likewise.
22714         (iwmmxt_wunpckehsb): Likewise.
22715         (iwmmxt_wunpckehsh): Likewise.
22716         (iwmmxt_wunpckehsw): Likewise.
22717         (iwmmxt_wunpckelub): Likewise.
22718         (iwmmxt_wunpckeluh): Likewise.
22719         (iwmmxt_wunpckeluw): Likewise.
22720         (iwmmxt_wunpckelsb): Likewise.
22721         (iwmmxt_wunpckelsh): Likewise.
22722         (iwmmxt_wunpckelsw): Likewise.
22723         (ror<mode>3): Likewise.
22724         (ashr<mode>3_iwmmxt): Likewise.
22725         (lshr<mode>3_iwmmxt): Likewise.
22726         (ashl<mode>3_iwmmxt): Likewise.
22727         (ror<mode>3_di): Likewise.
22728         (ashr<mode>3_di): Likewise.
22729         (lshr<mode>3_di): Likewise.
22730         (ashl<mode>3_di): Likewise.
22731         (iwmmxt_wmadds): Likewise.
22732         (iwmmxt_wmaddu): Likewise.
22733         (iwmmxt_tmia): Likewise.
22734         (iwmmxt_tmiaph): Likewise.
22735         (iwmmxt_tmiabb): Likewise.
22736         (iwmmxt_tmiatb): Likewise.
22737         (iwmmxt_tmiabt): Likewise.
22738         (iwmmxt_tmiatt): Likewise.
22739         (iwmmxt_tmovmskb): Likewise.
22740         (iwmmxt_tmovmskh): Likewise.
22741         (iwmmxt_tmovmskw): Likewise.
22742         (iwmmxt_waccb): Likewise.
22743         (iwmmxt_wacch): Likewise.
22744         (iwmmxt_waccw): Likewise.
22745         (iwmmxt_waligni): Likewise.
22746         (iwmmxt_walignr): Likewise.
22747         (iwmmxt_walignr0): Likewise.
22748         (iwmmxt_walignr1): Likewise.
22749         (iwmmxt_walignr2): Likewise.
22750         (iwmmxt_walignr3): Likewise.
22751         (iwmmxt_wsadb): Likewise.
22752         (iwmmxt_wsadh): Likewise.
22753         (iwmmxt_wsadbz): Likewise.
22754         (iwmmxt_wsadhz): Likewise.
22755         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
22756         (iwmmxt_wabsdiffb): Likewise.
22757         (iwmmxt_wabsdiffh): Likewise.
22758         (iwmmxt_wabsdiffw): Likewise.
22759         (iwmmxt_waddsubhx): Likewise
22760         (iwmmxt_wsubaddhx): Likewise.
22761         (addc<mode>3): Likewise.
22762         (iwmmxt_avg4): Likewise.
22763         (iwmmxt_avg4r): Likewise.
22764         (iwmmxt_wmaddsx): Likewise.
22765         (iwmmxt_wmaddux): Likewise.
22766         (iwmmxt_wmaddsn): Likewise.
22767         (iwmmxt_wmaddun): Likewise.
22768         (iwmmxt_wmulwsm): Likewise.
22769         (iwmmxt_wmulwum): Likewise.
22770         (iwmmxt_wmulsmr): Likewise.
22771         (iwmmxt_wmulumr): Likewise.
22772         (iwmmxt_wmulwsmr): Likewise.
22773         (iwmmxt_wmulwumr): Likewise.
22774         (iwmmxt_wmulwl): Likewise.
22775         (iwmmxt_wqmulm): Likewise.
22776         (iwmmxt_wqmulwm): Likewise.
22777         (iwmmxt_wqmulmr): Likewise.
22778         (iwmmxt_wqmulwmr): Likewise.
22779         (iwmmxt_waddbhusm): Likewise.
22780         (iwmmxt_waddbhusl): Likewise.
22781         (iwmmxt_wqmiabb): Likewise.
22782         (iwmmxt_wqmiabt): Likewise.
22783         (iwmmxt_wqmiatb): Likewise.
22784         (iwmmxt_wqmiatt): Likewise.
22785         (iwmmxt_wqmiabbn): Likewise.
22786         (iwmmxt_wqmiabtn): Likewise.
22787         (iwmmxt_wqmiatbn): Likewise.
22788         (iwmmxt_wqmiattn): Likewise.
22789         (iwmmxt_wmiabb): Likewise.
22790         (iwmmxt_wmiabt): Likewise.
22791         (iwmmxt_wmiatb): Likewise.
22792         (iwmmxt_wmiatt): Likewise.
22793         (iwmmxt_wmiabbn): Likewise.
22794         (iwmmxt_wmiabtn): Likewise.
22795         (iwmmxt_wmiatbn): Likewise.
22796         (iwmmxt_wmiattn): Likewise.
22797         (iwmmxt_wmiawbb): Likewise.
22798         (iwmmxt_wmiawbt): Likewise.
22799         (iwmmxt_wmiawtb): Likewise.
22800         (iwmmxt_wmiawtt): Likewise.
22801         (iwmmxt_wmiawbbn): Likewise.
22802         (iwmmxt_wmiawbtn): Likewise.
22803         (iwmmxt_wmiawtbn): Likewise.
22804         (iwmmxt_wmiawttn): Likewise.
22805         (iwmmxt_wmerge): Likewise.
22806         (iwmmxt_tandc<mode>3): Likewise.
22807         (iwmmxt_torc<mode>3): Likewise.
22808         (iwmmxt_torvsc<mode>3): Likewise.
22809         (iwmmxt_textrc<mode>3): Likewise.
22810         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
22811         (wmmxt_pack): Likewise.
22812         (wmmxt_mult_c1): Likewise.
22813         (wmmxt_mult_c2): Likewise.
22814         (wmmxt_alu_c1): Likewise.
22815         (wmmxt_alu_c2): Likewise.
22816         (wmmxt_alu_c3): Likewise.
22817         (wmmxt_transfer_c1): Likewise.
22818         (wmmxt_transfer_c2): Likewise.
22819         (wmmxt_transfer_c3): Likewise.
22820         (marvell_f_iwmmxt_wstr): Likewise.
22821         (marvell_f_iwmmxt_wldr): Likewise.
22823 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
22825         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
22827 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22829         Revert:
22830         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22831         * lra-constraints.c (need_for_split_p): Check call used hard regs
22832         living through calls.
22834         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
22835         call used regs for call insn.
22837 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
22839         PR target/57736
22840         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
22841         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
22843 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
22845         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
22847 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22849         * lra-constraints.c (need_for_split_p): Check call used hard regs
22850         living through calls.
22852 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
22854         PR target/57744
22855         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
22856         to tie with any other modes.  Eliminate Altivec vector mode tests,
22857         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
22858         code, to return 0 if testing MODE2 for a condition, if we've
22859         already tested MODE1 for the same condition.
22861 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22863         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
22864         layout.
22866 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22868         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22869         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
22871 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22873         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
22874         Define.
22875         (aarch64_symbolic_constant_p): Remove.
22876         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
22877         static.  Fix line length and white space.
22878         (aarch64_symbolic_constant_p): Remove.
22879         * config/aarch64/predicates.md (aarch64_valid_symref):
22880         Use aarch64_classify_symbol_expression.
22882 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22884         * config/arm/constraints.md (Ts): New constraint.
22885         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
22886         16-bit encodings.
22887         (compare_scc): Use "Ts" constraint for operand 0.
22888         (ior_scc_scc): Likewise.
22889         (and_scc_scc): Likewise.
22890         (and_scc_scc_nodom): Likewise.
22891         (ior_scc_scc_cmp): Likewise for operand 7.
22892         (and_scc_scc_cmp): Likewise.
22893         * config/arm/thumb2.md (thumb2_movsi_insn):
22894         Add alternatives for 16-bit encodings.
22895         (thumb2_movhi_insn): Likewise.
22896         (thumb2_movsicc_insn): Likewise.
22897         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
22898         (thumb2_negscc): Use "Ts" constraint.
22899         Move mvn instruction outside cond_exec block.
22900         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
22901         for 16-bit encodings.
22903 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22905         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
22906         encoding.
22907         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
22908         (mulsi3subsi): Likewise.
22909         (mulsidi3adddi): Likewise.
22910         (mulsidi3_v6): Likewise.
22911         (umulsidi3_v6): Likewise.
22912         (umulsidi3adddi_v6): Likewise.
22913         (smulsi3_highpart_v6): Likewise.
22914         (umulsi3_highpart_v6): Likewise.
22915         (mulhisi3tb): Likewise.
22916         (mulhisi3bt): Likewise.
22917         (mulhisi3tt): Likewise.
22918         (maddhisi4): Likewise.
22919         (maddhisi4tb): Likewise.
22920         (maddhisi4tt): Likewise.
22921         (maddhidi4): Likewise.
22922         (maddhidi4tb): Likewise.
22923         (maddhidi4tt): Likewise.
22924         (zeroextractsi_compare0_scratch): Likewise.
22925         (insv_zero): Likewise.
22926         (insv_t2): Likewise.
22927         (anddi_notzesidi_di): Likewise.
22928         (anddi_notsesidi_di): Likewise.
22929         (andsi_notsi_si): Likewise.
22930         (iordi_zesidi_di): Likewise.
22931         (xordi_zesidi_di): Likewise.
22932         (andsi_iorsi3_notsi): Likewise.
22933         (smax_0): Likewise.
22934         (smax_m1): Likewise.
22935         (smin_0): Likewise.
22936         (not_shiftsi): Likewise.
22937         (unaligned_loadsi): Likewise.
22938         (unaligned_loadhis): Likewise.
22939         (unaligned_loadhiu): Likewise.
22940         (unaligned_storesi): Likewise.
22941         (unaligned_storehi): Likewise.
22942         (extv_reg): Likewise.
22943         (extzv_t2): Likewise.
22944         (divsi3): Likewise.
22945         (udivsi3): Likewise.
22946         (arm_zero_extendhisi2addsi): Likewise.
22947         (arm_zero_extendqisi2addsi): Likewise.
22948         (compareqi_eq0): Likewise.
22949         (arm_extendhisi2_v6): Likewise.
22950         (arm_extendqisi2addsi): Likewise.
22951         (arm_movt): Likewise.
22952         (thumb2_ldrd): Likewise.
22953         (thumb2_ldrd_base): Likewise.
22954         (thumb2_ldrd_base_neg): Likewise.
22955         (thumb2_strd): Likewise.
22956         (thumb2_strd_base): Likewise.
22957         (thumb2_strd_base_neg): Likewise.
22958         (arm_negsi2): Add alternative for 16-bit encoding.
22959         (arm_one_cmplsi2): Likewise.
22961 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22963         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
22964         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
22965         (movdfcc): Likewise.
22966         * config/arm/vfp.md (*thumb2_movsf_vfp):
22967         Disable predication for arm_restrict_it.
22968         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
22969         (*thumb2_movdfcc_vfp): Likewise.
22970         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
22971         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
22972         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
22973         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
22974         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
22975         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
22976         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
22977         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
22978         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
22979         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
22980         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
22981         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
22982         Disable predication for arm_restrict_it.
22984 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
22986         * config/i386/bmiintrin.h (_bextr_u32): New.
22987         (_bextr_u64): Ditto.
22989 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
22991         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
22992         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
22993         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
22994         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
22995         * config/mips/n32-elf.h: ...this new file.
22997 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
22999         PR target/57224
23000         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23001         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23003 2013-06-27  Catherine Moore  <clm@codesourcery.com>
23005         * config/mips/mips-tables.opt: Regenerate.
23006         * config/mips/mips-cpus.def: Add m14ke and m14kec.
23007         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23008         * doc/invoke.texi: Add -m14kc.
23010 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23012         PR target/57623
23013         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23014         constraints of operand 1 and 2.
23016         PR target/57623
23017         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23018         to match RTL canonicalization.  Swap predicates and
23019         constraints of operand 1 and 2.
23021 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
23023         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23024         Process OP_INOUT regs for splitting too.
23026 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23028         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23029         decl before the loop, initialize to NULL.
23030         (vectorizable_load): Initialize ptr_incr to NULL.
23032 2013-06-27  Martin Jambor  <mjambor@suse.cz>
23034         PR lto/57208
23035         * ipa-ref.h (ipa_maybe_record_reference): Declare.
23036         * ipa-ref.c (ipa_maybe_record_reference): New function.
23037         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23038         * ipa-cp.c (create_specialized_node): Record potential references from
23039         aggvals.
23040         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23042 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23044         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23045         parameter 'mode' of type 'enum machine_mode mode'; change to pass
23046         'mode' to force_reg.
23047         (aarch64_add_offset): Update calls to aarch64_force_temporary.
23048         (aarch64_expand_mov_immediate): Likewise.
23050 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23052         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23053         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23055 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23057         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23058         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23059         (struct machine_function): Add tbegin_p.
23060         (s390_canonicalize_comparison): Fold CC mode compares to
23061         conditional jump if possible.
23062         (s390_emit_jump): Return the emitted jump.
23063         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23064         Handle CCRAWmode compares.
23065         (s390_option_override): Default to -mhtm if available.
23066         (s390_reg_clobbered_rtx): Handle floating point regs as well.
23067         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23068         FPRs instead of df_regs_ever_live_p.
23069         (s390_optimize_nonescaping_tx): New function.
23070         (s390_init_frame_layout): Extend clobbered_regs array to cover
23071         FPRs as well.
23072         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23073         (s390_expand_tbegin): New function.
23074         (enum s390_builtin): New enum definition.
23075         (code_for_builtin): New array definition.
23076         (s390_init_builtins): New function.
23077         (s390_expand_builtin): New function.
23078         (TARGET_INIT_BUILTINS): Define.
23079         (TARGET_EXPAND_BUILTIN): Define.
23080         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23081         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23082         (s390_alc_comparison): Likewise.
23083         * config/s390/s390-modes.def: Add CCRAWmode.
23084         * config/s390/s390.h (processor_flags): Add PF_TX.
23085         (TARGET_CPU_HTM): Define macro.
23086         (TARGET_HTM): Define macro.
23087         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23088         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23089         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23090         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23091         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23092         (TBEGIN_MASK, TBEGINC_MASK): New constants.
23093         ("*cc_to_int"): Move up.
23094         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23095         constants other than 0.
23096         ("*ccraw_to_int"): New insn and splitter definition.
23097         ("tbegin", "tbegin_nofloat", "tbegin_retry")
23098         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23099         ("tx_assist"): New expander.
23100         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23101         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23102         * config/s390/s390.opt: Add -mhtm option.
23103         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23104         * config/s390/htmxlintrin.h: New file.
23105         * config/s390/htmintrin.h: New file.
23106         * config/s390/s390intrin.h: New file.
23107         * doc/extend.texi: Document htm builtins.
23108         * config.gcc: Add the new header files to extra_headers.
23110 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
23112         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23113         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23115 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
23116             Pat Haugen  <pthaugen@us.ibm.com>
23117             Peter Bergner  <bergner@vnet.ibm.com>
23119         * config/rs6000/power8.md: New.
23120         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23121         setting for power8 entry.
23122         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23123         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23124         test for Power4/Power5 only.
23125         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23126         support.
23127         (force_new_group): Adjust comment.
23128         * config/rs6000/rs6000.md: Include power8.md.
23130 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
23132         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23133         * config/arm/arm-protos.h (arm_max_conditional_execute): New
23134         declaration.
23135         (tune_params): Update comment.
23136         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23137         (arm_max_conditional_execute): New function.
23138         (thumb2_final_prescan_insn): Use max_insn_skipped and
23139         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23141 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
23143         PR tree-optimization/57705
23144         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23145         SSA_NAME step, provided that it is not defined inside the loop.
23146         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23147         (get_initial_def_for_induction): Handle SSA_NAME IV step.
23149 2013-06-25  Martin Jambor  <mjambor@suse.cz>
23151         PR middle-end/57670
23152         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23153         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23154         calls in the dump.
23155         (ipa_note_param_call): Initialize member_ptr flag.
23156         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23157         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23158         (ipa_write_indirect_edge_info): Stream member_ptr flag.
23159         (ipa_read_indirect_edge_info): Likewise.
23161 2013-06-25  Richard Biener  <rguenther@suse.de>
23163         PR middle-end/56977
23164         * passes.c (init_optimization_passes): Move pass_fold_builtins
23165         and pass_dce earlier with -Og.
23167 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
23169         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23170         <BIT_FIELD_REF>: Remove trailing TAB.
23171         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23172         remove blank line.
23174 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23176         PR tree-optimization/57358
23177         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23178         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23179         (ipa_analyze_params_uses): Generate pessimistic info when true.
23181 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23183         PR tree-optimization/57539
23184         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23185         global.inlined_to of the new node to it.  All callers changed.
23186         * ipa-inline-transform.c (clone_inlined_nodes): New variable
23187         inlining_into, pass it to cgraph_clone_node.
23188         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23189         ipa_free_edge_args_substructures.
23190         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23191         rdesc linked list.  Do not assert rdesc edges have inlined caller.
23192         Assert we have found an rdesc in the rdesc list.
23194 2013-06-24  Richard Biener  <rguenther@suse.de>
23196         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23197         (pointer_set_lookup): Declare.
23198         (class pointer_map): New template class implementing a
23199         generic pointer to T map.
23200         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23201         pointer_map<T>::contains, pointer_map<T>::insert,
23202         pointer_map<T>::traverse): New functions.
23203         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23204         (pointer_set_lookup): New function.
23205         (pointer_set_contains): Use pointer_set_lookup.
23206         (pointer_set_insert): Likewise.
23207         (insert_aux): Remove.
23208         (struct pointer_map_t): Embed a pointer_set_t.
23209         (pointer_map_create): Adjust.
23210         (pointer_map_destroy): Likewise.
23211         (pointer_map_contains): Likewise.
23212         (pointer_map_insert): Likewise.
23213         (pointer_map_traverse): Likewise.
23214         * tree-streamer.h (struct streamer_tree_cache_d): Use a
23215         pointer_map<unsigned> instead of a pointer_map_t.
23216         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23217         (streamer_tree_cache_lookup): Likewise.
23218         (streamer_tree_cache_create): Likewise.
23219         (streamer_tree_cache_delete): Likewise.
23220         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23221         pointer_map<unsigned> instead of a pointer_map_t.
23222         (lto_init_tree_ref_encoder): Adjust.
23223         (lto_destroy_tree_ref_encoder): Likewise.
23224         * lto-section-out.c (lto_output_decl_index): Likewise.
23225         (lto_record_function_out_decl_state): Likewise.
23226         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23228 2013-06-24  Richard Biener  <rguenther@suse.de>
23230         PR tree-optimization/57488
23231         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23233 2013-06-24  Alan Modra  <amodra@gmail.com>
23235         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23236         (gen_easy_altivec_constant): Likewise.
23237         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23238         easy_vector_constant_msb): Likewise.
23240 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
23242         PR target/57688
23243         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23244         add missing return true.
23246 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
23248         PR target/52483
23249         * config/sh/predicates.md (general_extend_operand): Invoke
23250         general_movsrc_operand for memory operands.
23251         (general_movsrc_operand): Allow reg+reg addressing, do not use
23252         general_operand for memory operands.
23254 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
23256         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
23257         when current target options does not apply.
23258         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23259         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23260         * config/i386/bmiintrin.h: Pass appropriate target
23261         attributes to header.
23262         * config/i386/mmintrin.h: Ditto.
23263         * config/i386/nmmintrin.h: Ditto.
23264         * config/i386/avx2intrin.h: Ditto.
23265         * config/i386/fxsrintrin.h: Ditto.
23266         * config/i386/tbmintrin.h: Ditto.
23267         * config/i386/xsaveintrin.h: Ditto.
23268         * config/i386/f16cintrin.h: Ditto.
23269         * config/i386/xtestintrin.h: Ditto.
23270         * config/i386/xsaveoptintrin.h: Ditto.
23271         * config/i386/bmi2intrin.h: Ditto.
23272         * config/i386/lzcntintrin.h: Ditto.
23273         * config/i386/smmintrin.h: Ditto.
23274         * config/i386/wmmintrin.h: Ditto.
23275         * config/i386/x86intrin.h: Remove all header include guards.
23276         * config/i386/prfchwintrin.h: Ditto.
23277         * config/i386/pmmintrin.h: Ditto.
23278         * config/i386/tmmintrin.h: Ditto.
23279         * config/i386/xmmintrin.h: Ditto.
23280         * config/i386/popcntintrin.h: Ditto.
23281         * config/i386/rdseedintrin.h: Ditto.
23282         * config/i386/ammintrin.h: Ditto.
23283         * config/i386/emmintrin.h: Ditto.
23284         * config/i386/immintrin.h: Remove all header include guards.
23285         * config/i386/fma4intrin.h: Ditto.
23286         * config/i386/lwpintrin.h: Ditto.
23287         * config/i386/xopintrin.h: Ditto.
23288         * config/i386/ia32intrin.h: Ditto.
23289         * config/i386/avxintrin.h: Ditto.
23290         * config/i386/rtmintrin.h: Ditto.
23291         * config/i386/fmaintrin.h: Ditto.
23292         * config/i386/mm3dnow.h: Ditto.
23294 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
23296         * common/config/i386/i386-common.c: Handle LZCNT.
23298 2013-06-22  Andi Kleen  <ak@linux.intel.com>
23300         * doc/extend.texi: Use __atomic_store_n instead of
23301         __atomic_store in HLE example.
23303 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
23305         * config/sh/sh.c: Remove <cstdlib> workaround.
23307 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23309         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
23311 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23313         * doc/extend.texi: Document that __atomic_clear and
23314           __atomic_test_and_set should only be used with bool.
23316 2013-06-20  Jan Hubicka  <jh@suse.cz>
23318         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23319         types_same_for_odr.
23320         * tree.c (decls_same_for_odr): New function.
23321         (same_for_edr): New function.
23322         (types_same_for_odr): New function.
23323         (get_binfo_at_offset): Use it.
23324         * tree.h (types_same_for_odr): Declare.
23326 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
23327             Jason Merrill  <jason@redhat.com>
23329         * system.h: Include <cstdlib> as well as <stdlib.h>.
23331 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
23333         PR target/57655
23334         * config/i386/i386.c (construct_container): Report error if
23335         long double is used with disabled x87 float returns.
23337 2013-06-20  Jan Hubicka  <jh@suse.cz>
23339         * lto-cgraph.c (input_symtab): Do not set cgraph state.
23341 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
23343         PR rtl-optimization/57425
23344         PR rtl-optimization/57569
23345         * alias.c (write_dependence_p): Remove parameters mem_mode and
23346         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
23347         Changed all callers.
23348         (canon_anti_dependence): Get comments and semantics in sync.
23349         Add parameter mem_canonicalized.  Changed all callers.
23350         * rtl.h (canon_anti_dependence): Update prototype.
23352 2013-06-20  Richard Biener  <rguenther@suse.de>
23354         * data-streamer-in.c (streamer_read_uhwi): Optimize single
23355         byte case, inline streamer_read_uchar and defer section
23356         overrun check.
23358 2013-06-20  Richard Biener  <rguenther@suse.de>
23360         PR tree-optimization/57584
23361         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23362         SSA names into the expanded expression that take part in
23363         abnormal coalescing.
23365 2013-06-19  Sharad Singhai  <singhai@google.com>
23367         * gcov.c (print_usage): Handle new option.
23368         (process_args): Ditto.
23369         (get_gcov_intermediate_filename): New function.
23370         (output_intermediate_file): New function.
23371         (output_gcov_file): New function
23372         (generate_results): Handle new option.
23373         (release_function): Relase demangled name.
23374         (read_graph_file): Handle demangled name.
23375         (output_lines): Ditto.
23376         * doc/gcov.texi: Document gcov intermediate format.
23378 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
23380         PR bootstrap/57604
23381         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23382         (lra_emit_add): Use the functions.  Add comment about Y as an
23383         address segment.
23385 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
23387         PR driver/57652
23388         * collect2.c (collect_atexit): New.
23389         (collect_exit): Delete.
23390         (main): Register collect_atexit with atexit.
23391         (collect_wait): Change collect_exit to exit.
23392         (do_wait): Same.
23393         * collect2.h (collect_exit): Delete.
23394         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23396 2013-06-19  Wei Mi  <wmi@google.com>
23398         PR rtl-optimization/57518
23399         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23400         if regno is used in paradoxical subreg.
23401         (update_equiv_regs): Check pdx_subregs[regno] before
23402         set a reg to be equivalent with a mem.
23404 2013-06-19  Matthias Klose  <doko@ubuntu.com>
23406         PR driver/57651
23407         * file-find.h (find_a_file): Add a mode parameter.
23408         * file-find.c (find_a_file): Likewise.
23409         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23410         with X_OK for the executables.
23411         * collect2.c (main): Call find_a_file with X_OK.
23413 2013-06-19  Steve Ellcey  <sellcey@mips.com>
23415         PR target/56942
23416         * config/mips/mips.md (casesi_internal_mips16_<mode>):
23417         Use NEXT_INSN instead of next_real_insn.
23419 2013-06-19  Jan Hubicka  <jh@suse.cz>
23421         * cgraph.h (const_value_known_p): Replace by ...
23422         (ctor_for_folding): .. this one.
23423         * cgraphunit.c (process_function_and_variable_attributes): Use it.
23424         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23425         * expr.c (expand_expr_real_1): Likewise.
23426         (string_constant): Likewise.
23427         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23428         * ipa.c (process_references): Likewise.
23429         (symtab_remove_unreachable_nodes): Likewise.
23430         * ipa-inline-analysis.c (param_change_prob): Likewise.
23431         * gimple-fold.c (canonicalize_constructor_val): Likewise.
23432         (get_base_constructor): Likwise.
23433         * varpool.c (varpool_remove_node): Likewise.
23434         (varpool_remove_initializer): LIkewise.
23435         (dump_varpool_node): LIkwise.
23436         (const_value_known_p): Rewrite to ...
23437         (ctor_for_folding): ... this one.
23439 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
23441         PR driver/57651
23442         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23443         PERSONALITY in $PATH derived prefixes.
23445 2013-06-19  Jeff Law  <law@redhat.com>
23447         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23448         in comment.
23450         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23451         (simplify_bitwise_binary): Use it to simpify certain binary ops on
23452         booleans.
23454 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
23456         * config/arm/vfp.md: Move VFP instruction classification documentation
23457         to ...
23458         * config/arm/arm.md: ... here.  Update instruction classification
23459         documentation.
23461 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
23463         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23464         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23465         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
23467 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
23469         PR target/57609
23470         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23471         with NEXT_INSN.  Use tablejump_p to check for jump table data
23472         insns.
23474 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
23476         PR c++/56544
23477         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23478         that now in C++ the value is correct per the C++ standards.
23480 2013-06-19  Richard Biener  <rguenther@suse.de>
23482         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23483         for global context.
23485 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23487         Revert:
23488         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23490         PR target/57609
23491         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23492         with next_active_insn.
23494 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
23496         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23497         functions are inlined during failures to flag an error.
23498         * tree-inline.c (expand_call_inline): Allow the error to be flagged
23499         in early inline pass.
23501 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
23503         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23504         in comments.
23506 2013-06-18  Julian Brown  <julian@codesourcery.com>
23508         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23509         Permit virtual register pre-reload if !strict.
23510         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23511         change.
23512         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23513         prototype.
23514         * config/arm/neon.md (movmisalign<mode>): Use
23515         neon_perm_struct_or_reg_operand instead of
23516         neon_struct_or_register_operand.
23517         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23518         neon_permissive_struct_operand instead of neon_struct_operand.
23519         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23520         neon_vector_mem_operand.
23521         * config/arm/predicates.md (neon_struct_operand): Adjust call to
23522         neon_vector_mem_operand.
23523         (neon_permissive_struct_operand): New.
23524         (neon_struct_or_register_operand): Rename to...
23525         (neon_perm_struct_or_reg_operand): This. Adjust call to
23526         neon_vector_mem_operand.
23528 2013-06-18  Richard Biener  <rguenther@suse.de>
23530         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23531         * lto-streamer.h: Include pointer-set.h.
23532         (struct lto_decl_slot): Remove.
23533         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23534         Remove next_index entry.
23535         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23536         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23537         (lto_init_tree_ref_encoder): Adjust.
23538         (lto_destroy_tree_ref_encoder): Likewise.
23539         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23540         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23541         (lto_output_decl_index): Adjust.
23542         (lto_new_out_decl_state): Likewise.
23543         (lto_record_function_out_decl_state): Likewise.
23544         * lto-streamer-out.c (copy_function): Likewise.
23546 2013-06-18  Richard Biener  <rguenther@suse.de>
23548         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23549         * cgraphunit.c: Include cfgloop.h.
23550         (init_lowered_empty_function): Initialize the loop tree.
23551         (assemble_thunk): Insert new BBs into loops.
23553 2013-06-18  Richard Biener  <rguenther@suse.de>
23555         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23556         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23557         the map from cache entry to cache index optional.
23558         (streamer_tree_cache_replace_tree): Adjust accordingly.
23559         (streamer_tree_cache_append): Likewise.
23560         (streamer_tree_cache_delete): Likewise.
23561         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23562         streamer cache map from cache entry to cache index.
23563         * lto-streamer-out.c (create_output_block): Adjust.
23565 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
23567         * config/arm/arm.md (attribute "insn"): Move multiplication and
23568         division attributes to...
23569         (attribute "type"): ... here.  Remove mult.
23570         (attribute "mul32"): New attribute.
23571         (attribute "mul64"): Add umaal.
23572         (*arm_mulsi3): Update attributes.
23573         (*arm_mulsi3_v6): Likewise.
23574         (*thumb_mulsi3): Likewise.
23575         (*thumb_mulsi3_v6): Likewise.
23576         (*mulsi3_compare0): Likewise.
23577         (*mulsi3_compare0_v6): Likewise.
23578         (*mulsi_compare0_scratch): Likewise.
23579         (*mulsi_compare0_scratch_v6): Likewise.
23580         (*mulsi3addsi): Likewise.
23581         (*mulsi3addsi_v6): Likewise.
23582         (*mulsi3addsi_compare0): Likewise.
23583         (*mulsi3addsi_compare0_v6): Likewise.
23584         (*mulsi3addsi_compare0_scratch): Likewise.
23585         (*mulsi3addsi_compare0_scratch_v6): Likewise.
23586         (*mulsi3subsi): Likewise.
23587         (*mulsidi3adddi): Likewise.
23588         (*mulsi3addsi_v6): Likewise.
23589         (*mulsidi3adddi_v6): Likewise.
23590         (*mulsidi3_nov6): Likewise.
23591         (*mulsidi3_v6): Likewise.
23592         (*umulsidi3_nov6): Likewise.
23593         (*umulsidi3_v6): Likewise.
23594         (*umulsidi3adddi): Likewise.
23595         (*umulsidi3adddi_v6): Likewise.
23596         (*smulsi3_highpart_nov6): Likewise.
23597         (*smulsi3_highpart_v6): Likewise.
23598         (*umulsi3_highpart_nov6): Likewise.
23599         (*umulsi3_highpart_v6): Likewise.
23600         (mulhisi3): Likewise.
23601         (*mulhisi3tb): Likewise.
23602         (*mulhisi3bt): Likewise.
23603         (*mulhisi3tt): Likewise.
23604         (maddhisi4): Likewise.
23605         (*maddhisi4tb): Likewise.
23606         (*maddhisi4tt): Likewise.
23607         (maddhidi4): Likewise.
23608         (*maddhidi4tb): Likewise.
23609         (*maddhidi4tt): Likewise.
23610         (divsi3): Likewise.
23611         (udivsi3): Likewise.
23612         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23613         (thumb2_mulsi_short_compare0): Likewise.
23614         (thumb2_mulsi_short_compare0_scratch): Likewise.
23615         * config/arm/arm1020e.md (1020mult1): Update attribute change.
23616         (1020mult2): Likewise.
23617         (1020mult3): Likewise.
23618         (1020mult4): Likewise.
23619         (1020mult5): Likewise.
23620         (1020mult6): Likewise.
23621         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23622         change.
23623         (cortex_a15_mult64): Likewise.
23624         (cortex_a15_sdiv): Likewise.
23625         (cortex_a15_udiv): Likewise.
23626         * config/arm/arm1026ejs.md (mult1): Update attribute change.
23627         (mult2): Likewise.
23628         (mult3): Likewise.
23629         (mult4): Likewise.
23630         (mult5): Likewise.
23631         (mult6): Likewise.
23632         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23633         (pj4_ir_div): Likewise.
23634         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23635         (11_mult2): Likewise.
23636         (11_mult3): Likewise.
23637         (11_mult4): Likewise.
23638         (11_mult5): Likewise.
23639         (11_mult6): Likewise.
23640         (11_mult7): Likewise.
23641         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23642         (cortex_a8_mla): Likewise.
23643         (cortex_a8_mull): Likewise.
23644         (cortex_a8_smulwy): Likewise.
23645         (cortex_a8_smlald): Likewise.
23646         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23647         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23648         (cortex_r4_mul_3): Likewise.
23649         (cortex_r4_mla_4): Likewise.
23650         (cortex_r4_mla_3): Likewise.
23651         (cortex_r4_smlald): Likewise.
23652         (cortex_r4_mull): Likewise.
23653         (cortex_r4_sdiv): Likewise.
23654         (cortex_r4_udiv): Likewise.
23655         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23656         (cortex_a7_idiv): Likewise.
23657         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
23658         (9_mult2): Likewise.
23659         (9_mult3): Likewise.
23660         (9_mult4): Likewise.
23661         (9_mult5): Likewise.
23662         (9_mult6): Likewise.
23663         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
23664         (cortex_a53_sdiv): Likewise.
23665         (cortex_a53_udiv): Likewise.
23666         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
23667         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
23668         (mp626_mult2): Likewise.
23669         (mp626_mult3): Likewise.
23670         (mp626_mult4): Likewise.
23671         * config/arm/fa526.md (526_mult1): Update attribute change.
23672         (526_mult2): Likewise.
23673         * config/arm/arm-generic.md (mult): Update attribute change.
23674         (mult_ldsched_strongarm): Likewise.
23675         (mult_ldsched): Likewise.
23676         (multi_cycle): Likewise.
23677         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23678         * config/arm/fa606te.md (606te_mult1): Update attribute change.
23679         (606te_mult2): Likewise.
23680         (606te_mult3): Likewise.
23681         (606te_mult4): Likewise.
23682         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23683         (cortex_a9_mac16): Likewise.
23684         (cortex_a9_multiply): Likewise.
23685         (cortex_a9_mac): Likewise.
23686         (cortex_a9_multiply_long): Likewise.
23687         * config/arm/fa626te.md (626te_mult1): Update attribute change.
23688         (626te_mult2): Likewise.
23689         (626te_mult3): Likewise.
23690         (626te_mult4): Likewise.
23692 2013-06-18  Richard Biener  <rguenther@suse.de>
23694         PR lto/57334
23695         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23697 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23699         PR target/57609
23700         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23701         with next_active_insn.
23703 2013-06-18  Alan Modra  <amodra@gmail.com>
23705         * config/rs6000/rs6000.h (enum data_align): New.
23706         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23707         (DATA_ABI_ALIGNMENT): Define.
23708         (CONSTANT_ALIGNMENT): Correct comment.
23709         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23710         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23712 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
23714         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23715         ATTRIBUTE_UNUSED marking.
23717 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
23719         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23720         alternative and update.
23721         (aarch64_dup_lanedi): Delete.
23722         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23723         * config/aarch64/aarch64-simd-builtins.def: Update.
23725 2013-06-17  Richard Biener  <rguenther@suse.de>
23727         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23728         (lto_input_scc): Declare.
23729         (lto_input_tree_1): Likewise.
23730         (struct lto_stats_d): Add num_tree_bodies_output and
23731         num_pickle_refs_output.
23732         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23733         (lto_read_tree_1): Split out from ...
23734         (lto_read_tree): ... this.
23735         (lto_input_scc): New function.
23736         (lto_input_tree_1): Split out from ...
23737         (lto_input_tree): ... this.  Handle LTO_tree_scc.
23738         (lto_data_in_create): Create the streamer cache without hashes.
23739         * lto-streamer-out.c (create_output_block): Create the streamer
23740         cache with hashes when not doing WPA.
23741         (lto_write_tree_1): Split out from ...
23742         (lto_write_tree): ... this.
23743         (get_symbol_initial_value): New function.
23744         (lto_output_tree_1): Split out from ...
23745         (lto_output_tree): ... this.  Write trees as series of SCCs
23746         using a DFS walk via DFS_write_tree.
23747         (struct sccs, struct scc_entry): New types.
23748         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23749         (DFS_write_tree_body): New function.
23750         (DFS_write_tree): Likewise.
23751         (hash_tree): Likewise.
23752         (scc_entry_compare): Likewise.
23753         (hash_scc): Likewise.
23754         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
23755         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
23756         TREE_CHAIN as regular reference.
23757         (streamer_read_integer_cst): Remove.
23758         (streamer_get_pickled_tree): Adjust.
23759         * tree-streamer-out.c (streamer_write_chain): Disable streaming
23760         of DECL_EXTERNALs in BLOCK_VARS for now.
23761         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
23762         reference.
23763         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
23764         Add hash value argument and record that if hashes are recorded
23765         in the cache.
23766         (streamer_tree_cache_insert_1): Adjust.
23767         (streamer_tree_cache_insert): Likewise.
23768         (streamer_tree_cache_insert_at): Rename to ...
23769         (streamer_tree_cache_replace_tree): ... this and adjust.
23770         (streamer_tree_cache_append): Adjust.
23771         (record_common_node): Likewise.
23772         (streamer_tree_cache_create): Add argument whether to
23773         record hash values together with trees.
23774         (streamer_tree_cache_delete): Adjust.
23775         * tree-streamer.h (struct streamer_tree_cache_d): Add
23776         vector of hashes.
23777         (streamer_read_integer_cst): Remove.
23778         (streamer_tree_cache_insert): Adjust.
23779         (streamer_tree_cache_append): Likewise.
23780         (streamer_tree_cache_insert_at): Rename to ...
23781         (streamer_tree_cache_replace_tree): ... this and adjust.
23782         (streamer_tree_cache_create): Add argument whether to record hashes.
23783         (streamer_tree_cache_get): Rename to ...
23784         (streamer_tree_cache_get_tree): ... this.
23785         (streamer_tree_cache_get_hash): New function.
23786         * tree.c (cache_integer_cst): New function.
23787         * tree.h (cache_integer_cst): Declare.
23788         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
23789         * lto-symtab.c (lto_varpool_replace_node): Only release
23790         DECL_INITIAL of non-prevailing decls.
23791         * varpool.c (varpool_remove_initializer): Do not release
23792         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
23794 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23796         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
23797         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
23798         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
23799         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
23800         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
23801         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
23802         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
23803         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
23804         instead of TARGET_64BIT.
23805         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
23806         Require ISA_HAS_<D>DIV.
23808 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
23810         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
23811         (mips*-*-linux*): Move default with_llsc setting to where other
23812         defaults are set.
23813         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
23814         with_arch block.
23815         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
23816         Likewise.  Remove default with_tune setting.  Move default float
23817         setting to its own block.  Handle with_llsc in the same block as above.
23819 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
23821         PR rtl-optimization/57425
23822         PR rtl-optimization/57569
23823         * alias.c (write_dependence_p): Add new parameters mem_mode,
23824         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
23825         Changed all callers.
23826         (canon_anti_dependence): New function.
23827         * cse.c (check_dependence): Use canon_anti_dependence.
23828         * cselib.c (cselib_invalidate_mem): Likewise.
23829         * rtl.h (canon_anti_dependence): Declare.
23831 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23833         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
23834         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
23835         ".set mips3" for 64-bit targets.
23837 2013-06-15  Dehao Chen  <dehao@google.com>
23839         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
23840         * gimple-low.c (gimple_check_call_matching_types): Likewise.
23841         (gimple_check_call_args): Likewise.
23842         * value-prof.c (check_ic_target): Likewise.
23843         * ipa-inline.c (early_inliner): Likewise.
23844         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
23845         * cgraph.c (cgraph_create_edge_1): Likewise.
23846         (cgraph_make_edge_direct): Likewise.
23848 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23850         PR target/57615
23851         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
23852         rs6000_output_move_128bit to handle emitting quad memory
23853         operations.  Set attribute length to 8 bytes.
23855 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
23857         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
23858         New pattern.
23859         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
23860         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
23861         (aarch64_<su>mlsl<mode>): Likewise.
23863 2013-06-14  Mike Stump  <mikestump@comcast.net>
23865         * Makefile.in (TARGET_H): Add insn-codes.h.
23867 2013-06-14  Alan Modra  <amodra@gmail.com>
23869         PR middle-end/57134
23870         PR middle-end/57586
23871         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
23872         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
23873         bitfield expansion when EXPAND_MEMORY.
23874         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
23876 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
23878         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23879         test for clearing quad memory on 32-bit later.
23881 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23883         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
23884         (fold_negate_expr): Likewise.
23885         (fold_real_zero_addition_p): Handle vectors.
23886         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
23888 2013-06-14  Alan Modra  <amodra@gmail.com>
23890         * varasm.c (force_const_mem): Revert 2013-06-07 change.
23892 2013-06-13  Jan Hubicka  <jh@suse.cz>
23894         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
23895         Local comdats are not externally visible.
23896         * symtab.c (dump_symtab_base): Dump externally visible.
23897         (verify_symtab_base): Verify back links in the symtab hash.
23899 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23901         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
23902         CONVERT_EXPR as equal nodes.
23904 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23906         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
23908 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23910         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
23911         Generalize to complex and vector.
23912         * tree.c (build_all_ones_cst): New function.
23913         * tree.h (build_all_ones_cst): Declare it.
23915 2013-06-13  Alan Modra  <amodra@gmail.com>
23917         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
23918         * config/rs6000/rs6000.md (signbittf2): New insn.
23919         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
23920         (abstf2_internal, cmptf_internal2): Likewise.
23921         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
23923 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23924             Pat Haugen  <pthaugen@us.ibm.com>
23925             Peter Bergner  <bergner@vnet.ibm.com>
23927         * config/rs6000/rs6000.c (emit_load_locked): Add support for
23928         power8 byte, half-word, and quad-word atomic instructions.
23929         (emit_store_conditional): Likewise.
23930         (rs6000_expand_atomic_compare_and_swap): Likewise.
23931         (rs6000_expand_atomic_op): Likewise.
23933         * config/rs6000/sync.md (larx): Add new modes for power8.
23934         (stcx): Likewise.
23935         (AINT): New mode iterator to include TImode as well as normal
23936         integer modes on power8.
23937         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
23938         that VSX registers are not considered.  Use AINT mode iterator
23939         instead of INT1 to allow inclusion of quad word atomic operations
23940         on power8.
23941         (load_locked<mode>): Likewise.
23942         (store_conditional<mode>): Likewise.
23943         (atomic_compare_and_swap<mode>): Likewise.
23944         (atomic_exchange<mode>): Likewise.
23945         (atomic_nand<mode>): Likewise.
23946         (atomic_fetch_<fetchop_name><mode>): Likewise.
23947         (atomic_nand_fetch<mode>): Likewise.
23948         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
23949         each type.
23950         (ATOMIC): On power8, add QImode, HImode modes.
23951         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
23952         modes that promote to SImode.
23953         (load_lockedti): Convert TImode arguments to PTImode, so that we
23954         get a guaranteed even/odd register pair.
23955         (load_lockedpti): Likewise.
23956         (store_conditionalti): Likewise.
23957         (store_conditionalpti): Likewise.
23959         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
23960         atomic load/store instructions.
23961         (HSI): Likewise.
23963 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
23965         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
23966         loads.
23967         (insn_count): New attribute, with most cases extracted from...
23968         (length): ...here.  Redefine most cases in terms of insn_count.
23969         (single_insn): Delete.
23970         (can_delay): Use insn_count to check for single instructions.
23971         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
23972         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
23973         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
23974         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
23975         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
23976         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
23977         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
23978         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
23979         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
23980         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
23981         rather than "length".
23982         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
23983         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
23984         Use "insn_count" rather than "length".
23985         * config/mips/mips-dsp.md
23986         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
23987         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
23988         length attributes.
23990 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
23992         PR tree-optimization/57361
23993         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
23995 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
23997         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
23998         to split.
23999         (aarch64_simd_combine<mode>): New instruction expansion.
24000         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24001         function prototype.
24002         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24003         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24005 2013-06-12  Jan Hubicka  <jh@suse.cz>
24007         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24008         decl has when in streaming stage.
24009         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24010         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24012 2013-06-12  Roland Stigge  <stigge@antcom.de>
24014         PR target/57578
24015         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24017 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24019         PR tree-optimization/57537
24020         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24021         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24023 2013-06-12  Richard Biener  <rguenther@suse.de>
24025         * data-streamer.h (streamer_write_char_stream): CSE
24026         obs->current_pointer.
24027         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24028         streamer_write_char_stream manually and optimize the resulting loop.
24029         (streamer_write_hwi_stream): Likewise.
24031 2013-06-12  Jan Hubicka  <jh@suse.cz>
24033         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24034         * cgraph.h (varpool_create_empty_node): Declare.
24035         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24036         duplicated nodes.
24037         * symtab.c (symtab_unregister_node): Be lax about missin entries
24038         in node hash.
24039         (symtab_get_node): Update comment.
24040         * varpool.c (varpool_create_empty_node): Break out from ...
24041         (varpool_node_for_decl): ... here.
24042         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24044 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
24046         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24047         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24048         part.  Use straight-line flow at the end.
24049         <COMPONENT_REF>: Remove superfluous else.
24050         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24052 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24054         PR target/56564
24055         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24056         target hook even for !TREE_PUBLIC decls.  If no resolution info
24057         is available, return false for common and external decls.
24059 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24061         * config/rl78/constraints.md (U): New constraint.
24062         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24063         valloc attribute.
24065 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
24067         PR target/57589
24068         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24069         to allow returning address to AT_PLATFORM name.
24071 2013-06-11  Jan Hubicka  <jh@suse.cz>
24073         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24074         * cgraph.h (symtab_node_base): Add weakref flag.
24075         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24076         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24077         (output_weakrefs): Use weakref flag.
24078         * fold-const.c (simple_operand_p): Handle WEAK.
24079         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24080         * ipa.c (varpool_externally_visible_p): Drop weakref.
24081         (function_and_variable_visibility): Update comment; fix weakref
24082         sanity checks; do not clear DECL_WEAK on them.
24083         * lto-cgraph.c (lto_output_node): update.
24084         (lto_output_varpool_node): Update.
24085         (input_overwrite_node): Update.
24086         (input_node): Update.
24087         (input_varpool_node): Update.
24088         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24089         (lto_symtab_merge_symbols): Add sanity check.
24090         (lto_symtab_prevailing_decl): Do not special case weakrefs.
24091         * passes.c (rest_of_decl_compilation): Set static flag, too.
24092         * symtab.c (dump_symtab_base): Dump weakref.
24093         (verify_symtab_base): Sanity check weakrefs.
24094         (symtab_make_decl_local): Remove duplicated code.
24095         (symtab_alias_ultimate_target): Simplify.
24096         * varpool.c (varpool_create_variable_alias): Set weakref flag.
24098 2013-06-11  Tom de Vries  <tom@codesourcery.com>
24100         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
24101         sequence_vect == NULL.
24103 2013-06-11  DJ Delorie  <dj@redhat.com>
24105         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24106         (rl78_unwind_word_mode): New.
24108 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24110         * final.c (debug_prefix_maps): Make static.
24112 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24114         * function.c (initial_trampoline): Remove stray copy.
24116 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
24118         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24120 2013-06-11  Martin Jambor  <mjambor@suse.cz>
24122         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24123         within bounds at the beginning of the function.
24125 2013-06-11  Alan Modra  <amodra@gmail.com>
24127         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
24128         reporting.
24129         (get_named_section): Don't NULL !DECL_P decl.
24131 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
24133         * doc/invoke.texi (core-avx2): Document.
24134         (slm): Likewise.
24135         (atom): Updated with MOVBE.
24137 2013-06-11  Richard Biener  <rguenther@suse.de>
24139         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24141 2013-06-11  Anton Blanchard  <anton@samba.org>
24143         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24144         correct shift value in little-endian mode.
24146 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
24148         PR target/56564
24149         * varasm.c (get_variable_align): Move #endif to the right place.
24151 2013-06-10  Cary Coutant  <ccoutant@google.com>
24153         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24154         for hash so that hash table traversal order is deterministic.
24156 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24157             Pat Haugen  <pthaugen@us.ibm.com>
24158             Peter Bergner  <bergner@vnet.ibm.com>
24160         * config/rs6000/vector.md (GPR move splitter): Do not split moves
24161         of vectors in GPRS if they are direct moves or quad word load or
24162         store moves.
24164         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24165         declaration.
24166         (direct_move_p): Likewise.
24167         (quad_load_store_p): Likewise.
24169         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24170         classes into bins based on the physical register type.
24171         (reg_class_to_reg_type): Likewise.
24172         (IS_STD_REG_TYPE): Likewise.
24173         (IS_FP_VECT_REG_TYPE): Likewise.
24174         (reload_fpr_gpr): Arrays to determine what insn to use if we can
24175         use direct move instructions.
24176         (reload_gpr_vsx): Likewise.
24177         (reload_vsx_gpr): Likewise.
24178         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24179         information that is a simplification of register classes.  Also
24180         precalculate direct move reload helpers.
24181         (direct_move_p): New function to return true if the operation can
24182         be done as a direct move instruciton.
24183         (quad_load_store_p): New function to return true if the operation
24184         is a quad memory operation.
24185         (rs6000_legitimize_address): If quad memory, only allow register
24186         indirect for TImode addresses.
24187         (rs6000_legitimate_address_p): Likewise.
24188         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24189         (rs6000_reload_register_type): Likewise.
24190         (register_to_reg_type): Return register type.
24191         (rs6000_secondary_reload_simple_move): New helper function for
24192         secondary reload and secondary memory needed to identify anything
24193         that is a simple move, and does not need reloading.
24194         (rs6000_secondary_reload_direct_move): New helper function for
24195         secondary reload to identify cases that can be done with several
24196         instructions via the direct move instructions.
24197         (rs6000_secondary_reload_move): New helper function for secondary
24198         reload to identify moves between register types that can be done.
24199         (rs6000_secondary_reload): Add support for quad memory operations
24200         and for direct move.
24201         (rs6000_secondary_memory_needed): Likewise.
24202         (rs6000_debug_secondary_memory_needed): Change argument names.
24203         (rs6000_output_move_128bit): New function to return the move to
24204         use for 128-bit moves, including knowing about the various
24205         limitations of quad memory operations.
24207         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24208         memory operations.  call rs6000_output_move_128bit for the actual
24209         instruciton(s) to generate.
24210         (vsx_movti_64bit): Likewise.
24212         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24213         (UNSPEC_P8V_MTVSRWZ): Likewise.
24214         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24215         (UNSPEC_P8V_MTVSRD): Likewise.
24216         (UNSPEC_P8V_XXPERMDI): Likewise.
24217         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24218         (UNSPEC_FUSION_GPR): Likewise.
24219         (FMOVE128_GPR): New iterator for direct move.
24220         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24221         (f32_sv): Likewise.
24222         (f32_dm): Likewise.
24223         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24224         loads and direct move instructions.
24225         (zero_extendsidi2_lfiwzx): Likewise.
24226         (extendsidi2_lfiwax): Likewise.
24227         (extendsidi2_nocell): Likewise.
24228         (floatsi<mode>2_lfiwax): Likewise.
24229         (lfiwax): Likewise.
24230         (floatunssi<mode>2_lfiwzx): Likewise.
24231         (lfiwzx): Likewise.
24232         (fix_trunc<mode>_stfiwx): Likewise.
24233         (fixuns_trunc<mode>_stfiwx): Likewise.
24234         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24235         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24236         (parity<mode>2_cmpb): Set length/type attr.
24237         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24238         for 'mr.' to fast_compare.
24239         (bpermd_<mode>): Change type attr to popcnt.
24240         (p8_fmrgow_<mode>): New insns for power8 direct move support.
24241         (p8_mtvsrwz_1): Likewise.
24242         (p8_mtvsrwz_2): Likewise.
24243         (reload_fpr_from_gpr<mode>): Likewise.
24244         (p8_mtvsrd_1): Likewise.
24245         (p8_mtvsrd_2): Likewise.
24246         (p8_xxpermdi_<mode>): Likewise.
24247         (reload_vsx_from_gpr<mode>): Likewise.
24248         (reload_vsx_from_gprsf): Likewise.
24249         (p8_mfvsrd_3_<mode>): LIkewise.
24250         (reload_gpr_from_vsx<mode>): Likewise.
24251         (reload_gpr_from_vsxsf): Likewise.
24252         (p8_mfvsrd_4_disf): Likewise.
24253         (multi-word GPR splits): Do not split direct moves or quad memory
24254         operations.
24256 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
24258         * tree-into-ssa.c (interesting_blocks): Make static.
24260 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
24262         PR target/56564
24263         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24264         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24265         Use DATA_ABI_ALIGNMENT for that case instead if defined.
24266         (get_variable_align): New function.
24267         (get_variable_section, emit_bss, emit_common,
24268         assemble_variable_contents, place_block_symbol): Use
24269         get_variable_align instead of DECL_ALIGN.
24270         (assemble_noswitch_variable): Add align argument, use it
24271         instead of DECL_ALIGN.
24272         (assemble_variable): Adjust caller.  Use get_variable_align
24273         instead of DECL_ALIGN.
24274         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24275         caller.
24276         (DATA_ABI_ALIGNMENT): Define.
24277         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24278         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
24279         opt is false, only return the psABI mandated alignment increase.
24280         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24281         (DATA_ABI_ALIGNMENT): ... this.
24282         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24283         (DATA_ABI_ALIGNMENT): ... this.
24284         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24285         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24286         (DATA_ABI_ALIGNMENT): ... this.
24287         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24288         * doc/tm.texi: Regenerated.
24290 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
24292         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24293         cmp_code to construct REG_EQUAL note.
24295 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
24297         PR target/57568
24298         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24299         that operands[2] doesn't overlap with operands[0].
24301 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
24302             Jan Hubicka  <jh@suse.cz>
24304         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24305         hack to mark symbols as used.
24307 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
24309         PR rtl-optimization/57559
24310         * lra-constraints.c (process_alt_operands): Don't discourage
24311         memory with known offset for offsetable memory constraint.
24312         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24314 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
24316         * varasm.c (struct oc_local_state): Reorder fields.
24317         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24318         and adjust accordingly.
24319         (output_constructor): Reorder initialization code and adjust call to
24320         output_constructor_bitfield.
24322 2013-06-07  Jan Hubicka  <jh@suse.cz>
24324         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24326 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
24328         * tree-object-size.c (unknown): Make const.
24330 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24332         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24333         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24334         for last alternative in the cpu_facility attribute.
24336 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24338         PR target/56315
24339         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24340         (xordi3): Change operand 2 constraint to arm_xordi_operand.
24341         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24342         * config/arm/constraints.md (Dg): New constraint.
24343         * config/arm/neon.md (xordi3_neon): Remove.
24344         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24345         * config/arm/predicates.md (arm_xordi_operand): New predicate.
24347 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24349         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24350         Clean up alternatives.
24352 2013-06-07  Alan Modra  <amodra@gmail.com>
24354         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24355         va_list_gpr_size.
24357 2013-06-07  Alan Modra  <amodra@gmail.com>
24359         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24361 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24363         * config/arm/constraints.md (Df): New constraint.
24364         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24365         Correct length attribute for last two alternatives.
24367 2013-06-07  Alan Modra  <amodra@gmail.com>
24369         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24370         override user -mfp-in-toc.
24371         (offsettable_ok_by_alignment): Consider just the current access
24372         rather than the whole object, unless BLKmode.  Handle
24373         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24374         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24375         for -mcmodel=medium.
24376         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24377         override user -mfp-in-toc or -msum-in-toc.  Default to
24378         -mno-fp-in-toc for -mcmodel=medium.
24380 2013-06-06  DJ Delorie  <dj@redhat.com>
24382         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24383         TARGET_VALID_POINTER_MODE.
24385 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24386             Pat Haugen  <pthaugen@us.ibm.com>
24387             Peter Bergner  <bergner@vnet.ibm.com>
24389         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24390         Document new power8 builtins.
24392         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24393         condition code register, to allow 128-bit logical operations to be
24394         done in the VSX or GPR registers.
24395         (nor<mode>3): Use the canonical form for nor.
24396         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24397         vclz*, and vpopcnt* vector instructions.
24398         (nand<mode>3): Likewise.
24399         (orc<mode>3): Likewise.
24400         (clz<mode>2): LIkewise.
24401         (popcount<mode>2): Likewise.
24403         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24404         that only the GPRs are recognized.
24406         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24407         support for new power8 builtins.
24409         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24410         builtin functions.
24411         (xscvdpspn): Likewise.
24412         (vclz): Likewise.
24413         (vclzb): Likewise.
24414         (vclzh): Likewise.
24415         (vclzw): Likewise.
24416         (vclzd): Likewise.
24417         (vpopcnt): Likewise.
24418         (vpopcntb): Likewise.
24419         (vpopcnth): Likewise.
24420         (vpopcntw): Likewise.
24421         (vpopcntd): Likewise.
24422         (vgbbd): Likewise.
24423         (vmrgew): Likewise.
24424         (vmrgow): Likewise.
24425         (eqv): Likewise.
24426         (eqv_v16qi3): Likewise.
24427         (eqv_v8hi3): Likewise.
24428         (eqv_v4si3): Likewise.
24429         (eqv_v2di3): Likewise.
24430         (eqv_v4sf3): Likewise.
24431         (eqv_v2df3): Likewise.
24432         (nand): Likewise.
24433         (nand_v16qi3): Likewise.
24434         (nand_v8hi3): Likewise.
24435         (nand_v4si3): Likewise.
24436         (nand_v2di3): Likewise.
24437         (nand_v4sf3): Likewise.
24438         (nand_v2df3): Likewise.
24439         (orc): Likewise.
24440         (orc_v16qi3): Likewise.
24441         (orc_v8hi3): Likewise.
24442         (orc_v4si3): Likewise.
24443         (orc_v2di3): Likewise.
24444         (orc_v4sf3): Likewise.
24445         (orc_v2df3): Likewise.
24447         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24448         allow power8 quad mode in 64-bit.
24449         (rs6000_builtin_vectorized_function): Add support to vectorize
24450         ISA 2.07 count leading zeros, population count builtins.
24451         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24452         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24453         (builtin_function_type): Add vgbbd builtin function which takes an
24454         unsigned argument.
24455         (altivec_expand_vec_perm_const): Add support for new power8 merge
24456         instructions.
24458         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24459         that does not include TImdoe for use with 32-bit.
24460         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24461         instructions.
24462         (UNSPEC_VSX_CVDPSPN): Likewise.
24463         (vsx_xscvdpspn): Likewise.
24464         (vsx_xscvspdpn): Likewise.
24465         (vsx_xscvdpspn_scalar): Likewise.
24466         (vsx_xscvspdpn_directmove): Likewise.
24467         (vsx_and<mode>3): Split logical operations into 32-bit and
24468         64-bit. Add support to do logical operations on TImode as well as
24469         VSX vector types.  Allow logical operations to be done in either
24470         VSX registers or in general purpose registers in 64-bit mode.  Add
24471         splitters if GPRs were used. For AND, add clobber of CCmode to
24472         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
24473         encoding.
24474         (vsx_and<mode>3_32bit): Likewise.
24475         (vsx_and<mode>3_64bit): Likewise.
24476         (vsx_ior<mode>3): Likewise.
24477         (vsx_ior<mode>3_32bit): Likewise.
24478         (vsx_ior<mode>3_64bit): Likewise.
24479         (vsx_xor<mode>3): Likewise.
24480         (vsx_xor<mode>3_32bit): Likewise.
24481         (vsx_xor<mode>3_64bit): Likewise.
24482         (vsx_one_cmpl<mode>2): Likewise.
24483         (vsx_one_cmpl<mode>2_32bit): Likewise.
24484         (vsx_one_cmpl<mode>2_64bit): Likewise.
24485         (vsx_nor<mode>3): Likewise.
24486         (vsx_nor<mode>3_32bit): Likewise.
24487         (vsx_nor<mode>3_64bit): Likewise.
24488         (vsx_andc<mode>3): Likewise.
24489         (vsx_andc<mode>3_32bit): Likewise.
24490         (vsx_andc<mode>3_64bit): Likewise.
24491         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24492         and xxlorc instructions.
24493         (vsx_eqv<mode>3_64bit): Likewise.
24494         (vsx_nand<mode>3_32bit): Likewise.
24495         (vsx_nand<mode>3_64bit): Likewise.
24496         (vsx_orc<mode>3_32bit): Likewise.
24497         (vsx_orc<mode>3_64bit): Likewise.
24499         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24501         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24502         instruction.
24503         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24504         (p8_vmrgow): Likewise.
24505         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24506         GPRs to be split under VSX.
24507         (p8v_clz<mode>2): Add power8 count leading zero support.
24508         (p8v_popcount<mode>2): Add power8 population count support.
24509         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24510         support.
24512         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24513         instruction.
24515         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24516         builtin functions.
24517         (vec_nand): Likewise.
24518         (vec_vclz): Likewise.
24519         (vec_vclzb): Likewise.
24520         (vec_vclzd): Likewise.
24521         (vec_vclzh): Likewise.
24522         (vec_vclzw): Likewise.
24523         (vec_vgbbd): Likewise.
24524         (vec_vmrgew): Likewise.
24525         (vec_vmrgow): Likewise.
24526         (vec_vpopcnt): Likewise.
24527         (vec_vpopcntb): Likewise.
24528         (vec_vpopcntd): Likewise.
24529         (vec_vpopcnth): Likewise.
24530         (vec_vpopcntw): Likewise.
24532 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24534         PR rtl-optimization/57468
24535         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24536         spilled pseudos.
24538 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24540         PR rtl-optimization/57459
24541         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24542         type when setting live regs.
24544 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24546         * config/s390/s390.opt (mlra): New option.
24547         * config/s390/s390.c (s390_decompose_address): Check displacement
24548         for all registers for LRA.
24549         (s390_secondary_reload): Don't used secondary reloads for LRA.
24550         (s390_lra_p): New function.
24551         (TARGET_LRA_P): Define.
24552         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24553         of attribute cpu_facility to zarch for the last alternative.
24554         (*cmpmem_short): Ditto.
24556 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24558         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24559         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
24560         (arm_expand_prologue): Likewise.
24562 2013-06-06  Teresa Johnson  <tejohnson@google.com>
24564         PR c++/53743
24565         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24566         as this is now done by redirect_edge_and_branch_force.
24567         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24568         barriers, and fix interaction with splitting.
24569         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24570         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24571         reflect changes made in the routine.
24572         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24573         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24574         since this is called in cfglayout mode, and replace partition fixup
24575         with assert as that is now done by force_nonfallthru_and_redirect.
24576         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24577         already be marked with region crossing note.
24578         (insert_section_boundary_note): Make non-static, gate on flag
24579         has_bb_partition, rewrite to also check for multiple partitions.
24580         (rest_of_handle_reorder_blocks): Remove call to
24581         insert_section_boundary_note, now done later during free_cfg.
24582         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24583         * bb-reorder.h (insert_section_boundary_note): Declare.
24584         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24585         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24586         invoke insert_section_boundary_note.
24587         (try_redirect_by_replacing_jump): Remove unnecessary
24588         check for region crossing note.
24589         (fixup_partition_crossing): New function.
24590         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24591         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24592         in non-cfglayout mode.
24593         (force_nonfallthru_and_redirect): Fixup partition boundaries,
24594         remove old code that tried to do this. Emit barrier correctly
24595         when we are in cfglayout mode.
24596         (last_bb_in_partition): New function.
24597         (rtl_split_edge): Correctly fixup partition boundaries.
24598         (commit_one_edge_insertion): Remove old code that tried to
24599         fixup region crossing edge since this is now handled in
24600         split_block, and set up insertion point correctly since
24601         block may now end in a jump.
24602         (verify_hot_cold_block_grouping): Guard against checking when not in
24603         linearized RTL mode.
24604         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24605         notes.
24606         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24607         rtl_verify_flow_info, so not called in cfglayout mode.
24608         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24609         (fixup_reorder_chain): Remove old code that attempted to fixup region
24610         crossing note as this is now handled in force_nonfallthru_and_redirect.
24611         (duplicate_insn_chain): Don't duplicate switch section notes.
24612         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24613         note.
24614         * basic-block.h (emit_barrier_after_bb): Declare.
24616 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24618         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24619         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24620         arm_usatsihi): Adjust alternatives for arm_restrict_it.
24622 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24624         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24625         where appropriate.
24626         * config/arm/ldmstm.md: Regenerate.
24628 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24630         * config/arm/sync.md (atomic_loaddi_1):
24631         Disable predication for arm_restrict_it.
24632         (arm_load_exclusive<mode>): Likewise.
24633         (arm_load_exclusivesi): Likewise.
24634         (arm_load_exclusivedi): Likewise.
24635         (arm_load_acquire_exclusive<mode>): Likewise.
24636         (arm_load_acquire_exclusivesi): Likewise.
24637         (arm_load_acquire_exclusivedi): Likewise.
24638         (arm_store_exclusive<mode>): Likewise.
24639         (arm_store_exclusive<mode>): Likewise.
24640         (arm_store_release_exclusivedi): Likewise.
24641         (arm_store_release_exclusive<mode>): Likewise.
24643 2013-06-06  Richard Biener  <rguenther@suse.de>
24645         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24646         after LTO_null.
24647         (lto_tag_is_tree_code_p): Adjust.
24648         (lto_tag_is_gimple_code_p): Likewise.
24649         (lto_gimple_code_to_tag): Likewise.
24650         (lto_tag_to_gimple_code): Likewise.
24651         (lto_tree_code_to_tag): Likewise.
24652         (lto_tag_to_tree_code): Likewise.
24653         * data-streamer.h (streamer_write_hwi_in_range): Use
24654         uhwi streaming to stream the normalized range.
24655         (streamer_read_hwi_in_range): Likewise.
24657 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24659         * config/arm/arm.md (enabled_for_depr_it): New attribute.
24660         (predicable_short_it): Likewise.
24661         (predicated): Likewise.
24662         (enabled): Handle above.
24663         (define_cond_exec): Set predicated attribute to yes.
24665 2013-06-05  Mike Stump  <mikestump@comcast.net>
24667         * gdbinit.in (__FUNCTION__): Add.
24669 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
24671         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24672         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24674 2013-06-05  Jan Hubicka  <jh@suse.cz>
24676         * varasm.c (mark_decl_referenced): Revert the removal until targets
24677         are fixed.
24679 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
24681         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24682         instead of mark_decl_referenced.
24684 2013-06-05  Jan Hubicka  <jh@suse.cz>
24686         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24687         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24688         and symtab_used_from_object_file_p.
24689         (cgraph_make_node_local_1): Clear forced_by_abi.
24690         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24691         * cgraph.h (symtab_node_base): Add forced_by_abi.
24692         (decide_is_variable_needed): Remove.
24693         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24694         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24695         (decide_is_symbol_needed): ... this one; handle symbols in general;
24696         always analyze virtuals; honnor forced_by_abi.
24697         (cgraph_finalize_function): Update.
24698         (varpool_finalize_decl): Update.
24699         (symbol_defined_and_needed): Remove.
24700         (analyze_functions): Update.
24701         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24702         output_refs, input_overwrite_node): Handle forced_by_abi.
24703         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24704         (address_taken_from_non_vtable_p): ... this one.
24705         (comdat_can_be_unshared_p_1): New function.
24706         (cgraph_comdat_can_be_unshared_p): Rename to ...
24707         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24708         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24709         (function_and_variable_visibility): Clear forced_by_abi as needed.
24710         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24711         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24712         * symtab.c (dump_symtab_base): Dump forced_by_abi.
24713         * varpool.c (decide_is_variable_needed): Remove.
24715 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24717         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24718         (arm_option_override): Override arm_restrict_it where appropriate.
24719         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24720         * config/arm/arm.opt (mrestrict-it): New command-line option.
24721         * doc/invoke.texi: Document -mrestrict-it.
24723 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24725         * tsan.c (tsan_atomic_table): Make const.
24727 2013-06-05  Richard Biener  <rguenther@suse.de>
24729         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24730         index associated with the tree we are supposed to replace.
24731         * tree-streamer-out.c (pack_ts_base_value_fields): Output
24732         TREE_ASM_WRITTEN as zero for everything but SSA names.
24734 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24736         * tree-ssa-structalias.c (call_stmt_vars): Make static.
24738 2013-06-04  Jan Hubicka  <jh@suse.cz>
24740         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24741         (input_node, input_varpool_node): Handle correctly external same
24742         body aliases.
24743         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24744         nodes at ltrans stage.
24746 2013-06-04  Jan Hubicka  <jh@suse.cz>
24748         * ipa-inline.c (update_caller_keys): Fix availability test.
24749         (update_callee_keys): Likewise.
24750         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
24751         to follow ELF standard.
24753 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
24755         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
24756         (mips64r5900el-*-elf*): New configurations.
24757         * config/mips/mips-cpus.def (r5900): New processor.
24758         * config/mips/mips-tables.opt: Regenerate.
24759         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
24760         (mips_issue_rate): Handle PROCESSOR_R5900.
24761         (mips_reorg_process_insns): Force reorder mode for the R5900.
24762         * config/mips/mips.h (TARGET_MIPS5900): Define.
24763         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
24764         TARGET_MIPS5900.
24765         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
24766         TARGET_MIPS5900.
24767         * config/mips/mips.md (processor): Add r5900.
24768         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
24770 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24772         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
24773         into function to generate MOVI instruction.
24774         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
24775         (aarch64_preferred_simd_mode): Turn into wrapper.
24776         (aarch64_output_scalar_simd_mov_immediate): New function.
24777         * config/aarch64/aarch64-protos.h: Add prototype for above.
24779 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24781         * config/aarch64/aarch64.c (simd_immediate_info): Remove
24782         element_char member.
24783         (sizetochar): Return signed char.
24784         (aarch64_simd_valid_immediate): Remove elchar and other
24785         unnecessary variables.
24786         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
24787         Calculate element_char as required.
24788         * config/aarch64/aarch64-protos.h: Update and move prototype
24789         for aarch64_output_simd_mov_immediate.
24790         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
24791         Update arguments.
24793 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24795         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
24796         information completed by aarch64_simd_valid_immediate.
24797         (aarch64_legitimate_constant_p): Update arguments.
24798         (aarch64_simd_valid_immediate): Work with struct rather than many
24799         pointers.
24800         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
24801         (aarch64_simd_make_constant): Update arguments.
24802         (aarch64_output_simd_mov_immediate): Work with struct rather than
24803         many pointers.  Output immediate directly rather than as operand.
24804         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24805         Update prototype.
24806         * config/aarch64/constraints.md (Dn): Update arguments.
24808 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24810         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
24811         longer static.
24812         (aarch64_simd_immediate_valid_for_move): Remove.
24813         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
24814         (aarch64_simd_make_constant): Update call.
24815         (aarch64_output_simd_mov_immediate): Update call.
24816         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24817         Add prototype.
24818         * config/aarch64/constraints.md (Dn): Update call.
24820 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24822         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
24823         return type to bool for prototype.
24824         (aarch64_legitimate_constant_p): Check for true instead of not -1.
24825         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
24826         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
24828 2013-06-04  Catherine Moore  <clm@codesourcery.com>
24830         * config/mips/mips.opt (meva): New.
24831         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
24832         (ASM_SPEC): Handle -meva.
24833         * doc/invoke.texi (meva):  Document.
24835 2013-06-04  Alan Modra  <amodra@gmail.com>
24837         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
24838         constant output.
24840 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24842         * rtl.def: Add extra fourth optional field to define_cond_exec.
24843         * gensupport.c (process_one_cond_exec): Process attributes from
24844         define_cond_exec.
24845         * doc/md.texi: Document fourth field in define_cond_exec.
24847 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
24849         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
24850         out the processing order as in store_bit_field_1.
24852 2013-06-04  Jan Hubicka  <jh@suse.cz>
24854         PR middle-end/57500
24855         * cgraphunit.c (cgraph_process_same_body_aliases): Create
24856         non-VAR_DECL node if it does not exist yet.
24858 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
24860         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
24861         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
24862         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
24863         target_cpu_default setting.
24865 2013-06-03  Teresa Johnson  <tejohnson@google.com>
24867         * dumpfile.c (opt_info_switch_p): Change -fopt-info
24868         default to -fopt-info=optimized instead of all.
24869         * doc/invoke.texi: Ditto.
24870         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
24871         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
24872         (execute_vect_slp): Emit BB vectorization success under
24873         MSG_OPTIMIZED_LOCATIONS.
24874         * tree-vect-slp.c (vect_slp_transform_bb): Change
24875         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
24876         * tree-vect-loop.c (vect_transform_loop): Ditto.
24878 2013-06-03  Jason Merrill  <jason@redhat.com>
24880         PR c++/57415
24881         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24882         Use TARGET_EXPR for C++.
24884 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
24886         PR rtl-optimization/57268
24887         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
24888         if DEBUG_INSN_P (insn).
24890         Reapply
24891         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
24893         PR rtl-optimization/57268
24894         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24895         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24897 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24899         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
24900         (ix86_avoid_lea_for_addr): Likewise.
24901         (exact_dependency_1): Likewise.
24902         (ix86_adjust_cost): Likewise.
24903         (swap_top_of_ready_list): Fix formatting and !reload_completed check
24904         removed.
24905         (do_reorder_for_imul): Fix typo, formatting and
24906         !reload_completed check removed.
24907         (ix86_sched_reorder): Fix typo and formatting.
24908         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
24909         list.
24911 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
24913         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
24915 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
24917         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
24918         <STRING_CST>: Likewise.
24919         <VECTOR_CST>: Likewise.
24921 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
24922             Mikael Morin  <mikael@gcc.gnu.org>
24924         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
24925         * config.in: Regenerated.
24926         * configure: Regenerated.
24928 2013-06-01  Jan Hubicka  <jh@suse.cz>
24930         PR middle-end/57366
24931         * cgraphunit.c (compile): When weakref is not supported,
24932         set up transparent aliases before final output pass.
24933         * varasm.c (assemble_alias): Do not try to do it here.
24935 2013-06-01  Jan Hubicka  <jh@suse.cz>
24937         PR middle-end/57467
24938         * passes.c (for_per_function): Skip unanalyzed functions.
24940 2013-06-01  Jan Hubicka  <jh@suse.cz>
24942         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
24943         (lto_symtab_merge_symbols_1): ... this one.
24944         (lto_symtab_merge_cgraph_nodes): Rename to ...
24945         (lto_symtab_merge_symbols): ... this one; simplify.
24946         * cgraph.c (same_body_aliases_done): Rename to ...
24947         (cpp_implicit_aliases_done): ... this one.
24948         (cgraph_create_function_alias): Update.
24949         (cgraph_same_body_alias): Update.
24950         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
24951         (verify_edge_corresponds_to_fndecl): Simplify.
24952         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
24953         (cgraph_node): Remove same_body_alias.
24954         (varpool_node): Remove alias_of and extra_name_alias.
24955         (same_body_aliases_done): Rename to ..
24956         (cpp_implicit_aliases_done): ... this one.
24957         (symtab_alias_ultimate_target): Add default parameter.
24958         (symtab_resolve_alias): New function.
24959         (fixup_same_cpp_alias_visibility): Declare.
24960         (cgraph_function_node): Add default parameter.
24961         (cgraph_node_asm_name): Likewise.
24962         (cgraph_function_or_thunk_node): Add default parameter; do
24963         not ICE when it is NULL.
24964         (varpool_variable_node): Likewise.
24965         * tree-emutls.c (create_emultls_var): Update.
24966         (ipa_lower_emutls): Update.
24967         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
24968         (cgraph_reset_node): Reset alias info.
24969         (cgraph_finalize_function): Update.
24970         (fixup_same_cpp_alias_visibility): Move to symtab.c.
24971         (analyze_function): Simplify.
24972         (cgraph_process_same_body_aliases): Simplify.
24973         (analyze_functions): Fixup same body aliases.
24974         (handle_alias_pairs): Simplify.
24975         (assemble_thunk): Update.
24976         (assemble_thunks_and_aliases): Update.
24977         (output_weakrefs): Rewrite.
24978         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
24979         (lto_output_varpool_node): Likewise.
24980         (compute_ltrans_boundary): Remve assert.
24981         (get_alias_symbol): New functoin.
24982         (input_node): Rewrite alias handling.
24983         (input_varpool_node): Likewise.
24984         * ipa-pure-const.c (propagate_pure_const): Fix formating.
24985         * ipa.c (process_references): Handle weakrefs correctly.
24986         (symtab_remove_unreachable_nodes): Likewise.
24987         * trans-mem.c (get_cg_data): Update.
24988         (ipa_tm_create_version_alias): Update.
24989         (ipa_tm_execute): Update.
24990         * symtab.c (dump_symtab_base): Dump aliases.
24991         (verify_symtab_base): Verify aliases.
24992         (symtab_node_availability): New function.
24993         (symtab_alias_ultimate_target): Simplify.
24994         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
24995         handle all the fixup cases.
24996         (symtab_resolve_alias): New function.
24997         * passes.c (ipa_write_summaries): Handle weakrefs.
24998         * varpool.c (varpool_analyze_node): Simplify.
24999         (assemble_aliases): Update.
25000         (varpool_create_variable_alias): Simplify.
25001         (varpool_extra_name_alias): Simplify.
25002         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25003         (lto_symtab_merge_symbols): ... this one.
25005 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
25007         Revert
25008         PR rtl-optimization/57268
25009         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25010         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25012 2013-06-01  Tobias Burnus  <burnus@net-b.de>
25014         Partially reverted:
25015         2013-05-31  Tobias Burnus  <burnus@net-b.de>
25017         PR middle-end/57073
25018         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25019         further up.
25021 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
25023         PR rtl-optimization/57268
25024         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25025         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25027 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25029         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25030         unordered comparison operators when -fno-trapping-math is in effect
25031         on the e500.
25032         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25033         and implement unordered comparison operators properly on the e500.
25035 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25037         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25038         for constant scalar integers.
25039         (simplify_relational_operation_1): Likewise.
25041 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
25043         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25044         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
25045         Fix comment.
25047 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25048             Igor Zamyatin  <igor.zamyatin@intel.com>
25050         Silvermont (SLM) architecture performance tuning.
25051         * config/i386/i386.h (enum ix86_tune_indices): Add
25052         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25053         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25055         * config/i386/i386.c (initial_ix86_tune_features)
25056         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25057         (ix86_lea_outperforms): Handle Silvermont tuning.
25058         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25059         call.
25060         (ix86_use_lea_for_mov): Likewise.
25061         (ix86_avoid_lea_for_addr): Likewise.
25062         (ix86_lea_for_add_ok): Likewise.
25063         (exact_dependency_1): New function.
25064         (exact_store_load_dependency): Likewise.
25065         (ix86_adjust_cost): Handle Silvermont tuning.
25066         (do_reoder_for_imul): Likewise.
25067         (swap_top_of_ready_list): New function.
25068         (ix86_sched_reorder): Changed to handle Silvermont tuning.
25070         * config/i386/i386.md (peepholes that split memory operand in fp
25071         converts): New.
25073 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25075         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25076         Remove un-necessary braces.
25078 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25080         * config/aarch64/aarch64.c (aarch64_classify_symbol):
25081         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25083 2013-05-31  Tobias Burnus  <burnus@net-b.de>
25085         PR middle-end/57073
25086         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25088 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25090         PR target/56315
25091         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25092         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25093         * config/arm/neon.md (iordi3_neon): Remove.
25094         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25095         * config/arm/predicates.md (imm_for_neon_logic_operand):
25096         Move to earlier in the file.
25097         (neon_logic_op2): Likewise.
25098         (arm_iordi_operand_neon): New predicate.
25100 2013-05-31  Richard Biener  <rguenther@suse.de>
25102         PR tree-optimization/57478
25103         PR tree-optimization/57453
25104         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25105         are life as well.
25107 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25109         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25110         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25112 2013-05-30  Tobias Burnus  <burnus@net-b.de>
25113             Thomas Koenig  <tkoenig@gcc.gnu.org>
25115         PR middle-end/57073
25116         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25117         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25119 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
25121         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25123 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
25125         * target.def (register_usage_leveling_p): New hook.
25126         * targhooks.c (default_register_usage_leveling_p): New.
25127         * targhooks.h (default_register_usage_leveling_p): New prototype.
25128         * lra-assigns.c (register_usage_leveling_p): Use the hook.
25129         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25130         * doc/tm.texi: Update.
25131         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25133 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
25135         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25136         (*insv_reg<mode>): New define_insn.
25138 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
25140         PR rtl-optimization/57439
25141         * postreload.c (move2add_valid_value_p): Check that we have
25142         a zero subreg_regno_offset when accessing the register in
25143         the requested mode.
25145 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25146             Igor Zamyatin  <igor.zamyatin@intel.com>
25148         Silvermont (SLM) architecture pipeline model, tuning and
25149         insn selection.
25150         * config.gcc: Add slm config options and target.
25152         * config/i386/slm.md: New.
25154         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25156         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
25157         PROCESSOR_SLM.
25158         (ix86_target_macros_internal): Likewise.
25160         * config/i386/i386.c (slm_cost): New cost.
25161         (m_SLM): New macro flag.
25162         (initial_ix86_tune_features): Set m_SLM.
25163         (x86_accumulate_outgoing_args): Likewise.
25164         (x86_arch_always_fancy_math_387): Likewise.
25165         (processor_target_table): Add slm cost.
25166         (cpu_names): Add slm cpu name.
25167         (x86_option_override_internal): Set SLM ISA.
25168         (ix86_issue_rate): New case PROCESSOR_SLM.
25169         (ia32_multipass_dfa_lookahead): Likewise.
25170         (fold_builtin_cpu): Add slm.
25172         * config/i386/i386.h (TARGET_SLM): New target macro.
25173         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25174         (processor_type): Add PROCESSOR_SLM.
25176         * config/i386/i386.md (cpu): Add new value "slm".
25177         (slm.md): Include slm.md.
25179 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
25180             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25182         * config/arm/arm-protos.h: Add and update function protos.
25183         * config/arm/arm.c (use_simple_return_p): New added.
25184         (thumb2_expand_return): Check simple_return flag.
25185         * config/arm/arm.md: Add simple_return and conditional simple_return.
25186         * config/arm/iterators.md: Add iterator for return and simple_return.
25188 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25190         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25191         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25192         (arm_emit_vfp_multi_reg_pop): Likewise.
25193         (thumb2_emit_ldrd_pop): Likewise.
25194         (arm_expand_epilogue): Add misc REG_CFA notes.
25195         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25197 2013-05-29  Lawrence Crowl  <crowl@google.com>
25199         * config/arm/t-arm: Update for below.
25201         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25202         Change type to hash_table.  Update dependent calls and types.
25204         * config/i386/t-cygming: Update for below.
25206         * config/i386/t-interix: Update for below.
25208         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25209         Change type to hash_table.  Update dependent calls and types.
25210         (i386_find_on_wrapper_list::wrappers): Likewise.
25212         * config/ia64/t-ia64: Update for below.
25214         * config/ia64/ia64.c (bundle_state_table):
25215         Change type to hash_table.  Update dependent calls and types.
25217         * config/mips/mips.c (mips_reorg_process_insns::htab):
25218         Change type to hash_table.  Update dependent calls and types.
25220         * config/sol2.c (solaris_comdat_htab):
25221         Change type to hash_table.  Update dependent calls and types.
25223         * config/t-sol2: Update for above.
25225 2013-05-29  Teresa Johnson  <tejohnson@google.com>
25227         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25228         functions are not yet marked as defined.
25230 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
25231             Pat Haugen  <pthaugen@us.ibm.com>
25232             Peter Bergner  <bergner@vnet.ibm.com>
25234         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25235         instructions.
25236         (VEC_A): Likewise.
25237         (VEC_C): Likewise.
25238         (vrotl<mode>3): Likewise.
25239         (vashl<mode>3): Likewise.
25240         (vlshr<mode>3): Likewise.
25241         (vashr<mode>3): Likewise.
25243         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25244         support for power8 V2DI builtins.
25246         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25247         power8 V2DI builtins.
25248         (vupkhsw): Likewise.
25249         (vupklsw): Likewise.
25250         (vaddudm): Likewise.
25251         (vminsd): Likewise.
25252         (vmaxsd): Likewise.
25253         (vminud): Likewise.
25254         (vmaxud): Likewise.
25255         (vpkudum): Likewise.
25256         (vpksdss): Likewise.
25257         (vpkudus): Likewise.
25258         (vpksdus): Likewise.
25259         (vrld): Likewise.
25260         (vsld): Likewise.
25261         (vsrd): Likewise.
25262         (vsrad): Likewise.
25263         (vsubudm): Likewise.
25264         (vcmpequd): Likewise.
25265         (vcmpgtsd): Likewise.
25266         (vcmpgtud): Likewise.
25267         (vcmpequd_p): Likewise.
25268         (vcmpgtsd_p): Likewise.
25269         (vcmpgtud_p): Likewise.
25270         (vupkhsw): Likewise.
25271         (vupklsw): Likewise.
25272         (vaddudm): Likewise.
25273         (vmaxsd): Likewise.
25274         (vmaxud): Likewise.
25275         (vminsd): Likewise.
25276         (vminud): Likewise.
25277         (vpksdss): Likewise.
25278         (vpksdus): Likewise.
25279         (vpkudum): Likewise.
25280         (vpkudus): Likewise.
25281         (vrld): Likewise.
25282         (vsld): Likewise.
25283         (vsrad): Likewise.
25284         (vsrd): Likewise.
25285         (vsubudm): Likewise.
25287         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25288         support for power8 V2DI instructions.
25290         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25291         power8 V2DI instructions.  Combine pack and unpack insns to use an
25292         iterator for each mode.  Check whether a particular mode supports
25293         Altivec instructions instead of just checking TARGET_ALTIVEC.
25294         (UNSPEC_VPKUWUM): Likewise.
25295         (UNSPEC_VPKSHSS): Likewise.
25296         (UNSPEC_VPKSWSS): Likewise.
25297         (UNSPEC_VPKUHUS): Likewise.
25298         (UNSPEC_VPKSHUS): Likewise.
25299         (UNSPEC_VPKUWUS): Likewise.
25300         (UNSPEC_VPKSWUS): Likewise.
25301         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25302         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25303         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25304         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25305         (UNSPEC_VUPKHSB): Likewise.
25306         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25307         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25308         (UNSPEC_VUPKHSH): Likewise.
25309         (UNSPEC_VUPKLSB): Likewise.
25310         (UNSPEC_VUPKLSH): Likewise.
25311         (VI2): Likewise.
25312         (VI_char): Likewise.
25313         (VI_scalar): Likewise.
25314         (VI_unit): Likewise.
25315         (VP): Likewise.
25316         (VP_small): Likewise.
25317         (VP_small_lc): Likewise.
25318         (VU_char): Likewise.
25319         (add<mode>3): Likewise.
25320         (altivec_vaddcuw): Likewise.
25321         (altivec_vaddu<VI_char>s): Likewise.
25322         (altivec_vadds<VI_char>s): Likewise.
25323         (sub<mode>3): Likewise.
25324         (altivec_vsubcuw): Likewise.
25325         (altivec_vsubu<VI_char>s): Likewise.
25326         (altivec_vsubs<VI_char>s): Likewise.
25327         (altivec_vavgs<VI_char>): Likewise.
25328         (altivec_vcmpbfp): Likewise.
25329         (altivec_eq<mode>): Likewise.
25330         (altivec_gt<mode>): Likewise.
25331         (altivec_gtu<mode>): Likewise.
25332         (umax<mode>3): Likewise.
25333         (smax<mode>3): Likewise.
25334         (umin<mode>3): Likewise.
25335         (smin<mode>3): Likewise.
25336         (altivec_vpkuhum): Likewise.
25337         (altivec_vpkuwum): Likewise.
25338         (altivec_vpkshss): Likewise.
25339         (altivec_vpkswss): Likewise.
25340         (altivec_vpkuhus): Likewise.
25341         (altivec_vpkshus): Likewise.
25342         (altivec_vpkuwus): Likewise.
25343         (altivec_vpkswus): Likewise.
25344         (altivec_vpks<VI_char>ss): Likewise.
25345         (altivec_vpks<VI_char>us): Likewise.
25346         (altivec_vpku<VI_char>us): Likewise.
25347         (altivec_vpku<VI_char>um): Likewise.
25348         (altivec_vrl<VI_char>): Likewise.
25349         (altivec_vsl<VI_char>): Likewise.
25350         (altivec_vsr<VI_char>): Likewise.
25351         (altivec_vsra<VI_char>): Likewise.
25352         (altivec_vsldoi_<mode>): Likewise.
25353         (altivec_vupkhsb): Likewise.
25354         (altivec_vupkhs<VU_char>): Likewise.
25355         (altivec_vupkls<VU_char>): Likewise.
25356         (altivec_vupkhsh): Likewise.
25357         (altivec_vupklsb): Likewise.
25358         (altivec_vupklsh): Likewise.
25359         (altivec_vcmpequ<VI_char>_p): Likewise.
25360         (altivec_vcmpgts<VI_char>_p): Likewise.
25361         (altivec_vcmpgtu<VI_char>_p): Likewise.
25362         (abs<mode>2): Likewise.
25363         (vec_unpacks_hi_v16qi): Likewise.
25364         (vec_unpacks_hi_v8hi): Likewise.
25365         (vec_unpacks_lo_v16qi): Likewise.
25366         (vec_unpacks_hi_<VP_small_lc>): Likewise.
25367         (vec_unpacks_lo_v8hi): Likewise.
25368         (vec_unpacks_lo_<VP_small_lc>): Likewise.
25369         (vec_pack_trunc_v8h): Likewise.
25370         (vec_pack_trunc_v4si): Likewise.
25371         (vec_pack_trunc_<mode>): Likewise.
25373         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25374         V2DI builtins.
25375         (vec_vmaxsd): Likewise.
25376         (vec_vmaxud): Likewise.
25377         (vec_vminsd): Likewise.
25378         (vec_vminud): Likewise.
25379         (vec_vpksdss): Likewise.
25380         (vec_vpksdus): Likewise.
25381         (vec_vpkudum): Likewise.
25382         (vec_vpkudus): Likewise.
25383         (vec_vrld): Likewise.
25384         (vec_vsld): Likewise.
25385         (vec_vsrad): Likewise.
25386         (vec_vsrd): Likewise.
25387         (vec_vsubudm): Likewise.
25388         (vec_vupkhsw): Likewise.
25389         (vec_vupklsw): Likewise.
25391 2013-05-29  Jan Hubicka  <jh@suse.cz>
25393         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25394         flags; reorder rest of fields in more consistent way.
25395         (varpool_node): Remove analyzed, finalized and alias.
25396         (cgraph_ndoe): Likewise.
25397         (symtab_alias_ultimate_target): New function.
25398         (cgraph_function_node): Move offline.
25399         (cgraph_reset_node): Declare.
25400         (cgraph_comdat_can_be_unshared_p): Remove.
25401         (varpool_remove_initializer): Declare.
25402         (varpool_first_defined_variable, varpool_next_defined_variable
25403         cgraph_first_defined_function, cgraph_next_defined_function): Update.
25404         (cgraph_function_with_gimple_body_p): Update.
25405         (varpool_all_refs_explicit_p): Update.
25406         (symtab_alias_target): New function.
25407         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25408         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25409         (cgraph_function_or_thunk_node): Simplify using
25410         symtab_alias_ultimate_target.
25411         (varpool_variable_node): Likewise.
25412         * cgraph.c (cgraph_create_function_alias): Update.
25413         (cgraph_add_thunk): Update.
25414         (cgraph_remove_node): Update.
25415         (dump_cgraph_node): Do not dump removed flags.
25416         (cgraph_function_body_availability): Update.
25417         (cgraph_propagate_frequency): Update.
25418         (verify_cgraph_node): Check sanity of local flag.
25419         (cgraph_function_node): Move here from cgraph.h; revamp for
25420         cgraph_function_or_thunk_node.
25421         * lto-symtab.c (lto_varpool_replace_node): Update.
25422         (lto_symtab_resolve_can_prevail_p): Update.
25423         (lto_symtab_merge_cgraph_nodes): Update.
25424         * ipa-cp.c (determine_versionability, initialize_node_lattices,
25425         propagate_constants_accross_call, devirtualization_time_bonus,
25426         ipcp_propagate_stage): Update.
25427         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25428         * ipa-inline-transform.c (clone_inlined_nodes,
25429         preserve_function_body_p): Update.
25430         * ipa-reference.c (propagate): Update.
25431         (write_node_summary_p): Update.
25432         * toplev.c (wrapup_global_declaration_2): Update.
25433         * cgraphunit.c (cgraph_analyze_function): Rename to ...
25434         (analyze_function) ... this one.
25435         (cgraph_process_new_functions): Update.
25436         (cgraph_reset_node): Export.
25437         (cgraph_finalize_function): Update.
25438         (cgraph_add_new_function): Update.
25439         (process_function_and_variable_attributes): Update.
25440         (varpool_finalize_decl): Update.
25441         (symbol_finalized): Remove.
25442         (symbol_finalized_and_needed): Rename to ...
25443         (symbol_defined_and_needed): ... update.
25444         (cgraph_analyze_functions): Update.
25445         (handle_alias_pairs): Update.
25446         (mark_functions_to_output): Update.
25447         (assemble_thunk): Update.
25448         (output_in_order): Update.
25449         (output_weakrefs): Update.
25450         (finalize_compilation_unit): Update.
25451         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25452         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25453         input_node, input_varpool_node): Update.
25454         * dbxout.c (dbxout_expand_expr): Update.
25455         * cgraphclones.c (cgraph_clone_node): Update.
25456         (cgraph_copy_node_for_versioning): Update.
25457         (cgraph_materialize_clone): Update.
25458         (cgraph_materialize_all_clones): Update.
25459         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25460         propagate_pure_const, propagate_nothrow): Update.
25461         * lto-streamer-out.c (lto_output, write_symbol): Update.
25462         * ipa-utils.c (ipa_reverse_postorder): Update.
25463         * ipa-inline.c (can_inline_edge_p): Update.
25464         (update_caller_keys, ipa_inline): Update.
25465         * dwarf2out.c (reference_to_unused,
25466         premark_types_used_by_global_vars_helper): Update.
25467         * tree-eh.c (tree_could_trap_p): Update.
25468         * ipa-split.c (consider_split, execute_split_functions): Update.
25469         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25470         has_addr_references_p): Update; move ahead in file for better
25471         readability.
25472         (process_references): Simplify.
25473         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25474         bodies are removed.
25475         (cgraph_comdat_can_be_unshared_p): Make static.
25476         (cgraph_externally_visible_p): Update.
25477         (varpool_externally_visible_p): Update.
25478         (function_and_variable_visibility): Update.
25479         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25480         ipa_tm_mark_force_output_node): Update.
25481         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25482         estimate_edge_devirt_benefit, inline_generate_summary,
25483         inline_write_summary): Update.
25484         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25485         * ipa-prop.c (ipa_compute_jump_functions): Update.
25486         (ipa_print_node_params, ipa_prop_read_section,
25487         ipa_update_after_lto_read, read_replacements_section): Update.
25488         * varasm.c (mark_decl_referenced): Update.
25489         (assemble_alias, dump_tm_clone_pairs): Update.
25490         * tree-inline.c (copy_bb): Update.
25491         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25492         Update.
25493         * symtab.c (dump_symtab_base): Print new flags.
25494         (verify_symtab_base): Verify new flags.
25495         (symtab_alias_ultimate_target): New function.
25496         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25497         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25498         Update.
25499         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25500         Update.
25501         * i386.c (ix86_get_function_versions_dispatcher,
25502         ix86_generate_version_dispatcher_body): Update.
25503         (fold_builtin_cpu): Use varpool_add_new_variable.
25504         * varpool.c (varpool_remove_initializer): Break out from ...
25505         (varpool_remove_node): ... this one.
25506         (dump_varpool_node, varpool_node_for_asm,
25507         cgraph_variable_initializer_availability, varpool_analyze_node,
25508         varpool_assemble_decl, varpool_remove_unreferenced_decls,
25509         varpool_finalize_named_section_flags, varpool_create_variable_alias):
25510         Update.
25512 2013-05-29  Jan Hubicka  <jh@suse.cz>
25514         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25516 2013-05-29  Easwaran Raman  <eraman@google.com>
25518         PR tree-optimization/57442
25519         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25520         when control exits the main loop.
25522 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
25524         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25525         and RX600.
25526         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25527         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25528         * rx/t-rx: Add rx100 under multi library matches option for nofpu
25529         option.
25531 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25533         PR tree-optimization/57441
25534         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25535         Don't limit size of incr_vec to number of candidates.
25537 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
25539         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25540         and mips16 directories.
25541         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25542         (MULTILIB_DIRNAMES): Ditto.
25543         (MULTILIB_EXCEPTIONS): Add new exceptions.
25544         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25545         (MULTILIB_DIRNAMES): Ditto.
25546         (MULTILIB_EXCEPTIONS): Add new exceptions.
25548 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25549             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25551         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25552         SYMBOL_TINY_ABSOLUTE.
25553         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25554         SYMBOL_TINY_ABSOLUTE.
25555         (aarch64_expand_mov_immediate): Likewise.
25556         (aarch64_classify_symbol): Likewise.
25557         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25558         Permit SYMBOL_TINY_ABSOLUTE.
25559         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25561 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25562             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25564         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25565         Refactor if/switch.  Replace gcc_assert with if.
25567 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25569         * config/i386/i386.c (initial_ix86_tune_features): Enable
25570         FP Reassociation for AMD bdver1 and bdver2.
25572 2013-05-29  Martin Jambor  <mjambor@suse.cz>
25574         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25575         and IMAGPART_EXPR do not occur within other handled_components.
25577 2013-05-29  Richard Biener  <rguenther@suse.de>
25579         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25580         access on whether the use is in the BB we currently try to
25581         vectorize.
25582         (vect_bb_vectorization_profitable_p): Pass the BB we currently
25583         vectorize to vect_bb_slp_scalar_cost.
25585 2013-05-29  Richard Biener  <rguenther@suse.de>
25587         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25588         computing scalar cost offsetted by stmts that are kept live
25589         by scalar uses.
25590         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25591         for computation of scalar cost.
25593 2013-05-28  Steve Ellcey  <sellcey@mips.com>
25595         * config/mips/mips-cpus.def (mips32r2): Change processor type.
25597 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
25599         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25600         array notation built-in reduction functions.
25601         * doc/passes.texi (Passes): Added documentation about changes done
25602         for Cilk Plus.
25603         * doc/invoke.texi (C Dialect Options): Added documentation about
25604         the -fcilkplus flag.
25605         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25606         (BUILTINS_DEF): Depend on cilkplus.def.
25607         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
25608         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25609         * cilkplus.def: New file.
25611 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
25613         PR rtl-optimization/57439
25614         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25616 2013-05-28  Easwaran Raman  <eraman@google.com>
25618         PR tree-optimization/57337
25619         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25620         (find_insert_point): Correctly identify the insertion point
25621         when two statements with the same UID is compared.
25623 2013-05-28  Richard Biener  <rguenther@suse.de>
25625         PR tree-optimization/56787
25626         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25627         from the list of data references.
25628         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25629         clobbers.
25630         (vect_analyze_loop_operations): Likewise.
25631         (vect_transform_loop): Remove clobbers.
25633 2013-05-28  Martin Jambor  <mjambor@suse.cz>
25635         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25636         and REALPART_EXPRs have scalar type.
25638 2013-05-28  Richard Biener  <rguenther@suse.de>
25640         PR tree-optimization/57411
25641         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25642         virtual operands.
25643         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25644         virtual operand propagation.
25646 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25648         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25649         destination register for bmasksi_vis.
25650         (vector_init_bshuffle): Likewise.
25651         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25653 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25655         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25656         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25657         mode if the instruction isn't available in the original mode.
25658         * config/sparc/sparc.opt (mfix-ut699): New option.
25659         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
25660         (divdf3): Turn into expander.
25661         (divdf3_nofix): New insn.
25662         (divdf3_fix): Likewise.
25663         (divsf3): Disable if -mfix-ut699.
25664         (sqrtdf2): Turn into expander.
25665         (sqrtdf2_nofix): New insn.
25666         (sqrtdf2_fix): Likewise.
25667         (sqrtsf2): Disable if -mfix-ut699.
25669 2013-05-27  Richard Biener  <rguenther@suse.de>
25671         PR middle-end/57412
25672         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25673         block for the new loop.
25675 2013-05-27  Richard Biener  <rguenther@suse.de>
25677         PR tree-optimization/57343
25678         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25679         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25680         (number_of_iterations_cond): Do not build the folded tree.
25682 2013-05-27  Richard Biener  <rguenther@suse.de>
25684         Revert
25685         PR middle-end/57381
25686         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25687         OEP_CONSTANT_ADDRESS_OF retained.
25689         PR tree-optimization/57417
25690         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25691         for unchanged base.
25692         (set_ssa_val_to): Compare addresses using
25693         get_addr_base_and_unit_offset.
25695 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
25697         PR rtl-optimization/56833
25698         * postreload.c (move2add_record_mode): New function.
25699         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25700         (move2add_use_add2_insn): Use move2add_record_sym_value.
25701         (move2add_use_add3_insn): Likewise.
25702         (reload_cse_move2add): Use move2add_valid_value_p and
25703         move2add_record_mode.  Invalidate call-clobbered and REG_INC
25704         affected regs by setting reg_mode to VOIDmode.
25705         (move2add_note_store): Don't pretend the inside of a SUBREG is
25706         the actual destination.  Invalidate single/leading registers by
25707         setting reg_mode to VOIDmode.
25708         Use move2add_record_sym_value, move2add_valid_value_p and
25709         move2add_record_mode.
25711 2013-05-27  Richard Biener  <rguenther@suse.de>
25713         PR tree-optimization/57396
25714         * tree-affine.c (double_int_constant_multiple_p): Properly
25715         return false for val == 0 and div != 0.
25717 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25719         * config/mips/mips.h: Use #elif in preprocessor conditions.
25721 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25723         PR target/53916
25724         * config/mips/constraints.md (kl): New constraint.
25725         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25726         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
25727         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
25728         from LO for MIPS16.
25729         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25731 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25733         PR target/55777
25734         * config/mips/mips.c (mips_can_inline_p): New function.
25735         (TARGET_CAN_INLINE_P): Define.
25737 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
25739         * sched-int.h (ds_t, dw_t): Make unsigned int.
25740         Fix documentation that describes how all the ds_t bits are used.
25741         Reserve the last bit for delayed-branch scheduling.
25742         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25743         (BITS_PER_DEP_WEAK): Fix definition and documentation.
25744         (gen_dep_weak_1): Remove prototype.
25745         * sched-deps.c (get_dep_weak_1): Make static.
25746         * target.def (speculate_insn, needs_block_p, gen_spec_check,
25747         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25748         * doc/tm.texi: Regenerate.
25749         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
25751 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
25753         PR debug/56950
25754         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
25756 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
25757             Sandra Loosemore  <sandra@codesourcery.com>
25759         * config.gcc (powerpc-*): Allow native for with-cpu.
25761 2013-05-24  Jeff Law  <law@redhat.com>
25763         PR tree-optimization/57124
25764         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
25765         conversion feeding a condition if the range has an overflow
25766         if -fstrict-overflow.  Add warnings for when we do make the
25767         transformation.
25769 2013-05-24  Dehao Chen  <dehao@google.com>
25771         * tree-cfg.c (locus_discrim_map): Fix the typo.
25772         (locus_discrim_hasher): Likewise.
25773         (locus_discrim_hasher::hash): Likewise.
25774         (locus_discrim_hasher::equal): Likewise.
25776 2013-05-24  Martin Jambor  <mjambor@suse.cz>
25778         PR tree-optimization/57294
25779         * cgraph.h (ipa_record_stmt_references): Declare.
25780         * cgraphbuild.c (ipa_record_stmt_references): New function.
25781         (build_cgraph_edges): Use ipa_record_stmt_references.
25782         (rebuild_cgraph_edges): Likewise.
25783         (cgraph_rebuild_references): Likewise.
25784         * ipa-prop.c (ipa_modify_call_arguments): Discard references
25785         associated with the old statement and build references from the
25786         newly built statements.
25787         * ipa-ref.c (ipa_remove_stmt_references): New function.
25788         * ipa-ref.h (ipa_remove_stmt_references): Declare.
25790 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
25792         * lra-constraints.c (emit_spill_move): Use smaller mode for
25793         mem-mem moves.
25794         (check_and_process_move): Consider mem-reg moves for secondary
25795         too.
25796         (curr_insn_transform): Don't lose insns emitted before for
25797         secondary memory moves.
25798         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
25799         reg set up in the current insn.
25801 2013-05-24  Dehao Chen  <dehao@google.com>
25803         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25804         hash function.
25805         (locus_descrim_hasher::equal): Likewise.
25806         (build_gimple_cfg): New discriminator assignment algorithm.
25807         (make_edges): Likewise.
25808         (next_discriminator_for_locus): Likewise.
25809         (same_line_p): Likewise.
25810         (assign_discriminators): Likewise.
25811         (make_cond_expr_edges): Likewise.
25812         (make_gimple_switch_edges): Likewise.
25813         (make_goto_expr_edges): Likewise.
25814         (make_gimple_asm_edges): Likewise.
25816 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
25818         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
25819         X format specifier to only display bottom 16 bits.
25820         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
25821         immediate to match for operand 2, since it will be masked.
25823 2013-05-24  Richard Biener  <rguenther@suse.de>
25825         PR tree-optimization/57287
25826         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
25827         all SSA names that occur in abnormal PHIs.
25829 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25831         PR tree-ssa/57385
25832         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
25833         that index is not negative.
25835 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
25837         PR rtl-optimization/55177
25838         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
25839         (simplify_byte_swapping_operation): New.
25840         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
25841         (simplify_relational_operation_1): Deal with BSWAP.
25843 2013-05-23  Richard Henderson  <rth@redhat.com>
25845         PR target/56742
25846         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
25847         (ix86_reorg): Call it.
25849 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
25851         PR target/57379
25852         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
25853         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
25854         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
25856 2013-05-23  Christian Bruel  <christian.bruel@st.com>
25858         PR debug/57351
25859         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
25861 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25862             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25864         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
25865         * config/aarch64/constraints.md (Usa): Remove.
25866         * doc/md.texi (AArch64 Usa): Remove.
25868 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25869             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25871         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
25872         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
25873         * config/aarch64/predicates.md (aarch64_const_address): Remove.
25874         (aarch64_mov_operand): Use aarch64_mov_operand_p.
25876 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
25878         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
25879         instruction (AdvSIMD).
25880         * config/aarch64/aarch64-builtins.c
25881         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
25882         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
25884 2013-05-23  Martin Jambor  <mjambor@suse.cz>
25886         PR middle-end/57347
25887         * tree.h (contains_bitfld_component_ref_p): Declare.
25888         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
25889         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
25890         caller.
25891         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
25892         not access a bit-field.  Assert all final offsets are byte-aligned.
25894 2013-05-23  Richard Biener  <rguenther@suse.de>
25896         PR tree-optimization/57380
25897         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
25898         least one invariant or re-used load.
25899         * passes.c (init_optimization_passes): Move pass_phiprop before
25900         pass_forwprop.
25902 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
25904         * config/aarch64/aarch64-simd.md
25905         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
25907 2013-05-23  Richard Biener  <rguenther@suse.de>
25909         PR middle-end/57381
25910         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25911         OEP_CONSTANT_ADDRESS_OF retained.
25913 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
25915         PR middle-end/57344
25916         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
25917         don't lower unit.  Handle unit not being always BITS_PER_WORD.
25919 2013-05-23  Richard Biener  <rguenther@suse.de>
25921         PR rtl-optimization/57341
25922         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
25923         instead of true_dependence.
25925 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
25927         * bb-reorder.c (branch_threshold): Make const.
25928         (exec_threshold): Ditto.
25930 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25931             Pat Haugen  <pthaugen@us.ibm.com>
25932             Peter Bergner  <bergner@vnet.ibm.com>
25934         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
25935         documentation for the power8 crypto builtins.
25937         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
25939         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
25940         macros for defining power8 builtin functions.
25941         (BU_P8V_AV_2): Likewise.
25942         (BU_P8V_AV_P): Likewise.
25943         (BU_P8V_VSX_1): Likewise.
25944         (BU_P8V_OVERLOAD_1): Likewise.
25945         (BU_P8V_OVERLOAD_2): Likewise.
25946         (BU_CRYPTO_1): Likewise.
25947         (BU_CRYPTO_2): Likewise.
25948         (BU_CRYPTO_3): Likewise.
25949         (BU_CRYPTO_OVERLOAD_1): Likewise.
25950         (BU_CRYPTO_OVERLOAD_2): Likewise.
25951         (XSCVSPDP): Fix typo, point to the correct instruction.
25952         (VCIPHER): Add power8 crypto builtins.
25953         (VCIPHERLAST): Likewise.
25954         (VNCIPHER): Likewise.
25955         (VNCIPHERLAST): Likewise.
25956         (VPMSUMB): Likewise.
25957         (VPMSUMH): Likewise.
25958         (VPMSUMW): Likewise.
25959         (VPERMXOR_V2DI): Likewise.
25960         (VPERMXOR_V4SI: Likewise.
25961         (VPERMXOR_V8HI: Likewise.
25962         (VPERMXOR_V16QI: Likewise.
25963         (VSHASIGMAW): Likewise.
25964         (VSHASIGMAD): Likewise.
25965         (VPMSUM): Likewise.
25966         (VPERMXOR): Likewise.
25967         (VSHASIGMA): Likewise.
25969         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25970         __CRYPTO__ if the crypto instructions are available.
25971         (altivec_overloaded_builtins): Add support for overloaded power8
25972         builtins.
25974         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
25975         support for power8 crypto builtins.
25976         (builtin_function_type): Likewise.
25977         (altivec_init_builtins): Add support for builtins that take vector
25978         long long (V2DI) arguments.
25980         * config/rs6000/crypto.md: New file, define power8 crypto
25981         instructions.
25983 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25984             Pat Haugen  <pthaugen@us.ibm.com>
25985             Peter Bergner  <bergner@vnet.ibm.com>
25987         * doc/invoke.texi (Option Summary): Add power8 options.
25988         (RS/6000 and PowerPC Options): Likewise.
25990         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
25991         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
25992         wm, wn, wr documentation.
25994         * config/rs6000/constraints.md (wm): New constraint for VSX
25995         registers if direct move instructions are enabled.
25996         (wn): New constraint for no registers.
25997         (wq): New constraint for quad word even GPR registers.
25998         (wr): New constraint if 64-bit instructions are enabled.
25999         (wv): New constraint if power8 vector instructions are enabled.
26000         (wQ): New constraint for quad word memory locations.
26002         * config/rs6000/predicates.md (const_0_to_15_operand): New
26003         constraint for 0..15 for crypto instructions.
26004         (gpc_reg_operand): If VSX allow registers in VSX registers as well
26005         as GPR and floating point registers.
26006         (int_reg_operand): New predicate to match only GPR registers.
26007         (base_reg_operand): New predicate to match base registers.
26008         (quad_int_reg_operand): New predicate to match even GPR registers
26009         for quad memory operations.
26010         (vsx_reg_or_cint_operand): New predicate to allow vector logical
26011         operations in both GPR and VSX registers.
26012         (quad_memory_operand): New predicate for quad memory operations.
26013         (reg_or_indexed_operand): New predicate for direct move support.
26015         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26016         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26017         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26018         (POWERPC_MASKS): Add power8 options.
26019         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26020         various options.
26022         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26023         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26025         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26026         (-mpower8-fusion): New power8 options.
26027         (-mpower8-fusion-sign): Likewise.
26028         (-mpower8-vector): Likewise.
26029         (-mcrypto): Likewise.
26030         (-mdirect-move): Likewise.
26031         (-mquad-memory): Likewise.
26033         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26034         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26035         registers.
26036         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26037         (rs6000_debug_vector_unit): Add p8_vector.
26038         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26039         definitions.  Also print fusion state.
26040         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26041         (rs6000_builtin_mask_calculate): Add power8 builtin support.
26042         (rs6000_option_override_internal): Add support for power8.
26043         (rs6000_common_init_builtins): Add debugging for skipped builtins
26044         if -mdebug=builtin.
26045         (rs6000_adjust_cost): Add power8 support.
26046         (rs6000_issue_rate): Likewise.
26047         (insn_must_be_first_in_group): Likewise.
26048         (insn_must_be_last_in_group): Likewise.
26049         (force_new_group): Likewise.
26050         (rs6000_register_move_cost): Likewise.
26051         (rs6000_opt_masks): Likewise.
26053         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26054         power8 capable assembler, default to power7 options.
26055         (TARGET_DIRECT_MOVE): Likewise.
26056         (TARGET_CRYPTO): Likewise.
26057         (TARGET_P8_VECTOR): Likewise.
26058         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26059         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26060         (VECTOR_MEM_P8_VECTOR_P): Likewise.
26061         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26062         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26063         (TARGET_XSCVDPSPN): Likewise.
26064         (TARGET_XSCVSPDPN): Likewsie.
26065         (TARGET_SYNC_HI_QI): Likewise.
26066         (TARGET_SYNC_TI): Likewise.
26067         (MASK_CRYPTO): Likewise.
26068         (MASK_DIRECT_MOVE): Likewise.
26069         (MASK_P8_FUSION): Likewise.
26070         (MASK_P8_VECTOR): Likewise.
26071         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26072         temporary used by some of the direct move instructions to get two FP
26073         temporary registers does not force creation of a stack frame.
26074         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26075         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26076         that any VSX registers are tieable, even if they are also an
26077         Altivec vector mode.
26078         (r6000_reg_class_enum): Add wm, wr, wv constraints.
26079         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26080         (RS6000_BTM_CRYPTO): Likewise.
26081         (RS6000_BTM_COMMON): Likewise.
26083         * config/rs6000/rs6000.md (cpu attribute): Add power8.
26084         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26085         (enum rs6000_vector): Add power8 vector support.
26087 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26089         PR target/19599
26090         PR target/57340
26091         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26092         (any_sibcall_could_use_r3): this and handle indirect calls.
26093         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26095 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26097         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26099 2013-05-22  Richard Biener  <rguenther@suse.de>
26101         PR middle-end/57349
26102         * profile.c (branch_prob): Do not split blocks that are
26103         abnormally receiving from ECF_RETURNS_TWICE functions.
26105 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26107         * recog.c (offsettable_address_addr_space_p): Fix calculation of
26108         address mode.  Move pointer mode initialization to the same place.
26110 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26112         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26113         while it has any effect.
26115 2013-05-21  Easwaran Raman  <eraman@google.com>
26117         PR tree-optimization/57322
26118         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26119         UID of the statement added to the BB to be 1.
26121 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
26123         PR tree-optimization/57331
26124         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26125         of conversion from pointer type to integral type with integer.
26127 2013-05-21  Martin Jambor  <mjambor@suse.cz>
26129         PR lto/57289
26130         * ipa-prop.c (ipa_read_node_info): Process param_used and
26131         controlled_uses in the same order as when writing.
26133 2013-05-21  Magnus Granberg  <baldrick@free.fr>
26135         PR plugins/56754
26136         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26138 2013-05-21  Richard Biener  <rguenther@suse.de>
26140         PR tree-optimization/57318
26141         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26142         estimate stmts with side-effects as likely eliminated.
26144 2013-05-21  Richard Biener  <rguenther@suse.de>
26146         PR tree-optimization/57330
26147         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26148         preserve the call stmts fntype.
26150 2013-05-21  Richard Biener  <rguenther@suse.de>
26152         PR tree-optimization/57303
26153         * tree-ssa-sink.c (statement_sink_location): Improve killing
26154         stmt detection and properly handle self-assignments.
26156 2013-05-21  Christian Bruel  <christian.bruel@st.com>
26158         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26159         spanning registers. LEAF_REG_REMAP is supported only for contiguous
26160         registers. Set register size out of the PARALLEL loop.
26162 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
26164         PR target/56547
26165         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26166         (*fmasf4, *fmasf4_media): New insns.
26168 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26170         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26171         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26172         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26173         (mips_idiv_insns): Update the comments to say that the returned
26174         instruction counts are in units of BASE_INSN_LENGTH.
26175         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26176         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
26177         using 2 rather than 4 as the length of indirect MIPS16 and
26178         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
26179         length of a NOP.  Don't divide MIPS16 lengths by 2.
26180         (mips16_split_long_branches): Assume a branch is long if the
26181         length is greater than 4 rather than 8.
26182         * config/mips/mips.md (length): Give MIPS16 lengths directly,
26183         rather than multiplying them by 2.  Multiply instruction counts
26184         by BASE_INSN_LENGTH rather than 4.
26185         (*jump_mips16, tls_get_tp_mips16_<mode>)
26186         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26188 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26190         * config/mips/mips.md (extended_mips16): Remove branch case.
26191         (length): Remove duplicated extended_mips16 test.
26193 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26195         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26197 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
26199         * recog.h (Recog_data): Rename to...
26200         (recog_data_d): ...this.
26201         (recog_data): Update accordingly.
26202         * recog.c (recog_data): Likewise.
26203         * reload.c (save_recog_data): Likewise.
26204         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26205         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26207 2013-05-17  Julian Brown  <julian@codesourcery.com>
26209         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26210         found in a REG_EQUAL note, invalidate it.
26212 2013-05-17  Easwaran Raman  <eraman@google.com>
26214         * tree-ssa-reassoc.c (find_insert_point): New function.
26215         (insert_stmt_after): Likewise.
26216         (get_def_stmt): Likewise.
26217         (ensure_ops_are_available): Likewise.
26218         (not_dominated_by): Likewise.
26219         (rewrite_expr_tree): Do not move statements beyond what is
26220         necessary. Remove call to swap_ops_for_binary_stmt...
26221         (reassociate_bb): ... and move it here.
26222         (build_and_add_sum): Assign UIDs for new statements.
26223         (linearize_expr): Likewise.
26224         (do_reassoc): Renumber gimple statement UIDs.
26226 2013-05-17  Jan Hubicka  <jh@suse.cz>
26228         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26229         weakrefs.
26230         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26231         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26232         weakrefs.
26233         (output_weakrefs): Update.
26235 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
26236             Martin Jambor  <mjambor@suse.cz>
26238         PR middle-end/57276
26239         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26240         value that corresponds to the given aggval is found in values vector.
26242 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
26244         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26245         sse, sse2, sse3, ssse3 and sse4a flags to options.
26247 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
26249         * gengtype-state.c: (s_expr_writer): New class, to handle
26250         prettifying of output layout of s-expressions.
26251         (state_writer): New class, to write out gtype.state.
26252         (state_written_type_count): Move this variable into member data of
26253         state_writer.
26254         (s_expr_writer::s_expr_writer): New code: constructor for new class
26255         (state_writer::state_writer(): ditto
26256         (s_expr_writer::write_new_line): New function
26257         (s_expr_writer::write_any_indent): ditto
26258         (s_expr_writer::begin_s_expr): ditto
26259         (s_expr_writer::end_s_expr): ditto
26260         (write_state_fileloc): convert to method of state_writer...
26261         (state_writer:: write_state_fileloc): ...and use methods of
26262         s_expr_writer to write indentation into the gtype.state output file
26263         to visually represent the hierarchical structure of the list
26264         structures
26265         (write_state_fields): ditto, renaming to...
26266         (state_writer::write_state_fields)
26267         (write_state_a_string): ditto, renaming to...
26268         (state_writer::write_state_a_string)
26269         (write_state_string_option): ditto, renaming to...
26270         (state_writer::write_state_string_option)
26271         (write_state_type_option): ditto, renaming to...
26272         (state_writer::write_state_type_option)
26273         (write_state_nested_option): ditto, renaming to...
26274         (state_writer::write_state_nested_option)
26275         (write_state_option): ditto, renaming to...
26276         (state_writer::write_state_option)
26277         (write_state_options): ditto, renaming to...
26278         (state_writer::write_state_options)
26279         (write_state_lang_bitmap): ditto, renaming to...
26280         (state_writer::write_state_lang_bitmap)
26281         (write_state_version): ditto, renaming to...
26282         (state_writer::write_state_version)
26283         (write_state_scalar_type): ditto, renaming to...
26284         (state_writer::write_state_scalar_type)
26285         (write_state_string_type): ditto, renaming to...
26286         (state_writer::write_state_string_type)
26287         (write_state_undefined_type): ditto, renaming to...
26288         (state_writer::write_state_undefined_type)
26289         (write_state_struct_union_type): ditto, renaming to...
26290         (state_writer::write_state_struct_union_type)
26291         (write_state_struct_type): ditto, renaming to...
26292         (state_writer::write_state_struct_type)
26293         (write_state_user_struct_type): ditto, renaming to...
26294         (state_writer::write_state_user_struct_type)
26295         (write_state_lang_struct_type): ditto, renaming to...
26296         (state_writer::write_state_lang_struct_type)
26297         (write_state_param_struct_type): ditto, renaming to...
26298         (state_writer::write_state_param_struct_type)
26299         (write_state_pointer_type): ditto, renaming to...
26300         (state_writer::write_state_pointer_type)
26301         (write_state_array_type): ditto, renaming to...
26302         (state_writer::write_state_array_type)
26303         (write_state_gc_used): ditto, renaming to...
26304         (state_writer::write_state_gc_used)
26305         (write_state_common_type_content): ditto, renaming to...
26306         (state_writer::write_state_common_type_content)
26307         (write_state_type): ditto, renaming to...
26308         (state_writer::write_state_type)
26309         (write_state_pair_list): ditto, renaming to...
26310         (state_writer::write_state_pair_list)
26311         (write_state_pair): ditto, renaming to...
26312         (state_writer::write_state_pair)
26313         (write_state_typedefs): ditto, renaming to...
26314         (state_writer::write_state_typedefs)
26315         (write_state_structures): ditto, renaming to...
26316         (state_writer::write_state_structures)
26317         (write_state_param_structs): ditto, renaming to...
26318         (state_writer::write_state_param_structs)
26319         (write_state_variables): ditto, renaming to...
26320         (state_writer::write_state_variables)
26321         (write_state_srcdir): ditto, renaming to...
26322         (state_writer::write_state_srcdir)
26323         (write_state_files_list): ditto, renaming to...
26324         (state_writer::write_state_files_list)
26325         (write_state_languages): ditto, renaming to...
26326         (state_writer::write_state_languages)
26327         (write_state): create a state_writer instance and use it when
26328         writing out the state file
26330 2013-05-17  Mike Stump  <mikestump@comcast.net>
26332         PR rtl-optimization/57304
26333         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26334         accessing DF_REF_REAL_LOC.
26336 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26338         PR rtl-optimization/57281
26339         PR rtl-optimization/57300
26340         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26341         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26342         what the other splitter did if the registers are dead.
26344 2013-05-17  Richard Biener  <rguenther@suse.de>
26346         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26347         MEM_REF offsets.
26349 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26351         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26352         linking.
26354 2013-05-17  Marek Polacek  <polacek@redhat.com>
26356         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26357         length when doing non-zero store of storing '\0' to '\0'.
26359 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26361         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26362         vect_external_def oprnd1 with loop_vinfo, try to emit
26363         optional cast, negation and and stmts on the loop preheader
26364         edge instead of into the pattern def seq.
26366         PR tree-optimization/57051
26367         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26368         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26370 2013-05-16  Nick Clifton  <nickc@redhat.com>
26372         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26373         (rl78_is_naked_func): New function.
26374         (rl78_expand_prologue): Skip prologue generation for naked functions.
26375         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26376         * doc/extend.texi (naked): Add RL78 to the list of processors
26377         that supports this attribute.
26379 2013-05-16  Jeff Law  <law@redhat.com>
26381         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26383 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26385         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26386         cache parameters using detect_caches_amd also for CYRIX,
26387         NSC and TM2 signatures.
26389 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26390             Dzianis Kahanovich  <mahatma@eu.by>
26392         PR target/45359
26393         PR target/46396
26394         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26395         VIA/Centaur processors and determine their cache parameters
26396         using detect_caches_amd.
26398 2013-05-16  Teresa Johnson  <tejohnson@google.com>
26400         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26401         (rtl_verify_edges): New function.
26402         (rtl_verify_bb_insns): Ditto.
26403         (rtl_verify_bb_pointers): Ditto.
26404         (rtl_verify_bb_insn_chain): Ditto.
26405         (rtl_verify_fallthru): Ditto.
26406         (rtl_verify_bb_layout): Ditto.
26407         (rtl_verify_flow_info_1): Outline checks into new functions.
26408         (rtl_verify_flow_info): Ditto.
26410 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
26412         * cfghooks.c (copy_bbs): Add update_dominance argument.
26413         * cfghooks.h (copy_bbs): Update prototype.
26414         * tree-cfg.c (gimple_duplicate_sese_region):
26415         Add update_dominance argument.
26416         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26417         * tree-ssa-loop-ch.c (copy_loop_headers): Update
26418         gimple_duplicate_sese_region call.
26419         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26420         Update copy_bbs call.
26421         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26422         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26424 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26426         * tree-vectorizer.h (NUM_PATTERNS): Increment.
26427         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26428         vect_recog_rotate_pattern.
26429         (vect_recog_rotate_pattern): New function.
26431 2013-05-16  Jason Merrill  <jason@redhat.com>
26433         * Makefile.in (LLINKER): New variable.
26434         (mostlyclean): Remove link mutex.
26435         * configure.ac: Handle --enable-link-mutex.
26436         * lock-and-run.sh: New script.
26438 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26440         PR target/19599
26441         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26442         for NULL decl.
26444 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26446         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26448 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
26450         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26451         * config/arm/arm.c (next_consecutive_mem): New function.
26452         (gen_movmem_ldrd_strd): Likewise.
26453         * config/arm/arm.md (movmemqi): Update condition and code.
26454         (unaligned_loaddi, unaligned_storedi): New patterns.
26456 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26458         * config.gcc: Obsolete *-*-solaris2.9*.
26459         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26461 2013-05-16  Richard Biener  <rguenther@suse.de>
26463         * passes.c (init_optimization_passes): Move pass_parallelize_loops
26464         earlier, after GRAPHITE transforms and IV canonicalization.
26466 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26468         * omp-low.c (extract_omp_for_data): For collapsed loops,
26469         if at least one of the loops is known at compile time to
26470         iterate zero times, set count to 0.
26471         (expand_omp_regimplify_p): New function.
26472         (expand_omp_for_generic): For collapsed loops, if at least
26473         one of the loops isn't known to iterate at least once,
26474         add runtime check with setting count to 0.
26475         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26476         For unsigned types if it isn't known at compile time that
26477         the loop will iterate at least once, add runtime check to bypass
26478         the whole loop if initial condition isn't true.
26480 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
26482         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26484 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
26486         PR middle-end/57286
26487         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26488         transformations to avoid an infinite loop.
26490 2013-05-16  Marek Polacek  <polacek@redhat.com>
26492         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26494 2013-05-15  Leif Ekblad  <leif@rdos.net>
26496         * config/i386/i386.c (ix86_decompose_address): Use
26497         DEFAULT_TLS_SEG_REG to access TLS segment register.
26498         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26499         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26500         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26502 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
26504         PR target/57260
26505         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26506         sibling calls to functions that would normally be lazily bound,
26507         unless $gp is call-clobbered.
26509 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
26511         * config/i386/i386.c (ix86_option_override_internal): Update
26512         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
26513         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26514         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26515         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26516         of TARGET_3DNOW.
26517         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26519 2013-05-15  Andreas Schwab  <schwab@suse.de>
26521         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26522         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
26523         third operand.
26525 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26527         * loop-unroll.c (report_unroll_peel): Check decision before
26528         emitting unroll/peel message.
26530 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26532         * function.h (has_bb_partition): New rtl_data flag.
26533         (bb_reorder_complete): Ditto.
26534         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26535         instead of flag_reorder_blocks_and_partition.
26536         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26537         with some enhancements.
26538         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26539         * bb-reorder.c (connect_traces): Check for has_bb_partition
26540         instead of flag_reorder_blocks_and_partition.
26541         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26542         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26543         verify_hot_cold_block_grouping.
26544         (partition_hot_cold_basic_blocks): Set has_bb_partition.
26546 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26548         PR target/19599
26549         * config/arm/predicates.md (call_insn_operand): New predicate.
26550         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
26551         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26552         if insn is not a tail call.
26553         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26554         registers.
26555         * config/arm/arm.h (enum reg_class): New caller save register class.
26556         (REG_CLASS_NAMES): Likewise.
26557         (REG_CLASS_CONTENTS): Likewise.
26558         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26559         without decls.
26561 2013-05-15  Richard Biener  <rguenther@suse.de>
26563         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26564         of MSG_OPTIMIZED_LOCATIONS.
26565         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26566         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26567         message.
26568         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26569         of MSG_OPTIMIZED_LOCATIONS.
26570         (execute_vect_slp): Likewise.
26571         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26572         (vect_create_cond_for_alias_checks): Likewise.
26573         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26574         (vect_recog_widen_mult_pattern): Likewise.
26575         (vect_recog_widen_sum_pattern): Likewise.
26576         (vect_recog_over_widening_pattern): Likewise.
26577         (vect_recog_widen_shift_pattern): Likewise.
26578         (vect_recog_vector_vector_shift_pattern): Likewise.
26579         (vect_recog_divmod_pattern): Likewise.
26580         (vect_recog_mixed_size_cond_pattern): Likewise.
26581         (vect_recog_bool_pattern): Likewise.
26582         (vect_pattern_recog_1): Likewise.
26584 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26586         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26587         non-functions to builtin_unreachable.
26588         * ipa-inline-transform.c (inline_call): Do not assert estimates were
26589         correct when new direct edges were discovered.
26591 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26593         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26594         header, print symbol order instead of node uid, print more information
26595         about indirect edge targets.
26596         (ipa_make_edge_direct_to_target): Print symbol order instead of node
26597         uids.
26598         (ipa_make_edge_direct_to_target): Likewise.
26599         (remove_described_reference): Likewise.
26600         (propagate_controlled_uses): Likewise.
26601         (ipa_print_node_params): Also print symbol order.
26602         (ipcp_transform_function): Print symbol order instead of node uids.
26603         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26604         (cgraph_get_create_real_symbol_node): Likewise.
26605         * ipa-cp.c (print_lattice): Likewise.
26606         (print_all_lattices): Likewise.
26607         (determine_versionability): Likewise.
26608         (initialize_node_lattices): Likewise.
26609         (estimate_local_effects): Likewise.
26610         (update_profiling_info): Likewise.
26611         (create_specialized_node): Likewise.
26612         (perhaps_add_new_callers): Likewise.
26613         (decide_about_value): Likewise.
26614         (decide_whether_version_node): Likewise.
26615         (identify_dead_nodes): Likewise.
26616         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26617         (dump_inline_summary): Likewise.
26618         (estimate_node_size_and_time): Likewise.
26619         (inline_analyze_function): Likewise.
26620         * ipa-inline.c (report_inline_failed_reason): Likewise.
26621         (want_early_inline_function_p): Likewise.
26622         (edge_badness): Likewise.
26623         (update_edge_key): Likewise.
26624         (inline_small_functions): Likewise.  Add dumping of order to two other
26625         dumps.
26626         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26627         instead of node uids.
26628         (propagate_pure_const): Likewise.
26629         (propagate_pure_const): Likewise.
26630         * ipa-utils.c (dump_cgraph_node_set): Likewise.
26631         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26632         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26633         of node uids.
26634         * tree-pretty-print.c (dump_function_header): Likewise.
26635         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26636         Print symbol order instead of node uids.
26638 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26640         * config/s390/s390.c (s390_register_move_cost): Don't impose the
26641         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26643 2013-05-15  Richard Biener  <rguenther@suse.de>
26645         PR tree-optimization/57275
26646         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26647         return value for fail to do runtime alias checks for gather loads.
26649 2013-05-15  Jan Hubicka  <jh@suse.cz>
26651         PR lto/57038
26652         PR lto/47375
26653         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26654         weakrefs are not external.
26655         (lto_symtab_merge_decls): Fix thinko when dealing with
26656         non-lto_symtab decls.
26657         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
26658         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
26659         * varpool.c (dump_varpool_node): Dump more flags.
26661 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26663         * config/i386/i386.c (processor_alias_table): Add instruction
26664         FSGSBASE for AMD bdver3 architecture.
26666 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26668         * tree.c (warn_deprecated_use): Print file:line using locus color.
26669         * diagnostic.c (diagnostic_report_current_module): Print file:line
26670         and file:line:column using locus color.
26672 2013-05-14  Mike Stump  <mikestump@comcast.net>
26674         * gdbinit.in: Add __null.
26676 2013-05-14  Mike Stump  <mikestump@comcast.net>
26678         * recog.h: Rename struct recog_data to Recog_data.
26679         * recog.c: Likewise.
26680         * reload.c (can_reload_into): Likewise.
26681         * config/picochip/picochip.c: Likewise.
26683 2013-05-14  Mike Stump  <mikestump@comcast.net>
26685         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26687 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
26689         * resource.h (struct resources): Remove unch_memory member.
26690         (CLEAR_RESOURCE): Don't clear unch_memory.
26691         * resource.c (mark_referenced_resources): Don't set it.
26692         (mark_set_resources): Likewise.
26693         (mark_target_live_regs): Don't clear it.
26694         (init_resource_info): Likewise.
26695         * reorg.c (resource_conflicts_p): Don't compare it.
26696         (redundant_insn): Don't set it.
26698         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26699         Remove prototypes.
26700         * emit-rtl.c (next_label): Remove unused function.
26701         (skip_consecutive_labels, link_cc0_insns): Move to ...
26702         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26703         only place where these functions are used, and make them static.
26705 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26707         * fold-const.c (fold_negate_expr): Handle vectors.
26708         (fold_truth_not_expr): Make it static.
26709         (fold_invert_truthvalue): New static function.
26710         (invert_truthvalue_loc): Handle vectors. Do not call
26711         fold_truth_not_expr directly.
26712         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26713         <TRUTH_NOT_EXPR>: Do not cast to boolean.
26714         (fold_comparison): Handle vector constants.
26715         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26716         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26717         * tree.h (fold_truth_not_expr): Remove declaration.
26719 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
26721         * config/aarch64/aarch64-simd.md
26722         (aarch64_vcond_internal<mode>): Rename to...
26723         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26724         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26725         float modes. Clarify all iterator modes.
26726         (vcond<mode><mode>): Use new name for vcond expanders.
26727         (vcond<v_cmp_result><mode>): Likewise.
26728         (vcondu<mode><mode>: Likewise.
26729         * config/aarch64/iterators.md (VDQF_COND): New.
26731 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26733         PR bootstrap/57266
26734         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26735         variable for the shift amount. Check that we shift by non-negative
26736         amounts.
26738 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
26740         PR target/42017
26741         * config/arm/arm.h (EPILOGUE_USES): Only return true
26742         for LR_REGNUM after epilogue_completed.
26744 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
26746         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26747         is error_mark_node.
26749 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26751         PR target/57261
26752         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
26753         and Solaris 11+/x86 with gld.
26754         * configure: Regenerate.
26756 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26758         * expmed.c (expand_shift_1): Canonicalize rotates by
26759         constant bitsize / 2 to bitsize - 1.
26760         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
26761         case ROTATERT>: Likewise.
26763         Revert:
26764         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26766         * config/i386/i386.md (rotateinv): New code attr.
26767         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26768         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26769         roll $31, %eax, etc.
26771 2013-05-14  Richard Biener  <rguenther@suse.de>
26773         PR middle-end/57235
26774         * tree-eh.c (sink_clobbers): Give up for successors with
26775         multiple predecessors and no virtual uses.
26777 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
26779         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
26780         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
26782 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26784         PR middle-end/57251
26785         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
26786         the case when both op0 and op1 have VOIDmode.
26788 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
26790         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
26791         in multiply-accumulate mode.
26793 2013-05-13  Guozhi Wei  <carrot@google.com>
26795         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
26797 2013-05-13  Kai Tietz  <ktietz@redhat.com>
26799         PR target/56975
26800         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
26801         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
26802         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
26803         * config/i386/i386.c (ix86_option_override_internal): Likewise.
26804         (ix86_expand_prologue): Likewise.
26805         (ix86_expand_split_stack_prologue): Likewise.
26806         (legitimate_pic_address_disp_p): Likewise.
26807         (legitimize_pic_address): Likewise.
26808         (legitimize_tls_address): Likewise.
26809         (legitimize_pe_coff_symbol): Likewise.
26810         (output_pic_addr_const): Likewise.
26811         (construct_plt_address): Likewise.
26812         (ix86_expand_call): Likewise.
26813         (x86_output_mi_thunk): Likewise.
26814         (x86_function_profiler): Likewise.
26816 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
26818         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
26819         similar switch cases.
26820         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
26821         (aarch64_simd_mov_to_<mode>low): Delete.
26822         (aarch64_simd_mov_to_<mode>high): Delete.
26823         (move_lo_quad_<mode>): Add w<-r alternative.
26824         (aarch64_simd_move_hi_quad_<mode>): Likewise.
26825         (aarch64_simd_mov_from_*): Update type attribute.
26826         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
26827         statement.
26829 2013-05-13  Jan Hubicka  <jh@suse.cz>
26831         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
26832         * config/i386/i386.c (ix86_compute_frame_layout,
26833         ix86_expand_epilogue, emit_i387_cw_initialization,
26834         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
26835         ix86_local_alignment): Fix use of size/speed predicates.
26837 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26839         PR tree-optimization/45216
26840         PR tree-optimization/57157
26841         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
26842         the (-Y) & (B - 1) variant if OP is |.
26843         * expmed.c (expand_shift_1): For rotations by const0_rtx just
26844         return shifted.  Use (-op1) & (prec - 1) as other_amount
26845         instead of prec - op1.
26847 2013-05-13  Martin Jambor  <mjambor@suse.cz>
26849         PR middle-end/42371
26850         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
26851         (ipa_constant_data): New type.
26852         (ipa_jump_func): Use ipa_constant_data to hold information about
26853         constant jump functions.
26854         (ipa_get_jf_constant): Adjust to jump function type changes.
26855         (ipa_get_jf_constant_rdesc): New function.
26856         (ipa_param_descriptor): New field controlled_uses.
26857         (ipa_get_controlled_uses): New function.
26858         (ipa_set_controlled_uses): Likewise.
26859         * ipa-ref.h (ipa_find_reference): Declare.
26860         * ipa-prop.c (ipa_cst_ref_desc): New type.
26861         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
26862         changes.
26863         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
26864         New parameter cs.  Adjust all callers.
26865         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
26866         (remove_described_reference): New function.
26867         (jfunc_rdesc_usable): Likewise.
26868         (try_make_edge_direct_simple_call): Decrement controlled use count,
26869         attempt to remove reference if it hits zero.
26870         (combine_controlled_uses_counters): New function.
26871         (propagate_controlled_uses): Likewise.
26872         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
26873         (ipa_edge_duplication_hook): Duplicate reference descriptions.
26874         (ipa_print_node_params): Print described use counter.
26875         (ipa_write_jump_function): Adjust to jump function type changes.
26876         (ipa_read_jump_function): New parameter CS, pass it to
26877         ipa_set_jf_constant.  Adjust caller.
26878         (ipa_write_node_info): Stream controlled use count
26879         (ipa_read_node_info): Likewise.
26880         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
26881         asserting.
26882         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
26883         count.  Remove cloning-added reference if it reaches zero.
26884         * ipa-ref.c (ipa_find_reference): New function.
26886 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26888         * config/i386/i386.c (processor_target_table): Modified default
26889         alignment values for AMD BD and BT architectures.
26891 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
26893         * tree-vect-generic.c (uniform_vector_p): Move ...
26894         * tree.c (uniform_vector_p): ... here.
26895         * tree.h (uniform_vector_p): Declare it.
26896         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
26897         into a scalar.
26899 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26901         PR tree-optimization/57230
26902         * tree-ssa-strlen.c (handle_char_store): Record length for
26903         array store from STRING_CST.
26905         PR tree-optimization/57230
26906         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
26907         check.
26909 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
26911         * config/epiphany/epiphany.c (epiphany_init): Check size of
26912         NUM_MODES_FOR_MODE_SWITCHING.
26913         (epiphany_expand_prologue):
26914         Remove CONFIG_REGNUM initial value handling code.
26915         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
26916         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
26917         (emit_set_fp_mode, epiphany_mode_after): Likewise.
26918         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
26919         Don't return 1 for FP_MODE_NONE.
26920         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
26921         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
26922         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
26923         * config/epiphany/epiphany.md (save_config): New pattern.
26925 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
26927         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
26929 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
26931         * config/i386/i386.md (memory): Handle sseishft1.
26932         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
26933         (*vec_extractv2di_1): Ditto.
26935 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
26937         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
26938         saved registers.
26940 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26942         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
26943         Add mthumb/march=armv7-a multilib.
26944         Add mthumb/march=armv7-r multilib.
26945         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
26947 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
26949         * config/v850/t-rtems: Add more multilibs.
26951 2013-05-10  Richard Biener  <rguenther@suse.de>
26953         PR tree-optimization/57214
26954         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
26955         not propagate from SSA names that occur in abnormal PHI nodes.
26957 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
26959         * stor-layout.c (element_precision): New function.
26960         * machmode.h (element_precision): Declare it.
26961         * tree.c (build_minus_one_cst): New function.
26962         (element_precision): Likewise.
26963         * tree.h (build_minus_one_cst): Declare new function.
26964         (element_precision): Likewise.
26965         * fold-const.c (operand_equal_p): Use element_precision.
26966         (fold_binary_loc): Handle vector types.
26967         * convert.c (convert_to_integer): Use element_precision.
26968         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
26969         separately.
26971 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
26973         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
26974         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
26975         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
26976         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26977         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
26978         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
26979         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
26980         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26981         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
26982         (Uuw8): New constraints.
26983         (Usb4): Move into alphabetical order.
26984         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
26985         (sd8_operand, ub8_operand, uw8_operand): New predicates.
26986         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
26987         previously unnamed patterns.
26988         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
26989         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
26990         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
26991         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
26992         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
26993         of specific lengths.
26995 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26997         * config/i386/i386.md (rotateinv): New code attr.
26998         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26999         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27000         roll $31, %eax, etc.
27002         PR tree-optimization/45216
27003         PR tree-optimization/57157
27004         * tree-ssa-forwprop.c (simplify_rotate): New function.
27005         (ssa_forward_propagate_and_combine): Call it.
27007 2013-05-10  Richard Biener  <rguenther@suse.de>
27009         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27010         disable peeling when we version for aliasing.
27011         (vector_alignment_reachable_p): Honor explicit user alignment.
27012         (vect_supportable_dr_alignment): Likewise.
27013         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27014         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27015         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27016         then peeling to arrange for the cost-model check to come first.
27018 2013-05-10  Alan Modra  <amodra@gmail.com>
27020         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27021         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27022         * configure: Regenerate.
27024 2013-05-10  Alan Modra  <amodra@gmail.com>
27026         PR target/55033
27027         * varasm.c (default_elf_select_section): Move !DECL_P check..
27028         (get_named_section): ..to here before calling get_section_name.
27029         Adjust assertion.
27030         (default_section_type_flags): Add DECL_P check.
27031         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27032         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27034 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
27036         * config/epiphany/epiphany.c (epiphany_expand_prologue):
27037         When using gen_stack_adjust_str with a register offset, add a
27038         REG_FRAME_RELATED_EXPR note.
27040 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
27042         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27043         (*vec_extractv4si_zext_mem): Ditto.
27044         (*vec_extractv2di): Add 0->x and x->x alternatives.
27045         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27046         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27048 2013-05-09  Jason Merrill  <jason@redhat.com>
27050         N3639 C++1y VLA support
27051         * gimplify.c (gimplify_vla_decl): Don't touch an existing
27052         DECL_VALUE_EXPR.
27054         * tree.c (build_constructor_va): New.
27055         * tree.h: Declare it.
27057 2013-05-09  Martin Jambor  <mjambor@suse.cz>
27059         PR lto/57084
27060         * gimple-fold.c (canonicalize_constructor_val): Call
27061         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27063 2013-05-09  Jan Hubicka  <jh@suse.cz>
27064             Richard Biener  <rguenther@suse.de>
27066         PR lto/54095
27067         * symtab.c (symtab_make_decl_local): Do not add private names.
27069 2013-05-09  Jan Hubicka  <jh@suse.cz>
27071         PR lto/54095
27072         * symtab.c (insert_to_assembler_name_hash): Handle clones.
27073         (unlink_from_assembler_name_hash): Likewise.
27074         (symtab_prevail_in_asm_name_hash, symtab_register_node,
27075         symtab_unregister_node, symtab_initialize_asm_name_hash,
27076         change_decl_assembler_name): Update.
27078 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
27080         * config/aarch64/aarch64.md: New movtf split.
27081         (*movtf_aarch64): Update.
27082         (aarch64_movdi_tilow): Handle TF modes and rename to
27083         aarch64_movdi_<mode>low.
27084         (aarch64_movdi_tihigh): Handle TF modes and rename to
27085         aarch64_movdi_<mode>high
27086         (aarch64_movtihigh_di): Handle TF modes and rename to
27087         aarch64_mov<mode>high_di
27088         (aarch64_movtilow_di): Handle TF modes and rename to
27089         aarch64_mov<mode>low_di
27090         (aarch64_movtilow_tilow): Remove spurious whitespace.
27091         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27092         splits.
27093         (aarch64_print_operand): Update.
27095 2013-05-09  Alan Modra  <amodra@gmail.com>
27097         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27098         powerpc64le.
27099         * configure: Regenerate.
27101 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27103         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27104         splitter preparation statements.
27105         * config/i386/sse.md (*vec_extract* splitters): Ditto.
27106         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27107         adjust_address_nv.
27109 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27111         * gimple-ssa-strength-reduction.c (count_candidates): Change
27112         return value to int.
27113         (analyze_candidates_and_replace): Change type of length to int.
27115 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27117         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27118         (*vec_extract<mode>): Use VI12_128 mode iterator.
27119         (*vec_extract<mode>_mem): Ditto.
27120         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27121         attribute.
27123 2013-05-08  Diego Novillo  <dnovillo@google.com>
27125         PR bootstrap/54659
27127         Revert:
27128         2012-08-17  Diego Novillo  <dnovillo@google.com>
27130         PR bootstrap/54281
27131         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27132         * config.in: Regenerate.
27133         * configure: Regenerate.
27134         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27136 2013-05-08  Jan Hubicka  <jh@suse.cz>
27138         PR lto/54095
27139         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27140         * cgraph.h (symtab_node_base): Add unique_name.
27141         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27142         input_overwrite_node, input_varpool_node): Stream unique_name.
27143         * cgraphclones.c (cgraph_create_virtual_clone,
27144         cgraph_function_versioning): Set unique_name.
27145         * ipa.c (function_and_variable_visibility): Set unique_name.
27147 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27149         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27150         (alloc_cand_and_find_basis): Restrict conditional candidate
27151         processing to CAND_MULTs.
27153 2013-05-08  Jan Hubicka  <jh@suse.cz>
27155         PR lto/54095
27156         lto-symtab.c (lto_symtab_symbol_p): New function.
27157         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27158         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27159         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27160         Skip static symbols.
27162 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
27164         PR tree-optimization/57200
27165         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27166         Only call inform if the preceding warning_at returns true.
27168 2013-05-07  Han Shen  <shenhan@google.com>
27170         * cfgexpand.c (record_or_union_type_has_array_p): New function.
27171         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27172         * common.opt (fstack-protector-strong): New option.
27173         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27174         * doc/invoke.texi (Optimization Options): Document
27175         "-fstack-protector-strong".
27176         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27178 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27180         * config/mips/mips.c (mips_machine_reorg2): Return 0.
27182 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
27184         * ira.c (update_equiv_regs): Add insn having equiv memory even if
27185         it is not lhs of the insn.
27186         (setup_reg_equiv): Remove insn having equiv memory which it is not
27187         lhs of the insn.
27188         * lra-constraints.c (process_address): Try to improve generation
27189         code for address base + disp.
27190         (lra_constraints): Make correct the code for checking insn setting
27191         up backward equivalence.  Remove insn only if it is in the init
27192         insn list.
27193         * lra-eliminations.c (update_reg_eliminate): Change return value.
27194         (lra_eliminate): Use the result.
27196 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
27198         * config/i386/sse.md (ssescalarnummask): New mode attribute.
27199         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27200         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27201         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27202         register target operands.
27203         (*vec_extractv8hi_sse2): New pattern.
27204         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27205         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27206         (*vec_extract<mode>_mem): New insn and split pattern.
27208 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
27210         * config/arm/arm.c (arm_asan_shadow_offset): New function.
27211         (TARGET_ASAN_SHADOW_OFFSET): Define.
27212         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27213         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27215 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27217         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27218         (incr_vec_index): Return -1 if increment not found.
27219         (create_add_on_incoming_edge): Assert if increment not found.
27220         (record_increment): Limit number of increments recorded.
27221         (all_phi_incrs_profitable): Return false if an increment not found.
27222         (replace_profitable_candidates): Don't process increments that were
27223         not recorded.
27224         (analyze_candidates_and_replace): Limit size of incr_vec.
27226 2013-05-07  Richard Biener  <rguenther@suse.de>
27228         * calls.c (special_function_p): setjmp-like functions are leaf.
27229         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27230         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27232 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
27234         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27235         (aarch64_simd_mov<mode>): New expander.
27236         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27237         (aarch64_simd_mov_to_<mode>high): Likewise.
27238         (aarch64_simd_mov_from_<mode>low): Likewise.
27239         (aarch64_simd_mov_from_<mode>high): Likewise.
27240         (aarch64_dup_lane<mode>): Update.
27241         (aarch64_dup_lanedi): New instruction pattern.
27242         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27243         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27245 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27247         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27248         (replace_mult_candidate): Remove unnecessary argument; remove
27249         unnecessary parameter from call to introduce_cast_before_cand.
27250         (replace_unconditional_candidate): Remove unnecessary parameter
27251         from call to replace_mult_candidate.
27252         (replace_conditional_candidate): Likewise.
27253         (insert_initializers): Use make_temp_ssa_name.
27254         (introduce_cast_before_cand): Remove unnecessary argument; use
27255         make_temp_ssa_name.
27256         (replace_one_candidate): Remove unnecessary argument; remove
27257         unnecessary parameter from calls to introduce_cast_before_cand.
27258         (replace_profitable_candidates): Remove unnecessary parameters
27259         from calls to replace_one_candidate.
27261 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27263         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27264         phi def as possibly hiding a basis for a CAND_ADD whose operands
27265         have been commuted in the analysis.
27266         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27268 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27270         * config/aarch64/aarch64.md
27271         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27272         shift value between 0-4.
27274 2013-05-07  Richard Biener  <rguenther@suse.de>
27276         * double-int.h (rshift): New overload.
27277         * double-int.c (rshift): New function.
27278         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27279         (create_reference_ops_from_ref): Remove.
27280         (vn_reference_insert): Use shared ops for constructing the
27281         reference and copy it.
27283 2013-05-07  Richard Biener  <rguenther@suse.de>
27285         PR middle-end/57190
27286         * tree-eh.c (sink_clobbers): Properly propagate
27287         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27289 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
27291         PR tree-optimization/57149
27292         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27293         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27294         collect_phi_def_edges, execute_late_warn_uninitialized): Use
27295         uninit_undefined_value_p instead of ssa_undefined_value_p.
27297         PR debug/57184
27298         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27299         for modifier == EXPAND_INITIALIZER.
27301 2013-05-07  Anton Blanchard  <anton@samba.org>
27303         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27304         for powerpc64 little endian.
27305         * configure: Regenerate.
27307 2013-05-06  Graham Stott  <grahams@btinternet.com>
27309         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27310         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27311         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27312         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27314 2013-05-06  Graham Stott  <grahams@btinternet.com>
27316         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27317         codes which allow non-lvalues.
27319 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
27321         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27322         components are all 1s.
27323         (integer_minus_onep): New function.
27324         * tree.h (integer_minus_onep): Declare it.
27325         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27326         integer_minus_onep instead of integer_all_onesp.
27328 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27330         PR target/52933
27331         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27332         variations of these patterns.
27334 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27336         * config/i386/i386.md (isa): Add x64_sse4 member.
27337         (enabled): Handle x64_sse4.
27338         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27339         instruction for 64bit SSE4_1 targets.  Update insn attributes.
27340         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27341         instruction for SSE4_1 targets.  Update insn attributes.
27342         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27343         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27344         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27345         const_1 selector.
27346         (*vec_extractv4si): Rename from *sse4_1_pextrd.
27347         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27348         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27350 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27352         PR target/57108
27353         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27355 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
27357         * final.c (do_assembler_dialects): Don't handle curly braces and
27358         vertical bar escaped by % as dialect delimiters.
27359         (output_asm_insn): Print curly braces and vertical bar if escaped
27360         by % and ASSEMBLER_DIALECT defined.
27361         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27362         * doc/tm.texi: Regenerated.
27364 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27366         * config/mips/mips.c: Include tree-pass.h.
27367         (mips_reorg): Split in pre- and post-dbr_schedule parts.
27368         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27369         (pass_mips_machine_reorg2): New machine specific pass.
27370         (insert_pass_mips_machine_reorg2): New pass plugin definition.
27371         (mips_option_override): Register the new pass.
27372         * rtl.h (cleanup_barriers): Remove prototype.
27373         (dbr_schedule): Likewise.
27374         * jump.c (cleanup_barriers): Make static.
27375         * reorg.c (dbr_schedule): Likewise.
27377 2013-05-06  Richard Biener  <rguenther@suse.de>
27379         PR tree-optimization/57185
27380         * tree-parloops.c (add_field_for_reduction): Handle anonymous
27381         SSA names properly.
27383 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27385         PR target/57106
27386         * config/i386/i386.c (add_parameter_dependencies): Add dependence
27387         between "first_arg" and "insn", not "last" and "insn".
27389 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27391         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27392         (find_candidates_in_block): Re-enable slsr_process_phi.
27393         (create_phi_basis): Fix double counting of candidate adjustment.
27395 2013-05-06  Richard Biener  <rguenther@suse.de>
27397         PR middle-end/57147
27398         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27399         the edge is also fallthru, preserve it and just clear the
27400         abnormal flag.
27401         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27402         also complex, preserve that and just clear the fallthru flag.
27403         * tree-inline.c (update_ssa_across_abnormal_edges): Also
27404         update virtual operands.
27406 2013-05-06  Alan Modra  <amodra@gmail.com>
27408         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27409         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27410         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27411         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27412         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27413         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27415 2013-05-06  Alan Modra  <amodra@gmail.com>
27417         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27418         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
27419         (DEFAULT_ASM_ENDIAN): Define.
27420         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27421         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27422         Update -K PIC clause from sysv4.h.
27423         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27424         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27426 2013-05-06  Alan Modra  <amodra@gmail.com>
27428         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27429         twice for little-endian.
27430         (ashrdi3_no_power, ashrdi3): Support little-endian.
27432 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27434         PR target/55303
27435         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27436         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27437         related expanders.
27438         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27439         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27440         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27441         New predicates.
27443 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
27444             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27446         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27447         * config/pa/pa.opt: Make mbig-switch a no-op.
27448         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27449         (CASE_VECTOR_MODE): Always return SImode.
27450         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27451         for the !TARGET_BIG_SWITCH case.
27452         * config/pa/pa-linux.h: Likewise.
27453         * config/pa/pa-openbsd.h: Likewise.
27454         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27455         * config/pa/pa.md (short_jump): Remove define_insn.
27456         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27457         (casesi0): Remove define_insn.
27458         (type): Remove btable_branch.
27459         (pa_combine_type): Likewise.
27460         (in_nullified_branch_delay): Likewise.
27461         (in_call_delay): Likewise.
27462         (define_delay): Likewise.
27463         (define_insn_reservation "Z3"): Likewise.
27464         (define_insn_reservation "Z4"): Likewise.
27465         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27466         (pa_adjust_insn_length): Remove adjustment for btable branches.
27467         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27468         and mno-big-switch
27470 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
27472         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27473         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27474         Add m->r,x alternatives.
27475         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27476         splitters using SWI48x mode iterator.
27477         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
27478         TARGET_64BIT.  Add m->x alternative.
27479         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27480         Add o->x alternative.  Enable for TARGET_SSE.
27481         (sse_storeq): Remove expander.
27482         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27483         with memory input operand.
27484         (*vec_extractv2di_1 splitter): New.
27485         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27486         * config/i386/i386.md (ssevecmodelower): New mode attribute.
27488 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27490         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
27491         (INT_LOWPART): Delete.
27492         (extract_MB): Adjust.
27493         (extract_ME): Adjust.
27494         (print_operand): Adjust.
27496 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27498         * config/rs6000/predicates.md (reg_or_add_cint_operand,
27499         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27500         (reg_or_logical_cint_operand, easy_fp_constant,
27501         logical_const_operand): Delete "CONST_DOUBLE" case.
27502         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27503         "HOST_BITS_PER_WIDE_INT == 64" test.
27504         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
27505         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27506         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27507         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27508         test.
27509         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27510         CONST_DOUBLE DImode/VOIDmode case.
27511         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27512         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27513         CONST_DOUBLE VOIDmode case.
27514         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27515         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27516         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27517         Delete CONST_DOUBLE case.
27518         (splitters for mov FMOVE64 const_double): Delete
27519         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27520         "HOST_BITS_PER_WIDE_INT >= 64" test.
27521         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27522         case.
27523         (mov DI const_double): Delete.
27525 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
27527         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27528         on op shows all bits zero in mode of a lowpart subreg, return zero.
27530 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27532         PR target/57150
27533         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27534         to save TFmode registers and DImode to save TImode registers for
27535         caller save operations.
27536         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27537         mark being partially clobbered since they only use the first
27538         double word.
27540         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27541         and TDmode only use the upper 64-bits of each VSX register.
27543 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27545         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27546         (find_candidates_in_block): Disable slsr_process_phi.
27548 2013-05-03  Guozhi Wei  <carrot@google.com>
27550         * coverage.c (coverage_obj_init): Move the construction of gcov
27551         constructor to ...
27552         (build_init_ctor): ... here.
27554 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27556         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27557         (slsr_cand_d): Redefine def_phi.
27558         (stride_status, phi_adjust_status, count_phis_status): New enums.
27559         (find_phi_def): New.
27560         (find_basis_for_base_expr): New.
27561         (find_basis_for_candidate): Handle hidden bases.
27562         (alloc_cand_and_find_basis): Handle phi candidates.
27563         (slsr_process_phi): New.
27564         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27565         (create_mul_imm_cand): Likewise.
27566         (create_add_ssa_cand): Exclude phi base candidates.
27567         (create_add_imm_cand): Likewise.
27568         (slsr_process_cast): Likewise.
27569         (slsr_process_copy): Likewise.
27570         (find_candidates_in_block): Handle phi candidates.
27571         (dump_candidate): Likewise.
27572         (unconditional_cands): Delete.
27573         (unconditional_cands_with_known_stride_p): Delete.
27574         (phi_dependent_cand_p): New.
27575         (cand_increment): Handle phi-dependent candidates.
27576         (replace_dependent): Delete.
27577         (replace_mult_candidate): New.
27578         (replace_unconditional_candidate): New.
27579         (incr_vec_index): Move to avoid forward reference.
27580         (create_add_on_incoming_edge): New.
27581         (create_phi_basis): New.
27582         (replace_dependents): Delete.
27583         (replace_conditional_candidate): New.
27584         (phi_add_costs): New.
27585         (replace_uncond_cands_and_profitable_phis): New.
27586         (record_increment): Handle phi adjustments.
27587         (record_phi_increments): New.
27588         (record_increments): Handle phi adjustments.
27589         (phi_incr_cost): New.
27590         (lowest_cost_path): Handle phis.
27591         (total_savings): Likewise.
27592         (analyze_increments): Likewise.
27593         (ncd_with_phi): New.
27594         (ncd_of_cand_and_phis): New.
27595         (nearest_common_dominator_for_cands): Handle phi increments.
27596         (all_phi_incrs_profitable): New.
27597         (replace_profitable_candidates): Handle phi-dependent candidates.
27598         (analyze_candidates_and_replace): Likewise.
27600 2013-05-03  Teresa Johnson  <tejohnson@google.com>
27602         PR bootstrap/57154
27603         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27604         do not exceed REG_BR_PROB_BASE.
27606 2013-05-03  Jeff Law  <law@redhat.com>
27608         PR tree-optimization/57144
27609         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27610         operand of the condition will bit into the new type when eliminating
27611         a cast feeding a condition.
27613 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
27615         PR rtl-optimization/57130
27616         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27617         of COMPARE as in_code to the recursive call if needed.
27619 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
27621         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27622         (enabled): Handle new members.
27623         * config/i386/sse.md (*vec_concatv2si): Merge from
27624         *vec_concatv2si_sse2 and vec_concatv2si_sse.
27625         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27627 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27629         PR tree-optimization/57027
27630         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27631         for fnms opportunity, check we got the prerequisite kind
27632         of tree / gimple before using accessor functions.
27634 2013-05-03  Richard Biener  <rguenther@suse.de>
27636         * double-int.h (lshift): New overload without precision
27637         and arith argument.
27638         (operator *=, operator +=, operator -=): Move ...
27639         * double-int.c (operator *=, operator +=, operator -=): ... here
27640         and implement more efficiently.
27641         (mul_double_with_sign): Remove.
27642         (lshift_double): Adjust to take unsinged shift argument, push
27643         dispatching code to callers.
27644         (mul_double_wide_with_sign): Add early out for callers that
27645         are not interested in high parts or overflow.
27646         (lshift): New function.
27647         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27648         dispatch code here.
27649         (lrotate, rrotate): Use logical shifts.
27650         * expr.c (get_inner_reference): Use lshift.
27651         * fixed-value.c (do_fixed_divide): Likewise.
27652         * tree-dfa.c (get_ref_base_and_extent): Likewise.
27653         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27654         (indirect_refs_may_alias_p): Likewise.
27655         (stmt_kills_ref_p_1): Likewise.
27657 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27659         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
27661 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27663         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
27664         scalar form of FABD instruction.
27666 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
27668         * lra-constraints.c (process_alt_operands): Add checking alt
27669         number to choose the best alternative.
27671 2013-05-02  Richard Biener  <rguenther@suse.de>
27673         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27674         bitmap and its handling.
27675         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27677 2013-05-02  Richard Biener  <rguenther@suse.de>
27679         PR middle-end/57140
27680         * tree-inline.c (copy_loops): Properly handle removed loops.
27681         (copy_cfg_body): Mark destination loops for fixup if source
27682         loops needed fixup.
27684 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
27686         PR target/56732
27687         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27688         generating simple_return for naked functions.
27690 2013-05-02  Martin Jambor  <mjambor@suse.cz>
27692         PR middle-end/56988
27693         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27694         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27695         flags match.
27696         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27697         ipa_agg_replacement_value structures.
27698         (known_aggs_to_agg_replacement_list): Likewise.
27699         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27700         (read_agg_replacement_chain): Likewise.
27701         (ipcp_transform_function): Also check that by_ref flags match.
27703 2013-05-02  Richard Biener  <rguenther@suse.de>
27705         * graphds.h (struct graph): Add obstack member.
27706         * graphds.c (new_graph): Initialize obstack and allocate
27707         vertices from it.
27708         (add_edge): Allocate edge from the obstack.
27709         (free_graph): Free the obstack instead of all edges and vertices.
27711 2013-05-02  Teresa Johnson  <tejohnson@google.com>
27713         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27714         divides.
27715         * cfg.c (update_bb_profile_for_threading): Ditto.
27716         * tree-inline.c (copy_bb): Ditto.
27717         (copy_edges_for_bb): Ditto.
27718         (initialize_cfun): Ditto.
27719         (copy_cfg_body): Ditto.
27720         (expand_call_inline): Ditto.
27721         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27722         (estimate_node_size_and_time): Ditto.
27723         (inline_merge_summary): Ditto.
27724         * cgraphclones.c (cgraph_clone_edge): Ditto.
27725         (cgraph_clone_node): Ditto.
27726         * sched-rgn.c (compute_dom_prob_ps): Ditto.
27727         (compute_trg_info): Ditto.
27729 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27731         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27732         S reg when fp attribute set.
27733         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27735 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27737         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27738         New pattern.
27739         (*and_one_cmplsi3_compare0_uxtw): Likewise.
27740         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27741         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27743 2013-05-02  Richard Biener  <rguenther@suse.de>
27745         * tree-scalar-evolution.c (scev_info_hasher): Remove.
27746         (struct instantiate_cache_entry): New type.
27747         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27748         (struct instantiate_cache_type): New type.
27749         (set_instantiated_value, get_instantiated_value): Remove.
27750         (get_instantiated_value_entry): New function.
27751         (instantiate_scev_name): Use the new cache and adjust.
27752         (instantiate_scev_poly): Adjust.
27753         (instantiate_scev_binary): Likewise.
27754         (instantiate_array_ref): Likewise.
27755         (instantiate_scev_convert): Likewise.
27756         (instantiate_scev_not): Likewise.
27757         (instantiate_scev_3): Likewise.
27758         (instantiate_scev_2): Likewise.
27759         (instantiate_scev_r): Likewise.
27760         (instantiate_scev): Likewise.
27761         (resolve_mixers): Likewise.
27763 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
27765         PR target/57091
27766         * lra-constraints.c (best_small_class_operands_num): Remove.
27767         (process_alt_operands): Remove small_class_operands_num.  Take
27768         small classes operands into losers and only if the operand is not
27769         matched.  Modify debugging output.
27770         (curr_insn_transform): Remove best_small_class_operands_num.
27771         Print insn name.
27773 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27775         * config/aarch64/aarch64-builtins.c
27776         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
27777         * config/aarch64/aarch64-simd-builtins.def
27778         (reduc_splus_): Add new modes.
27779         (reduc_uplus_): New.
27780         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
27781         (reduc_uplus_v4sf): Likewise.
27782         (reduc_splus_v4sf): Likewise.
27783         (aarch64_addv<mode>): Likewise.
27784         (reduc_uplus_<mode>): Likewise.
27785         (reduc_splus_<mode>): Likewise.
27786         (aarch64_addvv2di): Likewise.
27787         (reduc_uplus_v2di): Likewise.
27788         (reduc_splus_v2di): Likewise.
27789         (aarch64_addvv2si): Likewise.
27790         (reduc_uplus_v2si): Likewise.
27791         (reduc_splus_v2si): Likewise.
27792         (reduc_<sur>plus_<mode>): New.
27793         (reduc_<sur>plus_v2di): Likewise.
27794         (reduc_<sur>plus_v2si): Likewise.
27795         (reduc_<sur>plus_v4sf): Likewise.
27796         (aarch64_addpv4sf): Likewise.
27797         * config/aarch64/arm_neon.h
27798         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
27799         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
27800         add UNSPEC_SADDV, UNSPEC_UADDV.
27801         (SUADDV): New.
27802         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
27804 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27806         * config/aarch64/arm_neon.h
27807         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
27809 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27811         * config/aarch64/aarch64-builtins
27812         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
27814 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27816         * config/aarch64/aarch64-simd-builtins.def
27817         (reduc_smax_): New.
27818         (reduc_smin_): Likewise.
27819         (reduc_umax_): Likewise.
27820         (reduc_umin_): Likewise.
27821         (reduc_smax_nan_): Likewise.
27822         (reduc_smin_nan_): Likewise.
27823         (fmax): Remove.
27824         (fmin): Likewise.
27825         (smax): Update for V2SF, V4SF and V2DF modes.
27826         (smin): Likewise.
27827         (smax_nan): New.
27828         (smin_nan): Likewise.
27829         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
27830         (<su><maxmin><mode>3): ...This, refactor.
27831         (s<maxmin><mode>3): New.
27832         (<maxmin_uns><mode>3): Likewise.
27833         (reduc_<maxmin_uns>_<mode>): Refactor.
27834         (reduc_<maxmin_uns>_v4sf): Likewise.
27835         (reduc_<maxmin_uns>_v2si): Likewise.
27836         (aarch64_<fmaxmin><mode>: Remove.
27837         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
27838         new builtin names.
27839         (vmin<q>_f<32,64>): Likewise.
27840         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27841         (FMAXMIN): New.
27842         (su): Add mappings for smax, smin, umax, umin.
27843         (maxmin): New.
27844         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27845         (FMAXMIN): Rename as...
27846         (FMAXMIN_UNS): ...This.
27847         (maxminv): Remove.
27848         (fmaxminv): Likewise.
27849         (fmaxmin): Likewise.
27850         (maxmin_uns): New.
27851         (maxmin_uns_op): Likewise.
27853 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27855         * config/aarch64/arm_neon.h
27856         (vac<ge, gt><sd>_f<32, 64>): Rename to...
27857         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
27858         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
27860 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27862         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
27863         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
27865 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27867         * config/aarch64/aarch64-simd.md
27868         (vcond<mode>_internal): Handle special cases for constant masks.
27869         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
27870         (vcondu<mode><mode>): Likewise.
27871         (vcond<v_cmp_result><mode>): New.
27873 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27875         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
27876         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
27877         * config/aarch64/aarch64-simd-builtins.def
27878         (cmeq): Update to BUILTIN_VALLDI.
27879         (cmgt): Likewise.
27880         (cmge): Likewise.
27881         (cmle): Likewise.
27882         (cmlt): Likewise.
27883         * config/aarch64/arm_neon.h
27884         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
27885         to builtins or C as appropriate.
27887 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27889         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
27890         (cmgeu): ...This.
27891         (cmhi): Rename to...
27892         (cmgtu): ...This.
27893         * config/aarch64/aarch64-simd.md
27894         (simd_mode): Add SF.
27895         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
27896         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
27897         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
27898         (cstore<mode>_neg): ...This.
27899         * config/aarch64/iterators.md
27900         (VALLF): new.
27901         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
27902         (COMPARISONS): New.
27903         (UCOMPARISONS): Likewise.
27904         (optab): Add missing comparisons.
27905         (n_optab): New.
27906         (cmp_1): Likewise.
27907         (cmp_2): Likewise.
27908         (CMP): Likewise.
27909         (cmp): Remove.
27910         (VCMP_S): Likewise.
27911         (VCMP_U): Likewise.
27912         (V_cmp_result): Add DF, SF modes.
27913         (v_cmp_result): Likewise.
27914         (v): Likewise.
27915         (vmtype): Likewise.
27916         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
27918 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
27920         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
27921         define_insn to define_insn_and_split.
27922         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
27923         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
27924         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
27925         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
27926         (thumb2_negscc): Likewise.
27928 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27930         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
27932 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27934         * config/arm/thumb2.md: Remove trailing whitespaces.
27936 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27938         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
27939         Use gen_int_mode rather than GEN_INT.
27941 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
27943         * value-prof.c (stream_in_histogram_value): Remove the strayed
27944         debug_gimple_stmt.
27946 2013-04-30  Richard Biener  <rguenther@suse.de>
27948         PR middle-end/57122
27949         * cfghooks.c (split_edge): Properly check for the loop latch edge.
27951 2013-04-30  Richard Biener  <rguenther@suse.de>
27953         PR middle-end/57107
27954         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
27956 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
27958         PR rtl-optimization/56957
27959         PR rtl-optimization/57105
27960         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
27961         variable.  Use just INSN_UID for determining whether an insn
27962         should be only disconnected from the insn stream.
27963         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
27965 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
27967         PR tree-optimization/57104
27968         * tsan.c (instrument_expr): Don't instrument accesses to
27969         DECL_HARD_REGISTER VAR_DECLs.
27971 2013-04-30  Richard Biener  <rguenther@suse.de>
27973         * function.h (loops_for_fn): New inline function.
27974         (set_loops_for_fn): Likewise.
27975         * cfgloop.h (place_new_loop): Add struct function parameter.
27976         (get_loop): Likewise.
27977         (get_loops): Likewise.
27978         (number_of_loops): Likewise.
27979         (fel_next): Adjust.
27980         (fel_init): Likewise.
27981         * cfg.c (get_loop_copy): Adjust.
27982         * cfgloop.c (flow_loops_dump): Likewise.
27983         (record_loop_exits): Likewise.
27984         (verify_loop_structure): Likewise.
27985         * cfgloopanal.c (mark_irreducible_loops): Likewise.
27986         (estimate_reg_pressure_cost): Likewise.
27987         (mark_loop_exit_edges): Likewise.
27988         * cfgloopmanip.c (place_new_loop): Likewise.
27989         (add_loop): Likewise.
27990         (duplicate_loop): Likewise.
27991         * graph.c (draw_cfg_nodes): Likewise.
27992         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
27993         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
27994         (extract_affine_chrec): Likewise.
27995         (build_scop_iteration_domain): Likewise.
27996         * graphite.c (graphite_initialize): Likewise.
27997         * ira-build.c (create_loop_tree_nodes): Likewise.
27998         (more_one_region_p): Likewise.
27999         (rebuild_regno_allocno_maps): Likewise.
28000         (mark_loops_for_removal): Likewise.
28001         (mark_all_loops_for_removal): Likewise.
28002         (remove_unnecessary_regions): Likewise.
28003         (ira_build): Likewise.
28004         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28005         * loop-init.c (fix_loop_structure): Likewise.
28006         (gate_rtl_move_loop_invariants): Likewise.
28007         (gate_rtl_unswitch): Likewise.
28008         (gate_rtl_unroll_and_peel_loops): Likewise.
28009         (rtl_doloop): Likewise.
28010         * lto-streamer-in.c (input_cfg): Likewise.
28011         * lto-streamer-out.c (output_cfg): Likewise.
28012         * modulo-sched.c (sms_schedule): Likewise.
28013         * predict.c (tree_estimate_probability): Likewise.
28014         (tree_estimate_probability_driver): Likewise.
28015         (estimate_loops): Likewise.
28016         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28017         (move_sese_region_to_fn): Likewise.
28018         (debug_loop_num): Likewise.
28019         * tree-chrec.c (chrec_evaluate): Likewise.
28020         (hide_evolution_in_other_loops_than_loop): Likewise.
28021         (chrec_component_in_loop_num): Likewise.
28022         (reset_evolution_in_loop): Likewise.
28023         (evolution_function_is_invariant_rec_p): Likewise.
28024         * tree-if-conv.c (main_tree_if_conversion): Likewise.
28025         * tree-inline.c (copy_loops): Likewise.
28026         (copy_cfg_body): Likewise.
28027         (tree_function_versioning): Likewise.
28028         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28029         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28030         Likewise.
28031         (add_to_evolution_1): Likewise.
28032         (scev_const_prop): Likewise.
28033         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28034         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28035         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28036         (tree_ssa_lim_initialize): Likewise.
28037         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28038         (verify_loop_closed_ssa): Likewise.
28039         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
28040         (tree_ssa_loop_im): Likewise.
28041         (tree_ssa_loop_unswitch): Likewise.
28042         (tree_vectorize): Likewise.
28043         (check_data_deps): Likewise.
28044         (tree_ssa_loop_ivcanon): Likewise.
28045         (tree_ssa_loop_bounds): Likewise.
28046         (tree_complete_unroll): Likewise.
28047         (tree_complete_unroll_inner): Likewise.
28048         (tree_parallelize_loops): Likewise.
28049         (tree_ssa_loop_prefetch): Likewise.
28050         (tree_ssa_loop_ivopts): Likewise.
28051         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28052         * tree-vectorizer.c (vectorize_loops): Likewise.
28054 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
28056         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28057         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28058         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28059         with EABI_LINK_SPEC.
28061 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28063         PR target/44578
28064         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28065         alternative.
28067 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
28069         PR target/57097
28070         * lra-constraints.c (process_alt_operands): Discourage a bit more
28071         using memory for pseudos.  Print cost dump for alternatives.
28072         Modify cost values for conflicts with early clobbers.
28073         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28075 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28077         PR target/57098
28078         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28080 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28082         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28083         from/to S register.
28084         (movdi_aarch64): Support LDR/STR from/to D register.
28086 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28088         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28089         or higher by default.
28091 2013-04-29  Richard Biener  <rguenther@suse.de>
28093         PR middle-end/57075
28094         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28095         even if not adding abnormal edges for calls that can make
28096         abnormal gotos.
28098 2013-04-29  Richard Biener  <rguenther@suse.de>
28100         PR middle-end/57103
28101         * tree-cfg.c (move_stmt_op): Fix condition under which to update
28102         TREE_BLOCK.
28103         (move_stmt_r): Remove redundant checking.
28105 2013-04-29  Teresa Johnson  <tejohnson@google.com>
28107         PR bootstrap/57077
28108         * basic-block.h (apply_scale): New function.
28109         (apply_probability): Use apply_scale.
28110         * gimple-streamer-in.c (input_bb): Ditto.
28111         * lto-streamer-in.c (input_cfg): Ditto.
28112         * lto-cgraph.c (merge_profile_summaries): Ditto.
28113         * tree-optimize.c (execute_fixup_cfg): Ditto.
28114         * tree-inline.c (copy_bb): Update comment to use apply_scale.
28115         (copy_edges_for_bb): Ditto.
28116         (copy_cfg_body): Ditto.
28118 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28120         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28121         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28122         (tail_merge_optimize): Handle current_loops == NULL.
28124 2013-04-26  Jeff Law  <law@redhat.com>
28126         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28127         (simplify_cond_using_ranges): Generalize code to simplify
28128         COND_EXPRs where one argument is a constant and the other
28129         is an SSA_NAME created by an integral type conversion.
28131 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28133         * config/arm/arm.md (store_minmaxsi): Use only when
28134         optimize_insn_for_size_p.
28136 2013-04-29  Christian Bruel  <christian.bruel@st.com>
28138         PR target/57108
28139         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28141 2013-04-29  Richard Biener  <rguenther@suse.de>
28143         PR middle-end/57089
28144         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28145         loop tree make sure to schedule a fixup for the child as well.
28146         (expand_omp_for_generic): Properly add loops.
28147         (expand_omp_for_static_nochunk): Likewise.
28148         (expand_omp_for_static_chunk): Likewise.
28149         (expand_omp_for): For the degenerate case fixup loops.
28150         (expand_omp_sections): Fix default bb placement in loops.
28151         (expand_omp_atomic_pipeline): Properly add loops.
28153 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28155         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28157 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28159         * tree-ssa-tail-merge.c: Update header comment.
28161 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28163         * config/aarch64/arm_neon.h
28164         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28165         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28166         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28167         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28168         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28169         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28170         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28171         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28173 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28175         * config/aarch64/aarch64-simd.md
28176         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28177         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28178         fix_trunc, fixuns_trunc.
28179         (ftrunc<VDQF:mode>2): New.
28180         * config/aarch64/iterators.md (optab): Add fix, fixuns.
28181         (fix_trunc_optab): New.
28183 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28185         * config/aarch64/aarch64-builtins.c
28186         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28187         iceilf, lround, iroundf.
28189 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28191         PR target/54349
28192         * config/i386/i386.h (enum ix86_tune_indices)
28193         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28194         New, split from X86_TUNE_INTER_UNIT_MOVES.
28195         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28196         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28197         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28198         (TARGET_INTER_UNIT_MOVES): Remove.
28199         * config/i386/i386.c (initial_ix86_tune_features): Update.
28200         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28201         (ix86_expand_convert_uns_didf_sse): Use
28202         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28203         (ix86_expand_vector_init_one_nonzero): Ditto.
28204         (ix86_expand_vector_init_interleave): Ditto.
28205         (inline_secondary_memory_needed): Return true for moves from SSE class
28206         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28207         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28208         * config/i386/constraints.md (Yi, Ym): Depend on
28209         TARGET_INTER_UNIT_MOVES_TO_VEC.
28210         (Yj, Yn): New constraints.
28211         * config/i386/i386.md (*movdi_internal): Change constraints of
28212         operand 1 from Yi to Yj and from Ym to Yn.
28213         (*movsi_internal): Ditto.
28214         (*movdf_internal): Ditto.
28215         (*movsf_internal): Ditto.
28216         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28217         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28218         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28219         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28220         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28221         * config/i386/sse.md (movdi_to_sse): Ditto.
28222         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28223         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28224         TARGET_INTER_UNIT_MOVES.
28225         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28226         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28227         instead of TARGET_INTER_UNIT_MOVES.
28228         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28229         operand 1 from Yi to Yj and from Ym to Yn.
28231 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28233         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28234         (float_truncate_hi_): Likewise.
28235         (float_extend_lo_): Likewise.
28236         (float_truncate_lo_): Likewise.
28237         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28238         (aarch64_float_extend_lo_v2df): Likewise.
28239         (vec_unpacks_hi_v4sf): Likewise.
28240         (aarch64_float_truncate_lo_v2sf): Likewise.
28241         (aarch64_float_truncate_hi_v4sf): Likewise.
28242         (vec_pack_trunc_v2df): Likewise.
28243         (vec_pack_trunc_df): Likewise.
28245 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28247         * config/aarch64/aarch64-builtins.c
28248         (aarch64_fold_builtin): Fold float conversions.
28249         * config/aarch64/aarch64-simd-builtins.def
28250         (floatv2si, floatv4si, floatv2di): New.
28251         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28252         * config/aarch64/aarch64-simd.md
28253         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28254         * config/aarch64/iterators.md (FLOATUORS): New.
28255         (optab): Add float, floatuns.
28256         (su_optab): Likewise.
28258 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28260         * config/aarch64/aarch64-builtins.c
28261         (aarch64_builtin_vectorized_function): Use new names for
28262         fcvt builtins.
28263         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28264         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28265         (fcvtzu): Split as...
28266         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28267         (fcvtas): Split as...
28268         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28269         (fcvtau): Split as...
28270         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28271         (fcvtps): Split as...
28272         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28273         (fcvtpu): Split as...
28274         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28275         (fcvtms): Split as...
28276         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28277         (fcvtmu): Split as...
28278         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28279         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28280         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28281         (lfrintnusf, lfrintnudf): Likewise.
28282         * config/aarch64/aarch64-simd.md
28283         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28284         define_insn.
28285         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28286         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28287         (fcvt_pattern): Likewise.
28289 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28291         * config/aarch64/aarch64-simd.md
28292         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28293         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28295 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28297         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28298         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28299         (vrnd<a,m,n,p>_f32): Implement using builtins.
28300         (vrnd<i,x><q>_f<32, 64>): New.
28302 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28304         * config/aarch64/aarch64-builtins.c
28305         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28306         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28307         (frintz): Rename to...
28308         (btrunc): ...this.
28309         (frintp): Rename to...
28310         (ceil): ...this.
28311         (frintm): Rename to...
28312         (floor): ...this.
28313         (frinti): Rename to...
28314         (nearbyint): ...this.
28315         (frintx): Rename to...
28316         (rint): ...this.
28317         (frinta): Rename to...
28318         (round): ...this.
28319         * config/aarch64/aarch64-simd.md
28320         (aarch64_frint<frint_suffix><mode>): Delete.
28321         (<frint_pattern><mode>2): Convert to insn.
28322         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28323         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28324         (frint_pattern): Likewise.
28325         (frint_suffix): Likewise.
28327 2013-04-29  Richard Biener  <rguenther@suse.de>
28329         PR tree-optimization/57081
28330         * loop-init.c: Include tree-flow.h.
28331         (loop_optimizer_finalize): Free number of iteration estimates.
28332         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28334 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
28336         PR tree-optimization/57083
28337         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28338         non-singleton shift count range, zero extend low_bound for uns case.
28340         * config/i386/predicates.md (general_vector_operand): New predicate.
28341         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28342         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28343         if they aren't nonimmediate operands.  If their original values
28344         satisfy const_vector_equal_evenodd_p, don't shift them.
28345         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28346         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
28347         if not nonimmediate_operand.
28348         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28349         instead of register_operand.
28350         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28352 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28354         * stor-layout.c (finalize_size_functions): Allocate a structure and
28355         reset cfun before dumping the functions.
28357 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
28359         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28361         PR target/56866
28362         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28363         use xop_pmacsdqh if uns_p.
28364         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28365         the immediate rotate count.
28367 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
28369         * rtl.h (struct rtx_def): Add comment for field jump.
28370         (LRA_SUBREG_P): New macro.
28371         * recog.c (register_operand): Check LRA_SUBREG_P.
28372         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28373         stack frame.
28374         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28375         (lra_final_code_change): Skip subreg change for operators.
28376         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28377         if there are no operand changes.
28378         * lra-constraints.c (curr_insn_set): New.
28379         (match_reload): Set LRA_SUBREG_P.
28380         (emit_spill_move): Ditto.
28381         (check_and_process_move): Use curr_insn_set. Process only single
28382         set insns.  Don't initialize sec_mem_p and change_p.
28383         (simplify_operand_subreg): Use LRA_SUBREG_P.
28384         (reg_in_class_p): New function.
28385         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28386         of #ifdef.  Add code to remove cycling.
28387         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28388         non-null disp.  Reload inner instead of disp when base and index
28389         are null.  Try to put lo_sum into register.
28390         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28391         (check_and_process_move): Move code for move cost check to
28392         simple_move_p.  Remove equiv_substitution.
28393         (simple_move_p): New function.
28394         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28395         curr_insn_set.  Call check_and_process_move only for single set
28396         insns.  Use the new function.  Move call of check_and_process_move
28397         after operand equiv substitution and address process.
28399 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28401         PR go/57045
28402         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28403         with nonlocal goto receivers or returns twice calls, ignore
28404         unininitialized values from abnormal edges to nl goto receiver
28405         or returns twice call.
28407 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28409         PR tree-optimization/57051
28410         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28411         and VEC_RSHIFT_EXPR if shift count is a multiple of element
28412         bitsize.
28414 2013-04-26  Richard Biener  <rguenther@suse.de>
28416         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28417         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
28418         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28419         (fixup_loop_arrays_after_move): New function.
28420         (move_sese_region_to_fn): Properly outline the loop tree parts
28421         of the SESE region.
28423 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
28425         * config/i386/i386.md (type, unit): Fix long lines.
28427 2013-04-26  Richard Biener  <rguenther@suse.de>
28429         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28430         (lto-streamer-out.o): Likewise.
28431         * cfgloop.c (init_loops_structure): Export, add struct function
28432         argument and adjust.
28433         (flow_loops_find): Adjust.
28434         * cfgloop.h (enum loop_estimation): Add EST_LAST.
28435         (init_loops_structure): Declare.
28436         * lto-streamer-in.c: Include cfgloop.h.
28437         (input_cfg): Input the loop tree.
28438         * lto-streamer-out.c: Include cfgloop.h.
28439         (output_cfg): Output the loop tree.
28440         (output_struct_function_base): Do not drop PROP_loops.
28442 2013-03-26  Richard Biener  <rguenther@suse.de>
28444         * tree-cfg.c (execute_build_cfg): Build the loop tree.
28445         (pass_build_cfg): Provide PROP_loops.
28446         (move_sese_region_to_fn): Remove loops that are outlined into fn
28447         for now.
28448         * tree-inline.c: Include cfgloop.h.
28449         (initialize_cfun): Do not drop PROP_loops.
28450         (copy_loops): New function.
28451         (copy_cfg_body): Copy loop structure.
28452         (tree_function_versioning): Initialize destination loop tree.
28453         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28454         (pass_parallelize_loops): Do IL verification.
28455         * loop-init.c (loop_optimizer_init): Fixup loops if required.
28456         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28457         the CFG make sure we fixup loops as well.
28458         * tree-ssa-tail-merge.c: Include cfgloop.h.
28459         (replace_block_by): When merging loop latches mark loops for fixup.
28460         * lto-streamer-out.c (output_struct_function_base): Drop
28461         PROP_loops for now.
28462         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28463         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28464         * ipa-split.c: Include cfgloop.h.
28465         (split_function): Add the new return block to the loop tree root.
28466         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28467         whether we have removed the forwarder block.
28468         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28469         * cfgloop.h (place_new_loop): Declare.
28470         * cfgloopmanip.c (place_new_loop): Export.
28471         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28472         (tree-switch-conversion.o): Likewise.
28473         (tree-complex.o): Likewise.
28474         (tree-inline.o): Likewise.
28475         (tree-ssa-tailmerge.o): Likewise.
28476         (ipa-split.o): Likewise.
28477         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28478         (tree-ssa-copy.o): Likewise.
28479         * tree-switch-conversion.c: Include cfgloop.h
28480         (process_switch): If we emit a bit-test cascade, schedule loops
28481         for fixup.
28482         * tree-complex.c: Include cfgloop.h.
28483         (expand_complex_div_wide): Properly add new basic-blocks to loops.
28484         * asan.c: Include cfgloop.h.
28485         (create_cond_insert_point): Properly add new basic-blocks to
28486         loops, schedule loop fixup.
28487         * cfgloop.c (verify_loop_structure): Check that looks are not
28488         marked for fixup.
28489         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28490         to loops.
28491         (expand_omp_for_generic): Likewise.
28492         (expand_omp_sections): Likewise.
28493         (expand_omp_atomic_pipeline): Schedule loops for fixup.
28494         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28495         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28496         is initialized, not when loops are present.
28497         * tree-parloops.c (parallelize_loops): Remove checking here.
28498         * passes.c (init_optimization_passes): Schedule a copy-propagation
28499         pass before complete unrolling of inner loops.
28501 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28503         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28504         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28505         (colorize_init): Add argument to _WIN32 version.
28506         * toplev.c: Include diagnostic-color.h.
28507         (process_options): Default to -fdiagnostics-color=auto if
28508         GCC_COLORS env var is in the environment.
28509         * common.opt (fdiagnostics-color=): Add Var and Init.
28510         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28511         env var is in the environment, the default is auto rather than never.
28513         * diagnostic.h (file_name_as_prefix): Add context argument.
28514         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
28515         the string as locus.
28516         * langhooks.c (lhd_print_error_function): Adjust caller.
28518 2013-04-25  Lawrence Crowl  <crowl@google.com>
28520         * var-tracking.c (shared_hash_def::htab):
28521         Change type to hash_table.  Update dependent calls and types.
28523 2013-04-25  Lawrence Crowl  <crowl@google.com>
28525         * Makefile.in: Update as needed below.
28527         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28528         Move declaration to after the type's method definitons.
28530         * attribs.c (htab_t scoped_attributes::attribute_hash):
28531         Change type to hash_table.  Update dependent calls and types.
28533         * bitmap.c (htab_t bitmap_desc_hash):
28534         Change type to hash_table.  Update dependent calls and types.
28536         * cselib.c (htab_t cselib_hash_table):
28537         Change type to hash_table.  Update dependent calls and types.
28539         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28540         (hash_string_slot_node): Move implementation into lto-streamer.h
28541         struct string_slot_hasher.
28542         (eq_string_slot_node): Likewise.
28544         * data-streamer-out.c: Update output_block::string_hash_table
28545         dependent calls and types.
28547         * dwarf2cfi.c (htab_t trace_index):
28548         Change type to hash_table.  Update dependent calls and types.
28550         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28551         Change type to hash_table.  Update dependent calls and types.
28552         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28553         (htab_t optimize_external_refs::map): Likewise.
28554         (htab_t output_comp_unit::extern_map): Likewise.
28555         (htab_t output_comdat_type_unit::extern_map): Likewise.
28556         (htab_t output_macinfo::macinfo_htab): Likewise.
28557         (htab_t optimize_location_lists::htab): Likewise.
28558         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28560         * except.c (htab_t ehspec_hash_type):
28561         Change type to hash_table.  Update dependent calls and types.
28562         (assign_filter_values::ttypes): Likewise.
28563         (assign_filter_values::ehspec): Likewise.
28564         (sjlj_assign_call_site_values::ar_hash): Likewise.
28565         (convert_to_eh_region_ranges::ar_hash): Likewise.
28567         * gcse.c (htab_t pre_ldst_table):
28568         Change type to hash_table.  Update dependent calls and types.
28570         * ggc-common.c (htab_t saving_htab):
28571         Change type to hash_table.  Update dependent calls and types.
28572         (htab_t loc_hash): Likewise.
28573         (htab_t ptr_hash): Likewise.
28574         (call_count): Rename ggc_call_count.
28575         (call_alloc): Rename ggc_call_alloc.
28576         (loc_descriptor): Rename make_loc_descriptor.
28577         (add_statistics): Rename ggc_add_statistics.
28579         * ggc-common.c (saving_htab):
28580         Change type to hash_table.  Update dependent calls and types.
28582         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28583         (push_gimplify_context): Likewise.
28584         (pop_gimplify_context): Likewise.
28585         (struct gimple_temp_hash_elt): Added.
28586         (struct gimplify_hasher): Likewise.
28587         (struct gimplify_ctx.temp_htab):
28588         Change type to hash_table.  Update dependent calls and types.
28590         * gimple-fold.c: Include gimplify-ctx.h.
28592         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28593         Change type to hash_table.  Update dependent calls and types.
28594         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28595         avoid potential global name collision.
28597         * gimplify.c: Include gimplify-ctx.h.
28598         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28599         (htab_t gimplify_ctx::temp_htab):
28600         Update dependent calls and types for new type hash_table.
28601         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28602         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28604         * gimplify-ctx.h: New.
28605         (struct gimple_temp_hash_elt): Move from gimplify.c.
28606         (class gimplify_hasher): New.
28607         (struct gimplify_ctx): Move from gimple.h.
28608         (htab_t gimplify_ctx::temp_htab):
28609         Change type to hash_table.  Update dependent calls and types.
28611         * graphite-clast-to-gimple.c: Include graphite-htab.h.
28612         (htab_t ivs_params::newivs_index):
28613         Change type to hash_table.  Update dependent calls and types.
28614         (htab_t ivs_params::params_index): Likewise.
28615         (htab_t print_generated_program::params_index): Likewise.
28616         (htab_t gloog::newivs_index): Likewise.
28617         (htab_t gloog::params_index): Likewise.
28619         * graphite.c: Include graphite-htab.h.
28620         4htab_t graphite_transform_loops::bb_pbb_mapping):
28621         Change type to hash_table.  Update dependent calls and types.
28623         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28624         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28625         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28627         * graphite-dependences.c: Include graphite-htab.h.
28628         (loop_is_parallel_p): Change hash table type of parameter.
28630         * graphite-htab.h: New.
28631         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28632         (extern find_pbb_via_hash): Move from graphite-poly.h.
28633         (extern loop_is_parallel_p): Move from graphite-poly.h.
28634         (extern get_loop_body_pbbs): Move from graphite-poly.h.
28636         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28637         (extern loop_is_parallel_p): Move to graphite-htab.h.
28638         (extern get_loop_body_pbbs): Move to graphite-htab.h.
28640         * haifa-sched.c (htab_t delay_htab):
28641         Change type to hash_table.  Update dependent calls and types.
28642         (htab_t delay_htab_i2): Likewise.
28644         * ira-color.c (htab_t allocno_hard_regs_htab):
28645         Change type to hash_table.  Update dependent calls and types.
28647         * ira-costs.c (htab_t cost_classes_htab):
28648         Change type to hash_table.  Update dependent calls and types.
28650         * loop-invariant.c (htab_t merge_identical_invariants::eq):
28651         Change type to hash_table.  Update dependent calls and types.
28653         * loop-iv.c (htab_t bivs):
28654         Change type to hash_table.  Update dependent calls and types.
28656         * loop-unroll.c (htab_t opt_info::insns_to_split):
28657         Change type to hash_table.  Update dependent calls and types.
28658         (htab_t opt_info::insns_with_var_to_expand): Likewise.
28660         * lto-streamer.h (struct string_slot): Move from data-streamer.h
28661         (struct string_slot_hasher): New.
28662         (htab_t output_block::string_hash_table):
28663         Change type to hash_table.  Update dependent calls and types.
28665         * lto-streamer-in.c (freeing_string_slot_hasher): New.
28666         (htab_t file_name_hash_table):
28667         Change type to hash_table.  Update dependent calls and types.
28669         * lto-streamer-out.c: Update output_block::string_hash_table dependent
28670         calls and types.
28672         * lto-streamer.c (htab_t tree_htab):
28673         Change type to hash_table.  Update dependent calls and types.
28675         * omp-low.c: Include gimplify-ctx.h.
28677         * passes.c (htab_t name_to_pass_map):
28678         Change type to hash_table.  Update dependent calls and types.
28679         (pass_traverse): Rename to passes_pass_traverse.
28681         * plugin.c (htab_t event_tab):
28682         Change type to hash_table.  Update dependent calls and types.
28684         * postreload-gcse.c (htab_t expr_table):
28685         Change type to hash_table.  Update dependent calls and types.
28686         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28688         * sese.c (debug_rename_map_1): Make extern.
28689         (htab_t copy_bb_and_scalar_dependences::rename_map):
28690         Change type to hash_table.  Update dependent calls and types.
28692         * sese.h (extern debug_rename_map): Move to .c file.
28694         * store-motion.c (htab_t store_motion_mems_table):
28695         Change type to hash_table.  Update dependent calls and types.
28697         * trans-mem.c (htab_t tm_new_mem_hash):
28698         Change type to hash_table.  Update dependent calls and types.
28700         * tree-browser.c (htab_t TB_up_ht):
28701         Change type to hash_table.  Update dependent calls and types.
28703         * tree-cfg.c (htab_t discriminator_per_locus):
28704         Change type to hash_table.  Update dependent calls and types.
28706         * tree-complex.c: Include tree-hasher.h
28707         (htab_t complex_variable_components):
28708         Change type to hash_table.  Update dependent calls and types.
28710         * tree-eh.c (htab_t finally_tree):
28711         Change type to hash_table.  Update dependent calls and types.
28713         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28714         struct int_tree_hasher.
28715         (extern int_tree_map_eq): Likewise.
28716         (uid_decl_map_hash): Removed.
28717         (extern decl_tree_map_eq): Likewise.
28719         * tree-hasher.h: New.
28720         (struct int_tree_hasher): New.
28721         (typedef int_tree_htab_type): New.
28723         * tree-inline.c: Include gimplify-ctx.h.
28725         * tree-mudflap.c: Include gimplify-ctx.h.
28727         * tree-parloops.c: Include tree-hasher.h.
28728         (htab_t eliminate_local_variables_stmt::decl_address):
28729         Change type to hash_table.  Update dependent calls and types.
28730         (htab_t separate_decls_in_region::decl_copies): Likewise.
28732         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28733         Change type to hash_table.  Update dependent calls and types.
28735         * tree-sra.c (candidates):
28736         Change type to hash_table.  Update dependent calls and types.
28738         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28739         in tree-flow.h.
28740         (int_tree_map_hash): Likewise.
28742         * tree-ssa-dom.c (htab_t avail_exprs):
28743         Change type to hash_table.  Update dependent calls and types.
28745         * tree-ssa-live.c (var_map_base_init::tree_to_index):
28746         Change type to hash_table.  Update dependent calls and types.
28748         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28749         Change type to hash_table.  Update dependent calls and types.
28751         * tree-ssa-phiopt.c (seen_ssa_names):
28752         Change type to hash_table.  Update dependent calls and types.
28754         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
28755         Change type to hash_table.  Update dependent calls and types.
28757         * tree-ssa-uncprop.c (equiv):
28758         Change type to hash_table.  Update dependent calls and types.
28760 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
28762         PR rtl-optimization/57003
28763         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
28764         call note_stores with kill_clobbered_value callback again after
28765         killing regs_invalidated_by_call.
28767 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28769         * config/aarch64/aarch64-simd.md
28770         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
28771         (aarch64_simd_bsl<mode>): Likewise.
28772         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
28774 2013-04-25  Marek Polacek  <polacek@redhat.com>
28776         PR tree-optimization/57066
28777         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
28779 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28781         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
28783 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28785         * config/aarch64/aarch64-builtins.c
28786         (aarch64_fold_builtin): New.
28787         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
28788         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
28789         * config/aarch64/aarch64-simd-builtins.def (abs): New.
28790         * config/aarch64/arm_neon.h
28791         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
28793 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28794             Tejas Belagod  <tejas.belagod@arm.com>
28796         * config/aarch64/aarch64-builtins.c
28797         (aarch64_gimple_fold_builtin): New.
28798         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
28799         * config/aarch64/aarch64-simd-builtins.def (addv): New.
28800         * config/aarch64/aarch64-simd.md (addpv4sf): New.
28801         (addvv4sf): Update.
28802         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
28804 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28806         * config/aarch64/aarch64.md
28807         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
28809 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28811         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
28812         (*ngcsi_uxtw): New pattern.
28814 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28815             Julian Brown  <julian@codesourcery.com>
28817         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
28818         (TB_DREG): Add T_V4HF.
28819         (v4hf_UP): New macro.
28820         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28821         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28822         Handle initialisation of V4HF. Adjust initialisation of reinterpret
28823         built-ins.
28824         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28825         (arm_vector_mode_supported_p): Handle V4HF.
28826         (arm_mangle_map): Handle V4HFmode.
28827         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
28828         * config/arm/arm_neon_builtins.def: Add entries for
28829         vcvtv4hfv4sf, vcvtv4sfv4hf.
28830         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
28831         (neon_vcvtv4hfv4sf): Likewise.
28832         * config/arm/neon-gen.ml: Handle half-precision floating point
28833         features.
28834         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
28835         * config/arm/arm_neon.h: Regenerate.
28836         * config/arm/neon.ml (type elts): Add F16.
28837         (type vectype): Add T_float16x4, T_floatHF.
28838         (type vecmode): Add V4HF.
28839         (type features): Add Requires_FP_bit feature.
28840         (elt_width): Handle F16.
28841         (elt_class): Likewise.
28842         (elt_of_class_width): Likewise.
28843         (mode_of_elt): Refactor.
28844         (type_for_elt): Handle F16, fix error messages.
28845         (vectype_size): Handle T_float16x4.
28846         (vcvt_sh): New function.
28847         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
28848         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
28849         (string_of_mode): Handle V4HF.
28850         * doc/arm-neon-intrinsics.texi: Regenerate.
28852 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28854         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
28855         format specifier in 'X' case.
28857 2013-04-25  Alan Modra  <amodra@gmail.com>
28859         PR target/57052
28860         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
28861         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
28862         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
28863         Repeat for many other rotate/shift and mask patterns using subregs.
28864         Name lshiftrt insns.
28865         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
28866         on WORDS_BIG_ENDIAN.
28868 2013-04-25  Alan Modra  <amodra@gmail.com>
28870         * config.gcc: Support little-endian powerpc-linux targets.
28871         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
28872         (LINK_OS_LINUX_SPEC): Define.
28873         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
28874         Preserve MASK_LITTLE_ENDIAN.
28875         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
28876         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
28877         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
28878         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
28879         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
28880         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
28881         Correct fp word order for little-endian.  Don't shift toc entries
28882         smaller than a word for little-endian.
28883         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
28884         (bswapdi2 splits): Correct low-part subreg for little-endian.
28885         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
28886         low/high where such is correct only for be.
28887         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
28888         little-endian for -mcall-aixdesc.
28890 2013-04-25  Alan Modra  <amodra@gmail.com>
28892         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28893         replace_equiv_address_nv.
28895 2013-04-25  Alan Modra  <amodra@gmail.com>
28897         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
28899 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28901         Revert:
28902         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28903         * rtl.h (struct rtx_def): ...
28905 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28907         PR rtl-optimizations/57046
28908         * lra-constraints (split_reg): Set up lra_risky_transformations_p
28909         for multi-reg splits.
28911 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
28913         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
28915 2013-04-24  Sterling Augustine  <saugustine@google.com>
28917         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
28918         (comp_dir_string, debug_str_dwo_section): New.
28919         (DEBUG_STR_DWO_SECTION): Rename to ...
28920         (DEBUG_DWO_STR_SECTION): ... this.
28921         (DEBUG_NORM_STR_SECTION): Delete.
28922         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
28923         (DEBUG_STR_DWO_SECTION_FLAGS): New.
28924         (find_AT_string): Move most logic to ...
28925         (find_AT_string_in_table): ... here.  New.
28926         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
28927         add_skeleton_AT_string.  Delete logic.
28928         (output_skeleton_debug_sections): Remove call to
28929         add_top_level_skeleton_die_attrs.
28930         (add_comp_dir_attribute): Move logic to comp_dir_string.
28931         (dwarf2out_init): Initialize debug_str_dwo_section.
28932         (output_indirect_string): Call find_string_form.
28933         (output_indirect_strings): Rewrite.
28934         (prune_unused_types): Empty skeleton_debug_str_hash.
28935         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
28936         (dwarf2out_finish):  Call output_indirect_strings.
28938 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28940         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
28942 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28944         * rtl.h (struct rtx_def): Add comment for field jump.
28945         (LRA_SUBREG_P): New macro.
28946         * recog.c (register_operand): Check LRA_SUBREG_P.
28947         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28948         stack frame.
28949         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28950         (lra_final_code_change): Skip subreg change for operators.
28951         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28952         if there are no operand changes.
28953         * lra-constraints.c (curr_insn_set): New.
28954         (match_reload): Set LRA_SUBREG_P.
28955         (emit_spill_move): Ditto.
28956         (check_and_process_move): Use curr_insn_set. Process only single
28957         set insns.  Don't initialize sec_mem_p and change_p.
28958         (simplify_operand_subreg): Use LRA_SUBREG_P.
28959         (reg_in_class_p): New function.
28960         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28961         of #ifdef.  Add code to remove cycling.
28962         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28963         non-null disp.  Reload inner instead of disp when base and index
28964         are null.  Try to put lo_sum into register.
28965         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28966         (check_and_process_move): Move code for move cost check to
28967         simple_move_p.  Remove equiv_substitution.
28968         (simple_move_p): New function.
28969         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28970         curr_insn_set.  Call check_and_process_move only for single set
28971         insns.  Use the new function.  Move call of check_and_process_move
28972         after operand equiv substitution and address process.
28974 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
28976         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
28977         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
28978         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
28980 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28982         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
28984 2013-04-24  Marek Polacek  <polacek@redhat.com>
28986         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
28987         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
28988         (select_loops_exit_conditions): Likewise.
28989         (number_of_iterations_for_all_loops): Likewise.
28990         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
28991         (scev_analysis): Likewise.
28993 2013-04-02  Catherine Moore  <clm@codesourcery.com>
28994             Chao-ying Fu  <fu@mips.com>
28996         * config/mips/micromips.md (jraddiusp): New pattern.
28997         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
28998         instruction if possible.
29000 2013-04-24  Alan Modra  <amodra@gmail.com>
29002         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29004 2013-04-24  Julian Brown  <julian@codesourcery.com>
29005             Chung-Lin Tang  <cltang@codesourcery.com>
29007         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29008         dependency behavior in enumeration type DIE generation. Add TODO note
29009         to comments about future DW_FORM_sdata/udata re-work of related code.
29011 2013-04-23  Lawrence Crowl  <crowl@google.com>
29013         * Makefile.in: Update as needed below.
29015         * hash-table.h (class hash_table):
29016         Correct many methods with parameter types compare_type to the correct
29017         value_type.  (Correct code was unlikely to notice the change.)
29018         (hash_table::elements_with_deleted) New.
29019         (class hashtable::iterator): New.
29020         (hashtable::begin()): New.
29021         (hashtable::end()): New.
29022         (FOR_EACH_HASH_TABLE_ELEMENT): New.
29024         * statistics.c (statistics_hashes):
29025         Change type to hash_table.  Update dependent calls and types.
29027         * tree-into-ssa.c (var_infos):
29028         Change type to hash_table.  Update dependent calls and types.
29030         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29031         Change type to hash_table.  Update dependent calls and types.
29033         * tree-ssa-loop-im.c (struct mem_ref.refs):
29034         Change type to hash_table.  Update dependent calls and types.
29036         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29037         Change type to hash_table.  Update dependent calls and types.
29039         * tree-ssa-sccvn.c (vn_tables_s::nary):
29040         Change type to hash_table.  Update dependent calls and types.
29041         (vn_tables_s::phis): Likewise.
29042         (vn_tables_s::references): Likewise.
29044         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29045         (vn_reference_eq): Update parameter and return types.
29047         * tree-ssa-structalias.c (pointer_equiv_class_table):
29048         Change type to hash_table.  Update dependent calls and types.
29049         (location_equiv_class_table): Likewise.
29051         * tree-vect-data-refs.c: Consequential changes for making
29052         peeling a hash_table.
29054         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29055         (destroy_loop_vec_info): Dependent hash_table update.
29057         * tree-vectorizer.h (peeling_htab):
29058         Change type to hash_table.  Update dependent calls and types.
29060 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
29062         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29063         to check the register content is equal or not.
29064         * lra-constraints.c (match_reload): Use lra_assign_reg_val
29065         to assign register content record.
29066         * lra-eliminations.c (update_reg_eliminate): Use
29067         lra_update_reg_val_offset to update register content offset.
29068         * lra-int.h (struct lra_reg): Add offset member.
29069         (lra_reg_val_equal_p): New static inline function.
29070         (lra_update_reg_val_offset): New static inline function.
29071         (lra_assign_reg_val): New static inline function.
29072         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29073         to assign register content record.
29074         (initialize_lra_reg_info_element): Initial offset to zero.
29076 2013-04-23  Catherine Moore  <clm@codesourcery.com>
29078         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29079         operands.  Record compression.
29081 2013-04-23  Xinliang David Li  <davidxl@google.com>
29083         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29085 2013-04-23  Richard Biener  <rguenther@suse.de>
29087         PR middle-end/57036
29088         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29089         parameter, only add abnormal goto edges from the copied body
29090         if the call could perform abnormal gotos.
29091         (copy_cfg_body): Adjust.
29093 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
29095         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29097 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
29099         * coretypes.h (gimple_stmt_iterator): Add struct to make
29100         compatible with C.
29102 2013-04-23  Richard Biener  <rguenther@suse.de>
29104         PR tree-optimization/57026
29105         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29106         from SSA names occuring in abnormal PHI nodes.
29108 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29110         * lto/lto.c (print_lto_report_1): Fix LTO report names.
29112 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29114         * lto/lto.c (print_lto_report_1): Declare early.
29115         (read_cgraph_and_symbols): Call print_lto_report_1 early.
29117 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29119         * common.opt (-flto-report-wpa): Add.
29120         * doc/invoke.texi (-flto-report-wpa): Add.
29121         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29122         (lto_main): dito.
29124 2013-04-22  Xinliang David Li  <davidxl@google.com>
29126         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29127         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29128         * Makefile.in: New dependency
29130             David Daney <ddaney.cavm@gmail.com>
29132         * configure.ac (gcc_cv_as_micromips_support):  Use the
29133         --fatal-warnings option.
29134         * configure: Regenerate.
29136 2013-04-22  Marek Polacek  <polacek@redhat.com>
29138         PR sanitizer/56990
29139         * tsan.c (instrument_expr): Don't instrument expression
29140         in case its size is zero.
29142 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
29144         PR target/57032
29145         Revert:
29146         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
29148         * config/alpha/alpha.c (TARGET_LRA_P): New define.
29150 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29152         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29153         (gimple_stmt_iterator): New typedef.
29154         * gimple.h (gimple_stmt_iterator): Rename to...
29155         (gimple_stmt_iterator_d): ... This.
29156         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29157         trees be valid for GIMPLE and GENERIC.
29158         (TARGET_GIMPLE_FOLD_BUILTIN): New.
29159         * gimple-fold.c (gimple_fold_call): Call target hook
29160         gimple_fold_builtin.
29161         * hooks.c (hook_bool_gsiptr_false): New.
29162         * hooks.h (hook_bool_gsiptr_false): New.
29163         * target.def (fold_stmt): New.
29164         * doc/tm.texi: Regenerate.
29166 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
29168         PR target/57018
29169         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29170         a set sp if no stack realignment.
29172 2013-04-22  Nick Clifton  <nickc@redhat.com>
29174         * config.gcc (tilegx-linux): Extend extra_objs rather than
29175         overwriting it.
29176         (tilepro-linux): Likewise.
29178 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29180         * config/aarch64/aarch64-builtins.c
29181         (CF): Remove.
29182         (CF0, CF1, CF2, CF3, CF4, CF10): New.
29183         (VAR<1-12>): Add MAP parameter.
29184         (BUILTIN_*): Likewise.
29185         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29186         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29187         (aarch64_ushl_n<mode>): Likewise.
29188         (aarch64_sshr_n<mode>): Likewise.
29189         (aarch64_ushr_n<mode>): Likewise.
29190         (aarch64_<maxmin><mode>): Likewise.
29191         (aarch64_sqrt<mode>): Likewise.
29192         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29193         (vshr<q>_n_*): Likewise.
29195 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29197         * config/aarch64/aarch64-builtins.c
29198         (aarch64_simd_builtin_type_mode): Handle SF types.
29199         (sf_UP): Define.
29200         (BUILTIN_GPF): Define.
29201         (aarch64_init_simd_builtins): Handle SF types.
29202         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29203         (frecps): Likewise.
29204         (frecpx): Likewise.
29205         * config/aarch64/aarch64-simd.md
29206         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29207         (aarch64_frecpe<mode>): New.
29208         (aarch64_frecps<mode>): Likewise.
29209         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29210         (v8type): Add frecp<esx>.
29211         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29212         (aarch64_frecps<mode>): Likewise.
29213         * config/aarch64/iterators.md (FRECP): New.
29214         (frecp_suffix): Likewise.
29215         * config/aarch64/arm_neon.h
29216         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29218 2013-04-22  Christian Bruel  <christian.bruel@st.com>
29220         PR target/56995
29221         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29222         (REG_CLASS_NAMES): Idem.
29223         (REG_CLASS_CONTENTS): Idem.
29224         (REGCLASS_HAS_FP_REG): Idem.
29225         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29226         (sh_conditional_register_usage): Idem.
29228 2013-04-21  Jeff Law  <law@redhat.com>
29230         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29231         (ssa_forward_propagate_and_combine): Use it.
29233 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29235         * lra.c: Update the flow chart diagram.
29237 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29239         PR rtl-optimization/56847
29240         * lra-constraints.c (process_alt_operands): Discourage alternative
29241         with non-matche doffsettable memory constraint fro memory with
29242         known offset.
29244 2013-04-19  Richard Biener  <rguenther@suse.de>
29246         PR tree-optimization/56982
29247         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29248         function.
29249         * gimplify.c (gimplify_call_expr): Notice special calls.
29250         (gimplify_modify_expr): Likewise.
29251         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29252         abnormal control flow receivers.
29253         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29254         in the same way as cfun->has_nonlocal_labels.
29255         (gimple_purge_dead_abnormal_call_edges): Likewise.
29256         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29257         receivers start a basic-block.
29259 2013-04-19  Richard Biener  <rguenther@suse.de>
29261         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29262         member ...
29263         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
29264         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29265         (SLP_TREE_LOAD_PERMUTATION): Add.
29266         (vect_transform_slp_perm_load): Adjust prototype.
29267         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29268         (vect_free_slp_instance): Likewise.
29269         (vect_create_new_slp_node): Likewise.
29270         (vect_supported_slp_permutation_p): Remove.
29271         (vect_slp_rearrange_stmts): Adjust.
29272         (vect_supported_load_permutation_p): Likewise.  Inline
29273         vect_supported_slp_permutation_p here.
29274         (vect_analyze_slp_instance): Compute load permutations per
29275         slp node instead of per instance.
29276         (vect_get_slp_defs): Adjust.
29277         (vect_transform_slp_perm_load): Likewise.
29278         (vect_schedule_slp_instance): Remove redundant code.
29279         (vect_schedule_slp): Remove hack for PR56270, add it ...
29280         * tree-vect-stmts.c (vectorizable_load): ... here, do not
29281         CSE loads for SLP.  Adjust.
29283 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29285         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29286         spelling in two comments.
29288 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29290         PR target/56797
29291         * config/arm/arm.c (load_multiple_sequence): Require SP
29292         as base register for loads if SP is in the register list.
29294 2013-04-19  Martin Jambor  <mjambor@suse.cz>
29296         PR tree-optimization/56718
29297         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29298         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29299         and made public.  Adjusted all callers.
29300         (ipa_intraprocedural_devirtualization): New function.
29301         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29302         (ipa_intraprocedural_devirtualization): Likewise.
29303         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29305 2013-04-19  Richard Biener  <rguenther@suse.de>
29307         PR tree-optimization/57000
29308         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29310 2013-04-19  Terry Guo  <terry.guo@arm.com>
29312         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29313         Replace with ...
29314         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
29315         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29316         (cortex_m4_fmacs): Use new reservations.
29317         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29319 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
29321         PR rtl-optimization/56999
29322         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29323         related code.
29324         (lra_coalesce): Remove split_origin_bitmap and related code.
29325         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
29326         ranges if necessary.
29328 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
29330         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29331         New array.
29332         (ix86_expand_call): Remove clobbered_registers array and use
29333         x86_64_ms_sysv_extra_clobbered_registers instead.
29334         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29335         Declare here.
29336         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29337         predicate.
29338         * config/i386/i386.md (*call_rex64_ms_sysv): Use
29339         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
29340         (*call_value_rex64_ms_sysv): Ditto.
29342 2013-04-18  Cary Coutant  <ccoutant@google.com>
29344         * dwarf2out.c (output_pubnames): Check die_perennial_p of
29345         parent instead of die_mark.
29347 2013-04-18  Diego Novillo  <dnovillo@google.com>
29349         * gimple.c (create_gimple_tmp): New.
29350         (get_expr_type): New.
29351         (build_assign): New.
29352         (build_type_cast): New.
29353         * gimple.h (enum ssa_mode): Define.
29354         (gimple_seq_set_location): New.
29355         * asan.c (build_check_stmt): Change some gimple_build_* calls
29356         to use build_assign and build_type_cast.
29358 2013-04-18  Richard Biener  <rguenther@suse.de>
29360         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29361         handle negative step.  Remove redundant checks.
29362         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29363         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29364         for negative step and grouped loads fail to vectorize.
29366 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29368         * emit-rtl.c (reset_insn_used_flags): New function.
29369         (reset_all_used_flags): Use it.
29370         (verify_insn_sharing): New function.
29371         (verify_rtl_sharing): Fix verification for SEQUENCEs.
29373 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
29375         PR tree-optimization/56984
29376         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29377         and (x >> M) >= N don't register any assertion if N << M is the
29378         minimum value.
29380 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29382         * lower-subreg.c (resolve_simple_move): If called self-recursive,
29383         do not delete_insn insns that have not yet been emitted, only
29384         unlink them with remove_insn.
29385         * df-scan.c (df_insn_delete): Revert r197492.
29387 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
29389         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29390         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29392 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29394         * config/arm/arm.md (movsicc_insn): Convert define_insn into
29395         define_insn_and_split.
29396         (and_scc,ior_scc,negscc): Likewise.
29397         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29399 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29401         * config/arm/arm.c (use_return_insn): Return 0 for targets that
29402         can benefit from using a sequence of LDRD instructions in epilogue
29403         instead of a single LDM instruction.
29405 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29407         PR 45688
29408         * doc/extend.texi: Fix typo.
29410 2013-04-17  Richard Biener  <rguenther@suse.de>
29412         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29413         (vect_build_slp_tree): ... here.
29414         (vect_build_slp_tree_1): Compute which stmts of the SLP group
29415         match.  Remove special-casing of mismatched complex loads.
29416         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29417         re-try the match with swapped commutative operands.
29418         (vect_supported_load_permutation_p): Remove special-casing of
29419         mismatched complex loads.
29420         (vect_analyze_slp_instance): Adjust.
29422 2013-04-17  Richard Biener  <rguenther@suse.de>
29424         PR rtl-optimization/56921
29425         * cfgloop.h (struct loop): Add simple_loop_desc member.
29426         (struct niter_desc): Mark with GTY(()).
29427         (simple_loop_desc): Do not use aux field but simple_loop_desc.
29428         * loop-iv.c (get_simple_loop_desc): Likewise.
29429         (free_simple_loop_desc): Likewise.
29431         Revert
29432         2013-04-16  Richard Biener  <rguenther@suse.de>
29434         PR rtl-optimization/56921
29435         * loop-init.c (pass_rtl_move_loop_invariants): Add
29436         TODO_do_not_ggc_collect to todo_flags_finish.
29437         (pass_rtl_unswitch): Same.
29438         (pass_rtl_unroll_and_peel_loops): Same.
29439         (pass_rtl_doloop): Same.
29441 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
29443         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29444         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29445         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29446         references.
29447         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29448         * tree-streamer.c (record_common_node): Adjust reference in comment.
29450 2013-04-17  Terry Guo  <terry.guo@arm.com>
29452         * config/arm/cortex-m4.md: Add a new bypass.
29454 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29456         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29457         New pattern.
29458         (*subs_<optab><mode>_multp2): New pattern.
29459         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29460         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29462 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29464         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29465         (*subs_mul_imm_<mode>): New pattern.
29467 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
29469         PR target/56948
29470         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29471         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
29472         (vsx_movti_32bit): Change j->wa to O->wa.
29474 2013-04-16  Richard Biener  <rguenther@suse.de>
29476         PR rtl-optimization/56921
29477         * loop-init.c (pass_rtl_move_loop_invariants): Add
29478         TODO_do_not_ggc_collect to todo_flags_finish.
29479         (pass_rtl_unswitch): Same.
29480         (pass_rtl_unroll_and_peel_loops): Same.
29481         (pass_rtl_doloop): Same.
29483 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
29485         * config/arm/arm.c (emit_multi_reg_push): New declaration
29486         for an existing function.
29487         (arm_emit_strd_push): New function.
29488         (arm_expand_prologue): Used here.
29489         (arm_emit_ldrd_pop): New function.
29490         (arm_expand_epilogue): Used here.
29491         (arm_get_frame_offsets): Update condition.
29492         (arm_emit_multi_reg_pop): Add a special case for load of a single
29493         register with writeback.
29495 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
29497         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29498         description.
29500 2013-04-16  Richard Biener  <rguenther@suse.de>
29502         PR tree-optimization/56756
29503         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29504         (first_mem_ref_loc): New.
29505         (execute_sm): Place the load temporarily before a previous
29506         access instead of in the latch edge to ensure its SSA dependencies
29507         are defined at points dominating the load.
29509 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
29511         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29512         correct fix by moving header and footer insn to the footer of
29513         the merged basic block.  Clear BB_END of the merged-away block.
29515         PR middle-end/43631
29516         * emit-rtl.c (make_note_raw): New function.
29517         (link_insn_into_chain): New static inline function.
29518         (add_insn): Use it.
29519         (add_insn_before, add_insn_after): Factor insn chain linking code...
29520         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29521         using link_insn_into_chain.
29522         (note_outside_basic_block_p): New helper function for emit_note_after
29523         and emit_note_before.
29524         (emit_note_after): Use nobb variant of add_insn_after if the note
29525         should not be contained in a basic block.
29526         (emit_note_before): Use nobb variant of add_insn_before if the note
29527         should not be contained in a basic block.
29528         (emit_note_copy): Use make_note_raw.
29529         (emit_note): Likewise.
29530         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29531         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29532         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29533         the moved barrier the tail of the basic block it follows.
29534         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29536 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
29538         PR tree-optimization/56962
29539         * gimple-ssa-strength-reduction.c (record_increment): Only set
29540         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29541         either rhs1 or rhs2 is equal to c->base_expr.
29543 2013-04-15  Richard Biener  <rguenther@suse.de>
29545         PR tree-optimization/56933
29546         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29547         member.
29548         (GROUP_READ_WRITE_DEPENDENCE): Remove.
29549         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29550         * tree-vect-data-refs.c (vect_analyze_group_access): Move
29551         dependence check ...
29552         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29553         ... here.
29554         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29555         GROUP_READ_WRITE_DEPENDENCE.
29557 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29559         * emit-rtl.c (reset_all_used_flags): New function.
29560         (verify_rtl_sharing): Call reset_all_used_flags before and after
29561         performing the checks.
29563 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29565         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29566         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29567         * config/arm/constraints.md (De): New constraint.
29568         * config/arm/neon.md (anddi3_neon): Delete.
29569         (neon_vand<mode>): Expand to standard anddi3 pattern.
29570         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29571         Move earlier in the file.
29572         (neon_inv_logic_op2): Likewise.
29573         (arm_anddi_operand_neon): New predicate.
29575 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29577         * configure.ac (gcc_cv_ld_as_needed): Set
29578         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29579         Use -z ignore, -z record on *-*-solaris2*.
29580         (HAVE_LD_AS_NEEDED): Update comment.
29581         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29582         * configure: Regenerate.
29583         * config.in: Regenerate.
29584         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29585         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29586         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29587         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29588         equivalents.  Fix markup.
29589         * doc/tm.texi: Regenerate.
29591 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
29593         * config/i386/i386.opt: New option mstack-protector-guard=.
29594         * config/i386/i386-opts.h: Add enum stack_protector_guard.
29595         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29596         TARGET_SSP_TLS_GUARD.
29597         * config/i386/i386.c (ix86_option_override_internal): Set
29598         ix86_stack_protector_guard.
29599         * config/i386/i386.md (stack_protect_set): Enable for
29600         TARGET_SSP_TLS_GUARD only.
29601         (stack_protect_set_<mode>): Ditto.
29602         (stack_protect_test): Ditto.
29603         (stack_protect_test_<mode>): Ditto.
29604         * doc/invoke.texi (i386 Option): Document.
29606 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29608         PR target/56890
29609         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29610         (S_MODES): Set H_MODE bit.
29611         (SF_MODES): Set only S_MODE and SF_MODE bits.
29612         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29613         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29614         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29615         <MODE_FLOAT>: Likewise.
29617 2013-04-15  Joey Ye  <joey.ye@arm.com>
29619         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29621 2013-04-15  Joey Ye  <joey.ye@arm.com>
29623         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29624         for real far jump.
29625         (thumb_far_jump_used_p): Count instruction size and set
29626         far_jump_used.
29628 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29630         * reorg.c (fill_simple_delay_slots): Reindent block of code.
29631         * resource.c (mark_target_live_regs): Reformat conditional block.
29633 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29635         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29636         notes, they are emitted only just before final.
29637         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29639 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29641         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29642         * cfgrtl.c (delete_insn): Call it here instead.
29643         * lra-spills.c (lra_final_code_change): Use delete_insn.
29644         * haifa-sched.c (sched_remove_insn): Likewise.
29645         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29646         returning to the nop pool.
29647         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29648         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
29650 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29652         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29653         * doc/tm.texi: Regenerated.
29655 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
29657         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
29658         QImode checks.
29660 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29662         * df-core.c (df_find_def): Compare register numbers.
29663         (df_find_use): Likewise.
29665 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
29667         PR target/56903
29668         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29669         lra_in_progress for return.
29671 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29673         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29674         define_insn into define_insn_and_split and emit movsicc patterns.
29676 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29678         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29680 2013-04-12  Richard Biener  <rguenther@suse.de>
29682         * tree-pass.h (TODO_do_not_ggc_collect): New.
29683         * passes.c (execute_one_ipa_transform_pass): Honor
29684         TODO_do_not_ggc_collect.
29685         (execute_one_pass): Likewise.
29687         Revert
29688         2013-04-10  Richard Biener  <rguenther@suse.de>
29690         * passes.c (init_optimization_passes): Remove reload pass.
29691         * ira.c (do_reload): Merge into ...
29692         (ira): ... this.
29693         (rest_of_handle_reload): Remove.
29694         (pass_reload): Likewise.
29695         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29696         of reload for vzeroupper pass placement.
29698 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
29700         PR tree-optimization/56918
29701         PR tree-optimization/56920
29702         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29703         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
29704         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
29705         use wide_mul_with_sign method.
29707 2013-04-12  Richard Biener  <rguenther@suse.de>
29709         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29710         not be considered a gimple constant.
29712 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
29714         * fold-const.c (const_binop): Handle vector shifts by a scalar.
29715         (fold_binary_loc): Call const_binop also for mixed vector-scalar
29716         operations.
29718 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29719             Jakub Jelinek  <jakub@redhat.com>
29721         * opts.c: Include diagnostic-color.h.
29722         (common_handle_option): Handle OPT_fdiagnostics_color_.
29723         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29724         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29725         (diagnostic-color.o): New.
29726         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29727         (diagnostic_color_rule): New enum.
29728         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29729         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29730         the location string.
29731         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29732         either NULL, or color kind.
29733         * diagnostic-color.c: New file.
29734         * diagnostic-color.h: New file.
29735         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29736         arguments.
29737         * doc/invoke.texi (-fdiagnostics-color): Document.
29738         * pretty-print.h (pp_show_color): Define.
29739         (struct pretty_print_info): Add show_color field.
29740         * diagnostic.c: Include diagnostic-color.h.
29741         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29742         macros.  Colorize error:, warning: etc. strings and also the location
29743         string.
29744         (diagnostic_show_locus): Colorize the caret line.
29745         * pretty-print.c: Include diagnostic-color.h.
29746         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
29747         inside of %< %> quotes or quoted through q format modifier.
29749 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29751         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
29753 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29755         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
29756         code in CC_NZ mode.
29757         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
29758         pattern.
29760 2013-04-11  Marek Polacek  <polacek@redhat.com>
29762         PR tree-optimization/48184
29763         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
29765 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
29767         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
29768         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
29769         (skip_simple_arithmetic): Tidy up.
29770         * tree.h (skip_simple_constant_arithmetic): Declare.
29772 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29774         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
29776 2013-04-11  Richard Biener  <rguenther@suse.de>
29778         * tree-vect-loop.c (get_initial_def_for_induction): Properly
29779         generate vector constants.
29781 2013-04-11  Richard Biener  <rguenther@suse.de>
29783         PR tree-optimization/56878
29784         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
29785         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
29786         New function.
29787         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29788         Prefer to align the DR with the most invariant base address.
29790 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29792         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
29793         comment.
29795 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
29797         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
29798         floating-point vector comparisons against 0.
29800 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
29802         PR tree-optimization/56899
29803         * fold-const.c (extract_muldiv_1): Apply distributive law
29804         only if TYPE_OVERFLOW_WRAPS (ctype).
29806 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
29808         PR target/56124
29809         * ira-costs.c (scan_one_insn): Check whether the source rtx of
29810         loading has side effect.
29812 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
29814         * config/sparc/sparc.c: Include tree-pass.h.
29815         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
29816         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
29817         head of file.  Change return type.  Split off gate function.
29818         (sparc_gate_work_around_errata): New function.
29819         (pass_work_around_errata): New pass definition.
29820         (insert_pass_work_around_errata) New pass insert definition to
29821         insert pass_work_around_errata just after delayed-branch scheduling.
29822         (sparc_option_override): Insert the pass.
29823         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
29825 2013-04-10  David S. Miller  <davem@davemloft.net>
29827         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
29828         or -mcpu=hypersparc.
29830         * target.def (cstore_mode): New hook.
29831         * target.h: Include insn-codes.h
29832         * targhooks.c: Likewise.
29833         (default_cstore_mode): New function.
29834         * targhooks.h: Declare it.
29835         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
29836         * doc/tm.texi: Rebuild.
29837         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
29838         target hook, rather than inspecting the insn_data.
29839         * config/sparc/sparc.c (sparc_cstore_mode): New function.
29840         (TARGET_CSTORE_MODE): Redefine.
29841         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
29842         result patterns.
29843         * config/sparc/predicates.md (cstore_result_operand): New special
29844         predicate.
29845         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
29846         Use it for operand 0.
29847         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
29848         (*snesi_special): Likewise.
29849         (*snesi_zero): Likewise.
29850         (*seqsi_zero): Likewise.
29851         (*sltu_insn): Likewise.
29852         (*sgeu_insn): Likewise.
29853         (*seqdi_special): Make operand 0 and comparison operation be of
29854         DImode.
29855         (*snedi_special): Likewise.
29856         (*snedi_special_vis3): Likewise.
29857         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
29858         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
29859         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
29860         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
29861         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
29862         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
29863         (*sltu_extend_sp64): Likewise.
29864         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
29865         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
29866         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
29867         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
29868         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
29870 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
29872         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
29873         (aarch64_start_file): Use the new function.
29875 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29876             Jason Merrill  <jason@redhat.com>
29878         * common.opt: Add -gdwarf.
29879         * opts.c (common_handle_option): Handle it.
29880         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
29882 2013-04-10  Richard Biener  <rguenther@suse.de>
29884         * passes.c (execute_todo): Do not call ggc_collect conditional here.
29885         (execute_one_ipa_transform_pass): But unconditionally here.
29886         (execute_one_pass): And here.
29887         (init_optimization_passes): Remove reload pass.
29888         * tree-pass.h (TODO_ggc_collect): Remove.
29889         (pass_reload): Likewise.
29890         * ira.c (do_reload): Merge into ...
29891         (ira): ... this.
29892         (rest_of_handle_reload): Remove.
29893         (pass_reload): Likewise.
29894         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29895         of reload for vzeroupper pass placement.
29896         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
29897         and todo_flags_finish of all passes.
29899 2013-04-10  Richard Biener  <rguenther@suse.de>
29901         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
29902         first_const_oprnd field, rename first_def_type to first_op_type.
29903         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
29904         (vect_get_and_check_slp_defs): Always use the type of the
29905         operand.  Allow mixed vect_external_def, vect_constant_def types.
29906         (vect_get_constant_vectors): Handle mixed vect_external_def,
29907         vect_constant_def types.
29909 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
29911         PR tree-optimization/55524
29912         * tree-ssa-math-opts.c
29913         (convert_mult_to_fma): Don't use an fms construct
29914         when we don't have an fms operation, but fnma, and it looks
29915         likely that we'll be able to use the latter.
29917 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29919         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
29920         function.
29921         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
29922         inline fail caused by overwritable functions.
29924 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
29926         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
29927         unnecessary bits in the constant power of two case.
29929 2013-04-10  Richard Biener  <rguenther@suse.de>
29931         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
29932         broken code swapping operands.
29933         (vect_build_slp_tree): Do not compute load permutations here.
29934         (vect_analyze_slp_instance): Compute load permutations here,
29935         after building the SLP tree.
29937 2013-04-09  Christian Bruel  <christian.bruel@st.com>
29939         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
29940         of next/prev_real_insn.
29942 2013-04-09  Jan Hubicka  <jh@suse.cz>
29944         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
29945         Drop aliased parameter.
29946         (function_and_variable_visibility): Do not handle alias pairs.
29947         * cgraph.c (varpool_externally_visible_p): Update prototype.
29948         * varpool.c (varpool_add_new_variable): Update.
29950 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29952         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
29954 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
29956         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
29958         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
29960 2013-04-09  Marek Polacek  <polacek@redhat.com>
29962         PR tree-optimization/48762
29963         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
29965 2013-04-09  Richard Biener  <rguenther@suse.de>
29967         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
29968         dealing with cost.
29969         (vect_build_slp_tree): Likewise.
29970         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
29971         calculating the cost of a SLP instance.
29972         (vect_analyze_slp_instance): Use it from here, after building
29973         the SLP tree.
29975 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
29977         PR middle-end/56883
29978         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
29979         expand_omp_for_static_chunk): Use simple_p = true in
29980         force_gimple_operand_gsi calls when assigning to addressable decls.
29982 2013-04-09  Jeff Law  <law@redhat.com>
29984         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
29985         when the boolean was created by converting a wider object which
29986         had a boolean range.
29988 2013-04-09  Richard Biener  <rguenther@suse.de>
29990         * tree-vectorizer.h (slp_void_p): Remove.
29991         (slp_tree): Typedef before _slp_tree declaration.
29992         (struct _slp_tree): Use a vector of slp_tree as children.
29993         (vect_get_place_in_interleaving_chain): Remove.
29994         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
29995         Move ...
29996         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
29997         and make static.
29998         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
29999         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30000         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30001         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30002         Use slp_node instead of slp_void_p and adjust.
30004 2013-04-09  Richard Biener  <rguenther@suse.de>
30006         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30007         work that is not necessary.
30009 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
30011         PR tree-optimization/56854
30012         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30013         forward into clobber stmts if it would change MEM_REF lhs into
30014         non-MEM_REF.
30016 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
30018         * tree.c (type_hash_lookup, type_hash_add): Make static.
30019         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30021 2013-04-09  Richard Biener  <rguenther@suse.de>
30023         * tree.h (unsave_expr_now): Remove.
30024         * tree-inline.c (mark_local_for_remap_r): Remove.
30025         (unsave_expr_1): Likewise.
30026         (unsave_r): Likewise.
30027         (unsave_expr_now): Likewise.
30028         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30029         (propagate_tree_value): Likewise.
30031 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
30033         * doc/rtl.texi (sequence): Rewrite documentation to match the
30034         current use of SEQUENCE rtl objects.
30035         * rtl.def (SEQUENCE): Likewise.
30037         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30038         Update documentation.
30039         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30040         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30042         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30044 2013-04-08  Teresa Johnson  <tejohnson@google.com>
30046         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30047         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30048         methods.
30049         (estimate_edge_size_and_time): Add comment to suggest using rounding
30050         methods.
30051         (estimate_node_size_and_time): Ditto.
30052         (remap_edge_change_prob): Use helper rounding divide methods.
30053         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30054         (gimple_mod_pow2_value_transform): Ditto.
30055         (gimple_mod_subtract_transform): Ditto.
30056         (gimple_ic_transform): Ditto.
30057         (gimple_stringops_transform): Ditto.
30058         * stmt.c (conditional_probability): Ditto.
30059         (emit_case_dispatch_table): Ditto.
30060         * lto-cgraph.c (merge_profile_summaries): Ditto.
30061         * tree-optimize.c (execute_fixup_cfg): Ditto.
30062         * cfgcleanup.c (try_forward_edges): Ditto.
30063         * cfgloopmanip.c (scale_loop_profile): Ditto.
30064         (loopify): Ditto.
30065         (duplicate_loop_to_header_edge): Ditto.
30066         (lv_adjust_loop_entry_edge): Ditto.
30067         * tree-vect-loop.c (vect_transform_loop): Ditto.
30068         * profile.c (compute_branch_probabilities): Ditto.
30069         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30070         * lto-streamer-in.c (input_cfg): Ditto.
30071         * gimple-streamer-in.c (input_bb): Ditto.
30072         * ipa-cp.c (update_profiling_info): Ditto.
30073         (update_specialized_profile): Ditto.
30074         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30075         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30076         rounding methods.
30077         * sched-rgn.c (compute_dom_prob_ps): Ditto.
30078         (compute_trg_info): Ditto.
30079         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30080         (purge_dead_edges): Ditto.
30081         * loop-unswitch.c (unswitch_loop): Ditto.
30082         * cgraphclones.c (cgraph_clone_edge): Ditto.
30083         (cgraph_clone_node): Ditto.
30084         * tree-inline.c (copy_bb): Ditto.
30085         (copy_edges_for_bb): Ditto.
30086         (initialize_cfun): Ditto.
30087         (copy_cfg_body): Ditto.
30088         (expand_call_inline): Ditto.
30090 2013-04-08  Kai Tietz  <ktietz@redhat.com>
30092         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30093         TARGET_CYGWIN64 by TARGET_64BIT.
30095 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30097         * config/epiphany/epiphany.md (GPR_1): New constant.
30098         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30099         * config/epiphany/epiphany.c (gen_compare_reg):
30100         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30101         is already in place.
30102         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30103         Don't require being called during rtl expansion; If y operlaps r0,
30104         return 0.
30105         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30106         (epiphany_expand_epilogue): Likewise.
30108         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30109         Don't use CC_FPmode for ORDERED / UNORDERED.
30110         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30112         * config/epiphany/constraints.md (CnL): New constraint.
30113         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30114         * config/epiphany/predicates.md (add_operand): Allow 1024.
30116         * config/epiphany/epiphany.md (logical_op): New code iterator.
30117         (op_mnc): New code attribute.
30118         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30119         (mov_f+1, mov_f+2): New peephole2 patterns.
30121         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30122         (cstoresi4): Also allow re-use of zero result when doing a NE
30123         comparison to a non-zero operand.
30124         Use (clobber (scratch)) for first insn if the gpr output is not needed.
30126         * config/epiphany/epiphany.md (<insn_opname>v2si3):
30127         Use gen_addsi3_i / gen_subsi3_i.
30129 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30131         PR c++/34949
30132         PR c++/50243
30133         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30134         contain anything but clobbers, at most one __builtin_stack_restore,
30135         optionally debug stmts and final resx, and if it has at least one
30136         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
30137         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30138         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30139         which isn't defaut definition, remove them.
30140         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30141         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30142         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30143         with MEM_REF LHS with SSA_NAME address.
30145 2013-04-08  Jeff Law  <law@redhat.com>
30147         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30149 2013-04-08  Richard Biener  <rguenther@suse.de>
30151         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30152         extra newline.
30153         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30154         determined vector type.
30155         (vect_analyze_data_refs): Likewise.
30156         (vect_get_new_vect_var): Adjust.
30157         (vect_create_destination_var): Preserve SSA name versions.
30158         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30159         not dump anything here.
30161 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30163         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30164         Add member lr_slot_known.
30165         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30166         if necessary.
30167         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30168         Remove code that sets lr_slot_offset according to what a previous
30169         version of epiphany_emit_save_restore used to do.
30170         (epiphany_emit_save_restore): When doing an lr save or restore,
30171         set/verify lr_slot_known and lr_slot_offset.
30173 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
30175         PR target/54338
30176         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30177         in ALL_REGS.
30179 2013-04-08  Richard Biener  <rguenther@suse.de>
30181         * alias.c (find_base_term): Fix thinko in previous change.
30183 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30185         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30186         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30187         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
30188         if possible to compute val.
30189         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30190         For QImode integers don't require anything about precision.  Use
30191         const_with_all_bytes_same to find out if the constant doesn't have
30192         repeated bytes in it.
30194 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30196         * config/s390/s390.c (s390_expand_insv): Only accept insertions
30197         within mode size.
30199 2013-04-08  Marek Polacek  <polacek@redhat.com>
30201         PR rtl-optimization/48182
30202         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30203         value to 1.
30205 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30207         PR target/55487
30208         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30209         nuses, make sure we have a label.
30211 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30213         PR target/56843
30214         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30215         (rs6000_emit_swdiv_low_precision): Remove.
30216         (rs6000_emit_swdiv): Rewrite to handle between one and four
30217         iterations of Newton-Raphson generally; modify required number of
30218         iterations for some cases.
30219         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30221 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
30223         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30224         set-but-unused variable.
30226         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30227         basic blocks of released function bodies garbage-collectable.
30229         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30230         (struct rtl_opt_pass): Add TODO_df_finish.
30232         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30234 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30236         * config/arm/constraints.md (q): New constraint.
30237         * config/arm/ldrdstrd.md: New file.
30238         * config/arm/arm.md (ldrdstrd.md) New include.
30239         (arm_movdi): Use "q" instead of "r" constraint
30240         for double-word memory access.
30241         (movdf_soft_insn): Likewise.
30242         * config/arm/vfp.md (movdi_vfp): Likewise.
30243         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30244         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30245         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30246         (mem_ok_for_ldrd_strd): Likewise.
30247         (output_move_double): Update assertion.
30249 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30251         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30253 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30255         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30256         define_insn_and_split.
30257         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30259 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30261         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30262         define_insn_and_split.
30263         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30264         (shiftsi3_compare): New pattern.
30265         (rrx): New pattern.
30266         * config/arm/unspecs.md (UNSPEC_RRX): New.
30268 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30270         * config/arm/arm.md (negdi_extendsidi): New pattern.
30271         (negdi_zero_extendsidi): Likewise.
30273 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30275         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30276         define_insn_and_split.
30277         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30278         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30280 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30282         * config/arm/arm.md (arm_subdi3): Convert define_insn into
30283         define_insn_and_split.
30284         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30285         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30287 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30289         * config/arm/arm.md (subsi3_carryin): New pattern.
30290         (subsi3_carryin_const): Likewise.
30291         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30292         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30294 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30296         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30298 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30300         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30301         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30303 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30305         * config/arm/arm.c (arm_expand_builtin): Change fcode
30306         type to unsigned int.
30308 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30310         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30312 2013-04-04  Ian Lance Taylor  <iant@google.com>
30314         * doc/standards.texi (Standards): The Go frontend supports the Go 1
30315         language standard.
30317 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
30319         PR middle-end/56729
30320         * df-scan.c (df_insn_delete): Disable failing assert.
30322 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30324         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30325         New function prototype.
30326         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30327         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30328         (arm_builtin_vectorized_function): New function.
30330 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30332         * config/arm/arm_neon_builtins.def: New file.
30333         * config/arm/arm.c (neon_builtin_data): Move contents to
30334         arm_neon_builtins.def.
30335         (enum arm_builtins): Include neon builtin definitions.
30336         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30337         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30339 2013-04-04  Marek Polacek  <polacek@redhat.com>
30341         PR tree-optimization/48186
30342         * predict.c (maybe_hot_frequency_p): Return false if
30343         HOT_BB_FREQUENCY_FRACTION is 0.
30344         (cgraph_maybe_hot_edge_p): Likewise.
30346 2013-04-04  Richard Biener  <rguenther@suse.de>
30348         PR tree-optimization/56826
30349         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30350         more accurately.
30352 2013-04-04  Richard Biener  <rguenther@suse.de>
30354         PR tree-optimization/56213
30355         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30356         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30358 2013-04-04  Richard Biener  <rguenther@suse.de>
30360         PR tree-optimization/56837
30361         * tree-loop-distribution.c (classify_partition): For non-zero
30362         values require that the value has the same precision as its
30363         mode to be useful as memset value.
30365 2013-04-03  Nick Clifton  <nickc@redhat.com>
30367         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30368         (fmssf4): Use fmsf.s on E3V5 architectures.
30369         (fnmasf4): Use fnmaf.s on E3V5 architectures.
30370         (fnmssf4): Use fnmsf.s on E3V5 architectures.
30372 2013-04-03  Jeff Law  <law@redhat.com>
30374         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30375         (lra-eliminations.o): Likewise.
30377 2013-04-03  Teresa Johnson  <tejohnson@google.com>
30379         * gcov-io.c (compute_working_sets): Moved most of body of old
30380         compute_working_sets here from profile.c.
30381         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30382         (gcov_working_set_t): Moved typedef here from basic-block.h
30383         (compute_working_set): Declare.
30384         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30385         (get_working_sets): Renamed from compute_working_set,
30386         replace most of body with call to new compute_working_sets.
30387         (get_exec_counts): Replace call to compute_working_sets
30388         to get_working_sets.
30389         * profile.h (get_working_sets): Renamed from compute_working_set.
30390         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30391         to get_working_sets.
30392         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30393         * gcov-dump.c (dump_working_sets): New function.
30395 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
30397         * hwint.c (sext_hwi, zext_hwi): New functions.
30398         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30399         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30400         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30401         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30402         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30403         (sext_hwi, zext_hwi): New functions.
30405 2013-04-03  Jeff Law  <law@redhat.com>
30407         PR tree-optimization/56799
30408         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30409         back test for widening conversion erroneously dropped in prior change.
30411 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30413         PR target/56809
30414         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30415         instead of next_real_insn.
30417 2013-04-03  Marek Polacek  <polacek@redhat.com>
30419         PR sanitizer/55702
30420         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30422 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30424         PR target/56809
30425         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30426         next_real_insn.
30427         (thumb1_output_casesi): Likewise.
30428         (thumb2_output_casesi): Likewise.
30430 2013-04-03  Richard Biener  <rguenther@suse.de>
30432         PR tree-optimization/56817
30433         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30434         Split out ...
30435         (tree_unroll_loops_completely_1): ... new function to manually
30436         walk the loop tree, properly defering outer loops of unrolled
30437         loops to later iterations.
30439 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30441         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30442         (vectorizable_load): Likewise.
30443         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30444         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30446 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30448         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30449         BIT_FIELD_REF.
30451 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30453         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30455 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
30457         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30459 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30461         PR tree-optimization/56790
30462         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30463         folding.
30465 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30467         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30468         Handle VEC_MERGE.
30469         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30470         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30471         equal arguments.
30473 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
30475         PR c/19449
30476         * tree.h (force_folding_builtin_constant_p): New decl.
30477         * builtins.c (force_folding_builtin_constant_p): New variable.
30478         (fold_builtin_constant_p): Fold immediately also if
30479         force_folding_builtin_constant_p.
30481 2013-04-03  Richard Biener  <rguenther@suse.de>
30483         PR tree-optimization/56812
30484         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30485         DRs of the same interleaving chain are independent.
30487 2013-04-02  Jason Merrill  <jason@redhat.com>
30489         * gdbinit.in (pbb): Use debug fn.
30491 2013-04-02  Lawrence Crowl  <crowl@google.com>
30493         * sese.h (struct ivtype_map_elt_s): Remove unused.
30494         (extern debug_ivtype_map): Remove unused.
30495         (extern eq_ivtype_map_elts): Remove unused.
30496         * sese.c (debug_ivtype_map): Removed unused.
30497         (debug_ivtype_map_1): Removed unused.
30498         (debug_ivtype_elt): Remove unused.
30499         (eq_ivtype_map_elts): Remove unused.
30501 2013-04-02  Kai Tietz  <ktietz@redhat.com>
30503         PR target/52790
30504         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30505         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30506         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30507         function.
30508         (legitimize_pe_coff_symbol): Likewise.
30509         (is_imported_p): New helper-function.
30510         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30511         for Windows x64 targets.
30512         (ix86_expand_prologue): Optimize for pe-coff targets.
30513         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30514         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30515         medium/large code-model.
30516         (legitimize_pic_address): Likewise.
30517         (legitimize_tls_address): Likewise.
30518         (ix86_expand_call): Likewise.
30519         (x86_output_mi_thunk): Likewise.
30520         (get_dllimport_decl): Add new beimport argument.
30521         (construct_plt_address): Don't assert for x64 pe-coff targets.
30522         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30523         targets.
30524         (SYMBOL_FLAG_STUBVAR): New macro.
30525         (SYMBOL_REF_STUBVAR_P): Likewise.
30526         * config/i386/winnt.c (stub_list): New structure.
30527         (stub_head): New local variable.
30528         (i386_pe_record_stub): New function.
30529         (i386_pe_file_end): Emit refptr-stubs.
30531 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
30533         PR rtl-optimization/56745
30534         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30535         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30537         PR c++/34949
30538         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30539         and both of them are MEM_REFs, just compare first argument for
30540         equality and attempt to deal even with differing offsets.
30542         PR c++/34949
30543         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30544         of gimple_clobber_p to be MEM_REF.
30545         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30546         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
30547         after gimplification.
30548         * asan.c (get_mem_ref_of_assignment): Don't instrument
30549         gimple_clobber_p stmts.
30550         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30551         gimple_clobber_p stmt if they have MEM_REF lhs and
30552         are dead because of another gimple_clobber_p stmt.
30553         * tree-ssa-live.c (clear_unused_block_pointer): Treat
30554         gimple_clobber_p stmts like debug stmts.
30555         (remove_unused_locals): Remove clobbers with MEM_REF lhs
30556         that refer to unused VAR_DECLs or uninitialized values.
30557         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30558         gimple_clobber_p stmts if they refer to removed parameters.
30559         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30560         formatting.
30562 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
30564         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30565         using SWI48 mode attribute.
30567 2013-04-02  Wei Mi  <wmi@google.com>
30569         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30570         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30571         *<rotate_insn><mode>3_mask in i386.md.
30573 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30575         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30577 2013-04-02  Richard Biener  <rguenther@suse.de>
30579         PR tree-optimization/56778
30580         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30581         Runtime alias tests are not supported for gather loads.
30582         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30583         stmts referenced from SSA operands before updating SSA form.
30585 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
30586             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30588         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30589         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30590         * config/arm/cortex-a53.md: New file.
30591         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30592         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30593         * config/arm/arm.c (arm_issue_rate): Likewise.
30594         * config/arm/arm-tune.md: Regenerate
30595         * config/arm/arm-tables.opt: Regenerate.
30596         * config/arm/arm-cores.def: Add cortex-a53.
30598 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30600         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30601         non-static link.
30603 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30605         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30606         scalar load/store operations using B/H registers.
30607         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30609 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30611         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30612         scalar move.
30613         * config/aarch64/aarch64.c
30614         (aarch64_simd_scalar_immediate_valid_for_move): New.
30615         * config/aarch64/aarch64-protos.h
30616         (aarch64_simd_scalar_immediate_valid_for_move): New.
30617         * config/aarch64/constraints.md (Dh, Dq): New.
30618         * config/aarch64/iterators.md (hq): New.
30620 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
30622         * reorg.c (get_branch_condition): Deal with conditional returns.
30623         (fill_simple_delay_slots): Remove dead code dealing with jumps.
30625 2013-04-01  Wei Mi  <wmi@google.com>
30627         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30628         Truncate operand 2 using %b asm operand modifier.
30629         (*<shift_insn><mode>3_mask): Ditto.
30630         (*<rotate_insn><mode>3_mask): Ditto.
30632 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
30634         PR middle-end/56798
30635         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30637 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
30639         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30640         of next_real_insn.
30641         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30643 2013-03-30  Lawrence Crowl  <crowl@google.com>
30645         * dse.c (clear_alias_sets): Remove never set.
30646         (disqualified_clear_alias_sets): Remove never set.
30647         (clear_alias_mode_pool): Remove never set.
30648         (dse_step0): Remove condition that is never true.
30649         (canon_address): Remove condition that is never true.
30650         (dse_step7): Remove condition that is never true.
30651         (rest_of_handle_dse): Remove condition that is never true.
30652         (rest_of_handle_dse::did_global): Remove never read from above.
30653         (dse_step2_spill): Remove never called from above.
30654         (dse_step5_spill): Remove never called from above.
30656 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
30658         * doc/md.texi (Standard Names) <casesi>: Update documentation for
30659         JUMP_TABLE_DATA changes.
30660         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
30661         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
30662         (Insns) <jump_table_data>: New entry.
30663         * doc/tm.texi: Regenerate.
30665         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
30667         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
30668         for table jump at the end of a basic block using tablejump_p.
30669         * targhooks.c (default_invalid_within_doloop): Likewise.
30670         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30671         target hook implementation that is identical to the default hook.
30672         (rs6000_invalid_within_doloop): Remove.
30674         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30675         unused variable from tablejump_p call.
30677         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30678         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30679         (INSN_DELETED_P): Likewise.
30680         (emit_jump_table_data): New prototype.
30681         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30682         after 4th as unused.
30683         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30684         * sched-vis.c (print_insn): Likewise.
30685         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30686         insn for compatibility with back ends that use next_active_insn to
30687         identify jump table data.
30688         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30689         (remove_insn): Likewise.
30690         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30691         to be emitted.
30692         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30693         (emit_jump_table_data): New function.
30695         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30696         basic block, a JUMP_TABLE_DATA never is.
30697         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30698         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30699         off from code handling real insns.
30700         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30701         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30702         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30703         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30704         is not a NONDEBUG_INSN_P.
30705         * ira-costs.c (scan_one_insn): Likewise.
30706         * jump.c (mark_all_labels): Likewise.
30707         (mark_jump_label_1): Likewise.
30708         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30709         * lra.c (get_insn_freq): Expect all insns reaching here to be in
30710         a basic block.
30711         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30712         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30713         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30714         JUMP_TABLE_DATA_P insns.
30715         (calculate_elim_costs_all_insns): Likewise.
30716         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30717         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30718         (delete_output_reload): Code style fixups.
30719         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30720         insn flags on this non-insn.
30721         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30722         as scheduling barriers, for pre-change compatibility.
30723         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30724         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30726         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30727         redundant JUMP_TABLE_DATA_P test.
30728         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30729         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30730         (frv_for_each_packet): Likewise.
30731         * config/i386/i386.c (min_insn_size): Likewise.
30732         (ix86_avoid_jump_mispredicts): Likewise.
30733         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30734         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30735         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30736         (mips16_insn_length): Robustify.
30737         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30738         (mips16_split_long_branches): Likewise.
30739         * config/pa/pa.c (pa_combine_instructions): Likewise.
30740         * config/rs6000/rs6000.c (get_next_active_insn): Treat
30741         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30742         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30743         as contributing to pool range lengths.
30744         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30745         Remove redundant JUMP_TABLE_DATA_P test.
30746         (sh_loop_align): Likewise.
30747         (split_branches): Likewise.
30748         (sh_insn_length_adjustment): Likewise.
30749         * config/spu/spu.c (get_branch_target): Likewise.
30751 2013-03-29  Jan Hubicka  <jh@suse.cz>
30753         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
30754         gcov streaming; stream hot bb threshold to ltrans.
30755         * predict.c (get_hot_bb_threshold): Break out from ....
30756         (maybe_hot_count_p): ... here.
30757         (set_hot_bb_threshold): New function.
30758         * lto-section-in.c (lto_section_name): Add profile.
30759         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
30760         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
30761         and data-streamer.h
30762         (histogram_entry): New structure.
30763         (histogram, histogram_pool): New global vars.
30764         (histogram_hash): New structure.
30765         (histogram_hash::hash): New method.
30766         (histogram_hash::equal): Likewise.
30767         (account_time_size): New function.
30768         (cmp_counts): New function.
30769         (dump_histogram): New function.
30770         (ipa_profile_generate_summary): New function.
30771         (ipa_profile_write_summary): New function.
30772         (ipa_profile_read_summary): New function.
30773         (ipa_profile): Decide on threshold.
30774         (pass_ipa_profile): Add ipa_profile_write_summary and
30775         ipa_profile_read_summary.
30776         * Makefile.in (ipa.o): Update dependencies.
30777         * lto-streamer.h (LTO_section_ipa_profile): New section.
30779 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
30781         * tree.h (VAR_P): New.
30783 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
30785         PR lto/56777
30786         * doc/invoke.texi ([-fwhole-program]): Fix typo.
30788 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
30790         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
30791         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30792         (control_flow_insn_p): Likewise.
30793         * cfgrtl.c (duplicate_insn_chain): Likewise.
30794         * final.c (get_attr_length_1): Likewise.
30795         (shorten_branches): Likewise.
30796         (final_scan_insn): Likewise.
30797         * function.c (instantiate_virtual_regs): Likewise.
30798         * gcse.c (insert_insn_end_basic_block): Likewise.
30799         * ira-costs.c (scan_one_insn): Likewise.
30800         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30801         * lra.c (check_rtl): Likewise.
30802         * reload1.c (elimination_costs_in_insn): Likewise.
30803         * reorg.c (follow_jumps): Likewise.
30805         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
30806         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30807         (thumb_far_jump_used_p): Likewise.
30808         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
30809         (workaround_speculation): Likewise.
30810         (add_sched_insns_for_speculation): Likewise.
30811         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
30812         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30813         (frv_for_each_packet): Likewise.
30814         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
30815         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
30816         (final_emit_insn_group_barriers): Likewise.
30817         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30818         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30819         (mips16_insn_length): Likewise.
30820         * config/pa/pa.c (pa_reorg): Likewise.
30821         (pa_combine_instructions): Likewise.
30822         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
30823         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
30824         (sh_reorg): Likewise.
30825         (split_branches): Likewise.
30826         * config/spu/spu.c (get_branch_target): Likewise.
30828         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
30829         JUMP_TABLE_DATA_P.
30831 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
30833         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
30834         Fix declaration name.
30836 2013-03-28  Lawrence Crowl  <crowl@google.com>
30838         * graphds.h (struct graph.indicies): Remove unused.
30839         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
30840         (SCOP_ORIGINAL_PDDRS): Remove unused.
30841         * sese.h (extern insert_loop_close_phis): Removed unused.
30842         (extern insert_guard_phis): Removed unused.
30843         (extern ivtype_map_elt_info): Removed unused.
30844         (new_ivtype_map_elt): Removed unused.
30845         * sese.c (ivtype_map_elt_info): Removed unused.
30847 2013-03-28  Lawrence Crowl  <crowl@google.com>
30849         * Makefile.in: Add several missing include dependences.
30850         (DUMPFILE_H): New.
30851         (test-dump.o): New.  This object is not added to any executable,
30852         but is present for ad-hoc testing.
30853         * bitmap.c
30854         (debug (const bitmap_head_def &)): New.
30855         (debug (const bitmap_head_def *)): New.
30856         * bitmap.h
30857         (extern debug (const bitmap_head_def &)): New.
30858         (extern debug (const bitmap_head_def *)): New.
30859         * cfg.c
30860         (debug (edge_def &)): New.
30861         (debug (edge_def *)): New.
30862         * cfghooks.c
30863         (debug (basic_block_def &)): New.
30864         (debug (basic_block_def *)): New.
30865         * dumpfile.h
30866         (dump_node (const_tree, int, FILE *)): Correct source file.
30867         * dwarf2out.c
30868         (debug (die_struct &)): New.
30869         (debug (die_struct *)): New.
30870         * dwarf2out.h
30871         (extern debug (die_struct &)): New.
30872         (extern debug (die_struct *)): New.
30873         * gimple-pretty-print.c
30874         (debug (gimple_statement_d &)): New.
30875         (debug (gimple_statement_d *)): New.
30876         * gimple-pretty-print.h
30877         (extern debug (gimple_statement_d &)): New.
30878         (extern debug (gimple_statement_d *)): New.
30879         * ira-build.c
30880         (debug (ira_allocno_copy &)): New.
30881         (debug (ira_allocno_copy *)): New.
30882         (debug (ira_allocno &)): New.
30883         (debug (ira_allocno *)): New.
30884         * ira-int.h
30885         (extern debug (ira_allocno_copy &)): New.
30886         (extern debug (ira_allocno_copy *)): New.
30887         (extern debug (ira_allocno &)): New.
30888         (extern debug (ira_allocno *)): New.
30889         * ira-lives.c
30890         (debug (live_range &)): New.
30891         (debug (live_range *)): New.
30892         * lra-int.h
30893         (debug (lra_live_range &)): New.
30894         (debug (lra_live_range *)): New.
30895         * lra-lives.c
30896         (debug (lra_live_range &)): New.
30897         (debug (lra_live_range *)): New.
30898         * omega.c
30899         (debug (omega_pb_d &)): New.
30900         (debug (omega_pb_d *)): New.
30901         * omega.h
30902         (extern debug (omega_pb_d &)): New.
30903         (extern debug (omega_pb_d *)): New.
30904         * print-rtl.c
30905         (debug (const rtx_def &)): New.
30906         (debug (const rtx_def *)): New.
30907         * print-tree.c
30908         (debug_tree (tree): Move within file.
30909         (debug_raw (const tree_node &)): New.
30910         (debug_raw (const tree_node *)): New.
30911         (dump_tree_via_hooks (const tree_node *, int)): New.
30912         (debug (const tree_node &)): New.
30913         (debug (const tree_node *)): New.
30914         (debug_verbose (const tree_node &)): New.
30915         (debug_verbose (const tree_node *)): New.
30916         (debug_head (const tree_node &)): New.
30917         (debug_head (const tree_node *)): New.
30918         (debug_body (const tree_node &)): New.
30919         (debug_body (const tree_node *)): New.
30920         (debug_vec_tree (tree): Move and reimplement in terms of dump.
30921         (debug (vec<tree, va_gc> &)): New.
30922         (debug (vec<tree, va_gc> *)): New.
30923         * rtl.h
30924         (extern debug (const rtx_def &)): New.
30925         (extern debug (const rtx_def *)): New.
30926         * sbitmap.c
30927         (debug_raw (simple_bitmap_def &)): New.
30928         (debug_raw (simple_bitmap_def *)): New.
30929         (debug (simple_bitmap_def &)): New.
30930         (debug (simple_bitmap_def *)): New.
30931         * sbitmap.h
30932         (extern debug (simple_bitmap_def &)): New.
30933         (extern debug (simple_bitmap_def *)): New.
30934         (extern debug_raw (simple_bitmap_def &)): New.
30935         (extern debug_raw (simple_bitmap_def *)): New.
30936         * sel-sched-dump.c
30937         (debug (vinsn_def &)): New.
30938         (debug (vinsn_def *)): New.
30939         (debug_verbose (vinsn_def &)): New.
30940         (debug_verbose (vinsn_def *)): New.
30941         (debug (expr_def &)): New.
30942         (debug (expr_def *)): New.
30943         (debug_verbose (expr_def &)): New.
30944         (debug_verbose (expr_def *)): New.
30945         (debug (vec<rtx> &)): New.
30946         (debug (vec<rtx> *)): New.
30947         * sel-sched-dump.h
30948         (extern debug (vinsn_def &)): New.
30949         (extern debug (vinsn_def *)): New.
30950         (extern debug_verbose (vinsn_def &)): New.
30951         (extern debug_verbose (vinsn_def *)): New.
30952         (extern debug (expr_def &)): New.
30953         (extern debug (expr_def *)): New.
30954         (extern debug_verbose (expr_def &)): New.
30955         (extern debug_verbose (expr_def *)): New.
30956         (extern debug (vec<rtx> &)): New.
30957         (extern debug (vec<rtx> *)): New.
30958         * sel-sched-ir.h
30959         (_list_iter_cond_expr): Make inline instead of static.
30960         * sreal.c
30961         (debug (sreal &)): New.
30962         (debug (sreal *)): New.
30963         * sreal.h
30964         (extern debug (sreal &)): New.
30965         (extern debug (sreal *)): New.
30966         * tree.h
30967         (extern debug_raw (const tree_node &)): New.
30968         (extern debug_raw (const tree_node *)): New.
30969         (extern debug (const tree_node &)): New.
30970         (extern debug (const tree_node *)): New.
30971         (extern debug_verbose (const tree_node &)): New.
30972         (extern debug_verbose (const tree_node *)): New.
30973         (extern debug_head (const tree_node &)): New.
30974         (extern debug_head (const tree_node *)): New.
30975         (extern debug_body (const tree_node &)): New.
30976         (extern debug_body (const tree_node *)): New.
30977         (extern debug (vec<tree, va_gc> &)): New.
30978         (extern debug (vec<tree, va_gc> *)): New.
30979         * tree-cfg.c
30980         (debug (struct loop &)): New.
30981         (debug (struct loop *)): New.
30982         (debug_verbose (struct loop &)): New.
30983         (debug_verbose (struct loop *)): New.
30984         * tree-dump.c: Add header dependence.
30985         * tree-flow.h
30986         (extern debug (struct loop &)): New.
30987         (extern debug (struct loop *)): New.
30988         (extern debug_verbose (struct loop &)): New.
30989         (extern debug_verbose (struct loop *)): New.
30990         * tree-data-ref.c
30991         (debug (data_reference &)): New.
30992         (debug (data_reference *)): New.
30993         (debug (vec<data_reference_p> &)): New.
30994         (debug (vec<data_reference_p> *)): New.
30995         (debug (vec<ddr_p> &)): New.
30996         (debug (vec<ddr_p> *)): New.
30997         * tree-data-ref.h
30998         (extern debug (data_reference &)): New.
30999         (extern debug (data_reference *)): New.
31000         (extern debug (vec<data_reference_p> &)): New.
31001         (extern debug (vec<data_reference_p> *)): New.
31002         (extern debug (vec<ddr_p> &)): New.
31003         (extern debug (vec<ddr_p> *)): New.
31004         * tree-ssa-alias.c
31005         (debug (pt_solution &)): New.
31006         (debug (pt_solution *)): New.
31007         * tree-ssa-alias.h
31008         (extern debug (pt_solution &)): New.
31009         (extern debug (pt_solution *)): New.
31010         * tree-ssa-alias.c
31011         (debug (_var_map &)): New.
31012         (debug (_var_map *)): New.
31013         (debug (tree_live_info_d &)): New.
31014         (debug (tree_live_info_d *)): New.
31015         * tree-ssa-alias.h
31016         (extern debug (_var_map &)): New.
31017         (extern debug (_var_map *)): New.
31018         (extern debug (tree_live_info_d &)): New.
31019         (extern debug (tree_live_info_d *)): New.
31021 2013-03-28  Jan Hubicka  <jh@suse.cz>
31023         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31025 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
31027         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31028         record only when desired or required.
31030 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
31032         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31033         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
31035 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31037         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31038         (*andsi3_compare0_uxtw): New pattern.
31039         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31040         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31042 2013-03-28  Jan Hubicka  <jh@suse.cz>
31044         * data-streamer-in.c (streamer_read_gcov_count): New function.
31045         * gimple-streamer-out.c: Include value-prof.h.
31046         (output_gimple_stmt): Output histogram.
31047         (output_bb): Use streamer_write_gcov_count.
31048         * value-prof.c: Include data-streamer.h
31049         (dump_histogram_value): Add HIST_TYPE_MAX.
31050         (stream_out_histogram_value): New function.
31051         (stream_in_histogram_value): New function.
31052         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31053         (stream_out_histogram_value, stream_in_histogram_value): Declare.
31054         * data-streamer-out.c (streamer_write_gcov_count): New function.
31055         (streamer_write_gcov_count_stream): New function.
31056         * lto-cgraph.c (lto_output_edge): Update counter streaming.
31057         (lto_output_node): Likewise.
31058         (input_node, input_edge): Likewise.
31059         * lto-streamer-out.c (output_cfg): Update streaming.
31060         * lto-streamer-in.c (input_cfg): Likewise.
31061         * data-streamer.h (streamer_write_gcov_count,
31062         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31063         * gimple-streamer-in.c: Include value-prof.h
31064         (input_gimple_stmt): Input histograms.
31065         (input_bb): Update profile streaming.
31067 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31069         * genmodes.c (emit_max_int): New function.
31070         (emit_insn_modes_h): Added call to emit_max_function.
31071         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31072         Added doc.
31073         * machmode.def: Fixed comment.
31075 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31077         * combine.c (try_combine): Removed useless assert.
31078         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31080 2013-03-28  Marek Polacek  <polacek@redhat.com>
31081             Richard Biener  <rguenther@suse.de>
31083         PR tree-optimization/56695
31084         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31085         build signed result of a vector comparison.
31086         * tree-cfg.c (verify_gimple_comparison): Check that a result
31087         of a vector comparison has signed type.
31089 2013-03-28  Richard Biener  <rguenther@suse.de>
31091         PR tree-optimization/37021
31092         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31093         do not restrict gaps between groups.
31094         * tree-vect-stmts.c (vectorizable_load): Properly account for
31095         a gap between groups.
31097 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
31099         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31100         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31101         is not enabled.
31103 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
31105         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31106         * doc/extend.texi (Named Address Spaces): Ditto.
31107         (Variable Attributes): Ditto.
31109 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31111         * config.build: Add support for cygwin x64 target.
31112         * config.gcc: Likewise.
31113         * config.host: Likewise.
31114         * configure.ac: Likewise
31115         * configure: Regenerated.
31117 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31119         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31120         * config/i386/t-cygwin-w64: New file.
31121         * config/i386/cygwin-w64.h: New file.
31122         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31123         and add support for x64-cygwin target.
31124         (CPP_SPEC): Likewise.
31125         (CXX_WRAP_SPEC_LIST): Undefine before define.
31126         (LIBGCJ_SONAME): Use 15 as version.
31128 2013-03-27  Richard Biener  <rguenther@suse.de>
31130         PR tree-optimization/56716
31131         * tree-ssa-structalias.c (perform_var_substitution): Adjust
31132         dumping for ref nodes.
31134 2013-03-27  Martin Jambor  <mjambor@suse.cz>
31136         PR tree-optimization/55334
31137         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31138         restricted pointers to arrays.
31140 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
31142         * Makefile.in (.SUFFIXES): Add .cc.
31143         (.c.o): Apply same recipe for implicit rule .cc.o.
31145 2013-03-27  Richard Biener  <rguenther@suse.de>
31147         PR tree-optimization/37021
31148         * tree-vect-data-refs.c (vect_check_strided_load): Allow
31149         REALPART/IMAGPART_EXPRs around the supported refs.
31150         * tree-ssa-structalias.c (find_func_aliases): Assume that
31151         floating-point values are not used to transfer pointers.
31153 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
31155         * target.def (TARGET_HAS_IFUNC_P): New target hook.
31156         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31157         * doc/tm.texi: Regenerate.
31158         * targhooks.h (default_has_ifunc_p): New.
31159         * targhooks.c (default_has_ifunc_p): Ditto.
31160         * config/linux-protos.h: New file.
31161         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31162         hook for linux which disables support of indirect functions in android.
31163         * config/linux-android.c: New file.
31164         * config/t-linux-android.c: Ditto.
31165         * config.gcc: Added new object file linux-android.o.
31166         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31167         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31168         * varasm.c (do_assemble_alias): Likewise.
31169         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31170         doesn't support indirect functions.
31171         * configure: Regenerate.
31173 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
31175         PR target/56102
31176         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31177         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31178         mult-word mode.
31180 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31182         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31184 2013-03-27  Terry Guo  <terry.guo@arm.com>
31186         * config/arm/arm-cores.def: Added core cortex-r7.
31187         * config/arm/arm-tune.md: Regenerated.
31188         * config/arm/arm-tables.opt: Regenerated.
31189         * doc/invoke.texi: Added entry for core cortex-r7.
31191 2013-03-27  Walter Lee  <walt@tilera.com>
31193         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31194         double-decrement of next_scratch_regno.
31196 2013-03-27  Walter Lee  <walt@tilera.com>
31198         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31199         input operands.
31200         (insn_v1mulus): Ditto.
31201         (insn_v2muls): Ditto.
31203 2013-03-27  Walter Lee  <walt@tilera.com>
31205         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31206         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31208 2013-03-27  Walter Lee  <walt@tilera.com>
31210         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31211         (*sibcall_value): Ditto.
31213 2013-03-27  Walter Lee  <walt@tilera.com>
31215         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31216         (insn_mnz_v8qi): ... this ...
31217         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
31218         vector equivalent.
31219         (insn_v<n>mnz): Replaced by ...
31220         (insn_v1mnz): ... this ...
31221         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
31222         equivalent.
31223         (insn_mz_<mode>): Replaced by ...
31224         (insn_mz_v8qi): ... this ...
31225         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
31226         vector equivalent.
31227         (insn_v<n>mz): Replaced by ...
31228         (insn_v1mz): ... this ...
31229         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
31230         equivalent.
31232 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
31234         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31236 2013-03-26  Roland McGrath  <mcgrathr@google.com>
31238         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31239         than fprintf with a non-constant, non-format string.
31241 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31243         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31244         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
31245         operand 0 predicate.
31246         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31247         attribute.  Use general_x64nomem_operand as operand 1 predicate.
31248         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31249         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31250         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31251         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31252         (mov<mode>_insv_1): Remove expander.  Merge insn with
31253         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31254         Use general_x64nomem_operand as operand 1 predicate.
31255         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31256         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31257         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31258         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31259         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
31260         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31261         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31262         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31263         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
31264         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31265         (general_x64nomem_operand): Ditto.
31267 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31269         * config/rtems.opt: Add -pthread option.
31271 2013-03-26  Richard Biener  <rguenther@suse.de>
31273         * alias.c (find_base_term): Avoid redundant and not used recursion.
31274         (base_alias_check): Get the initial base term from the caller.
31275         (true_dependence_1): Compute and pass base terms to base_alias_check.
31276         (write_dependence_p): Likewise.
31277         (may_alias_p): Likewise.
31279 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
31281         * config/aarch64/aarch64.c (aarch64_classify_address): Support
31282         PC-relative load in SI modes and above only.
31284 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
31286         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31287         * config/arm/iwmmxt.md (WCGR0): Update.
31288         (WCGR1, WCGR2, WCGR3): Likewise.
31290 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31292         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31293         Use x64 and nox64 isa attributes.
31295 2013-03-26  Richard Biener  <rguenther@suse.de>
31297         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31298         alignment computations and rely on get_object_alignment_1
31299         for the !TYPE_P case.
31300         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31302 2013-03-26  Walter Lee  <walt@tilera.com>
31304         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31305         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31307 2013-03-25  Jeff Law  <law@redhat.com>
31309         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31310         check for INTEGRAL_TYPE_P that was missing due to checking in
31311         wrong version of prior patch.
31313 2013-03-25  Walter Lee  <walt@tilera.com>
31315         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31316         TILEGX_INSN_SHUFFLEBYTES1.
31317         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31318         shufflebytes1.
31319         (tilegx_builtins): Ditto.
31320         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31322 2013-03-25  Walter Lee  <walt@tilera.com>
31324         * config/tilegx/tilegx.md (floatsisf2): New pattern.
31325         (floatunssisf2): New pattern.
31326         (floatsidf2): New pattern.
31327         (floatunssidf2): New pattern.
31329 2013-03-25  Walter Lee  <walt@tilera.com>
31331         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31332         tests for constraint J, K, N, P.
31334 2013-03-25  Walter Lee  <walt@tilera.com>
31336         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31337         Use indirect/pcrel encoding.
31338         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31339         Ditto.
31341 2013-03-25  Steve Ellcey  <sellcey@mips.com>
31343         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31344         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31345         * config/mips/mips.c (mips_option_override): Set IMADD default.
31346         * config/mips/mips.h (PTF_AVOID_IMADD): New.
31347         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31348         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31349         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31350         * doc/invoke.texi (-mimadd/-mno-imadd): New.
31352 2013-03-25  Jeff Law  <law@redhat.com>
31354         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31355         slightly to avoid creating and folding useless trees.  Simplify
31356         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31358 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
31360         * config/i386/i386.md (*zero_extendsidi2): Merge with
31361         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
31362         * config/i386/predicates.md (x86_64_zext_operand): Rename from
31363         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
31364         targets.  Clarify comment.
31366 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31368         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31369         pass-through jump functions differently.
31370         (ipa_read_jump_function): Likewise.  Also use setter functions to set
31371         up jump functions.
31373 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31375         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31376         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31377         process it.
31378         (ipa_get_indirect_edge_target): New function.
31379         (devirtualization_time_bonus): New parameter known_aggs, pass it to
31380         ipa_get_indirect_edge_target.  Update all callers.
31381         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
31382         ipa_get_indirect_edge_target_1 instead of calling
31383         ipa_get_indirect_edge_target.
31384         (create_specialized_node): Pass aggvlas to
31385         ipcp_discover_new_direct_edges.
31387 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31389         * config/arm/arm.md (f_sels, f_seld): New types.
31390         (*cmov<mode>): New pattern.
31391         * config/arm/predicates.md (arm_vsel_comparison_operator): New
31392         predicate.
31394 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31396         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31397         POSIX-printf for mingw-hosted  builds.
31399 2013-03-25  Richard Biener  <rguenther@suse.de>
31401         PR middle-end/56694
31402         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31403         must-not-throw stmt location.
31405 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31407         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31408         Emit load-acquire versions when acq is true.
31409         (arm_emit_store_exclusive): Add rel parameter.
31410         Emit store-release versions when rel is true.
31411         (arm_split_compare_and_swap): Use acquire-release instructions
31412         instead.
31413         of barriers when appropriate.
31414         (arm_split_atomic_op): Likewise.
31415         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31416         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31417         (VUNSPEC_SLX): Likewise.
31418         (VUNSPEC_LDA): Likewise.
31419         (VUNSPEC_STL): Likewise.
31420         * config/arm/sync.md (atomic_load<mode>): New pattern.
31421         (atomic_store<mode>): Likewise.
31422         (arm_load_acquire_exclusive<mode>): Likewise.
31423         (arm_load_acquire_exclusivesi): Likewise.
31424         (arm_load_acquire_exclusivedi): Likewise.
31425         (arm_store_release_exclusive<mode>): Likewise.
31427 2013-03-25  Catherine Moore  <clm@codesourcery.com>
31429         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31430         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31431         * config/mip/predicates.md (lwsp_swsp_operand,
31432         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31433         sb16_operand, db4_operand, db7_operand, ib3_operand,
31434         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31435         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31436         andi16_operand): New predicates.
31437         * config/mips/mips.md (compression): New attribute.
31438         (enabled): New attribute.
31439         (length): Consider compression in computing length.
31440         (shift_compression): New code attribute.
31441         (*add<mode>3): New operands. Record compression.
31442         (sub<mode>3): Likewise.
31443         (one_cmpl<mode>2): Likewise.
31444         (*and<mode>3): Likewise.
31445         (*ior<mode>3): Likewise.
31446         (unnamed pattern for xor): Likewise.
31447         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31448         (*<optab><mode>3): Likewise.
31449         (*mov<mode>_internal: Likewise.
31450         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31451         (mips_unsigned_immediate_p): New.
31452         (umips_lwsp_swsp_address_p): New.
31453         (m16_based_address_p): New.
31454         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31455         (mips_unsigned_immediate_p): New prototype.
31456         (lwsp_swsp_address_p): New prototype.
31457         (m16_based_address_p): New prototype.
31458         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31459         (mips_signed_immediate_p): New function.
31460         (m16_based_address_p): New function.
31461         (lwsp_swsp_address_p): New function.
31462         (mips_print_operand_punctuation): Recognize short delay slot insns
31463         for microMIPS.add<mode>3"
31465 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31467         PR target/56720
31468         * config/arm/iterators.md (v_cmp_result): New mode attribute.
31469         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31471 2013-03-25  Richard Biener  <rguenther@suse.de>
31473         PR tree-optimization/56689
31474         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31475         any edge.
31477 2013-03-25  Richard Biener  <rguenther@suse.de>
31479         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31480         of bitmap.
31481         (memory_references): Likewise.
31482         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31483         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31484         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31485         (gather_mem_refs_in_loops): Fold into ...
31486         (analyze_memory_references): ... this.  Move initialization
31487         to tree_ssa_lim_initialize.
31488         (fill_always_executed_in): Rename to ...
31489         (fill_always_executed_in_1): ... this.
31490         (fill_always_executed_in): Move contains_call computation to
31491         this new function from ...
31492         (tree_ssa_lim_initialize): ... here.
31493         (tree_ssa_lim): Call fill_always_executed_in.
31495 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31497         * postreload.c (reload_combine): Fix code detecting returns.
31499 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31501         * function.c (emit_use_return_register_into_block): On cc0 targets,
31502         do not emit the sequence between cc0 setter and user.
31504 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31506         * config/i386/predicates.md (local_symbolic_operand): Interpret
31507         dll-imported symbols as none-local.
31509 2013-03-25  Richard Biener  <rguenther@suse.de>
31511         * tree-ssa-loop-im.c (struct depend): Remove.
31512         (struct lim_aux_data): Make depends a vec of gimples.
31513         (free_lim_aux_data): Adjust.
31514         (add_dependency): Likewise.
31515         (set_level): Likewise.
31517 2013-03-25  Richard Biener  <rguenther@suse.de>
31519         PR middle-end/56434
31520         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31521         the pointer returned by calls with ECF_MALLOC set.
31523 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31525         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31527 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31529         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31530         using MMXMODE mode iterator.
31531         (*move<mode>_internal): Merge with *movv2sf_internal and
31532         *movv2sf_internal_rex64 using MMXMODE mode iterator.
31534 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31536         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31537         (record_last_mem_set_info): Likewise.
31539         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31540         of XNEWVEC followed by memset.
31541         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31543 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31545         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31546         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31547         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31548         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31549         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31550         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31551         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31552         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31553         BARRIER_P instead of GET_CODE.
31555 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31557         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31558         inaccuracy in the probing code.
31560         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31561         (ctrapdi4): Likewise.
31563 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31565         * calls.c (expand_call): Add missing guard to code handling return
31566         of non-BLKmode structures in MSB.
31567         * function.c (expand_function_end): Likewise.
31569 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31571         * combine.c (try_combine): Adjust comment.  Do not add the set of
31572         insn #0 if the destination indirectly is set or dies in insn #2.
31573         Tidy up code to distribute a new note.
31575 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31577         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31578         also for alternatives 16 and 17.
31580 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31582         * config/i386/sse.md (*mov<mode>_internal): Merge with
31583         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
31584         Emit insn template depending on type attribute.  Use
31585         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31586         movd instead of movq mnemonic for interunit moves.  Rewrite mode
31587         attribute calculation.  Remove unit attribute calculation.
31588         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31589         Set prefix_data16 attribute for DImode ssemov types.
31590         Use Ym instead of y for SSE-MMX conversion alternatives.
31591         Reorder operand constraints.
31593 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
31595         * df.h (df_insn_delete): Adjust prototype.
31596         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31597         and let it decide whether mark the basic block dirty.
31598         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31599         * df-scan.c (df_insn_info_delete): New helper function, split
31600         off from df_insn_delete.
31601         (df_scan_free_bb_info): Use it.
31602         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31603         Likewise.
31604         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
31605         that the insn is actually an insn and it has a non-NULL basic block.
31606         Do not mark basic block dirty if only deleting a DEBUG_INSN.
31608 2013-03-22  Richard Biener  <rguenther@suse.de>
31610         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31611         dep_ref members.
31612         (mem_ref_alloc): Do not allocate them.
31613         (refs_independent_p): Do not query or maintain a cache.
31615 2013-03-22  Richard Biener  <rguenther@suse.de>
31617         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31618         (gather_mem_refs_in_loops): Do not compute it.
31619         (analyze_memory_references): Do not allocate it.
31620         (tree_ssa_lim_finalize): Do not free it.
31621         (for_all_locs_in_loop): Do not query all_refs_in_loop.
31623 2013-03-22  Richard Biener  <rguenther@suse.de>
31625         * is-a.h (as_a): Use gcc_checking_assert.
31627 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
31629         * config/aarch64/aarch64.c (aarch64_print_operand): New
31630         format specifier for printing a constant in hex.
31631         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31632         format specifier for printing second operand.
31634 2013-03-22  Richard Biener  <rguenther@suse.de>
31636         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31637         bitmaps.
31638         (gather_mem_refs_in_loops): Perform store accumulation here.
31639         (create_vop_ref_mapping_loop): Remove.
31640         (create_vop_ref_mapping): Likewise.
31641         (analyze_memory_references): Initialize refs_stored_in_loop.
31642         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31643         (record_indep_loop): Remove.
31644         (record_dep_loop): New function.
31645         (ref_indep_loop_p_1): Adjust to only walk over references
31646         in the loop, not its subloops.
31647         (ref_indep_loop_p): Rename to ...
31648         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31649         maintaining a more fine-grained cache.
31650         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31651         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31653 2013-03-22  Richard Biener  <rguenther@suse.de>
31655         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31656         (struct mem_ref): Make accesses_in_loop a vec of a vec of
31657         aggregate mem_ref_loc.
31658         (free_mem_ref_locs): Inline into ...
31659         (memref_free): ... this and adjust.
31660         (mem_ref_alloc): Adjust.
31661         (mem_ref_locs_alloc): Remove.
31662         (record_mem_ref_loc): Adjust.
31663         (get_all_locs_in_loop): Rewrite into ...
31664         (for_all_locs_in_loop): ... this iterator.
31665         (rewrite_mem_ref_loc): New functor.
31666         (rewrite_mem_refs): Use for_all_locs_in_loop.
31667         (sm_set_flag_if_changed): New functor.
31668         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31669         (ref_always_accessed): New functor.
31670         (ref_always_accessed_p): Use for_all_locs_in_loop.
31672 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31674         * tree-pass.h (PROP_gimple_lvec): New.
31675         * passes.c (dump_properties): Handle PROP_gimple_lvec.
31676         (init_optimization_passes): Move pass_lower_vector.
31677         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31678         PROP_gimple_lvec.
31679         (pass_lower_vector): Provide PROP_gimple_lvec.
31680         (pass_lower_vector_ssa): Likewise.
31681         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31683 2013-03-21  Mark Wielaard  <mjw@redhat.com>
31685         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31687 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31689         * config/i386/i386.md (*movdi_internal): Disparage slightly
31690         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
31691         conversion alternatives.
31693 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
31695         PR middle-end/48087
31696         * diagnostic.def (DK_WERROR): New kind.
31697         * diagnostic.h (werrorcount): Define.
31698         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31699         promoted to DK_ERROR, increment DK_WERROR counter instead of
31700         DK_ERROR counter.
31701         * toplev.c (toplev_main): Call print_ignored_options even if
31702         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
31703         even if just werrorcount is non-zero.
31705         PR debug/55608
31706         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31707         on failure.
31708         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31709         (string_cst_pool_decl): New function.
31710         (optimize_one_addr_into_implicit_ptr): New function.
31711         (resolve_addr_in_expr): Optimize DWARF location expression
31712         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31713         which doesn't live in memory, but has DW_AT_location or
31714         DW_AT_const_value, or refers to a string literal, into
31715         DW_OP_GNU_implicit_pointer.
31716         (optimize_location_into_implicit_ptr): New function.
31717         (resolve_addr): If removing DW_AT_location of a variable because
31718         it was DW_OP_addr of address of the variable, but the variable doesn't
31719         live in memory, try to emit const value attribute for the initializer.
31721 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31723         * tree.h (VECTOR_TYPE_P): New macro.
31724         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31725         TYPE_MODE): Use it.
31726         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31727         VEC_COND_EXPR cannot be lvalues.
31728         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31730 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31732         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31733         Restrict the transformation to equal modes.
31735 2013-03-21  Richard Biener  <rguenther@suse.de>
31737         PR tree-optimization/39326
31738         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31739         (MEM_ANALYZABLE): Adjust.
31740         (record_mem_ref_loc): Move bitmap ops ...
31741         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
31742         unanalyzable refs, do not record locations for it.
31743         (analyze_memory_references): Allocate ref zero as shared
31744         unanalyzable ref.
31745         (refs_independent_p): Do not test for unanalyzed mems here.
31746         (ref_indep_loop_p_1): Special-case disambiguation against
31747         the unanalyzed ref.
31748         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
31750 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
31752         * config/arm/arm-protos.h (tune_params): Add
31753         prefer_neon_for_64bits field.
31754         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
31755         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
31756         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31757         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31758         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
31759         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31760         (arm_option_override): Handle -mneon-for-64bits new option.
31761         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
31762         (prefer_neon_for_64bits): Declare new variable.
31763         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
31764         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
31765         (arch_enabled): Handle new arch types. Remove support for onlya8
31766         and nota8.
31767         (one_cmpldi2): Use new arch names.
31768         (zero_extend<mode>di2, extend<mode>di2): Ditto.
31769         * config/arm/arm.opt (mneon-for-64bits): Add option.
31770         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
31771         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
31772         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
31773         of onlya8.
31774         * doc/invoke.texi (-mneon-for-64bits): Document.
31776 2013-03-21  Richard Biener  <rguenther@suse.de>
31778         PR tree-optimization/39326
31779         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
31780         (sort_bbs_in_loop_postorder_cmp): New function.
31781         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
31783 2013-03-21  Richard Biener  <rguenther@suse.de>
31785         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
31786         (vect_insert_into_interleaving_chain): Likewise.
31787         (vect_drs_dependent_in_basic_block): Inline ...
31788         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
31789         split out from ...
31790         (vect_analyze_data_ref_dependence): ... here.  Simplify.
31791         (vect_check_interleaving): Simplify.
31792         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
31793         (vect_slp_analyze_data_ref_dependences): ... this new function.
31794         (dr_group_sort_cmp): New function.
31795         (vect_analyze_data_ref_accesses): Compute data-reference groups
31796         here instead of in vect_analyze_data_ref_dependence.  Use
31797         a more efficient algorithm.
31798         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
31799         vect_slp_analyze_data_ref_dependences.  Call
31800         vect_analyze_data_ref_accesses earlier.
31801         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
31802         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
31803         (vect_slp_analyze_data_ref_dependences): New prototype.
31805 2013-03-21  Richard Biener  <rguenther@suse.de>
31807         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
31808         ref is stored in the loop.
31809         (find_refs_for_sm): Walk only over all stores.
31810         (store_motion_loop): Allocate from lim_bitmap_obstack.
31811         (store_motion): Likewise.
31813 2013-03-21  Richard Biener  <rguenther@suse.de>
31815         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
31816         Update virtual SSA form.
31818 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31820         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
31821         * configure: Regenerate.
31822         * config.in: Regenerate.
31823         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
31824         if !HAVE_LD_EH_FRAME_CIEV3.
31826 2013-03-21  Richard Biener  <rguenther@suse.de>
31828         * tree-cfg.c (verify_expr_no_block): New function.
31829         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
31830         nor DECL_VALUE_EXPR have locations with associated blocks.
31831         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
31832         (clear_unused_block_pointer): Remove code dealing with
31833         blocks in DECL_DEBUG_EXPR locations.
31835 2013-03-21  Richard Biener  <rguenther@suse.de>
31837         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
31838         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
31839         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
31840         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
31841         instead of DECL_DEBUG_EXPR_IS_FROM.
31842         * gimplify.c (gimplify_modify_expr): Likewise.
31843         * tree-cfg.c (verify_expr_location_1): Likewise.
31844         * tree-complex.c (create_one_component_var): Likewise.
31845         * tree-sra.c (create_access_replacement): Likewise.
31846         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
31847         (clear_unused_block_pointer): Likewise.
31848         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
31849         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
31850         * var-tracking.c (var_debug_decl): Likewise.
31851         (track_expr_p): Likewise.
31852         * tree-inline.c (add_local_variables): Likewise.  Set
31853         DECL_HAS_DEBUG_EXPR_P after copying it.
31854         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
31855         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
31857 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31859         PR bootstrap/56656
31860         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
31861         * configure: Regenerate.
31862         * config.in: Regenerate.
31863         * config/i386/i386.md (*movdf_internal): Use
31864         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31865         movd instead of movq mnemonic for interunit moves.
31866         (*movdi_internal): Ditto.
31868 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31870         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
31871         (abd<mode>_3): New pattern.
31872         (aba<mode>_3): New pattern.
31873         (fabd<mode>_3): New pattern.
31875 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31877         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
31878         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
31879         occurrence of REGISTER_PREFIX as its empty string.
31881 2013-03-20  Jeff Law  <law@redhat.com>
31883         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
31884         addititional equivalences for equality comparisons between an SSA_NAME
31885         and a constant where the SSA_NAME was set from a widening conversion.
31887 2013-03-20  Walter Lee  <walt@tilera.com>
31889         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
31891 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31893         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
31894         depending on type attribute.
31895         (*movti_internal): Ditto.
31896         (*movtf_internal): Ditto.
31897         (*movxf_internal): Ditto.
31898         (*movdf_internal): Ditto.
31899         (*movsf_internal): Ditto.
31901 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31903         * config/i386/i386.md (*movti_internal): Set prefix attribute to
31904         maybe_vex for sselog1 and ssemov types.
31905         (*movdi_internal): Reorder operand constraints.
31906         (*movsi_internal): Ditto.  Set prefix attribute to
31907         maybe_vex for sselog1 and ssemov types.
31908         (*movtf_internal): Set prefix attribute to maybe_vex
31909         for sselog1 and ssemov types.
31910         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
31911         DImode ssemov types.  Reorder operand constraints.
31912         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
31913         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
31914         attribute for SImode ssemov types.  Reorder operand constraints.
31916 2013-03-20  Martin Jambor  <mjambor@suse.cz>
31918         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
31919         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
31921 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
31923         * config/rs6000/predicates.md (indexed_address, update_address_mem
31924         update_indexed_address_mem): New predicates.
31925         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
31926         attribute for load/store instructions.
31927         * config/rs6000/dfp.md (movsd_store): Likewise.
31928         (movsd_load): Likewise.
31929         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
31930         (unnamed HI->DI extend define_insn): Likewise.
31931         (unnamed SI->DI extend define_insn): Likewise.
31932         (unnamed QI->SI extend define_insn): Likewise.
31933         (unnamed QI->HI extend define_insn): Likewise.
31934         (unnamed HI->SI extend define_insn): Likewise.
31935         (unnamed HI->SI extend define_insn): Likewise.
31936         (extendsfdf2_fpr): Likewise.
31937         (movsi_internal1): Likewise.
31938         (movsi_internal1_single): Likewise.
31939         (movhi_internal): Likewise.
31940         (movqi_internal): Likewise.
31941         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
31942         attribute for load/store instructions.
31943         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
31944         instructions.
31945         (mov<mode>_softfloat): Likewise.
31946         (mov<mode>_hardfloat32): Likewise.
31947         (mov<mode>_hardfloat64): Likewise.
31948         (mov<mode>_softfloat64): Likewise.
31949         (movdi_internal32): Likewise.
31950         (movdi_internal64): Likewise.
31951         (probe_stack_<mode>): Likewise.
31953 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
31955         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
31956         floating point, and decimal floating point to reload iterator.
31958         * config/rs6000/constraints.md (wl constraint): New constraints to
31959         return FLOAT_REGS if certain options are used to reduce the number
31960         of separate patterns that exist in the file.
31961         (wx constraint): Likewise.
31962         (wz constraint): Likewise.
31964         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31965         -mdebug=reg, print wg, wl, wx, and wz constraints.
31966         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31967         Initialize the reload functions for 64-bit binary/decimal floating
31968         point types.
31969         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31970         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31971         create the buffer on the stack to overcome not having a 32-bit
31972         load and store.
31973         (rs6000_emit_move): Likewise.
31974         (rs6000_secondary_memory_needed_rtx): Likewise.
31975         (rs6000_alloc_sdmode_stack_slot): Likewise.
31976         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31977         via xxlxor, just like DFmode 0.0.
31979         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
31980         define as 1 if we are running on a power7 or newer.
31981         (enum r6000_reg_class_enum): Add new constraints.
31983         * config/rs6000/dfp.md (movsd): Delete, combine with binary
31984         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
31985         with other moves by using conditional constraits (wg).  Use LFIWZX
31986         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
31987         (movsd splitter): Likewise.
31988         (movsd_hardfloat): Likewise.
31989         (movsd_softfloat): Likewise.
31991         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
31992         binary and decimal floating point moves.
31993         (fmove_ok): New attributes to combine binary and decimal floating
31994         point moves, and to combine power6x (mfpgpr) moves along normal
31995         floating moves.
31996         (real_value_to_target): Likewise.
31997         (f32_lr): Likewise.
31998         (f32_lm): Likewise.
31999         (f32_li): Likewise.
32000         (f32_sr): Likewise.
32001         (f32_sm): Likewise.
32002         (f32_si): Likewise.
32003         (movsf): Combine binary and decimal floating point moves.  Combine
32004         power6x (mfpgpr) moves with other moves by using conditional
32005         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
32006         (mov<mode> for SFmode/SDmode); Likewise.
32007         (SFmode/SDmode splitters): Likewise.
32008         (movsf_hardfloat): Likewise.
32009         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32010         (movsf_softfloat): Likewise.
32011         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32013         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32014         wx and wz constraints.
32016         * config/rs6000/constraints.md (wg constraint): New constraint to
32017         return FLOAT_REGS if -mmfpgpr (power6x) was used.
32019         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32020         constraint.
32022         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32023         -mdebug=reg, print wg, wl, wx, and wz constraints.
32024         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32025         Initialize the reload functions for 64-bit binary/decimal floating
32026         point types.
32027         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32028         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32029         create the buffer on the stack to overcome not having a 32-bit
32030         load and store.
32031         (rs6000_emit_move): Likewise.
32032         (rs6000_secondary_memory_needed_rtx): Likewise.
32033         (rs6000_alloc_sdmode_stack_slot): Likewise.
32034         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32035         via xxlxor, just like DFmode 0.0.
32037         * config/rs6000/dfp.md (movdd): Delete, combine with binary
32038         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
32039         with other moves by using conditional constraits (wg).  Use LFIWZX
32040         and STFIWX for loading SDmode on power7.
32041         (movdd splitters): Likewise.
32042         (movdd_hardfloat32): Likewise.
32043         (movdd_softfloat32): Likewise.
32044         (movdd_hardfloat64_mfpgpr): Likewise.
32045         (movdd_hardfloat64): Likewise.
32046         (movdd_softfloat64): Likewise.
32048         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32049         64-bit binary and decimal floating point moves.
32050         (FMOVE64X): Likewise.
32051         (movdf): Combine 64-bit binary and decimal floating point moves.
32052         Combine power6x (mfpgpr) moves with other moves by using
32053         conditional constraits (wg).
32054         (mov<mode> for DFmode/DDmode): Likewise.
32055         (DFmode/DDmode splitters): Likewise.
32056         (movdf_hardfloat32): Likewise.
32057         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32058         (movdf_softfloat32): Likewise.
32059         (movdf_hardfloat64_mfpgpr): Likewise.
32060         (movdf_hardfloat64): Likewise.
32061         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32062         (movdf_softfloat64): Likewise.
32063         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32064         (reload_<mode>_load): Move to later in the file so they aren't in
32065         the middle of the floating point move insns.
32066         (reload_<mode>_store): Likewise.
32068         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32069         constraint.
32071         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32072         constraint if -mdebug=reg.
32073         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32074         Enable using dd reload support if needed.
32076         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32077         binary and decimal floating point moves in rs6000.md.
32078         (movtd_internal): Likewise.
32080         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32081         decimal floating point moves.
32082         (movtf): Likewise.
32083         (movtf_internal): Likewise.
32084         (mov<mode>_internal, TDmode/TFmode): Likewise.
32085         (movtf_softfloat): Likewise.
32086         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32088         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32089         movdi_internal64, using wg constraint for move direct operations.
32090         (movdi_internal64): Likewise.
32092         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32093         MODES_TIEABLE_P for selected modes.  Print the numerical value of
32094         the various virtual registers. Use GPR/FPR first/last values,
32095         instead of hard coding the register numbers.  Print which modes
32096         have reload functions registered.
32097         (rs6000_option_override_internal): If -mdebug=reg, trace the options
32098         settings before/after setting cpu, target and subtarget settings.
32099         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32100         and for secondary reload failures in rs6000_secondary_reload_inner.
32101         (rs6000_secondary_reload_fail): Likewise.
32102         (rs6000_secondary_reload_inner): Likewise.
32104         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32105         macros for first/last GPR and FPR registers.
32106         (LAST_GPR_REGNO): Likewise.
32107         (FIRST_FPR_REGNO): Likewise.
32108         (LAST_FPR_REGNO): Likewise.
32110         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32111         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32112         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32113         (vcond<mode><mode>): Likewise.
32114         (vcondu<mode><mode>): Likewise.
32115         (vector_gtu<mode>): Likewise.
32116         (vector_gte<mode>): Likewise.
32117         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32118         to prevent the compiler from converting DImode operations to TImode.
32119         (ior<mode>3): Likewise.
32120         (and<mode>3): Likewise.
32121         (one_cmpl<mode>2): Likewise.
32122         (nor<mode>3): Likewise.
32123         (andc<mode>3): Likewise.
32125         * config/rs6000/constraints.md (wt constraint): New constraint
32126         that returns VSX_REGS if TImode is allowed in VSX registers.
32128         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32129         constant under VSX.
32131         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32132         similar to TImode, but it is restricted to being in the GPRs.
32134         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32135         TImode to occupy a single VSX register.
32137         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32138         -mvsx-timode for power7/power8.
32139         (power7 cpu): Likewise.
32140         (power8 cpu): Likewise.
32142         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32143         sure that TFmode/TDmode take up two registers if they are ever
32144         allowed in the upper VSX registers.
32145         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32146         registers.
32147         (rs6000_init_hard_regno_mode_ok): Likewise.
32148         (rs6000_debug_reg_global): Add debugging for PTImode and wt
32149         constraint.  Print if LRA is turned on.
32150         (rs6000_option_override_internal): Give an error if -mvsx-timode
32151         and VSX is not enabled.
32152         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
32153         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32154         to reg+offset addressing.  Use PTImode when checking offset
32155         addresses for validity.
32156         (reg_offset_addressing_ok_p): Likewise.
32157         (rs6000_legitimate_offset_address_p): Likewise.
32158         (rs6000_legitimize_address): Likewise.
32159         (rs6000_legitimize_reload_address): Likewise.
32160         (rs6000_legitimate_address_p): Likewise.
32161         (rs6000_eliminate_indexed_memrefs): Likewise.
32162         (rs6000_emit_move): Likewise.
32163         (rs6000_secondary_reload): Likewise.
32164         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
32165         reloads to fpr registers to continue to use reg+offset addressing,
32166         but 64-bit reloads to altivec registers need reg+reg addressing.
32167         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32168         it.  Treat LO_SUM like a PLUS operation.
32169         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32170         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32171         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32172         registers to share a register with a smaller sized type, since VSX
32173         puts scalars in the upper 64-bits.
32174         (print_operand): Add support for PTImode.
32175         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32176         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32177         registers, but don't have arithmetic support.
32178         (rs6000_memory_move_cost): Add test for VSX.
32179         (rs6000_opt_masks): Add -mvsx-timode.
32181         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32182         for TImode.
32183         (VSs): Likewise.
32184         (VSr): Use wt constraint for TImode.
32185         (VSv): Drop TImode support.
32186         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32187         (vsx_movti_64bit): Likewise.
32188         (vsx_movti_32bit): Likewise.
32189         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32190         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32191         one '?' on the appropriate output constraint.  Do not allow TImode
32192         logical operations on 32-bit systems.
32193         (vsx_ior<mode>3): Likewise.
32194         (vsx_xor<mode>3): Likewise.
32195         (vsx_one_cmpl<mode>2): Likewise.
32196         (vsx_nor<mode>3): Likewise.
32197         (vsx_andc<mode>3): Likewise.
32198         (vsx_concat_<mode>): Likewise.
32199         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32201         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32202         OPTION_MASK_VSX_TIMODE.
32203         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32204         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32206         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32207         (TI2 iterator): New iterator for TImode, PTImode.
32208         (wd mode attribute): Add values for vector types.
32209         (movti_string): Replace TI move operations with operations for TImode
32210         and PTImode.  Add support for TImode being allowed in VSX registers.
32211         (mov<mode>_string, TImode/PTImode): Likewise.
32212         (movti_ppc64): Likewise.
32213         (mov<mode>_ppc64, TImode/PTImode): Likewise.
32214         (TI mode splitters): Likewise.
32216         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32217         constraint.
32219 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
32221         PR tree-optimization/56355
32222         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32223         Also handle integers with undefined overflow.
32225 2013-03-20  Catherine Moore  <clm@codesourcery.com>
32226             Maciej W. Rozycki  <macro@codesourcery.com>
32227             Tom de Vries  <tom@codesourcery.com>
32228             Nathan Sidwell  <nathan@codesourcery.com>
32229             Iain Sandoe  <iain@codesourcery.com>
32230             Nathan Froyd  <froydnj@codesourcery.com>
32231             Chao-ying Fu  <fu@mips.com>
32233         * doc/extend.texi: (micromips, nomicromips, nocompression):
32234         Document new function attributes.
32235         * doc/invoke.texi (minterlink-compressed, mmicromips,
32236         m14k, m14ke, m14kec): Document new options.
32237         (minterlink-mips16): Update documentation.
32238         * doc/md.texi (ZC, ZD): Document new constraints.
32239         * configure.ac (gcc_cv_as_micromips): Check if linker
32240         supports the .set micromips directive.
32241         * configure: Regenerate.
32242         * config.in: Regenerate.
32243         * config/mips/mips-tables.opt: Regenerate.
32244         * config/mips/micromips.md: New file.
32245         * constraints.md (ZC, ZD): New constraints.
32246         * config/mips/predicates.md (movep_src_register): New predicate.
32247         (movep_src_operand): New predicate.
32248         (non_volatile_mem_operand): New predicate.
32249         * config/mips/mips.md (multimem): New type.
32250         (length): Differentiate between 17-bit and 18-bit branch offsets.
32251         (MOVEP1, MOVEP2): New mode iterator.
32252         (mov_<load>l): Use ZC constraint.
32253         (mov_<load>r): Likewise.
32254         (mov_<store>l): Likewise.
32255         (mov_<store>r): Likewise.
32256         (*branch_equality<mode>_inverted): Add microMIPS support.
32257         (*branch_equality<mode>): Likewise.
32258         (*jump_absolute): Likewise.
32259         (indirect_jump_<mode>): Likewise.
32260         (tablejump_<mode>): Likewise.
32261         (<optab>_internal): Likewise.
32262         (sibcall_internal): Likewise.
32263         (sibcall_value_internal): Likewise.
32264         (prefetch): Use constraint ZD.
32265         * config/mips/mips.opt (minterlink-compressed): New option.
32266         (minterlink-mips16): Now an alias for minterlink-compressed.
32267         (mmicromips): New option.
32268         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32269         (compare_and_swap_12): Likewise.
32270         (sync_add<mode>): Likewise.
32271         (sync_<optab>_12): Likewise.
32272         (sync_old_<optab>_12): Likewise.
32273         (sync_new_<optab>_12): Likewise.
32274         (sync_nand_12): Likewise.
32275         (sync_old_nand_12): Likewise.
32276         (sync_new_nand_12): Likewise.
32277         (sync_sub<mode>): Likewise.
32278         (sync_old_add<mode>): Likewise.
32279         (sync_old_sub<mode>): Likewise.
32280         (sync_new_add<mode>): Likewise.
32281         (sync_new_sub<mode>): Likewise.
32282         (sync_<optab><mode>): Likewise.
32283         (sync_old_<optab><mode>): Likewise.
32284         (sync_new_<optab><mode>): Likewise.
32285         (sync_nand<mode>): Likewise.
32286         (sync_old_nand<mode>): Likewise.
32287         (sync_new_nand<mode>): Likewise.
32288         (sync_lock_test_and_set<mode>): Likewise.
32289         (test_and_set_12): Likewise.
32290         (atomic_compare_and_swap<mode>): Likewise.
32291         (atomic_exchange<mode>_llsc): Likewise.
32292         (atomic_fetch_add<mode>_llsc): Likewise.
32293         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32294         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32295         (umips_save_restore_pattern_p): Likewise.
32296         (umips_load_store_pair_p): Likewise.
32297         (umips_output_load_store_pair): Likewise.
32298         (umips_movep_target_p): Likewise.
32299         (umips_12bit_offset_address_p): Likewise.
32300         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32301         (mips_base_mips16): Rename this...
32302         (mips_base_compression_flags): ...to this. Update all uses.
32303         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32304         (mips_mips16_decl_p): Delete.
32305         (mips_nomips16_decl_p): Delete.
32306         (mips_get_compress_on_flags): New function.
32307         (mips_get_compress_off_flags): New function.
32308         (mips_get_compress_mode): New function.
32309         (mips_get_compress_on_name): New function.
32310         (mips_get_compress_off_name): New function.
32311         (mips_insert_attributes): Support multiple compression types.
32312         (mips_merge_decl_attributes): Likewise.
32313         (umips_12bit_offset_address_p): New function.
32314         (mips_start_function_definition): Emit .set micromips directive.
32315         (mips_call_may_need_jalx_p): New function.
32316         (mips_function_ok_for_sibcall): Add microMIPS support.
32317         (mips_print_operand_punctuation): Support short delay slots and
32318         compact jumps.
32319         (umips_swm_mask, umips_swm_encoding): New.
32320         (umips_build_save_restore): New function.
32321         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32322         (was_mips16_p): Remove.
32323         (old_compression_mode): New.
32324         (mips_set_compression_mode): New function.
32325         (mips_set_current_function): Add microMIPS support.
32326         (mips_option_override): Likewise.
32327         (umips_save_restore_pattern_p): New function.
32328         (umips_output_save_restore): New function.
32329         (umips_load_store_pair_p_1): New function.
32330         (umips_load_store_pair_p): New function.
32331         (umips_output_load_store_pair_1): New function.
32332         (umips_output_load_store_pair): New function.
32333         (umips_movep_target_p) New function.
32334         (mips_prepare_pch_save): Add microMIPS support.
32335         * config/mips/mips.h (TARGET_COMPRESSION): New.
32336         (TARGET_CPU_CPP_BUILTINS): Update macro
32337         to use new compression flags and to support microMIPS.
32338         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32339         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32340         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32341         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32342         (ASM_SPEC): Support mmicromips and mno-micromips.
32343         (M16STORE_REG_P): New macro.
32344         (MIPS_CALL): Support TARGET_MICROMIPS.
32345         (MICROMIPS_J): New macro.
32346         (mips_base_mips16): Rename this...
32347         (mips_base_compression_flags): ...to this.
32348         (UMIPS_12BIT_OFFSET_P): New macro.
32349         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32350         (MULTILIB_DIRNAMES): Likewise.
32351 2013-03-20  Richard Biener  <rguenther@suse.de>
32353         PR tree-optimization/56661
32354         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32355         the result does not have to be distinct.
32357 2013-03-20  Richard Biener  <rguenther@suse.de>
32359         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32360         remap_gimple_op_r.
32362 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32363             Steven Bosscher  <steven@gcc.gnu.org>
32365         PR rtl-optimization/56605
32366         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32368 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32370         PR bootstrap/56656
32371         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32372         that require movd instead of movq.
32374 2013-03-20  Richard Biener  <rguenther@suse.de>
32376         * tree-ssa-structalias.c (struct variable_info): Add pointer
32377         to the first field of an aggregate with sub-vars.  Make
32378         this and the pointer to the next subfield its ID.
32379         (vi_next): New function.
32380         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32381         storedanything_id, integer_id): Increment by one.
32382         (new_var_info, get_call_vi, lookup_call_clobber_vi,
32383         get_call_clobber_vi): Adjust.
32384         (solution_set_expand): Simplify and speedup.
32385         (solution_set_add): Inline into ...
32386         (set_union_with_increment): ... this.  Adjust accordingly.
32387         (do_sd_constraint): Likewise.
32388         (do_ds_constraint): Likewise.
32389         (do_complex_constraint): Simplify.
32390         (build_pred_graph): Adjust.
32391         (solve_graph): Likewise.  Simplify and speedup.
32392         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32393         get_constraint_for_component_ref, get_constraint_for_1,
32394         first_vi_for_offset, first_or_preceding_vi_for_offset,
32395         create_function_info_for, create_variable_info_for_1,
32396         create_variable_info_for, intra_create_variable_infos): Adjust.
32397         (init_base_vars): Push NULL for ID zero.
32398         (compute_points_to_sets): Adjust.
32400 2013-03-20  Richard Biener  <rguenther@suse.de>
32402         * cfgloop.c (verify_loop_structure): Streamline and avoid
32403         ICEing on corrupt loop tree.
32404         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32405         loop tree.
32407 2013-03-20  Richard Biener  <rguenther@suse.de>
32409         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32410         check whether an SSA update is needed.
32412 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
32414         * config/mips/constraints.md (T): Rename to...
32415         (Yf): ...this.
32416         (U): Rename to...
32417         (Yd): ...this.
32418         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32419         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32421 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32423         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32424         (*subsi3_carryin_uxtw): Likewise.
32426 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32428         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32429         (*rorsi3_insn_uxtw): Likewise.
32431 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32433         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32434         (*extrsi5_insn_uxtw): Likewise.
32436 2013-03-19  Richard Biener  <rguenther@suse.de>
32438         PR tree-optimization/56273
32439         * passes.c (init_optimization_passes): Move second VRP after DOM.
32441 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
32443         * config/i386/i386.md (*movti_internal): Merge from
32444         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
32445         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
32446         nox64 isa attributes.
32448 2013-03-18  Richard Biener  <rguenther@suse.de>
32450         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32451         (unite): Likewise.
32452         (merge_node_constraints): Likewise.
32453         (build_succ_graph): Likewise.
32454         (valid_graph_edge): Inline into single caller.
32455         (unify_nodes): Likewise.  Use bitmap_set_bit return value
32456         and cache varinfo.
32457         (scc_visit): Fix formatting and variable use.
32458         (do_sd_constraint): Use gcc_checking_assert.
32459         (do_ds_constraint): Likewise.
32460         (do_complex_constraint): Likewise.
32461         (condense_visit): Likewise.  Cleanup.
32462         (dump_pred_graph): New function.
32463         (perform_var_substitution): Dump the pred-graph before
32464         variable substitution.
32465         (find_equivalent_node): Use gcc_checking_assert.
32466         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32468 2013-03-18  Richard Biener  <rguenther@suse.de>
32470         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32471         Remove cond_expr_stmt_list argument and do not gimplify the
32472         built expression.
32473         (vect_loop_versioning): Adjust.
32474         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32475         Cleanup to use less temporaries.
32476         (vect_create_data_ref_ptr): Cleanup.
32478 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32480         PR tree-optimization/56635
32481         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32482         require types_compatible_p types.
32484 2013-03-18  Nick Clifton  <nickc@redhat.com>
32486         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32487         spurious backslash.
32489         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32490         Add missing line to comment describing function.
32492 2013-03-18  Richard Biener  <rguenther@suse.de>
32494         PR tree-optimization/56210
32495         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32496         Handle string / character search functions.
32497         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32499 2013-03-18  Richard Biener  <rguenther@suse.de>
32501         PR middle-end/56483
32502         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32503         and implement properly.
32504         * gimple.h (gimple_cond_single_var_p): Remove.
32506 2013-03-18  Richard Biener  <rguenther@suse.de>
32508         * tree-data-ref.h (find_data_references_in_loop): Declare.
32509         * tree-data-ref.c (get_references_in_stmt): Use a stack
32510         vector pre-allocated in the callers.
32511         (find_data_references_in_stmt): Adjust.
32512         (graphite_find_data_references_in_stmt): Likewise.
32513         (create_rdg_vertices): Likewise.
32514         (find_data_references_in_loop): Export.
32515         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32516         Compute dependences here...
32517         (vect_analyze_data_refs): ...not here.  When we encounter
32518         a non-vectorizable data reference in basic-block vectorization
32519         truncate the data reference vector.  Do not bother to
32520         fixup data-dependence information for gather loads.
32521         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32522         of data references, as reported.
32524 2013-03-18  Richard Biener  <rguenther@suse.de>
32526         PR tree-optimization/3713
32527         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
32528         has_constants and expr.
32529         (stmt_has_constants): Properly valueize SSA names when deciding
32530         whether the stmt has constants.
32532 2013-03-18  Richard Biener  <rguenther@suse.de>
32534         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32535         whole function when there is nothing to do.
32536         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32537         * tree-vectorizer.c (vectorize_loops): Update virtual and
32538         loop-closed SSA once.
32539         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32541 2013-03-18  Richard Biener  <rguenther@suse.de>
32543         PR middle-end/56113
32544         * domwalk.c (bb_postorder): New global static.
32545         (cmp_bb_postorder): New function.
32546         (walk_dominator_tree): Replace scheme imposing an order for
32547         visiting dominator sons by one sorting them at the time they
32548         are pushed on the stack.
32550 2013-03-18  Richard Biener  <rguenther@suse.de>
32552         PR tree-optimization/39326
32553         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32554         (struct mem_ref): Replace mem member with ao_ref typed member.
32555         (MEM_ANALYZABLE): Adjust.
32556         (memref_eq): Likewise.
32557         (mem_ref_alloc): Likewise.
32558         (gather_mem_refs_stmt): Likewise.
32559         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32560         (execute_sm_if_changed_flag_set): Adjust.
32561         (execute_sm): Likewise.
32562         (ref_always_accessed_p): Likewise.
32563         (refs_independent_p): Likewise.
32564         (can_sm_ref_p): Likewise.
32566 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32568         PR c/56566
32569         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32570         return 1 even for !unsignedp.
32572 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32574         * config/i386/i386.md (isa): Add x64 and nox64.
32575         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32576         (*pushtf): Enable *roF alternative for x64 isa only.
32577         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
32578         mode attribute of integer alternatives to DImode for TARGET_64BIT.
32579         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
32580         (*movtf_internal): Merge from *movtf_internal_rex64 and
32581         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
32582         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
32583         nox64 isa attributes.
32584         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
32585         nox64 isa attributes.
32586         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32588 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32590         * config/alpha/alpha.c (TARGET_LRA_P): New define.
32592 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
32594         PR target/56640
32595         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32596         class names.  Remove trailing comma after "ALL_REGS".
32598 2013-03-16  Jan Hubicka  <jh@suse.cz>
32600         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32601         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32602         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32603         of cgraph_get_create_node.
32604         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32606 2013-03-16  Jason Merrill  <jason@redhat.com>
32608         PR debug/49090
32609         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32610         with DW_AT_default_value.
32612 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
32614         * BASE-VER: Set to 4.9.0.
32616 2013-03-14  Andi Kleen  <ak@linux.intel.com>
32618         PR target/56619
32619         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32620         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32621         Document _x* TSX intrinsics.
32623 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32624             David Holsgrove  <david.holsgrove@xilinx.com>
32626         * configure.ac: Add MicroBlaze TLS support detection.
32627         * configure: Regenerate.
32628         * config/microblaze/microblaze-protos.h
32629         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32630         symbol_mentioned_p, label_mentioned_p): Add prototypes.
32631         * config/microblaze/microblaze.c (microblaze_address_type): Add
32632         ADDRESS_TLS and tls_reloc address types.
32633         (microblaze_address_info): Add tls_reloc.
32634         (TARGET_HAVE_TLS): Define.
32635         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32636          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32637          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32638         load_tls_operand,  microblaze_call_tls_get_addr,
32639         microblaze_legitimize_tls_address): New functions.
32640         (microblaze_classify_unspec): Handle UNSPEC_TLS.
32641         (get_base_reg): Use microblaze_tls_symbol_p.
32642         (microblaze_classify_address): Handle TLS.
32643         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32644         label_mentioned_p and microblaze_tls_referenced_p.
32645         (microblaze_legitimize_address): Handle TLS.
32646         (microblaze_address_insns): Handle ADDRESS_TLS.
32647         (pic_address_needs_scratch): Handle TLS.
32648         (print_operand_address): Handle TLS.
32649         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32650         (microblaze_expand_move): Handle TLS.
32651         (microblaze_legitimate_constant_p): Check
32652         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32653         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32654         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32655         (PIC_OFFSET_TABLE_REGNUM): Set.
32656         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32657         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
32658         (addsi3, movsi_internal2, movdf_internal): Update constraints
32659         * config/microblaze/predicates.md (arith_plus_operand): Define
32660         (move_operand): Redefine as move_src_operand,
32661         check microblaze_tls_referenced_p.
32663 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32665         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
32666         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
32668 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32670         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32671         CC mode for AND.
32673 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
32675         PR tree-optimization/53265
32676         * common.opt (Waggressive-loop-optimizations): New option.
32677         * tree-ssa-loop-niter.c: Include tree-pass.h.
32678         (do_warn_aggressive_loop_optimizations): New function.
32679         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
32680         if number_of_latch_executions returned constant.
32681         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32682         early.  If number_of_latch_executions returned constant, set
32683         nb_iterations_upper_bound back to it.
32684         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32685         field.
32686         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32687         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32689         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32690         (MULTILIB_OSDIRNAMES): Set.
32691         * genmultilib: If defaultosdirname doesn't start with :: , set
32692         defaultosdirname2 instead, clear it and emit two . multilib_raw
32693         entries instead of just one.
32695 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
32697         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32698         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32699         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32700         (SUBTARGET_OVERRIDE_OPTIONS): New.
32702 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
32704         PR target/49880
32705         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32706         (musermode): Convert to Var(TARGET_USERMODE).
32707         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32708         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32709         * config/sh/sh.c (sh_option_override): Use
32710         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32711         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32712         condition.
32713         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32714         TARGET_SH4.
32715         (udivsi3_i4_single, divsi3_i4_single): Use
32716         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32718 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
32720         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32721         default setting.
32723 2013-03-13  Richard Biener  <rguenther@suse.de>
32725         PR tree-optimization/56608
32726         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32727         calls when vectorizing basic-blocks.
32729 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
32731         PR plugins/45078
32732         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32733         tm_file.
32735 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
32737         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32739 2013-03-11  Jan Hubicka  <jh@suse.cz>
32741         PR lto/56557
32742         * lto-streamer-out.c (output_symbol_p): Skip references from
32743         constructors of external variables.
32745 2013-03-11  Jan Hubicka  <jh@suse.cz>
32747         PR middle-end/56571
32748         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32749         from pseudos.
32750         * emit-rtl.c (verify_rtx_sharing): Likewise.
32751         (copy_insn_1): Likewise.
32752         * rtl.c (copy_rtx): Likewise.
32754 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
32756         PR target/56591
32757         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
32758         output_operand_lossage message.
32760 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
32762         PR target/56470
32763         * arm.c (shift_op): Validate RTL pattern on the fly.
32764         (arm_print_operand, case 'S'): Don't use shift_operator to validate
32765         the RTL.
32767 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32769         PR target/56347
32770         * config/pa/pa.md (call_value): Check for calls to powf and direct to
32771         new call patterns that clobber %fr12.
32772         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
32773         split and postreload patterns.
32774         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
32775         registers %fr12 and %fr12R as call used.
32777 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
32779         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
32780         (canon_address, record_store, replace_read, check_mem_read_rtx,
32781         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
32782         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
32783         rest_of_handle_dse): Likewise.
32785 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
32787         PR middle-end/56524
32788         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
32789         Add base_optabs.
32790         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
32791         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
32792         (save_optabs_if_changed): Replace with...
32793         (init_tree_optimization_optabs): ...this.
32794         * optabs.c (save_optabs_if_changed): Rename to...
32795         (init_tree_optimization_optabs): ...this.  Take the optimization node
32796         as argument.  Do nothing if the base optabs are already correct.
32797         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
32798         to recompute optabs.
32799         * function.h (function): Remove optabs field.
32800         * function.c (invoke_set_current_function_hook): Call
32801         init_tree_optimization_optabs.  Use the result to initialize
32802         this_fn_optabs.
32804 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
32806         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
32807         if GTMA_HAS_NO_INSTRUMENTATION.
32808         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
32809         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
32810         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
32811         * gimple-pretty-print.c (dump_gimple_transaction): Handle
32812         GTMA_HAS_NO_INSTRUMENTATION.
32814 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
32816         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
32817         libasan_preinit.o.
32819 2013-03-08  Marek Polacek  <polacek@redhat.com>
32820             Jakub Jelinek  <jakub@redhat.com>
32822         PR tree-optimization/56478
32823         * predict.c (is_comparison_with_loop_invariant_p): Change the
32824         type of loop_step to tree.
32825         (predict_loops): Adjust.
32826         (predict_iv_comparison): Perform the computations on double_ints.
32828 2013-03-08  Richard Biener  <rguenther@suse.de>
32830         PR tree-optimization/56570
32831         * tree-cfg.c (verify_expr_location_1): Verify locations for
32832         DECL_DEBUG_EXPR.
32833         * tree-sra.c (create_access_replacement): Strip locations
32834         from DECL_DEBUG_EXPRs.
32836 2013-03-08  Richard Biener  <rguenther@suse.de>
32838         * tree-inline.c (expand_call_inline): Do not associate
32839         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
32840         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
32842 2013-03-08  Richard Biener  <rguenther@suse.de>
32844         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
32845         or block changes with -Og.  Fix for location / block encoding
32846         changes and PHI arguments with locations.
32848 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
32850         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
32851         for all counters.
32852         (struct output_info): Likewise.
32853         (register_overhead): Remove bad gcc_assert.
32854         (bitmap_find_bit): If there is only a single bitmap element, do not
32855         count a miss as a search.
32856         (print_statistics): Update for counter type changes.
32857         (dump_bitmap_statistics): Likewise.  Print headers such that they
32858         are properly lined up with the printed counters.
32860 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
32862         PR tree-optimization/56559
32863         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
32864         check that it has only a single use.
32866 2013-03-07  Richard Biener  <rguenther@suse.de>
32868         * doc/invoke.texi (fwhole-program): Discourage use in combination
32869         with -flto.
32871 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
32873         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
32875         PR tree-optimization/56539
32876         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
32877         instead of GSI_CONTINUE_LINKING as last argument to
32878         force_gimple_operand_gsi.  Adjust function comment.
32880         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
32881         aarch64-cores.def.
32883         PR middle-end/56548
32884         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
32885         promoted mode, convert the result back to the original mode.
32887 2013-03-06  Richard Biener  <rguenther@suse.de>
32889         PR middle-end/56294
32890         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
32891         (insert_updated_phi_nodes_compare_uids): New function.
32892         (update_ssa): Sort symbols_to_rename after UID before
32893         traversing it to insert PHI nodes.
32895 2013-03-06  Richard Biener  <rguenther@suse.de>
32897         PR middle-end/50494
32898         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
32899         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
32901         Revert
32902         2013-02-13  Richard Biener  <rguenther@suse.de>
32904         PR lto/50494
32905         * varasm.c (output_constant_def_1): Get the decl representing
32906         the constant as argument.
32907         (output_constant_def): Wrap output_constant_def_1.
32908         (make_decl_rtl): Use output_constant_def_1 with the decl
32909         representing the constant.
32910         (build_constant_desc): Optionally re-use a decl already
32911         representing the constant.
32912         (tree_output_constant_def): Adjust.
32914 2013-03-06  Joey Ye  <joey.ye@arm.com>
32916         PR lto/50293
32917         * gcc.c (convert_white_space): New function.
32918         (main): Handles white space in function name.
32920 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
32922         PR target/56529
32923         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
32924         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
32925         to SH_DIV_CALL_TABLE for TARGET_SH2.
32926         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
32927         list.
32928         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
32929         call-table options.
32931 2013-03-05  Sterling Augustine  <saugustine@google.com>
32932             Cary Coutant  <ccoutant@google.com>
32934         PR debug/55364
32935         * dwarf2out.c (resolve_addr): Don't call
32936         remove_loc_list_addr_table_entries a second time for the same
32937         expression.
32939 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32941         PR debug/56510
32942         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
32943         (avoid_complex_debug_insns): New function.
32944         (expand_debug_locations): Call it.
32946         PR rtl-optimization/56484
32947         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
32948         lifetimes of hard registers on small register class machines.
32950 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32952         * config/microblaze/microblaze-protos.h: Rename
32953         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
32954         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
32955         fast_interrupt.
32956         (microblaze_fast_interrupt_function_p): New function.
32957         (microblaze_is_interrupt_handler): Rename to
32958         microblaze_is_interrupt_variant and add fast_interrupt check.
32959         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
32960         (save_restore_insns): Likewise.
32961         (compute_frame_size): Likewise.
32962         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
32963         (microblaze_globalize_label): Likewise.
32964         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
32965         * config/microblaze/microblaze.md: Use wrapper
32966         microblaze_is_interrupt_variant.
32968 2013-03-05  Kai Tietz  <ktietz@redhat.com>
32970         * sdbout.c (sdbout_one_type): Switch to current function's section
32971         supporting cold/hot.
32973 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32975         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
32976         -mxl-reorder.
32978 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32980         PR middle-end/56461
32981         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
32982         if VALGRIND_GET_VBITS is defined, temporarily make object
32983         memory all defined, and restore previous valgrind addressability
32984         and definability afterwards.  Free this_object at the end.
32986         PR middle-end/56461
32987         * lra.c (lra): Call lra_clear_live_ranges if live_p,
32988         right before calling lra_create_live_ranges, also call it
32989         when clearing live_p.  Only call lra_clear_live_ranges
32990         at the end if live_p.
32992         PR middle-end/56461
32993         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
32995 2013-03-05  Richard Biener  <rguenther@suse.de>
32997         PR tree-optimization/56521
32998         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
32999         value-id.
33001 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
33003         PR c++/55135
33004         * except.h (remove_unreachable_eh_regions): New prototype.
33005         * except.c (remove_eh_handler_splicer): New function, split out
33006         of remove_eh_handler.
33007         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
33008         warning about running it on many EH regions one at a time.
33009         (remove_unreachable_eh_regions_worker): New function, walk the
33010         EH tree in depth-first order and remove non-marked regions.
33011         (remove_unreachable_eh_regions): New function.
33012         * tree-eh.c (mark_reachable_handlers): New function, split out
33013         from remove_unreachable_handlers.
33014         (remove_unreachable_handlers): Use mark_reachable_handlers and
33015         remove_unreachable_eh_regions.
33016         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33017         and remove_unreachable_eh_regions.
33019 2013-03-05  Richard Biener  <rguenther@suse.de>
33021         PR middle-end/56525
33022         * loop-init.c (fix_loop_structure): Remove loops in two stages,
33023         not freeing them until the end.
33025 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33027         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33029 2013-03-05  Richard Biener  <rguenther@suse.de>
33031         PR tree-optimization/56270
33032         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33033         of loads after scheduling an SLP instance.
33035 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33037         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33038         tic6x.exp.
33039         (check_gcc_parallelize): Run guality.exp as a separate job from
33040         vect.exp with unsorted.exp and $(dg_target_exps) separately from
33041         struct-layout-1.exp with stackalign.exp.
33043         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33045         PR middle-end/56461
33046         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33047         load_index sbitmap even if some bit in it isn't set.
33049         PR middle-end/56461
33050         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33051         (discover_iteration_bound_by_body_walk): Change queues to
33052         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
33053         spelling in comment.  Call safe_push on queues[bound_index] directly.
33054         Release queues[queue_index] in every iteration unconditionally.
33055         Release bounds vector.
33057         PR middle-end/56461
33058         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33059         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33060         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33061         inner_phis vector.
33063 2013-03-05  Richard Biener  <rguenther@suse.de>
33065         PR lto/56515
33066         * tree-inline.c (remap_blocks_to_null): New function.
33067         (expand_call_inline): When expanding a call stmt without
33068         an associated block inline remap all callee blocks to NULL.
33070 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33072         PR rtl-optimization/56494
33073         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33074         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33075         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33077         PR middle-end/56461
33078         * sel-sched-ir.c (free_sched_pools): Release
33079         succs_info_pool.stack[succs_info_pool.max_top] vectors too
33080         if succs_info_pool.max_top isn't -1.
33082         PR bootstrap/56509
33083         * opts.c (opts_obstack, opts_concat): Moved to...
33084         * opts-common.c (opts_obstack, opts_concat): ... here.
33086 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33088         PR middle-end/56461
33089         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33091 2013-03-04  Martin Jambor  <mjambor@suse.cz>
33093         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33094         all appropriate places.
33096 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
33098         PR tree-optimization/56424
33099         * ipa-split.c (split_function): Do not set the RSO flag if result is
33100         not by reference and its type is a register type.
33102 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
33104         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33105         (microblaze_legitimate_pic_operand): Likewise
33106         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33107         new function microblaze_legitimate_pic_operand
33108         * config/microblaze/microblaze-protos.h
33109         (microblaze_legitimate_pic_operand): Declare.
33111 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33113         * config/microblaze/predicates.md (call_insn_simple_operand):
33114         New predicate for supported rtx code types.
33115         * config/microblaze/microblaze.md (call_internal1): Use
33116         call_insn_simple_operand predicate.
33118 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33120         PR middle-end/56461
33121         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33122         partitions.ordered_remove.
33124         PR middle-end/56461
33125         * tree-vect-stmts.c (vectorizable_conversion): Don't call
33126         vec_oprnds0.create (1) for modifier == NONE.
33128         PR middle-end/56461
33129         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33130         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33131         vec_oprnds1 right before pushing anything to it for
33132         scalar_shift_arg.
33134         PR middle-end/56461
33135         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33136         set nbbs to 0 instead of having separate code path.
33137         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33138         instead of false as last argument if returning NULL.
33140 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
33142         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33143         the attribute is now called "target" instead of "option".
33144         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33145         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
33146         attribute/pragma name for TARGET_OPTION_VALID_P and
33147         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
33148         * doc/tm.texi: Regenerated.
33150 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
33152         * config/microblaze/microblaze.c:
33153         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33154         * config/microblaze/microblaze.h: Add -mxl-reorder to
33155         DRIVER_SELF_SPECS.
33156         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33157         instructions emitted if TARGET_REORDER.
33158         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33159         or 0 for -m/-mno case, but initialises as 2 to detect default use case
33160         separately.
33162 2013-03-01  Xinliang David Li  <davidxl@google.com>
33164         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33165         walk length.
33167 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
33169         PR middle-end/56461
33170         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33171         vector even when returning true.  Fix up function comment formatting.
33173         PR middle-end/56461
33174         * ira-build.c (ira_loop_nodes_count): New variable.
33175         (create_loop_tree_nodes): Initialize it.
33176         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33178         PR middle-end/56461
33179         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33180         method on dr_chain and result_chain.
33181         * tree-vect-stmts.c (vectorizable_store): Only call
33182         result_chain.create if j == 0.
33184         PR middle-end/56461
33185         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33186         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33187         before overwriting it.
33189 2013-03-01  Tobias Burnus  <burnus@net-b.de>
33191         * doc/extended.texi (C Extensions): Change order in @menu
33192         to match @node.
33193         (Other MIPS Built-in Functions): Move last MIPS entry before
33194         "picoChip Built-in Functions".
33195         (SH Built-in Functions): Move after RX Built-in Functions.
33196         * doc/gcc.texi (Introduction): Change order in @menu
33197         to match @node.
33198         * doc/md.texi (Constraints): Ditto.
33199         * gty.texi (Type Information): Ditto.
33200         (User-provided marking routines for template types): Make
33201         subsection.
33202         * doc/invoke.texi (AArch64 Options): Move before
33203         "Adapteva Epiphany Options".
33205 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
33206             Jakub Jelinek  <jakub@redhat.com>
33208         PR sanitizer/56454
33209         * asan.c (gate_asan): Lookup no_sanitize_address instead of
33210         no_address_safety_analysis attribute.
33211         * doc/extend.texi (no_address_safety_attribute): Rename to
33212         no_sanitize_address attribute, mention no_address_safety_analysis
33213         attribute as deprecated alias.
33215 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
33217         PR middle-end/56461
33218         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33219         type to vec<vec<tree> > *.
33220         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
33221         to be vec<tree> instead of vec<tree> *, set vec_defs
33222         to vNULL and call vec_defs.create (number_of_vects), adjust other
33223         uses of vec_defs.
33224         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33225         vectorizable_condition): Adjust vect_get_slp_defs callers.
33227 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33229         * config/aarch64/aarch64.c
33230         (aarch64_float_const_representable): Remove unused variable.
33232 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33234         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33236 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33238         * config/aarch64/aarch64-builtins.c
33239         (aarch64_init_simd_builtins): Make static.
33241 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33243         * config/aarch64/aarch64.c
33244         (aarch64_simd_make_constant): Make static.
33246 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33248         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33249         with no initialization to the RHS of debug statements.
33251 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33253         PR tree-optimization/56294
33254         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33255         Adjust dumping.
33256         (get_access_replacement): Do not call create_access_replacement.
33257         Assert a replacement exists.
33258         (get_repl_default_def_ssa_name): Create the replacement declaration
33259         itself.
33261 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33263         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33264         final_end_function.
33266 2013-02-28  Marek Polacek  <polacek@redhat.com>
33268         PR rtl-optimization/56466
33269         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33270         if we're changing a loop.
33271         (peel_loops_completely): Likewise.
33273 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
33275         PR c++/55813
33276         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33278 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33280         PR target/56445
33281         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33282         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33283         INTX_FTYPE_FX, FX_FTYPE_INTX.
33284         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33286 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33288         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33289         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33290         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33291         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33292         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33293         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33294         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33295         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33296         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33297         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33298         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33299         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33300         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33301         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33302         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33303         (avrxmega6): Increase max flash segments from 5 to 6.
33304         * config/avr/t-multilib: Regenerate.
33305         * config/avr/avr-tables.opt: Regenerate.
33306         * doc/avr-mmcu.texi: Regenerate.
33308 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33310         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33311         (avr_device_to_arch): Rename to avr_device_to_ld.
33312         (avr_device_to_as): New prototype.
33313         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33314         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33315         * config/avr/driver-avr.c (avr_device_to_as): New.
33316         (avr_device_to_arch): Rename to avr_device_to_ld.
33318 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33320         PR middle-end/56461
33321         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33322         method on dr_chain and result_chain.
33324         PR middle-end/56461
33325         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33326         pointer_set_destroy on not_executed_last_iteration.
33328         PR middle-end/56461
33329         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33331         PR middle-end/56461
33332         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33333         FOR_EACH_DEFINED_FUNCTION when freeing state.
33335         PR middle-end/56461
33336         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33337         pool_free.
33338         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33339         overwriting it.
33341         PR middle-end/56461
33342         * ipa-cp.c (decide_whether_version_node): Call vec_free on
33343         known_aggs[i].items and release known_aggs vector.
33345         PR middle-end/56461
33346         * ipa-reference.c (propagate): Free node_info even for alias nodes.
33348 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33350         * config/microblaze/microblaze.c (microblaze_emit_compare):
33351         Use xor for EQ/NE comparisions.
33352         * config/microblaze/microblaze.md (cstoresf4): Add constraints
33353         (cbranchsf4): Adjust operator to comparison_operator.
33355 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33357         PR middle-end/56461
33358         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33359         vector.
33360         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33361         vec_safe_push, always update *slot.
33362         (redirect_edge_var_map_clear): Use vec_free.
33363         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33364         (free_var_map_entry): Use vec_free.
33365         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33366         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33368 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
33370         PR middle-end/45472
33371         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33372         when the may_trap_p bit of the exprs being merged differs.
33373         Reorder tests for speculativeness in the logical and operator.
33375 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33377         * incpath.c (add_standard_paths): Use reconcat instead of concat
33378         where appropriate and avoid leaking memory.
33380         * opts.h: Include obstack.h.
33381         (opts_concat): New prototype.
33382         (opts_obstack): New declaration.
33383         * opts.c (opts_concat): New function.
33384         (opts_obstack): New variable.
33385         (init_options_struct): Call gcc_init_obstack on opts_obstack.
33386         (finish_options): Use opts_concat instead of concat
33387         and XOBNEWVEC instead of XNEWVEC.
33388         * opts-common.c (generate_canonical_option, decode_cmdline_option,
33389         generate_option): Likewise.
33390         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33391         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33393         PR target/56455
33394         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33395         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33397 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33399         PR middle-end/56461
33400         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33402 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33404         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33405         (arm_block_move_unaligned_straight): Likewise.
33406         (arm_adjust_block_mem): Likewise.
33408 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33410         PR target/48901
33411         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33412         temp, cond and label.
33413         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33415         PR target/52500
33416         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33417         * config/c6x/c6x.h (dbx_register_map): Update declaration.
33419         PR target/52501
33420         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33421         of prologue/epilogue functions.
33423         PR target/52550
33424         * config/tilegx/tilegx.c (tilegx_expand_prologue):
33425         Remove unused variable cfa_offset.
33426         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33428         PR target/54639
33429         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33430         type promotion to unsigned.
33432         PR target/54640
33433         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33434         for HOST_WIDE_INT of 32 bit / same size as int.
33435         (arm_block_move_unaligned_straight): Likewise.
33436         (arm_adjust_block_mem): Likewise.
33438         PR target/54662
33439         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33440         ALL_CFLAGS.
33442 2013-02-26  Marek Polacek  <polacek@redhat.com>
33444         PR tree-optimization/56426
33445         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33447 2013-02-26  Richard Biener  <rguenther@suse.de>
33449         PR target/56444
33450         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33451         unused variable loops.
33453 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33455         PR tree-optimization/56448
33456         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33457         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33458         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33459         later operands of the references, or even first operand for
33460         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33462         PR tree-optimization/56443
33463         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33464         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33465         to type_for_mode langhook.
33467 2013-02-25  Matt Turner  <mattst88@gmail.com>
33469         * doc/invoke.texi: Document r4700.
33471 2013-02-25  Richard Biener  <rguenther@suse.de>
33473         PR tree-optimization/56175
33474         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33475         split out from ...
33476         (simplify_bitwise_binary): ... here.  Also guard the conversion
33477         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33479 2013-02-25  Catherine Moore  <clm@codesourcery.com>
33481         Revert:
33482         2013-02-24  Catherine Moore  <clm@codesourcery.com>
33483             Maciej W. Rozycki  <macro@codesourcery.com>
33484             Tom de Vries  <tom@codesourcery.com>
33485             Nathan Sidwell  <nathan@codesourcery.com>
33486             Iain Sandoe  <iain@codesourcery.com>
33487             Nathan Froyd  <froydnj@codesourcery.com>
33488             Chao-ying Fu  <fu@mips.com>
33490         * doc/extend.texi: (micromips, nomicromips, nocompression):
33491         Document new function attributes.
33492         * doc/invoke.texi (minterlink-compressed, mmicromips,
33493         m14k, m14ke, m14kec): Document new options.
33494         (minterlink-mips16): Update documentation.
33495         * doc/md.texi (ZC, ZD): Document new constraints.
33496         * configure.ac (gcc_cv_as_micromips): Check if linker
33497         supports the .set micromips directive.
33498         * configure: Regenerate.
33499         * config.in: Regenerate.
33500         * config/mips/mips-tables.opt: Regenerate.
33501         * config/mips/micromips.md: New file.
33502         * constraints.md (ZC, AD): New constraints.
33503         * config/mips/predicates.md (movep_src_register): New predicate.
33504         (movep_src_operand): New predicate.
33505         (non_volatile_mem_operand): New predicate.
33506         * config/mips/mips.md (multimem): New type.
33507         (length): Differentiate between 17-bit and 18-bit branch offsets.
33508         (MOVEP1, MOVEP2): New mode iterator.
33509         (mov_<load>l): Use ZC constraint.
33510         (mov_<load>r): Likewise.
33511         (mov_<store>l): Likewise.
33512         (mov_<store>r): Likewise.
33513         (*branch_equality<mode>_inverted): Add microMIPS support.
33514         (*branch_equality<mode>): Likewise.
33515         (*jump_absolute): Likewise.
33516         (indirect_jump_<mode>): Likewise.
33517         (tablejump_<mode>): Likewise.
33518         (<optab>_internal): Likewise.
33519         (sibcall_internal): Likewise.
33520         (sibcall_value_internal): Likewise.
33521         (prefetch): Use constraint ZD.
33522         * config/mips/mips.opt (minterlink-compressed): New option.
33523         (minterlink-mips16): Now an alias for minterlink-compressed.
33524         (mmicromips): New option.
33525         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33526         (compare_and_swap_12): Likewise.
33527         (sync_add<mode>): Likewise.
33528         (sync_<optab>_12): Likewise.
33529         (sync_old_<optab>_12): Likewise.
33530         (sync_new_<optab>_12): Likewise.
33531         (sync_nand_12): Likewise.
33532         (sync_old_nand_12): Likewise.
33533         (sync_new_nand_12): Likewise.
33534         (sync_sub<mode>): Likewise.
33535         (sync_old_add<mode>): Likewise.
33536         (sync_old_sub<mode>): Likewise.
33537         (sync_new_add<mode>): Likewise.
33538         (sync_new_sub<mode>): Likewise.
33539         (sync_<optab><mode>): Likewise.
33540         (sync_old_<optab><mode>): Likewise.
33541         (sync_new_<optab><mode>): Likewise.
33542         (sync_nand<mode>): Likewise.
33543         (sync_old_nand<mode>): Likewise.
33544         (sync_new_nand<mode>): Likewise.
33545         (sync_lock_test_and_set<mode>): Likewise.
33546         (test_and_set_12): Likewise.
33547         (atomic_compare_and_swap<mode>): Likewise.
33548         (atomic_exchange<mode>_llsc): Likewise.
33549         (atomic_fetch_add<mode>_llsc): Likewise.
33550         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33551         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33552         (umips_save_restore_pattern_p): Likewise.
33553         (umips_load_store_pair_p): Likewise.
33554         (umips_output_load_store_pair): Likewise.
33555         (umips_movep_target_p): Likewise.
33556         (umips_12bit_offset_address_p): Likewise.
33557         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33558         (mips_base_mips16): Rename this...
33559         (mips_base_compression_flags): ...to this. Update all uses.
33560         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33561         (mips_mips16_decl_p): Delete.
33562         (mips_nomips16_decl_p): Delete.
33563         (mips_get_compress_on_flags): New function.
33564         (mips_get_compress_off_flags): New function.
33565         (mips_get_compress_mode): New function.
33566         (mips_get_compress_on_name): New function.
33567         (mips_get_compress_off_name): New function.
33568         (mips_insert_attributes): Support multiple compression types.
33569         (mips_merge_decl_attributes): Likewise.
33570         (umips_12bit_offset_address_p): New function.
33571         (mips_start_function_definition): Emit .set micromips directive.
33572         (mips_call_may_need_jalx_p): New function.
33573         (mips_function_ok_for_sibcall): Add microMIPS support.
33574         (mips_print_operand_punctuation): Support short delay slots and
33575         compact jumps.
33576         (umips_swm_mask, umips_swm_encoding): New.
33577         (umips_build_save_restore): New function.
33578         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33579         (was_mips16_p): Remove.
33580         (old_compression_mode): New.
33581         (mips_set_compression_mode): New function.
33582         (mips_set_current_function): Add microMIPS support.
33583         (mips_option_override): Likewise.
33584         (umips_save_restore_pattern_p): New function.
33585         (umips_output_save_restore): New function.
33586         (umips_load_store_pair_p_1): New function.
33587         (umips_load_store_pair_p): New function.
33588         (umips_output_load_store_pair_1): New function.
33589         (umips_output_load_store_pair): New function.
33590         (umips_movep_target_p) New function.
33591         (mips_prepare_pch_save): Add microMIPS support.
33592         * config/mips/mips.h (TARGET_COMPRESSION): New.
33593         (TARGET_CPU_CPP_BUILTINS): Update macro
33594         to use new compression flags and to support microMIPS.
33595         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33596         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33597         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33598         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33599         (ASM_SPEC): Support mmicromips and mno-micromips.
33600         (M16STORE_REG_P): New macro.
33601         (MIPS_CALL): Support TARGET_MICROMIPS.
33602         (MICROMIPS_J): New macro.
33603         (mips_base_mips16): Rename this...
33604         (mips_base_compression_flags): ...to this.
33605         (UMIPS_12BIT_OFFSET_P): New macro.
33606         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33607         (MULTILIB_DIRNAMES): Likewise.
33609 2013-02-25  Tom de Vries  <tom@codesourcery.com>
33611         PR rtl-optimization/56131
33612         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33613         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33614         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33616 2013-02-25  Tobias Burnus  <burnus@net-b.de>
33618         * doc/invoke.texi (-fsanitize=): Move from optimization
33619         to debugging options.
33621 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33623         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33625 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33626             Alexander Monakov  <amonakov@ispras.ru>
33628         PR middle-end/56077
33629         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33630         flush pending lists also on non-jumps.  Adjust comment.
33632 2013-02-24  Catherine Moore  <clm@codesourcery.com>
33633             Maciej W. Rozycki  <macro@codesourcery.com>
33634             Tom de Vries  <tom@codesourcery.com>
33635             Nathan Sidwell  <nathan@codesourcery.com>
33636             Iain Sandoe  <iain@codesourcery.com>
33637             Nathan Froyd  <froydnj@codesourcery.com>
33638             Chao-ying Fu  <fu@mips.com>
33640         * doc/extend.texi: (micromips, nomicromips, nocompression):
33641         Document new function attributes.
33642         * doc/invoke.texi (minterlink-compressed, mmicromips,
33643         m14k, m14ke, m14kec): Document new options.
33644         (minterlink-mips16): Update documentation.
33645         * doc/md.texi (ZC, ZD): Document new constraints.
33646         * configure.ac (gcc_cv_as_micromips): Check if linker
33647         supports the .set micromips directive.
33648         * configure: Regenerate.
33649         * config.in: Regenerate.
33650         * config/mips/mips-tables.opt: Regenerate.
33651         * config/mips/micromips.md: New file.
33652         * constraints.md (ZC, AD): New constraints.
33653         * config/mips/predicates.md (movep_src_register): New predicate.
33654         (movep_src_operand): New predicate.
33655         (non_volatile_mem_operand): New predicate.
33656         * config/mips/mips.md (multimem): New type.
33657         (length): Differentiate between 17-bit and 18-bit branch offsets.
33658         (MOVEP1, MOVEP2): New mode iterator.
33659         (mov_<load>l): Use ZC constraint.
33660         (mov_<load>r): Likewise.
33661         (mov_<store>l): Likewise.
33662         (mov_<store>r): Likewise.
33663         (*branch_equality<mode>_inverted): Add microMIPS support.
33664         (*branch_equality<mode>): Likewise.
33665         (*jump_absolute): Likewise.
33666         (indirect_jump_<mode>): Likewise.
33667         (tablejump_<mode>): Likewise.
33668         (<optab>_internal): Likewise.
33669         (sibcall_internal): Likewise.
33670         (sibcall_value_internal): Likewise.
33671         (prefetch): Use constraint ZD.
33672         * config/mips/mips.opt (minterlink-compressed): New option.
33673         (minterlink-mips16): Now an alias for minterlink-compressed.
33674         (mmicromips): New option.
33675         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33676         (compare_and_swap_12): Likewise.
33677         (sync_add<mode>): Likewise.
33678         (sync_<optab>_12): Likewise.
33679         (sync_old_<optab>_12): Likewise.
33680         (sync_new_<optab>_12): Likewise.
33681         (sync_nand_12): Likewise.
33682         (sync_old_nand_12): Likewise.
33683         (sync_new_nand_12): Likewise.
33684         (sync_sub<mode>): Likewise.
33685         (sync_old_add<mode>): Likewise.
33686         (sync_old_sub<mode>): Likewise.
33687         (sync_new_add<mode>): Likewise.
33688         (sync_new_sub<mode>): Likewise.
33689         (sync_<optab><mode>): Likewise.
33690         (sync_old_<optab><mode>): Likewise.
33691         (sync_new_<optab><mode>): Likewise.
33692         (sync_nand<mode>): Likewise.
33693         (sync_old_nand<mode>): Likewise.
33694         (sync_new_nand<mode>): Likewise.
33695         (sync_lock_test_and_set<mode>): Likewise.
33696         (test_and_set_12): Likewise.
33697         (atomic_compare_and_swap<mode>): Likewise.
33698         (atomic_exchange<mode>_llsc): Likewise.
33699         (atomic_fetch_add<mode>_llsc): Likewise.
33700         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33701         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33702         (umips_save_restore_pattern_p): Likewise.
33703         (umips_load_store_pair_p): Likewise.
33704         (umips_output_load_store_pair): Likewise.
33705         (umips_movep_target_p): Likewise.
33706         (umips_12bit_offset_address_p): Likewise.
33707         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33708         (mips_base_mips16): Rename this...
33709         (mips_base_compression_flags): ...to this. Update all uses.
33710         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33711         (mips_mips16_decl_p): Delete.
33712         (mips_nomips16_decl_p): Delete.
33713         (mips_get_compress_on_flags): New function.
33714         (mips_get_compress_off_flags): New function.
33715         (mips_get_compress_mode): New function.
33716         (mips_get_compress_on_name): New function.
33717         (mips_get_compress_off_name): New function.
33718         (mips_insert_attributes): Support multiple compression types.
33719         (mips_merge_decl_attributes): Likewise.
33720         (umips_12bit_offset_address_p): New function.
33721         (mips_start_function_definition): Emit .set micromips directive.
33722         (mips_call_may_need_jalx_p): New function.
33723         (mips_function_ok_for_sibcall): Add microMIPS support.
33724         (mips_print_operand_punctuation): Support short delay slots and
33725         compact jumps.
33726         (umips_swm_mask, umips_swm_encoding): New.
33727         (umips_build_save_restore): New function.
33728         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33729         (was_mips16_p): Remove.
33730         (old_compression_mode): New.
33731         (mips_set_compression_mode): New function.
33732         (mips_set_current_function): Add microMIPS support.
33733         (mips_option_override): Likewise.
33734         (umips_save_restore_pattern_p): New function.
33735         (umips_output_save_restore): New function.
33736         (umips_load_store_pair_p_1): New function.
33737         (umips_load_store_pair_p): New function.
33738         (umips_output_load_store_pair_1): New function.
33739         (umips_output_load_store_pair): New function.
33740         (umips_movep_target_p) New function.
33741         (mips_prepare_pch_save): Add microMIPS support.
33742         * config/mips/mips.h (TARGET_COMPRESSION): New.
33743         (TARGET_CPU_CPP_BUILTINS): Update macro
33744         to use new compression flags and to support microMIPS.
33745         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33746         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33747         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33748         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33749         (ASM_SPEC): Support mmicromips and mno-micromips.
33750         (M16STORE_REG_P): New macro.
33751         (MIPS_CALL): Support TARGET_MICROMIPS.
33752         (MICROMIPS_J): New macro.
33753         (mips_base_mips16): Rename this...
33754         (mips_base_compression_flags): ...to this.
33755         (UMIPS_12BIT_OFFSET_P): New macro.
33756         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33757         (MULTILIB_DIRNAMES): Likewise.
33759 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
33761         PR target/52555
33762         * target-globals.c (save_target_globals): For init_reg_sets and
33763         target_reinit remporarily set this_fn_optabs to this_target_optabs.
33765 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
33767         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
33768         * config/aarch64/t-aarch64
33769         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
33771 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
33773         PR inline-asm/56148
33774         * lra-constraints.c (process_alt_operands): Reload operand
33775         conflicting with earlier clobber only if no more other conflicting
33776         operands.
33778 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
33780         PR sanitizer/56393
33781         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
33782         if not linking a shared library.
33784 2013-02-22  Seth LaForge  <sethml@google.com>
33786         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
33788 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
33790         * config/arm/arm.md (split for extendsidi): Update condition.
33791         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
33792         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
33793         (qhs_zextenddi_cstr): Likewise.
33795 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33797         PR middle-end/56420
33798         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
33799         avoid signed wrapping.
33800         (expand_mult): Handle properly multiplication by
33801         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
33802         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
33803         in the compiler if coeff is HOST_WIDE_INT_MIN.
33804         (expand_divmod): Don't make ext_op1 static, change it's type to
33805         uhwi.  Avoid undefined behavior in -INTVAL (op1).
33807         PR rtl-optimization/50339
33808         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
33809         field.
33810         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
33811         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
33812         into splitting_ashiftrt field.
33813         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
33814         ASHIFTRT.
33815         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
33816         choices.
33818 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
33820         PR middle-end/56108
33821         * trans-mem.c (execute_tm_mark): Do not expand transactions that
33822         are sure to go irrevocable.
33824 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
33826         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
33827         scalars are valid operands.
33829 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33831         PR tree-optimization/56310
33832         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
33833         only matching indices and non-negative final offsets.
33834         (intersect_aggregates_with_edge): Pass src_idx to
33835         agg_replacements_to_vector.  Pass src_idx insstead of index to
33836         intersect_with_agg_replacements.
33838 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33840         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
33841         instead of hard-wired defaults.
33843 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
33845         * doc/invoke.texi (MIPS Options): Update documentation of the
33846         floating-point multiply-accumulate instruction restrictions.
33848 2013-02-21  Kostya Serebryany  <kcc@google.com>
33850         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
33851         asan_shadow_offset on x86_64 linux.
33853 2013-02-21  Richard Biener  <rguenther@suse.de>
33855         PR tree-optimization/56415
33856         Revert
33857         2013-02-11  Richard Biener  <rguenther@suse.de>
33859         PR tree-optimization/56273
33860         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33861         first VRP run.
33863 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33865         PR bootstrap/56258
33866         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
33867         instead of @itemx.
33869         PR inline-asm/56405
33870         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
33871         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
33873 2013-02-20  Jan Hubicka  <jh@suse.cz>
33875         PR tree-optimization/56265
33876         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
33877         when target is referenced for first time.
33879 2013-02-20  Richard Biener  <rguenther@suse.de>
33881         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
33882         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
33883         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
33884         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
33885         not return anything.
33886         (rename_ssa_copies): Do not remove unused locals.
33887         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
33888         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
33889         * passes.c (execute_function_todo): Do not schedule unused locals
33890         removal if cleanup_tree_cfg did something.
33891         * tree-ssa-live.c (remove_unused_locals): Dump statistics
33892         about the number of removed locals.
33894 2013-02-20  Richard Biener  <rguenther@suse.de>
33896         PR tree-optimization/56398
33897         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
33899 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33901         PR tree-optimization/55334
33902         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
33903         restricted pointers to arrays.
33905 2013-02-20  Richard Biener  <rguenther@suse.de>
33906             Jakub Jelinek  <jakub@redhat.com>
33908         PR tree-optimization/56396
33909         * tree-ssa-ccp.c (n_const_val): New static variable.
33910         (get_value): Return NULL for SSA names we don't have a lattice
33911         entry for.
33912         (ccp_initialize): Initialize n_const_val.
33913         * tree-ssa-copy.c (n_copy_of): New static variable.
33914         (init_copy_prop): Initialize n_copy_of.
33915         (get_value): Return NULL_TREE for SSA names we don't have a
33916         lattice entry for.
33918 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33920         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
33922 2013-02-20  Richard Biener  <rguenther@suse.de>
33924         * genpreds.c (write_lookup_constraint): Do not compare first
33925         letter of the constraint again.
33927 2013-02-20  Richard Biener  <rguenther@suse.de>
33929         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
33930         and ceil_log2.
33931         (get_use_iv_cost): Terminate hashtable walk when coming across
33932         an empty entry.
33934 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
33936         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
33937         reassociation for avx2 targets.
33939 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33941         * config/microblaze/microblaze.c: microblaze_has_clz = 0
33942         Add version check for v8.10.a to enable microblaze_has_clz
33943         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
33944         version and TARGET_PATTERN_COMPARE check
33945         * config/microblaze/microblaze.md: New clzsi2 instruction
33947 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33949         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
33950         function before branching.
33952 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33954         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
33955         DUMP_INSN_RTX_UID.
33956         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
33958 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33960         PR middle-end/55889
33961         * sel-sched.c: Include ira.h.
33962         (implicit_clobber_conflict_p): New function.
33963         (moveup_expr): Use it.
33964         * Makefile.in (sel-sched.o): Depend on ira.h.
33966 2013-02-19  Richard Biener  <rguenther@suse.de>
33968         PR tree-optimization/56384
33969         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
33970         (vn_hash_type): Split out from ...
33971         (vn_hash_constant_with_type): ... here.
33972         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
33973         (vn_phi_eq): Compare types from vn_phi_s structure.
33974         (vn_phi_lookup): Populate vn_phi_s type.
33975         (vn_phi_insert): Likewise.
33977 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
33979         PR tree-optimization/56350
33980         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
33981         if haven't found reduction or nested cycle operand, rather than
33982         asserting we must find it.
33984         PR tree-optimization/56381
33985         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
33986         to fold_build3.
33988 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
33989             Jakub Jelinek  <jakub@redhat.com>
33991         PR target/52555
33992         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
33993         (swap_optab_enable): Same.
33994         (init_all_optabs): Use argument instead of global.
33995         * tree.h (struct tree_optimization_option): New field target_optabs.
33996         * expr.h (init_all_optabs): Add argument to prototype.
33997         (TREE_OPTIMIZATION_OPTABS): New.
33998         (save_optabs_if_changed): Protoize.
33999         * optabs.h: Declare this_fn_optabs.
34000         * optabs.c (save_optabs_if_changed): New.
34001         Declare this_fn_optabs.
34002         (init_optabs): Add argument to init_all_optabs() call.
34003         * function.c (invoke_set_current_function_hook): Handle per
34004         function optabs.
34005         * function.h (struct function): New field optabs.
34006         * config/mips/mips.c (mips_set_mips16_mode): Handle when
34007         optimization_current_node has changed.
34008         * target-globals.h (save_target_globals_default_opts): Protoize.
34009         * target-globals.c (save_target_globals_default_opts): New.
34011 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34013         PR target/56347
34014         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34015         registers %fr12 and %fr12R as call used.
34017         PR target/56214
34018         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34019         and HImode, require all displacements to be an integer multiple of
34020         their mode size.
34021         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34022         only allow QImode and HImode when reload is in progress and strict is
34023         true.  Likewise for symbolic addresses.  Use base14_operand to check
34024         displacements in REG+BASE addresses.
34026 2013-02-18  Richard Biener  <rguenther@suse.de>
34028         PR tree-optimization/56366
34029         * tree-vect-loop.c (get_initial_def_for_induction): Properly
34030         handle sign-conversion of outer-loop initial induction value.
34032 2013-02-18  Richard Biener  <rguenther@suse.de>
34034         PR middle-end/56349
34035         * cfghooks.c (merge_blocks): If we merge a latch into another
34036         block adjust references to it.
34037         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34038         (verify_loop_structure): Verify that a recorded latch is in fact
34039         a latch.
34041 2013-02-18  Richard Biener  <rguenther@suse.de>
34043         PR tree-optimization/56321
34044         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34045         order SSA name release and virtual operand unlinking.
34047 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34049         * config/microblaze/microblaze.md (save_stack_block): Define.
34050         (restore_stack_block): Likewise.
34052 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34054         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34055         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34056         * config/microblaze/microblaze.c (microblaze_option_override):
34057         Bail out early for PIC modes when target does not support PIC.
34059 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34061         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34062         Replace with a microblaze version.
34063         (microblaze_trampoline_init): Adapt for microblaze.
34064         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34065         microblaze.
34067 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
34068             Dodji Seketeli  <dodji@redhat.com>
34070         PR asan/56330
34071         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34072         (instrument_mem_region_access): Do not forget to always put
34073         instrumentation of the of 'base' and 'base + len' in a "if (len !=
34074         0) statement, even for cases where either 'base' or 'base + len'
34075         are not instrumented -- because they have been previously
34076         instrumented.  Simplify the logic by putting all the statements
34077         instrument 'base + len' inside a sequence, and then insert that
34078         sequence right before the current insertion point.  Then, to
34079         instrument 'base + len', just get an iterator on that statement.
34080         And do not forget to update the pointer to iterator the function
34081         received as argument.
34083 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
34085         PR rtl-optimization/56348
34086         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34088 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
34090         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34091         (clean_graph_dump_file): Pass base to start_graph_dump.
34093 2013-02-14  Richard Henderson  <rth@redhat.com>
34095         PR target/55941
34096         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34098 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
34100         * collect2-aix.h: Define F_LOADONLY.
34102 2013-02-14  Richard Biener  <rguenther@suse.de>
34104         PR lto/50494
34105         * varasm.c (output_constant_def_1): Get the decl representing
34106         the constant as argument.
34107         (output_constant_def): Wrap output_constant_def_1.
34108         (make_decl_rtl): Use output_constant_def_1 with the decl
34109         representing the constant.
34110         (build_constant_desc): Optionally re-use a decl already
34111         representing the constant.
34112         (tree_output_constant_def): Adjust.
34114 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
34116         Fix an asan crash
34117         * asan.c (instrument_builtin_call):  Really put the length of the
34118         second source argument into src1_len.
34120 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34122         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34123         argument.  If it is false, don't create edge from then_bb to
34124         fallthru_bb.
34125         (insert_if_then_before_iter): Pass true to it.
34126         (build_check_stmt): Pass false to it.
34127         (transform_statements): Flush hash table only on extended basic
34128         block boundaries, rather than at the beginning of every bb.
34129         Don't flush hash table on nonfreeing_call_p calls.
34130         * tree-flow.h (nonfreeing_call_p): New prototype.
34131         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34133 2013-02-13  David S. Miller  <davem@davemloft.net>
34135         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34137 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
34139         PR target/56184
34140         * ira.c (max_regno_before_ira): Move from ...
34141         (ira): ... here.
34142         (fix_reg_equiv_init): Use max_regno_before_ira instead of
34143         vec_safe_length.
34145 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34147         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34149 2013-02-13  Richard Biener  <rguenther@suse.de>
34151         PR lto/56295
34152         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34153         globals in MEM_REFs.
34155 2013-02-13  Richard Biener  <rguenther@suse.de>
34157         * loop-init.c (loop_optimizer_init): Clear loop state when
34158         re-initializing preserved loops.
34159         * loop-unswitch.c (unswitch_single_loop): Return whether
34160         we unswitched the loop.  Do not verify loop state here.
34161         (unswitch_loops): When we unswitched a loop discover new loops.
34163 2013-02-13  Kostya Serebryany  <kcc@google.com>
34165         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34166         on x86_64 linux.
34167         * sanitizer.def: Rename __asan_init to __asan_init_v1.
34169 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
34171         Avoid instrumenting duplicated memory access in the same basic block
34172         * Makefile.in (asan.o): Add new dependency on hash-table.h
34173         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34174         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34175         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34176         (free_mem_ref_resources, has_mem_ref_been_instrumented)
34177         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34178         (get_mem_ref_of_assignment): New functions.
34179         (get_mem_refs_of_builtin_call): Extract from
34180         instrument_builtin_call and tweak a little bit to make it fit with
34181         the new signature.
34182         (instrument_builtin_call): Use the new
34183         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
34184         of is_gimple_builtin_call.
34185         (instrument_derefs, instrument_mem_region_access): Insert the
34186         instrumented memory reference into the hash table.
34187         (maybe_instrument_assignment): Renamed instrument_assignment into
34188         this, and change it to advance the iterator when instrumentation
34189         actually happened and return true in that case.  This makes it
34190         homogeneous with maybe_instrument_assignment, and thus give a
34191         chance to callers to be more 'regular'.
34192         (transform_statements): Clear the memory reference hash table
34193         whenever we enter a new BB, when we cross a function call, or when
34194         we are done transforming statements.  Use
34195         maybe_instrument_assignment instead of instrumentation.  No more
34196         need to special case maybe_instrument_assignment and advance the
34197         iterator after calling it; it's now handled just like
34198         maybe_instrument_call.  Update comment.
34200 2013-02-13  Richard Biener  <rguenther@suse.de>
34202         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34203         Fix loop discovery code.
34205 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
34207         PR inline-asm/56148
34208         * lra-constraints.c (process_alt_operands): Match early clobber
34209         operand with itself.  Check conflicts with earlyclobber only if
34210         the operand is not reloaded.  Prefer to reload conflicting operand
34211         if earlyclobber and matching operands are the same.
34213 2013-02-12  Richard Biener  <rguenther@suse.de>
34215         PR lto/56297
34216         * lto-streamer-out.c (write_symbol): Do not output symbols
34217         for hard register variables.
34219 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
34221         PR target/54222
34222         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34223         (umulsidi3_insn, mulsidi3_insn): New insns.
34225 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
34227         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34228         (struct tune_params): Add vec_costs field.
34229         * config/arm/arm.c (arm_builtin_vectorization_cost)
34230         (arm_add_stmt_cost): New functions.
34231         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34232         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34233         (arm_default_vec_cost): New struct of type cpu_vec_costs.
34234         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34235         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34236         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34237         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34239 2013-02-12  Richard Biener  <rguenther@suse.de>
34241         PR lto/56295
34242         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34243         decls again if possible.
34245 2013-02-12  Richard Biener  <rguenther@suse.de>
34247         PR middle-end/56288
34248         * tree-ssa.c (verify_ssa_name): Fix check, move
34249         SSA_NAME_IN_FREE_LIST check up.
34251 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
34252             Steven Bosscher   <steven@gcc.gnu.org>
34254         PR rtl-optimization/56151
34255         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34256         equal to op0 or op1, and last_insn pattern is CODE operation
34257         with MEM dest and one of the operands matches that MEM.
34259 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
34261         * doc/extend.texi: Document Function Multiversioning and "default"
34262         parameter string to target attribute.
34263         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34264         target attribute parameter is "default".
34265         (ix86_compare_version_priority): Remove checks for target attribute.
34266         (ix86_mangle_function_version_assembler_name): Change error to sorry.
34267         Remove check for target attribute equal to NULL. Add assert.
34268         (ix86_generate_version_dispatcher_body): Change error to sorry.
34270 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
34271             Jack Howarth  <howarth@bromo.med.uc.edu>
34272             Patrick Marlier  <patrick.marlier@gmail.com>
34274         PR libitm/55693
34275         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34276         define ENDFILE_SPEC as TM_DESTRUCTOR.
34277         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34279 2013-02-11  Alexander Potapenko  <glider@google.com>
34280             Jack Howarth  <howarth@bromo.med.uc.edu>
34281             Jakub Jelinek  <jakub@redhat.com>
34283         PR sanitizer/55617
34284         * config/darwin.c (cdtor_record): Rename ctor_record.
34285         (sort_cdtor_records): Rename sort_ctor_records.
34286         (finalize_dtors): New routine to sort destructors by
34287         priority before use in assemble_integer.
34288         (machopic_asm_out_destructor): Use finalize_dtors if needed.
34290 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
34292         PR rtl-optimization/56275
34293         * simplify-rtx.c (avoid_constant_pool_reference): Check that
34294         offset is non-negative and less than cmode size before
34295         calling simplify_subreg.
34297 2013-02-11  Richard Biener  <rguenther@suse.de>
34299         PR tree-optimization/56264
34300         * cfgloop.h (fix_loop_structure): Adjust prototype.
34301         * loop-init.c (fix_loop_structure): Return the number of
34302         newly discovered loops.
34303         * tree-cfgcleanup.c (repair_loop_structures): When new loops
34304         are discovered, do a full loop-closed SSA rewrite.
34306 2013-02-11  Richard Biener  <rguenther@suse.de>
34308         PR tree-optimization/56273
34309         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34310         first VRP run.
34311         (check_array_ref): Fix missing newline in dumps.
34312         (search_for_addr_array): Likewise.
34314 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
34316         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34318 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
34320         PR target/56256
34321         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34323 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
34325         PR rtl-optimization/56246
34326         * lra-constraints.c (simplify_operand_subreg): Try to reuse
34327         reload pseudo.
34328         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34329         constraints are satisfied.
34331 2013-02-08  Jeff Law  <law@redhat.com>
34333         PR debug/53948
34334         * emit-rtl.c (reg_is_parm_p): New function.
34335         * regs.h (reg_is_parm_p): New prototype.
34336         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34337         callee-clobbered registers.
34339 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
34341         PR target/56043
34342         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34343         If there is no implicit builtin declaration, just return NULL.
34345 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34347         * config/i386/sse.md (FMAMODEM): New mode iterator.
34348         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34349         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34351 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34353         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34354         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34355         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34357 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34359         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34360         (microblaze*-*-elf): Likewise.
34361         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34362         LINK_SPEC.
34363         * config/microblaze/microblaze-c.c: Add builtin defines for
34364         _LITTLE_ENDIAN and _BIG_ENDIAN.
34365         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34366         add to TARGET_DEFAULT flags.
34367         Expand ASM_SPEC and LINK_SPEC.
34368         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34369         * config/microblaze/microblaze.md: Update extendsidi2 and
34370         movdi_internal instructions to use low-order / high-order reg
34371         print_operands.
34372         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34373         options and inversemask / mask of LITTLE_ENDIAN.
34374         * config/microblaze/t-microblaze: Expand multilib options to
34375         include mlittle-endian (le) and update exceptions patterns.
34377 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
34379         PR rtl-optimization/56195
34380         * lra-constraints.c (get_reload_reg): Don't reuse regs
34381         if they have smaller mode than requested, if they have
34382         wider mode than requested, try to return a SUBREG.
34384         PR tree-optimization/56250
34385         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34386         if type is unsigned and code isn't MULT_EXPR.
34388 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34390         PR tree-optimization/56064
34391         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34392         bits according to mode.
34393         * fixed-value.h (fixed_from_double_int)
34394         (const_fixed_from_double_int): Adjust comments.
34396 2013-02-08  Richard Biener  <rguenther@suse.de>
34398         PR lto/56231
34399         * lto-streamer.h (struct data_in): Remove current_file, current_line
34400         and current_col members.
34401         * lto-streamer-out.c (lto_output_location): Stream changed bits
34402         en-block for efficiency.
34403         * lto-streamer-in.c (clear_line_info): Remove.
34404         (lto_input_location): Cache current file, line and column
34405         globally via local statics.  Read changed bits en-block.
34406         (input_function): Do not call clear_line_info.
34407         (lto_read_body): Likewise.
34408         (lto_input_toplevel_asms): Likewise.
34410 2013-02-08  Michael Matz  <matz@suse.de>
34412         PR tree-optimization/52448
34413         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34414         (nt_call_phase): New static.
34415         (add_or_mark_expr): Only mark accesses with newer phase than any
34416         call seen.
34417         (nonfreeing_call_p): New.
34418         (nt_init_block): Update nt_call_phase, mark blocks as visited.
34419         (nt_fini_block): Keep blocks marked as visited.
34420         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34422 2013-02-08  Richard Biener  <rguenther@suse.de>
34424         * ira.c (ira): Free broken dominator information.
34426 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34428         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34430 2013-02-08  Marek Polacek  <polacek@redhat.com>
34432         * cfgloop.c (verify_loop_structure): Add more checking of headers.
34434 2013-02-08  Richard Biener  <rguenther@suse.de>
34436         PR middle-end/56181
34437         * cfgloop.h (flow_loops_find): Adjust.
34438         (bb_loop_header_p): Declare.
34439         * cfgloop.c (bb_loop_header_p): New function split out from ...
34440         (flow_loops_find): ... here.  Adjust function signature,
34441         support incremental loop structure update.
34442         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
34443         * cfgloopmanip.c (fix_loop_structure): Move ...
34444         * loop-init.c (fix_loop_structure): ... here.
34445         (apply_loop_flags): Split out from ...
34446         (loop_optimizer_init): ... here.
34447         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
34448         in incremental mode, only remove dead loops here.
34450 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34452         PR target/54222
34453         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34454         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34455         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34456         (*round<mode>3.libgcc): New insns for fixed-modes.
34457         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34458         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34459         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34460         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34461         implementations.  Define to __builtin_avr_absFX,
34462         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34463         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34464         __builtin_avr_countlsFX, respectively.
34465         * config/avr/avr-c.c (target.h): Include it.
34466         (enum avr_builtin_id): New enum.
34467         (avr_resolve_overloaded_builtin): New static function.
34468         (avr_register_target_pragmas): Use it to set
34469         targetm.resolve_overloaded_builtin.
34470         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34471         tree nodes used by DEF_BUILTIN.
34472         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34473         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34474         <AVR_BUILTIN_xxBITS>: Same.
34476 2013-02-08  Richard Biener  <rguenther@suse.de>
34478         * cfgloop.c (verify_loop_structure): Properly handle
34479         a loop exiting to another loop header.
34480         * ira-int.h (ira_loops): Remove.
34481         * ira.c (ira_loops): Remove.
34482         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34483         (do_reload): Use loop_optimizer_finalize.
34484         * ira-build.c (create_loop_tree_nodes): Use get_loops and
34485         number_of_loops to access the loop tree.
34486         (more_one_region_p): Likewise.
34487         (finish_loop_tree_nodes): Likewise.
34488         (rebuild_regno_allocno_maps): Likewise.
34489         (mark_loops_for_removal): Likewise.
34490         (mark_all_loops_for_removal): Likewise.
34491         (remove_unnecessary_regions): Likewise.
34492         (ira_build): Likewise.
34493         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34495 2013-02-08  Richard Biener  <rguenther@suse.de>
34497         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34498         * ipa-pure-const.c (analyze_function): Avoid calling
34499         mark_irreducible_loops twice.
34500         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34502 2013-02-07  David S. Miller  <davem@davemloft.net>
34504         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34505         on 'reg'.
34506         * var-tracking.c (vt_add_function_parameter): Test the presence of
34507         HAVE_window_save properly and do not remap argument registers when
34508         we have a leaf function.
34510 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
34512         PR bootstrap/56227
34513         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34514         instead of "ll".
34515         * config/i386/i386.c (ix86_print_operand): Ditto.
34517 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34519         * lra-constraints.c (process_alt_operands): Fix recently added comment.
34521 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34523         PR rtl-optimization/56225
34524         * lra-constraints.c (process_alt_operands): Check that reload hard
34525         reg can hold value for strict_low_part.
34527 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34529         PR debug/56154
34530         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34531         dwarf2out_end_function.
34532         (in_first_function_p, maybe_at_text_label_p,
34533         first_loclabel_num_not_at_text_label): New variables.
34534         (dwarf2out_var_location): In the first function find out
34535         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34536         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34537         functions.
34539 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
34541         PR rtl-optimization/56178
34542         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34543         SUBREG of a register.  Tidy up related block of code.
34544         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34545         note if the source is a register or a SUBREG of a register.
34547 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34549         PR target/56228
34550         * config/rs6000/rs6000.md (ptrm): New mode attr.
34551         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34552         call_value_indirect_aix<pttrsize>,
34553         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34554         m in constraints.
34556 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34558         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34559         if -bnortl. Convert to strcmp and strncmp.
34561 2013-02-07  Alan Modra  <amodra@gmail.com>
34563         PR target/54009
34564         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34565         addresses won't wrap when offsetting.
34566         (rs6000_secondary_reload): Provide secondary reloads needed for
34567         wrapping LO_SUM addresses.
34569 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
34571         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34572         MACH, just __MACH__.
34574 2013-02-06  Richard Biener  <rguenther@suse.de>
34576         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34577         instead of calling fix_loop_structure.
34579 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
34581         PR middle-end/56217
34582         * omp-low.c (use_pointer_for_field): Return false if
34583         lower_send_shared_vars doesn't generate any copy-out code.
34585 2013-02-06  Tom de Vries  <tom@codesourcery.com>
34587         PR rtl-optimization/56131
34588         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34589         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
34590         of the label is NULL.  Add comment.
34592 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
34594         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34596         PR sanitizer/55374
34597         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34598         (STATIC_LIBTSAN_LIBS): Likewise.
34599         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34600         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34601         is defined, don't add anything else beyond that.
34602         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34603         (LINK_COMMAND_SPEC): Use them.
34605         PR tree-optimization/56205
34606         * tree-stdarg.c (check_all_va_list_escapes): Return true if
34607         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34608         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34610 2013-02-05  Richard Biener  <rguenther@suse.de>
34612         PR tree-optimization/53342
34613         PR tree-optimization/53185
34614         * tree-vectorizer.h (vect_check_strided_load): Remove.
34615         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34616         not disallow peeling for vectorized strided loads.
34617         (vect_check_strided_load): Make static and simplify.
34618         (vect_analyze_data_refs): Adjust.
34619         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34620         correctly when vectorizing strided loads.
34622 2013-02-05  Richard Biener  <rguenther@suse.de>
34624         * doc/install.texi: Refer to ISL, not PPL.
34626 2013-02-05  Jan Hubicka  <jh@suse.cz>
34628         PR tree-optimization/55789
34629         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34631 2013-02-05  Jan Hubicka  <jh@suse.cz>
34633         PR tree-optimization/55789
34634         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34635         the dead call anyway.
34637 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
34639         PR sanitizer/55374
34640         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34642 2013-02-04  Alexander Potapenko  <glider@google.com>
34643             Jack Howarth  <howarth@bromo.med.uc.edu>
34644             Jakub Jelinek  <jakub@redhat.com>
34646         PR sanitizer/55617
34647         * config/darwin.c (sort_ctor_records): Stabilized qsort
34648         on constructor priority by using original position.
34649         (finalize_ctors): New routine to sort constructors by
34650         priority before use in assemble_integer.
34651         (machopic_asm_out_constructor): Use finalize_ctors if needed.
34653 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
34655         PR libstdc++/54314
34656         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34657         about visibility on artificial decls.
34658         * config/sol2.c (solaris_assemble_visibility): Likewise.
34660 2013-02-04  Kai Tietz  <ktietz@redhat.com>
34662         PR target/56186
34663         * config/i386/i386.c (function_value_ms_64): Add additional valtype
34664         argument and improve checking of return-argument types for 16-byte
34665         modes.
34666         (ix86_function_value_1): Add additional valtype argument on call
34667         of function_value_64.
34668         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34669         handling infunction_value_64 function.
34671 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
34673         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34675 2013-02-04  Richard Biener  <rguenther@suse.de>
34677         PR tree-optimization/56188
34678         * tree-ssa-structalias.c (label_visit): Consider case with
34679         initially non-empty points-to set.
34680         (perform_var_substitution): Dump node mapping and clean up.
34682 2013-02-04  Richard Guenther  <rguenther@suse.de>
34684         PR lto/56168
34685         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34686         node prevail as last resort.
34687         (lto_symtab_merge_decls): Remove guard on LTRANS here.
34688         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34690 2013-02-04  Richard Biener  <rguenther@suse.de>
34692         PR tree-optimization/56113
34693         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34694         Merge into ...
34695         (equiv_class_lookup_or_add): ... this.
34696         (label_visit): Adjust and fix error in previous patch.
34697         (perform_var_substitution): Adjust.
34699 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
34701         * config/sh/divtab.c: Fix formatting and comments throughout the file.
34702         * config/sh/sh4-300.md: Likewise.
34703         * config/sh/sh4a.md: Likewise.
34704         * config/sh/constraints.md: Likewise.
34705         * config/sh/sh.md: Likewise.
34706         * config/sh/netbsd-elf.h: Likewise.
34707         * config/sh/predicates.md: Likewise.
34708         * config/sh/sh-protos.h: Likewise.
34709         * config/sh/ushmedia.h: Likewise.
34710         * config/sh/linux.h: Likewise.
34711         * config/sh/sh.c: Likewise.
34712         * config/sh/superh.h: Likewise.
34713         * config/sh/elf.h: Likewise.
34714         * config/sh/sh4.md: Likewise.
34715         * config/sh/sh.h: Likewise.
34717 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34719         * config/pa/constraints.md: Adjust unused letters.  Change "T"
34720         constraint to match_test floating_point_store_memory_operand().
34721         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34722         (base14_operand): New.
34723         (floating_point_store_memory_operand): New.
34724         (integer_store_memory_operand): Revise to use base14_operand and
34725         reg_plus_base_memory_operand.
34726         (move_dest_operand): Allow symbolic_memory_operands.
34727         (symbolic_memory_operand): Check for LO_SOM.
34728         (symbolic_operand): Change default case to break.
34729         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34730         CONST_DOUBLE values to be reloaded by putting them into memory when
34731         the destination is a floating point register.
34732         (movdf): Remove code to handle CONST_DOUBLE.
34733         (movsf): Likewise.
34734         (reload_indf_r1): New.
34735         (reload_insf_r1): New.
34736         Consistently use "Q" and "T" constraints with integer and floating
34737         point move instructions, respectively.
34738         (movdi): Remove FAIL.
34739         Change predicate for source operand unamed DImode move from
34740         general_operand to move_src_operand.
34741         (umulsidi3): Change predicate for destination operand to
34742         register_operand.
34743         Likewise for similar unamed patterns.
34744         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34745         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34746         (hppa_legitimize_address): Simplify mask calculation.
34747         (pa_emit_move_sequence): Revised handling of secondary reloads from
34748         REG+D addresses for floating point loads and stores.  Directly handle
34749         loading CONST0_RTX (mode) to a floating point register.
34750         (pa_secondary_reload): Handle reloading DF and SFmode constant values
34751         to floating point registers.  Don't restrict secondary reloads to
34752         floating point registers to integer modes.  Revise some comments and
34753         cleanup some code.
34754         (TARGET_LEGITIMATE_ADDRESS_P): Define.
34755         (pa_legitimate_address_p): New.
34756         (pa_legitimize_reload_address): New.
34757         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
34758         (STRICT_REG_OK_FOR_BASE_P): New.
34759         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
34760         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
34762 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
34763             Andrew Dixie  <andrewd@gentrack.com>
34765         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
34766         flag set.
34768 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
34770         * expmed.c (extract_bit_field_1): Pass the full width of the
34771         structure to get_best_reg_extraction_insn.
34773 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34775         PR target/54601
34776         * configure.ac (use_cxa_atexit): Add AIX.
34777         * configure: Regenerate.
34779         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
34781 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
34783         PR debug/54793
34784         * final.c (need_profile_function): New variable.
34785         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
34786         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
34787         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
34788         notes, targetm.asm_out.function_prologue doesn't emit anything,
34789         HAVE_prologue and profiler should be emitted before prologue,
34790         set need_profile_function instead of emitting it.
34791         (final_scan_insn): If need_profile_function, emit
34792         profile_function on the first NOTE_INSN_BASIC_BLOCK or
34793         NOTE_INSN_FUNCTION_BEG note.
34795 2013-02-01  Richard Henderson  <rth@redhat.com>
34797         * config/rs6000/rs6000.md (smulditi3): New.
34798         (umulditi3): New.
34800         * config/alpha/alpha.md (umulditi3): New.
34802 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34804         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
34805         (ASM_OUTPUT_ALIGNED_LOCAL): New.
34807 2013-02-01  Richard Biener  <rguenther@suse.de>
34809         PR tree-optimization/56113
34810         * tree-ssa-structalias.c (label_visit): Reduce work for
34811         single-predecessor nodes.
34813 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
34815         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
34816         range isn't testing for zero.
34818 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
34820         PR middle-end/56113
34821         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
34823 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
34824             Nick Clifton  <nickc@redhat.com>
34826         * config/v850/constraints.md (Q): Define as a memory constraint.
34827         * config/v850/predicates.md (label_ref_operand): New predicate.
34828         (e3v5_shift_operand): New predicate.
34829         (ior_operator): New predicate.
34830         * config/v850/t-v850: Add e3v5 multilib.
34831         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
34832         (v850_gen_movdi): Prototype.
34833         * config/v850/v850.c: Add support for e3v5 architecture.
34834         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
34835         TARGET_V850E_UP.
34836         (construct_save_jarl): Add e3v5 long JARL support.
34837         (v850_adjust_insn_length): New function.  Adjust length of call
34838         insns when using e3v5 instructions.
34839         (v850_gen_movdi): New function: Generate instructions to move a
34840         DImode value.
34841         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
34842         (CPP_SPEC): Define __v850e3v5__ as appropriate.
34843         (TARGET_USE_FPU): Enable for e3v5.
34844         (CONST_OK_FOR_W): New macro.
34845         (ADJUST_INSN_LENGTH): Define.
34846         * config/v850/v850.md (UNSPEC_LOOP): Define.
34847         (attr cpu): Add v850e3v5.
34848         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
34849         (movdi): New pattern.
34850         (movdi_internal): New pattern.
34851         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
34852         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
34853         (cstoresf4): Likewise.
34854         (cstoredf4): Likewise.
34855         (insv): New pattern.
34856         (rotlso3_a): New pattern.
34857         (rotlsi3_b): New pattern
34858         (rotlsi3_v850e3v5): New pattern.
34859         (doloop_begin): New pattern.
34860         (fix_loop_counter): New pattern.
34861         (doloop_end): New pattern.
34862         (branch_normal): Add e3v5 long branch support.
34863         (branch_invert): Likewise.
34864         (branch_z_normal): Likewise.
34865         (branch_z_invert): Likewise.
34866         (branch_nz_normal): Likewise.
34867         (branch_nz_invert): Likewise.
34868         (call_internal_short): Add e3v5 register-indirect JARL support.
34869         (call_internal_long): Likewise.
34870         (call_value_internal_short): Likewise.
34871         (call_value_internal_long): Likewise.
34872         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
34873         (mloop): New option.
34874         * config.gcc: Add support for configuring v840e3v5 target.
34875         * doc/invoke.texi: Document new v850 specific command line options.
34877 2013-01-31  Paul Koning  <ni1d@arrl.net>
34879         PR debug/55059
34880         PR debug/54508
34881         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
34882         children if parent is a class.
34883         (prune_unused_types_prune): Don't add DW_AT_declaration.
34885 2013-01-31  Richard Biener  <rguenther@suse.de>
34887         PR tree-optimization/56157
34888         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
34889         match up operand with SLP child.
34891 2013-01-31  Jason Merrill  <jason@redhat.com>
34893         PR debug/54410
34894         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
34895         parameters the first time.
34896         (gen_scheduled_generic_parms_dies): Check completeness here.
34898 2013-01-31  Richard Biener  <rguenther@suse.de>
34900         PR middle-end/53073
34901         * common.opt (faggressive-loop-optimizations): New flag,
34902         enabled by default.
34903         * doc/invoke.texi (faggressive-loop-optimizations): Document.
34904         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
34905         infer_loop_bounds_from_undefined by it.
34907 2013-01-31  Richard Biener  <rguenther@suse.de>
34909         PR tree-optimization/56150
34910         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
34911         visit virtual operands.
34912         (find_uses_to_rename_bb): Likewise.
34914 2013-01-31  Richard Biener  <rguenther@suse.de>
34916         PR tree-optimization/56150
34917         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
34918         mixed store non-store stmts.
34920 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
34922         PR sanitizer/55374
34923         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
34924         LIBASAN_EARLY_SPEC is defined.
34925         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
34926         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
34927         before %o.
34928         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
34930         PR c++/55742
34931         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
34932         invalid args instead of ICEing on it.
34933         (ix86_valid_target_attribute_tree): Return error_mark_node if
34934         ix86_valid_target_attribute_inner_p failed.
34935         (ix86_valid_target_attribute_p): Return false only if
34936         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
34937         target("default") attribute.
34938         (sorted_attr_string): Change argument from const char * to tree,
34939         merge in all target attribute arguments rather than just one.
34940         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
34941         instead of free.  Avoid using strcat.
34942         (ix86_mangle_function_version_assembler_name): Mangle
34943         target("default") as if no target attribute is present.  Adjust
34944         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
34945         instead of xmalloc and XDELETEVEC instead of free.
34946         (ix86_function_versions): Don't return true if one of the decls
34947         doesn't have target attribute.  If they don't and one of the decls
34948         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
34949         sorted_attr_string caller.  Use XDELETEVEC instead of free.
34950         (ix86_supports_function_versions): Remove.
34951         (make_name): Fix up formatting.
34952         (make_dispatcher_decl): Remove resolver_name and its initialization.
34953         Avoid leaking memory.
34954         (is_function_default_version): Return true if there is
34955         target("default") attribute rather than no target attribute at all.
34956         (make_resolver_func): Avoid leaking memory.
34957         (ix86_generate_version_dispatcher_body): Likewise.
34958         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
34959         * target.def (supports_function_versions): Remove.
34960         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
34961         * doc/tm.texi: Regenerated.
34963 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34965         PR rtl-optimization/56144
34966         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
34967         for values with side effects.
34969 2013-01-30  Richard Biener  <rguenther@suse.de>
34971         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
34972         (sparseset_pop): Likewise.
34973         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
34974         to be able to use quick_push in the worker loop.
34976 2013-01-30  Marek Polacek  <polacek@redhat.com>
34978         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
34980 2013-01-30  Richard Biener  <rguenther@suse.de>
34982         PR lto/56147
34983         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
34985 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
34987         PR tree-optimization/56064
34988         * fixed-value.c (fixed_from_double_int): New function.
34989         * fixed-value.h (fixed_from_double_int): New prototype.
34990         (const_fixed_from_double_int): New static inline function.
34991         * fold-const.c (native_interpret_fixed): New static function.
34992         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
34993         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
34994         (native_encode_fixed): New static function.
34995         (native_encode_expr) <FIXED_CST>: Use it.
34996         (native_interpret_int): Move double_int worker code to...
34997         * double-int.c (double_int::from_buffer): ...this new static method.
34998         * double-int.h (double_int::from_buffer): Prototype it.
35000 2013-01-30  Richard Biener  <rguenther@suse.de>
35002         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35003         New pointer-map and obstack.
35004         (init_alias_vars): Allocate pointer-map and obstack.
35005         (delete_points_to_sets): Free them.
35006         (find_what_var_points_to): Cache result.
35007         (find_what_p_points_to): Adjust for changed interface of
35008         find_what_var_points_to.
35009         (compute_points_to_sets): Likewise.
35010         (ipa_pta_execute): Likewise.
35012 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35014         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35015         * configure: Regenerate.
35016         * config.in: Regenerate.
35017         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35018         #nobits/#progbits if supported.
35020 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
35022         PR target/56121
35023         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35024         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35025         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35027 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35029         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35030         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35032 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35034         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35035         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35037 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35039         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35040         declaration.
35041         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35042         * config/arm/cortex-a7.md: New bypasses using
35043         arm_mac_accumulator_is_result.
35045 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35047         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
35048         (cortex_a7_neon_mla): Likewise.
35049         (cortex_a7_fpfmad): New reservation.
35050         (cortex_a7_fpmacs): Use ffmas and update required units.
35051         (cortex_a7_fpmuld): Update required units and latency.
35052         (cortex_a7_fpmacd): Likewise.
35053         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35054         (cortex_a7_neon). Likewise.
35055         (bypass) Update participating units.
35057 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35059         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35060         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35061         from fmac to ffma.
35062         * config/arm/vfp11.md (vfp_farith): Use ffmas.
35063         (vfp_fmul): Use ffmad.
35064         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35065         (cortex_r4_fmacd): Use ffmad.
35066         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35067         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
35068         (cortex_a9_fmacd): Use ffmad.
35069         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35070         (cortex_a8_vfp_macd): Use ffmad.
35071         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35072         (cortex_a5_fpmacd): Use ffmad.
35073         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35074         (cortex_a15_vfp_macd): Use ffmad.
35075         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35077 2013-01-29  Jason Merrill  <jason@redhat.com>
35079         PR libstdc++/54314
35080         * varasm.c (default_assemble_visibility): Don't warn about
35081         visibility on artificial decls.
35083 2013-01-29  Richard Biener  <rguenther@suse.de>
35085         PR tree-optimization/56113
35086         * tree-ssa-structalias.c (equiv_class_lookup): Also return
35087         the bitmap leader.
35088         (label_visit): Free duplicate bitmaps and record the leader instead.
35089         (perform_var_substitution): Adjust.
35091 2013-01-29  Richard Biener  <rguenther@suse.de>
35093         PR tree-optimization/55270
35094         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35095         the CFG, schedule loops for fixup.
35097 2013-01-29  Nick Clifton  <nickc@redhat.com>
35099         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35100         SP_REG.
35102 2013-01-28  Leif Ekblad  <leif@rdos.net>
35104         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35105         * config/i386/i386.h (TARGET_RDOS): New macro.
35106         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35107         * config/i386/i386.c (ix86_option_override_internal): For 64bit
35108         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35109         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35110         DEFAULT_LARGE_SECTION_THRESHOLD.
35111         * config/i386/i386.md (R14_REG, R15_REG): New constants.
35112         * config/i386/rdos.h: New file.
35113         * config/i386/rdos64.h: New file.
35115 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
35117         PR other/54814
35118         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35119         TEST_HARD_REG_BIT.
35121 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35123         PR rtl-optimization/56117
35124         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35125         call cselib_lookup_from_insn on the MEM before calling
35126         add_insn_mem_dependence.
35128 2013-01-28  Richard Biener  <rguenther@suse.de>
35130         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35131         to a stmt that didn't have one.
35132         (copy_phis_for_bb): Likewise for PHI arguments.
35133         (copy_debug_stmt): Likewise for debug stmts.
35135 2013-01-28  Richard Biener  <rguenther@suse.de>
35137         PR tree-optimization/56034
35138         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35139         (partition_builtin_p): Adjust.
35140         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
35141         it is the last partition.
35142         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35143         up the vertex for the definition.
35144         (classify_partition): Classify whether a partition is a
35145         PKIND_REDUCTION, thus has uses outside of the loop.
35146         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35147         Merge all PKIND_REDUCTION partitions into the last partition.
35148         (tree_loop_distribution): Seed partitions from reductions as well.
35150 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35152         PR tree-optimization/56125
35153         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35154         pow(x,c) into sqrt(x) * powi(x, n/2) or
35155         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35156         optimizing for size.
35157         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35158         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35159         integer.
35161         PR tree-optimization/56094
35162         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35163         to UNKNOWN_LOCATION while gimplifying expr.
35165 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
35167         PR target/56114
35168         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35169         operand 0 in movabs insn template for -masm=intel asm alternative.
35170         (*movabs<mode>_2): Ditto for operand 1.
35172 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
35174         PR target/54663
35175         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35176         of microblaze-c.o
35178 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35180         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35181         tm_file.
35183 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35185         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35186         Undef to avoid warning.
35188 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35190         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35191         * configure: Regenerate.
35193 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
35195         PR tree-optimization/56098
35196         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35197         for stmts with volatile ops.
35198         (cond_store_replacement): Don't optimize if assign has volatile ops.
35199         (cond_if_else_store_replacement_1): Don't optimize if either
35200         then_assign or else_assign have volatile ops.
35201         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35202         volatile ops.
35204 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35206         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35208 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35210         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35211         missing ':' in asm example.
35213 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
35215         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35216         entries into lane and laneq entries.
35217         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35218         Remove AdvSIMD scalar modes.
35219         (aarch64_sq<r>dmulh_laneq<mode>): New.
35220         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35221         modes.
35222         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35223         builtin implementations to relfect changes in RTL in aarch64-simd.md.
35224         * config/aarch64/iterators.md (VCOND): New.
35225         (VCONQ): New.
35227 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35229         PR target/54222
35230         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35231         Add NULL LIBNAME argument to existing definitions.
35232         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35233         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35234         * config/avr/avr.c (DEF_BUILTIN): Same.
35235         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35236         (avr_expand_builtin): Expand to a vanilla call if a libgcc
35237         implementation is available (DECL_ASSEMBLER_NAME is set).
35238         (avr_fold_absfx): New static function.
35239         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35240         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35241         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35242         AVR_BUILTIN_ABSLLK.
35243         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35244         (abshk, absk, abslk, absllk): Provide as static inline functions.
35246 2013-01-25  Marek Polacek  <polacek@redhat.com>
35248         PR tree-optimization/56035
35249         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35251 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
35253         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35254         (*movtf_internal_rex64): Add (!o,C) alternative
35255         (*movxf_internal_rex64): Ditto.
35256         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35258 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
35260         * doc/invoke.texi: fix typo.
35261         * doc/objc.texi: fix typo.
35263 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
35265         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35266         for the first two alternatives.
35268 2013-01-24  Diego Novillo  <dnovillo@google.com>
35270         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
35271         (ggc-zone.o): Remove.
35272         * configure.ac: Remove option --with-gc.
35273         * configure: Re-generate.
35274         * doc/install.texi: Remove documentation for --with-gc.
35275         * gengtype.c (write_enum_defn): Remove.  Update all users.
35276         (write_Types_process_field): Remove generation of gt_e_* argument.
35277         (output_type_enum): Remove.  Update all users.
35278         (write_enum_defn): Remove.  Update all users.
35279         (enum alloc_zone): Remove.  Update all users.
35280         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35281         * ggc-common.c (ggc_splay_alloc): Remove first argument.
35282         Update all callers.
35283         (struct ptr_data): Remove field TYPE.  Update all users.
35284         (gt_pch_note_object): Remove argument TYPE.  Update all users.
35285         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35286         Update all users.
35287         * ggc-none.c (ggc_alloc_typed_stat): Remove.
35288         (struct alloc_zone): Remove.
35289         (ggc_internal_alloc_zone_stat): Remove.
35290         (ggc_internal_cleared_alloc_zone_stat): Remove.
35291         * ggc-page.c (ggc_alloc_typed_stat): Remove.
35292         (ggc_pch_count_object): Remove last argument.  Update all users.
35293         (ggc_pch_alloc_object): Remove last argument.  Update all users.
35294         (struct alloc_zone): Remove.
35295         * ggc-zone.c: Remove.
35296         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
35297         (struct alloc_zone): Remove.
35298         (ggc_alloc_typed_stat): Remove.
35299         (ggc_alloc_typed): Remove.
35300         (ggc_splay_alloc): Remove first argument.
35301         (rtl_zone): Remove.  Update all users.
35302         (tree_zone): Remove.  Update all users.
35303         (tree_id_zone): Remove.  Update all users.
35304         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
35305         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
35306         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
35307         * tree-ssanames.c: Remove references to zone allocator in comments.
35309 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
35311         * config/avr/avr.c (avr_out_fract): Make register numbers that
35312         might be outside of source operand signed.
35314 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
35316         * config/i386/constraints.md (Yf): New constraint.
35317         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35318         of f constraint to conditionaly disable x87 register preferences.
35319         (*movdf_internal): Ditto.
35320         (*movsf_internal): Ditto.
35322 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
35324         PR inline-asm/55934
35325         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35326         that have operands with impossible constraints.
35327         Add a FIXME for a speed-up opportunity.
35328         * lra-constraints.c (process_alt_operands): Verify that a class
35329         selected from constraints on asms is valid for the operand mode.
35330         (curr_insn_transform): Remove incorrect comment.
35332 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
35334         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35335         TOC operand is a valid symbol ref in the constant pool.
35337 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35339         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35341 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
35343         PR target/54222
35344         * config/avr/stdfix.h: New file.
35345         * t-avr (stdfix-gcc.h): New rule to build it.
35346         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35348 2013-01-23  Kostya Serebryany  <kcc@google.com>
35350         * config/darwin.h: remove dependency on
35351         CoreFoundation (asan on Mac OS).
35353 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
35355         PR target/49069
35356         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35357         instead of cmpdi_operand for first comparison operand.
35358         Don't assert that comparison operands aren't both constants.
35360 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35362         * doc/install.texi (Downloading the Source): Update references to
35363         downloading separate components.
35365 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35367         * doc/extend.texi (__int128): Improve grammar.
35369 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
35371         PR target/56028
35372         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35373         alternative to (o,r).
35374         (*movdi_internal_rex64): Remove (!o,n) alternative.
35375         (DImode immediate->memory splitter): Remove.
35376         (DImode immediate->memory peephole2): Remove.
35377         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35378         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35379         alternative to (!o,*r).
35380         (*movtf_internal_sse): New pattern.
35381         (*movxf_internal_rex64): New pattern.
35382         (*movxf_internal): Disable for TARGET_64BIT.
35383         (*movdf_internal_rex64): Remove (!o,F) alternative.
35385 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
35387         PR middle-end/56074
35388         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35389         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35390         * tree-vect-loop-manip.c (find_loop_location): Also ignore
35391         stmt locations where LOCATION_LOCUS of the stmt location is
35392         UNKNOWN_LOCATION or BUILTINS_LOCATION.
35394         PR target/55686
35395         * config/i386/i386.md (UNSPEC_STOS): New.
35396         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35397         *strsetqi_1): Add UNSPEC_STOS.
35399 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
35401         PR c++/56067
35402         * doc/invoke.texi: Remove left over -Wsynth example.
35404 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35406         PR tree-optimization/56051
35407         * fold-const.c (fold_binary_loc): Don't fold
35408         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35409         a narrowing conversion, or widening conversion from signed
35410         to unsigned.
35412 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35414         PR rtl-optimization/56023
35415         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35416         dependent on debug instruction.
35418 2013-01-21  Martin Jambor  <mjambor@suse.cz>
35420         PR middle-end/56022
35421         * function.c (allocate_struct_function): Call
35422         invoke_set_current_function_hook earlier.
35424 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35426         * reload1.c (init_reload): Only initialize reload_obstack
35427         during the first call.
35429 2013-01-21  Marek Polacek  <polacek@redhat.com>
35431         * cfgloop.c (verify_loop_structure): Fix up grammar.
35433 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
35435         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35436         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35438 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35440         PR target/56058
35441         * config/arm/marvell-pj4.md: Update copyright year.
35442         Fix up use of alu to alu_reg and simple_alu_imm.
35444 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35446         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35448 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
35450         PR target/55433
35451         * lra-constraints.c (curr_insn_transform): Don't reuse original
35452         insn for secondary memory move when memory mode should be different.
35454 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35456         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35457         atomic_storedi_1): New patterns.
35459 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
35461         btver2 pipeline descriptions.
35462         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35463         descriptions.
35464         * config/i386/i386.md (btver2_decode): New type attributes.
35465         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35466         type attributes.
35467         * config/i386/btver2.md: New file describing btver2 pipelines.
35469 2013-01-19  Andrew Pinski  <apinski@cavium.com>
35471         PR tree-optimization/52631
35472         * tree-ssa-sccvn (visit_use): Before looking up the original
35473         statement, try looking up the simplified expression.
35475 2013-01-19  Anthony Green  <green@moxielogic.com>
35477         * config/moxie/moxie.c (moxie_expand_prologue): Set
35478         current_function_static_stack_size.
35480 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35482         PR tree-optimization/56029
35483         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35484         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35486 2013-01-18  Sharad Singhai  <singhai@google.com>
35488         PR tree-optimization/55995
35489         * dumpfile.c (dump_loc): Print location only if available.
35490         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35492 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
35494         PR target/55433
35495         * lra-constraints.c (curr_insn_transform): Reuse original insn for
35496         secondary memory move.
35497         (inherit_reload_reg): Use rclass instead of cl for
35498         check_secondary_memory_needed_p.
35500 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35502         PR middle-end/56015
35503         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35504         the case where writing real complex part of target modifies op1.
35506 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
35508         * config/aarch64/aarch64-simd.md
35509         (aarch64_vcond_internal<mode>): Handle unordered cases.
35510         * config/aarch64/iterators.md (v_cmp_result): New.
35512 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
35513             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35515         * config/arm/marvell-pj4.md: New file.
35516         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35517         * config/arm/arm.md (generic_sched): Add marvell_pj4.
35518         (generic_vfp): Likewise.
35519         * config/arm/arm-cores.def: Add marvell-pj4.
35520         * config/arm/arm-tune.md: Regenerate.
35521         * config/arm/arm-tables.opt: Regenerate.
35522         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35523         * doc/invoke.texi: Document marvell-pj4.
35525 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
35527         * config/aarch64/arm_neon.h: Map scalar types to standard types.
35529 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35531         PR debug/54114
35532         PR debug/54402
35533         PR debug/49888
35534         * var-tracking.c (negative_power_of_two_p): New.
35535         (global_get_addr_cache, local_get_addr_cache): New.
35536         (get_addr_from_global_cache, get_addr_from_local_cache): New.
35537         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
35538         heading comment.
35539         (vt_stack_offset_p): Remove.
35540         (vt_canon_true_dep): Always canonicalize loc's address.
35541         (clobber_overlapping_mems): Make sure we have a MEM.
35542         (local_get_addr_clear_given_value): New.
35543         (val_reset): Clear local cached entries.
35544         (compute_bb_dataflow): Create and release the local cache.
35545         Disable duplicate MEMs clobbering.
35546         (emit_notes_in_bb): Clobber MEMs likewise.
35547         (vt_emit_notes): Create and release the local cache.
35548         (vt_initialize, vt_finalize): Create and release the global
35549         cache, respectively.
35550         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35552 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35554         PR libmudflap/53359
35555         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35556         not found in the symtab.
35558 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35560         PR debug/56006
35561         PR rtl-optimization/55547
35562         PR rtl-optimization/53827
35563         PR debug/53671
35564         PR debug/49888
35565         * alias.c (offset_overlap_p): New, factored out of...
35566         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
35567         the conservative special case for symbolic constants.  Don't
35568         adjust zero sizes on alignment.
35570 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
35572         PR rtl-optimization/52573
35573         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35574         REG_UNUSED for the same register.
35576 2013-01-17  Richard Biener  <rguenther@suse.de>
35577             Marek Polacek  <polacek@redhat.com>
35579         PR rtl-optimization/55833
35580         * loop-unswitch.c (unswitch_loops): Move loop verification...
35581         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
35582         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35583         Set it to true when we're removing a loop from hierarchy tree in
35584         an irreducible region.
35585         (fix_bb_placements): Adjust caller.
35586         (fix_loop_placements): Likewise.
35588 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
35590         * config/avr/builtins.def (DEF_BUILTIN): Factor out
35591         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35592         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35593         Remove ID.  Adjust comments.
35594         * config/avr/avr-c.c (avr_builtin_name): Remove.
35595         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35596         * config/avr/avr.c (avr_tolower): New static function.
35597         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
35598         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35599         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35600         default expansion.
35602 2013-01-17  Jan Hubicka  <jh@suse.cz>
35604         PR tree-optimization/55273
35605         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35607 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
35609         PR target/55981
35610         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35611         store through atomic_store<mode>_1.
35612         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35614 2013-01-17  Martin Jambor  <mjambor@suse.cz>
35616         PR tree-optimizations/55264
35617         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35618         for virtual methods.
35619         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35620         virtual methods before inlining is over.
35621         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35622         virtual functions.
35623         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35624         non-virtual.
35626 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35628         PR rtl-optimization/56005
35629         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35630         pending reads for prefetch.
35632 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
35634         * config/aarch64/aarch64.md
35635         (*cstoresi_neg_uxtw): New pattern.
35636         (*cmovsi_insn_uxtw): New pattern.
35637         (*<optab>si3_uxtw): New pattern.
35638         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35639         (*<optab>si3_insn_uxtw): New pattern.
35640         (*bswapsi2_uxtw): New pattern.
35642 2013-01-16  Richard Biener  <rguenther@suse.de>
35644         * tree-inline.c (tree_function_versioning): Remove set but
35645         never used variable.
35647 2013-01-16  Richard Biener  <rguenther@suse.de>
35649         PR tree-optimization/55964
35650         * tree-flow.h (rename_variables_in_loop): Remove.
35651         (rename_variables_in_bb): Likewise.
35652         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35653         (copy_loop_before): Adjust and delete update-ssa status.
35654         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35655         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
35656         (rename_variables_in_loop): Remove.
35657         (slpeel_update_phis_for_duplicate_loop): Likewise.
35658         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
35659         use available cfg machinery instead of duplicating it.
35660         Update PHI nodes and perform poor-mans SSA update here.
35661         (slpeel_tree_peel_loop_to_edge): Adjust.
35663 2013-01-16  Richard Biener  <rguenther@suse.de>
35665         PR tree-optimization/54767
35666         PR tree-optimization/53465
35667         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
35668         (vrp_visit_phi_node): For PHI arguments coming via backedges
35669         drop all symbolical range information.
35670         (execute_vrp): Compute backedges.
35672 2013-01-16  Richard Biener  <rguenther@suse.de>
35674         * doc/install.texi: Update CLooG and ISL requirements to
35675         0.18.0 and 0.11.1.
35677 2013-01-16  Christian Bruel  <christian.bruel@st.com>
35679         PR target/55301
35680         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35681         (broken_move): Handle UNSPECV_SP_SWITCH_B.
35682         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35684 2013-01-16  DJ Delorie  <dj@redhat.com>
35686         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35687         (UNSPECV_SP_SWITCH_E): New.
35688         (sp_switch_1): Change to an unspec.
35689         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
35690         replace $r15.
35692 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
35694         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35695         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35696         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35697         (expand_mem_thread_fence): Ditto.
35698         (expand_mem_signal_fence): Ditto.
35699         (expand_atomic_load): Ditto.
35700         (expand_atomic_store): Ditto.
35702 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
35704         PR rtl-optimization/55547
35705         PR rtl-optimization/53827
35706         PR debug/53671
35707         PR debug/49888
35708         * alias.c (memrefs_conflict_p): Set sizes to negative after
35709         AND adjustments.
35711 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35713         PR target/55940
35714         * function.c (thread_prologue_and_epilogue_insns): Always
35715         add crtl->drap_reg to set_up_by_prologue.set, even if
35716         stack_realign_drap is false.
35718 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35720         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35721         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35722         *call): Fix indention.
35724 2013-01-15  Tom de Vries  <tom@codesourcery.com>
35726         PR target/55876
35727         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35728         Update comment.
35730 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35732         PR rtl-optimization/55153
35733         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35735 2013-01-15  Martin Jambor  <mjambor@suse.cz>
35737         PR tree-optimization/55920
35738         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35739         accesses as grp_to_be_debug_replaced.
35741 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35743         PR tree-optimization/55920
35744         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35745         there is non-useless type conversion needed from debug rhs to lhs,
35746         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35748 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
35749             Mikael Pettersson  <mikpe@it.uu.se>
35751         PR target/43961
35752         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
35753         Thumb.
35754         (ASM_OUTPUT_CASE_LABEL): Remove.
35755         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
35756         * final.c (shorten_branches): Update alignment of labels before
35757         jump tables if CASE_VECTOR_SHORTEN_MODE.
35759 2013-01-15  Richard Biener  <rguenther@suse.de>
35761         PR bootstrap/55961
35762         * system.h: Do not include gmp.h for building host tools.
35764 2013-01-15  Richard Biener  <rguenther@suse.de>
35766         PR middle-end/55882
35767         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
35768         account for bitpos when computing alignment.
35770 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
35772         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
35773         (ix86_target_macros_internal): Likewise.
35775         * config/i386/i386.c (m_CORE2I7): Removed.
35776         (m_CORE_HASWELL): New macro.
35777         (m_CORE_ALL): Likewise.
35778         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
35779         (initial_ix86_arch_features): Likewise.
35780         (processor_target_table): Initializations for Core avx2.
35781         (cpu_names): New names "core-avx2".
35782         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
35783         PROCESSOR_CORE_HASWELL.
35784         (ix86_issue_rate): New case.
35785         (ia32_multipass_dfa_lookahead): Likewise.
35786         (ix86_sched_init_global): Likewise.
35788         * config/i386/i386.h (TARGET_HASWELL): New macro.
35789         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
35790         (processor_type): New PROCESSOR_HASWELL.
35792 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35794         PR tree-optimization/55955
35795         * tree-vect-loop.c (vectorizable_reduction): Give up early on
35796         *SHIFT_EXPR and *ROTATE_EXPR codes.
35798         PR tree-optimization/48766
35799         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
35800         -ftrapv disable -fwrapv.
35802 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35804         PR target/55974
35805         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
35806         etc. to 1 and not to __flash.
35807         Use LL suffix for __INT24_MAX__ with -mint8.
35808         Use ULL suffix for __UINT24_MAX__ with -mint8.
35810 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35812         * config/avr/avr-arch.h
35813         (struct base_arch_s): Use typedef avr_arch_t instead.
35814         (struct arch_info_s): Use typedef avr_arch_info_t instead.
35815         (struct mcu_type_s): Use typedef avr_mcu_t instead.
35816         * config/avr/avr.c: Same.
35817         * config/avr/avr-devices.c: Same.
35818         * config/avr/driver-avr.c: Same.
35819         * config/avr/gen-avr-mmcu-texi.c: Same.
35820         * config/avr/avr-mcus.def: Adjust comment.
35822 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
35824         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
35825         * config/aarch64/iterators.md (VALLDI): New.
35827 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
35828             Andi Kleen  <ak@linux.intel.com>
35830         PR target/55948
35831         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
35832         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
35833         memmodel flag.
35835 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35837         * config/avr/avr-stdint.h: Remove trailing blanks.
35838         * config/avr/avr-log.h: Same.
35839         * config/avr/avr-arch.h: Same.
35840         * config/avr/avr-devices.c: Same.
35841         * config/avr/avr-dimode.md: Same.
35842         * config/avr/predicates.md: Same.
35843         * config/avr/avr-c.c: Same.  And fix typo.
35845         * config/avr/avr-protos.h: Same.  And:
35846         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
35847         (init_cumulative_args): Rename to avr_init_cumulative_args.
35848         (expand_prologue): Rename to avr_expand_prologue.
35849         (expand_epilogue): Rename to avr_expand_epilogue.
35850         (adjust_insn_length): Rename to avr_adjust_insn_length.
35851         (notice_update_cc): Rename to avr_notice_update_cc.
35852         (final_prescan_insn): Rename to avr_final_prescan_insn.
35853         * config/avr/avr.c: Same.
35854         * config/avr/avr.h: Same.
35855         * config/avr/avr.md: Remove trailing blanks.
35856         (prologue): Use avr_expand_prologue.
35857         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
35859 2013-01-14  Richard Biener  <rguenther@suse.de>
35861         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
35862         verify_location, collect_subblocks): New functions.
35863         (verify_gimple_in_cfg): Verify that locations only reference
35864         BLOCKs in the functions BLOCK tree.
35866 2013-01-14  Richard Biener  <rguenther@suse.de>
35868         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
35869         PHI argument.
35870         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
35871         unshare reference.
35872         (insert_out_of_ssa_copy_on_edge): Likewise.
35873         (rewrite_close_phi_out_of_ssa): Likewise.
35874         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
35875         debug expressions.
35876         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
35877         propagated constants.
35878         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
35879         can not be shared.
35881 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35883         * config/avr/avr-modes.def: Add GPL copyright notice.
35885 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
35887         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
35888         MEMMODEL_MASK to determine memory model.
35889         (atomic_store<mode>): Ditto from operands[2].
35890         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
35892 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
35894         PR fortran/55935
35895         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
35896         (fold_gimple_assign): Don't call unshare_expr here.
35897         (fold_ctor_reference): Call unshare_expr.
35899 2013-01-13  Terry Guo  <terry.guo@arm.com>
35901         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
35902         * doc/fragments.texi: Document MULTILIB_REUSE.
35903         * gcc.c (multilib_reuse): New internal spec.
35904         (set_multilib_dir): Also search multilib from multilib_reuse.
35905         * genmultilib (tmpmultilib3): Refactor code.
35906         (tmpmultilib4): Ditto.
35907         (multilib_reuse): New multilib argument.
35909 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
35911         * Makefile.in: Update copyright.
35913 2013-01-12  Tom de Vries  <tom@codesourcery.com>
35915         PR middle-end/55890
35916         * calls.c (expand_call): Check if arg_nr is valid.
35918 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
35920         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
35921         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
35922         documentation.  Add missing '__' in front of
35923         __builtin_ia32_packssdw256.
35925 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35927         PR target/55719
35928         * config/s390/s390.c (s390_preferred_reload_class): Do not return
35929         NO_REGS for larl operands.
35930         (s390_reload_larl_operand): Use s390_load_address instead of
35931         emit_move_insn.
35933 2013-01-11  Richard Biener  <rguenther@suse.de>
35935         * tree-cfg.c (verify_node_sharing_1): Split out from ...
35936         (verify_node_sharing): ... here.
35937         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
35939 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
35941         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
35942         Substitute TREECHECKING.
35943         * configure: Regenerate.
35944         * Makefile.in (TREECHECKING): New.
35946 2013-01-11  Richard Guenther  <rguenther@suse.de>
35948         PR tree-optimization/44061
35949         * tree-vrp.c (extract_range_basic): Compute zero as
35950         value-range for __builtin_constant_p of function parameters.
35952 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
35954         Update copyright years.
35956 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
35958         PR rtl-optimization/55672
35959         * lra-eliminations.c (mark_not_eliminable): Permit addition with
35960         const to be eliminable.
35962 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
35964         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
35965         * configure: Regenerate.
35967 2013-01-10  Richard Biener  <rguenther@suse.de>
35969         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
35971 2013-01-10  Richard Biener  <rguenther@suse.de>
35973         PR bootstrap/55792
35974         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
35975         locations for virtual PHI arguments.
35976         (rewrite_update_phi_arguments): Likewise.
35978 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
35980         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
35981         on to assembler.
35983 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
35985         PR tree-optimization/55921
35986         * tree-complex.c (expand_complex_asm): New function.
35987         (expand_complex_operations_1): Call it for GIMPLE_ASM.
35989 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35991         PR target/55718
35992         * config/s390/s390.c (s390_symref_operand_p)
35993         (s390_loadrelative_operand_p): Merge the two functions.
35994         (s390_check_qrst_address, print_operand_address): Add parameters
35995         to s390_loadrelative_operand_p invokation.
35996         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
35997         (s390_reload_larl_operand, s390_secondary_reload): Use
35998         s390_loadrelative_operand_p instead of s390_symref_operand_p.
35999         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36001 2013-01-09  Mike Stump  <mikestump@comcast.net>
36003         * dse.c (record_store): Remove unnecessary assert.
36005 2013-01-09  Jan Hubicka  <jh@suse.cz>
36007         PR tree-optimization/55569
36008         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36009         * cfgloop.h (scale_loop_profile): Likewise.
36011 2013-01-09  Jan Hubicka  <jh@suse.cz>
36013         PR lto/45375
36014         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36015         functions.
36016         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36018 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
36020         PR middle-end/55114
36021         * expr.h (maybe_emit_group_store): Declare.
36022         * expr.c (maybe_emit_group_store): New function.
36023         * builtins.c (expand_builtin_int_roundingfn): Call it.
36024         (expand_builtin_int_roundingfn_2): Likewise.
36026 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
36028         PR rtl-optimization/55829
36029         * lra-constraints.c (match_reload): Add code for absent output.
36030         (curr_insn_transform): Add code for reloads of matched inputs
36031         without output.
36033 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
36035         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36036         attribute of movddup insn to DF.
36037         (*vec_interleave_lowv2df): Ditto.
36038         (vec_dupv2df): Ditto.
36040 2013-01-09  Jan Hubicka  <jh@suse.cz>
36042         PR tree-optimiation/55875
36043         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36044         EVERY_ITERATION parameter.
36045         (number_of_iterations_exit): Check if exit is executed every iteration.
36046         (idx_infer_loop_bounds): Similarly here.
36047         (n_of_executions_at_most): Simplify
36048         to only test for cases where statement is dominated by the
36049         particular bound; handle correctly the "postdominance" test.
36050         (scev_probably_wraps_p): Use max loop iterations info
36051         as a global bound first.
36053 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
36054             Nick Clifton  <nickc@redhat.com>
36056         * config/v850/v850.md (cbranchsf4): New pattern.
36057         (cstoresf4): New pattern.
36058         (cbranchdf4): New pattern.
36059         (cstoredf4): New pattern.
36060         (movsicc): Disallow floating point comparisons.
36061         (cmpsf_le_insn): Fix order of operators.
36062         (cmpsf_lt_insn): Likewise.
36063         (cmpsf_eq_insn): Likewise.
36064         (cmpdf_le_insn): Likewise.
36065         (cmpdf_lt_insn): Likewise.
36066         (cmpdf_eq_insn): Likewise.
36067         (cmpsf_ge_insn): Use LE comparison.
36068         (cmpdf_ge_insn): Likewise.
36069         (cmpsf_gt_insn): Use LT comparison.
36070         (cmpdf_gt_insn): Likewise.
36071         (cmpsf_ne_insn): Delete pattern.
36072         (cmpdf_ne_insn): Delete pattern.
36073         * config/v850/v850.c (v850_gen_float_compare): Use
36074         gen_cmpdf_eq_insn for NE comparison.
36075         (v850_float_z_comparison_operator)
36076         (v850_float_nz_comparison_operator): Move from here ...
36077         * config/v850/predicates.md: ... to here.  Move GT and GE
36078         comparisons into v850_float_z_comparison_operator.
36079         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36080         Delete prototype.
36081         (v850_float_nz_comparison_operator): Likewise.
36083 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36085         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36086         with calls to gen_insvsi/gen_insvdi.
36088 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
36090         * config/i386/i386.c (initial_ix86_tune_features): Set up
36091         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36093 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
36094             Jakub Jelinek  <jakub@redhat.com>
36096         PR tree-optimization/48189
36097         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36098         If nitercst is 0, don't predict the exit edge.
36100 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36102         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36103         in asm_fprintf with reg_names.
36104         (aarch64_print_operand_address): Likewise.
36105         (aarch64_return_addr): Likewise.
36106         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36108 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36110         * config/pa/pa.h (VAL_U6_BITS_P): Define.
36111         (INT_U6_BITS): Likewise.
36112         * config/pa/predicates.md (uint6_operand): New predicate.
36113         (shift5_operand, shift6_operand): Likewise.
36114         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36115         arith32_operand.
36116         (lshrdi3): Use shift6_operand.
36117         (shrpsi4, shrpdi4): New insn patterns.
36118         (extzv): Delete expander.
36119         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
36120         predicates in unamed zero extract patterns.  Tighten common constraint.
36121         (extv): Delete expander.
36122         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
36123         predicates in unamed sign extract patterns.  Tighten common constraint.
36124         (insv): Delete expander.
36125         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
36126         predicates in unamed insert patterns.  Tighten common constraint.
36127         Change uint32_operand predicate to uint6_operand predicate in unamed
36128         DImode pattern to insert constant values of type 1...1xxxx.
36130 2013-01-04  Jan Hubicka  <jh@suse.cz>
36132         PR tree-optimization/55823
36133         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36134         issue.
36136 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36137             Uros Bizjak  <ubizjak@gmail.com>
36139         PR rtl-optimization/55845
36140         * df-problems.c (can_move_insns_across): Stop scanning at
36141         volatile_insn_p source instruction or give up if
36142         across_from .. across_to range contains any volatile_insn_p
36143         instructions.
36145 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36147         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36148         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36149         Declare.
36150         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36151         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36153 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36155         PR fortran/55341
36156         * asan.c (asan_clear_shadow): New function.
36157         (asan_emit_stack_protection): Use it.
36159 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36161         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36162         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36163         with tab instead of space.
36165 2013-01-08  Nick Clifton  <nickc@redhat.com>
36167         * config/rl78/rl78.c (rl78_expand_prologue): Always select
36168         register bank 0 at the start of an interrupt handler.
36169         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36170         MDBH registers.
36172 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36174         * config/aarch64/aarch64-simd.md
36175         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36176         (aarch64_simd_bsl): Likewise.
36177         (aarch64_vcond_internal<mode>): Likewise.
36178         (vcond<mode><mode>): Likewise.
36179         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36180         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36182 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36184         * config/aarch64/aarch64-builtins.c
36185         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36187 2013-01-08  Martin Jambor  <mjambor@suse.cz>
36189         PR debug/55579
36190         * tree-sra.c (analyze_access_subtree): Return true also after
36191         potentially creating a debug-only replacement.
36193 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36195         PR middle-end/55890
36196         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36198         PR tree-optimization/54120
36199         * tree-vrp.c (range_fits_type_p): Don't allow
36200         src_precision < precision from signed vr to unsigned_p
36201         if vr->min or vr->max is negative.
36202         (simplify_float_conversion_using_ranges): Test can_float_p
36203         against CODE_FOR_nothing.
36205 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36206             Richard Biener  <rguenther@suse.de>
36208         PR middle-end/55851
36209         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36210         types instead of just INTEGER_TYPE types.
36212 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
36214         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36215         TF_SIZE): Define.
36217 2013-01-07  Steve Ellcey  <sellcey@mips.com>
36219         PR target/42661
36220         * config/mips/mips.opt: Change mad to mmad to match documentation.
36222 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36224         PR target/55897
36225         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36226         .progmemx.data now.
36228 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36230         PR target/55897
36231         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36232         (avr_addrspace_t): Add .section_name field.
36233         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36234         array size.
36235         (avr_addrspace): Same.  Initialize .section_name.  Remove last
36236         NULL entry.  Put __memx into .progmemx.data.
36237         (progmem_section_prefix): Remove.
36238         (avr_asm_init_sections): No need to initialize progmem_section.
36239         (avr_asm_named_section): Use avr_addrspace[].section_name to get
36240         section name prefix.
36241         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
36242         retrieve the progmem section.
36243         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36244         boundary to run over avr_addrspace[].
36245         (avr_register_target_pragmas): Ditto.
36247 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
36249         * varasm.c (output_constant_def_contents): For asan_protect_global
36250         protected strings, adjust DECL_ALIGN if needed, before testing for
36251         anchored symbols.
36252         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36253         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
36254         normal decls.
36255         (output_object_block): For asan protected decls, emit asan padding
36256         after their contents.
36257         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36258         (asan_finish_file): Test it here instead.
36260 2013-01-07  Nick Clifton  <nickc@redhat.com>
36261             Matthias Klose  <doko@debian.org>
36262             Doug Kwan  <dougkwan@google.com>
36263             H.J. Lu  <hongjiu.lu@intel.com>
36265         PR driver/55470
36266         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36268         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36270         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36272         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36274         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36276 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36278         PR target/54461
36279         * doc/install.texi (Cross-Compiler-Specific Options): Document
36280         --with-avrlibc.
36282 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
36284         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36285         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36286         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36287         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36288         vqmovun_high_s64): Fix source operand number and update copyright.
36290 2013-01-07  Richard Biener  <rguenther@suse.de>
36292         PR middle-end/55890
36293         * gimple.h (gimple_call_builtin_p): New overload.
36294         * gimple.c (validate_call): New function.
36295         (gimple_call_builtin_p): Likewise.
36296         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36297         Use gimple_call_builtin_p.
36298         (find_func_clobbers): Likewise.
36299         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36300         (strlen_optimize_stmt): Likewise.
36302 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36304         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36305         (vld1q_dup_*): Likewise.
36306         (vld1_*): Likewise.
36307         (vld1q_*): Likewise.
36308         (vld1_lane_*): Likewise.
36309         (vld1q_lane_*): Likewise.
36311 2013-01-07  Richard Biener  <rguenther@suse.de>
36313         * lto-streamer.h (LTO_minor_version): Bump to 2.
36315 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36317         * config/aarch64/aarch64-protos.h
36318         (aarch64_const_double_zero_rtx_p): Rename to...
36319         (aarch64_float_const_zero_rtx_p): ...this.
36320         (aarch64_float_const_representable_p): New.
36321         (aarch64_output_simd_mov_immediate): Likewise.
36322         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36323         move immediate case.
36324         * config/aarch64/aarch64.c
36325         (aarch64_const_double_zero_rtx_p): Rename to...
36326         (aarch64_float_const_zero_rtx_p): ...this.
36327         (aarch64_print_operand): Allow printing of new constants.
36328         (aarch64_valid_floating_const): New.
36329         (aarch64_legitimate_constant_p): Check for valid floating-point
36330         constants.
36331         (aarch64_simd_valid_immediate): Likewise.
36332         (aarch64_vect_float_const_representable_p): New.
36333         (aarch64_float_const_representable_p): Likewise.
36334         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36335         (aarch64_output_simd_mov_immediate): New.
36336         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36337         (*movdf_aarch64): Likewise.
36338         * config/aarch64/constraints.md (Ufc): New.
36339         (Y): call aarch64_float_const_zero_rtx.
36340         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36342 2013-01-07  Richard Biener  <rguenther@suse.de>
36344         PR tree-optimization/55888
36345         PR tree-optimization/55862
36346         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36347         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36348         not if it is contained therein.
36350 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36352         * config/avr/t-avr: Typo.
36354 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36356         PR55243
36357         * config/avr/t-avr: Don't automatically rebuild
36358         $(srcdir)/config/avr/t-multilib
36359         $(srcdir)/config/avr/avr-tables.opt
36360         $(srcdir)/doc/avr-mmcu.texi
36361         (avr-mcus): New phony target to build them on request.
36362         (s-avr-mlib, s-avr-mmcu-texi): Remove.
36363         * avr/avr-mcus.def: Adjust comments.
36365 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
36367         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36369 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36371         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36373 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36375         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36377 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
36379         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36380         to generate profiling.
36381         * config/rs6000/aix64.h (LIB_SPEC): Same.
36383 2013-01-04  Andrew Pinski  <apinski@cavium.com>
36385         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36386         New function.
36387         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36389 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
36391         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36392         unconditionally.
36393         (ix86_expand_move): Ditto.
36394         (ix86_zero_extend_to_Pmode): Ditto.
36395         (ix86_expand_call): Ditto.
36396         (ix86_expand_special_args_builtin): Ditto.
36397         (ix86_expand_builtin): Ditto.
36399 2013-01-04  Richard Biener  <rguenther@suse.de>
36401         PR tree-optimization/55862
36402         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36403         translating them through PHI nodes.
36405 2013-01-04  Martin Jambor  <mjambor@suse.cz>
36407         PR tree-optimization/55755
36408         * tree-sra.c (sra_modify_assign): Do not check that an access has no
36409         children when trying to avoid producing a VIEW_CONVERT_EXPR.
36411 2013-01-04  Marek Polacek  <polacek@redhat.com>
36413         PR middle-end/55859
36414         * opts.c (default_options_optimization): Clarify error message.
36416 2013-01-04  Richard Biener  <rguenther@suse.de>
36418         PR middle-end/55863
36419         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36420         reassociation.
36422 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36424         PR target/53789
36425         * config/pa/pa.md (movsi): Revert previous change.
36426         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36427         references.
36429 2013-01-03  Richard Henderson  <rth@redhat.com>
36431         * config/i386/i386.c (ix86_expand_move): Always assign to op1
36432         after eliminating TLS symbols.
36434 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
36436         PR bootstrap/50167
36437         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36438         * graphite-poly.c (debug_gmp_value): Likewise.
36440 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
36442         PR target/55712
36443         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36444         selected code model, define __code_mode_small__, __code_model_medium__,
36445         __code_model_large__, __code_model_32__ or __code_model_kernel__.
36446         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36447         xchg temporary register with %k.  Declare temporary register as
36448         early clobbered.
36449         [__x86_64__]: For medium and large code models, preserve %rbx register.
36451 2013-01-03  Richard Biener  <rguenther@suse.de>
36453         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36454         (dump_subscript): Adjust.
36455         (finalize_ddr_dependent): Do not dump redundant info.
36456         (analyze_siv_subscript): Adjust.
36457         (subscript_dependence_tester): Likewise.
36458         (compute_affine_dependence): Likewise.
36460 2013-01-03  Richard Biener  <rguenther@suse.de>
36462         Revert
36463         2013-01-03  Richard Biener  <rguenther@suse.de>
36465         PR tree-optimization/55857
36466         * tree-vect-stmts.c (vectorizable_load): Do not setup
36467         re-alignment for invariant loads.
36469         2013-01-02  Richard Biener  <rguenther@suse.de>
36471         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36472         invariant load do not generate a vector load from the scalar location.
36474 2013-01-03  Richard Biener  <rguenther@suse.de>
36476         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36477         for not vectorizing.
36478         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36479         not build INDIRECT_REFs, call get_name once only.
36480         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
36481         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36483 2013-01-03  Richard Biener  <rguenther@suse.de>
36485         PR tree-optimization/55857
36486         * tree-vect-stmts.c (vectorizable_load): Do not setup
36487         re-alignment for invariant loads.
36489 2013-01-03  Richard Biener  <rguenther@suse.de>
36491         PR lto/55848
36492         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36493         prefer a built-in decl.
36495 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36497         * gcc.c (process_command): Update copyright notice dates.
36498         * gcov.c (print_version): Likewise.
36499         * gcov-dump.c (print_version): Likewise.
36501         PR rtl-optimization/55838
36502         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36503         iv0.step, iv1.step and step.
36505 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36506             Marc Glisse  <marc.glisse@inria.fr>
36508         PR tree-optimization/55832
36509         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36510         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36511         integer_{one,zero}_node.
36513 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36515         PR debug/54402
36516         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36517         * var-tracking.c (reverse_op): Don't add reverse ops to
36518         VALUEs that have already
36519         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36521 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
36523         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36525 2013-01-02  Teresa Johnson  <tejohnson@google.com>
36527         * dumpfile.c (dump_loc): Print filename with location.
36528         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36529         new location_t parameter to emit complete unroll message with
36530         new dump framework.
36531         (canonicalize_loop_induction_variables): Compute loops location
36532         and pass to try_unroll_loop_completely.
36533         * loop-unroll.c (report_unroll_peel): New function.
36534         (peel_loops_completely): Use new dump format with location
36535         for main dumpfile message, and invoke report_unroll_peel on success.
36536         (decide_unrolling_and_peeling): Ditto.
36537         (decide_peel_once_rolling): Remove old dumpfile message subsumed
36538         by report_unroll_peel.
36539         (decide_peel_completely): Ditto.
36540         (decide_unroll_constant_iterations): Ditto.
36541         (decide_unroll_runtime_iterations): Ditto.
36542         (decide_peel_simple): Ditto.
36543         (decide_unroll_stupid): Ditto.
36544         * cfgloop.c (get_loop_location): New function.
36545         * cfgloop.h (get_loop_location): Declare.
36547 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36549         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36550         NULL.
36552 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36554         PR middle-end/55198
36555         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36556         BLKmode objects when EXPAND_MEMORY is specified.
36558 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36560         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36561         in loop predicate.
36562         (fold_builtin_cpu): Do not share cpu model decls across statements.
36564 2013-01-02  Jason Merrill  <jason@redhat.com>
36566         PR c++/55804
36567         * tree.c (build_array_type_1): Revert earlier change.
36569 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
36571         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36572         "cortex-a57".
36573         * config/aarch64/aarch64-tune.md: Re-generate.
36575 2013-01-02  Richard Biener  <rguenther@suse.de>
36577         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36578         invariant load do not generate a vector load from the scalar location.
36580 2013-01-02  Richard Biener  <rguenther@suse.de>
36582         PR bootstrap/55784
36583         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36584         * configure: Regenerate.
36586 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36588         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36589         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36590         (expand_builtin_int_roundingfn_2): Keep the original target around
36591         for the fallback case.
36593 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36595         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36596         to be clear for sign changes.
36598 2013-01-01  Jan Hubicka  <jh@suse.cz>
36600         * ipa-inline-analysis.c: Fix formatting.
36602 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
36604         PR tree-optimization/55831
36605         * tree-vect-loop.c (get_initial_def_for_induction): Use
36606         gsi_after_labels instead of gsi_start_bb.
36608 Copyright (C) 2013 Free Software Foundation, Inc.
36610 Copying and distribution of this file, with or without modification,
36611 are permitted in any medium without royalty provided the copyright
36612 notice and this notice are preserved.